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

X96MaxPlus5 no ethernet using mainline bootloader #857

Closed
shawwwn opened this issue Dec 24, 2022 · 30 comments
Closed

X96MaxPlus5 no ethernet using mainline bootloader #857

shawwwn opened this issue Dec 24, 2022 · 30 comments

Comments

@shawwwn
Copy link

shawwwn commented Dec 24, 2022

Device Information | 设备信息

  • SOC: S905x3
  • Model: X96Max_Plus_5
  • Board identify as X96Max_Plus_5 under Android
  • 2G ram + 16G emmc, 100mbit ethernet via S905x3's rmii phy, WIFI chipset is Amlogic W150S1 (no usable driver currently)
  • Booted with meson-sm1-x96-air.dtb.

Armbian Version | 系统版本

  • Kernel Version: 5.15
  • Release: bullseye

Describe the bug | 问题描述

It seems that ethernet will only work with stock Android bootloader.
The problem is that stock bootloader won't boot linux from emmc (blank screen after splash image, I haven't investigate serial output).
If I flash mainline bootloader to emmc, it will boot from emmc but ethernet will not work.

dd if=x96maxplus-u-boot.bin.sd.bin of="${DEV_EMMC}" conv=fsync bs=1 count=442
dd if=x96maxplus-u-boot.bin.sd.bin of="${DEV_EMMC}" conv=fsync bs=512 skip=1 seek=1

Errors be like:

meson8b-dwmac ff3f0000.ethernet eth0: no phy at addr -1
meson8b-dwmac ff3f0000.ethernet eth0: stmmac_open: Cannot attach to PHY (error: -19)

Is there a way to get ethernet working?
Thanks.

@ophub
Copy link
Owner

ophub commented Dec 24, 2022

When the box is Android.
Can it boot normally when using USB? Wired network working?
meson-sm1-x96-air.dtb

@shawwwn
Copy link
Author

shawwwn commented Dec 24, 2022

Can it boot normally when using USB? Wired network working?

Under Android it can boot with SD card, ethernet is working.

Haven't tried USB boot yet.

@ophub
Copy link
Owner

ophub commented Dec 24, 2022

Restore the box to Android, this will remove the mainline u-boot you wrote

boot from sd and copy u-boot

cd /boot
cp -f u-boot-x96maxplus.bin u-boot.ext
cp -f u-boot-x96maxplus.bin u-boot.emmc
chmod +x u-boot.ext u-boot.emmc
sync && reboot

armbian-install installation option 517

@shawwwn
Copy link
Author

shawwwn commented Dec 24, 2022

Can it boot normally when using USB?

Just tried. Yes.

armbian-install installation option 517

Tried, did not work.

@ophub
Copy link
Owner

ophub commented Dec 24, 2022

try meson-sm1-sei610.dtb

@shawwwn
Copy link
Author

shawwwn commented Dec 24, 2022

try meson-sm1-sei610.dtb

Not working either.

@ophub
Copy link
Owner

ophub commented Dec 24, 2022

Did you assign a value to ${DEV_EMMC} when you executed the dd command? If you directly enter the 2-line dd command, ${DEV_EMMC} is invalid.

The path of if=x96maxplus-u-boot.bin.sd.bin is also wrong

@shawwwn
Copy link
Author

shawwwn commented Dec 24, 2022

Did you assign a value to ...

Sorry, forget to mention. The $DEV_EMMC is just /dev/mmcblk1 or /dev/mmcblk0, depending on the boot medium.

@ophub
Copy link
Owner

ophub commented Dec 24, 2022

Use lsblk to view the name of emmc

dd if="/usr/lib/u-boot/x96maxplus-u-boot.bin.sd.bin" of="/dev/mmcblk2" conv=fsync bs=1 count=444
dd if="/usr/lib/u-boot/x96maxplus-u-boot.bin.sd.bin" of="/dev/mmcblk2" conv=fsync bs=512 skip=1 seek=1

@shawwwn
Copy link
Author

shawwwn commented Dec 24, 2022

The path of if=x96maxplus-u-boot.bin.sd.bin is also wrong

The two commands above are just to showcasing the things I did, sorry if there has been a confusion.
I manually flash the mainline bootloader to the head of the emmc memory.

@shawwwn
Copy link
Author

shawwwn commented Dec 24, 2022

Use lsblk to view the name of emmc

dd if="/usr/lib/u-boot/x96maxplus-u-boot.bin.sd.bin" of="/dev/mmcblk2" conv=fsync bs=1 count=444
dd if="/usr/lib/u-boot/x96maxplus-u-boot.bin.sd.bin" of="/dev/mmcblk2" conv=fsync bs=512 skip=1 seek=1

image

@shawwwn
Copy link
Author

shawwwn commented Dec 24, 2022

Still can't detect ethernet. Below is dmesg output

image

@shawwwn
Copy link
Author

shawwwn commented Dec 24, 2022

Possibly related #812 #503 #380

@shawwwn
Copy link
Author

shawwwn commented Dec 24, 2022

Thank you for the hard work!

Right now I don't have a soldering iron at hand so can't access uart console.
Will investigate tomorrow.

@ophub
Copy link
Owner

ophub commented Dec 24, 2022

/usr/lib/u-boot/mybox-bootloader.img

This is the file of the Android system, which can be dd restored to the original factory boot

@shawwwn
Copy link
Author

shawwwn commented Dec 25, 2022

Some boot logs from serial console.

Successful boot from sd card with android bootloader SM1:BL:511f6b:81ca2f;FEAT:A0F83180:20282000;POC:F;RCY:0;EMMC:0;READ:0;0.0;CHK:0; bl2_stage_init 0x01 bl2_stage_init 0x81 hw id: 0x0000 - pwm id 0x01 bl2_stage_init 0xc1 bl2_stage_init 0x02

L0:00000000
L1:00000703
L2:00008067
L3:15000020
S1:00000000
B2:20282000
B1:a0f83180

TE: 76174

BL2 Built : 15:21:42, Mar 26 2020. g12a g486bc38 - gongwei.chen@droid11-sz

Board ID = 1
Set cpu clk to 24M
Set clk81 to 24M
Use GP1_pll as DSU clk.
DSU clk: 1200 Mhz
CPU clk: 1200 MHz
Set clk81 to 166.6M
eMMC boot @ 0
sw8 s
board id: 1
Load FIP HDR DDR from eMMC, src: 0x00010200, des: 0xfffd0000, size: 0x00004000, part: 0
fw parse done
PIEI prepare done
00000000
emmc switch 1 ok
ddr saved addr:00016000
Load ddr parameter from eMMC, src: 0x02c00000, des: 0xfffd0000, size: 0x00001000, part: 0
00000000
emmc switch 0 ok
fastboot data verify
result: 255
Cfg max: 12, cur: 1. Board id: 255. Force loop cfg
DDR4 probe

LPDDR4_PHY_V_0_1_21-Built : 15:37:51, Mar 26 2020. g12a gf098346 - gongwei.chen@droid11-sz
ddr clk to 1320MHz

dmc_version 0001
Check phy result
INFO : End of initialization
INFO : End of read enable training
INFO : End of fine write leveling
INFO : ERROR : Training has failed!
1D training failed
Cfg max: 12, cur: 2. Board id: 255. Force loop cfg
DDR4 probe
ddr clk to 912MHz

dmc_version 0001
Check phy result
INFO : End of initialization
INFO : End of read enable training
INFO : End of fine write leveling
INFO : ERROR : Training has failed!
1D training failed
Cfg max: 12, cur: 3. Board id: 255. Force loop cfg
DDR3 probe
ddr clk to 792MHz

