ophub / amlogic-s9xxx-openwrt

Support for OpenWrt in Amlogic, Rockchip and Allwinner boxes. Support a311d, s922x, s905x3, s905x2, s912, s905d, s905x, s905w, s905, s905l, rk3588, rk3568, rk3399, rk3328, h6, etc.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

gwx11111111 opened this issue · comments

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.
这是为什么呢?
commented

什么机器

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

image

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

commented

目前的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

commented

你好像不是直接在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文件也放压缩包里。

commented

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

commented
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

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

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

commented

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

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

commented

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

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

commented
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

commented

你发的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

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

=NULL加上

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

commented

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

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

commented

用我上面修改的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来编译一下吗

commented

我删了153了,现在用110打包个试试,但是这个应该没影响,我rock5b(rk3588)用的153也正常使用

这样啊

那sd卡启动的话,需要
&sdmmc {
status = "okay";
};这个sd卡的配置的吗?
或者usb怎么启动呢

好的,谢谢

HI ophub
感觉是uboot要加入一些启动的引导才可以

我先研究研究看看

commented

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在
image
这里指定的

commented

https://github.com/ophub/amlogic-s9xxx-openwrt/releases/tag/OpenWrt_lede_04.14.0446

你再试试这个。我用你的源码编译也没报错,怎么不能用呢?

dts 的 Makefile 我也加了,各环节需要生成的文件我都检查了都是新生成的,编译很顺利。

Snip20230414_11

Snip20230414_12

Snip20230414_13

Snip20230414_14
Snip20230414_15

HI,ophub
我看了一下https://github.com/radxa/u-boot.git这个仓库的提交,
它里面加了很多关于引到的提交,但是我对比了安卓uboot,安卓
uboot没有的
像下面的:
image

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
测试了上面最新的,有以上的报错

commented

下面使用的 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都生成完成了。

Snip20230414_16
Snip20230421_2

Snip20230414_18
Snip20230414_19
Snip20230414_20

HI,ophub
上面的测试固件就是 https://github.com/radxa/u-boot.git 的吗?还是radxa的uboot还在编译呢

是安卓内核5.10.110编译的

commented

你把你的 rk3588-nvr-demo-v10-android.dts 放在 https://github.com/unifreq/linux-5.10.y-rk35xx 这个里编译下看看,5b的 u-boot和kernel用这个现在几个rk3588设备都可以正常运行.

好的

谢谢了

commented

你直接放他就不编译,能不能用忽略了。制作过程只是复制dtb,不管这个文件是不是可以正常使用。

现在u-boot顺利编译,用你的和radxa的都可以编译完成,如果你使用的是rk3588-evb的话现在编译的u-boot就可以使用,过程在上面的帖子都说明了。可能是dtb的问题了。

你放到kernel源码下编译dts,要保障你的这个dtb是可以正常编译,可以和u-boot正常配合使用的。

commented

内核是从f大维护的这个源码仓库提前编译好的文件,制作op时直接使用已经编好的内核文件,省时间。

https://github.com/ophub/kernel/blob/main/.github/workflows/compile-rk3588-kernel.yml

编好的放这个tags下了:

https://github.com/ophub/kernel/releases/tag/kernel_rk3588

在Armbian放的是临时用的:

https://github.com/ophub/amlogic-s9xxx-armbian/tree/main/build-armbian/armbian-files/platform-files/rockchip/bootfs/dtb/rockchip

这里是内核tar解压的文件,在制作op时从内核仓库tags下载最新文件,解压并覆盖上面的同名文件。现在内核tar包里没有你的这个dtb,所以放解压包里,制作op时没有同名文件覆盖,就保留下来了,以后把你的dts也添加到这个内核仓库里以后,这个目录里面的就没用了,每次都会被覆盖了

kernel_repo="https://github.com/ophub/kernel"

