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.
GNU General Public License v2.0
1.7k stars 1.51k forks source link

CM311-1 CH版本,写入EMMC后无法启动 #423

Closed Becods closed 1 year ago

Becods commented 1 year ago

Device Information | 设备信息

Armbian Version | 系统版本

Describe the bug | 问题描述 使用从release中下载的固件

解压后文件名openwrt_official_amlogic_s905l3b_k5.15.109_2023.04.27.img

写入EMMC后无法启动,U盘启动正常

box model选择112,在armbian中测试过能正常通过EMMC启动

U盘启动uboot日志

EMMC启动uboot日志

U盘启动系统日志

安装日志

``` root@OpenWrt:/# openwrt-install-amlogic AUTO_MAINLINE_UBOOT: SPECIFY_DTB: SPECIFY_SOC: SPECIFY_UBOOT: SHARED_FSTYPE: Current device: Amlogic Meson GXL (S905L3b) MBH-M302A Box [ amlogic ] /dev/mmcblk2 mmcblk2 : 15634268160 bytes ROOTFS: sda2 BOOT: sda1 Please select s9xxx box model: ---------------------------------------------------------------------------------------------------- 101. Phicomm-N1 s905d 2GB-Mem,1Gb-Nic,brcm43455-wifi 102. Phicomm-N1(DMA-thresh) s905d When-ethmac-flow-control-is-off 103. HG680P s905x 2+8G,100Mb-Nic 104. TX3-Mini s905w 2+8G,100Mb-Nic 105. MECOOL-KI-Pro s905d 2G/16G,1Gb-Nic 106. T95 s905x 2G/16G,1Gb-Nic 107. B860H s905x 2+8G,100Mb-Nic 108. TBee s905x 2+8G,100Mb-Nic 109. W95 s905w 2GB-RAM,16GB-ROM,100Mb-Nic 110. X96-Mini s905w 2+8G,100Mb-Nic 111. TX9 s905x 100Mb-Nic,rtl8723cs-WLAN 112. M302A,M304A,CM211-1,CM311-1 s905l3b 2+8G,100Mb-Nic 113. MGV2000,MGV3000,M301A s905l2 2+8G,100Mb-Nic 114. Wojia-TV-IPBS9505 s905l2 2+8G,100Mb-Nic 115. Q96-mini s905lb 1G/8G,100Mb-Nic 116. CM311-1,HG680-LC,M401A s905l3 2+8G,100Mb-Nic 117. E900V22E s905l3b 2+8G,100Mb-Nic 118. BesTV-R3300L,SumaVision-Q7 s905lb 2+8G,100Mb-Nic 119. X96W,FunTV,MXQ-Pro-4K s905w 2GB-RAM,16GB-ROM,100Mb-Nic,AP6255-wifi/BT 120. E900V22D s905l3b 2+8G,100Mb-Nic 121. UNT400G1 s905l3 2+8G,100Mb-Nic 122. E900v21E s905l2 2+8G,100Mb-Nic 123. IP103H,TY1608 s905l3b 2+8G,100Mb-Nic 124. CM211-1 s905l3 2+8G,100Mb-Nic 201. Octopus-Planet s912 2GB-Mem,1Gb-Nic 202. Octopus-Planet(FAKE) s912 2GB-Mem,1Gb-Nic 203. H96-Pro-Plus s912 2G/32G,1Gb-Nic 204. Tanix-TX92 s912 3GB-DDR4,32GB-eMMC,5G-WIFI,1Gb-Nic 205. VORKE-Z6-Plus s912 3GB-DDR3,32GB-eMMC,1Gb-Nic 206. MECOOL-M8S-Pro-L s912 2G/3G-RAM,16G/32G-ROM,100Mb-Nic 207. T95Z-Plus s912 3G+32G,1Gb-Nic 208. TX9-Pro(3G_32G_1Gb) s912 3G-RAM,32G-ROM,1Gb-Nic,brcm43455-wifi 209. TX9-Pro(2G_16G_100Mb) s912 3G-RAM,32G-ROM,100Mb-Nic,RTL8189ETV-wifi 210. Nexbox-A1,A95X s912 2G-DDR3-RAM,16G-eMMC,1Gb-Nic 211. Nexbox-A95X-A2 s912 2GB-RAM,16GB-ROM,2.4G/5.0G-WiFi,1Gb-Nic 212. Tanix-TX8-MAX s912 3GB-RAM,16GB/32GB-eMMC,1Gb-Nic 213. Vontar-X92 s912 3GB-RAM,16GB/32GB-eMMC,1Gb-Nic 214. Phicomm-T1 s912 2G-RAM,16G-ROM,100Mb-Nic,Wifi,Bluetooth 301. X96-Max-4GB,Tx5-Max s905x2 4GB-Mem,1Gb-Nic 302. X96-Max-2GB,A95X-F2 s905x2 2GB-Mem,100Mb-Nic 303. MECOOL-KM3-4G s905x2 4+64G/128G,100Mb-Nic 304. E900V22C-D s905l3a 4+64G/128G,100Mb-Nic 305. CM311-1a-YST s905l3a 2+16G,BT-rtl8761b,100Mb-Nic 306. M401A,UNT403A,B863AV3.2-M s905l3a 2+16G,100Mb-Nic 401. GT-King s922x 4GB-Mem,1Gb-Nic,brcm4356-wifi 402. GT-King-Pro,X88-King s922x 4GB-Mem,1Gb-Nic,brcm4356-wifi 403. GT-King-Pro-H s922x 4GB-Mem,1Gb-Nic,brcm4356-wifi 404. GT-King-Pro-Rev_A s922x 4GB-Mem,1Gb-Nic,brcm4356-wifi 405. Hardkernel-ODroid-N2 s922x 4GB-Mem,1Gb-Nic 406. UGOOS-AM6-Plus s922x 4GB-Mem,1Gb-Nic,brcm4398-wifi 407. Khadas-VIM3 a311d 1Gb-Nic,brcm4398-wifi 408. Ali-CT2000 s922x 4GB-Mem,16GB-eMMC,1Gb-Nic,Bluetooth,wifi 501. HK1-Box,Vontar-X3 s905x3 4GB-Mem,1Gb-Nic,brcm4339-wifi 502. HK1-Box(OverClock) s905x3 4GB-Mem,1Gb-Nic,brcm4339-wifi 503. H96-Max-X3,Infinity-B32 s905x3 4GB-Mem,1Gb-Nic,brcm4339-wifi 504. H96-Max-X3(OverClock),B32 s905x3 4GB-Mem,1Gb-Nic,brcm4339-wifi 505. Ugoos-X3 s905x3 4GB-Mem,1Gb-Nic,brcm43455/43456-wifi 506. Ugoos-X3(OverClock) s905x3 4GB-Mem,1Gb-Nic,brcm43455/43456-wifi 507. TX3-1Gb s905x3 4GB-Mem,1Gb-Nic,bcm4330-wifi 508. TX3-1Gb(OverClock) s905x3 4GB-Mem,1Gb-Nic,bcm4330-wifi 509. TX3-100Mb s905x3 4GB-Mem,100Mb-Nic,bcm4330-wifi 510. TX3-100Mb(OverClock) s905x3 4GB-Mem,100Mb-Nic,bcm4330-wifi 511. A95XF3-Air-1Gb s905x3 2GB-Mem,1Gb-Nic,Wifi 512. A95XF3-Air-100Mb s905x3 2GB-Mem,100Mb-Nic,Wifi 513. Tencent-Aurora-3Pro s905x3 4GB-Mem,32G-Rom,1Gb-Nic(JL2xx1) 514. X96-Air-1Gb s905x3 2GB-Mem,1Gb-Nic,Wifi 515. X96-Air,X96-Max+100W,100Mb s905x3 2GB-Mem,100Mb-Nic,Wifi 516. X96-Air-Q1000 s905x3 4GB-Mem,1Gb-Nic,qca9377-wifi 517. X96-Max+_100Mb s905x3 4GB-Mem,1Gb-Nic,rtl8822cs-wifi 518. X96-Max+_1GB s905x3 4GB-Mem,1Gb-Nic,rtl8822cs-wifi 519. X96-Max+(OverClock) s905x3 4GB-Mem,1Gb-Nic,rtl8822cs-wifi 520. X96-Max+(IP1001M) s905x3 4GB-Mem,1Gb-Nic(IP1001M),brcm4354-wifi 521. X96-Max+Q1 s905x3 4GB-Mem,32G-Rom,Wifi-work,100Mb-Nic 522. X96-Max+Q2 s905x3 4GB-Mem,1Gb-Nic,qca9377-wifi 523. X96-Max+_A100 s905x3 4GB-Mem,32G-Rom,Wifi-AM7256,100Mb-Nic 524. X96-Max+_2101 s905x3 4GB-Mem,32G-Rom,Wifi/BT,1Gb-Nic(JL2xx1) w101. Vplus-Cloud h6 1GB-DDR3,8G-eMMC,1Gb-Nic w102. Tanix-TX6 h6 2GB/4GB-DDR3,16G/32G-eMMC,100Mb-Nic ---------------------------------------------------------------------------------------------------- Please choose: 112 AMLOGIC_SOC Value [ s905l3b ] FDTFILE Value [ meson-gxl-s905l3b-m302a.dtb ] UBOOT_OVERLOAD Value [ u-boot-s905x-s912.bin ] MAINLINE_UBOOT Value [ ] ANDROID_UBOOT Value [ ] K510 [ 0 ] Backup bootloader -> [ BackupOldBootloader.img ] ... 4+0 records in 4+0 records out Backup bootloader complete. /mnt/mmcblk2p1 umount -f /mnt/mmcblk2p1 /mnt/mmcblk2p2 umount -f /mnt/mmcblk2p2 A total of [ 2 ] old partitions on EMMC will be deleted Welcome to fdisk (util-linux 2.38.1). Changes will remain in memory only, until you decide to write them. Be careful before using the write command. Command (m for help): Partition number (1,2, default 2): Partition 2 has been deleted. Command (m for help): Selected partition 1 Partition 1 has been deleted. Command (m for help): Partition type p primary (0 primary, 0 extended, 4 free) e extended (container for logical partitions) Select (default p): Partition number (1-4, default 1): First sector (2048-30535679, default 2048): Last sector, +/-sectors or +/-size{K,M,G,T,P} (139264-30535679, default 30535679): Created a new partition 1 of type 'Linux' and of size 160 MiB. Command (m for help): Partition type p primary (1 primary, 0 extended, 3 free) e extended (container for logical partitions) Select (default p): Partition number (2-4, default 2): First sector (2048-30535679, default 2048): Last sector, +/-sectors or +/-size{K,M,G,T,P} (466944-30535679, default 30535679): Created a new partition 2 of type 'Linux' and of size 960 MiB. Command (m for help): Partition type p primary (2 primary, 0 extended, 2 free) e extended (container for logical partitions) Select (default p): Partition number (3,4, default 3): First sector (2048-30535679, default 2048): Last sector, +/-sectors or +/-size{K,M,G,T,P} (2764800-30535679, default 30535679): Created a new partition 3 of type 'Linux' and of size 960 MiB. Command (m for help): Partition type p primary (3 primary, 0 extended, 1 free) e extended (container for logical partitions) Select (default e): Selected partition 4 First sector (2048-30535679, default 2048): Last sector, +/-sectors or +/-size{K,M,G,T,P} (4730880-30535679, default 30535679): Created a new partition 4 of type 'Linux' and of size 12.3 GiB. Command (m for help): Partition number (1-4, default 4): Hex code or alias (type L to list all): Changed type of partition 'Linux' to 'W95 FAT32 (LBA)'. Command (m for help): Partition number (1-4, default 4): Hex code or alias (type L to list all): Changed type of partition 'Linux' to 'Linux'. Command (m for help): Partition number (1-4, default 4): Hex code or alias (type L to list all): Changed type of partition 'Linux' to 'Linux'. Command (m for help): Partition number (1-4, default 4): Hex code or alias (type L to list all): Changed type of partition 'Linux' to 'Linux'. Command (m for help): The partition table has been altered. Calling ioctl() to re-read partition table. [ 386.814116] mmcblk2: p1 p2 p3 p4 Syncing disks. Partition complete. 1+0 records in 1+0 records out 1+0 records in 1+0 records out 1+0 records in 1+0 records out 1+0 records in 1+0 records out Did not change the original bootloader. Start creating file system ... Create a boot file system ... format boot partiton... mkfs.fat 4.2 (2021-01-31) format rootfs1 partiton... btrfs-progs v6.0.1 See http://btrfs.wiki.kernel.org for more information. Performing full device TRIM /dev/mmcblk2p2 (960.00MiB) ... NOTE: several default settings have changed in version 5.15, please make sure this does not affect your deployments: - DUP for metadata (-m dup) - enabled no-holes (-O no-holes) - enabled free-space-tree (-R free-space-tree) Label: EMMC_ROOTFS1 UUID: 313858d6-0b1c-462a-a425-9d04c1a3a4a0 Node siz[ 389.868225] BTRFS: device label EMMC_ROOTFS1 devid 1 transid 6 /dev/mmcblk2p2 scanned by mkfs.btrfs (6608) e: 16384 Sector size: 4096 Filesystem size: 960.00MiB Block group profiles: Data: single 8.00MiB Metadata: single 8.00MiB System: single 4.00MiB SSD detected: yes Zoned device: no Incompat features: extref, skinny-metadata, no-holes Runtime features: free-space-tree Checksum: crc32c Number of devices: 1 Devices: ID SIZE PATH 1 960.00MiB /dev/mmcblk2p2 format rootfs2 partiton... btrfs-progs v6.0.1 See http://btrfs.wiki.kernel.org for more information. Performing full device TRIM /dev/mmcblk2p3 (960.00MiB) ... NOTE: several default settings have changed in version 5.15, please make sure this does not affect your deployments: - DUP for metadata (-m dup) - enabled no-holes (-O no-holes) - enabled free-space-tree (-R free-space-tree) Label: EMMC_ROOTFS2 UUID: fbda2d0f-a4b6-43d2-abcb-33d29a7a4eb7 Node siz[ 392.288873] BTRFS: device label EMMC_ROOTFS2 devid 1 transid 6 /dev/mmcblk2p3 scanned by mkfs.btrfs (6615) e: 16384 Sector size: 4096 Filesystem size: 960.00MiB Block group profiles: Data: single 8.00MiB Metadata: single 8.00MiB System: single 4.00MiB SSD detected: yes Zoned device: no Incompat features: extref, skinny-metadata, no-holes Runtime features: free-space-tree Checksum: crc32c Number of devices: 1 Devices: ID SIZE PATH 1 960.00MiB /dev/mmcblk2p3 Wait for the boot file system to mount ... Successfully mounted. copy boot ... Edit uEnv.txt ... complete. complete. Wait for the rootfs file system to mount ... [ 420.170784] BTRFS info (device mmcblk2p2): using crc32c (crc32c-generic) checksum algorithm [ 420.173540] BTRFS info (device mmcblk2p2): setting incompat feature flag for COMPRESS_ZSTD (0x10) [ 420.182343] BTRFS info (device mmcblk2p2): use zstd compression, level 6 [ 420.188975] BTRFS info (device mmcblk2p2): using free space tree [ 420.194925] BTRFS info (device mmcblk2p2): has skinny extents [ 420.200615] BTRFS info (device mmcblk2p2): flagging fs with big metadata feature [ 420.213633] BTRFS info (device mmcblk2p2): enabling ssd optimizations [ 420.215214] BTRFS info (device mmcblk2p2): checking UUID tree Successfully mounted Create folder ... Create subvolume './etc' complete. Copy data ... copy [ root ] ... copy [ etc ] ... copy [ bin ] ... copy [ sbin ] ... copy [ lib ] ... copy [ opt ] ... copy [ usr ] ... copy [ www ] ... Copy complete. /usr/sbin/openwrt-install-amlogic: line 503: etc/docker/daemon.json: No such file or directory Edit configuration file ... grep: ../config/turboacc: No such file or directory Create initial etc snapshot -> .snapshots/etc-000Create a readonly snapshot of 'etc' in '.snapshots/etc-000' complete. Create a shared file system. --------------------------------------------------------------------------------- Please select the type of shared file system: 1. ext4: [Default options] suitable for general use. 2. btrfs: Which can extend the service life of ssd/mmc. 3. f2fs: Fast reading and writing speed, but the compatibility is slightly poor. 4. xfs: Very good file system, alternative to ext4. --------------------------------------------------------------------------------- Please Input ID: 2 [ 483.760054] BTRFS: device label EMMC_SHARED devid 1 transid 6 /dev/mmcblk2p4 scanned by mkfs.btrfs (6720) [ 483.770889] BTRFS info (device mmcblk2p4): using crc32c (crc32c-generic) checksum algorithm [ 483.773639] BTRFS info (device mmcblk2p4): using free space tree [ 483.779608] BTRFS info (device mmcblk2p4): has skinny extents [ 483.785286] BTRFS info (device mmcblk2p4): flagging fs with big metadata feature [ 483.798083] BTRFS info (device mmcblk2p4): enabling ssd optimizations [ 483.799631] BTRFS info (device mmcblk2p4): checking UUID tree Successful installed, please unplug the USB, re-insert the power supply to start the openwrt. ```

uboot日志差异