dmc_version 0001
Check phy result
INFO : End of initialization
INFO : End of read enable training
INFO : End of fine write leveling
INFO : End of read dq deskew training
INFO : End of MPR read delay center optimization
INFO : End of Write leveling coarse delay
INFO : End of write delay center optimization
INFO : End of read delay center optimization
INFO : End of max read latency training
INFO : Training has run successfully!
dwc_ddrphy_apb_wr((0<<20)|(2<<16)|(0<<12)|(0xb0):00e4
1D training succeed
auto size-- 65535DDR cs0 size: 2048MB
DDR cs1 size: 0MB
DMC_DDR_CTRL: 0000002cDDR size: 2048MB
cs0 DataBus test pass
cs0 AddrBus test pass

non-sec scramble use zero key
ddr scramble enabled

100bdlr_step_size ps== 407
result report
boot times 0Enable ddr reg access
00000000
emmc switch 3 ok
Authentication key not yet programmed
get rpmb counter error 0x00000007
00000000
emmc switch 0 ok
Load FIP HDR from eMMC, src: 0x00010200, des: 0x01700000, size: 0x00004000, part: 0
Load BL3X from eMMC, src: 0x00078200, des: 0x01768000, size: 0x000ed200, part: 0
0.0;M3 CHK:0;cm4_sp_mode 0
[Image: g12a_v1.1.3394-7d43064d5 2020-05-07 15:37:06 gongwei.chen@droid11-sz]
OPS=0x18
ring efuse init
2b 0b 18 00 01 1f 0c 00 00 08 33 36 39 56 34 50
[0.014467 Inits done]
secure task start!
high task start!
low task start!
boot bl31
NOTICE: BL31: v1.3(release):5d6723eeb
NOTICE: BL31: Built : 15:05:59, Mar 17 2020
NOTICE: BL31: G12A normal boot!
NOTICE: BL31: BL33 decompress pass
ERROR: Error initializing runtime service opteed_fast

U-Boot 2015.01 (Apr 08 2021 - 21:26:17)

DRAM: 2 GiB
Relocation Offset is: 76d86000
mmu cfg end: 0x80000000
mmu cfg end: 0x80000000
spi_post_bind(spifc): req_seq = 0
register usb cfg[0][1] = 0000000077e9a068
NAND: get_sys_clk_rate_mtd() 292, clock setting 200!
bus cycle0: 6,timing: 7
NAND device id: 0 ff ff ff ff ff
No NAND device found!!!
nand init failed: -6
get_sys_clk_rate_mtd() 292, clock setting 200!
bus cycle0: 6,timing: 7
NAND device id: 0 ff ff ff ff ff
No NAND device found!!!
nand init failed: -6
MMC: aml_priv->desc_buf = 0x0000000073d76a70
aml_priv->desc_buf = 0x0000000073d78db0
SDIO Port B: 0, SDIO Port C: 1
co-phase 0x3, tx-dly 0, clock 400000
co-phase 0x3, tx-dly 0, clock 400000
co-phase 0x3, tx-dly 0, clock 400000
emmc/sd response timeout, cmd8, cmd->cmdarg=0x1aa, status=0x1ff2800
emmc/sd response timeout, cmd55, cmd->cmdarg=0x0, status=0x1ff2800
co-phase 0x3, tx-dly 0, clock 400000
co-phase 0x3, tx-dly 0, clock 40000000
[set_emmc_calc_fixed_adj][875]find fixed adj_delay=20
init_part() 282: PART_TYPE_DOS
[mmc_init] mmc init success
Amlogic multi-dtb tool
GZIP format, decompress...
Multi dtb detected
Multi dtb tool version: v2 .
Support 4 dtbs.
aml_dt soc: sm1 platform: ac213 variant: 2g
dtb 0 soc: g12a plat: u212 vari: 2g
dtb 1 soc: g12a plat: u212 vari: 4g
dtb 2 soc: sm1 plat: ac213 vari: 2g
dtb 3 soc: sm1 plat: ac213 vari: 4g
Find match dtb: 2
start dts,buffer=0000000073d7b620,dt_addr=0000000073d7b620
get_partition_from_dts() 92: ret 0
Amlogic multi-dtb tool
Single dtb detected
parts: 1
00: data ffffffffffffffff 4
init_part() 282: PART_TYPE_DOS
eMMC/TSD partition table have been checked OK!
crc32_s:0x1577dad == storage crc_pattern:0x1577dad!!!
crc32_s:0xee152b83 == storage crc_pattern:0xee152b83!!!
crc32_s:0x79f50f07 == storage crc_pattern:0x79f50f07!!!
mmc env offset: 0x7400000
In: serial
Out: serial
Err: serial
reboot_mode=cold_boot
[store]To run cmd[emmc dtb_read 0x1000000 0x40000]
_verify_dtb_checksum()-3476: calc 9c7858ea, store 9c7858ea
_verify_dtb_checksum()-3476: calc 9c7858ea, store 9c7858ea
dtb_read()-3691: total valid 2
update_old_dtb()-3672: do nothing
Amlogic multi-dtb tool
GZIP format, decompress...
Multi dtb detected
Multi dtb tool version: v2 .
Support 4 dtbs.
aml_dt soc: sm1 platform: ac213 variant: 2g
dtb 0 soc: g12a plat: u212 vari: 2g
dtb 1 soc: g12a plat: u212 vari: 4g
dtb 2 soc: sm1 plat: ac213 vari: 2g
dtb 3 soc: sm1 plat: ac213 vari: 4g
Find match dtb: 2
amlkey_init() enter!
[EFUSE_MSG]keynum is 4
vpu: driver version: v20190313
vpu: detect chip type: 11
vpu: clk_level default: 7(666667000Hz), max: 7(666667000Hz)
vpu: clk_level in dts: 7
vpu: vpu_power_on
vpu: set_vpu_clk
vpu: set clk: 666667000Hz, readback: 666666667Hz(0x100)
vpu: set_vpu_clk finish
vpu: vpu_module_init_config
vpp: vpp_init
vpp: vpp osd2 matrix rgb2yuv..............
hdr_func 4, hdr_process_select 0x1
cvbs: cpuid:0x2b
cvbs: find performance_pal config
Net: dwmac.ff3f0000amlkey_init() enter!
amlkey_init() 71: already init!
[EFUSE_MSG]keynum is 4

CONFIG_AVB2: null
Start read misc partition datas!
Cannot find dev.
amlmmc cmd failed

store - STORE sub-system

Usage:
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
read/write dtb, size is optional
store key read/write addr
read/write key, size is optional
store ddr_parameter read/write addr
read/write ddr parameter, size is optional
store mbr addr
update mbr/partition table by dtb
store bootlog
show boot logs

[burnup]Err:store_read_ops,L101:cmd failed, ret=1, [store read misc 0x73d75090 0x0 0x820]
failed to store read misc.
info->magic =
info->version_major = 0
info->version_minor = 0
info->slots[0].priority = 0
info->slots[0].tries_remaining = 0
info->slots[0].successful_boot = 0
info->slots[1].priority = 0
info->slots[1].tries_remaining = 0
info->slots[1].successful_boot = 0
info->crc32 = 0
Magic is incorrect.
boot-info is invalid. Resetting.
save boot-info
info->magic =
info->version_major = 1
info->version_minor = 0
info->slots[0].priority = 15
info->slots[0].tries_remaining = 7
info->slots[0].successful_boot = 0
info->slots[1].priority = 14
info->slots[1].tries_remaining = 7
info->slots[1].successful_boot = 0
info->crc32 = -1075449479
Cannot find dev.
amlmmc cmd failed

store - STORE sub-system

Usage:
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
read/write dtb, size is optional
store key read/write addr
read/write key, size is optional
store ddr_parameter read/write addr
read/write ddr parameter, size is optional
store mbr addr
update mbr/partition table by dtb
store bootlog
show boot logs

[burnup]Err:store_write_ops,L165:cmd [store write misc 0x73d75090 0x0 0x820] failed active slot = 0
wipe_data=successful
wipe_cache=successful
upgrade_step=2
reboot_mode:::: cold_boot
s_version: U-Boot 2015.01
amlkey_init() enter!
amlkey_init() 71: already init!
[EFUSE_MSG]keynum is 4
[KM]Error:f[key_manage_query_size]L515:key[usid] not programed yet
[KM]Error:f[key_manage_query_size]L515:key[deviceid] not programed yet
[KM]Error:f[keymanage_dts_get_key_device]L105:oemkey key name is not exist
[KM]Error:f[_get_km_ops_by_name]L240:key oemkey not know device 4
[KM]Error:f[key_manage_query_exist]L554:There isn't dts cfg for key[oemkey]
[KM]Error:f[key_manage_query_size]L511:Fail in query key exist
hpd_state=0
do_hpd_detect: hdmimode=1080p60hz
do_hpd_detect: colorattribute=444,8bit
Saving Environment to aml-storage...
mmc env offset: 0x7400000
Writing to MMC(1)... done
no sink, fallback to 720p60hz[4]
hdr mode is 0
dv mode is ver:0 len: 0
hdr10+ mode is 0
read hdmichecksum 0x00000000, colorattribute 444,8bit
read hdmimode 1080p60hz, colorspace , colordepth
do_get_parse_edid: autoMode = false, manualMode=16
isYuv4kSink: false, maxTMDSRate=150
do_get_parse_edid: non-yuv4k sink: inColorSpace: HDMI_COLOR_FORMAT_RGB
do_get_parse_edid: default inColorDepth: HDMI_COLOR_DEPTH_24B
TV is same, initial mode is: 576cvbs attr: 444,8bit
dolby_status 0
dolby_status 0
dolby_vision_process: no tv and dv disabled
Saving Environment to aml-storage...
mmc env offset: 0x7400000
Writing to MMC(1)... done
[OSD]load fb addr from dts:/meson-fb
[OSD]load fb addr from dts:/fb
[OSD]set initrd_high: 0x7f800000
[OSD]fb_addr for logo: 0x7f800000
[OSD]load fb addr from dts:/meson-fb
[OSD]load fb addr from dts:/fb
[OSD]fb_addr for logo: 0x7f800000
[OSD]VPP_OFIFO_SIZE:0xfff01fff
[CANVAS]canvas init
[CANVAS]addr=0x7f800000 width=3840, height=2160
Cannot find dev.
amlmmc cmd failed

store - STORE sub-system

Usage:
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
read/write dtb, size is optional
store key read/write addr
read/write key, size is optional
store ddr_parameter read/write addr
read/write ddr parameter, size is optional
store mbr addr
update mbr/partition table by dtb
store bootlog
show boot logs

[burnup]Err:store_read_ops,L101:cmd failed, ret=1, [store read logo 0x1080000 0x0 0x2000]
Err imgread(L563):Fail to read 0x2000B from part[logo] at offset 0
There is no valid bmp file at the given address
[OSD]osd_hw.free_dst_data: 0,719,0,575
[OSD]osd1_update_disp_freescale_enable
vpp: vpp_matrix_update: 2
cvbs_performance_enhancement
cvbs_config_hdmipll_g12a
cvbs_set_vid2_clk
dolby_status 0
dolby_status 0
hdr_packet
vpp: hdr_policy = 0
vpp: Rx hdr_info.hdr_sup_eotf_smpte_st_2084 = 0
s_version: U-Boot 2015.01
amlkey_init() enter!
amlkey_init() 71: already init!
[EFUSE_MSG]keynum is 4
[KM]Error:f[key_manage_query_size]L515:key[usid] not programed yet
[KM]Error:f[key_manage_query_size]L515:key[deviceid] not programed yet
[KM]Error:f[keymanage_dts_get_key_device]L105:oemkey key name is not exist
[KM]Error:f[_get_km_ops_by_name]L240:key oemkey not know device 4
[KM]Error:f[key_manage_query_exist]L554:There isn't dts cfg for key[oemkey]
[KM]Error:f[key_manage_query_size]L511:Fail in query key exist
gpio: pin GPIOAO_3 (gpio 3) value is 1
SARADC channel(2) is 0x3fe.
saradc - saradc sub-system

Usage:
saradc saradc open - open a SARADC channel
saradc close - close the SARADC
saradc getval - get the value in current channel
saradc test - test the SARADC by channel-7
saradc get_in_range - return 0 if current value in the range of current channel

Command: bcb uboot-command
Start read misc partition datas!
Cannot find dev.
amlmmc cmd failed

store - STORE sub-system

Usage:
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
read/write dtb, size is optional
store key read/write addr
read/write key, size is optional
store ddr_parameter read/write addr
read/write ddr parameter, size is optional
store mbr addr
update mbr/partition table by dtb
store bootlog
show boot logs

[burnup]Err:store_read_ops,L101:cmd failed, ret=1, [store read misc 0x73d75080 0x0 0x440]
failed to store read misc.
bcb - bcb

Usage:
bcb
This command will run some commands which saved in misc
partition by mark to decide whether execute command!
Command format:
bcb bcb_mark
Example:
/dev/block/misc partiton is saved some contents:
uboot-command
N/A
setenv aa 11;setenv bb 22;setenv cc 33;saveenv;
So you can execute command: bcb uboot-command
InUsbBurn
wait for phy ready count is 0
noSof
sof timeout, reset usb phy tuning
s_version: U-Boot 2015.01
amlkey_init() enter!
amlkey_init() 71: already init!
[EFUSE_MSG]keynum is 4
[KM]Error:f[key_manage_query_size]L515:key[usid] not programed yet
[KM]Error:f[key_manage_query_size]L515:key[deviceid] not programed yet
[KM]Error:f[keymanage_dts_get_key_device]L105:oemkey key name is not exist
[KM]Error:f[_get_km_ops_by_name]L240:key oemkey not know device 4
[KM]Error:f[key_manage_query_exist]L554:There isn't dts cfg for key[oemkey]
[KM]Error:f[key_manage_query_size]L511:Fail in query key exist
Hit Enter or space or Ctrl+C key to stop autoboot -- : 0
card out
(Re)start USB...
USB0: USB3.0 XHCI init start
Register 3000140 NbrPorts 2
Starting the controller
USB XHCI 1.10
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
746678 bytes read in 23 ms (31 MiB/s)

Starting application at 0x01000000 ...

U-Boot 2021.07-rc3-00183-gd6e1cdad51-dirty (May 31 2021 - 22:33:28 +0800) x96-max-plus

Model: AMedia X96 Max+
SoC: Amlogic Meson SM1 (Unknown) Revision 2b:b (18:2)
DRAM: 2 GiB
MMC: sd@ffe03000: 0, sd@ffe05000: 1, mmc@ffe07000: 2
Loading Environment from nowhere... OK
In: serial
Out: serial
Err: serial
Net: eth0: ethernet@ff3f0000
Hit any key to stop autoboot: 0
starting USB...
Bus usb@ff500000: Register 3000140 NbrPorts 3
Starting the controller
USB XHCI 1.10
scanning bus usb@ff500000 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
unable to select a mode : -110
DMA reset timeout
missing environment variable: pxeuuid
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/01-da-aa-6c-b8-84-4f
DMA reset timeout
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/00000000
DMA reset timeout
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/0000000
DMA reset timeout
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/000000
DMA reset timeout
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/00000
DMA reset timeout
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/0000
DMA reset timeout
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/000
DMA reset timeout
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/00
SM1:BL:511f6b:81ca2f;FEAT:A0F83180:20282000;POC:F;RCY:0;EMMC:0;READ:0;0.0;CHK:0;
bl2_stage_init 0x01
bl2_stage_init 0x81
hw id: 0x0000 - pwm id 0x01
bl2_stage_init 0xc1
bl2_stage_init 0x02

L0:00000000
L1:00000703
L2:00008067
L3:15000020
S1:00000000
B2:20282000
B1:a0f83180

TE: 77903

BL2 Built : 15:21:42, Mar 26 2020. g12a g486bc38 - gongwei.chen@droid11-sz

Board ID = 1
Set cpu clk to 24M
Set clk81 to 24M
Use GP1_pll as DSU clk.
DSU clk: 1200 Mhz
CPU clk: 1200 MHz
Set clk81 to 166.6M
eMMC boot @ 0
sw8 s
board id: 1
Load FIP HDR DDR from eMMC, src: 0x00010200, des: 0xfffd0000, size: 0x00004000, part: 0
fw parse done
PIEI prepare done
00000000
emmc switch 1 ok
ddr saved addr:00016000
Load ddr parameter from eMMC, src: 0x02c00000, des: 0xfffd0000, size: 0x00001000, part: 0
00000000
emmc switch 0 ok
fastboot data verify
result: 255
Cfg max: 12, cur: 1. Board id: 255. Force loop cfg
DDR4 probe

LPDDR4_PHY_V_0_1_21-Built : 15:37:51, Mar 26 2020. g12a gf098346 - gongwei.chen@droid11-sz
ddr clk to 1320MHz

dmc_version 0001
Check phy result
INFO : End of initialization
INFO : End of read enable training
INFO : End of fine write leveling
INFO : ERROR : Training has failed!
1D training failed
Cfg max: 12, cur: 2. Board id: 255. Force loop cfg
DDR4 probe
ddr clk to 912MHz

dmc_version 0001
Check phy result
INFO : End of initialization
INFO : End of read enable training
INFO : End of fine write leveling
INFO : ERROR : Training has failed!
1D training failed
Cfg max: 12, cur: 3. Board id: 255. Force loop cfg
DDR3 probe
ddr clk to 792MHz

dmc_version 0001
Check phy result
INFO : End of initialization
INFO : End of read enable training
INFO : End of fine write leveling
INFO : End of read dq deskew training
INFO : End of MPR read delay center optimization
INFO : End of Write leveling coarse delay
INFO : End of write delay center optimization
INFO : End of read delay center optimization
INFO : End of max read latency training
INFO : Training has run successfully!
dwc_ddrphy_apb_wr((0<<20)|(2<<16)|(0<<12)|(0xb0):00e4
1D training succeed
auto size-- 65535DDR cs0 size: 2048MB
DDR cs1 size: 0MB
DMC_DDR_CTRL: 0000002cDDR size: 2048MB
cs0 DataBus test pass
cs0 AddrBus test pass

non-sec scramble use zero key
ddr scramble enabled

100bdlr_step_size ps== 412
result report
boot times 0Enable ddr reg access
00000000
emmc switch 3 ok
Authentication key not yet programmed
get rpmb counter error 0x00000007
00000000
emmc switch 0 ok
Load FIP HDR from eMMC, src: 0x00010200, des: 0x01700000, size: 0x00004000, part: 0
Load BL3X from eMMC, src: 0x00078200, des: 0x01768000, size: 0x000ed200, part: 0
0.0;M3 CHK:0;cm4_sp_mode 0
[Image: g12a_v1.1.3394-7d43064d5 2020-05-07 15:37:06 gongwei.chen@droid11-sz]
OPS=0x18
ring efuse init
2b 0b 18 00 01 1f 0c 00 00 08 33 36 39 56 34 50
[0.014466 Inits done]
secure task start!
high task start!
low task start!
boot bl31
NOTICE: BL31: v1.3(release):5d6723eeb
NOTICE: BL31: Built : 15:05:59, Mar 17 2020
NOTICE: BL31: G12A normal boot!
NOTICE: BL31: BL33 decompress pass
ERROR: Error initializing runtime service opteed_fast

U-Boot 2015.01 (Apr 08 2021 - 21:26:17)

DRAM: 2 GiB
Relocation Offset is: 76d86000
mmu cfg end: 0x80000000
mmu cfg end: 0x80000000
spi_post_bind(spifc): req_seq = 0
register usb cfg[0][1] = 0000000077e9a068
NAND: get_sys_clk_rate_mtd() 292, clock setting 200!
bus cycle0: 6,timing: 7
NAND device id: 0 ff ff ff ff ff
No NAND device found!!!
nand init failed: -6
get_sys_clk_rate_mtd() 292, clock setting 200!
bus cycle0: 6,timing: 7
NAND device id: 0 ff ff ff ff ff
No NAND device found!!!
nand init failed: -6
MMC: aml_priv->desc_buf = 0x0000000073d76a70
aml_priv->desc_buf = 0x0000000073d78db0
SDIO Port B: 0, SDIO Port C: 1
co-phase 0x3, tx-dly 0, clock 400000
co-phase 0x3, tx-dly 0, clock 400000
co-phase 0x3, tx-dly 0, clock 400000
emmc/sd response timeout, cmd8, cmd->cmdarg=0x1aa, status=0x1ff2800
emmc/sd response timeout, cmd55, cmd->cmdarg=0x0, status=0x1ff2800
co-phase 0x3, tx-dly 0, clock 400000
co-phase 0x3, tx-dly 0, clock 40000000
[set_emmc_calc_fixed_adj][875]find fixed adj_delay=20
init_part() 282: PART_TYPE_DOS
[mmc_init] mmc init success
Amlogic multi-dtb tool
GZIP format, decompress...
Multi dtb detected
Multi dtb tool version: v2 .
Support 4 dtbs.
aml_dt soc: sm1 platform: ac213 variant: 2g
dtb 0 soc: g12a plat: u212 vari: 2g
dtb 1 soc: g12a plat: u212 vari: 4g
dtb 2 soc: sm1 plat: ac213 vari: 2g
dtb 3 soc: sm1 plat: ac213 vari: 4g
Find match dtb: 2
start dts,buffer=0000000073d7b620,dt_addr=0000000073d7b620
get_partition_from_dts() 92: ret 0
Amlogic multi-dtb tool
Single dtb detected
parts: 1
00: data ffffffffffffffff 4
init_part() 282: PART_TYPE_DOS
eMMC/TSD partition table have been checked OK!
crc32_s:0x1577dad == storage crc_pattern:0x1577dad!!!
crc32_s:0xee152b83 == storage crc_pattern:0xee152b83!!!
crc32_s:0x79f50f07 == storage crc_pattern:0x79f50f07!!!
mmc env offset: 0x7400000
In: serial
Out: serial
Err: serial
reboot_mode=cold_boot
[store]To run cmd[emmc dtb_read 0x1000000 0x40000]
_verify_dtb_checksum()-3476: calc 9c7858ea, store 9c7858ea
_verify_dtb_checksum()-3476: calc 9c7858ea, store 9c7858ea
dtb_read()-3691: total valid 2
update_old_dtb()-3672: do nothing
Amlogic multi-dtb tool
GZIP format, decompress...
Multi dtb detected
Multi dtb tool version: v2 .
Support 4 dtbs.
aml_dt soc: sm1 platform: ac213 variant: 2g
dtb 0 soc: g12a plat: u212 vari: 2g
dtb 1 soc: g12a plat: u212 vari: 4g
dtb 2 soc: sm1 plat: ac213 vari: 2g
dtb 3 soc: sm1 plat: ac213 vari: 4g
Find match dtb: 2
amlkey_init() enter!
[EFUSE_MSG]keynum is 4
vpu: driver version: v20190313
vpu: detect chip type: 11
vpu: clk_level default: 7(666667000Hz), max: 7(666667000Hz)
vpu: clk_level in dts: 7
vpu: vpu_power_on
vpu: set_vpu_clk
vpu: set clk: 666667000Hz, readback: 666666667Hz(0x100)
vpu: set_vpu_clk finish
vpu: vpu_module_init_config
vpp: vpp_init
vpp: vpp osd2 matrix rgb2yuv..............
hdr_func 4, hdr_process_select 0x1
cvbs: cpuid:0x2b
cvbs: find performance_pal config
Net: dwmac.ff3f0000amlkey_init() enter!
amlkey_init() 71: already init!
[EFUSE_MSG]keynum is 4

CONFIG_AVB2: null
Start read misc partition datas!
Cannot find dev.
amlmmc cmd failed

store - STORE sub-system

Usage:
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
read/write dtb, size is optional
store key read/write addr
read/write key, size is optional
store ddr_parameter read/write addr
read/write ddr parameter, size is optional
store mbr addr
update mbr/partition table by dtb
store bootlog
show boot logs

[burnup]Err:store_read_ops,L101:cmd failed, ret=1, [store read misc 0x73d75090 0x0 0x820]
failed to store read misc.
info->magic =
info->version_major = 0
info->version_minor = 0
info->slots[0].priority = 0
info->slots[0].tries_remaining = 0
info->slots[0].successful_boot = 0
info->slots[1].priority = 0
info->slots[1].tries_remaining = 0
info->slots[1].successful_boot = 0
info->crc32 = 0
Magic is incorrect.
boot-info is invalid. Resetting.
save boot-info
info->magic =
info->version_major = 1
info->version_minor = 0
info->slots[0].priority = 15
info->slots[0].tries_remaining = 7
info->slots[0].successful_boot = 0
info->slots[1].priority = 14
info->slots[1].tries_remaining = 7
info->slots[1].successful_boot = 0
info->crc32 = -1075449479
Cannot find dev.
amlmmc cmd failed

store - STORE sub-system

Usage:
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
read/write dtb, size is optional
store key read/write addr
read/write key, size is optional
store ddr_parameter read/write addr
read/write ddr parameter, size is optional
store mbr addr
update mbr/partition table by dtb
store bootlog
show boot logs

[burnup]Err:store_write_ops,L165:cmd [store write misc 0x73d75090 0x0 0x820] failed active slot = 0
wipe_data=successful
wipe_cache=successful
upgrade_step=2
reboot_mode:::: cold_boot
s_version: U-Boot 2015.01
amlkey_init() enter!
amlkey_init() 71: already init!
[EFUSE_MSG]keynum is 4
[KM]Error:f[key_manage_query_size]L515:key[usid] not programed yet
[KM]Error:f[key_manage_query_size]L515:key[deviceid] not programed yet
[KM]Error:f[keymanage_dts_get_key_device]L105:oemkey key name is not exist
[KM]Error:f[_get_km_ops_by_name]L240:key oemkey not know device 4
[KM]Error:f[key_manage_query_exist]L554:There isn't dts cfg for key[oemkey]
[KM]Error:f[key_manage_query_size]L511:Fail in query key exist
hpd_state=0
do_hpd_detect: hdmimode=1080p60hz
do_hpd_detect: colorattribute=444,8bit
Saving Environment to aml-storage...
mmc env offset: 0x7400000
Writing to MMC(1)... done
no sink, fallback to 720p60hz[4]
hdr mode is 0
dv mode is ver:0 len: 0
hdr10+ mode is 0
read hdmichecksum 0x00000000, colorattribute 444,8bit
read hdmimode 1080p60hz, colorspace , colordepth
do_get_parse_edid: autoMode = false, manualMode=16
isYuv4kSink: false, maxTMDSRate=150
do_get_parse_edid: non-yuv4k sink: inColorSpace: HDMI_COLOR_FORMAT_RGB
do_get_parse_edid: default inColorDepth: HDMI_COLOR_DEPTH_24B
TV is same, initial mode is: 576cvbs attr: 444,8bit
dolby_status 0
dolby_status 0
dolby_vision_process: no tv and dv disabled
Saving Environment to aml-storage...
mmc env offset: 0x7400000
Writing to MMC(1)... done
[OSD]load fb addr from dts:/meson-fb
[OSD]load fb addr from dts:/fb
[OSD]set initrd_high: 0x7f800000
[OSD]fb_addr for logo: 0x7f800000
[OSD]load fb addr from dts:/meson-fb
[OSD]load fb addr from dts:/fb
[OSD]fb_addr for logo: 0x7f800000
[OSD]VPP_OFIFO_SIZE:0xfff01fff
[CANVAS]canvas init
[CANVAS]addr=0x7f800000 width=3840, height=2160
Cannot find dev.
amlmmc cmd failed

store - STORE sub-system

Usage:
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
read/write dtb, size is optional
store key read/write addr
read/write key, size is optional
store ddr_parameter read/write addr
read/write ddr parameter, size is optional
store mbr addr
update mbr/partition table by dtb
store bootlog
show boot logs

[burnup]Err:store_read_ops,L101:cmd failed, ret=1, [store read logo 0x1080000 0x0 0x2000]
Err imgread(L563):Fail to read 0x2000B from part[logo] at offset 0
There is no valid bmp file at the given address
[OSD]osd_hw.free_dst_data: 0,719,0,575
[OSD]osd1_update_disp_freescale_enable
vpp: vpp_matrix_update: 2
cvbs_performance_enhancement
cvbs_config_hdmipll_g12a
cvbs_set_vid2_clk
dolby_status 0
dolby_status 0
hdr_packet
vpp: hdr_policy = 0
vpp: Rx hdr_info.hdr_sup_eotf_smpte_st_2084 = 0
s_version: U-Boot 2015.01
amlkey_init() enter!
amlkey_init() 71: already init!
[EFUSE_MSG]keynum is 4
[KM]Error:f[key_manage_query_size]L515:key[usid] not programed yet
[KM]Error:f[key_manage_query_size]L515:key[deviceid] not programed yet
[KM]Error:f[keymanage_dts_get_key_device]L105:oemkey key name is not exist
[KM]Error:f[_get_km_ops_by_name]L240:key oemkey not know device 4
[KM]Error:f[key_manage_query_exist]L554:There isn't dts cfg for key[oemkey]
[KM]Error:f[key_manage_query_size]L511:Fail in query key exist
gpio: pin GPIOAO_3 (gpio 3) value is 1
SARADC channel(2) is 0x3ff.
saradc - saradc sub-system

Usage:
saradc saradc open - open a SARADC channel
saradc close - close the SARADC
saradc getval - get the value in current channel
saradc test - test the SARADC by channel-7
saradc get_in_range - return 0 if current value in the range of current channel

Command: bcb uboot-command
Start read misc partition datas!
Cannot find dev.
amlmmc cmd failed

store - STORE sub-system

Usage:
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
read/write dtb, size is optional
store key read/write addr
read/write key, size is optional
store ddr_parameter read/write addr
read/write ddr parameter, size is optional
store mbr addr
update mbr/partition table by dtb
store bootlog
show boot logs

[burnup]Err:store_read_ops,L101:cmd failed, ret=1, [store read misc 0x73d75080 0x0 0x440]
failed to store read misc.
bcb - bcb

Usage:
bcb
This command will run some commands which saved in misc
partition by mark to decide whether execute command!
Command format:
bcb bcb_mark
Example:
/dev/block/misc partiton is saved some contents:
uboot-command
N/A
setenv aa 11;setenv bb 22;setenv cc 33;saveenv;
So you can execute command: bcb uboot-command
InUsbBurn
wait for phy ready count is 0
noSof
sof timeout, reset usb phy tuning
s_version: U-Boot 2015.01
amlkey_init() enter!
amlkey_init() 71: already init!
[EFUSE_MSG]keynum is 4
[KM]Error:f[key_manage_query_size]L515:key[usid] not programed yet
[KM]Error:f[key_manage_query_size]L515:key[deviceid] not programed yet
[KM]Error:f[keymanage_dts_get_key_device]L105:oemkey key name is not exist
[KM]Error:f[_get_km_ops_by_name]L240:key oemkey not know device 4
[KM]Error:f[key_manage_query_exist]L554:There isn't dts cfg for key[oemkey]
[KM]Error:f[key_manage_query_size]L511:Fail in query key exist
Hit Enter or space or Ctrl+C key to stop autoboot -- : 0
card in
co-phase 0x2, tx-dly 0, clock 400000
co-phase 0x2, tx-dly 0, clock 400000
co-phase 0x2, tx-dly 0, clock 400000
co-phase 0x2, tx-dly 0, clock 400000
co-phase 0x2, tx-dly 0, clock 40000000
init_part() 282: PART_TYPE_DOS
[mmc_init] mmc init success
Device: SDIO Port B
Manufacturer ID: ad
OEM: 4c53
Name: USD00
Tran Speed: 50000000
Rd Block Len: 512
SD version 3.0
High Capacity: Yes
Capacity: (0xebbe00000 Bytes) 58.9 GiB
mmc clock: 40000000
Bus Width: 4-bit
reading s905_autoscript
1654 bytes read in 4 ms (403.3 KiB/s)

Executing script at 01020000

start amlogic old u-boot

Error: "bootfromsd" not defined

reading boot_android
** Unable to read file boot_android **
** Bad device usb 0 **
reading u-boot.ext
** Unable to read file u-boot.ext **
** Bad device usb 0 **
reading uEnv.txt
353 bytes read in 4 ms (85.9 KiB/s)
mac=91:1e:c3:23:71:33
reading /zImage
25401856 bytes read in 1412 ms (17.2 MiB/s)
reading /uInitrd
8197337 bytes read in 468 ms (16.7 MiB/s)
reading /dtb/amlogic/meson-sm1-sei610.dtb
74046 bytes read in 17 ms (4.2 MiB/s)

Error: "aadmac" not defined

libfdt fdt_path_offset() returned FDT_ERR_NOTFOUND
[rsvmem] fdt get prop fail.

Loading init Ramdisk from Legacy Image at 13000000 ...

Image Name: uInitrd
Image Type: AArch64 Linux RAMDisk Image (gzip compressed)
Data Size: 8197273 Bytes = 7.8 MiB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
[store]Is good fdt check header, no need decrypt!
active_slot is normal
get partition info failed !!
amlmmc - AMLMMC sub system

Usage:
amlmmc read <partition_name> ram_addr addr_byte# cnt_byte
amlmmc write <partition_name> ram_addr addr_byte# cnt_byte
amlmmc erase <partition_name> addr_byte# cnt_byte
amlmmc erase <partition_name>/
amlmmc rescan <device_num>
amlmmc part <device_num> - show partition infomation of mmc
amlmmc list - lists available devices
amlmmc env - display env partition offset
amlmmc switch <device_num> - part name : boot0, boot1, user
amlmmc status <device_num> - read sd/emmc device status
amlmmc ext_csd <device_num> - read sd/emmc device EXT_CSD [byte]
amlmmc ext_csd <device_num> - write sd/emmc device EXT_CSD [byte] value
amlmmc response <device_num> - read sd/emmc last command response
amlmmc controller <device_num> - read sd/emmc controller register
amlmmc write_protect <partition_name> <write_protect_type>
- set write protect on partition through power_on or temporary
amlmmc write_protect <addr_base16> <cnt_base10> <write_protect_type>
- set write protect on specified address through power_on or temporary
amlmmc send_wp_status <partition_name> send protect status of partition
amlmmc send_wp_status <addr_base16> <cnt_base10> send protect status on specified address
amlmmc send_wp_type <partition_name> send protect type of partition
amlmmc send_wp_type <addr_base16> <cnt_base10> send protect type on specified address
amlmmc clear_wp <partition_name> clear write protect of partition
amlmmc clear_wp <addr_base16> <cnt_base10> clear write protect on specified addresst
amlmmc ds <dev_num> set driver strength
amlmmc key - disprotect key partition

amlmmc cmd failed
store - STORE sub-system

Usage:
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
read/write dtb, size is optional
store key read/write addr
read/write key, size is optional
store ddr_parameter read/write addr
read/write ddr parameter, size is optional
store mbr addr
update mbr/partition table by dtb
store bootlog
show boot logs

No dtbo patitions found
load dtb from 0x1000000 ......
Amlogic multi-dtb tool
Single dtb detected

Flattened Device Tree blob at 01000000

Booting using the fdt blob at 0x1000000
No valid dtbo image found
libfdt fdt_path_offset() returned FDT_ERR_NOTFOUND
[rsvmem] fdt get prop fail.
Loading Ramdisk to 735a2000, end 73d73499 ... OK
Loading Device Tree to 000000001ffea000, end 000000001ffff13d ... OK
fdt_fixup_memory_banks, reg:000000001fff5dc4
DTS already have 'reg' property

Starting kernel ...

uboot time: 5929381 us
[ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x411fd050]
[ 0.000000] Linux version 5.15.84-flippy-80+o (root@univm25) (Ubuntu clang version 14.0.0-1ubuntu1, Ubuntu LLD 14.0.0) #198 SMP PREEMPT Wed Dec 21 14:40:30 CST 2022
[ 0.000000] Machine model: SEI Robotics SEI610
[ 0.000000] efi: UEFI not found.

Failed boot from emmc with android bootloader SM1:BL:511f6b:81ca2f;FEAT:A0F83180:20282000;POC:F;RCY:0;EMMC:0;READ:0;0.0;CHK:0; bl2_stage_init 0x01 bl2_stage_init 0x81 hw id: 0x0000 - pwm id 0x01 bl2_stage_init 0xc1 bl2_stage_init 0x02

L0:00000000
L1:00000703
L2:00008067
L3:15000020
S1:00000000
B2:20282000
B1:a0f83180

TE: 77544

BL2 Built : 15:21:42, Mar 26 2020. g12a g486bc38 - gongwei.chen@droid11-sz

Board ID = 1
Set cpu clk to 24M
Set clk81 to 24M
Use GP1_pll as DSU clk.
DSU clk: 1200 Mhz
CPU clk: 1200 MHz
Set clk81 to 166.6M
eMMC boot @ 0
sw8 s
board id: 1
Load FIP HDR DDR from eMMC, src: 0x00010200, des: 0xfffd0000, size: 0x00004000, part: 0
fw parse done
PIEI prepare done
00000000
emmc switch 1 ok
ddr saved addr:00016000
Load ddr parameter from eMMC, src: 0x02c00000, des: 0xfffd0000, size: 0x00001000, part: 0
00000000
emmc switch 0 ok
fastboot data verify
result: 255
Cfg max: 12, cur: 1. Board id: 255. Force loop cfg
DDR4 probe

LPDDR4_PHY_V_0_1_21-Built : 15:37:51, Mar 26 2020. g12a gf098346 - gongwei.chen@droid11-sz
ddr clk to 1320MHz

dmc_version 0001
Check phy result
INFO : End of initialization
INFO : End of read enable training
INFO : End of fine write leveling
INFO : ERROR : Training has failed!
1D training failed
Cfg max: 12, cur: 2. Board id: 255. Force loop cfg
DDR4 probe
ddr clk to 912MHz

dmc_version 0001
Check phy result
INFO : End of initialization
INFO : End of read enable training
INFO : End of fine write leveling
INFO : ERROR : Training has failed!
1D training failed
Cfg max: 12, cur: 3. Board id: 255. Force loop cfg
DDR3 probe
ddr clk to 792MHz

dmc_version 0001
Check phy result
INFO : End of initialization
INFO : End of read enable training
INFO : End of fine write leveling
INFO : End of read dq deskew training
INFO : End of MPR read delay center optimization
INFO : End of Write leveling coarse delay
INFO : End of write delay center optimization
INFO : End of read delay center optimization
INFO : End of max read latency training
INFO : Training has run successfully!
dwc_ddrphy_apb_wr((0<<20)|(2<<16)|(0<<12)|(0xb0):00e4
1D training succeed
auto size-- 65535DDR cs0 size: 2048MB
DDR cs1 size: 0MB
DMC_DDR_CTRL: 0000002cDDR size: 2048MB
cs0 DataBus test pass
cs0 AddrBus test pass

non-sec scramble use zero key
ddr scramble enabled

100bdlr_step_size ps== 418
result report
boot times 0Enable ddr reg access
00000000
emmc switch 3 ok
Authentication key not yet programmed
get rpmb counter error 0x00000007
00000000
emmc switch 0 ok
Load FIP HDR from eMMC, src: 0x00010200, des: 0x01700000, size: 0x00004000, part: 0
Load BL3X from eMMC, src: 0x00078200, des: 0x01768000, size: 0x000ed200, part: 0
0.0;M3 CHK:0;cm4_sp_mode 0
[Image: g12a_v1.1.3394-7d43064d5 2020-05-07 15:37:06 gongwei.chen@droid11-sz]
OPS=0x18
ring efuse init
2b 0b 18 00 01 1f 0c 00 00 08 33 36 39 56 34 50
[0.014423 Inits done]
secure task start!
high task start!
low task start!
boot bl31
NOTICE: BL31: v1.3(release):5d6723eeb
NOTICE: BL31: Built : 15:05:59, Mar 17 2020
NOTICE: BL31: G12A normal boot!
NOTICE: BL31: BL33 decompress pass
ERROR: Error initializing runtime service opteed_fast

U-Boot 2015.01 (Apr 08 2021 - 21:26:17)

DRAM: 2 GiB
Relocation Offset is: 76d86000
mmu cfg end: 0x80000000
mmu cfg end: 0x80000000
spi_post_bind(spifc): req_seq = 0
register usb cfg[0][1] = 0000000077e9a068
NAND: get_sys_clk_rate_mtd() 292, clock setting 200!
bus cycle0: 6,timing: 7
NAND device id: 0 ff ff ff ff ff
No NAND device found!!!
nand init failed: -6
get_sys_clk_rate_mtd() 292, clock setting 200!
bus cycle0: 6,timing: 7
NAND device id: 0 ff ff ff ff ff
No NAND device found!!!
nand init failed: -6
MMC: aml_priv->desc_buf = 0x0000000073d76a70
aml_priv->desc_buf = 0x0000000073d78db0
SDIO Port B: 0, SDIO Port C: 1
co-phase 0x3, tx-dly 0, clock 400000
co-phase 0x3, tx-dly 0, clock 400000
co-phase 0x3, tx-dly 0, clock 400000
emmc/sd response timeout, cmd8, cmd->cmdarg=0x1aa, status=0x1ff2800
emmc/sd response timeout, cmd55, cmd->cmdarg=0x0, status=0x1ff2800
co-phase 0x3, tx-dly 0, clock 400000
co-phase 0x3, tx-dly 0, clock 40000000
[set_emmc_calc_fixed_adj][875]find fixed adj_delay=20
init_part() 282: PART_TYPE_DOS
[mmc_init] mmc init success
Amlogic multi-dtb tool
GZIP format, decompress...
Multi dtb detected
Multi dtb tool version: v2 .
Support 4 dtbs.
aml_dt soc: sm1 platform: ac213 variant: 2g
dtb 0 soc: g12a plat: u212 vari: 2g
dtb 1 soc: g12a plat: u212 vari: 4g
dtb 2 soc: sm1 plat: ac213 vari: 2g
dtb 3 soc: sm1 plat: ac213 vari: 4g
Find match dtb: 2
start dts,buffer=0000000073d7b620,dt_addr=0000000073d7b620
get_partition_from_dts() 92: ret 0
Amlogic multi-dtb tool
Single dtb detected
parts: 1
00: data ffffffffffffffff 4
init_part() 282: PART_TYPE_DOS
eMMC/TSD partition table have been checked OK!
crc32_s:0x1577dad == storage crc_pattern:0x1577dad!!!
crc32_s:0xee152b83 == storage crc_pattern:0xee152b83!!!
crc32_s:0x79f50f07 == storage crc_pattern:0x79f50f07!!!
mmc env offset: 0x7400000
In: serial
Out: serial
Err: serial
reboot_mode=cold_boot
[store]To run cmd[emmc dtb_read 0x1000000 0x40000]
_verify_dtb_checksum()-3476: calc 9c7858ea, store 9c7858ea
_verify_dtb_checksum()-3476: calc 9c7858ea, store 9c7858ea
dtb_read()-3691: total valid 2
update_old_dtb()-3672: do nothing
Amlogic multi-dtb tool
GZIP format, decompress...
Multi dtb detected
Multi dtb tool version: v2 .
Support 4 dtbs.
aml_dt soc: sm1 platform: ac213 variant: 2g
dtb 0 soc: g12a plat: u212 vari: 2g
dtb 1 soc: g12a plat: u212 vari: 4g
dtb 2 soc: sm1 plat: ac213 vari: 2g
dtb 3 soc: sm1 plat: ac213 vari: 4g
Find match dtb: 2
amlkey_init() enter!
[EFUSE_MSG]keynum is 4
vpu: driver version: v20190313
vpu: detect chip type: 11
vpu: clk_level default: 7(666667000Hz), max: 7(666667000Hz)
vpu: clk_level in dts: 7
vpu: vpu_power_on
vpu: set_vpu_clk
vpu: set clk: 666667000Hz, readback: 666666667Hz(0x100)
vpu: set_vpu_clk finish
vpu: vpu_module_init_config
vpp: vpp_init
vpp: vpp osd2 matrix rgb2yuv..............
hdr_func 4, hdr_process_select 0x1
cvbs: cpuid:0x2b
cvbs: find performance_pal config
Net: dwmac.ff3f0000amlkey_init() enter!
amlkey_init() 71: already init!
[EFUSE_MSG]keynum is 4

CONFIG_AVB2: null
Start read misc partition datas!
Cannot find dev.
amlmmc cmd failed

store - STORE sub-system

Usage:
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
read/write dtb, size is optional
store key read/write addr
read/write key, size is optional
store ddr_parameter read/write addr
read/write ddr parameter, size is optional
store mbr addr
update mbr/partition table by dtb
store bootlog
show boot logs

[burnup]Err:store_read_ops,L101:cmd failed, ret=1, [store read misc 0x73d75090 0x0 0x820]
failed to store read misc.
info->magic =
info->version_major = 0
info->version_minor = 0
info->slots[0].priority = 0
info->slots[0].tries_remaining = 0
info->slots[0].successful_boot = 0
info->slots[1].priority = 0
info->slots[1].tries_remaining = 0
info->slots[1].successful_boot = 0
info->crc32 = 0
Magic is incorrect.
boot-info is invalid. Resetting.
save boot-info
info->magic =
info->version_major = 1
info->version_minor = 0
info->slots[0].priority = 15
info->slots[0].tries_remaining = 7
info->slots[0].successful_boot = 0
info->slots[1].priority = 14
info->slots[1].tries_remaining = 7
info->slots[1].successful_boot = 0
info->crc32 = -1075449479
Cannot find dev.
amlmmc cmd failed

store - STORE sub-system

Usage:
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
read/write dtb, size is optional
store key read/write addr
read/write key, size is optional
store ddr_parameter read/write addr
read/write ddr parameter, size is optional
store mbr addr
update mbr/partition table by dtb
store bootlog
show boot logs

[burnup]Err:store_write_ops,L165:cmd [store write misc 0x73d75090 0x0 0x820] failed active slot = 0
wipe_data=successful
wipe_cache=successful
upgrade_step=2
reboot_mode:::: cold_boot
s_version: U-Boot 2015.01
amlkey_init() enter!
amlkey_init() 71: already init!
[EFUSE_MSG]keynum is 4
[KM]Error:f[key_manage_query_size]L515:key[usid] not programed yet
[KM]Error:f[key_manage_query_size]L515:key[deviceid] not programed yet
[KM]Error:f[keymanage_dts_get_key_device]L105:oemkey key name is not exist
[KM]Error:f[_get_km_ops_by_name]L240:key oemkey not know device 4
[KM]Error:f[key_manage_query_exist]L554:There isn't dts cfg for key[oemkey]
[KM]Error:f[key_manage_query_size]L511:Fail in query key exist
hpd_state=0
do_hpd_detect: hdmimode=1080p60hz
do_hpd_detect: colorattribute=444,8bit
Saving Environment to aml-storage...
mmc env offset: 0x7400000
Writing to MMC(1)... done
no sink, fallback to 720p60hz[4]
hdr mode is 0
dv mode is ver:0 len: 0
hdr10+ mode is 0
read hdmichecksum 0x00000000, colorattribute 444,8bit
read hdmimode 1080p60hz, colorspace , colordepth
do_get_parse_edid: autoMode = false, manualMode=16
isYuv4kSink: false, maxTMDSRate=150
do_get_parse_edid: non-yuv4k sink: inColorSpace: HDMI_COLOR_FORMAT_RGB
do_get_parse_edid: default inColorDepth: HDMI_COLOR_DEPTH_24B
TV is same, initial mode is: 576cvbs attr: 444,8bit
dolby_status 0
dolby_status 0
dolby_vision_process: no tv and dv disabled
Saving Environment to aml-storage...
mmc env offset: 0x7400000
Writing to MMC(1)... done
[OSD]load fb addr from dts:/meson-fb
[OSD]load fb addr from dts:/fb
[OSD]set initrd_high: 0x7f800000
[OSD]fb_addr for logo: 0x7f800000
[OSD]load fb addr from dts:/meson-fb
[OSD]load fb addr from dts:/fb
[OSD]fb_addr for logo: 0x7f800000
[OSD]VPP_OFIFO_SIZE:0xfff01fff
[CANVAS]canvas init
[CANVAS]addr=0x7f800000 width=3840, height=2160
Cannot find dev.
amlmmc cmd failed

store - STORE sub-system

Usage:
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
read/write dtb, size is optional
store key read/write addr
read/write key, size is optional
store ddr_parameter read/write addr
read/write ddr parameter, size is optional
store mbr addr
update mbr/partition table by dtb
store bootlog
show boot logs

[burnup]Err:store_read_ops,L101:cmd failed, ret=1, [store read logo 0x1080000 0x0 0x2000]
Err imgread(L563):Fail to read 0x2000B from part[logo] at offset 0
There is no valid bmp file at the given address
[OSD]osd_hw.free_dst_data: 0,719,0,575
[OSD]osd1_update_disp_freescale_enable
vpp: vpp_matrix_update: 2
cvbs_performance_enhancement
cvbs_config_hdmipll_g12a
cvbs_set_vid2_clk
dolby_status 0
dolby_status 0
hdr_packet
vpp: hdr_policy = 0
vpp: Rx hdr_info.hdr_sup_eotf_smpte_st_2084 = 0
s_version: U-Boot 2015.01
amlkey_init() enter!
amlkey_init() 71: already init!
[EFUSE_MSG]keynum is 4
[KM]Error:f[key_manage_query_size]L515:key[usid] not programed yet
[KM]Error:f[key_manage_query_size]L515:key[deviceid] not programed yet
[KM]Error:f[keymanage_dts_get_key_device]L105:oemkey key name is not exist
[KM]Error:f[_get_km_ops_by_name]L240:key oemkey not know device 4
[KM]Error:f[key_manage_query_exist]L554:There isn't dts cfg for key[oemkey]
[KM]Error:f[key_manage_query_size]L511:Fail in query key exist
gpio: pin GPIOAO_3 (gpio 3) value is 1
SARADC channel(2) is 0x3fe.
saradc - saradc sub-system

Usage:
saradc saradc open - open a SARADC channel
saradc close - close the SARADC
saradc getval - get the value in current channel
saradc test - test the SARADC by channel-7
saradc get_in_range - return 0 if current value in the range of current channel

Command: bcb uboot-command
Start read misc partition datas!
Cannot find dev.
amlmmc cmd failed

store - STORE sub-system

Usage:
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
read/write dtb, size is optional
store key read/write addr
read/write key, size is optional
store ddr_parameter read/write addr
read/write ddr parameter, size is optional
store mbr addr
update mbr/partition table by dtb
store bootlog
show boot logs

[burnup]Err:store_read_ops,L101:cmd failed, ret=1, [store read misc 0x73d75080 0x0 0x440]
failed to store read misc.
bcb - bcb

Usage:
bcb
This command will run some commands which saved in misc
partition by mark to decide whether execute command!
Command format:
bcb bcb_mark
Example:
/dev/block/misc partiton is saved some contents:
uboot-command
N/A
setenv aa 11;setenv bb 22;setenv cc 33;saveenv;
So you can execute command: bcb uboot-command
InUsbBurn
wait for phy ready count is 0
noSof
sof timeout, reset usb phy tuning
s_version: U-Boot 2015.01
amlkey_init() enter!
amlkey_init() 71: already init!
[EFUSE_MSG]keynum is 4
[KM]Error:f[key_manage_query_size]L515:key[usid] not programed yet
[KM]Error:f[key_manage_query_size]L515:key[deviceid] not programed yet
[KM]Error:f[keymanage_dts_get_key_device]L105:oemkey key name is not exist
[KM]Error:f[_get_km_ops_by_name]L240:key oemkey not know device 4
[KM]Error:f[key_manage_query_exist]L554:There isn't dts cfg for key[oemkey]
[KM]Error:f[key_manage_query_size]L511:Fail in query key exist
Hit Enter or space or Ctrl+C key to stop autoboot -- : 0
card out
(Re)start USB...
USB0: USB3.0 XHCI init start
Register 3000140 NbrPorts 2
Starting the controller
USB XHCI 1.10
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
746678 bytes read in 23 ms (31 MiB/s)

Starting application at 0x01000000 ...

U-Boot 2021.07-rc3-00183-gd6e1cdad51-dirty (May 31 2021 - 22:33:28 +0800) x96-max-plus

Model: AMedia X96 Max+
SoC: Amlogic Meson SM1 (Unknown) Revision 2b:b (18:2)
DRAM: 2 GiB
MMC: sd@ffe03000: 0, sd@ffe05000: 1, mmc@ffe07000: 2
Loading Environment from nowhere... OK
In: serial
Out: serial
Err: serial
Net: eth0: ethernet@ff3f0000
Hit any key to stop autoboot: 0
starting USB...
Bus usb@ff500000: Register 3000140 NbrPorts 3
Starting the controller
USB XHCI 1.10
scanning bus usb@ff500000 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
unable to select a mode : -110
DMA reset timeout
missing environment variable: pxeuuid
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/01-da-aa-6c-b8-84-4f
DMA reset timeout
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/00000000
DMA reset timeout
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/0000000
DMA reset timeout
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/000000
DMA reset timeout
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/00000
DMA reset timeout
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/0000
DMA reset timeout
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/000
DMA reset timeout
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/00
DMA reset timeout
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/0
DMA reset timeout
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/default-arm-meson-ac2xx
DMA reset timeout
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/default-arm-meson
DMA reset timeout
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/default-arm
DMA reset timeout
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/default
DMA reset timeout
Config file not found
DMA reset timeout
DMA reset timeout
=>
=>
=>

When boot from emmc with Android bootloader as first stage u-boot, second-stage overload u-boot did not seem to be able to access emmc.

@shawwwn
Copy link
Author

shawwwn commented Dec 25, 2022

After manually replacing first stage u-boot with mainline u-boot (#857 (comment)), ethernet stops working.

No ethernet boot from sd card with mainline bootloader SM1:BL:511f6b:81ca2f;FEAT:A0F83180:20282000;POC:F;RCY:0;EMMC:0;READ:0;0.0;CHK:0; bl2_stage_init 0x01 bl2_stage_init 0x81 hw id: 0x0000 - pwm id 0x01 bl2_stage_init 0xc1 bl2_stage_init 0x02

L0:00000000
L1:00000703
L2:00008067
L3:15000020
S1:00000000
B2:20282000
B1:a0f83180

TE: 79913

BL2 Built : 19:17:49, Jul 31 2019. g12a ge9a9000 - zhiguang.ouyang@droid07-sz

Board ID = 1
Set cpu clk to 24M
Set clk81 to 24M
Use GP1_pll as DSU clk.
DSU clk: 1200 Mhz
CPU clk: 1200 MHz
Set clk81 to 166.6M
eMMC boot @ 0
sw8 s
DDR driver_vesion: LPDDR4_PHY_V_0_1_18 build time: Jul 31 2019 19:17:43
board id: 1
Load FIP HDR from eMMC, src: 0x00010200, des: 0xfffd0000, size: 0x00004000, part: 0
fw parse done
Load ddrfw from eMMC, src: 0x00060200, des: 0xfffd0000, size: 0x0000c000, part: 0
Load ddrfw from eMMC, src: 0x00038200, des: 0xfffd0000, size: 0x00004000, part: 0
PIEI prepare done
fastboot data load
00000000
emmc switch 1 ok
ddr saved addr:00016000
Load ddr parameter from eMMC, src: 0x02c00000, des: 0xfffd0000, size: 0x00001000, part: 0
00000000
emmc switch 0 ok
fastboot data verify
verify result: 265
Cfg max: 5, cur: 1. Board id: 255. Force loop cfg
DDR4 probe
ddr clk to 912MHz
Load ddrfw from eMMC, src: 0x00014200, des: 0xfffd0000, size: 0x0000c000, part: 0

dmc_version 0001
Check phy result
INFO : End of initialization
INFO : End of read enable training
INFO : End of fine write leveling
INFO : ERROR : Training has failed!
1D training failed
Cfg max: 5, cur: 2. Board id: 255. Force loop cfg
DDR3 probe
ddr clk to 792MHz
Load ddrfw from eMMC, src: 0x0002c200, des: 0xfffd0000, size: 0x0000c000, part: 0

dmc_version 0001
Check phy result
INFO : End of initialization
INFO : End of read enable training
INFO : End of fine write leveling
INFO : End of read dq deskew training
INFO : End of MPR read delay center optimization
INFO : End of Write leveling coarse delay
INFO : End of write delay center optimization
INFO : End of read delay center optimization
INFO : End of max read latency training
INFO : Training has run successfully!
1D training succeed
aml_ddr_fw_vesion: LPDDR4_PHY_V_0_1_18 build time: Jul 31 2019 19:17:53
auto size-- 65535DDR cs0 size: 2048MB
DDR cs1 size: 0MB
DMC_DDR_CTRL: 0000002cDDR size: 2048MB
cs0 DataBus test pass
cs0 AddrBus test pass

100bdlr_step_size ps== 415
result report
boot times 0Enable ddr reg access
00000000
emmc switch 3 ok
Authentication key not yet programmed
get rpmb counter error 0x00000007
00000000
emmc switch 0 ok
Load FIP HDR from eMMC, src: 0x00010200, des: 0x01700000, size: 0x00004000, part: 0
Load BL3X from eMMC, src: 0x00078200, des: 0x01768000, size: 0x00097600, part: 0
0.0;M3 CHK:0;cm4_sp_mode 0
MVN_1=0x00000000
MVN_2=0x00000000
[Image: g12a_v1.1.3389-92241b5 2019-07-02 17:22:49 luan.yuan@droid15-sz]
OPS=0x81
ring efuse init
2b 0c 81 00 01 1f 0c 00 00 08 33 36 39 56 34 50
[0.017354 Inits done]
secure task start!
high task start!
low task start!
run into bl31
NOTICE: BL31: v1.3(release):4fc40b1
NOTICE: BL31: Built : 15:57:33, May 22 2019
NOTICE: BL31: G12A normal boot!
NOTICE: BL31: BL33 decompress pass
ERROR: Error initializing runtime service opteed_fast

U-Boot 2021.10-rc1-00012-gdad3de6c79 (Aug 10 2021 - 22:54:14 +0800) x96-max-plus

Model: AMedia X96 Max+
SoC: Amlogic Meson SM1 (Unknown) Revision 2b:c (81:2)
DRAM: 2 GiB
MMC: sd@ffe03000: 0, sd@ffe05000: 1, mmc@ffe07000: 2
Loading Environment from nowhere... OK
In: serial
Out: serial
Err: serial
Net: eth0: ethernet@ff3f0000
Hit any key to stop autoboot: 0
starting USB...
Bus usb@ff500000: Register 3000140 NbrPorts 3
Starting the controller
USB XHCI 1.10
scanning bus usb@ff500000 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
switch to partitions #0, OK
mmc1 is current device
Scanning mmc 1:1...
Found U-Boot script /boot.scr
1123 bytes read in 2 ms (547.9 KiB/s)

Executing script at 08000000

Start AMLOGIC mainline U-boot

Error: "bootfromsd" not defined

Couldn't find partition usb 0
Couldn't find partition usb 1
Couldn't find partition usb 2
Couldn't find partition usb 3
353 bytes read in 2 ms (171.9 KiB/s)

Error: "mac" not defined

Error: "eth_mac" not defined

ethaddr=91:1e:c3:23:71:33
25401856 bytes read in 1115 ms (21.7 MiB/s)
8197337 bytes read in 364 ms (21.5 MiB/s)
74046 bytes read in 11 ms (6.4 MiB/s)

Loading init Ramdisk from Legacy Image at 13000000 ...

Image Name: uInitrd
Image Type: AArch64 Linux RAMDisk Image (gzip compressed)
Data Size: 8197273 Bytes = 7.8 MiB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK

Flattened Device Tree blob at 08008000

Booting using the fdt blob at 0x8008000
Loading Ramdisk to 3f82e000, end 3ffff499 ... OK
Loading Device Tree to 000000003f818000, end 000000003f82d13d ... OK

Starting kernel ...

[ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x411fd050]
[ 0.000000] Linux version 5.15.84-flippy-80+o (root@univm25) (Ubuntu clang version 14.0.0-1ubuntu1, Ubuntu LLD 14.0.0) #198 SMP PREEMPT Wed Dec 21 14:40:30 CST 2022
[ 0.000000] Machine model: SEI Robotics SEI610
[ 0.000000] efi: UEFI not found.
[ 0.000000] Reserved memory: created CMA memory pool at 0x000000006fc00000, size 256 MiB
[ 0.000000] OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool

No ethernet boot from emmc with mainline bootloader SM1:BL:511f6b:81ca2f;FEAT:A0F83180:20282000;POC:F;RCY:0;EMMC:0;READ:0;0.0;CHK:0; bl2_stage_init 0x01 bl2_stage_init 0x81 hw id: 0x0000 - pwm id 0x01 bl2_stage_init 0xc1 bl2_stage_init 0x02

L0:00000000
L1:00000703
L2:00008067
L3:15000020
S1:00000000
B2:20282000
B1:a0f83180

TE: 78361

BL2 Built : 19:17:49, Jul 31 2019. g12a ge9a9000 - zhiguang.ouyang@droid07-sz

Board ID = 1
Set cpu clk to 24M
Set clk81 to 24M
Use GP1_pll as DSU clk.
DSU clk: 1200 Mhz
CPU clk: 1200 MHz
Set clk81 to 166.6M
eMMC boot @ 0
sw8 s
DDR driver_vesion: LPDDR4_PHY_V_0_1_18 build time: Jul 31 2019 19:17:43
board id: 1
Load FIP HDR from eMMC, src: 0x00010200, des: 0xfffd0000, size: 0x00004000, part: 0
fw parse done
Load ddrfw from eMMC, src: 0x00060200, des: 0xfffd0000, size: 0x0000c000, part: 0
Load ddrfw from eMMC, src: 0x00038200, des: 0xfffd0000, size: 0x00004000, part: 0
PIEI prepare done
fastboot data load
00000000
emmc switch 1 ok
ddr saved addr:00016000
Load ddr parameter from eMMC, src: 0x02c00000, des: 0xfffd0000, size: 0x00001000, part: 0
00000000
emmc switch 0 ok
fastboot data verify
verify result: 265
Cfg max: 5, cur: 1. Board id: 255. Force loop cfg
DDR4 probe
ddr clk to 912MHz
Load ddrfw from eMMC, src: 0x00014200, des: 0xfffd0000, size: 0x0000c000, part: 0

dmc_version 0001
Check phy result
INFO : End of initialization
INFO : End of read enable training
INFO : End of fine write leveling
INFO : ERROR : Training has failed!
1D training failed
Cfg max: 5, cur: 2. Board id: 255. Force loop cfg
DDR3 probe
ddr clk to 792MHz
Load ddrfw from eMMC, src: 0x0002c200, des: 0xfffd0000, size: 0x0000c000, part: 0

dmc_version 0001
Check phy result
INFO : End of initialization
INFO : End of read enable training
INFO : End of fine write leveling
INFO : End of read dq deskew training
INFO : End of MPR read delay center optimization
INFO : End of Write leveling coarse delay
INFO : End of write delay center optimization
INFO : End of read delay center optimization
INFO : End of max read latency training
INFO : Training has run successfully!
1D training succeed
aml_ddr_fw_vesion: LPDDR4_PHY_V_0_1_18 build time: Jul 31 2019 19:17:53
auto size-- 65535DDR cs0 size: 2048MB
DDR cs1 size: 0MB
DMC_DDR_CTRL: 0000002cDDR size: 2048MB
cs0 DataBus test pass
cs0 AddrBus test pass

100bdlr_step_size ps== 404
result report
boot times 0Enable ddr reg access
00000000
emmc switch 3 ok
Authentication key not yet programmed
get rpmb counter error 0x00000007
00000000
emmc switch 0 ok
Load FIP HDR from eMMC, src: 0x00010200, des: 0x01700000, size: 0x00004000, part: 0
Load BL3X from eMMC, src: 0x00078200, des: 0x01768000, size: 0x00097600, part: 0
0.0;M3 CHK:0;cm4_sp_mode 0
MVN_1=0x00000000
MVN_2=0x00000000
[Image: g12a_v1.1.3389-92241b5 2019-07-02 17:22:49 luan.yuan@droid15-sz]
OPS=0x81
ring efuse init
2b 0c 81 00 01 1f 0c 00 00 08 33 36 39 56 34 50
[0.017354 Inits done]
secure task start!
high task start!
low task start!
run into bl31
NOTICE: BL31: v1.3(release):4fc40b1
NOTICE: BL31: Built : 15:57:33, May 22 2019
NOTICE: BL31: G12A normal boot!
NOTICE: BL31: BL33 decompress pass
ERROR: Error initializing runtime service opteed_fast

U-Boot 2021.10-rc1-00012-gdad3de6c79 (Aug 10 2021 - 22:54:14 +0800) x96-max-plus

Model: AMedia X96 Max+
SoC: Amlogic Meson SM1 (Unknown) Revision 2b:c (81:2)
DRAM: 2 GiB
MMC: sd@ffe03000: 0, sd@ffe05000: 1, mmc@ffe07000: 2
Loading Environment from nowhere... OK
In: serial
Out: serial
Err: serial
Net: eth0: ethernet@ff3f0000
Hit any key to stop autoboot: 0
starting USB...
Bus usb@ff500000: Register 3000140 NbrPorts 3
Starting the controller
USB XHCI 1.10
scanning bus usb@ff500000 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

354 bytes read in 3 ms (115.2 KiB/s)

Error: "mac" not defined

Error: "eth_mac" not defined

ethaddr=91:1e:c3:23:71:33
25401856 bytes read in 566 ms (42.8 MiB/s)
8197337 bytes read in 185 ms (42.3 MiB/s)
71245 bytes read in 3 ms (22.6 MiB/s)

Loading init Ramdisk from Legacy Image at 13000000 ...

Image Name: uInitrd
Image Type: AArch64 Linux RAMDisk Image (gzip compressed)
Data Size: 8197273 Bytes = 7.8 MiB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK

Flattened Device Tree blob at 08008000

Booting using the fdt blob at 0x8008000
Loading Ramdisk to 3f82e000, end 3ffff499 ... OK
Loading Device Tree to 000000003f819000, end 000000003f82d64c ... OK

Starting kernel ...

[ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x411fd050]
[ 0.000000] Linux version 5.15.84-flippy-80+o (root@univm25) (Ubuntu clang version 14.0.0-1ubuntu1, Ubuntu LLD 14.0.0) #198 SMP PREEMPT Wed Dec 21 14:40:30 CST 2022
[ 0.000000] Machine model: Shenzhen Amediatech Technology Co., Ltd X96 Air
[ 0.000000] efi: UEFI not found.

@ophub
Copy link
Owner

ophub commented Dec 25, 2022

Explain that this mainline u-boot is not suitable for you, do not use it. Restore the box to Android.

Reinstall armbian after restoring android, don't use mainline.

armbian-install
choose 517

@shawwwn
Copy link
Author

shawwwn commented Dec 25, 2022

Is there a way to boot from emmc yet still have ethernet?

@ophub
Copy link
Owner

ophub commented Dec 25, 2022

You use 5.15.y to test it. The premise is to restore the Android system.

@shawwwn
Copy link
Author

shawwwn commented Dec 25, 2022

You use 5.15.y to test it. The premise is to restore the Android system.

I tried both 5.15 and 6.0. I don't think the problem is kernel related.

And multiple Android firmwares too.

@shawwwn
Copy link
Author

shawwwn commented Dec 25, 2022

I'm looking into possible customization of the two u-boots.
Is this https://github.com/unifreq/amlogic-boot-fip where the mainline u-boot coming from?
And https://github.com/unifreq/u-boot the overload uboot as well?

@ophub
Copy link
Owner

ophub commented Dec 25, 2022

Can 5.15 and 6.0 use the wired network normally after booting from SD?

@shawwwn
Copy link
Author

shawwwn commented Dec 25, 2022

Here is where I found the Android firmware.
http://legion.name/upload/?dir=Smart-TV-Box/x96-max-Plus-5/

@shawwwn
Copy link
Author

shawwwn commented Dec 25, 2022

partitions

console:/ # cat /proc/ntd

dev: size erasesize name
inand01: 400000 80000 "bootloader"
inand02: 4000000 80000 "reserved"
inand03: 46000000 80000 "cache"
inand04: 800000 80000 "env"
inand05: 800000 80000 "logo"
inand06: 1800000 80000 "recovery"
inand07: 800000 80000 "misc"
inand08: 800000 80000 "dtbo"
inand09: 800000 80000 "cri_data"
inand10: 1000000 80000 "param"
inand11: 1000000 80000 "boot"
inand12: 1000000 80000 "rsv"
inand13: 1000000 80000 "metadata"
inand14: 200000 80000 "vbmeta"
inand15: 2000000 80000 "tee"
inand16: 46000000 80000 "vendor"

console:/ # cat proc/partitions
major minor #blocks name

1 0 4096 ram0
1 1 4096 ram1
1 2 4096 ram2
1 3 4096 ram3
1 4 4096 ram4
1 5 4096 ram5
1 6 4096 ram6
1 7 4096 ram7
1 8 4096 ram8
1 9 4096 ram9
1 10 4096 ram10
1 11 4096 ram11
1 12 4096 ram12
1 13 4096 ram13
1 14 4096 ram14
1 15 4096 ram15
252 0 262144 zram0
179 0 15388672 mmcblk0
179 1 4096 mmcblk0p1
179 2 65536 mmcblk0p2
179 3 1146880 mmcblk0p3
179 4 8192 mmcblk0p4
179 5 8192 mmcblk0p5
179 6 24576 mmcblk0p6
179 7 8192 mmcblk0p7
179 8 8192 mmcblk0p8
179 9 8192 mmcblk0p9
179 10 16384 mmcblk0p10
179 11 16384 mmcblk0p11
179 12 16384 mmcblk0p12
179 13 16384 mmcblk0p13
179 14 2048 mmcblk0p14
179 15 32768 mmcblk0p15
179 16 1146880 mmcblk0p16
179 17 131072 mmcblk0p17
179 18 1310720 mmcblk0p18
179 19 131072 mmcblk0p19
179 20 11106304 mmcblk0p20
179 96 512 mmcblk0rpmb
179 64 4096 mmcblk0boot1
179 32 4096 mmcblk0boot0

130|console:/ # ls -l /dev/block
total 0
brw------- 1 root root 179, 11 2015-01-01 00:00 boot
brw------- 1 root root 179, 1 2015-01-01 00:00 bootloader
brw------- 1 root root 179, 3 2015-01-01 00:00 cache
brw------- 1 root root 179, 9 2015-01-01 00:00 cri_data
brw------- 1 root root 179, 20 2015-01-01 00:00 data
brw------- 1 root root 179, 8 2015-01-01 00:00 dtbo
brw------- 1 root root 179, 4 2015-01-01 00:00 env
brw------- 1 root root 179, 5 2015-01-01 00:00 logo
brw------- 1 root root 7, 0 2015-01-01 00:00 loop0
brw------- 1 root root 7, 8 2015-01-01 00:00 loop1
brw------- 1 root root 7, 16 2015-01-01 00:00 loop2
brw------- 1 root root 7, 24 2015-01-01 00:00 loop3
brw------- 1 root root 7, 32 2015-01-01 00:00 loop4
brw------- 1 root root 7, 40 2015-01-01 00:00 loop5
brw------- 1 root root 7, 48 2015-01-01 00:00 loop6
brw------- 1 root root 7, 56 2015-01-01 00:00 loop7
brw------- 1 root root 9, 0 2015-01-01 00:00 md0
brw------- 1 root root 179, 13 2015-01-01 00:00 metadata
brw------- 1 root root 179, 7 2015-01-01 00:00 misc
brw------- 1 root root 179, 0 2015-01-01 00:00 mmcblk0
brw------- 1 root root 179, 32 2015-01-01 00:00 mmcblk0boot0
brw------- 1 root root 179, 64 2015-01-01 00:00 mmcblk0boot1
brw------- 1 root root 179, 96 2015-01-01 00:00 mmcblk0rpmb
brw------- 1 root root 179, 17 2015-01-01 00:00 odm
brw------- 1 root root 179, 10 2015-01-01 00:00 param
drwxr-xr-x 3 root root 60 2015-01-01 00:00 platform
brw------- 1 root root 179, 19 2015-01-01 00:00 product
brw------- 1 root root 1, 0 2015-01-01 00:00 ram0
brw------- 1 root root 1, 1 2015-01-01 00:00 ram1
brw------- 1 root root 1, 10 2015-01-01 00:00 ram10
brw------- 1 root root 1, 11 2015-01-01 00:00 ram11
brw------- 1 root root 1, 12 2015-01-01 00:00 ram12
brw------- 1 root root 1, 13 2015-01-01 00:00 ram13
brw------- 1 root root 1, 14 2015-01-01 00:00 ram14
brw------- 1 root root 1, 15 2015-01-01 00:00 ram15
brw------- 1 root root 1, 2 2015-01-01 00:00 ram2
brw------- 1 root root 1, 3 2015-01-01 00:00 ram3
brw------- 1 root root 1, 4 2015-01-01 00:00 ram4
brw------- 1 root root 1, 5 2015-01-01 00:00 ram5
brw------- 1 root root 1, 6 2015-01-01 00:00 ram6
brw------- 1 root root 1, 7 2015-01-01 00:00 ram7
brw------- 1 root root 1, 8 2015-01-01 00:00 ram8
brw------- 1 root root 1, 9 2015-01-01 00:00 ram9
brw------- 1 root root 179, 6 2015-01-01 00:00 recovery
brw------- 1 root root 179, 2 2015-01-01 00:00 reserved
brw------- 1 root root 179, 12 2015-01-01 00:00 rsv
brw------- 1 root root 179, 18 2015-01-01 00:00 system
brw------- 1 root root 179, 15 2015-01-01 00:00 tee
brw------- 1 root root 179, 14 2015-01-01 00:00 vbmeta
brw------- 1 root root 179, 16 2015-01-01 00:00 vendor
drwx------ 2 root reserved_disk 40 2015-01-01 00:00 vold
brw------- 1 root root 252, 0 2022-12-25 06:37 zram0

@shawwwn
Copy link
Author

shawwwn commented Dec 25, 2022

Can 5.15 and 6.0 use the wired network normally after booting from SD?

When booting with android bootloader, 5.15 has ethernet, and 6.0 has not.
Earlier I also booted an official armbian 6.1 kernel that has ethernet. Strange.

On the 6.0 kernel, I'm getting meson8b-dwmac ff3f0000.ethernet eth0: no phy at addr -1 regardless of android/mainline bootloader I use.

@janko888
Copy link
Contributor

When booting with android bootloader, 5.15 has ethernet, and 6.0 has not.

Similar to s905l3a, it inherits the configuration problem of meson-g12-common.dtsi of kernel 6.0. It is found that it has been corrected in 6.1。

&ethmac {
/delete-property/ resets;
/delete-property/ reset-names;
};

@ophub ophub closed this as completed Dec 28, 2022
@dzlhum2soaz51o
Copy link

Have you downloaded the dedicated DTB for X96MaxPlus5?

@dzlhum2soaz51o
Copy link

Can X96MaxPlus5 now be written to emmc? Which uboot and dtb should I use?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants