ophub / amlogic-s9xxx-armbian

Support for Armbian 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
5.82k stars 1.87k forks source link

CM201-1-6 YS S905L3 EMMC成功刷入,但无法获取有线网络IP #2539

Open tinytinycn opened 1 week ago

tinytinycn commented 1 week ago

Device Information | 设备信息

Armbian Version | 系统版本

Describe the bug | 问题描述 刷入android 4.4.2 底包后,由于无法 adb shell reboot update 引导U盘启动,故使用TTL工具引导进入armbian系统。

此版本CM201-1 YS 比较特殊,无法刷入 https://github.com/ophub/kernel/releases/tag/tools 目录下的Android 9.0系统(android_tv_cm201-1-ys_s905l3b)。SOC不同,内存颗粒也与大多数版本不同。

使用以下各种组合方式,均能刷入EMMC,但启动后均无法获取有线网络IP

Board | 主板

以下日志

root@armbian:~# cat /etc/ophub-release
PLATFORM='amlogic'
VERSION_CODEID='debian'
VERSION_CODENAME='bookworm'
MODEL_ID='123'
MODEL_NAME='UNT400G1,E900V22D-2'
SOC='s905l3'
FDTFILE='meson-gxl-s905l2-x7-5g.dtb'
FAMILY='meson-gxl'
BOARD='s905l3'
KERNEL_REPO='ophub/kernel'
KERNEL_TAGS='stable'
KERNEL_VERSION='6.1.107'
KERNEL_BACKUP='yes'
BOOT_CONF='uEnv.conf'
ROOTFS_TYPE='ext4'
DISK_TYPE='emmc'
AMPART_STATUS='yes'
MLUBOOT_STATUS='no'
MAINLINE_UBOOT='/usr/lib/u-boot/'
BOOTLOADER_IMG='/usr/lib/u-boot/'
UBOOT_OVERLOAD='u-boot-p212.bin'
BUILD_REPOSITORY='github.com/armbian/build'
REBUILD_REPOSITORY='github.com/ophub/amlogic-s9xxx-armbian'
CONTRIBUTORS='ours1505,1904688138,yhxxm,orientzane'
BUILDER_NAME='ophub'
PACKAGED_DATE='2024-09-01'
root@armbian:~# ip add
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host noprefixroute
       valid_lft forever preferred_lft forever
2: sit0@NONE: <NOARP> mtu 1480 qdisc noop state DOWN group default qlen 1000
    link/sit 0.0.0.0 brd 0.0.0.0
3: ip6tnl0@NONE: <NOARP> mtu 1452 qdisc noop state DOWN group default qlen 1000
    link/tunnel6 :: brd :: permaddr 76c0:d7c0:61ee::
4: eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
    link/ether 32:03:b9:07:1a:4f brd ff:ff:ff:ff:ff:ff
    altname end0
root@armbian:~# dmesg |grep eth0
root@armbian:~# ip link set eth0 up
[   86.588708] meson8b-dwmac c9410000.ethernet eth0: Register MEM_TYPE_PAGE_POOL RxQ-0
[   86.662073] meson8b-dwmac c9410000.ethernet eth0: PHY [mdio_mux-0.e40908ff:08] driver [Meson GXL Internal PHY] (ir        q=34)
[   88.199344] meson8b-dwmac c9410000.ethernet eth0: No Safety Features support found
[   88.201309] meson8b-dwmac c9410000.ethernet eth0: PTP not supported by HW
[   88.208960] meson8b-dwmac c9410000.ethernet eth0: configuring for phy/rmii link mode
root@armbian:~# ethtool -i eth0
driver: st_gmac
version: 6.1.107-ophub
firmware-version:
expansion-rom-version:
bus-info:
supports-statistics: yes
supports-test: yes
supports-eeprom-access: no
supports-register-dump: yes
supports-priv-flags: no
root@armbian:~# lsmod
Module                  Size  Used by
rfkill                 36864  1
sunrpc                561152  1
snd_soc_meson_gx_sound_card    16384  0
snd_soc_meson_card_utils    16384  1 snd_soc_meson_gx_sound_card
meson_vdec             81920  0
videobuf2_dma_contig    24576  1 meson_vdec
v4l2_mem2mem           45056  1 meson_vdec
meson_ir               20480  0
meson_gxbb_wdt         16384  0
snd_soc_meson_t9015    24576  0
snd_soc_meson_aiu      32768  0
snd_soc_meson_codec_glue    16384  1 snd_soc_meson_aiu
zram                   32768  3
binfmt_misc            24576  1
tcp_bbr                20480  7
sch_fq                 20480  2
dm_mod                131072  0
ip_tables              28672  0
x_tables               45056  1 ip_tables
lima                   61440  0
gpu_sched              45056  1 lima
drm_shmem_helper       24576  1 lima
root@armbian:~#
ophub commented 1 week ago

这个需要找到可以root的安卓,刷个能开启u盘更新模式的安卓,引导从u盘启动。

tinytinycn commented 1 week ago

这个需要找到可以root的安卓,刷个能开启u盘更新模式的安卓,引导从u盘启动。

刷入的底包 android 4.4.2 是自带root, 且开放了ADB 5114 端口。将armbian 刷入 EMMC后,无法获取IP。怀疑是不是必须得刷一个Android9.0 的底包才行呢?

ophub commented 1 week ago

/boot/目录下试试复制个u-boot.emmc

tinytinycn commented 6 days ago

/boot/目录下试试复制个u-boot.emmc

制作完启动u盘系统后,先将u-boot-p212.bin复制为 u-boot.emmc 文件。启动进入armbian,使用以下A、B、C三种选项,均成功刷入EMMC。拔下u盘,跑马无限循环,进不去系统。

启动日志:

GXLX2:BL1:3cfee7:42a5ae;FEAT:ADFC318C:0;POC:3;RCY:0;EMMC:0;READ:0;0.0;CHK:0;
TE: 100033