``` GXLX2:BL1:3cfee7:42a5ae;FEAT:ADFD318C:0;POC:3;RCY:0;EMMC:0;RE GXLX2:BL1:3cfee7:42a5ae;FEAT:ADFD318C:0;POC:3;RCY:0;EMMC:0;RE TE: 67209 | TE: 75107 BL2 Built : 17:21:16, Mar 19 2021. BL2 Built : 17:21:16, Mar 19 2021. gxl g767b31d - longyong.chen@droid02-sz gxl g767b31d - longyong.chen@droid02-sz Board ID = 3, adc=225 Board ID = 3, adc=225 set vcck to 1120 mv set vcck to 1120 mv set vddee to 1000 mv set vddee to 1000 mv ddr4-2 board ddr4-2 board CPU clk: 1200MHz CPU clk: 1200MHz DDR4 DDR4 DDR4 chl: Rank0+1 @ 864MHz - FAIL DDR4 chl: Rank0+1 @ 864MHz - FAIL DDR4 chl: Rank0 @ 864MHz DDR4 chl: Rank0 @ 864MHz bist_test rank: 0 1f 07 37 30 18 49 19 00 33 32 19 4c 14 00 2 | bist_test rank: 0 1e 06 37 31 19 49 1a 00 34 31 18 4b 14 00 2 Rank0: 2048MB(auto)-2T-18 Rank0: 2048MB(auto)-2T-18 AddrBus test pass! AddrBus test pass! -s -s Load fip header from eMMC, src: 0x0000c200, des: 0x01400000, Load fip header from eMMC, src: 0x0000c200, des: 0x01400000, New fip structure! New fip structure! Load bl30 from eMMC, src: 0x00010200, des: 0x013c0000, size: Load bl30 from eMMC, src: 0x00010200, des: 0x013c0000, size: Load bl301 from eMMC, src: 0x00018200, des: 0x01380000, size: Load bl301 from eMMC, src: 0x00018200, des: 0x01380000, size: Load bl31 from eMMC, src: 0x0001c200, des: 0x10100000, size: Load bl31 from eMMC, src: 0x0001c200, des: 0x10100000, size: Load bl33 from eMMC, src: 0x00038200, des: 0x01000000, size: Load bl33 from eMMC, src: 0x00038200, des: 0x01000000, size: NOTICE: BL3-1: v1.0(debug):27617c8a4 NOTICE: BL3-1: v1.0(debug):27617c8a4 NOTICE: BL3-1: Built : 18:02:23, Aug 18 2021 NOTICE: BL3-1: Built : 18:02:23, Aug 18 2021 NOTICE: BL31: GXL normal boot! NOTICE: BL31: GXL normal boot! NOTICE: BL31: BL33 decompress pass NOTICE: BL31: BL33 decompress pass [Image: gxl_v1.1.3103-923400455-dirty 2020-12-28 18:42:52 xin [Image: gxl_v1.1.3103-923400455-dirty 2020-12-28 18:42:52 xin efuse init ops = c5 efuse init ops = c5 efuse init hdcp = c, cf9=7 efuse init hdcp = c, cf9=7 x2_hp_e = 0 x2_hp_e = 0 bl30: check_permit, count is 1 bl30: check_permit, count is 1 bl30: check_permit: ok! bl30: check_permit: ok! chipid: 0 0 3 c c 0 f1 b3 40 a0 0 c5 not ES chip chipid: 0 0 3 c c 0 f1 b3 40 a0 0 c5 not ES chip [0.596634 Inits done] | [0.606618 Inits done] INFO: BL3-1: Initializing runtime services INFO: BL3-1: Initializing runtime services WARNING: No OPTEE provided by BL2 boot loader WARNING: No OPTEE provided by BL2 boot loader ERROR: Error initializing runtime service opteed_fast ERROR: Error initializing runtime service opteed_fast INFO: BL3-1: Preparing for EL3 exit to normal world INFO: BL3-1: Preparing for EL3 exit to normal world INFO: BL3-1: Next image address = 0x1000000 INFO: BL3-1: Next image address = 0x1000000 INFO: BL3-1: Next image spsr = 0x3c9 INFO: BL3-1: Next image spsr = 0x3c9 U-Boot 2015.01 (Nov 19 2021 - 14:36:29) U-Boot 2015.01 (Nov 19 2021 - 14:36:29) DRAM: 2 GiB DRAM: 2 GiB Relocation Offset is: 76ede000 Relocation Offset is: 76ede000 cpu_type is MESON_CPU_MAJOR_ID_GXLX2 cpu_type is MESON_CPU_MAJOR_ID_GXLX2 initing board, set GPIODV_24 to light on power led(green) initing board, set GPIODV_24 to light on power led(green) gpio: pin GPIODV_24 (gpio 43) value is 1 gpio: pin GPIODV_24 (gpio 43) value is 1 register usb cfg[0][1] = 0000000077f5cef8 register usb cfg[0][1] = 0000000077f5cef8 [CANVAS]canvas init [CANVAS]canvas init vpu: error: vpu: check dts: FDT_ERR_BADMAGIC, load default pa vpu: error: vpu: check dts: FDT_ERR_BADMAGIC, load default pa vpu: clk_level = 7 vpu: clk_level = 7 vpu: set clk: 666667000Hz, readback: 666660000Hz(0x300) vpu: set clk: 666667000Hz, readback: 666660000Hz(0x300) vpp: vpp_init vpp: vpp_init MMC: aml_priv->desc_buf = 0x0000000073eceac0 MMC: aml_priv->desc_buf = 0x0000000073eceac0 aml_priv->desc_buf = 0x0000000073ed0de0 aml_priv->desc_buf = 0x0000000073ed0de0 SDIO Port B: 0, SDIO Port C: 1 SDIO Port B: 0, SDIO Port C: 1 emmc/sd response timeout, cmd8, status=0x1ff2800 emmc/sd response timeout, cmd8, status=0x1ff2800 emmc/sd response timeout, cmd55, status=0x1ff2800 emmc/sd response timeout, cmd55, status=0x1ff2800 init_part() 278: PART_TYPE_DOS init_part() 278: PART_TYPE_DOS [mmc_init] mmc init success [mmc_init] mmc init success dtb magic 00088b1f dtb magic 00088b1f Amlogic multi-dtb tool Amlogic multi-dtb tool GZIP format, decompress... GZIP format, decompress... Multi dtb detected Multi dtb detected unified board, board id = 3 unified board, board id = 3 Multi dtb tool version: v2 . Multi dtb tool version: v2 . Support 6 dtbs. Support 6 dtbs. aml_dt soc: gxlx2 platform: p291 variant: 2g aml_dt soc: gxlx2 platform: p291 variant: 2g dtb 0 soc: gxlx2 plat: p291 vari: 1g dtb 0 soc: gxlx2 plat: p291 vari: 1g dtb 1 soc: gxlx2 plat: p291 vari: 2g dtb 1 soc: gxlx2 plat: p291 vari: 2g dtb 2 soc: gxlx2 plat: p291 vari: 3g dtb 2 soc: gxlx2 plat: p291 vari: 3g dtb 3 soc: gxlx2 plat: p295 vari: 1g dtb 3 soc: gxlx2 plat: p295 vari: 1g dtb 4 soc: gxlx2 plat: p295 vari: 2g dtb 4 soc: gxlx2 plat: p295 vari: 2g dtb 5 soc: gxlx2 plat: p295 vari: 3g dtb 5 soc: gxlx2 plat: p295 vari: 3g Find match dtb: 1 Find match dtb: 1 start dts,buffer=0000000073ed3610,dt_addr=0000000073ed3610 start dts,buffer=0000000073ed3610,dt_addr=0000000073ed3610 Amlogic multi-dtb tool Amlogic multi-dtb tool Single dtb detected Single dtb detected parts: 1 parts: 1 00: data ffffffffffffffff 4 00: data ffffffffffffffff 4 init_part() 278: PART_TYPE_DOS init_part() 278: PART_TYPE_DOS eMMC/TSD partition table have been checked OK! eMMC/TSD partition table have been checked OK! check pattern success check pattern success mmc env offset: 0x7400000 mmc env offset: 0x7400000 > *** Warning - bad CRC, using default environment > > Saving Environment to aml-storage... > mmc env offset: 0x7400000 > Writing to MMC(1)... done In: serial In: serial Out: serial Out: serial Err: serial Err: serial board id is : 3 board id is : 3 hpd_state=1 hpd_state=1 do_hpd_detect: hdmimode=720p50hz do_hpd_detect: hdmimode=720p50hz do_hpd_detect: colorattribute=444,8bit do_hpd_detect: colorattribute=444,8bit [720p50hz] is invalid for cvbs. [720p50hz] is invalid for cvbs. set hdmitx VIC = 19 set hdmitx VIC = 19 config HPLL = 2970000 config HPLL = 2970000 HPLL: 0xc000027b HPLL: 0xc000027b config HPLL done config HPLL done j = 3 vid_clk_div = 1 j = 3 vid_clk_div = 1 hdmitx: set enc for VIC: 19 hdmitx: set enc for VIC: 19 hdmitx phy setting done hdmitx phy setting done rx version is 1.4 or below div=10 rx version is 1.4 or below div=10 hdmtix: set audio hdmtix: set audio [store]To run cmd[emmc dtb_read 0x1000000 0x40000] [store]To run cmd[emmc dtb_read 0x1000000 0x40000] _verify_dtb_checksum()-924: calc 62a6c398, store 62a6c398 _verify_dtb_checksum()-924: calc 62a6c398, store 62a6c398 _verify_dtb_checksum()-924: calc 62a6c398, store 62a6c398 _verify_dtb_checksum()-924: calc 62a6c398, store 62a6c398 dtb_read()-1046: total valid 2 dtb_read()-1046: total valid 2 dtb_read()-1113: do nothing dtb_read()-1113: do nothing Amlogic multi-dtb tool Amlogic multi-dtb tool GZIP format, decompress... GZIP format, decompress... Multi dtb detected Multi dtb detected unified board, board id = 3 unified board, board id = 3 Multi dtb tool version: v2 . Multi dtb tool version: v2 . Support 6 dtbs. Support 6 dtbs. aml_dt soc: gxlx2 platform: p291 variant: 2g aml_dt soc: gxlx2 platform: p291 variant: 2g dtb 0 soc: gxlx2 plat: p291 vari: 1g dtb 0 soc: gxlx2 plat: p291 vari: 1g dtb 1 soc: gxlx2 plat: p291 vari: 2g dtb 1 soc: gxlx2 plat: p291 vari: 2g dtb 2 soc: gxlx2 plat: p291 vari: 3g dtb 2 soc: gxlx2 plat: p291 vari: 3g dtb 3 soc: gxlx2 plat: p295 vari: 1g dtb 3 soc: gxlx2 plat: p295 vari: 1g dtb 4 soc: gxlx2 plat: p295 vari: 2g dtb 4 soc: gxlx2 plat: p295 vari: 2g dtb 5 soc: gxlx2 plat: p295 vari: 3g dtb 5 soc: gxlx2 plat: p295 vari: 3g Find match dtb: 1 Find match dtb: 1 Net: eth_initialize:396 dwmac.c9410000 idx:0 Net: eth_initialize:396 dwmac.c9410000 idx:0 amlkey_init() enter! amlkey_init() enter! [EFUSE_MSG]keynum is 4 [EFUSE_MSG]keynum is 4 [BL31]: tee size: 0 [BL31]: tee size: 0 wipe_data=successful wipe_data=successful wipe_cache=successful wipe_cache=successful _get_part_index_by_name()-165: do not find match in table ven _get_part_index_by_name()-165: do not find match in table ven Err imgread(L536):invalid partition name(vendor) Err imgread(L536):invalid partition name(vendor) ext4logoLoadCmd=ext4load mmc 1:${logoPart} ${logoLoadAddr} ${ ext4logoLoadCmd=ext4load mmc 1:${logoPart} ${logoLoadAddr} ${ Failed to mount ext2 filesystem... Failed to mount ext2 filesystem... ** Unrecognized filesystem type ** ** Unrecognized filesystem type ** Err imgread(L543):Fail in load logo cmd Err imgread(L543):Fail in load logo cmd logo part bootup logo part bootup _find_partition_by_name()-188: do not find match in table log _find_partition_by_name()-188: do not find match in table log Cannot find dev. Cannot find dev. amlmmc cmd failed amlmmc cmd failed store - STORE sub-system store - STORE sub-system Usage: Usage: store store init flag store store init flag store read name addr off|partition size store read name addr off|partition size read 'size' bytes starting at offset 'off' read 'size' bytes starting at offset 'off' to/from memory address 'addr', skipping bad blocks. to/from memory address 'addr', skipping bad blocks. store write name addr off|partition size store write name addr off|partition size write 'size' bytes starting at offset 'off' write 'size' bytes starting at offset 'off' to/from memory address 'addr', skipping bad blocks. to/from memory address 'addr', skipping bad blocks. store rom_write add off size. store rom_write add off size. write uboot to the boot device write uboot to the boot device store erase boot/data: store erase boot/data: erase the area which is uboot or data erase the area which is uboot or data store erase partition : store erase partition : erase the area which partition in u-boot erase the area which partition in u-boot store erase dtb store erase dtb store erase key store erase key store disprotect key store disprotect key store rom_protect on/off store rom_protect on/off store scrub off|partition size store scrub off|partition size scrub the area from offset and size scrub the area from offset and size store dtb iread/read/write addr store dtb iread/read/write addr read/write dtb, size is optional read/write dtb, size is optional store key read/write addr store key read/write addr read/write key, size is optional read/write key, size is optional store mbr addr store mbr addr update mbr/partition table by dtb update mbr/partition table by dtb cmd store failed cmd store failed Err imgread(L336):Fail to read 0x2000B from part[logo] at off Err imgread(L336):Fail to read 0x2000B from part[logo] at off There is no valid bmp file at the given address There is no valid bmp file at the given address [OSD]load fb addr from dts [OSD]load fb addr from dts [OSD]fb_addr for logo: 0x7f800000 [OSD]fb_addr for logo: 0x7f800000 [OSD]load fb addr from dts [OSD]load fb addr from dts [OSD]fb_addr for logo: 0x7f800000 [OSD]fb_addr for logo: 0x7f800000 [CANVAS]addr=0x7f800000 width=3840, height=2160 [CANVAS]addr=0x7f800000 width=3840, height=2160 There is no valid bmp file at the given address There is no valid bmp file at the given address upgrade_step=2 | upgrade_step=0 amlkey_init() enter! amlkey_init() enter! amlkey_init() 70: already init! amlkey_init() 70: already init! [EFUSE_MSG]keynum is 4 [EFUSE_MSG]keynum is 4 [BL31]: tee size: 0 [BL31]: tee size: 0 [KM]Error:f[key_manage_query_size]L507:key[cmei] not programe [KM]Error:f[key_manage_query_size]L507:key[cmei] not programe amlkey_init() enter! amlkey_init() enter! amlkey_init() 70: already init! amlkey_init() 70: already init! [EFUSE_MSG]keynum is 4 [EFUSE_MSG]keynum is 4 [BL31]: tee size: 0 [BL31]: tee size: 0 rebootmode=cold_boot rebootmode=cold_boot Enter USB burn Enter USB burn Try connect time out 701, 700, 846 | Try connect time out 701, 700, 872 key1 = 7d82dd22 key1 = 7d82dd22 key2 = 7e81dd22 key2 = 7e81dd22 key3 = 728ddd22 key3 = 728ddd22 time_out = 7a120 time_out = 7a120 ir init ir init irkey - irkey key_value1 key_value2 key_value3 time_value irkey - irkey key_value1 key_value2 key_value3 time_value Usage: Usage: irkey irkey Hit any key to stop autoboot: 0 Hit any key to stop autoboot: 0 > _find_partition_by_name()-188: do not find match in table boo > Cannot find dev. > amlmmc cmd failed > > store - STORE sub-system > > Usage: > store store init flag > store read name addr off|partition size > read 'size' bytes starting at offset 'off' > to/from memory address 'addr', skipping bad blocks. > store write name addr off|partition size > write 'size' bytes starting at offset 'off' > to/from memory address 'addr', skipping bad blocks. > store rom_write add off size. > write uboot to the boot device > store erase boot/data: > erase the area which is uboot or data > store erase partition : > erase the area which partition in u-boot > store erase dtb > store erase key > store disprotect key > store rom_protect on/off > store scrub off|partition size > scrub the area from offset and size > store dtb iread/read/write addr > read/write dtb, size is optional > store key read/write addr > read/write key, size is optional > store mbr addr > update mbr/partition table by dtb > > cmd store failed > Err imgread(L135):Fail to read 0x100000B from part[boot] at o > Enter USB burn > Try connect time out 1001, 1000, 2198 card out card out > [MSG]mmcinfo failed! (Re)start USB... (Re)start USB... USB0: USB3.0 XHCI init start USB0: USB3.0 XHCI init start Register 2000140 NbrPorts 2 Register 2000140 NbrPorts 2 Starting the controller Starting the controller USB XHCI 1.00 USB XHCI 1.00 scanning bus 0 for devices... 2 USB Device(s) found | scanning bus 0 for devices... 1 USB Device(s) found scanning usb for storage devices... init_part() 278: P | scanning usb for storage devices... 0 Storage Device(s 1 Storage Device(s) found | ** Bad device usb 0 ** reading s905_autoscript | ** Bad device usb 0 ** 1654 bytes read in 53 ms (30.3 KiB/s) | Failed to mount ext2 filesystem... ## Executing script at 01020000 | ** Unrecognized filesystem type ** start amlogic old u-boot | Failed to mount ext2 filesystem... ## Error: "bootfromsd" not defined | ** Unrecognized filesystem type ** ** Bad device mmc 0 ** | _find_partition_by_name()-188: do not find match in table rec reading boot_android | Cannot find dev. ** Unable to read file boot_android ** | amlmmc cmd failed ** Bad device mmc 0 ** | reading u-boot.ext | store - STORE sub-system ** Unable to read file u-boot.ext ** < ** Bad device mmc 0 ** < start test usb < reading uEnv.txt < 372 bytes read in 42 ms (7.8 KiB/s) < mac=B4:9E:80:AC:D7:27 < reading /zImage < 27296256 bytes read in 14642 ms (1.8 MiB/s) < reading /uInitrd < 17983618 bytes read in 9695 ms (1.8 MiB/s) < reading /dtb/amlogic/meson-gxl-s905l3b-m302a.dtb < 39566 bytes read in 244 ms (158.2 KiB/s) < ## Error: "aadmac" not defined < libfdt fdt_path_offset() returned FDT_ERR_NOTFOUND < [rsvmem] bl31 reserved memory set addr error. < ## Loading init Ramdisk from Legacy Image at 13000000 ... < Image Name: uInitrd < Image Type: AArch64 Linux RAMDisk Image (gzip compressed < Data Size: 17983554 Bytes = 17.2 MiB < Load Address: 00000000 < Entry Point: 00000000 < Verifying Checksum ... OK < Amlogic multi-dtb tool < Single dtb detected < load dtb from 0x1000000 ...... < ## Flattened Device Tree blob at 01000000 < Booting using the fdt blob at 0x1000000 < libfdt fdt_path_offset() returned FDT_ERR_NOTFOUND < [rsvmem] bl31 reserved memory set addr error. < Loading Ramdisk to 72da5000, end 73ecb842 ... OK < Loading Device Tree to 000000000fff3000, end 000000000ffff < fdt_instaboot: get header err < Starting kernel ... | Usage: > store store init flag > store read name addr off|partition size > read 'size' bytes starting at offset 'off' > to/from memory address 'addr', skipping bad blocks. > store write name addr off|partition size > write 'size' bytes starting at offset 'off' > to/from memory address 'addr', skipping bad blocks. > store rom_write add off size. > write uboot to the boot device > store erase boot/data: > erase the area which is uboot or data > store erase partition : > erase the area which partition in u-boot > store erase dtb > store erase key > store disprotect key > store rom_protect on/off > store scrub off|partition size > scrub the area from offset and size > store dtb iread/read/write addr > read/write dtb, size is optional > store key read/write addr > read/write key, size is optional > store mbr addr > update mbr/partition table by dtb uboot time: 37380823 us \ cmd store failed > Err imgread(L135):Fail to read 0x100000B from part[recovery] > gxl_p211_v1# ```

ophub commented 1 year ago

大部分魔百和都要先把当前的安卓4的系统刷成有root权限安卓9系统,才能正常刷armbian/openwrt系统。具体情况从首页的设备列表点进去看对应设备的测试报告。

安卓系统下载备份: https://github.com/ophub/kernel/releases/tag/tools

Becods commented 1 year ago

大部分魔百和都要先把当前的安卓4的系统刷成有root权限安卓9系统,才能正常刷armbian/openwrt系统。具体情况从首页的设备列表点进去看对应设备的测试报告。

安卓系统下载备份: https://github.com/ophub/kernel/releases/tag/tools

已经刷过9.0了,并且armbian是能够正常安装并从emmc启动的

image

安装日志

``` root@armbian:~# armbian-install [ STEPS ] Start install Armbian to eMMC... [ STEPS ] Start checking dependencies... [ INFO ] Dependency check completes, Start installing Armbian. [ STEPS ] Start initializing the environment... [ INFO ] Use mainline u-boot: [ no ] [ INFO ] Using the Ampart tool: [ yes ] [ INFO ] Show all lists: [ no ] [ INFO ] The device eMMC name: [ /dev/mmcblk2 ] [ STEPS ] Start selecting device... -------------------------------------------------------------------------------------- ID SOC MODEL DTB -------------------------------------------------------------------------------------- 101 s905d Phicomm-N1 meson-gxl-s905d-phicomm-n1.dtb 102 s905d Phicomm-N1(DMA-thresh) meson-gxl-s905d-phicomm-n1-thresh.dtb 103 s905x HG680P meson-gxl-s905x-p212.dtb 104 s905w TX3-Mini meson-gxl-s905w-tx3-mini.dtb 105 s905d MECOOL-KI-Pro meson-gxl-s905d-mecool-ki-pro.dtb 106 s905x T95 meson-gxl-s905x-p212.dtb 107 s905x B860H meson-gxl-s905x-b860h.dtb 108 s905x TBee meson-gxl-s905x-tbee.dtb 109 s905w W95 meson-gxl-s905w-p281.dtb 110 s905w X96-Mini meson-gxl-s905w-x96-mini.dtb -------------------------------------------------------------------------------------- 111 s905x TX9 meson-gxl-s905x-tx9.dtb 112 s905l3b M302A,M304A,CM211-1,CM311-1 meson-gxl-s905l3b-m302a.dtb 113 s905l2 MGV2000,MGV3000,M301A meson-gxl-s905l2-x7-5g.dtb 114 s905l2 Wojia-TV-IPBS9505 meson-gxl-s905l2-ipbs9505.dtb 115 s905lb Q96-mini meson-gxl-s905x-p212.dtb 116 s905l3 CM311-1,HG680-LC,M401A meson-gxl-s905l2-x7-5g.dtb 117 s905l3b E900V22E meson-gxl-s905l3b-e900v22e.dtb 118 s905lb BesTV-R3300L,SumaVision-Q7 meson-gxl-s905x-p212.dtb 119 s905w X96W,FunTV,MXQ-Pro-4K meson-gxl-s905w-x96w.dtb 120 s905l3b E900V22D meson-gxl-s905l2-x7-5g.dtb -------------------------------------------------------------------------------------- 121 s905l3 UNT400G1 meson-gxl-s905l2-x7-5g.dtb 122 s905l2 E900v21E meson-gxl-s905l2-x7-5g.dtb 123 s905l3b IP103H,TY1608 meson-gxl-s905l3b-m302a.dtb 124 s905l3 CM211-1 meson-gxl-s905l3b-m302a.dtb 0 Other Customize Enter-custom-dtb-name -------------------------------------------------------------------------------------- [ OPTIONS ] Please Input ID: 112 [ INFO ] Input Box ID: [ 112 ] [ INFO ] FDTFILE: [ meson-gxl-s905l3b-m302a.dtb ] [ INFO ] MAINLINE_UBOOT: [ ] [ INFO ] BOOTLOADER_IMG: [ ] [ INFO ] UBOOT_OVERLOAD: [ u-boot-s905x-s912.bin ] [ INFO ] NEED_OVERLOAD: [ no ] [ STEPS ] Start selecting file system type... ----------------------------------------------- ID TYPE ----------------------------------------------- 1 ext4 2 btrfs ----------------------------------------------- [ OPTIONS ] Please Input ID (1/2): 2 [ INFO ] Input Type ID: [ 2 ] [ INFO ] The type of file system: [ btrfs ] [ STEPS ] Start creating eMMC partition... [ INFO ] Start backing up the default bootloader. 4+0 records in 4+0 records out 4194304 bytes (4.2 MB, 4.0 MiB) copied, 0.287481 s, 14.6 MB/s [ INFO ] Delete the existing [ 2 ] partitions. [ 500.337817] mmcblk2: p2 [ 500.547405] mmcblk2: [ STEPS ] Use ampart partition successfully. [ INFO ] Start create MBR and partittion. [ 500.690789] mmcblk2: [ 500.807908] mmcblk2: p1 [ 501.048184] mmcblk2: p1 p2 [ INFO ] 03. Write the mybox bootloader: [ /usr/lib/u-boot/mybox-bootloader.img ] 444+0 records in 444+0 records out 444 bytes copied, 0.00526963 s, 84.3 kB/s [ 501.092532] mmcblk2: p1 p2 8191+0 records in 8191+0 records out 4193792 bytes (4.2 MB, 4.0 [ 501.594066] mmcblk2: p1 p2 MiB) copied, 0.531483 s, 7.9 MB/s [ STEPS ] Start processing the BOOTFS partition... [ INFO ] Start formatting BOOTFS partition... mkfs.fat 4.2 (2021-01-31) [ INFO ] Start copy BOOTFS partition data. [ INFO ] Update the [ uEnv.txt ] file. [ STEPS ] Start processing the rootfs partition... [ INFO ] Start formatting ROOTFS partition... btrfs-progs v5.10.1 See http://btrfs.wiki.kernel.org for more information. Label: ROOTFS_EMMC UUID: bd83a138-e88b-4890-88eb-e15260fd604f Node size: 16384 Sector size: [ 538.758970] BTRFS: device label ROOTFS_EMMC devid 1 transid 5 /dev/mmcblk2p2 scanned by mkfs.btrfs (2099) 4096 Filesystem size: 14.20GiB Block group profiles: Data: single 8.00MiB Metadata: single 8.00MiB S[ 538.782047] BTRFS info (device mmcblk2p2): using crc32c (crc32c-generic) checksum algorithm [ 538.789060] BTRFS info (device mmcblk2p2): setting incompat feature flag for COMPRESS_ZSTD (0x10) [ 538.797931] BTRFS info (device mmcblk2p2): use zstd compression, level 6 [ 538.804485] BTRFS info (device mmcblk2p2): disk space caching is enabled [ 538.811130] BTRFS info (device mmcblk2p2): has skinny extents [ 538.816825] BTRFS info (device mmcblk2p2): flagging fs with big metadata feature ystem: single 4.00MiB SSD detected: [ 538.830394] BTRFS info (device mmcblk2p2): enabling ssd optimizations [ 538.836768] BTRFS info (device mmcblk2p2): checking UUID tree yes Incompat features: extref, skinny-metadata Runtime features: Checksum: crc32c Number of devices: 1 Devices: ID SIZE PATH 1 14.20GiB /dev/mmcblk2p2 [ INFO ] Start copy ROOTFS partition data. [ INFO ] Copy the [ etc ] directory. [ INFO ] Copy the [ home ] directory. [ INFO ] Copy the [ lib64 ] directory. [ INFO ] Copy the [ opt ] directory. [ INFO ] Copy the [ root ] directory. [ INFO ] Copy the [ selinux ] directory. [ INFO ] Copy the [ srv ] directory. [ INFO ] Copy the [ usr ] directory. [ INFO ] Copy the [ var ] directory. [ INFO ] Generate the new fstab file. [ INFO ] Update the relevant parameters. [ SUCCESS ] Installation successful. Run [ poweroff ], remove the installation media then re-insert the power supply to boot Armbian. ```

uboot启动日志

``` GXLX2:BL1:3cfee7:42a5ae;FEAT:ADFD318C:0;POC:3;RCY:0;EMMC:0;READ:0;0.0;CHK:0; TE: 199654 BL2 Built : 13:35:42, Jun 1 2021. gxl g49d5acc - liqiang.hou@droid07-sz Board ID = 3, adc=225 set vcck to 1070 mv set vddee to 1070 mv CPU clk: 1200MHz DDR4 chl: Rank0+1 @ 912MHz - FAIL DDR4 chl: Rank0 @ 912MHz bist_test rank: 0 1f 09 36 32 1a 4b 18 00 31 34 1a 4f 13 00 27 39 20 52 17 01 2d 38 1f 51 616 - PASS Rank0: 2048MB(auto)-2T-18 AddrBus test pass! -s Load fip header from eMMC, src: 0x0000c200, des: 0x01400000, size: 0x00004000 New fip structure! Load bl30 from eMMC, src: 0x00010200, des: 0x013c0000, size: 0x00007600 Load bl301 from eMMC, src: 0x00018200, des: 0x01380000, size: 0x00002600 Load bl31 from eMMC, src: 0x0001c200, des: 0x10100000, size: 0x00019600 Load bl33 from eMMC, src: 0x00038200, des: 0x01000000, size: 0x0004da00 NOTICE: BL3-1: v1.0(debug):27617c8a4 NOTICE: BL3-1: Built : 18:02:23, Aug 18 2021 NOTICE: BL31: GXL normal boot! NOTICE: BL31: BL33 decompress pass [Image: gxl_v1.1.3103-923400455-dirty 2020-12-28 18:42:52 xingyu.chen@droid12-sz] efuse init ops = c5 efuse init hdcp = c, cf9=7 x2_hp_e = 0 bl30: check_permit, count is 1 bl30: check_permit: ok! chipid: 0 0 3 c c 0 f1 b3 40 a0 0 c5 not ES chip [0.738437 Inits done] INFO: BL3-1: Initializing runtime services WARNING: No OPTEE provided by BL2 boot loader ERROR: Error initializing runtime service opteed_fast INFO: BL3-1: Preparing for EL3 exit to normal world INFO: BL3-1: Next image address = 0x1000000 INFO: BL3-1: Next image spsr = 0x3c9 U-Boot 2015.01-g2bd1e3b (Apr 09 2022 - 06:14:31), Build: jenkins-FVOS-git_FVOS_amlogic_9_CMCCHUBEI_PRIV-190 DRAM: 2 GiB Relocation Offset is: 76edf000 gpio: pin GPIODV_25 (gpio 44) value is 1 register usb cfg[0][1] = 0000000077f5d610 [CANVAS]canvas init vpu: error: vpu: check dts: FDT_ERR_BADMAGIC, load default parameters vpu: clk_level = 7 vpu: set clk: 666667000Hz, readback: 666660000Hz(0x300) vpp: vpp_init MMC: aml_priv->desc_buf = 0x0000000073ecfac0 aml_priv->desc_buf = 0x0000000073ed1de0 SDIO Port B: 0, SDIO Port C: 1 emmc/sd response timeout, cmd8, status=0x1ff2800 emmc/sd response timeout, cmd55, status=0x1ff2800 init_part() 278: PART_TYPE_DOS [mmc_init] mmc init success dtb magic 00088b1f Amlogic multi-dtb tool GZIP format, decompress... Multi dtb detected unified board, board id = 3 Multi dtb tool version: v2 . Support 6 dtbs. aml_dt soc: gxlx2 platform: p291 variant: 2g dtb 0 soc: gxlx2 plat: p291 vari: 1g dtb 1 soc: gxlx2 plat: p291 vari: 2g dtb 2 soc: gxlx2 plat: p291 vari: 3g dtb 3 soc: gxlx2 plat: p295 vari: 1g dtb 4 soc: gxlx2 plat: p295 vari: 2g dtb 5 soc: gxlx2 plat: p295 vari: 3g Find match dtb: 1 start dts,buffer=0000000073ed4610,dt_addr=0000000073ed4610 Amlogic multi-dtb tool Single dtb detected parts: 1 00: data ffffffffffffffff 4 init_part() 278: PART_TYPE_DOS eMMC/TSD partition table have been checked OK! check pattern success mmc env offset: 0x7400000 In: serial Out: serial Err: serial board id is : 3 hpd_state=1 do_hpd_detect: hdmimode=720p50hz do_hpd_detect: colorattribute=444,8bit [720p50hz] is invalid for cvbs. set hdmitx VIC = 19 config HPLL = 2970000 HPLL: 0xc000027b config HPLL done j = 3 vid_clk_div = 1 hdmitx: set enc for VIC: 19 hdmitx phy setting done rx version is 1.4 or below div=10 hdmtix: set audio [store]To run cmd[emmc dtb_read 0x1000000 0x40000] _verify_dtb_checksum()-924: calc 67b68105, store 67b68105 _verify_dtb_checksum()-924: calc 67b68105, store 67b68105 dtb_read()-1046: total valid 2 dtb_read()-1113: do nothing Amlogic multi-dtb tool GZIP format, decompress... Multi dtb detected unified board, board id = 3 Multi dtb tool version: v2 . Support 6 dtbs. aml_dt soc: gxlx2 platform: p291 variant: 2g dtb 0 soc: gxlx2 plat: p291 vari: 1g dtb 1 soc: gxlx2 plat: p291 vari: 2g dtb 2 soc: gxlx2 plat: p291 vari: 3g dtb 3 soc: gxlx2 plat: p295 vari: 1g dtb 4 soc: gxlx2 plat: p295 vari: 2g dtb 5 soc: gxlx2 plat: p295 vari: 3g Find match dtb: 1 Net: eth_initialize:396 dwmac.c9410000 idx:0 amlkey_init() enter! [EFUSE_MSG]keynum is 4 [BL31]: tee size: 0 wipe_data=successful wipe_cache=successful _get_part_index_by_name()-165: do not find match in table vendor Err imgread(L536):invalid partition name(vendor) ext4logoLoadCmd=ext4load mmc 1:${logoPart} ${logoLoadAddr} ${ext4LogoPath} Failed to mount ext2 filesystem... ** Unrecognized filesystem type ** Err imgread(L543):Fail in load logo cmd logo part bootup _find_partition_by_name()-188: do not find match in table logo Cannot find dev. amlmmc cmd failed store - STORE sub-system Usage: store store init flag store read name addr off|partition size read 'size' bytes starting at offset 'off' to/from memory address 'addr', skipping bad blocks. store write name addr off|partition size write 'size' bytes starting at offset 'off' to/from memory address 'addr', skipping bad blocks. store rom_write add off size. write uboot to the boot device store erase boot/data: erase the area which is uboot or data store erase partition : erase the area which partition in u-boot store erase dtb store erase key store disprotect key store rom_protect on/off store scrub off|partition size scrub the area from offset and size store dtb iread/read/write addr read/write dtb, size is optional store key read/write addr read/write key, size is optional store mbr addr update mbr/partition table by dtb cmd store failed Err imgread(L336):Fail to read 0x2000B from part[logo] at offset 0 There is no valid bmp file at the given address [OSD]load fb addr from dts [OSD]fb_addr for logo: 0x7f800000 [OSD]load fb addr from dts [OSD]fb_addr for logo: 0x7f800000 [CANVAS]addr=0x7f800000 width=3840, height=2160 There is no valid bmp file at the given address upgrade_step=2 upgrade_step12=2 amlkey_init() enter! amlkey_init() 70: already init! [EFUSE_MSG]keynum is 4 [BL31]: tee size: 0 [KM]Error:f[key_manage_query_size]L507:key[cmei] not programed yet key1 = 7d82dd22 key2 = 7e81dd22 key3 = 728ddd22 time_out = 7a120 ir init irkey - irkey key_value1 key_value2 key_value3 time_value Usage: irkey rebootmode=cold_boot Hit any key to stop autoboot: 0 card out (Re)start USB... USB0: USB3.0 XHCI init start Register 2000140 NbrPorts 2 Starting the controller USB XHCI 1.00 scanning bus 0 for devices... 1 USB Device(s) found scanning usb for storage devices... 0 Storage Device(s) found ** Bad device usb 0 ** ** Bad device usb 1 ** ** Bad device usb 2 ** ** Bad device usb 3 ** reading emmc_autoscript 831 bytes read in 3 ms (270.5 KiB/s) ## Executing script at 01020000 reading u-boot.emmc ** Unable to read file u-boot.emmc ** reading uEnv.txt 372 bytes read in 4 ms (90.8 KiB/s) reading /zImage 27296256 bytes read in 770 ms (33.8 MiB/s) reading /uInitrd 17983618 bytes read in 512 ms (33.5 MiB/s) reading /dtb/amlogic/meson-gxl-s905l3b-m302a.dtb 39566 bytes read in 7 ms (5.4 MiB/s) mac=B4:9E:80:AC:D7:27 libfdt fdt_path_offset() returned FDT_ERR_NOTFOUND [rsvmem] bl31 reserved memory set addr error. ## Loading init Ramdisk from Legacy Image at 13000000 ... Image Name: uInitrd Image Type: AArch64 Linux RAMDisk Image (gzip compressed) Data Size: 17983554 Bytes = 17.2 MiB Load Address: 00000000 Entry Point: 00000000 Verifying Checksum ... OK Amlogic multi-dtb tool Single dtb detected load dtb from 0x1000000 ...... ## Flattened Device Tree blob at 01000000 Booting using the fdt blob at 0x1000000 libfdt fdt_path_offset() returned FDT_ERR_NOTFOUND [rsvmem] bl31 reserved memory set addr error. Loading Ramdisk to 72da6000, end 73ecc842 ... OK Loading Device Tree to 000000000fff3000, end 000000000ffffa8d ... OK fdt_instaboot: get header err Starting kernel ... uboot time: 7200082 us ```

系统启动日志

``` [ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034] [ 0.000000] Linux version 5.15.109-ophub (root@fv-az440-742) (aarch64-none-linux-gnu-gcc (Arm GNU Toolchain 12.2.Rel1 (Build arm-12.24)) 12.2.1 20221205, GNU ld (Arm GNU Toolchain 12.2.Rel1 (Build arm-12.24)) 2.39.0.20221210) #1 SMP PREEMPT Wed Apr 26 22:21:32 EDT 2023 [ 0.000000] Machine model: Amlogic Meson GXL (S905L3b) MBH-M302A Box [ 0.000000] efi: UEFI not found. [ 0.000000] Reserved memory: created CMA memory pool at 0x0000000062c00000, size 256 MiB [ 0.000000] OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool [ 0.000000] Zone ranges: [ 0.000000] DMA [mem 0x0000000000000000-0x0000000077ffffff] [ 0.000000] DMA32 empty [ 0.000000] Normal empty [ 0.000000] Movable zone start for each node [ 0.000000] Early memory node ranges [ 0.000000] node 0: [mem 0x0000000000000000-0x0000000000ffffff] [ 0.000000] node 0: [mem 0x0000000001000000-0x0000000004ffffff] [ 0.000000] node 0: [mem 0x0000000005000000-0x00000000072fffff] [ 0.000000] node 0: [mem 0x0000000007300000-0x000000000fffffff] [ 0.000000] node 0: [mem 0x0000000010000000-0x00000000101fffff] [ 0.000000] node 0: [mem 0x0000000010200000-0x0000000077ffffff] [ 0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000077ffffff] [ 0.000000] psci: probing for conduit method from DT. [ 0.000000] psci: PSCIv0.2 detected in firmware. [ 0.000000] psci: Using standard PSCI v0.2 function IDs [ 0.000000] psci: Trusted OS migration not required [ 0.000000] percpu: Embedded 19 pages/cpu s37784 r8192 d31848 u77824 [ 0.000000] Detected VIPT I-cache on CPU0 [ 0.000000] CPU features: detected: ARM erratum 845719 [ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 483840 [ 0.000000] Kernel command line: root=UUID=bd83a138-e88b-4890-88eb-e15260fd604f rootflags=compress=zstd:6 rootfstype=btrfs console=ttyAML0,115200n8 console=tty0 no_console_suspend consoleblank=0 fsck.fix=yes fsck.repair=yes net.ifnames=0 max_loop=128 cgroup_enable=cpuset cgroup_memory=1 cgroup_enable=memory swapaccount=1 mac=B4:9E:80:AC:D7:27 [ 0.000000] Unknown kernel command line parameters "cgroup_enable=memory cgroup_memory=1 mac=B4:9E:80:AC:D7:27", will be passed to user space. [ 0.000000] Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes, linear) [ 0.000000] Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes, linear) [ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off [ 0.000000] Memory: 1570116K/1966080K available (15232K kernel code, 2720K rwdata, 4828K rodata, 3776K init, 891K bss, 133820K reserved, 262144K cma-reserved) [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1 [ 0.000000] rcu: Preemptible hierarchical RCU implementation. [ 0.000000] rcu: RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=4. [ 0.000000] Trampoline variant of Tasks RCU enabled. [ 0.000000] Tracing variant of Tasks RCU enabled. [ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 30 jiffies. [ 0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4 [ 0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0 [ 0.000000] Root IRQ handler: gic_handle_irq [ 0.000000] GIC: Using split EOI/Deactivate mode [ 0.000000] irq_meson_gpio: 110 to 8 gpio interrupt mux initialized [ 0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (phys). [ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns [ 0.000000] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns [ 0.000557] Console: colour dummy device 80x25 [ 0.000939] printk: console [tty0] enabled [ 0.000981] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=80000) [ 0.001003] pid_max: default: 32768 minimum: 301 [ 0.001215] LSM: Security Framework initializing [ 0.001332] SELinux: Initializing. [ 0.001608] Mount-cache hash table entries: 4096 (order: 3, 32768 bytes, linear) [ 0.001633] Mountpoint-cache hash table entries: 4096 (order: 3, 32768 bytes, linear) [ 0.003820] rcu: Hierarchical SRCU implementation. [ 0.005150] EFI services will not be available. [ 0.005614] smp: Bringing up secondary CPUs ... [ 0.006281] Detected VIPT I-cache on CPU1 [ 0.006346] CPU1: Booted secondary processor 0x0000000001 [0x410fd034] [ 0.007094] Detected VIPT I-cache on CPU2 [ 0.007146] CPU2: Booted secondary processor 0x0000000002 [0x410fd034] [ 0.007815] Detected VIPT I-cache on CPU3 [ 0.007862] CPU3: Booted secondary processor 0x0000000003 [0x410fd034] [ 0.007946] smp: Brought up 1 node, 4 CPUs [ 0.008012] SMP: Total of 4 processors activated. [ 0.008023] CPU features: detected: 32-bit EL0 Support [ 0.008033] CPU features: detected: 32-bit EL1 Support [ 0.008045] CPU features: detected: CRC32 instructions [ 0.008732] CPU: All CPU(s) started at EL2 [ 0.008763] alternatives: patching kernel code [ 0.010204] devtmpfs: initialized [ 0.018023] Registered cp15_barrier emulation handler [ 0.018065] Registered setend emulation handler [ 0.018225] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 6370867519511994 ns [ 0.018254] futex hash table entries: 1024 (order: 4, 65536 bytes, linear) [ 0.024721] prandom: seed boundary self test passed [ 0.026235] prandom: 100 self tests passed [ 0.049176] prandom32: self test passed (less than 6 bits correlated) [ 0.049232] pinctrl core: initialized pinctrl subsystem [ 0.049858] DMI not present or invalid. [ 0.050409] NET: Registered PF_NETLINK/PF_ROUTE protocol family [ 0.052447] DMA: preallocated 256 KiB GFP_KERNEL pool for atomic allocations [ 0.052681] DMA: preallocated 256 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations [ 0.052864] DMA: preallocated 256 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations [ 0.052983] audit: initializing netlink subsys (disabled) [ 0.053244] audit: type=2000 audit(0.049:1): state=initialized audit_enabled=0 res=1 [ 0.054333] thermal_sys: Registered thermal governor 'step_wise' [ 0.054643] cpuidle: using governor ladder [ 0.054848] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers. [ 0.054966] ASID allocator initialised with 65536 entries [ 0.055152] Serial: AMBA PL011 UART driver [ 0.073230] platform c883a000.hdmi-tx: Fixing up cyclic dependency with d0100000.vpu [ 0.077659] platform cvbs-connector: Fixing up cyclic dependency with d0100000.vpu [ 0.077943] platform hdmi-connector: Fixing up cyclic dependency with c883a000.hdmi-tx [ 0.087066] HugeTLB registered 1.00 GiB page size, pre-allocated 0 pages [ 0.087101] HugeTLB registered 32.0 MiB page size, pre-allocated 0 pages [ 0.087150] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages [ 0.087163] HugeTLB registered 64.0 KiB page size, pre-allocated 0 pages [ 1.583721] cryptd: max_cpu_qlen set to 1000 [ 1.587282] "cryptomgr_test" (91) uses obsolete ecb(arc4) skcipher [ 1.599005] alg: No test for 842 (842-generic) [ 1.599166] alg: No test for 842 (842-scomp) [ 1.693924] DRBG: Continuing without Jitter RNG [ 1.785894] raid6: neonx8 gen() 2213 MB/s [ 1.842640] raid6: neonx8 xor() 1601 MB/s [ 1.899385] raid6: neonx4 gen() 2170 MB/s [ 1.956125] raid6: neonx4 xor() 1523 MB/s [ 2.012886] raid6: neonx2 gen() 2064 MB/s [ 2.069616] raid6: neonx2 xor() 1413 MB/s [ 2.126380] raid6: neonx1 gen() 1780 MB/s [ 2.183109] raid6: neonx1 xor() 1210 MB/s [ 2.239868] raid6: int64x8 gen() 1414 MB/s [ 2.296607] raid6: int64x8 xor() 740 MB/s [ 2.353351] raid6: int64x4 gen() 1571 MB/s [ 2.410105] raid6: int64x4 xor() 805 MB/s [ 2.466827] raid6: int64x2 gen() 1399 MB/s [ 2.523551] raid6: int64x2 xor() 750 MB/s [ 2.580284] raid6: int64x1 gen() 1037 MB/s [ 2.637004] raid6: int64x1 xor() 517 MB/s [ 2.637015] raid6: using algorithm neonx8 gen() 2213 MB/s [ 2.637027] raid6: .... xor() 1601 MB/s, rmw enabled [ 2.637038] raid6: using neon recovery algorithm [ 2.637375] fbcon: Taking over console [ 2.637424] ACPI: Interpreter disabled. [ 2.639612] iommu: Default domain type: Translated [ 2.639644] iommu: DMA domain TLB invalidation policy: strict mode [ 2.639992] vgaarb: loaded [ 2.640549] SCSI subsystem initialized [ 2.640788] usbcore: registered new interface driver usbfs [ 2.640836] usbcore: registered new interface driver hub [ 2.640880] usbcore: registered new device driver usb [ 2.641356] mc: Linux media interface: v0.10 [ 2.641388] videodev: Linux video capture interface: v2.00 [ 2.641674] EDAC MC: Ver: 3.0.0 [ 2.642754] Advanced Linux Sound Architecture Driver Initialized. [ 2.643911] clocksource: Switched to clocksource arch_sys_counter [ 2.644268] VFS: Disk quotas dquot_6.6.0 [ 2.644354] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes) [ 2.644532] FS-Cache: Loaded [ 2.645035] pnp: PnP ACPI: disabled [ 2.651764] NET: Registered PF_INET protocol family [ 2.651968] IP idents hash table entries: 32768 (order: 6, 262144 bytes, linear) [ 2.653194] tcp_listen_portaddr_hash hash table entries: 1024 (order: 2, 16384 bytes, linear) [ 2.653248] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear) [ 2.653270] TCP established hash table entries: 16384 (order: 5, 131072 bytes, linear) [ 2.653436] TCP bind hash table entries: 16384 (order: 6, 262144 bytes, linear) [ 2.653644] TCP: Hash tables configured (established 16384 bind 16384) [ 2.653960] MPTCP token hash table entries: 2048 (order: 3, 49152 bytes, linear) [ 2.654080] UDP hash table entries: 1024 (order: 3, 32768 bytes, linear) [ 2.654132] UDP-Lite hash table entries: 1024 (order: 3, 32768 bytes, linear) [ 2.654322] NET: Registered PF_UNIX/PF_LOCAL protocol family [ 2.654358] NET: Registered PF_XDP protocol family [ 2.654381] PCI: CLS 0 bytes, default 64 [ 2.654713] Trying to unpack rootfs image as initramfs... [ 2.661453] hw perfevents: enabled with armv8_cortex_a53 PMU driver, 7 counters available [ 2.661972] kvm [1]: IPA Size Limit: 40 bits [ 2.662839] kvm [1]: vgic interrupt IRQ9 [ 2.662999] kvm [1]: Hyp mode initialized successfully [ 3.411732] Freeing initrd memory: 17560K [ 3.594323] Initialise system trusted keyrings [ 3.594588] workingset: timestamp_bits=46 max_order=19 bucket_order=0 [ 3.601065] zbud: loaded [ 3.602714] squashfs: version 4.0 (2009/01/31) Phillip Lougher [ 3.603261] fuse: init (API version 7.34) [ 3.603756] SGI XFS with ACLs, security attributes, quota, no debug enabled [ 3.643147] NET: Registered PF_ALG protocol family [ 3.697092] xor: measuring software checksum speed [ 3.701305] 8regs : 2365 MB/sec [ 3.704837] 32regs : 2802 MB/sec [ 3.709637] arm64_neon : 2063 MB/sec [ 3.709648] xor: using function: 32regs (2802 MB/sec) [ 3.709665] Key type asymmetric registered [ 3.709677] Asymmetric key parser 'x509' registered [ 3.709830] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 245) [ 3.710015] io scheduler mq-deadline registered [ 3.710029] io scheduler kyber registered [ 3.710193] io scheduler bfq registered [ 3.735511] soc soc0: Amlogic Meson Unknown (Unknown) Revision 2a:e (c5:2) Detected [ 3.737891] Serial: 8250/16550 driver, 5 ports, IRQ sharing enabled [ 3.739936] Serial: AMBA driver [ 3.740321] c81004c0.serial: ttyAML0 at MMIO 0xc81004c0 (irq = 22, base_baud = 1500000) is a meson_uart [ 4.774709] printk: console [ttyAML0] enabled [ 4.788619] brd: module loaded [ 4.855073] loop: module loaded [ 4.861980] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver [ 4.862896] ehci-pci: EHCI PCI platform driver [ 4.867373] ehci-platform: EHCI generic platform driver [ 4.873050] usbcore: registered new interface driver cdc_wdm [ 4.878148] usbcore: registered new interface driver usb-storage [ 4.884577] mousedev: PS/2 mouse device common for all mice [ 4.890691] SPI driver rmi4_spi has no spi_device_id for syna,rmi4-spi [ 4.896865] meson-vrtc c81000a8.rtc: registered as rtc0 [ 4.901221] meson-vrtc c81000a8.rtc: setting system clock to 1970-01-01T00:00:04 UTC (4) [ 4.909794] i2c_dev: i2c /dev entries driver [ 4.915739] Registered IR keymap rc-cec [ 4.917392] rc rc0: meson_ao_cec as /devices/platform/soc/c8100000.bus/c8100100.cec/rc/rc0 [ 4.925562] input: meson_ao_cec as /devices/platform/soc/c8100000.bus/c8100100.cec/rc/rc0/input0 [ 4.937744] sdhci: Secure Digital Host Controller Interface driver [ 4.940249] sdhci: Copyright(c) Pierre Ossman [ 4.944584] Synopsys Designware Multimedia Card Interface Driver [ 4.951378] sdhci-pltfm: SDHCI platform and OF driver helper [ 4.951906] meson-gx-mmc d0072000.mmc: Got CD GPIO [ 4.952948] meson-gx-mmc d0074000.mmc: allocated mmc-pwrseq [ 4.958739] meson-sm: secure-monitor enabled [ 4.972924] gxl-crypto c883e000.crypto: will run requests pump with realtime priority [ 4.978521] gxl-crypto c883e000.crypto: will run requests pump with realtime priority [ 4.989808] hid: raw HID events driver (C) Jiri Kosina [ 4.991407] usbcore: registered new interface driver usbhid [ 4.996591] gpio irq setup: hwirq: 0x3A irqfirst: 0x34 irqlast: 0x3A pin[48] [ 4.996754] usbhid: USB HID core driver [ 5.004135] genirq: Setting trigger mode 3 for irq 46 failed (meson_gpio_irq_set_type+0x0/0x100) [ 5.008051] platform-mhu c883c404.mailbox: Platform MHU Mailbox registered [BL31]: tee size: 0 [ 5.030343] Initializing XFRM netlink socket [ 5.031077] NET: Registered PF_INET6 protocol family [ 5.064289] Segment Routing with IPv6 [ 5.064334] RPL Segment Routing with IPv6 [ 5.066387] In-situ OAM (IOAM) with IPv6 [ 5.070372] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver [ 5.077091] NET: Registered PF_PACKET protocol family [ 5.081108] NET: Registered PF_KEY protocol family [ 5.086002] 8021q: 802.1Q VLAN Support v1.8 [ 5.090498] registered taskstats version 1 [ 5.094054] Loading compiled-in X.509 certificates [ 5.101116] zswap: loaded using pool zstd/zbud [ 5.103726] Key type .fscrypt registered [ 5.107039] Key type fscrypt-provisioning registered [ 5.113025] Btrfs loaded, crc32c=crc32c-generic, zoned=no, fsverity=no [ 5.120544] mmc2: new DDR MMC card at address 0001 [ 5.124112] mmcblk2: mmc2:0001 AJTD4R 14.6 GiB [ 5.129673] mmcblk2: p1 p2 [ 5.131366] mmcblk2boot0: mmc2:0001 AJTD4R 4.00 MiB [ 5.136965] mmcblk2boot1: mmc2:0001 AJTD4R 4.00 MiB [ 5.141577] mmcblk2rpmb: mmc2:0001 AJTD4R 4.00 MiB, chardev (240:0) [ 5.148981] meson-drm d0100000.vpu: Queued 3 outputs on vpu [ 5.180646] meson-dw-hdmi c883a000.hdmi-tx: Unsupported HDMI controller (0d0d:0d:0d) [ 5.183150] meson-drm d0100000.vpu: failed to bind c883a000.hdmi-tx (ops 0xffffffc00a0cf9f8): -19 [ 5.191576] meson-drm d0100000.vpu: Couldn't bind all components [ 5.197792] meson-drm d0100000.vpu: master bind failed: -19 [ 5.205285] meson8b-dwmac c9410000.ethernet: IRQ eth_wake_irq not found [ 5.209601] meson8b-dwmac c9410000.ethernet: IRQ eth_lpi not found [ 5.215845] meson8b-dwmac c9410000.ethernet: PTP uses main clock [ 5.222655] meson8b-dwmac c9410000.ethernet: User ID: 0x11, Synopsys ID: 0x37 [ 5.228754] meson8b-dwmac c9410000.ethernet: DWMAC1000 [ 5.234012] meson8b-dwmac c9410000.ethernet: DMA HW capability register supported [ 5.241330] meson8b-dwmac c9410000.ethernet: RX Checksum Offload Engine supported [ 5.248744] meson8b-dwmac c9410000.ethernet: COE Type 2 [ 5.253919] meson8b-dwmac c9410000.ethernet: TX Checksum insertion supported [ 5.260905] meson8b-dwmac c9410000.ethernet: Wake-Up On Lan supported [ 5.267288] meson8b-dwmac c9410000.ethernet: Normal descriptors [ 5.273153] meson8b-dwmac c9410000.ethernet: Ring mode enabled [ 5.278931] meson8b-dwmac c9410000.ethernet: Enable RX Mitigation via HW Watchdog Timer [ 5.289968] dwc3-meson-g12a d0078080.usb: USB2 ports: 2 [ 5.292067] dwc3-meson-g12a d0078080.usb: USB3 ports: 0 [ 5.815169] dwc2 c9100000.usb: supply vusb_d not found, using dummy regulator [ 5.816824] dwc2 c9100000.usb: supply vusb_a not found, using dummy regulator [ 5.824071] dwc2 c9100000.usb: EPs: 7, dedicated fifos, 712 entries in SPRAM [ 5.832904] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller [ 5.836444] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 1 [ 5.843941] xhci-hcd xhci-hcd.1.auto: hcc params 0x0228f664 hci version 0x100 quirks 0x0000000002010010 [ 5.853145] xhci-hcd xhci-hcd.1.auto: irq 48, io mem 0xc9000000 [ 5.859166] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller [ 5.864577] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 2 [ 5.871987] xhci-hcd xhci-hcd.1.auto: Host supports USB 3.0 SuperSpeed [ 5.878607] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.15 [ 5.886636] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 5.893793] usb usb1: Product: xHCI Host Controller [ 5.898622] usb usb1: Manufacturer: Linux 5.15.109-ophub xhci-hcd [ 5.904660] usb usb1: SerialNumber: xhci-hcd.1.auto [ 5.910021] hub 1-0:1.0: USB hub found [ 5.913235] hub 1-0:1.0: 2 ports detected [ 5.917617] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM. [ 5.925314] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.15 [ 5.933383] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 5.940540] usb usb2: Product: xHCI Host Controller [ 5.945519] usb usb2: Manufacturer: Linux 5.15.109-ophub xhci-hcd [ 5.951416] usb usb2: SerialNumber: xhci-hcd.1.auto [ 5.956742] hub 2-0:1.0: USB hub found [ 5.960174] hub 2-0:1.0: config failed, hub doesn't have any ports! (err -19) [ 5.970993] meson-gx-mmc d0070000.mmc: allocated mmc-pwrseq [ 5.971472] scpi_protocol scpi: SCP Protocol legacy pre-1.0 firmware get_dvfs_info 0003 [ 6.006746] ALSA device list: [ 6.006790] No soundcards found. [ 6.008853] Freeing unused kernel memory: 3776K [ 6.030661] Run /init as init process [ 6.635230] lima d00c0000.gpu: gp - mali450 version major 0 minor 0 [ 6.635969] lima d00c0000.gpu: pp0 - mali450 version major 0 minor 0 [ 6.642371] lima d00c0000.gpu: pp1 - mali450 version major 0 minor 0 [ 6.648641] lima d00c0000.gpu: l2 cache 8K, 4-way, 64byte cache line, 128bit external bus [ 6.656617] lima d00c0000.gpu: l2 cache 64K, 4-way, 64byte cache line, 128bit external bus [ 6.666539] lima d00c0000.gpu: bus rate = 166666667 [ 6.669710] lima d00c0000.gpu: mod rate = 24000000 [ 6.674587] lima d00c0000.gpu: dev_pm_opp_set_regulators: no regulator (mali) found: -19 [ 6.684644] [drm] Initialized lima 1.1.0 20191231 for d00c0000.gpu on minor 0 [ 6.728690] BTRFS: device label ROOTFS_EMMC devid 1 transid 11 /dev/mmcblk2p2 scanned by systemd-udevd (335) [ 8.427172] BTRFS info (device mmcblk2p2): using crc32c (crc32c-generic) checksum algorithm [ 8.430116] BTRFS info (device mmcblk2p2): use zstd compression, level 6 [ 8.436571] BTRFS info (device mmcblk2p2): disk space caching is enabled [ 8.443188] BTRFS info (device mmcblk2p2): has skinny extents [ 8.457363] BTRFS info (device mmcblk2p2): enabling ssd optimizations [ 8.908818] systemd[1]: System time before build time, advancing clock. [ 8.960651] systemd[1]: systemd 247.3-7+deb11u1 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +ZSTD +SECCOMP +BLKID +ELFUTILS +KMOD +IDN2 -IDN +PCRE2 default-hierarchy=unified) [ 8.978652] systemd[1]: Detected architecture arm64. [ 8.986512] systemd[1]: Set hostname to . [ 9.211925] systemd[425]: /usr/lib/systemd/system-generators/netplan failed with exit status 1. [ 9.431545] systemd[1]: /lib/systemd/system/plymouth-start.service:16: Unit configured to use KillMode=none. This is unsafe, as it disables systemd's process lifecycle management for the service. Please update your service to use a safer KillMode=, such as 'mixed' or 'control-group'. Support for KillMode=none is deprecated and will eventually be removed. [ 9.589539] systemd[1]: Queued start job for default target Graphical Interface. [ 9.593063] random: systemd: uninitialized urandom read (16 bytes read) [ 9.601658] systemd[1]: Created slice system-getty.slice. [ 9.603845] random: systemd: uninitialized urandom read (16 bytes read) [ 9.611636] systemd[1]: Created slice system-modprobe.slice. [ 9.615921] random: systemd: uninitialized urandom read (16 bytes read) [ 9.624198] systemd[1]: Created slice system-serial\x2dgetty.slice. [ 9.630260] systemd[1]: Created slice system-systemd\x2dfsck.slice. [ 9.636170] systemd[1]: Created slice User and Session Slice. [ 9.641022] systemd[1]: Started Forward Password Requests to Wall Directory Watch. [ 9.649035] systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point. [ 9.657890] systemd[1]: Reached target Slices. [ 9.661815] systemd[1]: Reached target Swap. [ 9.665915] systemd[1]: Reached target System Time Set. [ 9.690171] systemd[1]: Listening on RPCbind Server Activation Socket. [ 9.692377] systemd[1]: Listening on Syslog Socket. [ 9.697172] systemd[1]: Listening on fsck to fsckd communication Socket. [ 9.703412] systemd[1]: Listening on initctl Compatibility Named Pipe. [ 9.710534] systemd[1]: Listening on Journal Audit Socket. [ 9.715676] systemd[1]: Listening on Journal Socket (/dev/log). [ 9.721850] systemd[1]: Listening on Journal Socket. [ 9.726156] systemd[1]: systemd-networkd.socket: Socket service systemd-networkd.service not loaded, refusing. [ 9.735273] systemd[1]: Failed to listen on Network Service Netlink Socket. [ 9.743666] systemd[1]: Listening on udev Control Socket. [ 9.748571] systemd[1]: Listening on udev Kernel Socket. [ 9.757647] systemd[1]: Mounting Huge Pages File System... [ 9.763846] systemd[1]: Mounting POSIX Message Queue File System... [ 9.770301] systemd[1]: Mounting RPC Pipe File System... [ 9.775510] systemd[1]: Mounting Kernel Debug File System... [ 9.776609] systemd[1]: Condition check resulted in Kernel Trace File System being skipped. [ 9.784619] systemd[1]: Condition check resulted in Kernel Module supporting RPCSEC_GSS being skipped. [ 9.798934] systemd[1]: Starting Restore / save the current clock... [ 9.805936] systemd[1]: Starting Wait for network to be configured by ifupdown... [ 9.808132] RPC: Registered named UNIX socket transport module. [ 9.808143] RPC: Registered udp transport module. [ 9.808147] RPC: Registered tcp transport module. [ 9.808150] RPC: Registered tcp NFSv4.1 backchannel transport module. [ 9.836255] systemd[1]: Starting Set the console keyboard layout... [ 9.845779] systemd[1]: Starting Create list of static device nodes for the current kernel... [ 9.855017] systemd[1]: Starting Load Kernel Module configfs... [ 9.861275] systemd[1]: Starting Load Kernel Module drm... [ 9.867647] systemd[1]: Starting Load Kernel Module fuse... [ 9.871641] systemd[1]: Condition check resulted in Set Up Additional Binary Formats being skipped. [ 9.883579] systemd[1]: Starting File System Check on Root Device... [ 9.892669] systemd[1]: Starting Load Kernel Modules... [ 9.899359] systemd[1]: Starting Coldplug All udev Devices... [ 9.919463] systemd[1]: Mounted Huge Pages File System. [ 9.920458] systemd[1]: Mounted POSIX Message Queue File System. [ 9.926463] systemd[1]: Mounted RPC Pipe File System. [ 9.931470] systemd[1]: Mounted Kernel Debug File System. [ 9.938033] systemd[1]: Finished Restore / save the current clock. [ 9.944506] systemd[1]: Finished Wait for network to be configured by ifupdown. [ 9.951551] systemd[1]: Finished Create list of static device nodes for the current kernel. [ 9.958998] systemd[1]: modprobe@configfs.service: Succeeded. [ 9.965312] systemd[1]: Finished Load Kernel Module configfs. [ 9.970522] systemd[1]: modprobe@drm.service: Succeeded. [ 9.975555] systemd[1]: Finished Load Kernel Module drm. [ 9.981134] systemd[1]: modprobe@fuse.service: Succeeded. [ 9.986504] systemd[1]: Finished Load Kernel Module fuse. [ 9.992819] systemd[1]: Finished File System Check on Root Device. [ 9.998531] systemd[1]: Finished Load Kernel Modules. [ 10.006747] systemd[1]: Mounting FUSE Control File System... [ 10.011643] systemd[1]: Mounting Kernel Configuration File System... [ 10.018645] systemd[1]: Starting Remount Root and Kernel File Systems... [ 10.025623] systemd[1]: Starting Apply Kernel Variables... [ 10.032884] systemd[1]: Mounted FUSE Control File System. [ 10.033875] systemd[1]: Mounted Kernel Configuration File System. [ 10.078055] systemd[1]: Finished Remount Root and Kernel File Systems. [ 10.080384] systemd[1]: Condition check resulted in Rebuild Hardware Database being skipped. [ 10.090947] systemd[1]: Condition check resulted in Platform Persistent Storage Archival being skipped. [ 10.103452] systemd[1]: Starting Load/Save Random Seed... [ 10.108584] systemd[1]: Starting Create System Users... [ 10.152076] systemd[1]: Finished Apply Kernel Variables. [ 10.167875] systemd[1]: Finished Create System Users. [ 10.172954] systemd[1]: Starting Create Static Device Nodes in /dev... [ 10.181915] systemd[1]: Finished Set the console keyboard layout. [ 10.220937] systemd[1]: Finished Create Static Device Nodes in /dev. [ 10.222623] systemd[1]: Reached target Local File Systems (Pre). [ 10.232327] systemd[1]: Mounting /tmp... [ 10.240425] systemd[1]: Starting Rule-based Manager for Device Events and Files... [ 10.248221] systemd[1]: Mounted /tmp. [ 10.437682] systemd[1]: Started Rule-based Manager for Device Events and Files. [ 10.506731] systemd[1]: Finished Coldplug All udev Devices. [ 10.516544] systemd[1]: Starting Helper to synchronize boot up for ifupdown... [ 10.530847] systemd[1]: Starting Show Plymouth Boot Screen... [ 10.534088] systemd[1]: Finished Helper to synchronize boot up for ifupdown. [ 10.554493] systemd[1]: Received SIGRTMIN+20 from PID 510 (plymouthd). [ 10.580035] systemd[1]: Started Show Plymouth Boot Screen. [ 10.581278] systemd[1]: Condition check resulted in Dispatch Password Requests to Console Directory Watch when bootsplash is active being skipped. [ 10.594275] random: systemd: uninitialized urandom read (16 bytes read) [ 10.600369] systemd[1]: Started Forward Password Requests to Plymouth Directory Watch. 32m [ 10.608175] random: systemd: uninitialized urandom read (16 bytes read) [ 10.608303] systemd[1]: Reached target Local Encrypted Volumes. OK [ 10.620986] random: systemd: uninitialized urandom read (16 bytes read) [ 10.627652] systemd[1]: Reached target Paths. ] Started Show Plymouth Boot Screen. [ OK ] Started Forward Password R…s to Plymouth Directory Watch. [ OK ] Reached target Local Encrypted Volumes. [ OK ] Reached target Paths. [ 10.970252] systemd[1]: Found device /dev/ttyAML0. [ OK ] Found device /dev/ttyAML0. [ 11.003833] Registered IR keymap rc-empty [ 11.004090] rc rc1: meson-ir as /devices/platform/soc/c8100000.bus/c8100580.ir/rc/rc1 [ 11.018072] systemd[1]: Reached target Hardware activated USB gadget. [ OK ] Reached target [ 11.022482] rc rc1: lirc_dev: driver meson-ir registered at minor = 0, raw IR receiver, no transmitter Hardware activated USB gadget. [ 11.038302] meson_vdec: module is from the staging directory, the quality is unknown, you have been warned. [ 11.109169] input: meson-ir as /devices/platform/soc/c8100000.bus/c8100580.ir/rc/rc1/input1 [ 11.123476] meson-ir c8100580.ir: receiver initialized [ 11.237423] systemd[1]: Found device /dev/disk/by-label/BOOT_EMMC. [ OK ] Found device /dev/disk/by-label/BOOT_EMMC. [ 11.277202] systemd[1]: Starting File System Check on /dev/disk/by-label/BOOT_EMMC... Starting File System Check…dev/disk/by-label/BOOT_EMMC... [ 11.318215] systemd[1]: Started File System Check Daemon to report status. [ OK ] Started File System Check Daemon to report status. [ 11.661467] systemd[1]: Finished File System Check on /dev/disk/by-label/BOOT_EMMC. [ 11.664873] random: systemd: uninitialized urandom read (16 bytes read) 0;32m OK ] Finished File System Check… /dev/dis[ 11.677061] systemd[1]: Mounting /boot... k/by-label/BOOT_EMMC. Mounting /boot... [ 11.708116] systemd[1]: Mounted /boot. [ OK ] Mount[ 11.709566] random: systemd: uninitialized urandom read (16 bytes read) [ 11.715458] systemd[1]: Reached target Local File Systems. ed random: systemd: uninitialized urandom read (16 bytes read) [0;1;39m/boot. [ OK ] Reached target 11.733444] systemd[1]: Starting Armbian leds state... mLocal File Systems. Starting Armbian leds state... [ 11.756274] systemd[1]: Starting Armbian ZRAM config... Starting Armbian ZRAM config... [ 11.767007] systemd[1]: Starting Set console font and keymap... Starting Set console font and keymap... [ 11.788364] systemd[1]: Starting Raise network interfaces... Starting Raise network interfaces... [ 11.802808] systemd[1]: Starting Preprocess NFS configuration... Starting Preprocess NFS configuration... [ 11.819533] systemd[1]: Starting Tell Plymouth To Write Out Runtime Data... Starting Tell Plymouth To Write Out Runtime Data... [ 11.891760] systemd[1]: Finished Armbian leds state. [ OK ] Finished Armbian leds state. [ 11.949324] systemd[1]: Finished Set console font and keymap. [ 11.950627] random: crng init done [ 11.952456] systemd[1]: nfs-config.service: Succeeded. [ 11.953080] random: 92 urandom warning(s) missed due to ratelimiting 0;32m OK ] Finished 11.969116] systemd[1]: Finished Preprocess NFS configuration. 39mSet console font and keymap. [ 11.978449] systemd[1]: Finished Load/Save Random Seed. [ 11.982080] zram: Added device: zram0 32m OK ] Finished 11.988519] systemd[1]: Finished Tell Plymouth To Write Out Runtime Data. [ 11.989390] zram: Added device: zram1 [ 11.999658] systemd[1]: Received SIGRTMIN+20 from PID 510 (plymouthd). [ 12.007737] zram: Added device: zram2 mPreprocess NFS configuration. [ OK ] Finished Load/Save Random Seed. [ OK ] Finished Tell Plymouth To Write Out Runtime Data. [ 12.049266] systemd[1]: Condition check resulted in First Boot Complete being skipped. [ 12.051839] systemd[1]: Condition check resulted in RPC security service for NFS client and server being skipped. [ 12.062007] systemd[1]: Condition check resulted in RPC security service for NFS server being skipped. [ 12.071149] systemd[1]: Reached target NFS client services. [ 12.076880] systemd[1]: Condition check resulted in Store a System Token in an EFI Variable being skipped. [ 12.086621] systemd[1]: Condition check resulted in Commit a transient machine-id on disk being skipped. [ 12.095881] zram0: detected capacity change from 0 to 1853600 0;32m OK ] Reached target NFS client services. [ 12.129290] Adding 926796k swap on /dev/zram0. Priority:5 extents:1 across:926796k SSFS [ 12.147857] systemd[1]: Finished Raise network interfaces. [ OK ] Finished Raise network interfaces. [ 12.266975] zram1: detected capacity change from 0 to 102400 [ 12.317140] systemd[1]: Finished Armbian ZRAM config. [ OK ] Finished Armb[ 12.322248] systemd[1]: Starting Armbian memory supported logging... ian ZRAM config. Starting Armbian memory supported logging... [ 12.393298] EXT4-fs (zram1): mounted filesystem without journal. Opts: discard. Quota mode: none. [ 12.396612] ext4 filesystem being mounted at /var/log supports timestamps until 2038 (0x7fffffff) [ 15.715526] systemd[1]: Finished Armbian memory supported logging. [ OK ] Finished Armbian memory supported logging. [ 15.726077] systemd[1]: Starting Journal Service... Starting Journal Service... [ 15.928207] systemd[1]: Started Journal Service. [ OK ] Started Journal Service. Starting Flush Journal to Persistent Storage... [ 15.963027] systemd-journald[711]: Received client request to flush runtime journal. [ OK ] Finished Flush Journal to Persistent Storage. Starting Create Volatile Files and Directories... [ OK ] Finished Create Volatile Files and Directories. [ OK ] Started Entropy Daemon based on the HAVEGE algorithm. Starting RPC bind portmap service... Starting Network Name Resolution... Starting Update UTMP about System Boot/Shutdown... [ OK ] Started RPC bind portmap service. [ OK ] Finished Update UTMP about System Boot/Shutdown. [ OK ] Reached target Remote File Systems (Pre). [ OK ] Reached target Remote Encrypted Volumes. [ OK ] Reached target Remote File Systems. [ OK ] Reached target RPC Port Mapper. [ OK ] Reached target System Initialization. [ OK ] Started Daily Cleanup of Temporary Directories. [ OK ] Listening on D-Bus System Message Bus Socket. [ OK ] Listening on OpenBSD Secure Shell server socket. [ OK ] Reached target Sockets. Starting Armbian hardware monitoring... Starting Armbian hardware optimization... [ OK ] Finished Armbian hardware monitoring. [ OK ] Finished Armbian hardware optimization. [ OK ] Reached target Basic System. [ OK ] Started Regular background program processing daemon. [ OK ] Started D-Bus System Message Bus. Starting Network Manager... Starting Remove Stale Onli…t4 Metadata Check Snapshots... Starting LSB: Load kernel …d to enable cpufreq scaling... Starting LSB: rng-tools (Debian variant)... Starting System Logging Service... Starting Self Monitoring a…g Technology (SMART) Daemon... Starting Resets System Activity Logs... Starting User Login Management... Starting WPA supplicant... [ OK ] Started System Logging Service. [ OK ] Finished Remove Stale Onli…ext4 Metadata Check Snapshots. [ OK ] Finished Resets System Activity Logs. [ OK ] Started WPA supplicant. [ OK ] Started Self Monitoring an…ing Technology (SMART) Daemon. [ OK ] Started LSB: rng-tools (Debian variant). [ OK ] Started Network Manager. Starting Network Manager Wait Online... [ OK ] Started Network Name Resolution. [ OK ] Reached target Network. [ OK ] Reached target Host and Network Name Lookups. Starting chrony, an NTP client/server... Starting OpenVPN service... Starting Notify NFS peers of a restart... Starting Permit User Sessions... [ OK ] Started vnStat network traffic monitor. [ OK ] Finished OpenVPN service. [ OK ] Started Notify NFS peers of a restart. [ OK ] Finished Permit User Sessions. Starting Hostname Service... [ OK ] Started User Login Management. [ OK ] Started Unattended Upgrades Shutdown. [ OK ] Started LSB: Load kernel m…ded to enable cpufreq scaling. Starting LSB: set CPUFreq kernel parameters... [ OK ] Started chrony, an NTP client/server. [ OK ] Reached target System Time Synchronized. [ OK ] Started Daily apt download activities. [ OK ] Started Daily apt upgrade and clean activities. [ OK ] Started Periodic ext4 Onli…ata Check for All Filesystems. [ OK ] Started Discard unused blocks once a week. [ OK ] Started Daily rotation of log files. [ OK ] Started Daily man-db regeneration. [ OK ] Started Run system activit…ounting tool every 10 minutes. [ OK ] Started Generate summary o…esterday's process accounting. [ OK ] Reached target Timers. [ OK ] Started Hostname Service. [ OK ] Started LSB: set CPUFreq kernel parameters. Starting LSB: Set sysfs variables from /etc/sysfs.conf... [ OK ] Listening on Load/Save RF …itch Status /dev/rfkill Watch. Starting Network Manager Script Dispatcher Service... [ OK ] Started LSB: Set sysfs variables from /etc/sysfs.conf. [ OK ] Started Network Manager Script Dispatcher Service. [ 18.001047] meson8b-dwmac c9410000.ethernet eth0: Register MEM_TYPE_PAGE_POOL RxQ-0 [ 18.070322] meson8b-dwmac c9410000.ethernet eth0: PHY [0.e40908ff:08] driver [Meson GXL Internal PHY] (irq=49) [ 19.610592] meson8b-dwmac c9410000.ethernet eth0: No Safety Features support found [ 19.612558] meson8b-dwmac c9410000.ethernet eth0: PTP not supported by HW [ 19.620435] meson8b-dwmac c9410000.ethernet eth0: configuring for phy/rmii link mode [ OK ] Finished Network Manager Wait Online. [ OK ] Reached target Network is Online. Starting /etc/rc.local Compatibility... [ OK ] Closed OpenBSD Secure Shell server socket. Starting OpenBSD Secure Shell server... [ OK ] Started OpenBSD Secure Shell server. [ 30.950940] rc.local[1360]: Restarting ssh (via systemctl): ssh.service. [ 31.013001] rc.local[1373]: irq name:eth0, irq:29, affinity: 8 [ 31.013503] rc.local[1373]: irq name:xhci-hcd:usb1, irq:48, affinity: 4 [ 31.013965] rc.local[1373]: Set the rps cpu mask of eth0 to 0x3 [ OK ] Started /etc/rc.local Compatibility. Starting Hold until boot process finishes up... Starting Terminate Plymouth Boot Screen... Armbian 23.05.0-trunk Bullseye ttyAML0 armbian login: ```

