Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

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

Open
tinytinycn opened this issue Sep 10, 2024 · 13 comments
Open

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

tinytinycn opened this issue Sep 10, 2024 · 13 comments
Labels
documentation Improvements or additions to documentation essence Recommended essence posts new box Research Fills in the Blanks support This need is supported

Comments

@tinytinycn
Copy link

tinytinycn commented Sep 10, 2024

Device Information | 设备信息

  • SOC: [S905L3]
  • Model [CM201-1-6 YS 湖南 单EMMC内存颗粒版本]

Armbian Version | 系统版本

  • Kernel Version: [6.1.107]
  • Release: [bookworm]

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

  • DTB文件:meson-gxl-s905l2-x7-5g.dtb、meson-gxl-s905l3b-m302a.dtb
  • U-BOOT文件:u-boot-p212.bin、u-boot-s905x-s912.bin

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:~#
@tinytinycn tinytinycn changed the title CM201-1-6 YS S905L3 EMMC成功刷入,但无法获取有限网络IP CM201-1-6 YS S905L3 EMMC成功刷入,但无法获取有线网络IP Sep 10, 2024
@ophub
Copy link
Owner

ophub commented Sep 10, 2024

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

@tinytinycn
Copy link
Author

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

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

@ophub
Copy link
Owner

ophub commented Sep 10, 2024

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

@tinytinycn
Copy link
Author

tinytinycn commented Sep 11, 2024

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

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

  • A.选项121(FDTFILE:meson-gxl-s905l2-x7-5g.dtb / UBOOT:u-boot-p212.bin)
x7-p212-cp-uboot-p212-emmc

启动日志:

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

  • B.选项122(FDTFILE:meson-gxl-s905l3b-m302a.dtb / UBOOT:u-boot-p212.bin)
m302a-p212-cp-uboot-p212-emmc

启动日志:

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#

  • C.选项122(FDTFILE:meson-gxl-s905l3b-m302a.dtb / UBOOT:u-boot-s905x-s912.bin)
m302a-s912-cp-uboot-p212-emmc

启动日志:

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
Copy link
Author

tinytinycn commented Sep 11, 2024

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

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

  1. 路由器显示已连接,但无数据包收发
Snipaste_2024-09-11_14-43-14
  1. u盘启动armbian bookworm 6.6.50 显示disconnected
6 6-disconnected
  1. 刷入emmc,重启后进入系统,显示connected(幻觉)
6 6-connected-ipv6
  1. nmtui 配置静态IP,nmcli显示有IP但无法上网
emmc-success-6 6-ip-get
  1. 插拔网线有反应
Snipaste_2024-09-11_14-11-24
  1. journalctl -xe 查看错误日志
Snipaste_2024-09-11_14-42-35
  1. 重启 NetworkManager-dispatcher/NetworkManager 均无法解决
Snipaste_2024-09-11_14-52-03 Snipaste_2024-09-11_14-53-00

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

@ophub
Copy link
Owner

ophub commented Sep 11, 2024

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都可以试试复制结果,看看哪个能正常使用。

@tinytinycn
Copy link
Author

tinytinycn commented Sep 19, 2024

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都可以试试复制结果,看看哪个能正常使用。

  1. USB 里面和 安装到EMMC 的 armbian 系统均无法获取网络IP
  2. 方法一:目前该型号 CM201-1-6-YS 2021款(S905L3) 全网暂无Android9.0 底包,刷入能正常启动安卓系统的通用的固件均为 4.4.2。刷入后,同样是上述问题。
  3. 方法二:先试验确认 uENV.txt 中使用 FDT=/dtb/amlogic/meson-gxl-s905l2-x7-5g.dtb 设备树文件,可以正常USB引导进入系统,然后将 u-boot-xxx.bin 复制成 u-boot.ext 均无法正常引导进入 armbian 系统。只有 u-boot-p212.bin 可以正常引导进入(即默认),进入系统后,依然无法获取网络IP。
  4. 方法三:在android4.4.2 底包前提下,使用 armbian-instll -m yes -a 采用主线U-boot 均无法启动armbian 内核

