ophub / amlogic-s9xxx-armbian

Support for Armbian in Amlogic, Rockchip and Allwinner boxes. Support a311d, s922x, s905x3, s905x2, s912, s905d, s905x, s905w, s905, s905l, rk3588, rk3568, rk3399, rk3328, h6, etc.
GNU General Public License v2.0
5.92k stars 1.9k forks source link

hk1box,install to emmc use mainline u-boot #796

Closed urenai closed 1 year ago

urenai commented 1 year ago

Device Information | 设备信息

Armbian Version | 系统版本

Describe the bug | 问题描述

1、U盘启动时可以获取到IP地址:192.168.0.120。 2、下面是插上网线 的 log 。

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 (1:2)
DRAM:  3.8 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
Speed: 1000, full duplex
BOOTP broadcast 1
BOOTP broadcast 2
BOOTP broadcast 3
BOOTP broadcast 4
BOOTP broadcast 5
BOOTP broadcast 6
BOOTP broadcast 7
BOOTP broadcast 8
BOOTP broadcast 9
BOOTP broadcast 10
BOOTP broadcast 11
BOOTP broadcast 12
BOOTP broadcast 13
BOOTP broadcast 14
BOOTP broadcast 15
BOOTP broadcast 16
BOOTP broadcast 17

Retry time exceeded; starting again
missing environment variable: pxeuuid
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/01-9e-32-a1-66-2f-92
Speed: 1000, full duplex
*** ERROR: `serverip' not set
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/00000000
Speed: 1000, full duplex
*** ERROR: `serverip' not set
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/0000000
Speed: 1000, full duplex
*** ERROR: `serverip' not set
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/000000
Speed: 1000, full duplex
*** ERROR: `serverip' not set
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/00000
Speed: 1000, full duplex
*** ERROR: `serverip' not set
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/0000
Speed: 1000, full duplex
*** ERROR: `serverip' not set
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/000
Speed: 1000, full duplex
*** ERROR: `serverip' not set
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/00
Speed: 1000, full duplex
*** ERROR: `serverip' not set
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/0
Speed: 1000, full duplex
*** ERROR: `serverip' not set
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/default-arm-meson-ac2xx
Speed: 1000, full duplex
*** ERROR: `serverip' not set
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/default-arm-meson
Speed: 1000, full duplex
*** ERROR: `serverip' not set
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/default-arm
Speed: 1000, full duplex
*** ERROR: `serverip' not set
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/default
Speed: 1000, full duplex
*** ERROR: `serverip' not set
Config file not found
Speed: 1000, full duplex
BOOTP broadcast 1
BOOTP broadcast 2
BOOTP broadcast 3
BOOTP broadcast 4
BOOTP broadcast 5
BOOTP broadcast 6
BOOTP broadcast 7
BOOTP broadcast 8
BOOTP broadcast 9
BOOTP broadcast 10
BOOTP broadcast 11
BOOTP broadcast 12
BOOTP broadcast 13
BOOTP broadcast 14
BOOTP broadcast 15
BOOTP broadcast 16
BOOTP broadcast 17

Retry time exceeded; starting again
Speed: 1000, full duplex
BOOTP broadcast 1
BOOTP broadcast 2
BOOTP broadcast 3
BOOTP broadcast 4
BOOTP broadcast 5
BOOTP broadcast 6
BOOTP broadcast 7
BOOTP broadcast 8
BOOTP broadcast 9
BOOTP broadcast 10
BOOTP broadcast 11
BOOTP broadcast 12
BOOTP broadcast 13
BOOTP broadcast 14
BOOTP broadcast 15
BOOTP broadcast 16
BOOTP broadcast 17

Retry time exceeded; starting again
=>

3、下面是 不插 网线 的 log 。

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 (1:2)
DRAM:  3.8 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
ethernet@ff3f0000 Waiting for PHY auto negotiation to complete......... TIMEOUT !
Could not initialize PHY ethernet@ff3f0000
missing environment variable: pxeuuid
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/01-9e-32-a1-66-2f-92
ethernet@ff3f0000 Waiting for PHY auto negotiation to complete......... TIMEOUT !
Could not initialize PHY ethernet@ff3f0000
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/00000000
ethernet@ff3f0000 Waiting for PHY auto negotiation to complete......... TIMEOUT !
Could not initialize PHY ethernet@ff3f0000
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/0000000
ethernet@ff3f0000 Waiting for PHY auto negotiation to complete......... TIMEOUT !
Could not initialize PHY ethernet@ff3f0000
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/000000
ethernet@ff3f0000 Waiting for PHY auto negotiation to complete......... TIMEOUT !
Could not initialize PHY ethernet@ff3f0000
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/00000
ethernet@ff3f0000 Waiting for PHY auto negotiation to complete......... TIMEOUT !
Could not initialize PHY ethernet@ff3f0000
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/0000
ethernet@ff3f0000 Waiting for PHY auto negotiation to complete......... TIMEOUT !
Could not initialize PHY ethernet@ff3f0000
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/000
ethernet@ff3f0000 Waiting for PHY auto negotiation to complete......... TIMEOUT !
Could not initialize PHY ethernet@ff3f0000
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/00
ethernet@ff3f0000 Waiting for PHY auto negotiation to complete......... TIMEOUT !
Could not initialize PHY ethernet@ff3f0000
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/0
ethernet@ff3f0000 Waiting for PHY auto negotiation to complete......... TIMEOUT !
Could not initialize PHY ethernet@ff3f0000
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/default-arm-meson-ac2xx
ethernet@ff3f0000 Waiting for PHY auto negotiation to complete......... TIMEOUT !
Could not initialize PHY ethernet@ff3f0000
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/default-arm-meson
ethernet@ff3f0000 Waiting for PHY auto negotiation to complete......... TIMEOUT !
Could not initialize PHY ethernet@ff3f0000
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/default-arm
ethernet@ff3f0000 Waiting for PHY auto negotiation to complete......... TIMEOUT !
Could not initialize PHY ethernet@ff3f0000
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/default
ethernet@ff3f0000 Waiting for PHY auto negotiation to complete......... TIMEOUT !
Could not initialize PHY ethernet@ff3f0000
Config file not found
ethernet@ff3f0000 Waiting for PHY auto negotiation to complete......... TIMEOUT !
Could not initialize PHY ethernet@ff3f0000
ethernet@ff3f0000 Waiting for PHY auto negotiation to complete......... TIMEOUT !
Could not initialize PHY ethernet@ff3f0000
=>
ophub commented 1 year ago

你先的不对吧,日志看你选的是x96。选你hk1的序号. 用5.15的试试

urenai commented 1 year ago

Device Information | 设备信息

SOC: [e.g. S095x3] Model [e.g. HK1] Armbian Version | 系统版本

Kernel Version: [e.g. 5.15.82] Release: [e.g. jammy] Describe the bug | 问题描述

uEnv.txt 改 FDT=/dtb/amlogic/meson-sm1-hk1box-vontar-x3.dtb

111 222

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: 0x0001 - pwm id 0x00 bl2_stage_init 0xc0 bl2_stage_init 0x02

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

TE: 125897

BL2 Built : 14:02:05, Nov 23 2020. g12a g966c864 - 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 DDR3 probe

LPDDR4_PHY_V_0_1_22-Built : 14:02:12, Nov 23 2020. g12a g966c864 - gongwei.chen@droid11-sz ddr clk to 672MHz

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: 4096MB DDR cs1 size: 0MB DMC_DDR_CTRL: 0000002dDDR size: 3928MB cs0 DataBus test pass cs0 AddrBus test pass

non-sec scramble use zero key ddr scramble enabled

100bdlr_step_size ps== 440 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: 0x000ee000, part: 0 0.0;M3 CHK:0;cm4_sp_mode 0 [Image: g12a_v1.1.3396-c893a7153 2020-11-11 13:54:29 gongwei.chen@droid11-sz] OPS=0x01 ring efuse init 2b 0b 01 00 01 2e 0b 00 00 14 36 32 36 58 4b 50 [0.014467 Inits done] secure task start! high task start! low task start! boot bl31 NOTICE: BL31: v1.3(release):ec7984eef NOTICE: BL31: Built : 15:24:59, Nov 30 2020 NOTICE: BL31: G12A normal boot! NOTICE: BL31: BL33 decompress pass ERROR: Error initializing runtime service opteed_fast

U-Boot 2015.01 (Aug 24 2022 - 00:59:35)

DRAM: 3.8 GiB Relocation Offset is: d6d85000 mmu cfg end: 0xe0000000 mmu cfg end: 0xe0000000 spi_post_bind(spifc): req_seq = 0 register usb cfg[0][1] = 00000000d7e99628 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 = 0x00000000d3d75a70 aml_priv->desc_buf = 0x00000000d3d77db0 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 Single dtb detected start dts,buffer=00000000d3d7a620,dt_addr=00000000d3d7a620 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 73eaa24e, store 73eaa24e _verify_dtb_checksum()-3476: calc 73eaa24e, store 73eaa24e dtb_read()-3691: total valid 2 update_old_dtb()-3672: do nothing Amlogic multi-dtb tool Single dtb detected 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 clk_path: 0x0 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 : 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 0xd3d74090 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 : 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 0xd3d74090 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=1 do_hpd_detect: hdmimode=2160p60hz do_hpd_detect: colorattribute=420,8bit Edid_MonitorCapable861: ycbcr444=1, ycbcr422=1 HDMI_EDID_BLOCK_TYPE_VENDER: pRXCap->ColorDeepSupport=0x1 sink preferred_mode is 1080p60hz[16] hdr mode is 0 dv mode is ver:0 len: 0 hdr10+ mode is 0 Edid_MonitorCapable861: ycbcr444=1, ycbcr422=1 HDMI_EDID_BLOCK_TYPE_VENDER: pRXCap->ColorDeepSupport=0x1 read hdmichecksum 0x2b210000, colorattribute 420,8bit read hdmimode 2160p60hz, colorspace , colordepth do_get_parse_edid: autoMode = false, manualMode=97 isYuv4kSink: false, maxTMDSRate=145 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: 2160p60hz attr: 420,8bit dolby_status 0 dolby_status 0 dolby_vision_process: hpd: 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 : 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 0x3080000 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,3839,0,2159 [OSD]osd1_update_disp_freescale_enable cvbs: outputmode[2160p60hz] is invalid vpp: vpp_matrix_update: 2 set hdmitx VIC = 97 aml_audio_init config HPLL = 5940000 frac_rate = 1 HPLL: 0x3b3a04f7 HPLL: 0x1b3a04f7 HPLLv1: 0xdb3a04f7 config HPLL done j = 11 vid_clk_div = 1 hdmitx: set enc for VIC: 353 hdmitx phy setting done mode420_half_horizontal_para[2575] rx version is 1.4 or below div=10 hdmtix: set audio hdmi_tx_set: save mode: 2160p60hz, attr: 420,8bit, hdmichecksum: 0x2b210000 Saving Environment to aml-storage... mmc env offset: 0x7400000 Writing to MMC(1)... done dolby_status 0 dolby_status 0 hdr_packet vpp: hdr_policy = 1 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 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 : 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 0xd3d74080 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 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... 2 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 10 ms (81.1 KiB/s)

Executing script at 01020000

reading u-boot.emmc Unable to read file u-boot.emmc reading uEnv.txt 363 bytes read in 4 ms (87.9 KiB/s) reading /zImage 25401856 bytes read in 865 ms (28 MiB/s) reading /uInitrd 8198016 bytes read in 279 ms (28 MiB/s) reading /dtb/amlogic/meson-sm1-hk1box-vontar-x3.dtb 72512 bytes read in 13 ms (5.3 MiB/s) mac=00:e7:00:18:60:90 [rsvmem] get fdtaddr NULL! rsvmem - reserve memory

Usage: rsvmem check - check reserved memory rsvmem dump - dump reserved memory

rsvmem check failed

Loading init Ramdisk from Legacy Image at 13000000 ...

Image Name: uInitrd Image Type: AArch64 Linux RAMDisk Image (gzip compressed) Data Size: 8197952 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 ram_addr addr_byte# cnt_byte amlmmc write ram_addr addr_byte# cnt_byte amlmmc erase addr_byte# cnt_byte amlmmc erase / amlmmc rescan amlmmc part - show partition infomation of mmc amlmmc list - lists available devices amlmmc env - display env partition offset amlmmc switch - part name : boot0, boot1, user amlmmc status - read sd/emmc device status amlmmc ext_csd - read sd/emmc device EXT_CSD [byte] amlmmc ext_csd - write sd/emmc device EXT_CSD [byte] value amlmmc response - read sd/emmc last command response amlmmc controller - read sd/emmc controller register amlmmc write_protect

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 : 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 Host not halted after 16000 microseconds. libfdt fdt_path_offset() returned FDT_ERR_NOTFOUND [rsvmem] fdt get prop fail. Loading Ramdisk to 7f02e000, end 7f7ff740 ... OK Loading Device Tree to 000000001ffeb000, end 000000001ffffb3f ... OK fdt_fixup_memory_banks, reg:000000001fff6aac DTS already have 'reg' property

Starting kernel ...

uboot time: 6179464 us

卡住不动了。。

ophub commented 1 year ago

你在USB里都是正常的吧?只是写入EMMC没法启动? 你盒子先刷回原厂安卓系统,再写入测试。

urenai commented 1 year ago

Device Information | 设备信息

SOC: [e.g. S095x3] Model [e.g. HK1] Armbian Version | 系统版本

Kernel Version: [e.g. 5.15.82] Release: [e.g. jammy] Describe the bug | 问题描述

U盘 启动: uEnv.txt 改 FDT=/dtb/amlogic/meson-sm1-hk1box-vontar-x3.dtb extlinux\extlinux.conf 改 fdt /dtb/amlogic/meson-sm1-hk1box-vontar-x3.dtb(有无此项一样)
没有复制 u-boot-x96maxplus.bin 改 u-boot.ext 下面是缺少u-boot.ext无法启动的LOG 和上面已经安装到emmc有着同样的结果,

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: 0x0001 - pwm id 0x00 bl2_stage_init 0xc0 bl2_stage_init 0x02

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

TE: 181682

BL2 Built : 14:02:05, Nov 23 2020. g12a g966c864 - 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 DDR3 probe

LPDDR4_PHY_V_0_1_22-Built : 14:02:12, Nov 23 2020. g12a g966c864 - gongwei.chen@droid11-sz ddr clk to 672MHz

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: 4096MB DDR cs1 size: 0MB DMC_DDR_CTRL: 0000002dDDR size: 3928MB cs0 DataBus test pass cs0 AddrBus test pass

non-sec scramble use zero key ddr scramble enabled

100bdlr_step_size ps== 442 result report boot times 2Enable 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: 0x000ee000, part: 0 0.0;M3 CHK:0;cm4_sp_mode 0 [Image: g12a_v1.1.3396-c893a7153 2020-11-11 13:54:29 gongwei.chen@droid11-sz] OPS=0x01 ring efuse init 2b 0b 01 00 01 2e 0b 00 00 14 36 32 36 58 4b 50 [0.684907 Inits done] secure task start! high task start! low task start! boot bl31 NOTICE: BL31: v1.3(release):ec7984eef NOTICE: BL31: Built : 15:24:59, Nov 30 2020 NOTICE: BL31: G12A normal boot! NOTICE: BL31: BL33 decompress pass ERROR: Error initializing runtime service opteed_fast

U-Boot 2015.01 (Aug 24 2022 - 00:59:35)

DRAM: 3.8 GiB Relocation Offset is: d6d85000 mmu cfg end: 0xe0000000 mmu cfg end: 0xe0000000 spi_post_bind(spifc): req_seq = 0 register usb cfg[0][1] = 00000000d7e99628 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 = 0x00000000d3d75a70 aml_priv->desc_buf = 0x00000000d3d77db0 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 Single dtb detected start dts,buffer=00000000d3d7a620,dt_addr=00000000d3d7a620 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=normal [store]To run cmd[emmc dtb_read 0x1000000 0x40000] _verify_dtb_checksum()-3476: calc 73eaa24e, store 73eaa24e _verify_dtb_checksum()-3476: calc 73eaa24e, store 73eaa24e dtb_read()-3691: total valid 2 update_old_dtb()-3672: do nothing Amlogic multi-dtb tool Single dtb detected 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 clk_path: 0x0 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 : 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 0xd3d74090 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 : 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 0xd3d74090 0x0 0x820] failed active slot = 0 wipe_data=successful wipe_cache=successful upgrade_step=2 reboot_mode:::: normal 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=1 do_hpd_detect: hdmimode=2160p60hz do_hpd_detect: colorattribute=420,8bit Edid_MonitorCapable861: ycbcr444=1, ycbcr422=1 HDMI_EDID_BLOCK_TYPE_VENDER: pRXCap->ColorDeepSupport=0x1 sink preferred_mode is 1080p60hz[16] hdr mode is 0 dv mode is ver:0 len: 0 hdr10+ mode is 0 Edid_MonitorCapable861: ycbcr444=1, ycbcr422=1 HDMI_EDID_BLOCK_TYPE_VENDER: pRXCap->ColorDeepSupport=0x1 read hdmichecksum 0x2b210000, colorattribute 420,8bit read hdmimode 2160p60hz, colorspace , colordepth do_get_parse_edid: autoMode = false, manualMode=97 isYuv4kSink: false, maxTMDSRate=145 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: 2160p60hz attr: 420,8bit dolby_status 0 dolby_status 0 dolby_vision_process: hpd: 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 : 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 0x3080000 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,3839,0,2159 [OSD]osd1_update_disp_freescale_enable cvbs: outputmode[2160p60hz] is invalid vpp: vpp_matrix_update: 2 set hdmitx VIC = 97 aml_audio_init config HPLL = 5940000 frac_rate = 1 HPLL: 0x3b3a04f7 HPLL: 0x1b3a04f7 HPLLv1: 0xdb3a04f7 config HPLL done j = 11 vid_clk_div = 1 hdmitx: set enc for VIC: 353 hdmitx phy setting done mode420_half_horizontal_para[2575] rx version is 1.4 or below div=10 hdmtix: set audio hdmi_tx_set: save mode: 2160p60hz, attr: 420,8bit, hdmichecksum: 0x2b210000 Saving Environment to aml-storage... mmc env offset: 0x7400000 Writing to MMC(1)... done dolby_status 0 dolby_status 0 hdr_packet vpp: hdr_policy = 1 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 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 : 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 0xd3d74080 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 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... 3 USB Device(s) found scanning usb for storage devices... init_part() 282: PART_TYPE_DOS 1 Storage Device(s) found reading s905_autoscript 1654 bytes read in 52 ms (30.3 KiB/s)

Executing script at 01020000

start amlogic old u-boot

Error: "bootfromsd" not defined

card out Bad device mmc 0 reading boot_android Unable to read file boot_android card out Bad device mmc 0 reading u-boot.ext Unable to read file u-boot.ext card out Bad device mmc 0 start test usb reading uEnv.txt 363 bytes read in 42 ms (7.8 KiB/s) mac=00:e7:00:18:60:90 reading /zImage 25401856 bytes read in 1510 ms (16 MiB/s) reading /uInitrd 8198016 bytes read in 574 ms (13.6 MiB/s) reading /dtb/amlogic/meson-sm1-hk1box-vontar-x3.dtb 72512 bytes read in 83 ms (852.5 KiB/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: 8197952 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 ram_addr addr_byte# cnt_byte amlmmc write ram_addr addr_byte# cnt_byte amlmmc erase addr_byte# cnt_byte amlmmc erase / amlmmc rescan amlmmc part - show partition infomation of mmc amlmmc list - lists available devices amlmmc env - display env partition offset amlmmc switch - part name : boot0, boot1, user amlmmc status - read sd/emmc device status amlmmc ext_csd - read sd/emmc device EXT_CSD [byte] amlmmc ext_csd - write sd/emmc device EXT_CSD [byte] value amlmmc response - read sd/emmc last command response amlmmc controller - read sd/emmc controller register amlmmc write_protect

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 : 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 7f02e000, end 7f7ff740 ... OK Loading Device Tree to 000000001ffeb000, end 000000001ffffb3f ... OK fdt_fixup_memory_banks, reg:000000001fff6aac DTS already have 'reg' property

Starting kernel ...

uboot time: 8889255 us

urenai commented 1 year ago

好的,O 大,现在马上刷回。

urenai commented 1 year ago

Device Information | 设备信息

SOC: [e.g. S095x3] Model [e.g. HK1] Armbian Version | 系统版本

Kernel Version: [e.g. 5.15.82] Release: [e.g. jammy] Describe the bug | 问题描述

恢复原厂系统,开机一次后关机。

U盘启动,执行 armbian-install

开机还是卡在:Starting kernel ...

uboot time: 5438346 us

下面是log

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: 0x0001 - pwm id 0x00 bl2_stage_init 0xc0 bl2_stage_init 0x02

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

TE: 126945

BL2 Built : 14:02:05, Nov 23 2020. g12a g966c864 - 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 DDR3 probe

LPDDR4_PHY_V_0_1_22-Built : 14:02:12, Nov 23 2020. g12a g966c864 - gongwei.chen@droid11-sz ddr clk to 672MHz

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: 4096MB DDR cs1 size: 0MB DMC_DDR_CTRL: 0000002dDDR size: 3928MB cs0 DataBus test pass cs0 AddrBus test pass

non-sec scramble use zero key ddr scramble enabled

100bdlr_step_size ps== 435 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: 0x000ee000, part: 0 0.0;M3 CHK:0;cm4_sp_mode 0 [Image: g12a_v1.1.3396-c893a7153 2020-11-11 13:54:29 gongwei.chen@droid11-sz] OPS=0x01 ring efuse init 2b 0b 01 00 01 2e 0b 00 00 14 36 32 36 58 4b 50 [0.014457 Inits done] secure task start! high task start! low task start! boot bl31 NOTICE: BL31: v1.3(release):ec7984eef NOTICE: BL31: Built : 15:24:59, Nov 30 2020 NOTICE: BL31: G12A normal boot! NOTICE: BL31: BL33 decompress pass ERROR: Error initializing runtime service opteed_fast

U-Boot 2015.01 (Aug 24 2022 - 00:59:35)

DRAM: 3.8 GiB Relocation Offset is: d6d85000 mmu cfg end: 0xe0000000 mmu cfg end: 0xe0000000 spi_post_bind(spifc): req_seq = 0 register usb cfg[0][1] = 00000000d7e99628 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 = 0x00000000d3d75a70 aml_priv->desc_buf = 0x00000000d3d77db0 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 Single dtb detected start dts,buffer=00000000d3d7a620,dt_addr=00000000d3d7a620 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 73ead908, store 73ead908 _verify_dtb_checksum()-3476: calc 73ead908, store 73ead908 dtb_read()-3691: total valid 2 update_old_dtb()-3672: do nothing Amlogic multi-dtb tool Single dtb detected 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 clk_path: 0x0 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 : 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 0xd3d74090 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 : 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 0xd3d74090 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=1 do_hpd_detect: hdmimode=1080p60hz do_hpd_detect: colorattribute=444,8bit Edid_MonitorCapable861: ycbcr444=1, ycbcr422=1 HDMI_EDID_BLOCK_TYPE_VENDER: pRXCap->ColorDeepSupport=0x1 sink preferred_mode is 1080p60hz[16] hdr mode is 0 dv mode is ver:0 len: 0 hdr10+ mode is 0 Edid_MonitorCapable861: ycbcr444=1, ycbcr422=1 HDMI_EDID_BLOCK_TYPE_VENDER: pRXCap->ColorDeepSupport=0x1 read hdmichecksum 0x2b210000, colorattribute 444,8bit read hdmimode 1080p60hz, colorspace , colordepth do_get_parse_edid: autoMode = false, manualMode=16 isYuv4kSink: false, maxTMDSRate=145 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: 1080p60hz attr: 444,8bit dolby_status 0 dolby_status 0 dolby_vision_process: hpd: 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 : 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 0x3080000 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,1919,0,1079 [OSD]osd1_update_disp_freescale_enable cvbs: outputmode[1080p60hz] is invalid vpp: vpp_matrix_update: 2 set hdmitx VIC = 16 aml_audio_init config HPLL = 5940000 frac_rate = 1 HPLL: 0x3b3a04f7 HPLL: 0x1b3a04f7 HPLLv1: 0xdb3a04f7 config HPLL done j = 6 vid_clk_div = 1 hdmitx: set enc for VIC: 16 hdmitx phy setting done rx version is 1.4 or below div=10 hdmtix: set audio hdmi_tx_set: save mode: 1080p60hz, attr: 444,8bit, hdmichecksum: 0x2b210000 Saving Environment to aml-storage... mmc env offset: 0x7400000 Writing to MMC(1)... done dolby_status 0 dolby_status 0 hdr_packet vpp: hdr_policy = 1 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 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 : 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 0xd3d74080 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 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 10 ms (81.1 KiB/s)

Executing script at 01020000

reading u-boot.emmc Unable to read file u-boot.emmc reading uEnv.txt 363 bytes read in 3 ms (118.2 KiB/s) reading /zImage 25401856 bytes read in 742 ms (32.6 MiB/s) reading /uInitrd 8198016 bytes read in 271 ms (28.8 MiB/s) reading /dtb/amlogic/meson-sm1-hk1box-vontar-x3.dtb 72512 bytes read in 11 ms (6.3 MiB/s) mac=78:c2:c0:91:96:dc [rsvmem] get fdtaddr NULL! rsvmem - reserve memory

Usage: rsvmem check - check reserved memory rsvmem dump - dump reserved memory

rsvmem check failed

Loading init Ramdisk from Legacy Image at 13000000 ...

Image Name: uInitrd Image Type: AArch64 Linux RAMDisk Image (gzip compressed) Data Size: 8197952 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 ram_addr addr_byte# cnt_byte amlmmc write ram_addr addr_byte# cnt_byte amlmmc erase addr_byte# cnt_byte amlmmc erase / amlmmc rescan amlmmc part - show partition infomation of mmc amlmmc list - lists available devices amlmmc env - display env partition offset amlmmc switch - part name : boot0, boot1, user amlmmc status - read sd/emmc device status amlmmc ext_csd - read sd/emmc device EXT_CSD [byte] amlmmc ext_csd - write sd/emmc device EXT_CSD [byte] value amlmmc response - read sd/emmc last command response amlmmc controller - read sd/emmc controller register amlmmc write_protect

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 : 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 7f02e000, end 7f7ff740 ... OK Loading Device Tree to 000000001ffeb000, end 000000001ffffb3f ... OK fdt_fixup_memory_banks, reg:000000001fff6aac DTS already have 'reg' property

Starting kernel ...

uboot time: 5438346 us

ophub commented 1 year ago

你会还原安卓系统就好办,用大招试试,使用主线u-boot。还是刚才的usb直接再安装一次,安装命令带参数

armbian-install -m yes 选择506

urenai commented 1 year ago

非常感谢 O 大! 已经可以正常启动运行了。