ophub commented 1 year ago

armbian-install -m yes

Becods commented 1 year ago

armbian-install -m yes

能够启动armbian,但无法启动openwrt

分区信息

armbian emmc启动日志

armbian安装日志

openwrt u盘启动日志

openwrt安装日志

openwrt emmc启动日志

armbian与openwrt从emmc启动的uboot日志对比

``` GXLX2:BL1:3cfee7:42a5ae;FEAT:ADFD318C:0;POC:3;RCY:0;EMMC:0;RE GXLX2:BL1:3cfee7:42a5ae;FEAT:ADFD318C:0;POC:3;RCY:0;EMMC:0;RE TE: 275623 | TE: 144230 BL2 Built : 13:35:42, Jun 1 2021. BL2 Built : 13:35:42, Jun 1 2021. gxl g49d5acc - liqiang.hou@droid07-sz gxl g49d5acc - liqiang.hou@droid07-sz Board ID = 3, adc=225 Board ID = 3, adc=225 set vcck to 1070 mv set vcck to 1070 mv set vddee to 1070 mv set vddee to 1070 mv CPU clk: 1200MHz CPU clk: 1200MHz DDR4 chl: Rank0+1 @ 912MHz - FAIL DDR4 chl: Rank0+1 @ 912MHz - FAIL DDR4 chl: Rank0 @ 912MHz DDR4 chl: Rank0 @ 912MHz bist_test rank: 0 1e 08 35 32 1a 4a 18 00 31 34 1a 4f 12 00 2 | bist_test rank: 0 1f 08 36 32 1a 4a 18 00 31 34 1a 4f 13 00 2 Rank0: 2048MB(auto)-2T-18 Rank0: 2048MB(auto)-2T-18 AddrBus test pass! AddrBus test pass! -s -s Load fip header from eMMC, src: 0x0000c200, des: 0x01400000, Load fip header from eMMC, src: 0x0000c200, des: 0x01400000, New fip structure! New fip structure! Load bl30 from eMMC, src: 0x00010200, des: 0x013c0000, size: Load bl30 from eMMC, src: 0x00010200, des: 0x013c0000, size: Load bl301 from eMMC, src: 0x00018200, des: 0x01380000, size: Load bl301 from eMMC, src: 0x00018200, des: 0x01380000, size: Load bl31 from eMMC, src: 0x0001c200, des: 0x10100000, size: Load bl31 from eMMC, src: 0x0001c200, des: 0x10100000, size: Load bl33 from eMMC, src: 0x00038200, des: 0x01000000, size: Load bl33 from eMMC, src: 0x00038200, des: 0x01000000, size: NOTICE: BL3-1: v1.0(debug):27617c8a4 NOTICE: BL3-1: v1.0(debug):27617c8a4 NOTICE: BL3-1: Built : 18:02:23, Aug 18 2021 NOTICE: BL3-1: Built : 18:02:23, Aug 18 2021 NOTICE: BL31: GXL normal boot! NOTICE: BL31: GXL normal boot! NOTICE: BL31: BL33 decompress pass NOTICE: BL31: BL33 decompress pass [Image: gxl_v1.1.3103-923400455-dirty 2020-12-28 18:42:52 xin [Image: gxl_v1.1.3103-923400455-dirty 2020-12-28 18:42:52 xin efuse init ops = c5 efuse init ops = c5 efuse init hdcp = c, cf9=7 efuse init hdcp = c, cf9=7 x2_hp_e = 0 x2_hp_e = 0 bl30: check_permit, count is 1 bl30: check_permit, count is 1 bl30: check_permit: ok! bl30: check_permit: ok! chipid: 0 0 3 c c 0 f1 b3 40 a0 0 c5 not ES chip chipid: 0 0 3 c c 0 f1 b3 40 a0 0 c5 not ES chip [0.818543 Inits done] | [0.685692 Inits done] INFO: BL3-1: Initializing runtime services INFO: BL3-1: Initializing runtime services WARNING: No OPTEE provided by BL2 boot loader WARNING: No OPTEE provided by BL2 boot loader ERROR: Error initializing runtime service opteed_fast ERROR: Error initializing runtime service opteed_fast INFO: BL3-1: Preparing for EL3 exit to normal world INFO: BL3-1: Preparing for EL3 exit to normal world INFO: BL3-1: Next image address = 0x1000000 INFO: BL3-1: Next image address = 0x1000000 INFO: BL3-1: Next image spsr = 0x3c9 INFO: BL3-1: Next image spsr = 0x3c9 U-Boot 2015.01-g2bd1e3b (Apr 09 2022 - 06:14:31), Build: jenk U-Boot 2015.01-g2bd1e3b (Apr 09 2022 - 06:14:31), Build: jenk DRAM: 2 GiB DRAM: 2 GiB Relocation Offset is: 76edf000 Relocation Offset is: 76edf000 gpio: pin GPIODV_25 (gpio 44) value is 1 gpio: pin GPIODV_25 (gpio 44) value is 1 register usb cfg[0][1] = 0000000077f5d610 register usb cfg[0][1] = 0000000077f5d610 [CANVAS]canvas init [CANVAS]canvas init vpu: error: vpu: check dts: FDT_ERR_BADMAGIC, load default pa vpu: error: vpu: check dts: FDT_ERR_BADMAGIC, load default pa vpu: clk_level = 7 vpu: clk_level = 7 vpu: set clk: 666667000Hz, readback: 666660000Hz(0x300) vpu: set clk: 666667000Hz, readback: 666660000Hz(0x300) vpp: vpp_init vpp: vpp_init MMC: aml_priv->desc_buf = 0x0000000073ecfac0 MMC: aml_priv->desc_buf = 0x0000000073ecfac0 aml_priv->desc_buf = 0x0000000073ed1de0 aml_priv->desc_buf = 0x0000000073ed1de0 SDIO Port B: 0, SDIO Port C: 1 SDIO Port B: 0, SDIO Port C: 1 emmc/sd response timeout, cmd8, status=0x1ff2800 emmc/sd response timeout, cmd8, status=0x1ff2800 emmc/sd response timeout, cmd55, status=0x1ff2800 emmc/sd response timeout, cmd55, status=0x1ff2800 init_part() 278: PART_TYPE_DOS init_part() 278: PART_TYPE_DOS [mmc_init] mmc init success [mmc_init] mmc init success dtb magic 00088b1f dtb magic 00088b1f Amlogic multi-dtb tool Amlogic multi-dtb tool GZIP format, decompress... GZIP format, decompress... Multi dtb detected Multi dtb detected unified board, board id = 3 unified board, board id = 3 Multi dtb tool version: v2 . Multi dtb tool version: v2 . Support 6 dtbs. Support 6 dtbs. aml_dt soc: gxlx2 platform: p291 variant: 2g aml_dt soc: gxlx2 platform: p291 variant: 2g dtb 0 soc: gxlx2 plat: p291 vari: 1g dtb 0 soc: gxlx2 plat: p291 vari: 1g dtb 1 soc: gxlx2 plat: p291 vari: 2g dtb 1 soc: gxlx2 plat: p291 vari: 2g dtb 2 soc: gxlx2 plat: p291 vari: 3g dtb 2 soc: gxlx2 plat: p291 vari: 3g dtb 3 soc: gxlx2 plat: p295 vari: 1g dtb 3 soc: gxlx2 plat: p295 vari: 1g dtb 4 soc: gxlx2 plat: p295 vari: 2g dtb 4 soc: gxlx2 plat: p295 vari: 2g dtb 5 soc: gxlx2 plat: p295 vari: 3g dtb 5 soc: gxlx2 plat: p295 vari: 3g Find match dtb: 1 Find match dtb: 1 start dts,buffer=0000000073ed4610,dt_addr=0000000073ed4610 start dts,buffer=0000000073ed4610,dt_addr=0000000073ed4610 Amlogic multi-dtb tool Amlogic multi-dtb tool Single dtb detected Single dtb detected parts: 1 parts: 1 00: data ffffffffffffffff 4 00: data ffffffffffffffff 4 init_part() 278: PART_TYPE_DOS init_part() 278: PART_TYPE_DOS eMMC/TSD partition table have been checked OK! eMMC/TSD partition table have been checked OK! check pattern success check pattern success mmc env offset: 0x7400000 mmc env offset: 0x7400000 > *** Warning - bad CRC, using default environment > > Saving Environment to aml-storage... > mmc env offset: 0x7400000 > Writing to MMC(1)... done In: serial In: serial Out: serial Out: serial Err: serial Err: serial board id is : 3 board id is : 3 hpd_state=0 hpd_state=0 do_hpd_detect: hdmimode=720p50hz do_hpd_detect: hdmimode=720p50hz do_hpd_detect: colorattribute=444,8bit do_hpd_detect: colorattribute=444,8bit cvbs performance type = 7, table = 2 cvbs performance type = 7, table = 2 [store]To run cmd[emmc dtb_read 0x1000000 0x40000] [store]To run cmd[emmc dtb_read 0x1000000 0x40000] _verify_dtb_checksum()-924: calc 67b68105, store 67b68105 _verify_dtb_checksum()-924: calc 67b68105, store 67b68105 _verify_dtb_checksum()-924: calc 67b68105, store 67b68105 _verify_dtb_checksum()-924: calc 67b68105, store 67b68105 dtb_read()-1046: total valid 2 dtb_read()-1046: total valid 2 dtb_read()-1113: do nothing dtb_read()-1113: do nothing Amlogic multi-dtb tool Amlogic multi-dtb tool GZIP format, decompress... GZIP format, decompress... Multi dtb detected Multi dtb detected unified board, board id = 3 unified board, board id = 3 Multi dtb tool version: v2 . Multi dtb tool version: v2 . Support 6 dtbs. Support 6 dtbs. aml_dt soc: gxlx2 platform: p291 variant: 2g aml_dt soc: gxlx2 platform: p291 variant: 2g dtb 0 soc: gxlx2 plat: p291 vari: 1g dtb 0 soc: gxlx2 plat: p291 vari: 1g dtb 1 soc: gxlx2 plat: p291 vari: 2g dtb 1 soc: gxlx2 plat: p291 vari: 2g dtb 2 soc: gxlx2 plat: p291 vari: 3g dtb 2 soc: gxlx2 plat: p291 vari: 3g dtb 3 soc: gxlx2 plat: p295 vari: 1g dtb 3 soc: gxlx2 plat: p295 vari: 1g dtb 4 soc: gxlx2 plat: p295 vari: 2g dtb 4 soc: gxlx2 plat: p295 vari: 2g dtb 5 soc: gxlx2 plat: p295 vari: 3g dtb 5 soc: gxlx2 plat: p295 vari: 3g Find match dtb: 1 Find match dtb: 1 Net: eth_initialize:396 dwmac.c9410000 idx:0 Net: eth_initialize:396 dwmac.c9410000 idx:0 amlkey_init() enter! amlkey_init() enter! [EFUSE_MSG]keynum is 4 [EFUSE_MSG]keynum is 4 [BL31]: tee size: 0 [BL31]: tee size: 0 wipe_data=successful wipe_data=successful wipe_cache=successful wipe_cache=successful _get_part_index_by_name()-165: do not find match in table ven _get_part_index_by_name()-165: do not find match in table ven Err imgread(L536):invalid partition name(vendor) Err imgread(L536):invalid partition name(vendor) ext4logoLoadCmd=ext4load mmc 1:${logoPart} ${logoLoadAddr} ${ ext4logoLoadCmd=ext4load mmc 1:${logoPart} ${logoLoadAddr} ${ Failed to mount ext2 filesystem... Failed to mount ext2 filesystem... ** Unrecognized filesystem type ** ** Unrecognized filesystem type ** Err imgread(L543):Fail in load logo cmd Err imgread(L543):Fail in load logo cmd logo part bootup logo part bootup _find_partition_by_name()-188: do not find match in table log _find_partition_by_name()-188: do not find match in table log Cannot find dev. Cannot find dev. amlmmc cmd failed amlmmc cmd failed store - STORE sub-system store - STORE sub-system Usage: Usage: store store init flag store store init flag store read name addr off|partition size store read name addr off|partition size read 'size' bytes starting at offset 'off' read 'size' bytes starting at offset 'off' to/from memory address 'addr', skipping bad blocks. to/from memory address 'addr', skipping bad blocks. store write name addr off|partition size store write name addr off|partition size write 'size' bytes starting at offset 'off' write 'size' bytes starting at offset 'off' to/from memory address 'addr', skipping bad blocks. to/from memory address 'addr', skipping bad blocks. store rom_write add off size. store rom_write add off size. write uboot to the boot device write uboot to the boot device store erase boot/data: store erase boot/data: erase the area which is uboot or data erase the area which is uboot or data store erase partition : store erase partition : erase the area which partition in u-boot erase the area which partition in u-boot store erase dtb store erase dtb store erase key store erase key store disprotect key store disprotect key store rom_protect on/off store rom_protect on/off store scrub off|partition size store scrub off|partition size scrub the area from offset and size scrub the area from offset and size store dtb iread/read/write addr store dtb iread/read/write addr read/write dtb, size is optional read/write dtb, size is optional store key read/write addr store key read/write addr read/write key, size is optional read/write key, size is optional store mbr addr store mbr addr update mbr/partition table by dtb update mbr/partition table by dtb cmd store failed cmd store failed Err imgread(L336):Fail to read 0x2000B from part[logo] at off Err imgread(L336):Fail to read 0x2000B from part[logo] at off There is no valid bmp file at the given address There is no valid bmp file at the given address [OSD]load fb addr from dts [OSD]load fb addr from dts [OSD]fb_addr for logo: 0x7f800000 [OSD]fb_addr for logo: 0x7f800000 [OSD]load fb addr from dts [OSD]load fb addr from dts [OSD]fb_addr for logo: 0x7f800000 [OSD]fb_addr for logo: 0x7f800000 [CANVAS]addr=0x7f800000 width=3840, height=2160 [CANVAS]addr=0x7f800000 width=3840, height=2160 There is no valid bmp file at the given address There is no valid bmp file at the given address upgrade_step=2 | upgrade_step=0 upgrade_step12=2 | upgrade_step12=0 amlkey_init() enter! amlkey_init() enter! amlkey_init() 70: already init! amlkey_init() 70: already init! [EFUSE_MSG]keynum is 4 [EFUSE_MSG]keynum is 4 [BL31]: tee size: 0 [BL31]: tee size: 0 [KM]Error:f[key_manage_query_size]L507:key[cmei] not programe [KM]Error:f[key_manage_query_size]L507:key[cmei] not programe key1 = 7d82dd22 key1 = 7d82dd22 key2 = 7e81dd22 key2 = 7e81dd22 key3 = 728ddd22 key3 = 728ddd22 time_out = 7a120 time_out = 7a120 ir init ir init irkey - irkey key_value1 key_value2 key_value3 time_value irkey - irkey key_value1 key_value2 key_value3 time_value Usage: Usage: irkey irkey rebootmode=cold_boot rebootmode=cold_boot Hit any key to stop autoboot: 0 Hit any key to stop autoboot: 0 > _find_partition_by_name()-188: do not find match in table boo > Cannot find dev. > amlmmc cmd failed > > store - STORE sub-system > > Usage: > store store init flag > store read name addr off|partition size > read 'size' bytes starting at offset 'off' > to/from memory address 'addr', skipping bad blocks. > store write name addr off|partition size > write 'size' bytes starting at offset 'off' > to/from memory address 'addr', skipping bad blocks. > store rom_write add off size. > write uboot to the boot device > store erase boot/data: > erase the area which is uboot or data > store erase partition : > erase the area which partition in u-boot > store erase dtb > store erase key > store disprotect key > store rom_protect on/off > store scrub off|partition size > scrub the area from offset and size > store dtb iread/read/write addr > read/write dtb, size is optional > store key read/write addr > read/write key, size is optional > store mbr addr > update mbr/partition table by dtb > > cmd store failed > Err imgread(L135):Fail to read 0x100000B from part[boot] at o > Enter USB burn > Try connect time out 1001, 1000, 1449 card out card out > [MSG]mmcinfo failed! (Re)start USB... (Re)start USB... USB0: USB3.0 XHCI init start USB0: USB3.0 XHCI init start Register 2000140 NbrPorts 2 Register 2000140 NbrPorts 2 Starting the controller Starting the controller USB XHCI 1.00 USB XHCI 1.00 scanning bus 0 for devices... 1 USB Device(s) found scanning bus 0 for devices... 1 USB Device(s) found scanning usb for storage devices... 0 Storage Device(s scanning usb for storage devices... 0 Storage Device(s ** Bad device usb 0 ** ** Bad device usb 0 ** ** Bad device usb 1 ** | ** Bad device usb 0 ** ** Bad device usb 2 ** | Failed to mount ext2 filesystem... ** Bad device usb 3 ** | ** Unrecognized filesystem type ** reading emmc_autoscript | Failed to mount ext2 filesystem... 831 bytes read in 3 ms (270.5 KiB/s) | ** Unrecognized filesystem type ** ## Executing script at 01020000 | _find_partition_by_name()-188: do not find match in table rec reading u-boot.emmc | Cannot find dev. 650183 bytes read in 21 ms (29.5 MiB/s) | amlmmc cmd failed ## Starting application at 0x01000000 ... | [BL31]: tee size: 0 | store - STORE sub-system [BL31]: tee size: 0 | [ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x | Usage: [ 0.000000] Linux version 5.15.109-ophub (root@fv-az440-74 \ store store init flag > store read name addr off|partition size > read 'size' bytes starting at offset 'off' > to/from memory address 'addr', skipping bad blocks. > store write name addr off|partition size > write 'size' bytes starting at offset 'off' > to/from memory address 'addr', skipping bad blocks. > store rom_write add off size. > write uboot to the boot device > store erase boot/data: > erase the area which is uboot or data > store erase partition : > erase the area which partition in u-boot > store erase dtb > store erase key > store disprotect key > store rom_protect on/off > store scrub off|partition size > scrub the area from offset and size > store dtb iread/read/write addr > read/write dtb, size is optional > store key read/write addr > read/write key, size is optional > store mbr addr > update mbr/partition table by dtb > > cmd store failed > Err imgread(L135):Fail to read 0x100000B from part[recovery] > gxl_p211_v1# ```