[[ -d "${platform_bootfs}" ]] && cp -rf ${platform_bootfs}/* ${tag_bootfs}

tar -xzf ${kernel_dtb} -C ${tag_bootfs}/dtb/${PLATFORM}

HI,ophub
    好的,了解
现在最新的tf卡启动可以开机了,但是一直
[    2.504005] es8311 3-0018: ASoC: error at soc_component_read_no_lock on es8311.3-0018: -6
[    2.504152] es8311 3-0018: ASoC: error at soc_component_read_no_lock on es8311.3-0018: -6
[    2.504299] es8311 3-0018: ASoC: error at soc_component_read_no_lock on es8311.3-0018: -6
[    2.504447] es8311 3-0018: ASoC: error at soc_component_write_no_lock on es8311.3-0018: -6
[    2.504597] es8311 3-0018: ASoC: error at soc_component_read_no_lock on es8311.3-0018: -6
[    2.504744] es8311 3-0018: ASoC: error at soc_component_write_no_lock on es8311.3-0018: -6
[    2.504892] es8311 3-0018: ASoC: error at soc_component_write_no_lock on es8311.3-0018: -6
[    2.505040] es8311 3-0018: ASoC: error at soc_component_write_no_lock on es8311.3-0018: -6
[    2.505884] es8311 3-0018: ASoC: error at soc_component_read_no_lock on es8311.3-0018: -6
[    2.506038] es8311 3-0018: ASoC: error at soc_component_read_no_lock on es8311.3-0018: -6
[    2.509218] ALSA device list:
[    2.509228]   #0: rockchip,dp1
[    2.509234]   #1: rockchip,hdmi0
[    2.509238]   #2: rockchip,es8311
[    2.513022] Freeing unused kernel memory: 7488K
[    2.521967] Run /init as init process
[    2.540201] vendor storage:20190527 ret = 0
[    2.563755] usb 2-1: New USB device found, idVendor=05e3, idProduct=0608, bcdDevice=85.36
[    2.563798] usb 2-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    2.563814] usb 2-1: Product: USB2.0 Hub
[    2.564655] hub 2-1:1.0: USB hub found
[    2.564993] hub 2-1:1.0: 4 ports detected
[    2.715420] mali fb000000.gpu: Kernel DDK version g15p0-01eac0
[    2.718011] mali fb000000.gpu: bin=0
[    2.718207] mali fb000000.gpu: leakage=21
[    2.718269] debugfs: Directory 'fb000000.gpu-mali' with parent 'vdd_gpu_s0' already present!
[    2.725246] mali fb000000.gpu: pvtm=866
[    2.726339] mali fb000000.gpu: pvtm-volt-sel=3
[    2.726839] mali fb000000.gpu: avs=0
[    2.726927] W : [File] : drivers/gpu/arm/bifrost/platform/rk/mali_kbase_config_rk.c; [Line] : 136; [Func] : kbase_platform_rk_init(); power-off-delay-ms not available.
[    2.738775] mali fb000000.gpu: GPU hardware issue table may need updating:
[    2.738775] r0p0 status 5 is unknown; treating as r0p0 status 0
[    2.738800] mali fb000000.gpu: GPU identified as 0x7 arch 10.8.6 r0p0 status 0
[    2.738845] mali fb000000.gpu: No priority control manager is configured
[    2.738942] mali fb000000.gpu: No memory group manager is configured
[    2.738964] mali fb000000.gpu: Protected memory allocator not available
[    2.739429] mali fb000000.gpu: Capping CSF_FIRMWARE_TIMEOUT to CSF_FIRMWARE_PING_TIMEOUT
[    2.740236] mali fb000000.gpu: Couldn't find power_model DT node matching 'arm,mali-simple-power-model'
[    2.740257] mali fb000000.gpu: Error -22, no DT entry: mali-simple-power-model.static-coefficient = 1*[0]
[    2.740484] mali fb000000.gpu: Error -22, no DT entry: mali-simple-power-model.dynamic-coefficient = 1*[0]
[    2.740649] mali fb000000.gpu: Error -22, no DT entry: mali-simple-power-model.ts = 4*[0]
[    2.740814] mali fb000000.gpu: Error -22, no DT entry: mali-simple-power-model.thermal-zone = ''
[    2.743178] mali fb000000.gpu: Using configured power model mali-lodx-power-model, and fallback mali-simple-power-model
[    2.743386] mali fb000000.gpu: l=10000 h=85000 hyst=5000 l_limit=0 h_limit=800000000 h_table=0
[    2.762016] mali fb000000.gpu: Probed as mali0
卡在这里

commented

https://github.com/ophub/amlogic-s9xxx-armbian/releases/tag/Armbian_bullseye_04.14.0709

rock5b一直想要gpu还使用不上,op卡这了,你下载上面的armbian试试,刷tf卡启动看看什么情况。下载名字里带ipc-r的文件。

好的

下载上面的armbian也是一样卡在gpu这里了

commented

好的,这个问题我没遇到过,我问问f大这怎么解决。

好的,谢谢!

commented

我猜测可能是dtb的问题,gpu在op里没用,在armbian里现在rock5b官方还在开发中没用上,所以要使用gpu应该是你dtb触发的,但是现在内核里没有。
你把你的dts放f大的内核仓库调试下,这个dts关联的几个文件和他的内核仓库调试下。

https://github.com/unifreq/linux-5.10.y-rk35xx

好的,我再研究研究

hi,ophub
armbian和openwrt改了dtb,armbian现在好像能开机了,但是以太网不能用
image
openwrt用一样的dtb
image
卡在这里,好像以太网也是不能用的,这是为啥呢

commented

你有USB转千兆网卡接一个,应该USB网卡可以正常工作。

板载网卡不能工作说明dtb里网卡节点设置的不正确。

你的网卡是千兆还是2.5g的,和rock5b那些用的不同?你看内核源码里驱动有没有

dtb网卡节点已经改成了我们的配置了的,和rock5b是不一样
,看了内核也有驱动的drivers/net/phy/realtek.c驱动是这个文件

commented

https://github.com/unifreq/linux-5.10.y-rk35xx

把你的相关文件放进去,make munuconfig把驱动等选择好,编译一个内核

可以用下面这个仑库的actions编:
https://github.com/ophub/kernel

这个config换成你make munuconfig改好的.config更名为config-5.10覆盖这个模板
https://github.com/ophub/kernel/blob/main/kernel-config/rk3588/config-5.10

编内核actions
https://github.com/ophub/kernel/blob/main/.github/workflows/compile-rk3588-kernel.yml

编译前先给编译仓库添加token,不然最后一步没有权限上传到releases里。看1-3这几节的添加方法:
https://github.com/ophub/amlogic-s9xxx-armbian/blob/main/build-armbian/documents/README.cn.md

好的

HI,ophub
我这边fork你们的仓库,改成了我自己的仓库编译,好像编译出来的openwrt固件有问题呢?改cang仓库的代码如下
image
image
image
编译出来的固件比你编译出来的小几十M
这是我编译出来的固件
https://github.com/gwx11111111/amlogic-s9xxx-openwrt/releases/download/OpenWrt_lede_04.15.1319/openwrt_lede_rockchip_ipc-r_k5.10.110_2023.04.15.img.gz

HI,ophub
我看了一下内核编译,好像有报错
image
为什么有报错也能编译成功呢?

HI,ophub
rk3588编译openwrt时下面的这个tags要选择那个呢?还是3个都可以的

image

commented

对rk3588这个选项无效,rk3588只会从kernel_rk3588下载。所以可以任选一个。

commented

编译内核的错误往前再看,日志一千行就退出了不对,日志应该有几万行才能编完

好的,我查一下代码先

HI,ophub
为什么eth0网卡会进入禁用状态的呢?目前dts已经配置好板子的网卡了,看内核的编译日志驱动realtek.o也有编译出来;
配置好的2个网卡都有跑:
image
但是到最后eth0就进入了禁用状态
image
这是为什么知道吗

HI,ophub
还有现在开机能连接上以太网,但是一会就断开了,还有openwrt还是不能开机成功,这是为啥呢
image
openwrt现在还是一直卡在这
image

Hi,ophub
现在我接了个usb网卡,
但是还是不能进到命令行里面呢?
image
还是卡在这里呢

commented

错误还是dts里phy配置不对。

你可以先拿armbian测试,这个相当于是电脑,每个网口默认是独立的,只要网卡工作正常接入其中一个就可以上网了。

openwrt到时候得添加多网卡设置,例如在openwrt系统的 /etc/board.d/ 目录下添加网卡设置: https://github.com/unifreq/openwrt_packit/tree/master/files/rk3568/r68s/board.d

你可以把armbian和openwrt的启动认为是完全相同的设置。所以u-boot和dtb正确的情况下,armbian可以正常启动和工作了,openwrt也就可以了,两个系统的差异化设置好弄。

好的,我重新编译一个openwrt和armbian先看看

HI,ophub
我现在把板子自带的网卡都关闭了,现在插上usb网卡还是连接上后有关闭了,感觉这不像是dts配置的问题了
image

commented

https://forum.openwrt.org/t/interface-goes-up-and-down-continously/122106

你的问题和你一样的网卡(Realtek Chip, Driver = Generic FE-GE Realtek PHY r8169) ,一样的症状。他们的反馈是线缆的兼容性问题。帖子里的人建议使用交换机,提问的人反馈他更换电缆后不再这样掉线了。

还有桥接设置的问题: https://openwrt-devel.openwrt.narkive.com/XHDYKsek/how-does-openwrt-start-network

openwrt/openwrt#9440

HI,ophub
armbian目前接上网线是有up的,没出现掉线的日志,也能进到命令行
image
openwrt用和armbian一样的dts,
但是还是一样up后就掉线了,并且不能进入到命令行一直卡在下面
image
因为uboot和dts都一样的,只有openwrt有问题,说明是openwrt系统的问题了;
还有我发现在ubuntu上armbian可以查看ROOTFS的文件夹的,但是openwrt的话
查看不了ROOTFS的文件夹,是不是openwrt的ROOTFS有问题呢?

armbian的ROOTFS:
image
openwrt的ROOTFS:
image

rk3588内置千兆网卡的驱动好象不支持promisc模式,因此在op固件里做不了lan口,只能做wan口,这种情况在h88k上曾经遇到过。解决办法暂时没有。

那不能进入到登陆用户的地方呢

像进入到
image
这里

commented

楼上的 unifreq 就是网络上大家习惯叫的 f 大(flippy),我的armbian和openwrt所知道的都是和他学习的。这2个系统的boot引导分区的设置都是遵循的他的标准。

openwrt的这个欢迎界面是默认跑码完后是不显示的,接USB键盘一回车就看到banner了

HI,ophub
好的,了解; 但是按键盘回车没有效果,armbian按回车是可以进入banner的

commented

armbian第一次进来也看不到banner,是一个修改密码的提示界面,root和1234进去后修改了密码,再次进入的时候就是欢迎banner了。

openwrt如果用不了这个网卡,可能产品设计上要换支持的网卡?这么多网卡,换2.5G的比较香,你是beelink的工作人员?

可能是askffirst进程没起来,要检查/etc/inittab文件
rk3588一般是这样的:
::sysinit:/etc/init.d/rcS S boot
::shutdown:/etc/init.d/rcS K shutdown
tty1::askfirst:/usr/libexec/login.sh
ttyS2::askfirst:/usr/libexec/login.sh
ttyFIQ0::askfirst:/usr/libexec/login.sh

hi,unifreq
进不了命令行,怎么检查呢

那只能检查打包的固件,你们用哪个固件改的?

那固件怎么解包有方法吗

用linux解包,losetup -fP img文件名
lsblk会发现/dev/loopX 设备,然后把loopXp2挂载到一个空白目录即可
例如mount /dev/loop0p2 /mnt