Closed gwx11111111 closed 1 year ago
什么机器
我们机器是:ipc-r soc:rk3588 内存:lpddr4 8g 支持多个以太网口(8168或者8125) 机器图片如下链接:
这个能不能帮忙加一下这个盒子的支持到openwrt里面呢?我们 是beelink的,需要什么资料我这边可以提供的,谢谢!
HI,ophub
我们机器是:Beelink ipc-r soc:rk3588 内存:lpddr4 8g 支持多个以太网口(8168或者8125) 机器图片如下
这个能不能帮忙加一下这个盒子的支持到openwrt里面呢? 需要什么资料我这边可以提供的,谢谢!
------------------ 原始邮件 ------------------ 发件人: "ophub/amlogic-s9xxx-openwrt" @.>; 发送时间: 2023年4月13日(星期四) 上午10:17 @.>; @.**@.>; 主题: Re: [ophub/amlogic-s9xxx-openwrt] rk3588 openwrt 开不了机 (Issue #415)
什么机器
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>
目前的RK3588只有 Radxa-Rock5B, HinLink-H88K 这2个设备支持,每个设备需要单独的u-boot和dtb,你有这几个文件没?或者u-boot编译源码?还有对应的dts文件。
u-boot.itb和idbloader.img,或者bootloader.bin这样与你的机器适配的。
我们u-boot源码和dtb都有的,我们要怎么提供给你们呢
------------------ 原始邮件 ------------------ 发件人: "ophub/amlogic-s9xxx-openwrt" @.>; 发送时间: 2023年4月13日(星期四) 中午11:10 @.>; @.**@.>; 主题: Re: [ophub/amlogic-s9xxx-openwrt] rk3588 openwrt 开不了机 (Issue #415)
目前的RK3588只有 Radxa-Rock5B, HinLink-H88K 这2个设备支持,每个设备需要单独的u-boot和dtb,你有这几个文件没?或者u-boot编译源码?
u-boot.itb和idbloader.img,或者bootloader.bin这样与你的机器适配的。
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>
HI,ophub
uboot源码已经推送gittub了地址: https://github.com/gwx11111111/uboot_ipc.git dtb在邮件附件
,看看这样可以吗?
------------------ 原始邮件 ------------------ 发件人: "ophub/amlogic-s9xxx-openwrt" @.>; 发送时间: 2023年4月13日(星期四) 中午11:10 @.>; @.**@.>; 主题: Re: [ophub/amlogic-s9xxx-openwrt] rk3588 openwrt 开不了机 (Issue #415)
目前的RK3588只有 Radxa-Rock5B, HinLink-H88K 这2个设备支持,每个设备需要单独的u-boot和dtb,你有这几个文件没?或者u-boot编译源码?
u-boot.itb和idbloader.img,或者bootloader.bin这样与你的机器适配的。
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>
你好像不是直接在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文件也放压缩包里。
HI,ophub 有的,内核(包括dts)已经推上gittub,地址:https://github.com/gwx11111111/kernel_IPC.git 是5.10是内核;
------------------ 原始邮件 ------------------ 发件人: "ophub/amlogic-s9xxx-openwrt" @.>; 发送时间: 2023年4月13日(星期四) 中午11:41 @.>; @.**@.>; 主题: Re: [ophub/amlogic-s9xxx-openwrt] rk3588 openwrt 开不了机 (Issue #415)
https://github.com/unifreq/linux-5.10.y-rk35xx/tree/main/arch/arm64/boot/dts/rockchip
这个dts文件有吗?是5.10内核的?
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>
你这仓库里3588还挺丰富啊,你这个板子用的dts文件名称是哪个?
hI,ophub rk3588的还行吧!板子用的是rk3588-nvr-demo-v10-android.dts
------------------ 原始邮件 ------------------ 发件人: "ophub/amlogic-s9xxx-openwrt" @.>; 发送时间: 2023年4月13日(星期四) 中午12:19 @.>; @.**@.>; 主题: Re: [ophub/amlogic-s9xxx-openwrt] rk3588 openwrt 开不了机 (Issue #415)
你这仓库里3588还挺丰富啊,你这个板子用的dts文件名称是哪个?
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>
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!
你完整的几个源码仓库有吗?你自己编译成功了没?
HI,ophub 我这边可以编译的,我没用的是https://github.com/gwx11111111/ipc_rkbin.git 这个厂库的rkbin(bin/rk35/rk3588_ddr_lp4_2112MHz_lp5_2736MHz_v1.08.bin)
HI,ophub 我这边可以编译的,我没用的是https://github.com/gwx11111111/ipc_rkbin.git 这个厂库的rkbin(bin/rk35/rk3588_ddr_lp4_2112MHz_lp5_2736MHz_v1.08.bin)
------------------ 原始邮件 ------------------ 发件人: "ophub/amlogic-s9xxx-openwrt" @.>; 发送时间: 2023年4月13日(星期四) 中午1:24 @.>; @.**@.>; 主题: Re: [ophub/amlogic-s9xxx-openwrt] rk3588 openwrt 开不了机 (Issue #415)
你的uboot_ipc源码无法编译,第一次编译提示少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!
你完整的几个源码仓库有吗?你自己编译成功了没?
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>
hi,ophub
还有用这个rk3588_defconfig配置文件
------------------ 原始邮件 ------------------ 发件人: "ophub/amlogic-s9xxx-openwrt" @.>; 发送时间: 2023年4月13日(星期四) 中午1:24 @.>; @.**@.>; 主题: Re: [ophub/amlogic-s9xxx-openwrt] rk3588 openwrt 开不了机 (Issue #415)
你的uboot_ipc源码无法编译,第一次编译提示少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!
你完整的几个源码仓库有吗?你自己编译成功了没?
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>
HI,ophub
现在可以编译了吗?如果不行的话,这个idbloader.img和rk3588_spl_loader_v1.08.111.bin和 u-boot.itb这3个 要怎么编译出来呢?因为我现在只是编译出uboot.img来用的
HI,ophub 这是我这边编译好的uboot文件,dtb和dts文件 rockchip.zip uboot.zip
https://github.com/gwx11111111/uboot_ipc/tree/beelink_RK3358_rk12/arch/arm/dts
你上面发的这个 rockchip.zip 里的dts文件,如果和你的源码是一套,要放进来,不然没法编译。
rk3588-nvr-demo-v10-android.dtb 这是你设备的dtb文件?
uboot直接
有这些就可以了的,rockchip.zip是内核的dts(dtb)
------------------ 原始邮件 ------------------ 发件人: "ophub/amlogic-s9xxx-openwrt" @.>; 发送时间: 2023年4月13日(星期四) 晚上10:59 @.>; @.**@.>; 主题: Re: [ophub/amlogic-s9xxx-openwrt] rk3588 openwrt 开不了机 (Issue #415)
https://github.com/gwx11111111/uboot_ipc/tree/beelink_RK3358_rk12/arch/arm/dts
你上面发的这个 rockchip.zip 里的dts文件,如果和你的源码是一套,要放进来,不然没法编译。
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>
rk3588-nvr-demo-v10-android.dtb是设备的dtb
------------------ 原始邮件 ------------------ 发件人: "ophub/amlogic-s9xxx-openwrt" @.>; 发送时间: 2023年4月13日(星期四) 晚上11:07 @.>; @.**@.>; 主题: Re: [ophub/amlogic-s9xxx-openwrt] rk3588 openwrt 开不了机 (Issue #415)
rk3588-nvr-demo-v10-android.dtb 这是你设备的dtb文件?
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>
uboot有这些 已经可以编译里的,就是要rkbin仓库,最后 用这个rk3588_defconfig配置文件编译
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
只用你的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
编译失败了 两个修改文件: build.zip
你发的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
hi,ophun 改一下我哪个uboot仓库有个问题 lib/avb/libavb/avb_slot_verify.c 把==NLLJ加上试试
=NULL加上
hi,ophub 我有boot.img可以提前dtb吗?或者直接用编译好的dtb不行吗
HI,ophub 厉害;现在还差什么文件呢?还是都有了
用我上面修改的build脚本编译,完成后的u-boot在这,armbian和openwrt通用,所以2个仓库共用的,没重复保存。 https://github.com/ophub/amlogic-s9xxx-armbian/tree/main/build-armbian/u-boot/rockchip/ipc-r
设备配置信息是172行ipc-r https://github.com/ophub/amlogic-s9xxx-openwrt/blob/main/make-openwrt/openwrt-files/common-files/etc/model_database.conf
Openwrt下载地址: 浏览器访问:192.168.1.1, 默认用户名:root, 默认密码:password https://github.com/ophub/amlogic-s9xxx-openwrt/releases/tag/OpenWrt_lede_04.14.0057
Armbian下载地址: 设备接入路由器,到路由器里看IP,ssh访问IP,22端口。默认用户名root, 默认密码:1234,初次登录会要求修改密码。 https://github.com/ophub/amlogic-s9xxx-armbian/releases/tag/Armbian_bullseye_04.14.0059
你测试下。 这个设备有自带的emmc吗?网口几个多少G的?自带蓝牙无线吗?
有自带emmc,网卡有2个2.5g的,4个·1G的; 现在测试到还是不能开机呢?
=> reboot
DDR Version V1.08 20220617
LPDDR4X, 1560MHz
channel[0] BW=16 Col=10 Bk=8 CS0 Row=16 CS1 Row=16 CS=2 Die BW=16 Size=2048MB
channel[1] 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: 1560MHz
out
U-Boot SPL board init
U-Boot SPL 2017.09-gc060f28d70-220414 #zyf (Apr 18 2022 - 18:13:34)
Failed 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(ce2098067b...) + OK
## Checking uboot 0x00200000 ... sha256(e2fef55a2b...) + OK
## Checking fdt 0x00339a70 ... sha256(c07f4a4d71...) + OK
## Checking atf-2 0x000f0000 ... sha256(ebc45c531e...) + OK
## Checking atf-3 0xff100000 ... sha256(9ded9f3bb5...) + OK
## Checking optee 0x08400000 ... sha256(fde0860845...) + OK
Jumping to U-Boot(0x00200000) via ARM Trusted Firmware(0x00040000)
Total: 414.926 ms
INFO: Preloader serial: 2
NOTICE: BL31: v2.3():v2.3-444-g1450d21e8:derrick.huang
NOTICE: BL31: Built : 16:25:50, Oct 12 2022
INFO: spec: 0x1
INFO: ext 32k is not valid
INFO: ddr: stride-en 4CH
INFO: GICv3 without legacy support detected.
INFO: ARM GICv3 driver initialized in EL3
INFO: valid_cpu_msk=0xff bcore0_rst = 0x0, bcore1_rst = 0x0
INFO: system boots from cpu-hwid-0
INFO: idle_st=0x21fff, pd_st=0x11fff9, repair_st=0xfff70001
INFO: dfs DDR fsp_params[0].freq_mhz= 1560MHz
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
INFO: BL31: Initializing BL32
INFO: hdmirx_handler: dma not on, ret
I/TC:
I/TC: OP-TEE version: 3.13.0-652-g4542e1efd #derrick.huang (gcc version 10.2.1 20201103 (GNU Toolchain for the A-profile Architecture 10.2-2020.11 (arm-10.16))) #5 2022年 09月 20日 星期二 09:41:09 CST aarch64
I/TC: Primary CPU initializing
I/TC: Primary CPU switching to normal world boot
INFO: BL31: Preparing for EL3 exit to normal world
INFO: Entry point address = 0x200000
INFO: SPSR = 0x3c9
U-Boot 2017.09-g48922e8182-dirty #smith (Apr 14 2023 - 04:45:18 +0000)
Model: Rockchip RK3588 Evaluation Board
PreSerial: 2, raw, 0xfeb50000
DRAM: 7.7 GiB
Sysmem: init
Relocation Offset: eda3d000
Relocation fdt: eb9fa738 - 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
Model: Rockchip RK3588 Evaluation Board
rockchip_set_serialno: could not find efuse/otp device
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 100000 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
Could not find misc partition
ANDROID: reboot reason: "(none)"
optee api revision: 2.0
TEEC: Waring: Could not find security partition
Not AVB images, AVB skip
android_image_load_by_partname: Can't find part: boot
Android image load failed
Android boot failed, error -1.
## Booting FIT Image FIT: No boot partition
FIT: No fit blob
FIT: No FIT image
Unknown command 'bootrkp' - try 'help'
switch to partitions #0, OK
mmc1 is current device
Scanning mmc 1:1...
Found U-Boot script /boot.scr
3252 bytes read in 8 ms (396.5 KiB/s)
## Executing script at 00500000
Unknown command 'B' - try 'help'
SCRIPT FAILED: continuing...
switch to partitions #0, OK
mmc0(part 0) is current device
Failed to mount ext2 filesystem...
** Unrecognized filesystem type **
Device 2: unrecognized JEDEC id bytes: 00, 00, 00
unknown device
Device 1: unknown raw ID 0 0 0
Device 0: unknown device
starting USB...
No working controllers found
USB is stopped. Please issue 'usb start' first.
starting USB...
No working controllers found
No ethernet found.
missing environment variable: pxeuuid
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/00000000
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/0000000
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/000000
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/00000
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/0000
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/000
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/00
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/0
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/default-arm-rockchip
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/default-arm
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/default
No ethernet found.
Config file not found
starting USB...
No working controllers found
No ethernet found.
=>
机器也自带emmc的
HI,ophub 是不是内核不能用5.10.153呢?rk3588好像只有5.10.110的吧!可以用5.10.110来编译一下吗
我删了153了,现在用110打包个试试,但是这个应该没影响,我rock5b(rk3588)用的153也正常使用
这样啊
那sd卡启动的话,需要 &sdmmc { status = "okay"; };这个sd卡的配置的吗? 或者usb怎么启动呢
好的,谢谢
HI ophub 感觉是uboot要加入一些启动的引导才可以
我先研究研究看看
https://github.com/gwx11111111/uboot_ipc/tree/beelink_RK3358_rk12/arch/arm/dts
你这里缺你设备的 rk3588-nvr-demo-v10-android.dts 文件。
你看下 https://github.com/radxa/u-boot/tree/next-dev/arch/arm/dts 看看 https://github.com/radxa/u-boot/blob/next-dev/arch/arm/dts/rk3588-rock-5b.dts
u-boot这个仓库里,把 configs和dts添加调试好就可以了。把你之前的错误修复下,更新下这个仓库再编译试试。
这个就是设备uboot下的./arch/arm/dts/rk3588-evb.dts dts啊或者想的话同名的话直接copy rk3588-evb.dts dts为rk3588-nvr-demo-v10-android.dts 也可以了
HI,ophub 我这边拉不下来(https://github.com/radxa/build.git)这个仓库, 你那边能不能用 https://github.com/radxa/u-boot.git 这个仓库然后用这个rk3588_defconfig配置文件编译就是我们板子的配置了,看看是不是我哪个是安卓的uboot不行呢
rkbin还是用我哪个仓库的
uboot的dts在 这里指定的
https://github.com/ophub/amlogic-s9xxx-openwrt/releases/tag/OpenWrt_lede_04.14.0446
你再试试这个。我用你的源码编译也没报错,怎么不能用呢?
dts 的 Makefile 我也加了,各环节需要生成的文件我都检查了都是新生成的,编译很顺利。
HI,ophub 我看了一下https://github.com/radxa/u-boot.git这个仓库的提交, 它里面加了很多关于引到的提交,但是我对比了安卓uboot,安卓 uboot没有的 像下面的:
HI,ophub
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
channel[1] 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
out
U-Boot SPL board init
U-Boot SPL 2017.09-g08bbf419fb-dirty #zrb (Apr 06 2023 - 20:06:03)
Failed 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(ce2098067b...) + OK
## Checking uboot 0x00200000 ... sha256(f1748af09d...) + OK
## Checking fdt 0x00339a70 ... sha256(c07f4a4d71...) + OK
## Checking atf-2 0x000f0000 ... sha256(ebc45c531e...) + OK
## Checking atf-3 0xff100000 ... sha256(9ded9f3bb5...) + OK
## Checking optee 0x08400000 ... sha256(fde0860845...) + OK
Jumping to U-Boot(0x00200000) via ARM Trusted Firmware(0x00040000)
Total: 419.406 ms
INFO: Preloader serial: 2
NOTICE: BL31: v2.3():v2.3-444-g1450d21e8:derrick.huang
NOTICE: BL31: Built : 16:25:50, Oct 12 2022
INFO: spec: 0x1
INFO: ext 32k is not valid
INFO: ddr: stride-en 4CH
INFO: GICv3 without legacy support detected.
INFO: ARM GICv3 driver initialized in EL3
INFO: valid_cpu_msk=0xff bcore0_rst = 0x0, bcore1_rst = 0x0
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
INFO: BL31: Initializing BL32
INFO: hdmirx_handler: dma not on, ret
I/TC:
I/TC: OP-TEE version: 3.13.0-652-g4542e1efd #derrick.huang (gcc version 10.2.1 20201103 (GNU Toolchain for the A-profile Architecture 10.2-2020.11 (arm-10.16))) #5 2022年 09月 20日 星期二 09:41:09 CST aarch64
I/TC: Primary CPU initializing
I/TC: Primary CPU switching to normal world boot
INFO: BL31: Preparing for EL3 exit to normal world
INFO: Entry point address = 0x200000
INFO: SPSR = 0x3c9
U-Boot 2017.09-g48922e8182-dirty #smith (Apr 14 2023 - 08:32:15 +0000)
Model: Rockchip RK3588 Evaluation Board
PreSerial: 2, raw, 0xfeb50000
DRAM: 7.7 GiB
Sysmem: init
Relocation Offset: eda3d000
Relocation fdt: eb9fa738 - eb9fecc8
CR: M/C/I
Using default environment
Hotkey: ctrl+`
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
Model: Rockchip RK3588 Evaluation Board
rockchip_set_serialno: could not find efuse/otp device
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 100000 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
Could not find misc partition
ANDROID: reboot reason: "(none)"
optee api revision: 2.0
TEEC: Waring: Could not find security partition
Not AVB images, AVB skip
android_image_load_by_partname: Can't find part: boot
Android image load failed
Android boot failed, error -1.
## Booting FIT Image FIT: No boot partition
FIT: No fit blob
FIT: No FIT image
Unknown command 'bootrkp' - try 'help'
switch to partitions #0, OK
mmc1 is current device
Scanning mmc 1:1...
Found U-Boot script /boot.scr
3406 bytes read in 7 ms (474.6 KiB/s)
## Executing script at 00500000
Boot script loaded from mmc 1
"Error" handler, esr 0xbe000411
* Reason: Exception from SError interrupt
* PC = 00000000002b9804
* LR = 000000000029d8bc
* SP = 00000000eb9f7df0
* ESR_EL2 = 00000000be000411
* Reloc Off = 00000000eda3d000
x0 : 0000000009000000 x1 : 00000000eb9f8000
x2 : 0000000000000194 x3 : 0000000000000050
x4 : 3d444955553d7665 x5 : 0000000000000001
x6 : 00000000eb9f8000 x7 : 0000000000001000
x8 : 0000000080000010 x9 : 0000000000000008
x10: 0000000080000014 x11: 0000000000000010
x12: 0000000000000000 x13: 0000000000000004
x14: 00000000eb9fa738 x15: 0000000000000021
x16: 00000000edc892b0 x17: 0000000000000005
x18: 00000000eb9ffce0 x19: 00000000ebc3b630
x20: 0000000000000194 x21: 0000000009000000
x22: 0000000000008530 x23: 00000000edecaed0
x24: 00000000eb9f8000 x25: 00000000eb9f8210
x26: 0000000000000000 x27: 0000000000000009
x28: 0000000000008530 x29: 00000000eb9f8460
Call trace:
PC: [< 002b9804 >]
LR: [< 0029d8bc >]
Stack:
[< 002b9804 >]
[< 00299980 >]
[< 00299b24 >]
[< 00298ed0 >]
[< 0029935c >]
[< 0022e2a0 >]
[< 00217794 >]
[< 00217948 >]
[< 00217098 >]
[< 0021764c >]
[< 00217428 >]
[< 00217948 >]
[< 0021705c >]
[< 0022d790 >]
[< 00208778 >]
[< 00208880 >]
[< 0022e2a0 >]
[< 00217794 >]
[< 00217948 >]
[< 00217098 >]
[< 0021764c >]
[< 00217948 >]
[< 0021705c >]
[< 0022d82c >]
[< 0022e2a0 >]
[< 00217794 >]
[< 00217428 >]
[< 00217428 >]
[< 00217948 >]
[< 0021705c >]
[< 0022d82c >]
[< 0022e2a0 >]
[< 00217794 >]
[< 00217428 >]
[< 00217948 >]
[< 0021705c >]
[< 0022d82c >]
[< 0022e2a0 >]
[< 00217794 >]
[< 00217428 >]
[< 00217428 >]
[< 00217948 >]
[< 0021705c >]
[< 0022d82c >]
[< 0022e2a0 >]
[< 00217794 >]
[< 00217428 >]
[< 00217948 >]
[< 0021705c >]
[< 0022d82c >]
[< 0022e2a0 >]
[< 00217794 >]
[< 00217948 >]
[< 0021705c >]
[< 0022d82c >]
[< 0022e2a0 >]
[< 00217794 >]
[< 00217948 >]
[< 00217098 >]
[< 0021764c >]
[< 00217428 >]
[< 00217948 >]
[< 0021705c >]
[< 0022d82c >]
[< 0022e2a0 >]
[< 00217794 >]
[< 00217948 >]
[< 0021705c >]
[< 0022d790 >]
[< 00217fe8 >]
[< 00215e7c >]
[< 00218680 >]
[< 002a0bb4 >]
[
![image](https://user-images.githubusercontent.com/130017002/232001948-f5aacca1-1849-4b7f-92d0-4b643214f380.png)
< 002188b4 >]
[< 00201e18 >]
Copy info from "Call trace..." to a file(eg. dump.txt), and run
command in your U-Boot project: ./scripts/stacktrace.sh dump.txt
Resetting CPU ...
根据这里看
还像还是安卓的uboot不行
Hi,ophub 测试了上面最新的,有以上的报错
下面使用的 build 修改文件:build.zip
mkdir 5b
cd 5b
git clone -b stable-5.10-rock5 https://github.com/radxa/u-boot.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/configs
cp rk3588_defconfig ipc-rk3588_defconfig
ipc-rk3588_defconfig 看了下,内容没需要修改的又了下又覆盖回去。
给 u-boot/arch/arm/dts/Makefile 添加了编译 rk3588-evb.dtb
添加了选项 https://github.com/radxa/build/blob/debian/board_configs.sh
"rk3588-ipc")
DEFCONFIG=rockchip_linux_defconfig
UBOOT_DEFCONFIG=ipc-rk3588_defconfig
DTB=rk3588-evb.dtb
export ARCH=arm64
export CROSS_COMPILE=aarch64-linux-gnu-
CHIP="rk3588"
;;
根据你的rkbin源码修改了版本和文件 https://github.com/radxa/build/blob/debian/mk-uboot.sh
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 ../rkbin/bin/rk35/rk3588_spl_* ${OUT}/u-boot
generate_spi_image
fi
./build/mk-uboot.sh rk3588-ipc
编译没报错,需要的u-boot都生成完成了。