mmc env offset: 0x7400000                   mmc env offset: 0x7400000 
                                  > *** Warning - bad CRC, using default environment
                                  >  
                                  > Saving Environment to aml-storage...
                                  > mmc env offset: 0x7400000 
                                  > Writing to MMC(1)... done
ophub commented 1 year ago

openwrt在系统,晶晨宝盒,插件设置,勾选上写入bootloader ,再到安装openwrt里选择写入即可。

Becods commented 1 year ago

openwrt在系统,晶晨宝盒,插件设置,勾选上写入bootloader ,再到安装openwrt里选择写入即可。

已勾选并写入,但仍无法启动

写入日志

``` root@OpenWrt:/# cat /tmp/amlogic/amlogic_check_install.log AUTO_MAINLINE_UBOOT: yes SPECIFY_DTB: SPECIFY_SOC: SPECIFY_UBOOT: SHARED_FSTYPE: btrfs Current device: Amlogic Meson GXL (S905L3b) MBH-M302A Box [ amlogic ] /dev/mmcblk2 mmcblk2 : 15634268160 bytes ROOTFS: sda2 BOOT: sda1 Please select s9xxx box model: ---------------------------------------------------------------------------------------------------- 101. Phicomm-N1 s905d 2GB-Mem,1Gb-Nic,brcm43455-wifi 102. Phicomm-N1(DMA-thresh) s905d When-ethmac-flow-control-is-off 103. HG680P s905x 2+8G,100Mb-Nic 104. TX3-Mini s905w 2+8G,100Mb-Nic 105. MECOOL-KI-Pro s905d 2G/16G,1Gb-Nic 106. T95 s905x 2G/16G,1Gb-Nic 107. B860H s905x 2+8G,100Mb-Nic 108. TBee s905x 2+8G,100Mb-Nic 109. W95 s905w 2GB-RAM,16GB-ROM,100Mb-Nic 110. X96-Mini s905w 2+8G,100Mb-Nic 111. TX9 s905x 100Mb-Nic,rtl8723cs-WLAN 112. M302A,M304A,CM211-1,CM311-1 s905l3b 2+8G,100Mb-Nic 113. MGV2000,MGV3000,M301A s905l2 2+8G,100Mb-Nic 114. Wojia-TV-IPBS9505 s905l2 2+8G,100Mb-Nic 115. Q96-mini s905lb 1G/8G,100Mb-Nic 116. CM311-1,HG680-LC,M401A s905l3 2+8G,100Mb-Nic 117. E900V22E s905l3b 2+8G,100Mb-Nic 118. BesTV-R3300L,SumaVision-Q7 s905lb 2+8G,100Mb-Nic 119. X96W,FunTV,MXQ-Pro-4K s905w 2GB-RAM,16GB-ROM,100Mb-Nic,AP6255-wifi/BT 120. E900V22D s905l3b 2+8G,100Mb-Nic 121. UNT400G1 s905l3 2+8G,100Mb-Nic 122. E900v21E s905l2 2+8G,100Mb-Nic 123. IP103H,TY1608 s905l3b 2+8G,100Mb-Nic 124. CM211-1 s905l3 2+8G,100Mb-Nic 201. Octopus-Planet s912 2GB-Mem,1Gb-Nic 202. Octopus-Planet(FAKE) s912 2GB-Mem,1Gb-Nic 203. H96-Pro-Plus s912 2G/32G,1Gb-Nic 204. Tanix-TX92 s912 3GB-DDR4,32GB-eMMC,5G-WIFI,1Gb-Nic 205. VORKE-Z6-Plus s912 3GB-DDR3,32GB-eMMC,1Gb-Nic 206. MECOOL-M8S-Pro-L s912 2G/3G-RAM,16G/32G-ROM,100Mb-Nic 207. T95Z-Plus s912 3G+32G,1Gb-Nic 208. TX9-Pro(3G_32G_1Gb) s912 3G-RAM,32G-ROM,1Gb-Nic,brcm43455-wifi 209. TX9-Pro(2G_16G_100Mb) s912 3G-RAM,32G-ROM,100Mb-Nic,RTL8189ETV-wifi 210. Nexbox-A1,A95X s912 2G-DDR3-RAM,16G-eMMC,1Gb-Nic 211. Nexbox-A95X-A2 s912 2GB-RAM,16GB-ROM,2.4G/5.0G-WiFi,1Gb-Nic 212. Tanix-TX8-MAX s912 3GB-RAM,16GB/32GB-eMMC,1Gb-Nic 213. Vontar-X92 s912 3GB-RAM,16GB/32GB-eMMC,1Gb-Nic 214. Phicomm-T1 s912 2G-RAM,16G-ROM,100Mb-Nic,Wifi,Bluetooth 301. X96-Max-4GB,Tx5-Max s905x2 4GB-Mem,1Gb-Nic 302. X96-Max-2GB,A95X-F2 s905x2 2GB-Mem,100Mb-Nic 303. MECOOL-KM3-4G s905x2 4+64G/128G,100Mb-Nic 304. E900V22C-D s905l3a 4+64G/128G,100Mb-Nic 305. CM311-1a-YST s905l3a 2+16G,BT-rtl8761b,100Mb-Nic 306. M401A,UNT403A,B863AV3.2-M s905l3a 2+16G,100Mb-Nic 401. GT-King s922x 4GB-Mem,1Gb-Nic,brcm4356-wifi 402. GT-King-Pro,X88-King s922x 4GB-Mem,1Gb-Nic,brcm4356-wifi 403. GT-King-Pro-H s922x 4GB-Mem,1Gb-Nic,brcm4356-wifi 404. GT-King-Pro-Rev_A s922x 4GB-Mem,1Gb-Nic,brcm4356-wifi 405. Hardkernel-ODroid-N2 s922x 4GB-Mem,1Gb-Nic 406. UGOOS-AM6-Plus s922x 4GB-Mem,1Gb-Nic,brcm4398-wifi 407. Khadas-VIM3 a311d 1Gb-Nic,brcm4398-wifi 408. Ali-CT2000 s922x 4GB-Mem,16GB-eMMC,1Gb-Nic,Bluetooth,wifi 501. HK1-Box,Vontar-X3 s905x3 4GB-Mem,1Gb-Nic,brcm4339-wifi 502. HK1-Box(OverClock) s905x3 4GB-Mem,1Gb-Nic,brcm4339-wifi 503. H96-Max-X3,Infinity-B32 s905x3 4GB-Mem,1Gb-Nic,brcm4339-wifi 504. H96-Max-X3(OverClock),B32 s905x3 4GB-Mem,1Gb-Nic,brcm4339-wifi 505. Ugoos-X3 s905x3 4GB-Mem,1Gb-Nic,brcm43455/43456-wifi 506. Ugoos-X3(OverClock) s905x3 4GB-Mem,1Gb-Nic,brcm43455/43456-wifi 507. TX3-1Gb s905x3 4GB-Mem,1Gb-Nic,bcm4330-wifi 508. TX3-1Gb(OverClock) s905x3 4GB-Mem,1Gb-Nic,bcm4330-wifi 509. TX3-100Mb s905x3 4GB-Mem,100Mb-Nic,bcm4330-wifi 510. TX3-100Mb(OverClock) s905x3 4GB-Mem,100Mb-Nic,bcm4330-wifi 511. A95XF3-Air-1Gb s905x3 2GB-Mem,1Gb-Nic,Wifi 512. A95XF3-Air-100Mb s905x3 2GB-Mem,100Mb-Nic,Wifi 513. Tencent-Aurora-3Pro s905x3 4GB-Mem,32G-Rom,1Gb-Nic(JL2xx1) 514. X96-Air-1Gb s905x3 2GB-Mem,1Gb-Nic,Wifi 515. X96-Air,X96-Max+100W,100Mb s905x3 2GB-Mem,100Mb-Nic,Wifi 516. X96-Air-Q1000 s905x3 4GB-Mem,1Gb-Nic,qca9377-wifi 517. X96-Max+_100Mb s905x3 4GB-Mem,1Gb-Nic,rtl8822cs-wifi 518. X96-Max+_1GB s905x3 4GB-Mem,1Gb-Nic,rtl8822cs-wifi 519. X96-Max+(OverClock) s905x3 4GB-Mem,1Gb-Nic,rtl8822cs-wifi 520. X96-Max+(IP1001M) s905x3 4GB-Mem,1Gb-Nic(IP1001M),brcm4354-wifi 521. X96-Max+Q1 s905x3 4GB-Mem,32G-Rom,Wifi-work,100Mb-Nic 522. X96-Max+Q2 s905x3 4GB-Mem,1Gb-Nic,qca9377-wifi 523. X96-Max+_A100 s905x3 4GB-Mem,32G-Rom,Wifi-AM7256,100Mb-Nic 524. X96-Max+_2101 s905x3 4GB-Mem,32G-Rom,Wifi/BT,1Gb-Nic(JL2xx1) w101. Vplus-Cloud h6 1GB-DDR3,8G-eMMC,1Gb-Nic w102. Tanix-TX6 h6 2GB/4GB-DDR3,16G/32G-eMMC,100Mb-Nic ---------------------------------------------------------------------------------------------------- AMLOGIC_SOC Value [ s905l3b ] FDTFILE Value [ meson-gxl-s905l3b-m302a.dtb ] UBOOT_OVERLOAD Value [ u-boot-s905x-s912.bin ] MAINLINE_UBOOT Value [ ] ANDROID_UBOOT Value [ ] K510 [ 0 ] /mnt/mmcblk2p1 umount -f /mnt/mmcblk2p1 /mnt/mmcblk2p2 umount -f /mnt/mmcblk2p2 /mnt/mmcblk2p3 umount -f /mnt/mmcblk2p3 /mnt/mmcblk2p4 umount -f /mnt/mmcblk2p4 A total of [ 4 ] old partitions on EMMC will be deleted Welcome to fdisk (util-linux 2.38.1). Changes will remain in memory only, until you decide to write them. Be careful before using the write command. Command (m for help): Partition number (1-4, default 4): Partition 4 has been deleted. Command (m for help): Partition number (1-3, default 3): Partition 3 has been deleted. Command (m for help): Partition number (1,2, default 2): Partition 2 has been deleted. Command (m for help): Selected partition 1 Partition 1 has been deleted. Command (m for help): Partition type p primary (0 primary, 0 extended, 4 free) e extended (container for logical partitions) Select (default p): Partition number (1-4, default 1): First sector (2048-30535679, default 2048): Last sector, +/-sectors or +/-size{K,M,G,T,P} (139264-30535679, default 30535679): Created a new partition 1 of type 'Linux' and of size 160 MiB. Command (m for help): Partition type p primary (1 primary, 0 extended, 3 free) e extended (container for logical partitions) Select (default p): Partition number (2-4, default 2): First sector (2048-30535679, default 2048): Last sector, +/-sectors or +/-size{K,M,G,T,P} (466944-30535679, default 30535679): Created a new partition 2 of type 'Linux' and of size 960 MiB. Command (m for help): Partition type p primary (2 primary, 0 extended, 2 free) e extended (container for logical partitions) Select (default p): Partition number (3,4, default 3): First sector (2048-30535679, default 2048): Last sector, +/-sectors or +/-size{K,M,G,T,P} (2764800-30535679, default 30535679): Created a new partition 3 of type 'Linux' and of size 960 MiB. Command (m for help): Partition type p primary (3 primary, 0 extended, 1 free) e extended (container for logical partitions) Select (default e): Selected partition 4 First sector (2048-30535679, default 2048): Last sector, +/-sectors or +/-size{K,M,G,T,P} (4730880-30535679, default 30535679): Created a new partition 4 of type 'Linux' and of size 12.3 GiB. Command (m for help): Partition number (1-4, default 4): Hex code or alias (type L to list all): Changed type of partition 'Linux' to 'W95 FAT32 (LBA)'. Command (m for help): Partition number (1-4, default 4): Hex code or alias (type L to list all): Changed type of partition 'Linux' to 'Linux'. Command (m for help): Partition number (1-4, default 4): Hex code or alias (type L to list all): Changed type of partition 'Linux' to 'Linux'. Command (m for help): Partition number (1-4, default 4): Hex code or alias (type L to list all): Changed type of partition 'Linux' to 'Linux'. Command (m for help): The partition table has been altered. Calling ioctl() to re-read partition table. Syncing disks. Partition complete. Did not change the original bootloader. Start creating file system ... Create a boot file system ... format boot partiton... mkfs.fat 4.2 (2021-01-31) format rootfs1 partiton... btrfs-progs v5.16.1 See http://btrfs.wiki.kernel.org for more information. Performing full device TRIM /dev/mmcblk2p2 (960.00MiB) ... NOTE: several default settings have changed in version 5.15, please make sure this does not affect your deployments: - DUP for metadata (-m dup) - enabled no-holes (-O no-holes) - enabled free-space-tree (-R free-space-tree) Label: EMMC_ROOTFS1 UUID: 7ebecc81-9935-47b8-868b-dfe930edb79a Node size: 16384 Sector size: 4096 Filesystem size: 960.00MiB Block group profiles: Data: single 8.00MiB Metadata: single 8.00MiB System: single 4.00MiB SSD detected: yes Zoned device: no Incompat features: extref, skinny-metadata, no-holes Runtime features: free-space-tree Checksum: crc32c Number of devices: 1 Devices: ID SIZE PATH 1 960.00MiB /dev/mmcblk2p2 format rootfs2 partiton... btrfs-progs v5.16.1 See http://btrfs.wiki.kernel.org for more information. Performing full device TRIM /dev/mmcblk2p3 (960.00MiB) ... NOTE: several default settings have changed in version 5.15, please make sure this does not affect your deployments: - DUP for metadata (-m dup) - enabled no-holes (-O no-holes) - enabled free-space-tree (-R free-space-tree) Label: EMMC_ROOTFS2 UUID: 4b305151-a6b7-4974-9506-0f732385859e Node size: 16384 Sector size: 4096 Filesystem size: 960.00MiB Block group profiles: Data: single 8.00MiB Metadata: single 8.00MiB System: single 4.00MiB SSD detected: yes Zoned device: no Incompat features: extref, skinny-metadata, no-holes Runtime features: free-space-tree Checksum: crc32c Number of devices: 1 Devices: ID SIZE PATH 1 960.00MiB /dev/mmcblk2p3 Wait for the boot file system to mount ... Successfully mounted. copy boot ... Edit uEnv.txt ... complete. complete. Wait for the rootfs file system to mount ... Successfully mounted Create folder ... Create subvolume './etc' complete. Copy data ... copy [ root ] ... copy [ etc ] ... copy [ bin ] ... copy [ sbin ] ... copy [ lib ] ... copy [ opt ] ... copy [ usr ] ... copy [ www ] ... Copy complete. Edit configuration file ... ../../lib/modules/5.15.109-ophub/kernel/drivers/net/ethernet/qualcomm/sfe/shortcut-fe/shortcut-fe-cm.ko ../../lib/modules/5.15.109-ophub/shortcut-fe-cm.ko Create initial etc snapshot -> .snapshots/etc-000Create a readonly snapshot of 'etc' in '.snapshots/etc-000' complete. Create a shared file system. Successful installed, please unplug the USB, re-insert the power supply to start the openwrt. ```

uboot日志