暂时结论:没有合适的Android9.0 底包, 采用 Android4.4.2 是无法使用其 android U-boot 完成引导armbian 内核启动。 因为尝试过将全网其他同S905L3 SOC机型 android9.0固件包解包后,移植Android4.4.2 固件包的 bootloader.PARTITION 分区,重新打包刷入,是无法完成 android9.0系统内核的引导启动。

最终结论一:android4.4.2 内核版本3.4.19 其底包中的bootloader.partition 代码程序是无法成功引导(即使成功引导也存在网络无法获取IP等疑难杂症) 高版本内核6.1.109/6.6.50 armbian系统。

最终结论二:该issue究其根本是 CM201-1 YS S905L3 这块板子缺少合适的andriod9.0底包。因此需要进行同系SOC板子的底包移植。搜索全网没有包,那就自己来。成功完成ATV android9.0系统的移植,并成功刷入。最终,解决掉该issue 无法获取IP的问题。

@tinytinycn
Copy link
Author

@ophub 已经解决了,自己移植了ATV android9.0线刷固件包刷入并U盘启动armbian(能获取有线IP),并成功刷入EMMC。

移植包仅适用于此板设备盒子! 可以参考移植过程,移植其他板子的所需要的固件包。

SOC: [S905L3]
Model [CM201-1-6 YS 湖南 单EMMC内存颗粒版本]
DTB文件:meson-gxl-s905l2-x7-5g.dtb
U-BOOT文件:u-boot-p212.bin
Board | 主板

主板型号:CM201-1-6 20210428
主板图片:主板


以下是移植过程和刷入armbian的合适的 DTB/U-BOOT 文件

  1. 线刷ATV android9.0 原固件包时,TTL日志提示DDR初始化失败
线刷ATV android9 0固件包-DDR初始化失败
  1. 线刷android4.4.2 固件包时,TTL日志提示DDR初始化成功

  2. 大胆怀疑:android9.0 固件包中 U-boot 代码程序对此板子的 DDR初始化代码没有适配导致

  3. 小心求证:将android4.4.2固件包解包后的DDR.USB 复制到 android9.0固件包解包后目录覆盖掉。这一步是为了能够在线刷andriod9.0 时能正常通过U-boot启动完成正确DDR初始化。另外,还需要将android9.0 bootloader分区文件中Uboot关于DDR初始化的部分替换成 android4.4.2 DDR.USB 16进制文件内容。这一步时因为线刷android9.0时,同时刷写新的bootloader,需要将bootloader 中Uboot 关于初始化DDR的部分替换。总得来说,一个是为了保证USB U盘启动时能够 uboot 正常启动,一个是保证刷入emmc后能够 uboot 正常启动。

替换DDR USB文件 覆盖粘贴0000-BFF0_16进制内容 覆盖粘贴2 image-cfg
  1. 替换上述两部分内容后,重新打包生成 android9.0移植包。线刷,成功!以下为TTL线刷日志
初始化成功
boot_select kernel[0,3) recovery[3,10) factory[10,*)
boot_select current count=0
boot_select current count=1
boot_select current count=2
boot_select current count=3
boot_select current count=4
boot_select current count=5
boot_select count=5
boot_select=recovery
Enter USB burn
Set Addr 48
Get DT cfg
Get DT cfg
Get DT cfg
set CFG

ID[16]
tplcmd[    echo 12345]
12345
[MSG]ret = 0
[info]success
BULKcmd[    low_power]
[info]success
BULKcmd[bootloader_is_old]
[info]success
BULKcmd[erase_bootloader]
[info]success
BULKcmd[reset]
reboot mode: normal
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: 0x1001
bl31 reboot reason: 0x1001
ERROR:   gxbb System Reset: SCP error 1.
GXLX2:BL1:3cfee7:42a5ae;FEAT:ADFC318C:0;POC:3;RCY:0;EMMC:0;READ:0;0.0;CHK:0;
TE: 99979

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
Skip usb!
0.0;
TE: 1636022

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
BL2 USB
LPDDR3
LPDDR3 chl: Rank0+1 @ 792MHz - FAIL
LPDDR3 chl: Rank0 @ 792MHz
bist_test rank: 0 20 06 3a 37 1d 52 1e 04 38 37 1d 52 20 07 3a 38 1f 51 1d 02 39 36 1b 52 650   - PASS

