Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Beelink-IPC-R(rk3588)支持使用OpenWrt和Armbian #415

Closed
gwx11111111 opened this issue Apr 13, 2023 · 416 comments
Closed

Beelink-IPC-R(rk3588)支持使用OpenWrt和Armbian #415

gwx11111111 opened this issue Apr 13, 2023 · 416 comments
Labels
documentation Improvements or additions to documentation essence Recommended essence posts new box Research Fills in the Blanks support This need is supported

Comments

@gwx11111111
Copy link

gwx11111111 commented Apr 13, 2023

HI,ophub

       现在我在用amlogic-s9xxx-openwrt的代码,但是烧录了发现开不了机呢?
日志如下:

DDR Version V1.09 20220721
LPDDR4X, 1584MHz
channel[0] BW=16 Col=10 Bk=8 CS0 Row=16 CS1 Row=16 CS=2 Die BW=16 Size=2048MB
 BW=16 Col=10 Bk=8 CS0 Row=16 CS1 Row=16 CS=2 Die BW=16 Size=2048MB
channel[2] BW=16 Col=10 Bk=8 CS0 Row=16 CS1 Row=16 CS=2 Die BW=16 Size=2048MB
channel[3] BW=16 Col=10 Bk=8 CS0 Row=16 CS1 Row=16 CS=2 Die BW=16 Size=2048MB
Manufacturer ID:0x6
change to F1: 528MHz
change to F2: 1068MHz
change to F3: 1560MHz
change to F0: 1584MHz
h
�vv3�kFK6�v&&6V&ailed to set cpub01
Failed to set cpub23
unknown raw ID phN
unrecognized JEDEC id bytes: 00, 00, 00
Trying to boot from MMC2
spl: partition error
Trying fit image at 0x4000 sector
## Verified-boot: 0
## Checking atf-1 0x00040000 ... sha256(806278dba1...) + OK
## Checking uboot 0x00200000 ... sha256(d37588cc6f...) + OK
## Checking fdt 0x0030a190 ... sha256(d32827d3ac...) + OK
## Checking atf-2 0x000f0000 ... sha256(c00c7fd75b...) + OK
## Checking atf-3 0xff100000 ... sha256(71c3a5841b...) + OK
## Checking atf-4 0xff001000 ... sha256(2301cf73be...) + OK
Jumping to U-Boot(0x00200000) via ARM Trusted Firmware(0x00040000)
Total: 348.738 ms