``` GXLX2:BL1:3cfee7:42a5ae;FEAT:ADFD318C:0;POC:3;RCY:0;EMMC:0;RE GXLX2:BL1:3cfee7:42a5ae;FEAT:ADFD318C:0;POC:3;RCY:0;EMMC:0;RE TE: 275623 | TE: 170034 | BL2 Built : 13:35:42, Jun 1 2021. BL2 Built : 13:35:42, Jun 1 2021. gxl g49d5acc - liqiang.hou@droid07-sz gxl g49d5acc - liqiang.hou@droid07-sz | Board ID = 3, adc=225 Board ID = 3, adc=225 set vcck to 1070 mv set vcck to 1070 mv set vddee to 1070 mv set vddee to 1070 mv CPU clk: 1200MHz CPU clk: 1200MHz | DDR4 chl: Rank0+1 @ 912MHz - FAIL DDR4 chl: Rank0+1 @ 912MHz - FAIL DDR4 chl: Rank0 @ 912MHz DDR4 chl: Rank0 @ 912MHz bist_test rank: 0 1e 08 35 32 1a 4a 18 00 31 34 1a 4f 12 00 2 | bist_test rank: 0 1e 08 35 33 1a 4c 19 00 32 35 1a 50 13 00 2 | Rank0: 2048MB(auto)-2T-18 Rank0: 2048MB(auto)-2T-18 AddrBus test pass! AddrBus test pass! -s -s Load fip header from eMMC, src: 0x0000c200, des: 0x01400000, Load fip header from eMMC, src: 0x0000c200, des: 0x01400000, New fip structure! New fip structure! Load bl30 from eMMC, src: 0x00010200, des: 0x013c0000, size: Load bl30 from eMMC, src: 0x00010200, des: 0x013c0000, size: Load bl301 from eMMC, src: 0x00018200, des: 0x01380000, size: Load bl301 from eMMC, src: 0x00018200, des: 0x01380000, size: Load bl31 from eMMC, src: 0x0001c200, des: 0x10100000, size: Load bl31 from eMMC, src: 0x0001c200, des: 0x10100000, size: Load bl33 from eMMC, src: 0x00038200, des: 0x01000000, size: Load bl33 from eMMC, src: 0x00038200, des: 0x01000000, size: NOTICE: BL3-1: v1.0(debug):27617c8a4 NOTICE: BL3-1: v1.0(debug):27617c8a4 NOTICE: BL3-1: Built : 18:02:23, Aug 18 2021 NOTICE: BL3-1: Built : 18:02:23, Aug 18 2021 NOTICE: BL31: GXL normal boot! NOTICE: BL31: GXL normal boot! NOTICE: BL31: BL33 decompress pass NOTICE: BL31: BL33 decompress pass [Image: gxl_v1.1.3103-923400455-dirty 2020-12-28 18:42:52 xin [Image: gxl_v1.1.3103-923400455-dirty 2020-12-28 18:42:52 xin efuse init ops = c5 efuse init ops = c5 efuse init hdcp = c, cf9=7 efuse init hdcp = c, cf9=7 x2_hp_e = 0 x2_hp_e = 0 bl30: check_permit, count is 1 bl30: check_permit, count is 1 bl30: check_permit: ok! bl30: check_permit: ok! chipid: 0 0 3 c c 0 f1 b3 40 a0 0 c5 not ES chip chipid: 0 0 3 c c 0 f1 b3 40 a0 0 c5 not ES chip [0.818543 Inits done] | [0.710279 Inits done] INFO: BL3-1: Initializing runtime services INFO: BL3-1: Initializing runtime services WARNING: No OPTEE provided by BL2 boot loader WARNING: No OPTEE provided by BL2 boot loader ERROR: Error initializing runtime service opteed_fast ERROR: Error initializing runtime service opteed_fast INFO: BL3-1: Preparing for EL3 exit to normal world INFO: BL3-1: Preparing for EL3 exit to normal world INFO: BL3-1: Next image address = 0x1000000 INFO: BL3-1: Next image address = 0x1000000 INFO: BL3-1: Next image spsr = 0x3c9 INFO: BL3-1: Next image spsr = 0x3c9 | | U-Boot 2015.01-g2bd1e3b (Apr 09 2022 - 06:14:31), Build: jenk U-Boot 2015.01-g2bd1e3b (Apr 09 2022 - 06:14:31), Build: jenk | DRAM: 2 GiB DRAM: 2 GiB Relocation Offset is: 76edf000 Relocation Offset is: 76edf000 gpio: pin GPIODV_25 (gpio 44) value is 1 gpio: pin GPIODV_25 (gpio 44) value is 1 register usb cfg[0][1] = 0000000077f5d610 register usb cfg[0][1] = 0000000077f5d610 [CANVAS]canvas init [CANVAS]canvas init vpu: error: vpu: check dts: FDT_ERR_BADMAGIC, load default pa vpu: error: vpu: check dts: FDT_ERR_BADMAGIC, load default pa vpu: clk_level = 7 vpu: clk_level = 7 vpu: set clk: 666667000Hz, readback: 666660000Hz(0x300) vpu: set clk: 666667000Hz, readback: 666660000Hz(0x300) vpp: vpp_init vpp: vpp_init MMC: aml_priv->desc_buf = 0x0000000073ecfac0 MMC: aml_priv->desc_buf = 0x0000000073ecfac0 aml_priv->desc_buf = 0x0000000073ed1de0 aml_priv->desc_buf = 0x0000000073ed1de0 SDIO Port B: 0, SDIO Port C: 1 SDIO Port B: 0, SDIO Port C: 1 emmc/sd response timeout, cmd8, status=0x1ff2800 emmc/sd response timeout, cmd8, status=0x1ff2800 emmc/sd response timeout, cmd55, status=0x1ff2800 emmc/sd response timeout, cmd55, status=0x1ff2800 init_part() 278: PART_TYPE_DOS init_part() 278: PART_TYPE_DOS [mmc_init] mmc init success [mmc_init] mmc init success dtb magic 00088b1f dtb magic 00088b1f Amlogic multi-dtb tool Amlogic multi-dtb tool GZIP format, decompress... GZIP format, decompress... Multi dtb detected Multi dtb detected unified board, board id = 3 unified board, board id = 3 Multi dtb tool version: v2 . Multi dtb tool version: v2 . Support 6 dtbs. Support 6 dtbs. aml_dt soc: gxlx2 platform: p291 variant: 2g aml_dt soc: gxlx2 platform: p291 variant: 2g dtb 0 soc: gxlx2 plat: p291 vari: 1g dtb 0 soc: gxlx2 plat: p291 vari: 1g dtb 1 soc: gxlx2 plat: p291 vari: 2g dtb 1 soc: gxlx2 plat: p291 vari: 2g dtb 2 soc: gxlx2 plat: p291 vari: 3g dtb 2 soc: gxlx2 plat: p291 vari: 3g dtb 3 soc: gxlx2 plat: p295 vari: 1g dtb 3 soc: gxlx2 plat: p295 vari: 1g dtb 4 soc: gxlx2 plat: p295 vari: 2g dtb 4 soc: gxlx2 plat: p295 vari: 2g dtb 5 soc: gxlx2 plat: p295 vari: 3g dtb 5 soc: gxlx2 plat: p295 vari: 3g Find match dtb: 1 Find match dtb: 1 start dts,buffer=0000000073ed4610,dt_addr=0000000073ed4610 start dts,buffer=0000000073ed4610,dt_addr=0000000073ed4610 Amlogic multi-dtb tool Amlogic multi-dtb tool Single dtb detected Single dtb detected parts: 1 parts: 1 00: data ffffffffffffffff 4 00: data ffffffffffffffff 4 init_part() 278: PART_TYPE_DOS init_part() 278: PART_TYPE_DOS eMMC/TSD partition table have been checked OK! eMMC/TSD partition table have been checked OK! check pattern success check pattern success mmc env offset: 0x7400000 mmc env offset: 0x7400000 > *** Warning - bad CRC, using default environment > > Saving Environment to aml-storage... > mmc env offset: 0x7400000 > Writing to MMC(1)... done In: serial In: serial Out: serial Out: serial Err: serial Err: serial board id is : 3 board id is : 3 hpd_state=0 hpd_state=0 do_hpd_detect: hdmimode=720p50hz do_hpd_detect: hdmimode=720p50hz do_hpd_detect: colorattribute=444,8bit do_hpd_detect: colorattribute=444,8bit cvbs performance type = 7, table = 2 cvbs performance type = 7, table = 2 [store]To run cmd[emmc dtb_read 0x1000000 0x40000] [store]To run cmd[emmc dtb_read 0x1000000 0x40000] _verify_dtb_checksum()-924: calc 67b68105, store 67b68105 _verify_dtb_checksum()-924: calc 67b68105, store 67b68105 _verify_dtb_checksum()-924: calc 67b68105, store 67b68105 _verify_dtb_checksum()-924: calc 67b68105, store 67b68105 dtb_read()-1046: total valid 2 dtb_read()-1046: total valid 2 dtb_read()-1113: do nothing dtb_read()-1113: do nothing Amlogic multi-dtb tool Amlogic multi-dtb tool GZIP format, decompress... GZIP format, decompress... Multi dtb detected Multi dtb detected unified board, board id = 3 unified board, board id = 3 Multi dtb tool version: v2 . Multi dtb tool version: v2 . Support 6 dtbs. Support 6 dtbs. aml_dt soc: gxlx2 platform: p291 variant: 2g aml_dt soc: gxlx2 platform: p291 variant: 2g dtb 0 soc: gxlx2 plat: p291 vari: 1g dtb 0 soc: gxlx2 plat: p291 vari: 1g dtb 1 soc: gxlx2 plat: p291 vari: 2g dtb 1 soc: gxlx2 plat: p291 vari: 2g dtb 2 soc: gxlx2 plat: p291 vari: 3g dtb 2 soc: gxlx2 plat: p291 vari: 3g dtb 3 soc: gxlx2 plat: p295 vari: 1g dtb 3 soc: gxlx2 plat: p295 vari: 1g dtb 4 soc: gxlx2 plat: p295 vari: 2g dtb 4 soc: gxlx2 plat: p295 vari: 2g dtb 5 soc: gxlx2 plat: p295 vari: 3g dtb 5 soc: gxlx2 plat: p295 vari: 3g Find match dtb: 1 Find match dtb: 1 Net: eth_initialize:396 dwmac.c9410000 idx:0 Net: eth_initialize:396 dwmac.c9410000 idx:0 amlkey_init() enter! amlkey_init() enter! [EFUSE_MSG]keynum is 4 [EFUSE_MSG]keynum is 4 [BL31]: tee size: 0 [BL31]: tee size: 0 | wipe_data=successful wipe_data=successful wipe_cache=successful wipe_cache=successful _get_part_index_by_name()-165: do not find match in table ven _get_part_index_by_name()-165: do not find match in table ven Err imgread(L536):invalid partition name(vendor) Err imgread(L536):invalid partition name(vendor) ext4logoLoadCmd=ext4load mmc 1:${logoPart} ${logoLoadAddr} ${ ext4logoLoadCmd=ext4load mmc 1:${logoPart} ${logoLoadAddr} ${ Failed to mount ext2 filesystem... Failed to mount ext2 filesystem... ** Unrecognized filesystem type ** ** Unrecognized filesystem type ** Err imgread(L543):Fail in load logo cmd Err imgread(L543):Fail in load logo cmd logo part bootup logo part bootup _find_partition_by_name()-188: do not find match in table log _find_partition_by_name()-188: do not find match in table log Cannot find dev. Cannot find dev. amlmmc cmd failed amlmmc cmd failed | store - STORE sub-system store - STORE sub-system | Usage: Usage: store store init flag store store init flag store read name addr off|partition size store read name addr off|partition size read 'size' bytes starting at offset 'off' read 'size' bytes starting at offset 'off' to/from memory address 'addr', skipping bad blocks. to/from memory address 'addr', skipping bad blocks. store write name addr off|partition size store write name addr off|partition size write 'size' bytes starting at offset 'off' write 'size' bytes starting at offset 'off' to/from memory address 'addr', skipping bad blocks. to/from memory address 'addr', skipping bad blocks. store rom_write add off size. store rom_write add off size. write uboot to the boot device write uboot to the boot device store erase boot/data: store erase boot/data: erase the area which is uboot or data erase the area which is uboot or data store erase partition : store erase partition : erase the area which partition in u-boot erase the area which partition in u-boot store erase dtb store erase dtb store erase key store erase key store disprotect key store disprotect key store rom_protect on/off store rom_protect on/off store scrub off|partition size store scrub off|partition size scrub the area from offset and size scrub the area from offset and size store dtb iread/read/write addr store dtb iread/read/write addr read/write dtb, size is optional read/write dtb, size is optional store key read/write addr store key read/write addr read/write key, size is optional read/write key, size is optional store mbr addr store mbr addr update mbr/partition table by dtb update mbr/partition table by dtb | cmd store failed cmd store failed Err imgread(L336):Fail to read 0x2000B from part[logo] at off Err imgread(L336):Fail to read 0x2000B from part[logo] at off There is no valid bmp file at the given address There is no valid bmp file at the given address [OSD]load fb addr from dts [OSD]load fb addr from dts [OSD]fb_addr for logo: 0x7f800000 [OSD]fb_addr for logo: 0x7f800000 [OSD]load fb addr from dts [OSD]load fb addr from dts [OSD]fb_addr for logo: 0x7f800000 [OSD]fb_addr for logo: 0x7f800000 [CANVAS]addr=0x7f800000 width=3840, height=2160 [CANVAS]addr=0x7f800000 width=3840, height=2160 There is no valid bmp file at the given address There is no valid bmp file at the given address upgrade_step=2 | upgrade_step=0 upgrade_step12=2 | upgrade_step12=0 amlkey_init() enter! amlkey_init() enter! amlkey_init() 70: already init! amlkey_init() 70: already init! [EFUSE_MSG]keynum is 4 [EFUSE_MSG]keynum is 4 [BL31]: tee size: 0 [BL31]: tee size: 0 [KM]Error:f[key_manage_query_size]L507:key[cmei] not programe [KM]Error:f[key_manage_query_size]L507:key[cmei] not programe key1 = 7d82dd22 key1 = 7d82dd22 key2 = 7e81dd22 key2 = 7e81dd22 key3 = 728ddd22 key3 = 728ddd22 time_out = 7a120 time_out = 7a120 ir init ir init irkey - irkey key_value1 key_value2 key_value3 time_value irkey - irkey key_value1 key_value2 key_value3 time_value | Usage: Usage: irkey irkey rebootmode=cold_boot rebootmode=cold_boot Hit any key to stop autoboot: 0 Hit any key to stop autoboot: 0 > _find_partition_by_name()-188: do not find match in table boo > Cannot find dev. > amlmmc cmd failed > > store - STORE sub-system > > Usage: > store store init flag > store read name addr off|partition size > read 'size' bytes starting at offset 'off' > to/from memory address 'addr', skipping bad blocks. > store write name addr off|partition size > write 'size' bytes starting at offset 'off' > to/from memory address 'addr', skipping bad blocks. > store rom_write add off size. > write uboot to the boot device > store erase boot/data: > erase the area which is uboot or data > store erase partition : > erase the area which partition in u-boot > store erase dtb > store erase key > store disprotect key > store rom_protect on/off > store scrub off|partition size > scrub the area from offset and size > store dtb iread/read/write addr > read/write dtb, size is optional > store key read/write addr > read/write key, size is optional > store mbr addr > update mbr/partition table by dtb > > cmd store failed > Err imgread(L135):Fail to read 0x100000B from part[boot] at o > Enter USB burn > Try connect time out 1001, 1000, 1479 card out card out > [MSG]mmcinfo failed! (Re)start USB... (Re)start USB... USB0: USB3.0 XHCI init start USB0: USB3.0 XHCI init start Register 2000140 NbrPorts 2 Register 2000140 NbrPorts 2 Starting the controller Starting the controller USB XHCI 1.00 USB XHCI 1.00 scanning bus 0 for devices... 1 USB Device(s) found scanning bus 0 for devices... 1 USB Device(s) found scanning usb for storage devices... 0 Storage Device(s scanning usb for storage devices... 0 Storage Device(s ** Bad device usb 0 ** ** Bad device usb 0 ** ** Bad device usb 1 ** | ** Bad device usb 0 ** ** Bad device usb 2 ** | Failed to mount ext2 filesystem... ** Bad device usb 3 ** | ** Unrecognized filesystem type ** reading emmc_autoscript | Failed to mount ext2 filesystem... 831 bytes read in 3 ms (270.5 KiB/s) | ** Unrecognized filesystem type ** ## Executing script at 01020000 | _find_partition_by_name()-188: do not find match in table rec reading u-boot.emmc | Cannot find dev. 650183 bytes read in 21 ms (29.5 MiB/s) | amlmmc cmd failed ## Starting application at 0x01000000 ... | [BL31]: tee size: 0 | store - STORE sub-system [BL31]: tee size: 0 | [ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x | Usage: [ 0.000000] Linux version 5.15.109-ophub (root@fv-az440-74 \ store store init flag > store read name addr off|partition size > read 'size' bytes starting at offset 'off' > to/from memory address 'addr', skipping bad blocks. > store write name addr off|partition size > write 'size' bytes starting at offset 'off' > to/from memory address 'addr', skipping bad blocks. > store rom_write add off size. > write uboot to the boot device > store erase boot/data: > erase the area which is uboot or data > store erase partition : > erase the area which partition in u-boot > store erase dtb > store erase key > store disprotect key > store rom_protect on/off > store scrub off|partition size > scrub the area from offset and size > store dtb iread/read/write addr > read/write dtb, size is optional > store key read/write addr > read/write key, size is optional > store mbr addr > update mbr/partition table by dtb > > cmd store failed > Err imgread(L135):Fail to read 0x100000B from part[recovery] > gxl_p211_v1# ```

依旧是crc错误

mmc env offset: 0x7400000                   mmc env offset: 0x7400000 
                                  > *** Warning - bad CRC, using default environment
                                  >
                                  > Saving Environment to aml-storage...
                                  > mmc env offset: 0x7400000 
                                  > Writing to MMC(1)... done
ophub commented 1 year ago

U盘中复制一下u-boot。先复制好后,再写入

cd /boot
cp -f u-boot-s905x-s912.bin u-boot.emmc
cp -f u-boot-s905x-s912.bin u-boot.ext
chmod +x u-boot.ext u-boot.emmc
Becods commented 1 year ago

U盘中复制一下u-boot。先复制好后,再写入

cd /boot
copy -f u-boot-s905x-s912.bin u-boot.emmc
copy -f u-boot-s905x-s912.bin u-boot.ext

依旧不行

uboot日志

``` GXLX2:BL1:3cfee7:42a5ae;FEAT:ADFD318C:0;POC:3;RCY:0;EMMC:0;READ:0;0.0;CHK:0; TE: 162615 BL2 Built : 13:35:42, Jun 1 2021. gxl g49d5acc - liqiang.hou@droid07-sz Board ID = 3, adc=225 set vcck to 1070 mv set vddee to 1070 mv CPU clk: 1200MHz DDR4 chl: Rank0+1 @ 912MHz - FAIL DDR4 chl: Rank0 @ 912MHz bist_test rank: 0 1e 08 35 32 1a 4b 18 00 31 34 1a 4f 13 00 26 38 20 51 16 00 2c 38 20 51 616 - PASS Rank0: 2048MB(auto)-2T-18 AddrBus test pass! -s Load fip header from eMMC, src: 0x0000c200, des: 0x01400000, size: 0x00004000 New fip structure! Load bl30 from eMMC, src: 0x00010200, des: 0x013c0000, size: 0x00007600 Load bl301 from eMMC, src: 0x00018200, des: 0x01380000, size: 0x00002600 Load bl31 from eMMC, src: 0x0001c200, des: 0x10100000, size: 0x00019600 Load bl33 from eMMC, src: 0x00038200, des: 0x01000000, size: 0x0004da00 NOTICE: BL3-1: v1.0(debug):27617c8a4 NOTICE: BL3-1: Built : 18:02:23, Aug 18 2021 NOTICE: BL31: GXL normal boot! NOTICE: BL31: BL33 decompress pass [Image: gxl_v1.1.3103-923400455-dirty 2020-12-28 18:42:52 xingyu.chen@droid12-sz] efuse init ops = c5 efuse init hdcp = c, cf9=7 x2_hp_e = 0 bl30: check_permit, count is 1 bl30: check_permit: ok! chipid: 0 0 3 c c 0 f1 b3 40 a0 0 c5 not ES chip [0.703069 Inits done] INFO: BL3-1: Initializing runtime services WARNING: No OPTEE provided by BL2 boot loader ERROR: Error initializing runtime service opteed_fast INFO: BL3-1: Preparing for EL3 exit to normal world INFO: BL3-1: Next image address = 0x1000000 INFO: BL3-1: Next image spsr = 0x3c9 U-Boot 2015.01-g2bd1e3b (Apr 09 2022 - 06:14:31), Build: jenkins-FVOS-git_FVOS_amlogic_9_CMCCHUBEI_PRIV-190 DRAM: 2 GiB Relocation Offset is: 76edf000 gpio: pin GPIODV_25 (gpio 44) value is 1 register usb cfg[0][1] = 0000000077f5d610 [CANVAS]canvas init vpu: error: vpu: check dts: FDT_ERR_BADMAGIC, load default parameters vpu: clk_level = 7 vpu: set clk: 666667000Hz, readback: 666660000Hz(0x300) vpp: vpp_init MMC: aml_priv->desc_buf = 0x0000000073ecfac0 aml_priv->desc_buf = 0x0000000073ed1de0 SDIO Port B: 0, SDIO Port C: 1 emmc/sd response timeout, cmd8, status=0x1ff2800 emmc/sd response timeout, cmd55, status=0x1ff2800 init_part() 278: PART_TYPE_DOS [mmc_init] mmc init success dtb magic 00088b1f Amlogic multi-dtb tool GZIP format, decompress... Multi dtb detected unified board, board id = 3 Multi dtb tool version: v2 . Support 6 dtbs. aml_dt soc: gxlx2 platform: p291 variant: 2g dtb 0 soc: gxlx2 plat: p291 vari: 1g dtb 1 soc: gxlx2 plat: p291 vari: 2g dtb 2 soc: gxlx2 plat: p291 vari: 3g dtb 3 soc: gxlx2 plat: p295 vari: 1g dtb 4 soc: gxlx2 plat: p295 vari: 2g dtb 5 soc: gxlx2 plat: p295 vari: 3g Find match dtb: 1 start dts,buffer=0000000073ed4610,dt_addr=0000000073ed4610 Amlogic multi-dtb tool Single dtb detected parts: 1 00: data ffffffffffffffff 4 init_part() 278: PART_TYPE_DOS eMMC/TSD partition table have been checked OK! check pattern success mmc env offset: 0x7400000 *** Warning - bad CRC, using default environment Saving Environment to aml-storage... mmc env offset: 0x7400000 Writing to MMC(1)... done In: serial Out: serial Err: serial board id is : 3 hpd_state=0 do_hpd_detect: hdmimode=720p50hz do_hpd_detect: colorattribute=444,8bit cvbs performance type = 7, table = 2 [store]To run cmd[emmc dtb_read 0x1000000 0x40000] _verify_dtb_checksum()-924: calc 67b68105, store 67b68105 _verify_dtb_checksum()-924: calc 67b68105, store 67b68105 dtb_read()-1046: total valid 2 dtb_read()-1113: do nothing Amlogic multi-dtb tool GZIP format, decompress... Multi dtb detected unified board, board id = 3 Multi dtb tool version: v2 . Support 6 dtbs. aml_dt soc: gxlx2 platform: p291 variant: 2g dtb 0 soc: gxlx2 plat: p291 vari: 1g dtb 1 soc: gxlx2 plat: p291 vari: 2g dtb 2 soc: gxlx2 plat: p291 vari: 3g dtb 3 soc: gxlx2 plat: p295 vari: 1g dtb 4 soc: gxlx2 plat: p295 vari: 2g dtb 5 soc: gxlx2 plat: p295 vari: 3g Find match dtb: 1 Net: eth_initialize:396 dwmac.c9410000 idx:0 amlkey_init() enter! [EFUSE_MSG]keynum is 4 [BL31]: tee size: 0 wipe_data=successful wipe_cache=successful _get_part_index_by_name()-165: do not find match in table vendor Err imgread(L536):invalid partition name(vendor) ext4logoLoadCmd=ext4load mmc 1:${logoPart} ${logoLoadAddr} ${ext4LogoPath} Failed to mount ext2 filesystem... ** Unrecognized filesystem type ** Err imgread(L543):Fail in load logo cmd logo part bootup _find_partition_by_name()-188: do not find match in table logo Cannot find dev. amlmmc cmd failed store - STORE sub-system Usage: store store init flag store read name addr off|partition size read 'size' bytes starting at offset 'off' to/from memory address 'addr', skipping bad blocks. store write name addr off|partition size write 'size' bytes starting at offset 'off' to/from memory address 'addr', skipping bad blocks. store rom_write add off size. write uboot to the boot device store erase boot/data: erase the area which is uboot or data store erase partition : erase the area which partition in u-boot store erase dtb store erase key store disprotect key store rom_protect on/off store scrub off|partition size scrub the area from offset and size store dtb iread/read/write addr read/write dtb, size is optional store key read/write addr read/write key, size is optional store mbr addr update mbr/partition table by dtb cmd store failed Err imgread(L336):Fail to read 0x2000B from part[logo] at offset 0 There is no valid bmp file at the given address [OSD]load fb addr from dts [OSD]fb_addr for logo: 0x7f800000 [OSD]load fb addr from dts [OSD]fb_addr for logo: 0x7f800000 [CANVAS]addr=0x7f800000 width=3840, height=2160 There is no valid bmp file at the given address upgrade_step=0 upgrade_step12=0 amlkey_init() enter! amlkey_init() 70: already init! [EFUSE_MSG]keynum is 4 [BL31]: tee size: 0 [KM]Error:f[key_manage_query_size]L507:key[cmei] not programed yet key1 = 7d82dd22 key2 = 7e81dd22 key3 = 728ddd22 time_out = 7a120 ir init irkey - irkey key_value1 key_value2 key_value3 time_value Usage: irkey rebootmode=cold_boot Hit any key to stop autoboot: 0 _find_partition_by_name()-188: do not find match in table boot Cannot find dev. amlmmc cmd failed store - STORE sub-system Usage: store store init flag store read name addr off|partition size read 'size' bytes starting at offset 'off' to/from memory address 'addr', skipping bad blocks. store write name addr off|partition size write 'size' bytes starting at offset 'off' to/from memory address 'addr', skipping bad blocks. store rom_write add off size. write uboot to the boot device store erase boot/data: erase the area which is uboot or data store erase partition : erase the area which partition in u-boot store erase dtb store erase key store disprotect key store rom_protect on/off store scrub off|partition size scrub the area from offset and size store dtb iread/read/write addr read/write dtb, size is optional store key read/write addr read/write key, size is optional store mbr addr update mbr/partition table by dtb cmd store failed Err imgread(L135):Fail to read 0x100000B from part[boot] at offset 0 Enter USB burn Try connect time out 1001, 1000, 1480 card out [MSG]mmcinfo failed! (Re)start USB... USB0: USB3.0 XHCI init start Register 2000140 NbrPorts 2 Starting the controller USB XHCI 1.00 scanning bus 0 for devices... 1 USB Device(s) found scanning usb for storage devices... 0 Storage Device(s) found ** Bad device usb 0 ** ** Bad device usb 0 ** Failed to mount ext2 filesystem... ** Unrecognized filesystem type ** Failed to mount ext2 filesystem... ** Unrecognized filesystem type ** _find_partition_by_name()-188: do not find match in table recovery Cannot find dev. amlmmc cmd failed store - STORE sub-system Usage: store store init flag store read name addr off|partition size read 'size' bytes starting at offset 'off' to/from memory address 'addr', skipping bad blocks. store write name addr off|partition size write 'size' bytes starting at offset 'off' to/from memory address 'addr', skipping bad blocks. store rom_write add off size. write uboot to the boot device store erase boot/data: erase the area which is uboot or data store erase partition : erase the area which partition in u-boot store erase dtb store erase key store disprotect key store rom_protect on/off store scrub off|partition size scrub the area from offset and size store dtb iread/read/write addr read/write dtb, size is optional store key read/write addr read/write key, size is optional store mbr addr update mbr/partition table by dtb cmd store failed Err imgread(L135):Fail to read 0x100000B from part[recovery] at offset 0 gxl_p211_v1# ```

操作日志

``` root@OpenWrt:/# cd /boot root@OpenWrt:/boot# ls System.map-5.15.109-ophub u-boot-odroid-n2.bin aml_autoscript u-boot-p201.bin aml_autoscript.cmd u-boot-p212.bin armbian_first_run.txt.template u-boot-r3300l.bin boot-emmc.cmd u-boot-s905.bin boot-emmc.ini u-boot-s905x-s912.bin boot-emmc.scr u-boot-s905x2-s922.bin boot.bmp u-boot-sei510.bin boot.cmd u-boot-sei610.bin boot.ini u-boot-skyworth-lb2004.bin boot.scr u-boot-tx3-bz.bin config-5.15.109-ophub u-boot-tx3-qz.bin dtb u-boot-u200.bin emmc_autoscript u-boot-ugoos-x3.bin emmc_autoscript.cmd u-boot-x96max.bin extlinux u-boot-x96maxplus.bin initrd.img-5.15.109-ophub u-boot-zyxq.bin s905_autoscript u-boot.sd s905_autoscript.cmd u-boot.usb u-boot-e900v22c.bin uEnv.txt u-boot-gtking.bin uInitrd u-boot-gtkingpro-rev-a.bin uInitrd-5.15.109-ophub u-boot-gtkingpro.bin vmlinuz-5.15.109-ophub u-boot-n1.bin zImage root@OpenWrt:/boot# df -h Filesystem Size Used Available Use% Mounted on udev 512.0K 0 512.0K 0% /dev tmpfs 181.0M 92.0K 180.9M 0% /run /dev/sda2 1.0G 351.4M 563.3M 38% / tmpfs 905.1M 21.1M 883.9M 2% /tmp tmpfs 512.0K 0 512.0K 0% /dev cgroup 905.1M 0 905.1M 0% /sys/fs/cgroup /dev/sda4 29.8G 3.5M 29.8G 0% /mnt/sda4 /dev/mmcblk2p1 157.5M 132.7M 24.9M 84% /mnt/mmcblk2p1 /dev/mmcblk2p2 960.0M 350.6M 515.6M 40% /mnt/mmcblk2p2 /dev/mmcblk2p3 960.0M 3.4M 947.0M 0% /mnt/mmcblk2p3 /dev/mmcblk2p4 12.3G 3.4M 12.3G 0% /mnt/mmcblk2p4 /dev/sda1 251.0M 132.7M 118.4M 53% /boot /dev/sda3 1023.0M 3.4M 1010.0M 0% /mnt/sda3 /dev/sda4 29.8G 3.5M 29.8G 0% /mnt/sda4/docker /dev/sda4 29.8G 3.5M 29.8G 0% /mnt/sda4/docker/btrfs root@OpenWrt:/boot# mv u-boot.emmc u-boot.emmc.bak mv: can't rename 'u-boot.emmc': No such file or directory root@OpenWrt:/boot# copy -f u-boot-s905x-s912.bin u-boot.emmc copy -f u-boot-s905x-s912.bin u-boot.ext bash: copy: command not found bash: copy: command not found root@OpenWrt:/boot# cp -f u-boot-s905x-s912.bin u-boot.emmc root@OpenWrt:/boot# cp -f u-boot-s905x-s912.bin u-boot.ext ```

写入日志

``` root@OpenWrt:/boot# cat /tmp/amlogic/amlogic_check_install.log AUTO_MAINLINE_UBOOT: yes SPECIFY_DTB: SPECIFY_SOC: SPECIFY_UBOOT: SHARED_FSTYPE: btrfs Current device: Amlogic Meson GXL (S905L3b) MBH-M302A Box [ amlogic ] /dev/mmcblk2 mmcblk2 : 15634268160 bytes ROOTFS: sda2 BOOT: sda1 Please select s9xxx box model: ---------------------------------------------------------------------------------------------------- 101. Phicomm-N1 s905d 2GB-Mem,1Gb-Nic,brcm43455-wifi 102. Phicomm-N1(DMA-thresh) s905d When-ethmac-flow-control-is-off 103. HG680P s905x 2+8G,100Mb-Nic 104. TX3-Mini s905w 2+8G,100Mb-Nic 105. MECOOL-KI-Pro s905d 2G/16G,1Gb-Nic 106. T95 s905x 2G/16G,1Gb-Nic 107. B860H s905x 2+8G,100Mb-Nic 108. TBee s905x 2+8G,100Mb-Nic 109. W95 s905w 2GB-RAM,16GB-ROM,100Mb-Nic 110. X96-Mini s905w 2+8G,100Mb-Nic 111. TX9 s905x 100Mb-Nic,rtl8723cs-WLAN 112. M302A,M304A,CM211-1,CM311-1 s905l3b 2+8G,100Mb-Nic 113. MGV2000,MGV3000,M301A s905l2 2+8G,100Mb-Nic 114. Wojia-TV-IPBS9505 s905l2 2+8G,100Mb-Nic 115. Q96-mini s905lb 1G/8G,100Mb-Nic 116. CM311-1,HG680-LC,M401A s905l3 2+8G,100Mb-Nic 117. E900V22E s905l3b 2+8G,100Mb-Nic 118. BesTV-R3300L,SumaVision-Q7 s905lb 2+8G,100Mb-Nic 119. X96W,FunTV,MXQ-Pro-4K s905w 2GB-RAM,16GB-ROM,100Mb-Nic,AP6255-wifi/BT 120. E900V22D s905l3b 2+8G,100Mb-Nic 121. UNT400G1 s905l3 2+8G,100Mb-Nic 122. E900v21E s905l2 2+8G,100Mb-Nic 123. IP103H,TY1608 s905l3b 2+8G,100Mb-Nic 124. CM211-1 s905l3 2+8G,100Mb-Nic 201. Octopus-Planet s912 2GB-Mem,1Gb-Nic 202. Octopus-Planet(FAKE) s912 2GB-Mem,1Gb-Nic 203. H96-Pro-Plus s912 2G/32G,1Gb-Nic 204. Tanix-TX92 s912 3GB-DDR4,32GB-eMMC,5G-WIFI,1Gb-Nic 205. VORKE-Z6-Plus s912 3GB-DDR3,32GB-eMMC,1Gb-Nic 206. MECOOL-M8S-Pro-L s912 2G/3G-RAM,16G/32G-ROM,100Mb-Nic 207. T95Z-Plus s912 3G+32G,1Gb-Nic 208. TX9-Pro(3G_32G_1Gb) s912 3G-RAM,32G-ROM,1Gb-Nic,brcm43455-wifi 209. TX9-Pro(2G_16G_100Mb) s912 3G-RAM,32G-ROM,100Mb-Nic,RTL8189ETV-wifi 210. Nexbox-A1,A95X s912 2G-DDR3-RAM,16G-eMMC,1Gb-Nic 211. Nexbox-A95X-A2 s912 2GB-RAM,16GB-ROM,2.4G/5.0G-WiFi,1Gb-Nic 212. Tanix-TX8-MAX s912 3GB-RAM,16GB/32GB-eMMC,1Gb-Nic 213. Vontar-X92 s912 3GB-RAM,16GB/32GB-eMMC,1Gb-Nic 214. Phicomm-T1 s912 2G-RAM,16G-ROM,100Mb-Nic,Wifi,Bluetooth 301. X96-Max-4GB,Tx5-Max s905x2 4GB-Mem,1Gb-Nic 302. X96-Max-2GB,A95X-F2 s905x2 2GB-Mem,100Mb-Nic 303. MECOOL-KM3-4G s905x2 4+64G/128G,100Mb-Nic 304. E900V22C-D s905l3a 4+64G/128G,100Mb-Nic 305. CM311-1a-YST s905l3a 2+16G,BT-rtl8761b,100Mb-Nic 306. M401A,UNT403A,B863AV3.2-M s905l3a 2+16G,100Mb-Nic 401. GT-King s922x 4GB-Mem,1Gb-Nic,brcm4356-wifi 402. GT-King-Pro,X88-King s922x 4GB-Mem,1Gb-Nic,brcm4356-wifi 403. GT-King-Pro-H s922x 4GB-Mem,1Gb-Nic,brcm4356-wifi 404. GT-King-Pro-Rev_A s922x 4GB-Mem,1Gb-Nic,brcm4356-wifi 405. Hardkernel-ODroid-N2 s922x 4GB-Mem,1Gb-Nic 406. UGOOS-AM6-Plus s922x 4GB-Mem,1Gb-Nic,brcm4398-wifi 407. Khadas-VIM3 a311d 1Gb-Nic,brcm4398-wifi 408. Ali-CT2000 s922x 4GB-Mem,16GB-eMMC,1Gb-Nic,Bluetooth,wifi 501. HK1-Box,Vontar-X3 s905x3 4GB-Mem,1Gb-Nic,brcm4339-wifi 502. HK1-Box(OverClock) s905x3 4GB-Mem,1Gb-Nic,brcm4339-wifi 503. H96-Max-X3,Infinity-B32 s905x3 4GB-Mem,1Gb-Nic,brcm4339-wifi 504. H96-Max-X3(OverClock),B32 s905x3 4GB-Mem,1Gb-Nic,brcm4339-wifi 505. Ugoos-X3 s905x3 4GB-Mem,1Gb-Nic,brcm43455/43456-wifi 506. Ugoos-X3(OverClock) s905x3 4GB-Mem,1Gb-Nic,brcm43455/43456-wifi 507. TX3-1Gb s905x3 4GB-Mem,1Gb-Nic,bcm4330-wifi 508. TX3-1Gb(OverClock) s905x3 4GB-Mem,1Gb-Nic,bcm4330-wifi 509. TX3-100Mb s905x3 4GB-Mem,100Mb-Nic,bcm4330-wifi 510. TX3-100Mb(OverClock) s905x3 4GB-Mem,100Mb-Nic,bcm4330-wifi 511. A95XF3-Air-1Gb s905x3 2GB-Mem,1Gb-Nic,Wifi 512. A95XF3-Air-100Mb s905x3 2GB-Mem,100Mb-Nic,Wifi 513. Tencent-Aurora-3Pro s905x3 4GB-Mem,32G-Rom,1Gb-Nic(JL2xx1) 514. X96-Air-1Gb s905x3 2GB-Mem,1Gb-Nic,Wifi 515. X96-Air,X96-Max+100W,100Mb s905x3 2GB-Mem,100Mb-Nic,Wifi 516. X96-Air-Q1000 s905x3 4GB-Mem,1Gb-Nic,qca9377-wifi 517. X96-Max+_100Mb s905x3 4GB-Mem,1Gb-Nic,rtl8822cs-wifi 518. X96-Max+_1GB s905x3 4GB-Mem,1Gb-Nic,rtl8822cs-wifi 519. X96-Max+(OverClock) s905x3 4GB-Mem,1Gb-Nic,rtl8822cs-wifi 520. X96-Max+(IP1001M) s905x3 4GB-Mem,1Gb-Nic(IP1001M),brcm4354-wifi 521. X96-Max+Q1 s905x3 4GB-Mem,32G-Rom,Wifi-work,100Mb-Nic 522. X96-Max+Q2 s905x3 4GB-Mem,1Gb-Nic,qca9377-wifi 523. X96-Max+_A100 s905x3 4GB-Mem,32G-Rom,Wifi-AM7256,100Mb-Nic 524. X96-Max+_2101 s905x3 4GB-Mem,32G-Rom,Wifi/BT,1Gb-Nic(JL2xx1) w101. Vplus-Cloud h6 1GB-DDR3,8G-eMMC,1Gb-Nic w102. Tanix-TX6 h6 2GB/4GB-DDR3,16G/32G-eMMC,100Mb-Nic ---------------------------------------------------------------------------------------------------- AMLOGIC_SOC Value [ s905l3b ] FDTFILE Value [ meson-gxl-s905l3b-m302a.dtb ] UBOOT_OVERLOAD Value [ u-boot-s905x-s912.bin ] MAINLINE_UBOOT Value [ ] ANDROID_UBOOT Value [ ] K510 [ 0 ] /mnt/mmcblk2p1 umount -f /mnt/mmcblk2p1 /mnt/mmcblk2p2 umount -f /mnt/mmcblk2p2 /mnt/mmcblk2p3 umount -f /mnt/mmcblk2p3 /mnt/mmcblk2p4 umount -f /mnt/mmcblk2p4 A total of [ 4 ] old partitions on EMMC will be deleted Welcome to fdisk (util-linux 2.38.1). Changes will remain in memory only, until you decide to write them. Be careful before using the write command. Command (m for help): Partition number (1-4, default 4): Partition 4 has been deleted. Command (m for help): Partition number (1-3, default 3): Partition 3 has been deleted. Command (m for help): Partition number (1,2, default 2): Partition 2 has been deleted. Command (m for help): Selected partition 1 Partition 1 has been deleted. Command (m for help): Partition type p primary (0 primary, 0 extended, 4 free) e extended (container for logical partitions) Select (default p): Partition number (1-4, default 1): First sector (2048-30535679, default 2048): Last sector, +/-sectors or +/-size{K,M,G,T,P} (139264-30535679, default 30535679): Created a new partition 1 of type 'Linux' and of size 160 MiB. Command (m for help): Partition type p primary (1 primary, 0 extended, 3 free) e extended (container for logical partitions) Select (default p): Partition number (2-4, default 2): First sector (2048-30535679, default 2048): Last sector, +/-sectors or +/-size{K,M,G,T,P} (466944-30535679, default 30535679): Created a new partition 2 of type 'Linux' and of size 960 MiB. Command (m for help): Partition type p primary (2 primary, 0 extended, 2 free) e extended (container for logical partitions) Select (default p): Partition number (3,4, default 3): First sector (2048-30535679, default 2048): Last sector, +/-sectors or +/-size{K,M,G,T,P} (2764800-30535679, default 30535679): Created a new partition 3 of type 'Linux' and of size 960 MiB. Command (m for help): Partition type p primary (3 primary, 0 extended, 1 free) e extended (container for logical partitions) Select (default e): Selected partition 4 First sector (2048-30535679, default 2048): Last sector, +/-sectors or +/-size{K,M,G,T,P} (4730880-30535679, default 30535679): Created a new partition 4 of type 'Linux' and of size 12.3 GiB. Command (m for help): Partition number (1-4, default 4): Hex code or alias (type L to list all): Changed type of partition 'Linux' to 'W95 FAT32 (LBA)'. Command (m for help): Partition number (1-4, default 4): Hex code or alias (type L to list all): Changed type of partition 'Linux' to 'Linux'. Command (m for help): Partition number (1-4, default 4): Hex code or alias (type L to list all): Changed type of partition 'Linux' to 'Linux'. Command (m for help): Partition number (1-4, default 4): Hex code or alias (type L to list all): Changed type of partition 'Linux' to 'Linux'. Command (m for help): The partition table has been altered. Calling ioctl() to re-read partition table. Syncing disks. Partition complete. Did not change the original bootloader. Start creating file system ... Create a boot file system ... format boot partiton... mkfs.fat 4.2 (2021-01-31) format rootfs1 partiton... btrfs-progs v5.16.1 See http://btrfs.wiki.kernel.org for more information. Performing full device TRIM /dev/mmcblk2p2 (960.00MiB) ... NOTE: several default settings have changed in version 5.15, please make sure this does not affect your deployments: - DUP for metadata (-m dup) - enabled no-holes (-O no-holes) - enabled free-space-tree (-R free-space-tree) Label: EMMC_ROOTFS1 UUID: 908321e3-a3e7-4ba1-9d26-1b8927e2c836 Node size: 16384 Sector size: 4096 Filesystem size: 960.00MiB Block group profiles: Data: single 8.00MiB Metadata: single 8.00MiB System: single 4.00MiB SSD detected: yes Zoned device: no Incompat features: extref, skinny-metadata, no-holes Runtime features: free-space-tree Checksum: crc32c Number of devices: 1 Devices: ID SIZE PATH 1 960.00MiB /dev/mmcblk2p2 format rootfs2 partiton... btrfs-progs v5.16.1 See http://btrfs.wiki.kernel.org for more information. Performing full device TRIM /dev/mmcblk2p3 (960.00MiB) ... NOTE: several default settings have changed in version 5.15, please make sure this does not affect your deployments: - DUP for metadata (-m dup) - enabled no-holes (-O no-holes) - enabled free-space-tree (-R free-space-tree) Label: EMMC_ROOTFS2 UUID: 7014817a-8530-4042-9e42-2399eb5f71cb Node size: 16384 Sector size: 4096 Filesystem size: 960.00MiB Block group profiles: Data: single 8.00MiB Metadata: single 8.00MiB System: single 4.00MiB SSD detected: yes Zoned device: no Incompat features: extref, skinny-metadata, no-holes Runtime features: free-space-tree Checksum: crc32c Number of devices: 1 Devices: ID SIZE PATH 1 960.00MiB /dev/mmcblk2p3 Wait for the boot file system to mount ... Successfully mounted. copy boot ... Edit uEnv.txt ... complete. complete. Wait for the rootfs file system to mount ... Successfully mounted Create folder ... Create subvolume './etc' complete. Copy data ... copy [ root ] ... copy [ etc ] ... copy [ bin ] ... copy [ sbin ] ... copy [ lib ] ... copy [ opt ] ... copy [ usr ] ... copy [ www ] ... Copy complete. Edit configuration file ... ../../lib/modules/5.15.109-ophub/kernel/drivers/net/ethernet/qualcomm/sfe/shortcut-fe/shortcut-fe-cm.ko ../../lib/modules/5.15.109-ophub/shortcut-fe-cm.ko Create initial etc snapshot -> .snapshots/etc-000Create a readonly snapshot of 'etc' in '.snapshots/etc-000' complete. Create a shared file system. Successful installed, please unplug the USB, re-insert the power supply to start the openwrt. ```

ophub commented 1 year ago

chmod加一下执行权限,看上面贴子里更新的命令。

Becods commented 1 year ago

chmod加一下执行权限,看上面贴子里更新的命令。

依旧不行

uboot日志在复制前后并无变化

对比armbian启动日志来看,疑似boot分区挂载失败