Rank0: 1024MB(auto)-2T-3
0.0;
TE: 2404861

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
BL2 USB
0.0;
TE: 2560461

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
BL2 USB
Load fip header from USB, src: 0x0000c000, des: 0x01400000, size: 0x00004000
New fip structure!
Load bl30 from USB, src: 0x00010000, des: 0x013c0000, size: 0x00007600
Load bl301 from USB, src: 0x00018000, des: 0x01380000, size: 0x00002600
Load bl31 from USB, src: 0x0001c000, des: 0x10100000, size: 0x00019600
Load bl33 from USB, src: 0x00038000, des: 0x01000000, size: 0x0004de00
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 b2 b3 98 a0 0 c5 not ES chip
[2.877200 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-g900d607-dirty (Nov 19 2021 - 22:31:41)

DRAM:  1 GiB
Relocation Offset is: 36edf000
[MSG]MMC init in usb
aml_priv->desc_buf = 0x0000000033ecf630
aml_priv->desc_buf = 0x0000000033ed1950
SDIO Port B: 0, SDIO Port C: 1
Enter USB burn
Set Addr 50
Get DT cfg
Get DT cfg
Get DT cfg
set CFG

ID[16]
tplcmd[    echo 12345]
12345
[MSG]ret = 0
[info]success
BULKcmd[    low_power]
[info]success

ID[16]
tplcmd[    download mem dtb normal 260373]
[MSG]Down(mem) part(dtb) sz(0x3f915) fmt(normal)
[MSG]totalSlotNum = 0, nextWriteBackSlot 4
[info]success
[MSG]Burn Start...
[MSG]load dt.img to 0x0000000001000000, sz=0x3f915
[MSG]Burn complete
BULKcmd[download get_status]
[info]success
BULKcmd[disk_initial 1]
dtb magic 00088b1f
      Amlogic multi-dtb tool
      GZIP format, decompress...
      Multi dtb detected
      unified board, board id = 7
      Multi dtb tool version: v2 .
      Support 6 dtbs.
        aml_dt soc: gxlx2 platform: p291 variant: 1g
        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: 0
start dts,buffer=0000000001000000,dt_addr=0000000001000000
      Amlogic multi-dtb tool
      Single dtb detected
parts: 17
00:      logo   0000000000800000 1
01:  recovery   0000000001800000 1
02:      misc   0000000000800000 1
03:      dtbo   0000000000800000 1
04:  cri_data   0000000000800000 2
05:     param   0000000001000000 2
06:      boot   0000000001000000 1
07:       rsv   0000000001000000 1
08:  metadata   0000000001000000 1
09:    vbmeta   0000000000200000 1
10:       tee   0000000002000000 1
11:    vendor   0000000014000000 1
12:       odm   0000000008000000 1
13:    system   0000000050000000 1
14:   product   0000000008000000 1
15:     cache   0000000046000000 2
16:      data   ffffffffffffffff 4
emmc/sd response timeout, cmd8, status=0x3ff2800
emmc/sd response timeout, cmd55, status=0x3ff2800
init_part() 293: PART_TYPE_AML
[mmc_init] mmc init success
init_part() 293: PART_TYPE_AML
eMMC/TSD partition table have been checked OK!
check pattern success
switch to partitions #0, OK
mmc1(part 0) is current device
Device: SDIO Port C
Manufacturer ID: d6
OEM: 100
Name: MMC8G
Tran Speed: 52000000
Rd Block Len: 512
MMC version 5.1
High Capacity: Yes
Capacity: 7.3 GiB
mmc clock: 40000000
Bus Width: 8-bit
[store]amlmmc erase 1emmckey_is_protected : protect
 start = 0,end = 57343


Caution! Your devices Erase group is 0x400
The erase range would be change to 0x36000~0xe8ffff

start = 221184,end = 15269886
[MSG]usb producing env_relocate
mmc env offset: 0x4d400000
*** Warning - bad CRC, using default environment

Saving Environment to aml-storage...
mmc env offset: 0x4d400000
Writing to MMC(1)... done
      Amlogic multi-dtb tool
      Single dtb detected
[info]success

ID[16]
tplcmd[download store _aml_dtb normal 260373]
[MSG]Down(store) part(_aml_dtb) sz(0x3f915) fmt(normal)
[MSG]totalSlotNum = 0, nextWriteBackSlot 4
[info]success
[MSG]Burn Start...
[MSG]optimus_download_dtb_image:dataSzReceived=0x3f915
start erase dtb......
start = 81920,end = 82943
dev # 1,  , several blocks erased OK
[store]To run cmd[emmc dtb_write 0x0000000007700000 0x40000]
dtb_write()-1147: valid 0
dtb_write()-1167: new stamp 0, checksum 0x34c87323, version 1, magic A~D
dtb magic 00088b1f
      Amlogic multi-dtb tool
      GZIP format, decompress...
      Multi dtb detected
      unified board, board id = 7
      Multi dtb tool version: v2 .
      Support 6 dtbs.
        aml_dt soc: gxlx2 platform: p291 variant: 1g
        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: 0
start dts,buffer=0000000007700000,dt_addr=0000000007700000
dtb magic edfe0dd0
      Amlogic multi-dtb tool
      Single dtb detected
start dts,buffer=0000000007700000,dt_addr=0000000007700000
      Amlogic multi-dtb tool
      Single dtb detected
parts: 17
00:      logo   0000000000800000 1
01:  recovery   0000000001800000 1
02:      misc   0000000000800000 1
03:      dtbo   0000000000800000 1
04:  cri_data   0000000000800000 2
05:     param   0000000001000000 2
06:      boot   0000000001000000 1
07:       rsv   0000000001000000 1
08:  metadata   0000000001000000 1
09:    vbmeta   0000000000200000 1
10:       tee   0000000002000000 1
11:    vendor   0000000014000000 1
12:       odm   0000000008000000 1
13:    system   0000000050000000 1
14:   product   0000000008000000 1
15:     cache   0000000046000000 2
16:      data   ffffffffffffffff 4
init_part() 293: PART_TYPE_AML
partition table success
[MSG]Burn complete
BULKcmd[download get_status]
[info]success
BULKcmd[verify sha1sum 3d67ef32099078f7ecf0e2fb7221213294820ea1]
[store]To run cmd[emmc dtb_read 0x0000000007700000 0x40000]
dtb_read_shortcut()-982: short cut in...
[MSG]VERIFY OK
[info]success

ID[16]
tplcmd[download store boot normal 16777216]
[MSG]flash LOGIC partCap 0x1000000B
[MSG]Down(store) part(boot) sz(0x1000000) fmt(normal)
[MSG]totalSlotNum = 0, nextWriteBackSlot 1
[info]success
[MSG]Burn Start...
[MSG]Burn complete
Downloading %100
BULKcmd[download get_status]
[info]success
BULKcmd[verify sha1sum f0e1af57e6da0eee73e7e7a4959b94ff08d0333f]
[MSG]Verify Start...
[MSG]To verify part boot in fmt normal
[MSG]Verify End
[MSG]VERIFY OK
[info]success

ID[16]
tplcmd[download store dtbo normal 6014209]
[MSG]flash LOGIC partCap 0x800000B
[MSG]Down(store) part(dtbo) sz(0x5bc501) fmt(normal)
[MSG]totalSlotNum = 0, nextWriteBackSlot 1
[info]success
[MSG]Burn Start...
[MSG]Burn complete
BULKcmd[download get_status]
[info]success
BULKcmd[verify sha1sum 987615e068ff696b42411fc40db1911c2c2d96e3]
[MSG]Verify Start...
[MSG]To verify part dtbo in fmt normal
[MSG]Verify End
[MSG]VERIFY OK
[info]success

ID[16]
tplcmd[download store logo normal 1040512]
[MSG]flash LOGIC partCap 0x800000B
[MSG]Down(store) part(logo) sz(0xfe080) fmt(normal)
[MSG]totalSlotNum = 0, nextWriteBackSlot 1
[info]success
[MSG]Burn Start...
[MSG]Burn complete
BULKcmd[download get_status]
[info]success
BULKcmd[verify sha1sum 2542e086bf17e2a1f4157fcad36d6b1a1d288199]
[MSG]Verify Start...
[MSG]To verify part logo in fmt normal
[MSG]Verify End
[MSG]VERIFY OK
[info]success

ID[16]
tplcmd[download store metadata normal 16777216]
[MSG]flash LOGIC partCap 0x1000000B
[MSG]Down(store) part(metadata) sz(0x1000000) fmt(normal)
[MSG]totalSlotNum = 0, nextWriteBackSlot 1
[info]success
[MSG]Burn Start...
[MSG]Burn complete
Downloading %100
BULKcmd[download get_status]
[info]success
BULKcmd[verify sha1sum 37db4351aee2e34988c300d33e5517f7bf5f0c28]
[MSG]Verify Start...
[MSG]To verify part metadata in fmt normal
[MSG]Verify End
[MSG]VERIFY OK
[info]success

ID[16]
tplcmd[download store odm sparse 2605252]
[MSG]flash LOGIC partCap 0x8000000B
[MSG]Down(store) part(odm) sz(0x27c0c4) fmt(sparse)
[MSG]totalSlotNum = 0, nextWriteBackSlot 40
[info]success
[MSG]Burn Start...
[MSG]Burn complete
BULKcmd[download get_status]
[info]success
BULKcmd[verify sha1sum bd0ea3cea6944d8fc2ef7bb80a0a546a1218333b]
[MSG]Verify Start...
[MSG]To verify part odm in fmt sparse
[MSG]Verify End
[MSG]VERIFY OK
[info]success

ID[16]
tplcmd[download store product sparse 33428024]
[MSG]flash LOGIC partCap 0x8000000B
[MSG]Down(store) part(product) sz(0x1fe1238) fmt(sparse)
[MSG]totalSlotNum = 0, nextWriteBackSlot 511
[info]success
[MSG]Burn Start...
[MSG]Burn complete
BULKcmd[download get_status]
[info]success
BULKcmd[verify sha1sum d10ad1ceb1b151071c01a86c64ab20eb838f2b05]
[MSG]Verify Start...
[MSG]To verify part product in fmt sparse
[MSG]Verify End
[MSG]VERIFY OK
[info]success

ID[16]
tplcmd[download store recovery normal 25165824]
[MSG]flash LOGIC partCap 0x1800000B
[MSG]Down(store) part(recovery) sz(0x1800000) fmt(normal)
[MSG]totalSlotNum = 0, nextWriteBackSlot 1
[info]success
[MSG]Burn Start...
[MSG]Burn complete
BULKcmd[download get_status]
[info]success
BULKcmd[verify sha1sum 7896327bb9b3859c8875b554b7e6b1b2873c8b18]
[MSG]Verify Start...
[MSG]To verify part recovery in fmt normal
[MSG]Verify End
[MSG]VERIFY OK
[info]success

ID[16]
tplcmd[download store system sparse 928840504]
[MSG]flash LOGIC partCap 0x50000000B
[MSG]Down(store) part(system) sz(0x375cfb38) fmt(sparse)
[MSG]totalSlotNum = 0, nextWriteBackSlot 1024
[info]success
[MSG]Burn Start...
[MSG]Burn complete
Downloading %100
BULKcmd[download get_status]
[info]success
BULKcmd[verify sha1sum 6fa2d38a4817cc6a1aa7cad11284b55d01233ef5]
[MSG]Verify Start...
[MSG]To verify part system in fmt sparse
[MSG]Verify End
[MSG]VERIFY OK
[info]success

ID[16]
tplcmd[download store vendor sparse 224658568]
[MSG]flash LOGIC partCap 0x14000000B
[MSG]Down(store) part(vendor) sz(0xd640488) fmt(sparse)
[MSG]totalSlotNum = 0, nextWriteBackSlot 1024
[info]success
[MSG]Burn Start...
[MSG]Burn complete
BULKcmd[download get_status]
[info]success
BULKcmd[verify sha1sum e7971cefebd129b3c3ee2e0acf9068be93d95931]
[MSG]Verify Start...
[MSG]To verify part vendor in fmt sparse
[MSG]Verify End
[MSG]VERIFY OK
[info]success

ID[16]
tplcmd[download store bootloader normal 1048576]
[MSG]Down(store) part(bootloader) sz(0x100000) fmt(normal)
[MSG]totalSlotNum = 0, nextWriteBackSlot 16
[info]success
[MSG]Burn Start...
mmc switch to boot0 success
mmc switch to boot1 success
mmc switch to user success
[MSG]align bootloader sz from 0x100000 to 0x100000
[MSG]Burn complete
BULKcmd[download get_status]
[info]success
BULKcmd[verify sha1sum c678a3d30b133f9b01a9a175952f9702d02af9e6]
mmc switch to boot0 success
mmc switch to boot1 success
mmc switch to user success
[MSG]VERIFY OK
[info]success
BULKcmd[save_setting]
## save_setting ##
[MSG]Set upgrade_step to 2
Saving Environment to aml-storage...
mmc env offset: 0x4d400000
Writing to MMC(1)... done
[info]success
BULKcmd[burn_complete 3]
[MSG]Pls un-plug USB line to poweroff
[info]success
  1. 断电,重启进入ATV android9.0 打开开发者模式,保证开启adb调试。
    成功启动ATV android9 0
    系统信息

  2. adb connect 到板子的android系统后,输入 reboot update,进入U盘armbian系统。
    U盘启动armbian成功获取IP

  3. armbian-install 刷入 EMMC,选项 122 (meson-gxl-s905l2-x7-5g.dtb、u-boot-p212.bin)

将armbian刷入EMMC EMMC成功启动armbian

@ophub
Copy link
Owner

ophub commented Sep 23, 2024

好技术,好文档,加精点赞。
把你修改好的安卓系统分享一个下载地址,我转存下你的固件,方便以后有相同设备的朋友使用。

@ophub ophub added documentation Improvements or additions to documentation support This need is supported essence Recommended essence posts new box Research Fills in the Blanks labels Sep 23, 2024
@tinytinycn
Copy link
Author

好技术,好文档,加精点赞。 把你修改好的安卓系统分享一个下载地址,我转存下你的固件,方便以后有相同设备的朋友使用。

好的。

线刷 Tips:

  1. 如果线刷前是原厂固件,进入线刷模式,其实只需要长按 AV音频口后面的 reset 按钮。
  2. 如果线刷后是其他固件(并且无法正常引导进入Android系统),进入线刷模式,是需要短接 4R12 电阻一次,或是需要先保持 4R12 电阻处于短接状态,再插入USB公对公数据线。(怀疑是线刷固件包,如果更新了bootloader分区,是会变更 Uboot 部分的程序执行的,长按reset复位,程序是接收不到响应输入的。)
  3. 如果 U 盘启动 armbian 系统,无法正常引导并进入加载 zImage 阶段。请注意Uboot 在启动阶段是否正确识别到 USB 设备,需要大胆怀疑,是不是需要先断电重启时,长按enter回车,打断uboot启动,进入命令行模式。手动启动USB设备一次,输入命令:usb start 。然后再重启 reboot udpate

@tinytinycn tinytinycn changed the title CM201-1-6 YS S905L3 EMMC成功刷入,但无法获取有线网络IP CM201-1-6 YS S905L3 EMMC成功刷入,~~但无法获取有线网络IP~~,成功获取IP Sep 23, 2024
@tinytinycn tinytinycn changed the title CM201-1-6 YS S905L3 EMMC成功刷入,~~但无法获取有线网络IP~~,成功获取IP CM201-1-6 YS S905L3 EMMC成功刷入,成功获取有线网络IP Sep 23, 2024
@zhangwenboi
Copy link

大佬太强了

@ophub
Copy link
Owner

ophub commented Sep 26, 2024

感谢分享,你的安卓固件我转存到了 https://github.com/ophub/kernel/releases/tag/tools
armbian设备列表里在122也添加了这个设备。

@qfnuzlr
Copy link

qfnuzlr commented Sep 28, 2024

相信,cm201-1 ch也是s905l3的 大佬也能适配安卓9固件吧

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

No branches or pull requests

4 participants