INFO:    Preloader serial: 2
NOTICE:  BL31: v2.3():v2.3-405-gb52c2eadd:derrick.huang
NOTICE:  BL31: Built : 11:23:47, Aug 15 2022
INFO:    spec: 0x1
INFO:    ext 32k is not valid
INFO:    GICv3 without legacy support detected.
INFO:    ARM GICv3 driver initialized in EL3
INFO:    system boots from cpu-hwid-4
INFO:    idle_st=0x21fff, pd_st=0x11fff9, repair_st=0xfff70001
INFO:    dfs DDR fsp_params[0].freq_mhz= 1584MHz
INFO:    dfs DDR fsp_params[1].freq_mhz= 528MHz
INFO:    dfs DDR fsp_params[2].freq_mhz= 1068MHz
INFO:    dfs DDR fsp_params[3].freq_mhz= 1560MHz
INFO:    BL31: Initialising Exception Handling Framework
INFO:    BL31: Initializing runtime services
WARNING: No OPTEE provided by BL2 boot loader, Booting device without OPTEE initialization. SMC`s destined for OPTEE will return SMC_UNK
ERROR:   Error initializing runtime service opteed_fast
INFO:    BL31: Preparing for EL3 exit to normal world
INFO:    Entry point address = 0x200000
INFO:    SPSR = 0x3c9


U-Boot 2017.09-g73cc10cb06-220414 #root (Oct 19 2022 - 16:15:35 +0800)

Model: Radxa ROCK 5B
PreSerial: 2, raw, 0xfeb50000
DRAM:  7.7 GiB
Sysmem: init
Relocation Offset: edb6d000
Relocation fdt: eb9f9e58 - eb9fecc8
CR: M/C/I
Using default environment

no mmc device at slot 1
mmc@fe2c0000: 1 (SD), mmc@fe2e0000: 0
Bootdev(atags): mmc 1
MMC1: Legacy, 52Mhz
PartType: EFI
DM: v2
No misc partition
boot mode: None
FIT: No boot partition
No resource partition
No resource partition
No resource partition
Failed to load DTB, ret=-19
No find valid DTB, ret=-22
Failed to get kernel dtb, ret=-22
In:    serial
Out:   serial
Err:   serial
Model: Radxa ROCK 5B
CLK: (sync kernel. arm: enter 1008000 KHz, init 1008000 KHz, kernel 0N/A)
  b0pll 24000 KHz
  b1pll 24000 KHz
  lpll 24000 KHz
  v0pll 24000 KHz
  aupll 24000 KHz
  cpll 1500000 KHz
  gpll 1188000 KHz
  npll 24000 KHz
  ppll 1100000 KHz
  aclk_center_root 702000 KHz
  pclk_center_root 100000 KHz
  hclk_center_root 396000 KHz
  aclk_center_low_root 500000 KHz
  aclk_top_root 750000 KHz
  pclk_top_root 100000 KHz
  aclk_low_top_root 396000 KHz
No misc partition
Net:   No ethernet found.
Hit key to stop autoboot('CTRL+C'):  0 
switch to partitions #0, OK
mmc1 is current device
** Invalid partition 1 **
switch to partitions #0, OK
mmc0(part 0) is current device
Failed to mount ext2 filesystem...
** Unrecognized filesystem type **
starting USB...
No working controllers found
USB is stopped. Please issue 'usb start' first.
这是为什么呢?
@ophub
Copy link
Owner

ophub commented Apr 13, 2023

什么机器

@gwx11111111
Copy link
Author

我们机器是:ipc-r
soc:rk3588
内存:lpddr4 8g
支持多个以太网口(8168或者8125)
机器图片如下链接:

image

@gwx11111111
Copy link
Author

这个能不能帮忙加一下这个盒子的支持到openwrt里面呢?我们
是beelink的,需要什么资料我这边可以提供的,谢谢!

@gwx11111111
Copy link
Author

gwx11111111 commented Apr 13, 2023 via email

@ophub
Copy link
Owner

ophub commented Apr 13, 2023

目前的RK3588只有 Radxa-Rock5B, HinLink-H88K 这2个设备支持,每个设备需要单独的u-boot和dtb,你有这几个文件没?或者u-boot编译源码?还有对应的dts文件。

u-boot.itb和idbloader.img,或者bootloader.bin这样与你的机器适配的。

# Rockchip RK3588 Family
#-------+----------------------------+---------+---------------------------------------+-----------------------------+------------------------------------+--------------------------------+-------------------------------------------+--------------+------------+-------------+----------------+--------------------+-------
# 1.ID 2.MODEL 3.SOC 4.FDTFILE 5.TRUST_IMG 6.MAINLINE_UBOOT 7.BOOTLOADER_IMG 8.DESCRIPTION 9.KERNEL_TAGS 10.PLATFORM 11.FAMILY 12.BOOT_CONF 13.BOARD 14.BUILD
#-------+----------------------------+---------+---------------------------------------+-----------------------------+------------------------------------+--------------------------------+-------------------------------------------+--------------+------------+-------------+----------------+--------------------+-------
r101 :Rock5B :rk3588 :rk3588-rock-5b.dtb :NA :u-boot.itb :idbloader.img :Oct-core,4/8/16GB-RAM,2.5Gb-Nic :rk3588 :rockchip :rk3588 :armbianEnv.txt :rock5b :yes
r102 :H88K :rk3588 :rk3588-hinlink-h88k.dtb :NA :NA :rk3588-h88k-bootloader.bin :8GB-LPDDR4,32GB-eMMC,1Gb/2.5Gb-Nic :rk3588 :rockchip :rk3588 :armbianEnv.txt :h88k :yes

@gwx11111111
Copy link
Author

gwx11111111 commented Apr 13, 2023 via email

@gwx11111111
Copy link
Author

gwx11111111 commented Apr 13, 2023 via email

@ophub
Copy link
Owner

ophub commented Apr 13, 2023

你好像不是直接在github上交流,是回复邮件?你的邮件附件没法看到。
u-boot文件有编译好的直接通过这个聊天窗口发我文件(几个u-boot文件,dtb文件,dts源码文件)即可,压缩包可以在这个聊天框里上传,你直接拖进来就可以。或者提供一个压缩包下载地址。

https://github.com/unifreq/linux-5.10.y-rk35xx/tree/main/arch/arm64/boot/dts/rockchip

这个dts文件有吗?是5.10内核的?你的这个dts文件名叫什么?

dts文件也放压缩包里。

@gwx11111111
Copy link
Author

gwx11111111 commented Apr 13, 2023 via email

@ophub
Copy link
Owner

ophub commented Apr 13, 2023

你这仓库里3588还挺丰富啊,你这个板子用的dts文件名称是哪个?

@gwx11111111
Copy link
Author

gwx11111111 commented Apr 13, 2023 via email

@ophub
Copy link
Owner

ophub commented Apr 13, 2023

rk3588-aarch32.config
rk3588_defconfig
rk3588-edge.config
rk3588-ipc.config
rk3588-ramboot.config
rk3588-sata.config

在这几个rk3588,看名字应该是用 rk3588-ipc.config ,但是无法编译,第一次编译提示少rkbin仓库。

Environment offset (ENV_OFFSET) [0x0] (NEW) 
Environment size (ENV_SIZE) [0x8000] 0x8000
Environment redundant(backup) offset (ENV_OFFSET_REDUND) [0x0] (NEW) 
Environment offset in Nand (ENV_NAND_OFFSET) [0x0] (NEW) 
Environment redundant(backup) offset in Nand (ENV_NAND_OFFSET_REDUND) [0x0] (NEW) 
Environment size in Nand (ENV_NAND_SIZE) [0x40000] (NEW) 
Environment offset in Nor (ENV_NOR_OFFSET) [0x0] (NEW) 
Environment redundant(backup) offset in Nor (ENV_NOR_OFFSET_REDUND) [0x0] (NEW) 
Environment size in Nor (ENV_NOR_SIZE) [0x10000] (NEW) 
#
# configuration written to .config
#
ERROR: No ../rkbin repository

我拉了radxa/rkbin 试了下也不行

Default Configuration: 'conf'
 Configuration 0 (conf)
  Description:  rk3588-evb
  Kernel:       unavailable
  Firmware:     atf-1
  FDT:          fdt
  Loadables:    uboot
                atf-2
                atf-3
                optee
out:rk3588_download_v1.08.111.bin
E: [parseOpts_from_file] unknown sec: IDB_PATH=rk3588_idblock_v1.08.111.img!
merge failed!

你完整的几个源码仓库有吗?你自己编译成功了没?

@gwx11111111
Copy link
Author

gwx11111111 commented Apr 13, 2023 via email

@gwx11111111
Copy link
Author

gwx11111111 commented Apr 13, 2023 via email

@gwx11111111
Copy link
Author

gwx11111111 commented Apr 13, 2023 via email

@gwx11111111
Copy link
Author

HI,ophub

现在可以编译了吗?如果不行的话,这个idbloader.img和rk3588_spl_loader_v1.08.111.bin和 u-boot.itb这3个
要怎么编译出来呢?因为我现在只是编译出uboot.img来用的

@gwx11111111
Copy link
Author

HI,ophub
这是我这边编译好的uboot文件,dtb和dts文件
rockchip.zip
uboot.zip

@ophub
Copy link
Owner

ophub commented Apr 13, 2023

https://github.com/gwx11111111/uboot_ipc/tree/beelink_RK3358_rk12/arch/arm/dts
Snip20230413_11
Snip20230413_12

你上面发的这个 rockchip.zip 里的dts文件,如果和你的源码是一套,要放进来,不然没法编译。

@ophub
Copy link
Owner

ophub commented Apr 13, 2023

rk3588-nvr-demo-v10-android.dtb
这是你设备的dtb文件?

@gwx11111111
Copy link
Author

gwx11111111 commented Apr 13, 2023 via email

@gwx11111111
Copy link
Author

gwx11111111 commented Apr 13, 2023 via email

@gwx11111111
Copy link
Author

uboot有这些
image
已经可以编译里的,就是要rkbin仓库,最后
image
用这个rk3588_defconfig配置文件编译

@ophub
Copy link
Owner

ophub commented Apr 14, 2023

git clone https://github.com/gwx11111111/uboot_ipc.git u-boot
git clone https://github.com/gwx11111111/ipc_rkbin.git rkbin
git clone -b debian https://github.com/radxa/build.git build

cd u-boot
u-boot$ ./make.sh rk3588

Snip20230414_3

Snip20230414_4

只用你的2个仓库编译过了,后面编译idbloader.img和u-boot.itb失败了。

你看下 https://wiki.radxa.com/Rock5/guide/build-u-boot-on-5b

我用他的build脚本,改了下 board_configs.sh 增加了你的设备的选项命名为 rk3588-ipc

	"rk3588-ipc")
		DEFCONFIG=rockchip_linux_defconfig
		UBOOT_DEFCONFIG=rk3588_defconfig
		DTB=rk3588-nvr-demo-v10-android.dtb
		export ARCH=arm64
		export CROSS_COMPILE=aarch64-linux-gnu-
		CHIP="rk3588"
		;;

改了下 mk-uboot.sh ,把elf文件改为你仓库里的文件名 rk3588_bl31_v1.30.elf

elif [ "${CHIP}" == "rk3588s" ] || [ "${CHIP}" == "rk3588" ]; then
	make ${UBOOT_DEFCONFIG}
	make BL31=../rkbin/bin/rk35/rk3588_bl31_v1.30.elf spl/u-boot-spl.bin u-boot.dtb u-boot.itb
	./tools/mkimage -n rk3588 -T rksd -d ../rkbin/bin/rk35/rk3588_ddr_lp4_2112MHz_lp5_2736MHz_v1.08.bin:spl/u-boot-spl.bin idbloader.img
	cp u-boot.itb ${OUT}/u-boot/
	cp idbloader.img ${OUT}/u-boot/
	cp ../u-boot/rk3588_spl_loader_v1.08.111.bin ${OUT}/u-boot
	generate_spi_image
fi

./build/mk-uboot.sh rk3588-ipc

Snip20230414_6

编译失败了
两个修改文件:
build.zip

@ophub
Copy link
Owner

ophub commented Apr 14, 2023

你发的u-boot文件,和我常见的文件大小偏差较大,我看不懂你这2个文件是怎么dd给镜像,跳过大小怎么设置?你有说明没?
编译openwrt和armbian方法相同,文件通用,我两个仓库一样的使用方法

https://github.com/ophub/amlogic-s9xxx-armbian/tree/main/build-armbian/u-boot/rockchip
https://github.com/ophub/amlogic-s9xxx-armbian/blob/main/build-armbian/armbian-files/common-files/etc/model_database.conf

https://github.com/ophub/amlogic-s9xxx-armbian/blob/a4e311993620720d176796d08d16e7094233a953/rebuild#L612-L631

@gwx11111111
Copy link
Author

hi,ophun
改一下我哪个uboot仓库有个问题
image
lib/avb/libavb/avb_slot_verify.c
把==NLLJ加上试试

@gwx11111111
Copy link
Author

=NULL加上

@gwx11111111
Copy link
Author

hi,ophub
我有boot.img可以提前dtb吗?或者直接用编译好的dtb不行吗

@ophub
Copy link
Owner

ophub commented Apr 14, 2023

编译好了,修改的2个脚本: build.zip

@gwx11111111
Copy link
Author

HI,ophub
厉害;现在还差什么文件呢?还是都有了

@gwx11111111
Copy link
Author

image
要加多-P才可以

@gwx11111111
Copy link
Author

HI,opub
有直接开启多线程的方法吗?

@ophub
Copy link
Owner

ophub commented May 15, 2023

ophub/amlogic-s9xxx-armbian@ebd7b9c
添加一下,重启试试
注意核对下你的board名字对不对,我是刚才在kernel里看你提交的dts这么写的,你本地自己看看你用的是哪个。

@ophub
Copy link
Owner

ophub commented May 15, 2023

在OpenWrt中,默认情况下内核已经启用了多线程功能。你先试试上面f大的优化脚本,如果您想要进一步优化多线程性能,可以考虑调整以下系统参数:

  1. 设置CPU调度策略

将CPU调度策略设置为“deadline”或“CFQ”可以更好地利用多核CPU。

# 系统安装磁盘不同,dev不同,改mmcblk2为你正确的位置,如sda等
echo deadline > /sys/block/mmcblk2/queue/scheduler
  1. 调整内核参数

/proc/sys/kernel/core_uses_pid设置为1(默认值),以避免单个核心过载。

echo 1 > /proc/sys/kernel/core_uses_pid
  1. 启用IRQ平衡

启用IRQ平衡可以将硬件中断分配到不同的处理器核心上,从而更好地利用多核CPU。

echo 1 > /proc/irq/default_smp_affinity

@gwx11111111
Copy link
Author

HI,ophub
f大的优化脚本好像没有效果,然后设置这个为/proc/sys/kernel/core_uses_pid大核a76可以跑到600m,但是还是慢
image
下面的参数有问题
image

@gwx11111111
Copy link
Author

现在本地就是用的Beelink IPC-R Board

@gwx11111111
Copy link
Author

用8个线程跑有可以跑到2G多,这不知道为啥了
image

@ophub
Copy link
Owner

ophub commented May 15, 2023

改这个文件:/etc/balance_irq
https://github.com/ophub/amlogic-s9xxx-armbian/blob/main/build-armbian/armbian-files/different-files/ipc-r/rootfs/etc/balance_irq

看文件里的说明,根据你的设备调整

@gwx11111111
Copy link
Author

gwx11111111 commented May 15, 2023

root@OpenWrt:/# cat /proc/interrupts
           CPU0       CPU1       CPU2       CPU3       CPU4       CPU5       CPU6       CPU7       
  9:          0          0          0          0          0          0          0          0     GICv3  25 Level     vgic
 11:          0          0          0          0          0          0          0          0     GICv3  30 Level     kvm guest ptimer
 12:          0          0          0          0          0          0          0          0     GICv3  27 Level     kvm guest vtimer
 13:       3377       2068       1813       3919       3935       6475       4133       5010     GICv3  26 Level     arch_timer
 14:        413        596       4405       1774        643       8451       1794       2517     GICv3 321 Level     rk_timer
 15:          0          0          0          0          0          0          0          0     GICv3  23 Level     arm-pmu
 16:          0          0          0          0          0          0          0          0     GICv3 105 Level     dmc
 17:          3          0          0          0          0          0          0          0     GICv3 126 Level     fb000000.gpu
 18:          1          0          0          0          0          0          0          0     GICv3 125 Level     fb000000.gpu
 19:          1          0          0          0          0          0          0          0     GICv3 124 Level     fb000000.gpu
 20:         34          0          0          0          0          0          0          0     GICv3 247 Level     ehci_hcd:usb1
 21:          0          0          0          0          0          0          0          0     GICv3 248 Level     ohci_hcd:usb3
 22:          0          0          0          0          0          0          0          0     GICv3 250 Level     ehci_hcd:usb2
 23:          0          0          0          0          0          0          0          0     GICv3 251 Level     ohci_hcd:usb4
 24:          0          0          0          0          0          0          0          0     GICv3 425 Level     rockchip_usb2phy
 25:          2          0          0          0          0          0          0          0     GICv3 423 Level     rockchip_usb2phy
 26:          2          0          0          0          0          0          0          0     GICv3 424 Level     rockchip_usb2phy
 27:      18740          0          0          0          0          0          0          0     GICv3 349 Level     fd880000.i2c
 28:          0          0          0          0          0          0          0          0     GICv3 142 Level     fdab9000.iommu
 29:          0          0          0          0          0          0          0          0     GICv3 143 Level     fdab9000.iommu
 30:          0          0          0          0          0          0          0          0     GICv3 144 Level     fdab9000.iommu
 31:          0          0          0          0          0          0          0          0     GICv3 152 Level     fdb50000.vepu
 32:          0          0          0          0          0          0          0          0     GICv3 151 Level     fdb50400.vdpu
 33:          0          0          0          0          0          0          0          0     GICv3 150 Level     fdb50800.iommu
 34:          0          0          0          0          0          0          0          0     GICv3 146 Level     fdb60f00.iommu, rga3_core0
 35:          0          0          0          0          0          0          0          0     GICv3 147 Level     fdb70f00.iommu, rga3_core1
 36:          0          0          0          0          0          0          0          0     GICv3 148 Level     rga2
 37:          0          0          0          0          0          0          0          0     GICv3 161 Level     fdb90000.jpegd
 38:          0          0          0          0          0          0          0          0     GICv3 162 Level     fdb90480.iommu
 39:          0          0          0          0          0          0          0          0     GICv3 154 Level     fdba0000.jpege-core
 40:          0          0          0          0          0          0          0          0     GICv3 153 Level     fdba0800.iommu
 41:          0          0          0          0          0          0          0          0     GICv3 156 Level     fdba4000.jpege-core
 42:          0          0          0          0          0          0          0          0     GICv3 155 Level     fdba4800.iommu
 43:          0          0          0          0          0          0          0          0     GICv3 158 Level     fdba8000.jpege-core
 44:          0          0          0          0          0          0          0          0     GICv3 157 Level     fdba8800.iommu
 45:          0          0          0          0          0          0          0          0     GICv3 160 Level     fdbac000.jpege-core
 46:          0          0          0          0          0          0          0          0     GICv3 159 Level     fdbac800.iommu
 47:          0          0          0          0          0          0          0          0     GICv3 149 Level     fdbb0800.iommu, fdbb0000.iep
 48:          0          0          0          0          0          0          0          0     GICv3 133 Level     fdbd0000.rkvenc-core
 49:          0          0          0          0          0          0          0          0     GICv3 131 Level     fdbdf000.iommu
 50:          0          0          0          0          0          0          0          0     GICv3 132 Level     fdbdf000.iommu
 51:          0          0          0          0          0          0          0          0     GICv3 136 Level     fdbe0000.rkvenc-core
 52:          0          0          0          0          0          0          0          0     GICv3 134 Level     fdbef000.iommu
 53:          0          0          0          0          0          0          0          0     GICv3 135 Level     fdbef000.iommu
 54:          0          0          0          0          0          0          0          0     GICv3 127 Level     fdc38100.rkvdec-core
 55:          0          0          0          0          0          0          0          0     GICv3 128 Level     fdc38700.iommu
 56:          0          0          0          0          0          0          0          0     GICv3 129 Level     fdc48100.rkvdec-core
 57:          0          0          0          0          0          0          0          0     GICv3 130 Level     fdc48700.iommu
 58:          0          0          0          0          0          0          0          0     GICv3 188 Level     fdd97e00.iommu, fdd90000.vop
 59:          0          0          0          0          0          0          0          0     GICv3 217 Level     i2s
 60:          0          0          0          0          0          0          0          0     GICv3 201 Level     fde80000.hdmi
 62:          0          0          0          0          0          0          0          0     GICv3 203 Level     fde80000.hdmi
 63:          0          0          0          0          0          0          0          0     GICv3 204 Level     fde80000.hdmi
 64:          0          0          0          0          0          0          0          0     GICv3 392 Level     dw-hdmi-qp-hpd
 65:       1672          0          0          0          0          0          0          0     GICv3 305 Level     ahci[fe210000.sata]
 66:          0          0          0          0          0          0          0          0     GICv3 235 Level     dw-mci
 67:      10190          0          0          0          0          0          0          0     GICv3 236 Level     dw-mci
 68:      12908          0          0          0          0          0          0          0     GICv3 237 Level     mmc1
 70:          0          0          0          0          0          0          0          0     GICv3 212 Level     i2s
 71:          0          0          0          0          0          0          0          0     GICv3 118 Level     fea10000.dma-controller
 72:          0          0          0          0          0          0          0          0     GICv3 119 Level     fea10000.dma-controller
 73:          0          0          0          0          0          0          0          0     GICv3 120 Level     fea30000.dma-controller
 74:          0          0          0          0          0          0          0          0     GICv3 121 Level     fea30000.dma-controller
 75:         18          0          0          0          0          0          0          0     GICv3 351 Level     feaa0000.i2c
 76:       4831          0          0          0          0          0          0          0     GICv3 360 Level     feb20000.spi
 78:          0          0          0          0          0          0          0          0     GICv3 429 Level     rockchip_thermal
 79:          0          0          0          0          0          0          0          0     GICv3 430 Level     fec10000.saradc
 80:         15          0          0          0          0          0          0          0     GICv3 355 Level     fec80000.i2c
 81:          0          0          0          0          0          0          0          0     GICv3 122 Level     fed10000.dma-controller
 82:          0          0          0          0          0          0          0          0     GICv3 123 Level     fed10000.dma-controller
 88:          0          0          0          0          0          0          0          0     GICv3 426 Level     rockchip_usb2phy
 90:          0          0          0          0          0          0          0          0     GICv3 194 Level     fde60000.dp
 91:          0          0          0          0          0          0          0          0     GICv3 295 Level     pcie-sys
101:          0          0          0          0          0          0          0          0     GICv3 275 Level     pcie-sys
106:         40          0          0          0          0          0          0          0     GICv3 455 Edge      debug-signal
107:         40          0          0          0          0          0          0          0     GICv3 365 Level     debug
117:          0          0          0          0          0          0          0          0   ITS-MSI   8 Edge      PCIe PME
127:          0          0          0          0          0          0          0          0   ITS-MSI 285212680 Edge      PCIe PME
128:          0          0          0          0          0          0          0          0     GICv3 140 Level     av1d-master
131:          0          0          0          0          0          0          0          0  rockchip_gpio_irq   7 Level     rk806
132:          0          0          0          0          0          0          0          0     rk806   0 Edge      rk805_pwrkey_fall
133:          0          0          0          0          0          0          0          0     rk806   1 Edge      rk805_pwrkey_rise
134:          0          0          0          0          0          0          0          0     rk806   7 Level     rk806_vb_low
135:          0          0          0          0          0          0          0          0     GICv3 252 Level     xhci-hcd:usb5
136:         42          0          0          0          0          0          0          0     GICv3 254 Level     xhci-hcd:usb7
137:          0          0          0          0          0          0          0          0     GICv3 253 Level     xhci-hcd:usb9
138:          0          0          0          0          0          0          0          0  rockchip_gpio_irq   8 Level     hym8563
139:          0          0          0          0          0          0          0          0  rockchip_gpio_irq   0 Edge      bt_default_wake_host_irq
140:          0          0          0          0          0          0          0          0  rockchip_gpio_irq  20 Level     headset_input
141:          0          0          0          0          0          0          0          0   ITS-MSI 524288 Edge      eth0-0
142:          0          0          0          0          0          0          0          0   ITS-MSI 524289 Edge      eth0-1
143:          0          0          0          0          0          0          0          0   ITS-MSI 524290 Edge      eth0-2
144:          0          0          0          0          0          0          0          0   ITS-MSI 524291 Edge      eth0-3
145:          0          0          0          0          0          0          0          0   ITS-MSI 524292 Edge      eth0-4
146:          0          0          0          0          0          0          0          0   ITS-MSI 524293 Edge      eth0-5
147:          0          0          0          0          0          0          0          0   ITS-MSI 524294 Edge      eth0-6
148:          0          0          0          0          0          0          0          0   ITS-MSI 524295 Edge      eth0-7
149:          0          0          0          0          0          0          0          0   ITS-MSI 524296 Edge      eth0-8
150:          0          0          0          0          0          0          0          0   ITS-MSI 524297 Edge      eth0-9
151:          0          0          0          0          0          0          0          0   ITS-MSI 524298 Edge      eth0-10
152:          0          0          0          0          0          0          0          0   ITS-MSI 524299 Edge      eth0-11
153:          0          0          0          0          0          0          0          0   ITS-MSI 524300 Edge      eth0-12
154:          0          0          0          0          0          0          0          0   ITS-MSI 524301 Edge      eth0-13
155:          0          0          0          0          0          0          0          0   ITS-MSI 524302 Edge      eth0-14
156:          0          0          0          0          0          0          0          0   ITS-MSI 524303 Edge      eth0-15
157:          0          0          0          0          0          0          0          0   ITS-MSI 524304 Edge      eth0-16
158:          0          0          0          0          0          0          0          0   ITS-MSI 524305 Edge      eth0-17
159:          0          0          0          0          0          0          0          0   ITS-MSI 524306 Edge      eth0-18
160:          0          0          0          0          0          0          0          0   ITS-MSI 524307 Edge      eth0-19
161:          0          0          0          0          0          0          0          0   ITS-MSI 524308 Edge      eth0-20
162:          0          0          0          0          0          0          0          0   ITS-MSI 524309 Edge      eth0-21
163:          0          0          0          0          0          0          0          0   ITS-MSI 524310 Edge      eth0-22
164:          0          0          0          0          0          0          0          0   ITS-MSI 524311 Edge      eth0-23
165:          0          0          0          0          0          0          0          0   ITS-MSI 524312 Edge      eth0-24
166:          0          0          0          0          0          0          0          0   ITS-MSI 524313 Edge      eth0-25
167:          0          0          0          0          0          0          0          0   ITS-MSI 524314 Edge      eth0-26
168:          0          0          0          0          0          0          0          0   ITS-MSI 524315 Edge      eth0-27
169:          0          0          0          0          0          0          0          0   ITS-MSI 524316 Edge      eth0-28
170:          0          0          0          0          0          0          0          0   ITS-MSI 524317 Edge      eth0-29
171:          0          0          0          0          0          0          0          0   ITS-MSI 524318 Edge      eth0-30
172:          0          0          0          0          0          0          0          0   ITS-MSI 524319 Edge      eth0-31
173:          0          0          0      27342          0          0          0          0   ITS-MSI 285736960 Edge      eth1-0
174:          0          0          0          0          0          0          0          0   ITS-MSI 285736961 Edge      eth1-1
175:          0          0          0          0          0          0          0          0   ITS-MSI 285736962 Edge      eth1-2
176:          0          0          0          0          0          0          0          0   ITS-MSI 285736963 Edge      eth1-3
177:          0          0          0          0          0          0          0          0   ITS-MSI 285736964 Edge      eth1-4
178:          0          0          0          0          0          0          0          0   ITS-MSI 285736965 Edge      eth1-5
179:          0          0          0          0          0          0          0          0   ITS-MSI 285736966 Edge      eth1-6
180:          0          0          0          0          0          0          0          0   ITS-MSI 285736967 Edge      eth1-7
181:          0          0          0          0          0          0          0          0   ITS-MSI 285736968 Edge      eth1-8
182:          0          0          0          0          0          0          0          0   ITS-MSI 285736969 Edge      eth1-9
183:          0          0          0          0          0          0          0          0   ITS-MSI 285736970 Edge      eth1-10
184:          0          0          0          0          0          0          0          0   ITS-MSI 285736971 Edge      eth1-11
185:          0          0          0          0          0          0          0          0   ITS-MSI 285736972 Edge      eth1-12
186:          0          0          0          0          0          0          0          0   ITS-MSI 285736973 Edge      eth1-13
187:          0          0          0          0          0          0          0          0   ITS-MSI 285736974 Edge      eth1-14
188:          0          0          0          0          0          0          0          0   ITS-MSI 285736975 Edge      eth1-15
189:          0          0          4          0          0      47496          0          0   ITS-MSI 285736976 Edge      eth1-16
190:          0          0          0          0          0          0          0          0   ITS-MSI 285736977 Edge      eth1-17
191:          0          0          0          0          1        156          0          0   ITS-MSI 285736978 Edge      eth1-18
192:          0          0          0          0          0          0          0          0   ITS-MSI 285736979 Edge      eth1-19
193:          0          0          0          0          0          0          0          0   ITS-MSI 285736980 Edge      eth1-20
194:          0          0          0          0          0          0          0          1   ITS-MSI 285736981 Edge      eth1-21
195:          0          0          0          0          0          0          0          0   ITS-MSI 285736982 Edge      eth1-22
196:          0          0          0          0          0          0          0          0   ITS-MSI 285736983 Edge      eth1-23
197:          0          0          0          0          0          0          0          0   ITS-MSI 285736984 Edge      eth1-24
198:          0          0          0          0          0          0          0          0   ITS-MSI 285736985 Edge      eth1-25
199:          0          0          0          0          0          0          0          0   ITS-MSI 285736986 Edge      eth1-26
200:          0          0          0          0          0          0          0          0   ITS-MSI 285736987 Edge      eth1-27
201:          0          0          0          0          0          0          0          0   ITS-MSI 285736988 Edge      eth1-28
202:          0          0          0          0          0          0          0          0   ITS-MSI 285736989 Edge      eth1-29
203:          0          0          0          0          0          0          0          0   ITS-MSI 285736990 Edge      eth1-30
204:          0          0          0          0          0          0          0          0   ITS-MSI 285736991 Edge      eth1-31
205:        315          0          0          0          0          0          0          0  rockchip_gpio_irq  10 Level     bcmsdh_sdmmc
IPI0:      2182       6134       2239       3955       6213       6146       5928       5404       Rescheduling interrupts
IPI1:      1411       2717       1128       1110      17163       5611      15291       6912       Function call interrupts
IPI2:         0          0          0          0          0          0          0          0       CPU stop interrupts
IPI3:         0          0          0          0          0          0          0          0       CPU stop (for crash dump) interrupts
IPI4:        58        282        822       1093        263        826        614       1147       Timer broadcast interrupts
IPI5:       312        212        142        280        591        501        557        436       IRQ work interrupts
IPI6:         0          0          0          0          0          0          0          0       CPU wake-up interrupts
Err:          0
root@OpenWrt:

看到负载都不是很重呢

@ophub
Copy link
Owner

ophub commented May 15, 2023

给他整点活干,比如跑分/烤机,大容量文件从A设备复制到B设备,跑N个BT下载等等,让都忙起来。观察哪个忙的要死,哪个闲着看戏,给不干活的分配。

@gwx11111111
Copy link
Author

改到了最空闲的1和2测试还是500多m
image

@gwx11111111
Copy link
Author

image

@ophub
Copy link
Owner

ophub commented May 15, 2023

改了运行一下脚本才能生效,或者重启生效

@gwx11111111
Copy link
Author

重启过了的

@ophub
Copy link
Owner

ophub commented May 15, 2023

iperf3双向测试发送和接收都是500m?

@gwx11111111
Copy link
Author

反过来做服务端可以测试到1G:
image

@ophub
Copy link
Owner

ophub commented May 15, 2023

双向的两个设备是通过有线连接测试的?

@gwx11111111
Copy link
Author

是通过有线连接的

@ophub
Copy link
Owner

ophub commented May 15, 2023

有3个不同的上游源码,你试一下另外的两个源码的op镜像

@gwx11111111
Copy link
Author

image
是这2个吗

@ophub
Copy link
Owner

ophub commented May 16, 2023

对,这2个和lede的不一样,源码更新

@gwx11111111
Copy link
Author

HI,ophub
lede的可以测试到2.3g了,测试要指定一下-w (tcp的窗口大小)就可以了

@ophub
Copy link
Owner

ophub commented May 17, 2023

好的。
国内用户使用lede为主,这个源码首先适配好。
其他源码也要检查下,比如在官方源码中.config里可能缺少了你设备必须的一些支持选项,会对性能有影响。比如2.5G,蓝牙,无线这些,看看选项是否都启用了。

@gwx11111111
Copy link
Author

HI,ophub
好的;为什么我编译 official会报错呢?
报错如下:
image

@ophub
Copy link
Owner

ophub commented May 17, 2023

我已经有半个月没编译成功官方源码了。之前是gnutls的版本更新炸了。我看你的错误不是这个。
官方源修复错误的速度急死个人(编译失败时,可以翻官方的Issues或pr里找下,手动应用用户分享的patch)。
lede炸了一两天能修好。官方的源慢慢等吧,等半个月是常态。

ImageBuilder是个好方法,这是官方默认已经构建好的tar包,直接下载然后集成插件,结果和自己从源码编译是一样的,但是这个只用10分钟就搞定。我已经一键Actions实现好了。
官方下载源: https://downloads.openwrt.org/releases/
官方文档:https://openwrt.org/docs/guide-user/additional-software/imagebuilder

国内还有immortalwrt,这个和官方源码接近,和lede相差较大点。ImageBuilder使用方法相同。
https://downloads.immortalwrt.org/releases

Snip20230517_7

@gwx11111111
Copy link
Author

好的,谢谢

@ophub ophub closed this as completed May 19, 2023
@ophub
Copy link
Owner

ophub commented May 19, 2023

刚才我用官方源编译好了。

@gwx11111111
Copy link
Author

好的,我也编译一下试试,谢谢了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation essence Recommended essence posts new box Research Fills in the Blanks support This need is supported
Projects
None yet
Development

No branches or pull requests

3 participants