BL2 Built : 13:36:55, Jun 22 2020.
gxl g85d6ad1 - longyong.chen@droid02-sz

Board ID = 7, adc=542
set vcck to 1070 mv
set vddee to 1070 mv
match board id: 7
CPU clk: 1200MHz
LPDDR3
LPDDR3 chl: Rank0+1 @ 792MHz - FAIL
LPDDR3 chl: Rank0 @ 792MHz
bist_test rank: 0 22 08 3c 37 1c 52 1e 04 39 36 1c 51 21 08 3a 38 1f 51 1e 03 39 36 1b 51 650   - PASS

Rank0: 1024MB(auto)-2T-3
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: 0x00002200
Load bl31 from eMMC, src: 0x0001c200, des: 0x10100000, size: 0x00019600
Load bl33 from eMMC, src: 0x00038200, des: 0x01000000, size: 0x00048000
NOTICE:  BL3-1: v1.0(debug):521e8c3
NOTICE:  BL3-1: Built : 14:22:49, Jun  5 2018
NOTICE:  BL31: GXL normal boot!
NOTICE:  BL31: BL33 decompress pass
[Image: gxl_v1.1.3101-a78fa1e-dirty 2018-12-12 10:23:48 liqiang.hou@droid07-sz]
efuse init ops = c5
efuse init hdcp = c, cf9=7
bl30: check_permit, count is 1
bl30: check_permit: ok!
chipid: 0 0 3 c c 0 b2 b3 98 a0 0 c5 not ES chip
[0.651374 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 (May 08 2021 - 23:56:06)

DRAM:  1 GiB
Relocation Offset is: 36eed000
gpio: pin GPIODV_25 (gpio 44) value is 1
register usb cfg[0][1] = 0000000037f61238
[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 = 0x0000000033eddac0
aml_priv->desc_buf = 0x0000000033edfde0
SDIO Port B: 0, SDIO Port C: 1
emmc/sd response timeout, cmd8, status=0x3ff2800
emmc/sd response timeout, cmd55, status=0x3ff2800
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 = 7
      Multi dtb tool version: v2 .
      Support 7 dtbs.
        aml_dt soc: gxlx2 platform: p291 variant: 1g
        dtb 0 soc: gxl   plat: p215   vari: 1g
        dtb 1 soc: gxlx   plat: p261   vari: 1g
        dtb 2 soc: gxlx   plat: p261   vari: 2g
        dtb 3 soc: gxlx   plat: p265   vari: 1g
        dtb 4 soc: gxlx   plat: p265   vari: 2g
        dtb 5 soc: gxlx2   plat: p291   vari: 1g
        dtb 6 soc: gxlx2   plat: p295   vari: 1g
      Find match dtb: 5
start dts,buffer=0000000033ee2610,dt_addr=0000000033ee2610
      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
World CID MID :d601004d
mmc env offset: 0x7400000
In:    serial
Out:   serial
Err:   serial
board id is : 7
hpd_state=0
cvbs performance type = 7, table = 0
[store]To run cmd[emmc dtb_read 0x1000000 0x40000]
_verify_dtb_checksum()-946: calc dc72b3dd, store dc72b3dd
_verify_dtb_checksum()-946: calc dc72b3dd, store dc72b3dd
dtb_read()-1068: total valid 2
dtb_read()-1135: do nothing
      Amlogic multi-dtb tool
      GZIP format, decompress...
      Multi dtb detected
      unified board, board id = 7
      Multi dtb tool version: v2 .
      Support 7 dtbs.
        aml_dt soc: gxlx2 platform: p291 variant: 1g
        dtb 0 soc: gxl   plat: p215   vari: 1g
        dtb 1 soc: gxlx   plat: p261   vari: 1g
        dtb 2 soc: gxlx   plat: p261   vari: 2g
        dtb 3 soc: gxlx   plat: p265   vari: 1g
        dtb 4 soc: gxlx   plat: p265   vari: 2g
        dtb 5 soc: gxlx2   plat: p291   vari: 1g
        dtb 6 soc: gxlx2   plat: p295   vari: 1g
      Find match dtb: 5
wipe_data=successfulSecd
wipe_cache=successful
_find_partition_by_name()-188: do not find match in table logo
Cannot find dev.
amlmmc cmd <NULL> 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 <partition_name>:
        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 <size>
        read/write dtb, size is optional
store key read/write addr <size>
        read/write key, size is optional
store mbr addr
   update mbr/partition table by dtb

cmd store failed
Err imgread(L333):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: 0x3dc00000
[OSD]load fb addr from dts
[OSD]fb_addr for logo: 0x3dc00000
[CANVAS]addr=0x3dc00000 width=3840, height=2160
There is no valid bmp file at the given address
upgrade_step=2
amlkey_init() enter!
[EFUSE_MSG]keynum is 4
[BL31]: tee size: 0
[KM]Error:f[key_manage_query_size]L507:key[usid] not programed yet
[KM]Error:f[key_manage_query_size]L507:key[mac] not programed yet
[KM]Error:f[key_manage_query_size]L507:key[deviceid] not programed yet
Usage: irkey key_value1 key_value2 key_value3 key_value4 key_value5 key_value6 key_value7 time_value
irkey - irkey key_value1 key_value2 key_value3 key_value4 key_value5 key_value6 key_value7 time_value

Usage:
irkey
gpio: pin GPIOAO_2 (gpio 102) value is 1
rebootmode=cold_boot
Enter USB burn
Try connect time out 701, 700, 708
Hit any key to stop autoboot:  0
card out
emmc/sd response timeout, cmd8, status=0x1ff2800
emmc/sd response timeout, cmd55, status=0x1ff2800
emmc/sd response timeout, cmd1, status=0x1ff2800
(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
606670 bytes read in 19 ms (30.5 MiB/s)
## Starting application at 0x01000000 ...

U-Boot 2021.04-00056-g13ac02db31-dirty (Apr 28 2021 - 22:52:02 +0800) p212

Model: Amlogic Meson GXL (S905X) P212 Development Board
SoC:   Amlogic Meson Unknown (Unknown) Revision 2a:e (c5:2)
DRAM:  1 GiB
MMC:   mmc@70000: 0, mmc@72000: 1, mmc@74000: 2
Loading Environment from nowhere... OK
In:    serial
Out:   serial
Err:   serial
[BL31]: tee size: 0
[BL31]: tee size: 0
Net:   eth0: ethernet@c9410000
Hit any key to stop autoboot:  0
starting USB...
Bus usb@c9000000: dwc3_meson_gxl_get_phys: usb2 ports: 2
Register 2000140 NbrPorts 2
Starting the controller
USB XHCI 1.00
scanning bus usb@c9000000 for devices... 1 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found

Device 0: unknown device
Card did not respond to voltage select! : -110
Card did not respond to voltage select! : -110
switch to partitions #0, OK
mmc2(part 0) is current device
Scanning mmc 2:1...
Found U-Boot script /boot.scr
1025 bytes read in 1 ms (1001 KiB/s)
## Executing script at 08000000
Start AMLOGIC mainline U-boot
## Error: "bootfromsd" not defined
** Reading file would overwrite reserved memory **
Failed to load 'uEnv.txt'
"Synchronous Abort" handler, esr 0x96000010
elr: 000000000105271c lr : 0000000001050990 (reloc)
elr: 000000003ffac71c lr : 000000003ffaa990
x0 : 000000003df87460 x1 : 0000000044000000
x2 : 0000000000000401 x3 : 0000000000000000
x4 : 0000000000000401 x5 : 0000000000000000
x6 : 0000000000000000 x7 : 0000000000000000
x8 : 0000000000000008 x9 : 0000000000000000
x10: 0000000000000044 x11: 000000003df4c47c
x12: 0000000000000250 x13: 000000003df4c49c
x14: 0000000000000000 x15: 000000003df4e8c0
x16: 000000003ff69574 x17: 0000000000000000
x18: 000000003df57de0 x19: 0000000000000000
x20: 0000000044000000 x21: 000000003df87460
x22: 0000000000000000 x23: 000000003ffce498
x24: 0000000000000000 x25: 0000000000000001
x26: 000000000000000a x27: 0000000000000000
x28: 0000000000000401 x29: 000000003df4c5b0

Code: d2800003 eb03005f 540001c1 d65f03c0 (f8636824)
Resetting CPU ...

resetting ...
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 reb▒GXLX2:BL1:3cfee7:42a5ae;FEAT:ADFC318C:0;POC:3;RCY:0;EMMC:0;READ:0;0.0;CHK:0;
TE: 100024

BL2 Built : 13:36:55, Jun 22 2020.
gxl g85d6ad1 - longyong.chen@droid02-sz

Board ID = 7, adc=544
set vcck to 1070 mv
set vddee to 1070 mv
match board id: 7
CPU clk: 1200MHz
LPDDR3
LPDDR3 chl: Rank0+1 @ 792MHz - FAIL
LPDDR3 chl: Rank0 @ 792MHz
bist_test rank: 0 20 06 3a 38 1d 53 1f 05 39 37 1c 52 21 08 3a 36 1e 4e 1d 03 38 36 1b 51 650   - PASS

Rank0: 1024MB(auto)-2T-3
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: 0x00002200
Load bl31 from eMMC, src: 0x0001c200, des: 0x10100000, size: 0x00019600
Load bl33 from eMMC, src: 0x00038200, des: 0x01000000, size: 0x00048000
NOTICE:  BL3-1: v1.0(debug):521e8c3
NOTICE:  BL3-1: Built : 14:22:49, Jun  5 2018
NOTICE:  BL31: GXL normal boot!
NOTICE:  BL31: BL33 decompress pass
[Image: gxl_v1.1.3101-a78fa1e-dirty 2018-12-12 10:23:48 liqiang.hou@droid07-sz]
efuse init ops = c5
efuse init hdcp = c, cf9=7
bl30: check_permit, count is 1
bl30: check_permit: ok!
chipid: 0 0 3 c c 0 b2 b3 98 a0 0 c5 not ES chip
[0.655206 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

启动日志:

GXLX2:BL1:3cfee7:42a5ae;FEAT:ADFC318C:0;POC:3;RCY:0;EMMC:0;READ:0;0.0;CHK:0;
TE: 100269

BL2 Built : 13:36:55, Jun 22 2020.
gxl g85d6ad1 - longyong.chen@droid02-sz

Board ID = 7, adc=542
set vcck to 1070 mv
set vddee to 1070 mv
match board id: 7
CPU clk: 1200MHz
LPDDR3
LPDDR3 chl: Rank0+1 @ 792MHz - FAIL
LPDDR3 chl: Rank0 @ 792MHz
bist_test rank: 0 22 08 3c 36 1c 51 1e 04 38 36 1c 51 22 09 3b 35 1d 4d 1f 05 3a 36 1b 52 650   - PASS

Rank0: 1024MB(auto)-2T-3
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: 0x00002200
Load bl31 from eMMC, src: 0x0001c200, des: 0x10100000, size: 0x00019600
Load bl33 from eMMC, src: 0x00038200, des: 0x01000000, size: 0x00048000
NOTICE:  BL3-1: v1.0(debug):521e8c3
NOTICE:  BL3-1: Built : 14:22:49, Jun  5 2018
NOTICE:  BL31: GXL normal boot!
NOTICE:  BL31: BL33 decompress pass
[Image: gxl_v1.1.3101-a78fa1e-dirty 2018-12-12 10:23:48 liqiang.hou@droid07-sz]
efuse init ops = c5
efuse init hdcp = c, cf9=7
bl30: check_permit, count is 1
bl30: check_permit: ok!
chipid: 0 0 3 c c 0 b2 b3 98 a0 0 c5 not ES chip
[0.654025 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 (May 08 2021 - 23:56:06)

DRAM:  1 GiB
Relocation Offset is: 36eed000
gpio: pin GPIODV_25 (gpio 44) value is 1
register usb cfg[0][1] = 0000000037f61238
[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 = 0x0000000033eddac0
aml_priv->desc_buf = 0x0000000033edfde0
SDIO Port B: 0, SDIO Port C: 1
emmc/sd response timeout, cmd8, status=0x3ff2800
emmc/sd response timeout, cmd55, status=0x3ff2800
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 = 7
      Multi dtb tool version: v2 .
      Support 7 dtbs.
        aml_dt soc: gxlx2 platform: p291 variant: 1g
        dtb 0 soc: gxl   plat: p215   vari: 1g
        dtb 1 soc: gxlx   plat: p261   vari: 1g
        dtb 2 soc: gxlx   plat: p261   vari: 2g
        dtb 3 soc: gxlx   plat: p265   vari: 1g
        dtb 4 soc: gxlx   plat: p265   vari: 2g
        dtb 5 soc: gxlx2   plat: p291   vari: 1g
        dtb 6 soc: gxlx2   plat: p295   vari: 1g
      Find match dtb: 5
start dts,buffer=0000000033ee2610,dt_addr=0000000033ee2610
      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
World CID MID :d601004d
mmc env offset: 0x7400000
In:    serial
Out:   serial
Err:   serial
board id is : 7
hpd_state=0
cvbs performance type = 7, table = 0
[store]To run cmd[emmc dtb_read 0x1000000 0x40000]
_verify_dtb_checksum()-946: calc dc72b3dd, store dc72b3dd
_verify_dtb_checksum()-946: calc dc72b3dd, store dc72b3dd
dtb_read()-1068: total valid 2
dtb_read()-1135: do nothing
      Amlogic multi-dtb tool
      GZIP format, decompress...
      Multi dtb detected
      unified board, board id = 7
      Multi dtb tool version: v2 .
      Support 7 dtbs.
        aml_dt soc: gxlx2 platform: p291 variant: 1g
        dtb 0 soc: gxl   plat: p215   vari: 1g
        dtb 1 soc: gxlx   plat: p261   vari: 1g
        dtb 2 soc: gxlx   plat: p261   vari: 2g
        dtb 3 soc: gxlx   plat: p265   vari: 1g
        dtb 4 soc: gxlx   plat: p265   vari: 2g
        dtb 5 soc: gxlx2   plat: p291   vari: 1g
        dtb 6 soc: gxlx2   plat: p295   vari: 1g
      Find match dtb: 5
wipe_data=successfulSecd
wipe_cache=successful
_find_partition_by_name()-188: do not find match in table logo
Cannot find dev.
amlmmc cmd <NULL> 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 <partition_name>:
        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 <size>
        read/write dtb, size is optional
store key read/write addr <size>
        read/write key, size is optional
store mbr addr
   update mbr/partition table by dtb

cmd store failed
Err imgread(L333):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: 0x3dc00000
[OSD]load fb addr from dts
[OSD]fb_addr for logo: 0x3dc00000
[CANVAS]addr=0x3dc00000 width=3840, height=2160
There is no valid bmp file at the given address
upgrade_step=2
amlkey_init() enter!
[EFUSE_MSG]keynum is 4
[BL31]: tee size: 0
[KM]Error:f[key_manage_query_size]L507:key[usid] not programed yet
[KM]Error:f[key_manage_query_size]L507:key[mac] not programed yet
[KM]Error:f[key_manage_query_size]L507:key[deviceid] not programed yet
Usage: irkey key_value1 key_value2 key_value3 key_value4 key_value5 key_value6 key_value7 time_value
irkey - irkey key_value1 key_value2 key_value3 key_value4 key_value5 key_value6 key_value7 time_value

Usage:
irkey
gpio: pin GPIOAO_2 (gpio 102) value is 1
rebootmode=cold_boot
Enter USB burn
Try connect time out 701, 700, 708
Hit any key to stop autoboot:  0
card out
emmc/sd response timeout, cmd8, status=0x1ff2800
emmc/sd response timeout, cmd55, status=0x1ff2800
emmc/sd response timeout, cmd1, status=0x1ff2800
(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
606670 bytes read in 19 ms (30.5 MiB/s)
## Starting application at 0x01000000 ...

U-Boot 2021.04-00056-g13ac02db31-dirty (Apr 28 2021 - 22:52:02 +0800) p212

Model: Amlogic Meson GXL (S905X) P212 Development Board
SoC:   Amlogic Meson Unknown (Unknown) Revision 2a:e (c5:2)
DRAM:  1 GiB
MMC:   mmc@70000: 0, mmc@72000: 1, mmc@74000: 2
Loading Environment from nowhere... OK
In:    serial
Out:   serial
Err:   serial
[BL31]: tee size: 0
[BL31]: tee size: 0
Net:   eth0: ethernet@c9410000
Hit any key to stop autoboot:  0
starting USB...
Bus usb@c9000000: dwc3_meson_gxl_get_phys: usb2 ports: 2
Register 2000140 NbrPorts 2
Starting the controller
USB XHCI 1.00
scanning bus usb@c9000000 for devices... 1 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found

Device 0: unknown device
Card did not respond to voltage select! : -110
Card did not respond to voltage select! : -110
switch to partitions #0, OK
mmc2(part 0) is current device
Scanning mmc 2:1...
Found U-Boot script /boot.scr
1025 bytes read in 1 ms (1001 KiB/s)
## Executing script at 08000000
Start AMLOGIC mainline U-boot
## Error: "bootfromsd" not defined
** Reading file would overwrite reserved memory **
Failed to load 'uEnv.txt'
"Synchronous Abort" handler, esr 0x96000010
elr: 000000000105271c lr : 0000000001050990 (reloc)
elr: 000000003ffac71c lr : 000000003ffaa990
x0 : 000000003df87460 x1 : 0000000044000000
x2 : 0000000000000401 x3 : 0000000000000000
x4 : 0000000000000401 x5 : 0000000000000000
x6 : 0000000000000000 x7 : 0000000000000000
x8 : 0000000000000008 x9 : 0000000000000000
x10: 0000000000000044 x11: 000000003df4c47c
x12: 0000000000000250 x13: 000000003df4c49c
x14: 0000000000000000 x15: 000000003df4e8c0
x16: 000000003ff69574 x17: 0000000000000000
x18: 000000003df57de0 x19: 0000000000000000
x20: 0000000044000000 x21: 000000003df87460
x22: 0000000000000000 x23: 000000003ffce498
x24: 0000000000000000 x25: 0000000000000001
x26: 000000000000000a x27: 0000000000000000
x28: 0000000000000401 x29: 000000003df4c5b0

Code: d2800003 eb03005f 540001c1 d65f03c0 (f8636824)
Resetting CPU ...

resetting ...
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 reb▒GXLX2:BL1:3cfee7:42a5ae;FEAT:ADFC318C:0;POC:3;RCY:0;EMMC:0;READ:0;0.0;CHK:0;
TE: 100265

BL2 Built : 13:36:55, Jun 22 2020.
gxl g85d6ad1 - longyong.chen@droid02-sz

Board ID = 7, adc=544
set vcck to 1070 mv
set vddee to 1070 mv
match board id: 7
CPU clk: 1200MHz
LPDDR3
LPDDR3 chl: Rank0+1 @ 792MHz - FAIL
LPDDR3 chl: Rank0 @ 792MHz
bist_test rank: 0 22 08 3c 37 1c 52 1f 05 39 36 1c 51 22 09 3b 35 1d 4d 1f 04 3a 36 1b 51 650   - PASS

Rank0: 1024MB(auto)-2T-3
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: 0x00002200
Load bl31 from eMMC, src: 0x0001c200, des: 0x10100000, size: 0x00019600
Load bl33 from eMMC, src: 0x00038200, des: 0x01000000, size: 0x00048000
NOTICE:  BL3-1: v1.0(debug):521e8c3
NOTICE:  BL3-1: Built : 14:22:49, Jun  5 2018
NOTICE:  BL31: GXL normal boot!
NOTICE:  BL31: BL33 decompress pass
[Image: gxl_v1.1.3101-a78fa1e-dirty 2018-12-12 10:23:48 liqiang.hou@droid07-sz]
efuse init ops = c5
efuse init hdcp = c, cf9=7
bl30: check_permit, count is 1
bl30: check_permit: ok!
chipid: 0 0 3 c c 0 b2 b3 98 a0 0 c5 not ES chip
[0.655889 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 (May 08 2021 - 23:56:06)

DRAM:  1 GiB
Relocation Offset is: 36eed000
gpio: pin GPIODV_25 (gpio 44) value is 1
register usb cfg[0][1] = 0000000037f61238
[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 = 0x0000000033eddac0
aml_priv->desc_buf = 0x0000000033edfde0
SDIO Port B: 0, SDIO Port C: 1
emmc/sd response timeout, cmd8, status=0x3ff2800
emmc/sd response timeout, cmd55, status=0x3ff2800
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 = 7
      Multi dtb tool version: v2 .
      Support 7 dtbs.
        aml_dt soc: gxlx2 platform: p291 variant: 1g
        dtb 0 soc: gxl   plat: p215   vari: 1g
        dtb 1 soc: gxlx   plat: p261   vari: 1g
        dtb 2 soc: gxlx   plat: p261   vari: 2g
        dtb 3 soc: gxlx   plat: p265   vari: 1g
        dtb 4 soc: gxlx   plat: p265   vari: 2g
        dtb 5 soc: gxlx2   plat: p291   vari: 1g
        dtb 6 soc: gxlx2   plat: p295   vari: 1g
      Find match dtb: 5
start dts,buffer=0000000033ee2610,dt_addr=0000000033ee2610
      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
World CID MID :d601004d
mmc env offset: 0x7400000
In:    serial
Out:   serial
Err:   serial
board id is : 7
hpd_state=0
cvbs performance type = 7, table = 0
[store]To run cmd[emmc dtb_read 0x1000000 0x40000]
_verify_dtb_checksum()-946: calc dc72b3dd, store dc72b3dd
_verify_dtb_checksum()-946: calc dc72b3dd, store dc72b3dd
dtb_read()-1068: total valid 2
dtb_read()-1135: do nothing
      Amlogic multi-dtb tool
      GZIP format, decompress...
      Multi dtb detected
      unified board, board id = 7
      Multi dtb tool version: v2 .
      Support 7 dtbs.
        aml_dt soc: gxlx2 platform: p291 variant: 1g
        dtb 0 soc: gxl   plat: p215   vari: 1g
        dtb 1 soc: gxlx   plat: p261   vari: 1g
        dtb 2 soc: gxlx   plat: p261   vari: 2g
        dtb 3 soc: gxlx   plat: p265   vari: 1g
        dtb 4 soc: gxlx   plat: p265   vari: 2g
        dtb 5 soc: gxlx2   plat: p291   vari: 1g
        dtb 6 soc: gxlx2   plat: p295   vari: 1g
      Find match dtb: 5
wipe_data=successfulSecd
wipe_cache=successful
_find_partition_by_name()-188: do not find match in table logo
Cannot find dev.
amlmmc cmd <NULL> 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 <partition_name>:
        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 <size>
        read/write dtb, size is optional
store key read/write addr <size>
        read/write key, size is optional
store mbr addr
   update mbr/partition table by dtb

cmd store failed
Err imgread(L333):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: 0x3dc00000
[OSD]load fb addr from dts
[OSD]fb_addr for logo: 0x3dc00000
[CANVAS]addr=0x3dc00000 width=3840, height=2160
There is no valid bmp file at the given address
upgrade_step=2
amlkey_init() enter!
[EFUSE_MSG]keynum is 4
[BL31]: tee size: 0
[KM]Error:f[key_manage_query_size]L507:key[usid] not programed yet
[KM]Error:f[key_manage_query_size]L507:key[mac] not programed yet
[KM]Error:f[key_manage_query_size]L507:key[deviceid] not programed yet
Usage: irkey key_value1 key_value2 key_value3 key_value4 key_value5 key_value6 key_value7 time_value
irkey - irkey key_value1 key_value2 key_value3 key_value4 key_value5 key_value6 key_value7 time_value

Usage:
irkey
gpio: pin GPIOAO_2 (gpio 102) value is 1
rebootmode=cold_boot
Enter USB burn
Try connect time out 701, 700, 709
Hit any key to stop autoboot:  0
gxl_p211_v1#

启动日志:

GXLX2:BL1:3cfee7:42a5ae;FEAT:ADFC318C:0;POC:3;RCY:0;EMMC:0;READ:0;0.0;CHK:0;
TE: 100304

BL2 Built : 13:36:55, Jun 22 2020.
gxl g85d6ad1 - longyong.chen@droid02-sz

Board ID = 7, adc=543
set vcck to 1070 mv
set vddee to 1070 mv
match board id: 7
CPU clk: 1200MHz
LPDDR3
LPDDR3 chl: Rank0+1 @ 792MHz - FAIL
LPDDR3 chl: Rank0 @ 792MHz
bist_test rank: 0 22 08 3c 36 1b 51 1f 05 39 36 1c 51 21 08 3a 37 1f 50 1d 03 38 36 1b 51 650   - PASS

Rank0: 1024MB(auto)-2T-3
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: 0x00002200
Load bl31 from eMMC, src: 0x0001c200, des: 0x10100000, size: 0x00019600
Load bl33 from eMMC, src: 0x00038200, des: 0x01000000, size: 0x00048000
NOTICE:  BL3-1: v1.0(debug):521e8c3
NOTICE:  BL3-1: Built : 14:22:49, Jun  5 2018
NOTICE:  BL31: GXL normal boot!
NOTICE:  BL31: BL33 decompress pass
[Image: gxl_v1.1.3101-a78fa1e-dirty 2018-12-12 10:23:48 liqiang.hou@droid07-sz]
efuse init ops = c5
efuse init hdcp = c, cf9=7
bl30: check_permit, count is 1
bl30: check_permit: ok!
chipid: 0 0 3 c c 0 b2 b3 98 a0 0 c5 not ES chip
[0.652975 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 (May 08 2021 - 23:56:06)

DRAM:  1 GiB
Relocation Offset is: 36eed000
gpio: pin GPIODV_25 (gpio 44) value is 1
register usb cfg[0][1] = 0000000037f61238
[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 = 0x0000000033eddac0
aml_priv->desc_buf = 0x0000000033edfde0
SDIO Port B: 0, SDIO Port C: 1
emmc/sd response timeout, cmd8, status=0x3ff2800
emmc/sd response timeout, cmd55, status=0x3ff2800
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 = 7
      Multi dtb tool version: v2 .
      Support 7 dtbs.
        aml_dt soc: gxlx2 platform: p291 variant: 1g
        dtb 0 soc: gxl   plat: p215   vari: 1g
        dtb 1 soc: gxlx   plat: p261   vari: 1g
        dtb 2 soc: gxlx   plat: p261   vari: 2g
        dtb 3 soc: gxlx   plat: p265   vari: 1g
        dtb 4 soc: gxlx   plat: p265   vari: 2g
        dtb 5 soc: gxlx2   plat: p291   vari: 1g
        dtb 6 soc: gxlx2   plat: p295   vari: 1g
      Find match dtb: 5
start dts,buffer=0000000033ee2610,dt_addr=0000000033ee2610
      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
World CID MID :d601004d
mmc env offset: 0x7400000
In:    serial
Out:   serial
Err:   serial
board id is : 7
hpd_state=0
cvbs performance type = 7, table = 0
[store]To run cmd[emmc dtb_read 0x1000000 0x40000]
_verify_dtb_checksum()-946: calc dc72b3dd, store dc72b3dd
_verify_dtb_checksum()-946: calc dc72b3dd, store dc72b3dd
dtb_read()-1068: total valid 2
dtb_read()-1135: do nothing
      Amlogic multi-dtb tool
      GZIP format, decompress...
      Multi dtb detected
      unified board, board id = 7
      Multi dtb tool version: v2 .
      Support 7 dtbs.
        aml_dt soc: gxlx2 platform: p291 variant: 1g
        dtb 0 soc: gxl   plat: p215   vari: 1g
        dtb 1 soc: gxlx   plat: p261   vari: 1g
        dtb 2 soc: gxlx   plat: p261   vari: 2g
        dtb 3 soc: gxlx   plat: p265   vari: 1g
        dtb 4 soc: gxlx   plat: p265   vari: 2g
        dtb 5 soc: gxlx2   plat: p291   vari: 1g
        dtb 6 soc: gxlx2   plat: p295   vari: 1g
      Find match dtb: 5
wipe_data=successfulSecd
wipe_cache=successful
_find_partition_by_name()-188: do not find match in table logo
Cannot find dev.
amlmmc cmd <NULL> 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 <partition_name>:
        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 <size>
        read/write dtb, size is optional
store key read/write addr <size>
        read/write key, size is optional
store mbr addr
   update mbr/partition table by dtb

cmd store failed
Err imgread(L333):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: 0x3dc00000
[OSD]load fb addr from dts
[OSD]fb_addr for logo: 0x3dc00000
[CANVAS]addr=0x3dc00000 width=3840, height=2160
There is no valid bmp file at the given address
upgrade_step=2
amlkey_init() enter!
[EFUSE_MSG]keynum is 4
[BL31]: tee size: 0
[KM]Error:f[key_manage_query_size]L507:key[usid] not programed yet
[KM]Error:f[key_manage_query_size]L507:key[mac] not programed yet
[KM]Error:f[key_manage_query_size]L507:key[deviceid] not programed yet
Usage: irkey key_value1 key_value2 key_value3 key_value4 key_value5 key_value6 key_value7 time_value
irkey - irkey key_value1 key_value2 key_value3 key_value4 key_value5 key_value6 key_value7 time_value

Usage:
irkey
gpio: pin GPIOAO_2 (gpio 102) value is 1
rebootmode=cold_boot
Enter USB burn
Try connect time out 701, 700, 708
Hit any key to stop autoboot:  0
card out
emmc/sd response timeout, cmd8, status=0x1ff2800
emmc/sd response timeout, cmd55, status=0x1ff2800
emmc/sd response timeout, cmd1, status=0x1ff2800
(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
606670 bytes read in 19 ms (30.5 MiB/s)
## Starting application at 0x01000000 ...

U-Boot 2021.04-00056-g13ac02db31-dirty (Apr 28 2021 - 22:52:02 +0800) p212

Model: Amlogic Meson GXL (S905X) P212 Development Board
SoC:   Amlogic Meson Unknown (Unknown) Revision 2a:e (c5:2)
DRAM:  1 GiB
MMC:   mmc@70000: 0, mmc@72000: 1, mmc@74000: 2
Loading Environment from nowhere... OK
In:    serial
Out:   serial
Err:   serial
[BL31]: tee size: 0
[BL31]: tee size: 0
Net:   eth0: ethernet@c9410000
Hit any key to stop autoboot:  0
starting USB...
Bus usb@c9000000: dwc3_meson_gxl_get_phys: usb2 ports: 2
Register 2000140 NbrPorts 2
Starting the controller
USB XHCI 1.00
scanning bus usb@c9000000 for devices... 1 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found

Device 0: unknown device
Card did not respond to voltage select! : -110
Card did not respond to voltage select! : -110
switch to partitions #0, OK
mmc2(part 0) is current device
Scanning mmc 2:1...
Found U-Boot script /boot.scr
1025 bytes read in 1 ms (1001 KiB/s)
## Executing script at 08000000
Start AMLOGIC mainline U-boot
## Error: "bootfromsd" not defined
** Reading file would overwrite reserved memory **
Failed to load 'uEnv.txt'
"Synchronous Abort" handler, esr 0x96000010
elr: 000000000105271c lr : 0000000001050990 (reloc)
elr: 000000003ffac71c lr : 000000003ffaa990
x0 : 000000003df87460 x1 : 0000000044000000
x2 : 0000000000000401 x3 : 0000000000000000
x4 : 0000000000000401 x5 : 0000000000000000
x6 : 0000000000000000 x7 : 0000000000000000
x8 : 0000000000000008 x9 : 0000000000000000
x10: 0000000000000044 x11: 000000003df4c47c
x12: 0000000000000250 x13: 000000003df4c49c
x14: 0000000000000000 x15: 000000003df4e8c0
x16: 000000003ff69574 x17: 0000000000000000
x18: 000000003df57de0 x19: 0000000000000000
x20: 0000000044000000 x21: 000000003df87460
x22: 0000000000000000 x23: 000000003ffce498
x24: 0000000000000000 x25: 0000000000000001
x26: 000000000000000a x27: 0000000000000000
x28: 0000000000000401 x29: 000000003df4c5b0

Code: d2800003 eb03005f 540001c1 d65f03c0 (f8636824)
Resetting CPU ...

resetting ...
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 reb▒GXLX2:BL1:3cfee7:42a5ae;FEAT:ADFC318C:0;POC:3;RCY:0;EMMC:0;READ:0;0.0;CHK:0;
TE: 100249

BL2 Built : 13:36:55, Jun 22 2020.
gxl g85d6ad1 - longyong.chen@droid02-sz

Board ID = 7, adc=542
set vcck to 1070 mv
set vddee to 1070 mv
match board id: 7
CPU clk: 1200MHz
LPDDR3
LPDDR3 chl: Rank0+1 @ 792MHz - FAIL
LPDDR3 chl: Rank0 @ 792MHz
bist_test rank: 0 21 07 3b 37 1c 52 1f 05 39 37 1c 52 21 08 3a 35 1d 4d 1d 02 38 36 1b 51 650   - PASS

Rank0: 1024MB(auto)-2T-3
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: 0x00002200
Load bl31 from eMMC, src: 0x0001c200, des: 0x10100000, size: 0x00019600
Load bl33 from eMMC, src: 0x00038200, des: 0x01000000, size: 0x00048000
NOTICE:  BL3-1: v1.0(debug):521e8c3
NOTICE:  BL3-1: Built : 14:22:49, Jun  5 2018
NOTICE:  BL31: GXL normal boot!
NOTICE:  BL31: BL33 decompress pass
[Image: gxl_v1.1.3101-a78fa1e-dirty 2018-12-12 10:23:48 liqiang.hou@droid07-sz]
efuse init ops = c5
efuse init hdcp = c, cf9=7
bl30: check_permit, count is 1
bl30: check_permit: ok!
chipid: 0 0 3 c c 0 b2 b3 98 a0 0 c5 not ES chip
[0.651199 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 (May 08 2021 - 23:56:06)

DRAM:  1 GiB
Relocation Offset is: 36eed000
gpio: pin GPIODV_25 (gpio 44) value is 1
register usb cfg[0][1] = 0000000037f61238
[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 = 0x0000000033eddac0
aml_priv->desc_buf = 0x0000000033edfde0
SDIO Port B: 0, SDIO Port C: 1
emmc/sd response timeout, cmd8, status=0x3ff2800
emmc/sd response timeout, cmd55, status=0x3ff2800
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 = 7
      Multi dtb tool version: v2 .
      Support 7 dtbs.
        aml_dt soc: gxlx2 platform: p291 variant: 1g
        dtb 0 soc: gxl   plat: p215   vari: 1g
        dtb 1 soc: gxlx   plat: p261   vari: 1g
        dtb 2 soc: gxlx   plat: p261   vari: 2g
        dtb 3 soc: gxlx   plat: p265   vari: 1g
        dtb 4 soc: gxlx   plat: p265   vari: 2g
        dtb 5 soc: gxlx2   plat: p291   vari: 1g
        dtb 6 soc: gxlx2   plat: p295   vari: 1g
      Find match dtb: 5
start dts,buffer=0000000033ee2610,dt_addr=0000000033ee2610
      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
World CID MID :d601004d
mmc env offset: 0x7400000
In:    serial
Out:   serial
Err:   serial
board id is : 7
hpd_state=0
cvbs performance type = 7, table = 0
[store]To run cmd[emmc dtb_read 0x1000000 0x40000]
_verify_dtb_checksum()-946: calc dc72b3dd, store dc72b3dd
_verify_dtb_checksum()-946: calc dc72b3dd, store dc72b3dd
dtb_read()-1068: total valid 2
dtb_read()-1135: do nothing
      Amlogic multi-dtb tool
      GZIP format, decompress...
      Multi dtb detected
      unified board, board id = 7
      Multi dtb tool version: v2 .
      Support 7 dtbs.
        aml_dt soc: gxlx2 platform: p291 variant: 1g
        dtb 0 soc: gxl   plat: p215   vari: 1g
        dtb 1 soc: gxlx   plat: p261   vari: 1g
        dtb 2 soc: gxlx   plat: p261   vari: 2g
        dtb 3 soc: gxlx   plat: p265   vari: 1g
        dtb 4 soc: gxlx   plat: p265   vari: 2g
        dtb 5 soc: gxlx2   plat: p291   vari: 1g
        dtb 6 soc: gxlx2   plat: p295   vari: 1g
      Find match dtb: 5
wipe_data=successfulSecd
wipe_cache=successful
_find_partition_by_name()-188: do not find match in table logo
Cannot find dev.
amlmmc cmd <NULL> 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 <partition_name>:
        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 <size>
        read/write dtb, size is optional
store key read/write addr <size>
        read/write key, size is optional
store mbr addr
   update mbr/partition table by dtb

cmd store failed
Err imgread(L333):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: 0x3dc00000
[OSD]load fb addr from dts
[OSD]fb_addr for logo: 0x3dc00000
[CANVAS]addr=0x3dc00000 width=3840, height=2160
There is no valid bmp file at the given address
upgrade_step=2
amlkey_init() enter!
[EFUSE_MSG]keynum is 4
[BL31]: tee size: 0
[KM]Error:f[key_manage_query_size]L507:key[usid] not programed yet
[KM]Error:f[key_manage_query_size]L507:key[mac] not programed yet
[KM]Error:f[key_manage_query_size]L507:key[deviceid] not programed yet
Usage: irkey key_value1 key_value2 key_value3 key_value4 key_value5 key_value6 key_value7 time_value
irkey - irkey key_value1 key_value2 key_value3 key_value4 key_value5 key_value6 key_value7 time_value

Usage:
irkey
gpio: pin GPIOAO_2 (gpio 102) value is 1
rebootmode=cold_boot
Enter USB burn
Try connect time out 701, 700, 708
Hit any key to stop autoboot:  0
gxl_p211_v1#
tinytinycn commented 6 days ago

EMMC刷入 bookworm 6.6.50 后,nmcli网络显示connected,但是未获取到IP

相较于上面的6.1.107,离上网又进了一步。

  1. 路由器显示已连接,但无数据包收发

    Snipaste_2024-09-11_14-43-14
  2. u盘启动armbian bookworm 6.6.50 显示disconnected

    6 6-disconnected
  3. 刷入emmc,重启后进入系统,显示connected(幻觉)

    6 6-connected-ipv6
  4. nmtui 配置静态IP,nmcli显示有IP但无法上网

    emmc-success-6 6-ip-get
  5. 插拔网线有反应

    Snipaste_2024-09-11_14-11-24
  6. journalctl -xe 查看错误日志

    Snipaste_2024-09-11_14-42-35
  7. 重启 NetworkManager-dispatcher/NetworkManager 均无法解决

    Snipaste_2024-09-11_14-52-03 Snipaste_2024-09-11_14-53-00

这是为什么??使用netplan配置后 apply 也无法上网正常获取IP。迷惑? @ophub

ophub commented 6 days ago

USB里可以正常使用有线网络,安装到EMMC就不可以了? 这个一般就2种解决方法,一个是刷合适的安卓系统底包,安卓root可以adb update,支持从usb启动armbian并正确识别有线网络。安卓系统一般相同家族的可以线刷,找通用的固件,网上找找。首页的设备列表里也有2个cm201设备,你试试他们的安卓是否可以使用。

另外一种方法是复制u-boot,在/boot/目录下有一堆u-boot-xxx.bin, 在usb里使用的时候复制成u-boot.ext,在emmc里时候的时候复制成u-boot.emmc。固件里自带的那些同家族的u-boot都可以试试复制结果,看看哪个能正常使用。