scanning bus 0 for devices... 1 USB Device(s) found     scanning bus 0 for devices... 1 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s          scanning usb for storage devices... 0 Storage Device(s
** Bad device usb 0 **                      ** Bad device usb 0 **
** Bad device usb 1 **                        | ** Bad device usb 0 **
** Bad device usb 2 **                        | Failed to mount ext2 filesystem...
** Bad device usb 3 **                        | ** Unrecognized filesystem type **
reading emmc_autoscript                       | Failed to mount ext2 filesystem...
831 bytes read in 3 ms (270.5 KiB/s)                  | ** Unrecognized filesystem type **
## Executing script at 01020000                   | _find_partition_by_name()-188: do not find match in table rec
reading u-boot.emmc                       | Cannot find dev.
** Unable to read file u-boot.emmc **                 / amlmmc cmd &lt;NULL&gt; failed 
reading uEnv.txt                          <
372 bytes read in 4 ms (90.8 KiB/s)               <
reading /zImage                           <
uboot日志

``` GXLX2:BL1:3cfee7:42a5ae;FEAT:ADFD318C:0;POC:3;RCY:0;EMMC:0;READ:0;0.0;CHK:0; TE: 157454 BL2 Built : 13:35:42, Jun 1 2021. gxl g49d5acc - liqiang.hou@droid07-sz Board ID = 3, adc=225 set vcck to 1070 mv set vddee to 1070 mv CPU clk: 1200MHz DDR4 chl: Rank0+1 @ 912MHz - FAIL DDR4 chl: Rank0 @ 912MHz bist_test rank: 0 1f 08 36 32 1a 4b 18 00 30 35 1a 50 13 00 26 39 21 51 16 00 2c 38 20 51 616 - PASS Rank0: 2048MB(auto)-2T-18 AddrBus test pass! -s Load fip header from eMMC, src: 0x0000c200, des: 0x01400000, size: 0x00004000 New fip structure! Load bl30 from eMMC, src: 0x00010200, des: 0x013c0000, size: 0x00007600 Load bl301 from eMMC, src: 0x00018200, des: 0x01380000, size: 0x00002600 Load bl31 from eMMC, src: 0x0001c200, des: 0x10100000, size: 0x00019600 Load bl33 from eMMC, src: 0x00038200, des: 0x01000000, size: 0x0004da00 NOTICE: BL3-1: v1.0(debug):27617c8a4 NOTICE: BL3-1: Built : 18:02:23, Aug 18 2021 NOTICE: BL31: GXL normal boot! NOTICE: BL31: BL33 decompress pass [Image: gxl_v1.1.3103-923400455-dirty 2020-12-28 18:42:52 xingyu.chen@droid12-sz] efuse init ops = c5 efuse init hdcp = c, cf9=7 x2_hp_e = 0 bl30: check_permit, count is 1 bl30: check_permit: ok! chipid: 0 0 3 c c 0 f1 b3 40 a0 0 c5 not ES chip [0.698781 Inits done] INFO: BL3-1: Initializing runtime services WARNING: No OPTEE provided by BL2 boot loader ERROR: Error initializing runtime service opteed_fast INFO: BL3-1: Preparing for EL3 exit to normal world INFO: BL3-1: Next image address = 0x1000000 INFO: BL3-1: Next image spsr = 0x3c9 U-Boot 2015.01-g2bd1e3b (Apr 09 2022 - 06:14:31), Build: jenkins-FVOS-git_FVOS_amlogic_9_CMCCHUBEI_PRIV-190 DRAM: 2 GiB Relocation Offset is: 76edf000 gpio: pin GPIODV_25 (gpio 44) value is 1 register usb cfg[0][1] = 0000000077f5d610 [CANVAS]canvas init vpu: error: vpu: check dts: FDT_ERR_BADMAGIC, load default parameters vpu: clk_level = 7 vpu: set clk: 666667000Hz, readback: 666660000Hz(0x300) vpp: vpp_init MMC: aml_priv->desc_buf = 0x0000000073ecfac0 aml_priv->desc_buf = 0x0000000073ed1de0 SDIO Port B: 0, SDIO Port C: 1 emmc/sd response timeout, cmd8, status=0x1ff2800 emmc/sd response timeout, cmd55, status=0x1ff2800 init_part() 278: PART_TYPE_DOS [mmc_init] mmc init success dtb magic 00088b1f Amlogic multi-dtb tool GZIP format, decompress... Multi dtb detected unified board, board id = 3 Multi dtb tool version: v2 . Support 6 dtbs. aml_dt soc: gxlx2 platform: p291 variant: 2g dtb 0 soc: gxlx2 plat: p291 vari: 1g dtb 1 soc: gxlx2 plat: p291 vari: 2g dtb 2 soc: gxlx2 plat: p291 vari: 3g dtb 3 soc: gxlx2 plat: p295 vari: 1g dtb 4 soc: gxlx2 plat: p295 vari: 2g dtb 5 soc: gxlx2 plat: p295 vari: 3g Find match dtb: 1 start dts,buffer=0000000073ed4610,dt_addr=0000000073ed4610 Amlogic multi-dtb tool Single dtb detected parts: 1 00: data ffffffffffffffff 4 init_part() 278: PART_TYPE_DOS eMMC/TSD partition table have been checked OK! check pattern success mmc env offset: 0x7400000 *** Warning - bad CRC, using default environment Saving Environment to aml-storage... mmc env offset: 0x7400000 Writing to MMC(1)... done In: serial Out: serial Err: serial board id is : 3 hpd_state=0 do_hpd_detect: hdmimode=720p50hz do_hpd_detect: colorattribute=444,8bit cvbs performance type = 7, table = 2 [store]To run cmd[emmc dtb_read 0x1000000 0x40000] _verify_dtb_checksum()-924: calc 67b68105, store 67b68105 _verify_dtb_checksum()-924: calc 67b68105, store 67b68105 dtb_read()-1046: total valid 2 dtb_read()-1113: do nothing Amlogic multi-dtb tool GZIP format, decompress... Multi dtb detected unified board, board id = 3 Multi dtb tool version: v2 . Support 6 dtbs. aml_dt soc: gxlx2 platform: p291 variant: 2g dtb 0 soc: gxlx2 plat: p291 vari: 1g dtb 1 soc: gxlx2 plat: p291 vari: 2g dtb 2 soc: gxlx2 plat: p291 vari: 3g dtb 3 soc: gxlx2 plat: p295 vari: 1g dtb 4 soc: gxlx2 plat: p295 vari: 2g dtb 5 soc: gxlx2 plat: p295 vari: 3g Find match dtb: 1 Net: eth_initialize:396 dwmac.c9410000 idx:0 amlkey_init() enter! [EFUSE_MSG]keynum is 4 [BL31]: tee size: 0 wipe_data=successful wipe_cache=successful _get_part_index_by_name()-165: do not find match in table vendor Err imgread(L536):invalid partition name(vendor) ext4logoLoadCmd=ext4load mmc 1:${logoPart} ${logoLoadAddr} ${ext4LogoPath} Failed to mount ext2 filesystem... ** Unrecognized filesystem type ** Err imgread(L543):Fail in load logo cmd logo part bootup _find_partition_by_name()-188: do not find match in table logo Cannot find dev. amlmmc cmd failed store - STORE sub-system Usage: store store init flag store read name addr off|partition size read 'size' bytes starting at offset 'off' to/from memory address 'addr', skipping bad blocks. store write name addr off|partition size write 'size' bytes starting at offset 'off' to/from memory address 'addr', skipping bad blocks. store rom_write add off size. write uboot to the boot device store erase boot/data: erase the area which is uboot or data store erase partition : erase the area which partition in u-boot store erase dtb store erase key store disprotect key store rom_protect on/off store scrub off|partition size scrub the area from offset and size store dtb iread/read/write addr read/write dtb, size is optional store key read/write addr read/write key, size is optional store mbr addr update mbr/partition table by dtb cmd store failed Err imgread(L336):Fail to read 0x2000B from part[logo] at offset 0 There is no valid bmp file at the given address [OSD]load fb addr from dts [OSD]fb_addr for logo: 0x7f800000 [OSD]load fb addr from dts [OSD]fb_addr for logo: 0x7f800000 [CANVAS]addr=0x7f800000 width=3840, height=2160 There is no valid bmp file at the given address upgrade_step=0 upgrade_step12=0 amlkey_init() enter! amlkey_init() 70: already init! [EFUSE_MSG]keynum is 4 [BL31]: tee size: 0 [KM]Error:f[key_manage_query_size]L507:key[cmei] not programed yet key1 = 7d82dd22 key2 = 7e81dd22 key3 = 728ddd22 time_out = 7a120 ir init irkey - irkey key_value1 key_value2 key_value3 time_value Usage: irkey rebootmode=cold_boot Hit any key to stop autoboot: 0 _find_partition_by_name()-188: do not find match in table boot Cannot find dev. amlmmc cmd failed store - STORE sub-system Usage: store store init flag store read name addr off|partition size read 'size' bytes starting at offset 'off' to/from memory address 'addr', skipping bad blocks. store write name addr off|partition size write 'size' bytes starting at offset 'off' to/from memory address 'addr', skipping bad blocks. store rom_write add off size. write uboot to the boot device store erase boot/data: erase the area which is uboot or data store erase partition : erase the area which partition in u-boot store erase dtb store erase key store disprotect key store rom_protect on/off store scrub off|partition size scrub the area from offset and size store dtb iread/read/write addr read/write dtb, size is optional store key read/write addr read/write key, size is optional store mbr addr update mbr/partition table by dtb cmd store failed Err imgread(L135):Fail to read 0x100000B from part[boot] at offset 0 Enter USB burn Try connect time out 1001, 1000, 1454 card out [MSG]mmcinfo failed! (Re)start USB... USB0: USB3.0 XHCI init start Register 2000140 NbrPorts 2 Starting the controller USB XHCI 1.00 scanning bus 0 for devices... 1 USB Device(s) found scanning usb for storage devices... 0 Storage Device(s) found ** Bad device usb 0 ** ** Bad device usb 0 ** Failed to mount ext2 filesystem... ** Unrecognized filesystem type ** Failed to mount ext2 filesystem... ** Unrecognized filesystem type ** _find_partition_by_name()-188: do not find match in table recovery Cannot find dev. amlmmc cmd failed store - STORE sub-system Usage: store store init flag store read name addr off|partition size read 'size' bytes starting at offset 'off' to/from memory address 'addr', skipping bad blocks. store write name addr off|partition size write 'size' bytes starting at offset 'off' to/from memory address 'addr', skipping bad blocks. store rom_write add off size. write uboot to the boot device store erase boot/data: erase the area which is uboot or data store erase partition : erase the area which partition in u-boot store erase dtb store erase key store disprotect key store rom_protect on/off store scrub off|partition size scrub the area from offset and size store dtb iread/read/write addr read/write dtb, size is optional store key read/write addr read/write key, size is optional store mbr addr update mbr/partition table by dtb cmd store failed Err imgread(L135):Fail to read 0x100000B from part[recovery] at offset 0 gxl_p211_v1# ```

操作日志

``` root@OpenWrt:/# cd /boot root@OpenWrt:/boot# ls System Volume Information u-boot-odroid-n2.bin System.map-5.15.109-ophub u-boot-p201.bin aml_autoscript u-boot-p212.bin aml_autoscript.cmd u-boot-r3300l.bin armbian_first_run.txt.template u-boot-s905.bin boot-emmc.cmd u-boot-s905x-s912.bin boot-emmc.ini u-boot-s905x2-s922.bin boot-emmc.scr u-boot-sei510.bin boot.bmp u-boot-sei610.bin boot.cmd u-boot-skyworth-lb2004.bin boot.ini u-boot-tx3-bz.bin boot.scr u-boot-tx3-qz.bin config-5.15.109-ophub u-boot-u200.bin dtb u-boot-ugoos-x3.bin emmc_autoscript u-boot-x96max.bin emmc_autoscript.cmd u-boot-x96maxplus.bin extlinux u-boot-zyxq.bin initrd.img-5.15.109-ophub u-boot.sd s905_autoscript u-boot.usb s905_autoscript.cmd uEnv.txt u-boot-e900v22c.bin uInitrd u-boot-gtking.bin uInitrd-5.15.109-ophub u-boot-gtkingpro-rev-a.bin vmlinuz-5.15.109-ophub u-boot-gtkingpro.bin zImage u-boot-n1.bin root@OpenWrt:/boot# df -h Filesystem Size Used Available Use% Mounted on udev 512.0K 0 512.0K 0% /dev tmpfs 181.0M 84.0K 180.9M 0% /run /dev/sda2 1.0G 293.3M 617.5M 32% / tmpfs 905.1M 4.4M 900.6M 0% /tmp tmpfs 512.0K 0 512.0K 0% /dev /dev/mmcblk2p4 12.3G 3.4M 12.3G 0% /mnt/mmcblk2p4 /dev/mmcblk2p1 157.5M 133.9M 23.6M 85% /mnt/mmcblk2p1 /dev/mmcblk2p2 960.0M 350.7M 515.7M 40% /mnt/mmcblk2p2 /dev/mmcblk2p3 960.0M 3.4M 947.0M 0% /mnt/mmcblk2p3 /dev/sda1 251.0M 132.7M 118.4M 53% /boot /dev/sda3 1023.0M 3.4M 1010.0M 0% /mnt/sda3 /dev/sda4 29.8G 3.5M 29.8G 0% /mnt/sda4 /dev/sda2 1.0G 293.3M 617.5M 32% /opt/docker root@OpenWrt:/boot# cp -f u-boot-s905x-s912.bin u-boot.emmc cp -f u-boot-s905x-s912.bin u-boot.ext chmod +x u-boot.ext u-boot.emmc root@OpenWrt:/boot# ls System Volume Information u-boot-p201.bin System.map-5.15.109-ophub u-boot-p212.bin aml_autoscript u-boot-r3300l.bin aml_autoscript.cmd u-boot-s905.bin armbian_first_run.txt.template u-boot-s905x-s912.bin boot-emmc.cmd u-boot-s905x2-s922.bin boot-emmc.ini u-boot-sei510.bin boot-emmc.scr u-boot-sei610.bin boot.bmp u-boot-skyworth-lb2004.bin boot.cmd u-boot-tx3-bz.bin boot.ini u-boot-tx3-qz.bin boot.scr u-boot-u200.bin config-5.15.109-ophub u-boot-ugoos-x3.bin dtb u-boot-x96max.bin emmc_autoscript u-boot-x96maxplus.bin emmc_autoscript.cmd u-boot-zyxq.bin extlinux u-boot.emmc initrd.img-5.15.109-ophub u-boot.ext s905_autoscript u-boot.sd s905_autoscript.cmd u-boot.usb u-boot-e900v22c.bin uEnv.txt u-boot-gtking.bin uInitrd u-boot-gtkingpro-rev-a.bin uInitrd-5.15.109-ophub u-boot-gtkingpro.bin vmlinuz-5.15.109-ophub u-boot-n1.bin zImage u-boot-odroid-n2.bin ```

写入日志

``` root@OpenWrt:/boot# cat /tmp/amlogic/amlogic_check_install.log AUTO_MAINLINE_UBOOT: yes SPECIFY_DTB: SPECIFY_SOC: SPECIFY_UBOOT: SHARED_FSTYPE: btrfs Current device: Amlogic Meson GXL (S905L3b) MBH-M302A Box [ amlogic ] /dev/mmcblk2 mmcblk2 : 15634268160 bytes ROOTFS: sda2 BOOT: sda1 Please select s9xxx box model: ---------------------------------------------------------------------------------------------------- 101. Phicomm-N1 s905d 2GB-Mem,1Gb-Nic,brcm43455-wifi 102. Phicomm-N1(DMA-thresh) s905d When-ethmac-flow-control-is-off 103. HG680P s905x 2+8G,100Mb-Nic 104. TX3-Mini s905w 2+8G,100Mb-Nic 105. MECOOL-KI-Pro s905d 2G/16G,1Gb-Nic 106. T95 s905x 2G/16G,1Gb-Nic 107. B860H s905x 2+8G,100Mb-Nic 108. TBee s905x 2+8G,100Mb-Nic 109. W95 s905w 2GB-RAM,16GB-ROM,100Mb-Nic 110. X96-Mini s905w 2+8G,100Mb-Nic 111. TX9 s905x 100Mb-Nic,rtl8723cs-WLAN 112. M302A,M304A,CM211-1,CM311-1 s905l3b 2+8G,100Mb-Nic 113. MGV2000,MGV3000,M301A s905l2 2+8G,100Mb-Nic 114. Wojia-TV-IPBS9505 s905l2 2+8G,100Mb-Nic 115. Q96-mini s905lb 1G/8G,100Mb-Nic 116. CM311-1,HG680-LC,M401A s905l3 2+8G,100Mb-Nic 117. E900V22E s905l3b 2+8G,100Mb-Nic 118. BesTV-R3300L,SumaVision-Q7 s905lb 2+8G,100Mb-Nic 119. X96W,FunTV,MXQ-Pro-4K s905w 2GB-RAM,16GB-ROM,100Mb-Nic,AP6255-wifi/BT 120. E900V22D s905l3b 2+8G,100Mb-Nic 121. UNT400G1 s905l3 2+8G,100Mb-Nic 122. E900v21E s905l2 2+8G,100Mb-Nic 123. IP103H,TY1608 s905l3b 2+8G,100Mb-Nic 124. CM211-1 s905l3 2+8G,100Mb-Nic 201. Octopus-Planet s912 2GB-Mem,1Gb-Nic 202. Octopus-Planet(FAKE) s912 2GB-Mem,1Gb-Nic 203. H96-Pro-Plus s912 2G/32G,1Gb-Nic 204. Tanix-TX92 s912 3GB-DDR4,32GB-eMMC,5G-WIFI,1Gb-Nic 205. VORKE-Z6-Plus s912 3GB-DDR3,32GB-eMMC,1Gb-Nic 206. MECOOL-M8S-Pro-L s912 2G/3G-RAM,16G/32G-ROM,100Mb-Nic 207. T95Z-Plus s912 3G+32G,1Gb-Nic 208. TX9-Pro(3G_32G_1Gb) s912 3G-RAM,32G-ROM,1Gb-Nic,brcm43455-wifi 209. TX9-Pro(2G_16G_100Mb) s912 3G-RAM,32G-ROM,100Mb-Nic,RTL8189ETV-wifi 210. Nexbox-A1,A95X s912 2G-DDR3-RAM,16G-eMMC,1Gb-Nic 211. Nexbox-A95X-A2 s912 2GB-RAM,16GB-ROM,2.4G/5.0G-WiFi,1Gb-Nic 212. Tanix-TX8-MAX s912 3GB-RAM,16GB/32GB-eMMC,1Gb-Nic 213. Vontar-X92 s912 3GB-RAM,16GB/32GB-eMMC,1Gb-Nic 214. Phicomm-T1 s912 2G-RAM,16G-ROM,100Mb-Nic,Wifi,Bluetooth 301. X96-Max-4GB,Tx5-Max s905x2 4GB-Mem,1Gb-Nic 302. X96-Max-2GB,A95X-F2 s905x2 2GB-Mem,100Mb-Nic 303. MECOOL-KM3-4G s905x2 4+64G/128G,100Mb-Nic 304. E900V22C-D s905l3a 4+64G/128G,100Mb-Nic 305. CM311-1a-YST s905l3a 2+16G,BT-rtl8761b,100Mb-Nic 306. M401A,UNT403A,B863AV3.2-M s905l3a 2+16G,100Mb-Nic 401. GT-King s922x 4GB-Mem,1Gb-Nic,brcm4356-wifi 402. GT-King-Pro,X88-King s922x 4GB-Mem,1Gb-Nic,brcm4356-wifi 403. GT-King-Pro-H s922x 4GB-Mem,1Gb-Nic,brcm4356-wifi 404. GT-King-Pro-Rev_A s922x 4GB-Mem,1Gb-Nic,brcm4356-wifi 405. Hardkernel-ODroid-N2 s922x 4GB-Mem,1Gb-Nic 406. UGOOS-AM6-Plus s922x 4GB-Mem,1Gb-Nic,brcm4398-wifi 407. Khadas-VIM3 a311d 1Gb-Nic,brcm4398-wifi 408. Ali-CT2000 s922x 4GB-Mem,16GB-eMMC,1Gb-Nic,Bluetooth,wifi 501. HK1-Box,Vontar-X3 s905x3 4GB-Mem,1Gb-Nic,brcm4339-wifi 502. HK1-Box(OverClock) s905x3 4GB-Mem,1Gb-Nic,brcm4339-wifi 503. H96-Max-X3,Infinity-B32 s905x3 4GB-Mem,1Gb-Nic,brcm4339-wifi 504. H96-Max-X3(OverClock),B32 s905x3 4GB-Mem,1Gb-Nic,brcm4339-wifi 505. Ugoos-X3 s905x3 4GB-Mem,1Gb-Nic,brcm43455/43456-wifi 506. Ugoos-X3(OverClock) s905x3 4GB-Mem,1Gb-Nic,brcm43455/43456-wifi 507. TX3-1Gb s905x3 4GB-Mem,1Gb-Nic,bcm4330-wifi 508. TX3-1Gb(OverClock) s905x3 4GB-Mem,1Gb-Nic,bcm4330-wifi 509. TX3-100Mb s905x3 4GB-Mem,100Mb-Nic,bcm4330-wifi 510. TX3-100Mb(OverClock) s905x3 4GB-Mem,100Mb-Nic,bcm4330-wifi 511. A95XF3-Air-1Gb s905x3 2GB-Mem,1Gb-Nic,Wifi 512. A95XF3-Air-100Mb s905x3 2GB-Mem,100Mb-Nic,Wifi 513. Tencent-Aurora-3Pro s905x3 4GB-Mem,32G-Rom,1Gb-Nic(JL2xx1) 514. X96-Air-1Gb s905x3 2GB-Mem,1Gb-Nic,Wifi 515. X96-Air,X96-Max+100W,100Mb s905x3 2GB-Mem,100Mb-Nic,Wifi 516. X96-Air-Q1000 s905x3 4GB-Mem,1Gb-Nic,qca9377-wifi 517. X96-Max+_100Mb s905x3 4GB-Mem,1Gb-Nic,rtl8822cs-wifi 518. X96-Max+_1GB s905x3 4GB-Mem,1Gb-Nic,rtl8822cs-wifi 519. X96-Max+(OverClock) s905x3 4GB-Mem,1Gb-Nic,rtl8822cs-wifi 520. X96-Max+(IP1001M) s905x3 4GB-Mem,1Gb-Nic(IP1001M),brcm4354-wifi 521. X96-Max+Q1 s905x3 4GB-Mem,32G-Rom,Wifi-work,100Mb-Nic 522. X96-Max+Q2 s905x3 4GB-Mem,1Gb-Nic,qca9377-wifi 523. X96-Max+_A100 s905x3 4GB-Mem,32G-Rom,Wifi-AM7256,100Mb-Nic 524. X96-Max+_2101 s905x3 4GB-Mem,32G-Rom,Wifi/BT,1Gb-Nic(JL2xx1) w101. Vplus-Cloud h6 1GB-DDR3,8G-eMMC,1Gb-Nic w102. Tanix-TX6 h6 2GB/4GB-DDR3,16G/32G-eMMC,100Mb-Nic ---------------------------------------------------------------------------------------------------- AMLOGIC_SOC Value [ s905l3b ] FDTFILE Value [ meson-gxl-s905l3b-m302a.dtb ] UBOOT_OVERLOAD Value [ u-boot-s905x-s912.bin ] MAINLINE_UBOOT Value [ ] ANDROID_UBOOT Value [ ] K510 [ 0 ] Backup bootloader -> [ BackupOldBootloader.img ] ... Backup bootloader complete. /mnt/mmcblk2p1 umount -f /mnt/mmcblk2p1 /mnt/mmcblk2p2 umount -f /mnt/mmcblk2p2 /mnt/mmcblk2p3 umount -f /mnt/mmcblk2p3 /mnt/mmcblk2p4 umount -f /mnt/mmcblk2p4 A total of [ 4 ] old partitions on EMMC will be deleted Welcome to fdisk (util-linux 2.38.1). Changes will remain in memory only, until you decide to write them. Be careful before using the write command. Command (m for help): Partition number (1-4, default 4): Partition 4 has been deleted. Command (m for help): Partition number (1-3, default 3): Partition 3 has been deleted. Command (m for help): Partition number (1,2, default 2): Partition 2 has been deleted. Command (m for help): Selected partition 1 Partition 1 has been deleted. Command (m for help): Partition type p primary (0 primary, 0 extended, 4 free) e extended (container for logical partitions) Select (default p): Partition number (1-4, default 1): First sector (2048-30535679, default 2048): Last sector, +/-sectors or +/-size{K,M,G,T,P} (139264-30535679, default 30535679): Created a new partition 1 of type 'Linux' and of size 160 MiB. Command (m for help): Partition type p primary (1 primary, 0 extended, 3 free) e extended (container for logical partitions) Select (default p): Partition number (2-4, default 2): First sector (2048-30535679, default 2048): Last sector, +/-sectors or +/-size{K,M,G,T,P} (466944-30535679, default 30535679): Created a new partition 2 of type 'Linux' and of size 960 MiB. Command (m for help): Partition type p primary (2 primary, 0 extended, 2 free) e extended (container for logical partitions) Select (default p): Partition number (3,4, default 3): First sector (2048-30535679, default 2048): Last sector, +/-sectors or +/-size{K,M,G,T,P} (2764800-30535679, default 30535679): Created a new partition 3 of type 'Linux' and of size 960 MiB. Command (m for help): Partition type p primary (3 primary, 0 extended, 1 free) e extended (container for logical partitions) Select (default e): Selected partition 4 First sector (2048-30535679, default 2048): Last sector, +/-sectors or +/-size{K,M,G,T,P} (4730880-30535679, default 30535679): Created a new partition 4 of type 'Linux' and of size 12.3 GiB. Command (m for help): Partition number (1-4, default 4): Hex code or alias (type L to list all): Changed type of partition 'Linux' to 'W95 FAT32 (LBA)'. Command (m for help): Partition number (1-4, default 4): Hex code or alias (type L to list all): Changed type of partition 'Linux' to 'Linux'. Command (m for help): Partition number (1-4, default 4): Hex code or alias (type L to list all): Changed type of partition 'Linux' to 'Linux'. Command (m for help): Partition number (1-4, default 4): Hex code or alias (type L to list all): Changed type of partition 'Linux' to 'Linux'. Command (m for help): The partition table has been altered. Calling ioctl() to re-read partition table. Syncing disks. Partition complete. Did not change the original bootloader. Start creating file system ... Create a boot file system ... format boot partiton... mkfs.fat 4.2 (2021-01-31) format rootfs1 partiton... btrfs-progs v6.0.1 See http://btrfs.wiki.kernel.org for more information. Performing full device TRIM /dev/mmcblk2p2 (960.00MiB) ... NOTE: several default settings have changed in version 5.15, please make sure this does not affect your deployments: - DUP for metadata (-m dup) - enabled no-holes (-O no-holes) - enabled free-space-tree (-R free-space-tree) Label: EMMC_ROOTFS1 UUID: f0fd362b-c21c-4260-a5a3-e9942a851b09 Node size: 16384 Sector size: 4096 Filesystem size: 960.00MiB Block group profiles: Data: single 8.00MiB Metadata: single 8.00MiB System: single 4.00MiB SSD detected: yes Zoned device: no Incompat features: extref, skinny-metadata, no-holes Runtime features: free-space-tree Checksum: crc32c Number of devices: 1 Devices: ID SIZE PATH 1 960.00MiB /dev/mmcblk2p2 format rootfs2 partiton... btrfs-progs v6.0.1 See http://btrfs.wiki.kernel.org for more information. Performing full device TRIM /dev/mmcblk2p3 (960.00MiB) ... NOTE: several default settings have changed in version 5.15, please make sure this does not affect your deployments: - DUP for metadata (-m dup) - enabled no-holes (-O no-holes) - enabled free-space-tree (-R free-space-tree) Label: EMMC_ROOTFS2 UUID: b66f7759-6038-49ee-979c-87c8db9f2edc Node size: 16384 Sector size: 4096 Filesystem size: 960.00MiB Block group profiles: Data: single 8.00MiB Metadata: single 8.00MiB System: single 4.00MiB SSD detected: yes Zoned device: no Incompat features: extref, skinny-metadata, no-holes Runtime features: free-space-tree Checksum: crc32c Number of devices: 1 Devices: ID SIZE PATH 1 960.00MiB /dev/mmcblk2p3 Wait for the boot file system to mount ... Successfully mounted. copy boot ... Edit uEnv.txt ... complete. complete. Wait for the rootfs file system to mount ... Successfully mounted Create folder ... Create subvolume './etc' complete. Copy data ... copy [ root ] ... copy [ etc ] ... copy [ bin ] ... copy [ sbin ] ... copy [ lib ] ... copy [ opt ] ... copy [ usr ] ... copy [ www ] ... Copy complete. Edit configuration file ... Create initial etc snapshot -> .snapshots/etc-000Create a readonly snapshot of 'etc' in '.snapshots/etc-000' complete. Create a shared file system. Successful installed, please unplug the USB, re-insert the power supply to start the openwrt. ```

ophub commented 1 year ago

换6.1内核的试试

Becods commented 1 year ago

换6.1内核的试试

无法启动,不论是openwrt还是armbian


scanning bus 0 for devices... 2 USB Device(s) found
       scanning usb for storage devices... init_part() 278: PART_TYPE_DOS
1 Storage Device(s) found
reading s905_autoscript
1654 bytes read in 53 ms (30.3 KiB/s)
## Executing script at 01020000
start amlogic old u-boot
## Error: "bootfromsd" not defined
** Bad device mmc 0 **
reading boot_android
** Unable to read file boot_android **
** Bad device mmc 0 **
reading u-boot.ext
650183 bytes read in 474 ms (1.3 MiB/s)
## Starting application at 0x01000000 ...
[BL31]: tee size: 0
[BL31]: tee size: 0
INFO:    PSCI Affinity Map:
INFO:      AffInst: Level 0, MPID 0x0, State ON
INFO:      AffInst: Level 0, MPID 0x1, State OFF
INFO:      AffInst: Level 0, MPID 0x2, State OFF
INFO:      AffInst: Level 0, MPID 0x3, State OFF
bl31 reboot reason: 0x1
bl31 reboot reason: 0x0
ERROR:   gxbb System Reset: SCP error 16.
启动日志

``` GXLX2:BL1:3cfee7:42a5ae;FEAT:ADFD318C:0;POC:3;RCY:0;EMMC:0;READ:0;0.0;CHK:0; TE: 100376 BL2 Built : 13:35:42, Jun 1 2021. gxl g49d5acc - liqiang.hou@droid07-sz Board ID = 3, adc=225 set vcck to 1070 mv set vddee to 1070 mv CPU clk: 1200MHz DDR4 chl: Rank0+1 @ 912MHz - FAIL DDR4 chl: Rank0 @ 912MHz bist_test rank: 0 1f 08 36 34 1b 4d 18 00 31 35 1a 50 13 00 27 3a 22 52 16 00 2d 38 20 51 616 - PASS Rank0: 2048MB(auto)-2T-18 AddrBus test pass! -s Load fip header from eMMC, src: 0x0000c200, des: 0x01400000, size: 0x00004000 New fip structure! Load bl30 from eMMC, src: 0x00010200, des: 0x013c0000, size: 0x00007600 Load bl301 from eMMC, src: 0x00018200, des: 0x01380000, size: 0x00002600 Load bl31 from eMMC, src: 0x0001c200, des: 0x10100000, size: 0x00019600 Load bl33 from eMMC, src: 0x00038200, des: 0x01000000, size: 0x0004da00 NOTICE: BL3-1: v1.0(debug):27617c8a4 NOTICE: BL3-1: Built : 18:02:23, Aug 18 2021 NOTICE: BL31: GXL normal boot! NOTICE: BL31: BL33 decompress pass [Image: gxl_v1.1.3103-923400455-dirty 2020-12-28 18:42:52 xingyu.chen@droid12-sz] efuse init ops = c5 efuse init hdcp = c, cf9=7 x2_hp_e = 0 bl30: check_permit, count is 1 bl30: check_permit: ok! chipid: 0 0 3 c c 0 f1 b3 40 a0 0 c5 not ES chip [0.641407 Inits done] INFO: BL3-1: Initializing runtime services WARNING: No OPTEE provided by BL2 boot loader ERROR: Error initializing runtime service opteed_fast INFO: BL3-1: Preparing for EL3 exit to normal world INFO: BL3-1: Next image address = 0x1000000 INFO: BL3-1: Next image spsr = 0x3c9 U-Boot 2015.01-g2bd1e3b (Apr 09 2022 - 06:14:31), Build: jenkins-FVOS-git_FVOS_amlogic_9_CMCCHUBEI_PRIV-190 DRAM: 2 GiB Relocation Offset is: 76edf000 gpio: pin GPIODV_25 (gpio 44) value is 1 register usb cfg[0][1] = 0000000077f5d610 [CANVAS]canvas init vpu: error: vpu: check dts: FDT_ERR_BADMAGIC, load default parameters vpu: clk_level = 7 vpu: set clk: 666667000Hz, readback: 666660000Hz(0x300) vpp: vpp_init MMC: aml_priv->desc_buf = 0x0000000073ecfac0 aml_priv->desc_buf = 0x0000000073ed1de0 SDIO Port B: 0, SDIO Port C: 1 emmc/sd response timeout, cmd8, status=0x1ff2800 emmc/sd response timeout, cmd55, status=0x1ff2800 init_part() 278: PART_TYPE_DOS [mmc_init] mmc init success dtb magic 00088b1f Amlogic multi-dtb tool GZIP format, decompress... Multi dtb detected unified board, board id = 3 Multi dtb tool version: v2 . Support 6 dtbs. aml_dt soc: gxlx2 platform: p291 variant: 2g dtb 0 soc: gxlx2 plat: p291 vari: 1g dtb 1 soc: gxlx2 plat: p291 vari: 2g dtb 2 soc: gxlx2 plat: p291 vari: 3g dtb 3 soc: gxlx2 plat: p295 vari: 1g dtb 4 soc: gxlx2 plat: p295 vari: 2g dtb 5 soc: gxlx2 plat: p295 vari: 3g Find match dtb: 1 start dts,buffer=0000000073ed4610,dt_addr=0000000073ed4610 Amlogic multi-dtb tool Single dtb detected parts: 1 00: data ffffffffffffffff 4 init_part() 278: PART_TYPE_DOS eMMC/TSD partition table have been checked OK! check pattern success mmc env offset: 0x7400000 In: serial Out: serial Err: serial board id is : 3 hpd_state=0 do_hpd_detect: hdmimode=720p50hz do_hpd_detect: colorattribute=444,8bit cvbs performance type = 7, table = 2 [store]To run cmd[emmc dtb_read 0x1000000 0x40000] _verify_dtb_checksum()-924: calc 67b68105, store 67b68105 _verify_dtb_checksum()-924: calc 67b68105, store 67b68105 dtb_read()-1046: total valid 2 dtb_read()-1113: do nothing Amlogic multi-dtb tool GZIP format, decompress... Multi dtb detected unified board, board id = 3 Multi dtb tool version: v2 . Support 6 dtbs. aml_dt soc: gxlx2 platform: p291 variant: 2g dtb 0 soc: gxlx2 plat: p291 vari: 1g dtb 1 soc: gxlx2 plat: p291 vari: 2g dtb 2 soc: gxlx2 plat: p291 vari: 3g dtb 3 soc: gxlx2 plat: p295 vari: 1g dtb 4 soc: gxlx2 plat: p295 vari: 2g dtb 5 soc: gxlx2 plat: p295 vari: 3g Find match dtb: 1 Net: eth_initialize:396 dwmac.c9410000 idx:0 amlkey_init() enter! [EFUSE_MSG]keynum is 4 [BL31]: tee size: 0 wipe_data=successful wipe_cache=successful _get_part_index_by_name()-165: do not find match in table vendor Err imgread(L536):invalid partition name(vendor) ext4logoLoadCmd=ext4load mmc 1:${logoPart} ${logoLoadAddr} ${ext4LogoPath} Failed to mount ext2 filesystem... ** Unrecognized filesystem type ** Err imgread(L543):Fail in load logo cmd logo part bootup _find_partition_by_name()-188: do not find match in table logo Cannot find dev. amlmmc cmd failed store - STORE sub-system Usage: store store init flag store read name addr off|partition size read 'size' bytes starting at offset 'off' to/from memory address 'addr', skipping bad blocks. store write name addr off|partition size write 'size' bytes starting at offset 'off' to/from memory address 'addr', skipping bad blocks. store rom_write add off size. write uboot to the boot device store erase boot/data: erase the area which is uboot or data store erase partition : erase the area which partition in u-boot store erase dtb store erase key store disprotect key store rom_protect on/off store scrub off|partition size scrub the area from offset and size store dtb iread/read/write addr read/write dtb, size is optional store key read/write addr read/write key, size is optional store mbr addr update mbr/partition table by dtb cmd store failed Err imgread(L336):Fail to read 0x2000B from part[logo] at offset 0 There is no valid bmp file at the given address [OSD]load fb addr from dts [OSD]fb_addr for logo: 0x7f800000 [OSD]load fb addr from dts [OSD]fb_addr for logo: 0x7f800000 [CANVAS]addr=0x7f800000 width=3840, height=2160 There is no valid bmp file at the given address upgrade_step=2 upgrade_step12=2 amlkey_init() enter! amlkey_init() 70: already init! [EFUSE_MSG]keynum is 4 [BL31]: tee size: 0 [KM]Error:f[key_manage_query_size]L507:key[cmei] not programed yet key1 = 7d82dd22 key2 = 7e81dd22 key3 = 728ddd22 time_out = 7a120 ir init irkey - irkey key_value1 key_value2 key_value3 time_value Usage: irkey rebootmode=cold_boot Hit any key to stop autoboot: 0 card out (Re)start USB... USB0: USB3.0 XHCI init start Register 2000140 NbrPorts 2 Starting the controller USB XHCI 1.00 scanning bus 0 for devices... 2 USB Device(s) found scanning usb for storage devices... init_part() 278: PART_TYPE_DOS 1 Storage Device(s) found reading s905_autoscript 1654 bytes read in 53 ms (30.3 KiB/s) ## Executing script at 01020000 start amlogic old u-boot ## Error: "bootfromsd" not defined ** Bad device mmc 0 ** reading boot_android ** Unable to read file boot_android ** ** Bad device mmc 0 ** reading u-boot.ext 650183 bytes read in 474 ms (1.3 MiB/s) ## Starting application at 0x01000000 ... [BL31]: tee size: 0 [BL31]: tee size: 0 INFO: PSCI Affinity Map: INFO: AffInst: Level 0, MPID 0x0, State ON INFO: AffInst: Level 0, MPID 0x1, State OFF INFO: AffInst: Level 0, MPID 0x2, State OFF INFO: AffInst: Level 0, MPID 0x3, State OFF bl31 reboot reason: 0x1 bl31 reboot reason: 0x0 ERROR: gxbb System Reset: SCP error 16. ```

ophub commented 1 year ago

看来这个uboot不适合你,很多盒子都有同名不同芯的差异。自己试吧,就那几个,总有一个适合你。

Becods commented 1 year ago

在下载了接近30g的安卓固件,刷入20+固件之后,总算找到个能成功将openwrt刷入emmc并启动中的了

image

此贴终了

ophub commented 1 year ago

分享一下你用的安卓系统的下载,我备份一个

Becods commented 1 year ago

分享一下你用的安卓系统的下载,我备份一个

上传完成发现阿里云盘扫文件头而不是文件后缀

已更新

cm331-1-ch

ophub commented 1 year ago

这个exe是自解压文件?还是改了后缀名了?

Becods commented 1 year ago

这个exe是自解压文件?还是改了后缀名了?

自解压,右键直接用7z打开即可,或者双击打开解压

阿里网盘依据文件头而不是文件后缀判断是否能分享,只能打包成自解压文件

ophub commented 1 year ago

好的,我保存到我的网盘了,节后我转存到: https://github.com/ophub/kernel/releases/tag/tools