1 1
Viald

Boot from SSD with N2

Recommended Posts

I don't think so. This is a 2.5'' SSD disk and the N2 is powered by a 12V 2A power supply.

Share this post


Link to post
Share on other sites

I used the same configuration with petitboot and the Odroid Ubuntu image. I never face this issue.

But I think that petitboot does many retry if it scans nothing

Share this post


Link to post
Share on other sites
27 minutes ago, Viald said:

I used the same configuration with petitboot and the Odroid Ubuntu image. I never face this issue.

But I think that petitboot does many retry if it scans nothing

You can add a 2 time start from USB to the startup and check if your SSD will have time to "Wake up" and correctly determine. Perhaps a bunch of USB-SATA controller-SSD is slow and does not have time to start u-boot.

 

I use several different flash drives and NVMe modules via USB and everything works the first time.

Share this post


Link to post
Share on other sites
56 minutes ago, balbes150 said:

You can add a 2 time start from USB to the startup and check if your SSD will have time to "Wake up" and correctly determine.

How can I do that ?

Share this post


Link to post
Share on other sites

Added file "set_order_boot.ini " to quickly configure SPIboot in the desired order of scanning (starting) media. The script initially specified settings for the default option ( with such settings comes SPIboot initially). To change the order, you need to edit this script, rename it to "boot.ini"  write to any medium and run N2 with it. The script will automatically change the desired settings and turn off the system.

Parameter "rawimage"  means eMMC

 

For example, you need to specify USB to start first. Change the line to this and run the script.

 

setenv boot_order "mmc rawimage usb pxe spi"

 

to

 

setenv boot_order "usb mmc rawimage pxe spi"

 

 

@Viald For "dua "  USB startup, you can specify.

 

setenv boot_order "usb usb mmc rawimage pxe spi"

 

 

By the way, to speed up the start of Piteboot, you can put the startup check from the network (PXE) at the end of the list (or completely remove it).

 

setenv boot_order "usb mmc rawimage spi pxe"

 

 

 

If desired, you can add your system startup option by adding a new startup option to the u-boot variables (new media, your network startup option, etc.) and add its usage to the list.

Share this post


Link to post
Share on other sites

ouuuuuuuuh ! You are a genius !

 

My boot order before using your script

 

boot_order=mmc rawimage usb pxe spi

And before the script 

boot_order=usb usb mmc rawimage pxe spi

But the SSD is not detected during the second scanning as well 

 

G12B:BL:6e7c85:7898ac;FEAT:E0F83180:402000;POC:B;RCY:0;SPINOR:0;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:0000c067
L3:14000020
B2:00402000
B1:e0f83180

TE: 58313

BL2 Built : 06:17:13, Jun 28 2019. g12b gf0505d7-dirty - qi.duan@dr
oid13

Board ID = 4
Set A53 clk to 24M
Set A73 clk to 24M
Set clk81 to 24M
A53 clk: 1200 MHz
A73 clk: 1200 MHz
CLK81: 166.6M
smccc: 00012ba5
DDR driver_vesion: LPDDR4_PHY_V_0_1_14 build time: Jun 28 2019 06:1
7:09
board id: 4
Load FIP HDR from SPI, src: 0x00010000, des: 0xfffd0000, size: 0x00
004000, part: 0
fw parse done
Load ddrfw from SPI, src: 0x00030000, des: 0xfffd0000, size: 0x0000
c000, part: 0
Load ddrfw from SPI, src: 0x0002c000, des: 0xfffd0000, size: 0x0000
4000, part: 0
PIEI prepare done
fastboot data load
fastboot data verify
verify result: 255
Cfg max: 1, cur: 1. Board id: 255. Force loop cfg
DDR4 probe
ddr clk to 1320MHz
Load ddrfw from SPI, src: 0x00014000, des: 0xfffd0000, size: 0x0000
c000, part: 0
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
Load ddrfw from SPI, src: 0x00020000, des: 0xfffd0000, size: 0x0000
c000, part: 0
Check phy result
INFO : End of initialization
INFO : End of 2D read delay Voltage center optimization
INFO : End of 2D write delay Voltage center optimization
INFO : Training has run successfully!

R0_RxClkDly_Margin==94 ps 8
R0_TxDqDly_Margi==106 ps 9


R1_RxClkDly_Margin==0 ps 0
R1_TxDqDly_Margi==0 ps 0

 dwc_ddrphy_apb_wr((0<<20)|(2<<16)|(0<<12)|(0xb0):0001 
2D training succeed
auto size-- 65535DDR cs0 size: 2048MB
DDR cs1 size: 2048MB
DMC_DDR_CTRL: 00600024DDR size: 3928MB
cs0 DataBus test pass
cs1 DataBus test pass
cs0 AddrBus test pass
cs1 AddrBus test pass
 pre test  bdlr_100_average==445 bdlr_100_min==445 bdlr_100_max==44
5 bdlr_100_cur==445
 aft test  bdlr_100_average==445 bdlr_100_min==445 bdlr_100_max==44
5 bdlr_100_cur==445
non-sec scramble use zero key
ddr scramble enabled

100bdlr_step_size ps== 435
result report
boot times 0Enable ddr reg access
Load FIP HDR from SPI, src: 0x00010000, des: 0x01700000, size: 0x00
004000, part: 0
Load BL3X from SPI, src: 0x0003c000, des: 0x0172c000, size: 0x00094
c00, part: 0
0.0;M3 CHK:0;cm4_sp_mode 0
E30HDR
MVN_1=0x00000000
MVN_2=0x00000000
[Image: g12b_v1.1.3375-8f9c8a7 2019-01-24 10:44:46 guotai.shen@droi
d11-sz]
OPS=0x40
ring efuse init
chipver efuse init
29 0a 40 00 01 13 0f 00 00 07 31 32 54 52 4d 50 
[0.019858 Inits done]
secure task start!
high task start!
low task start!
run into bl31
NOTICE:  BL31: v1.3(release):ab8811b
NOTICE:  BL31: Built : 15:03:31, Feb 12 2019
NOTICE:  BL31: G12A normal boot!
NOTICE:  BL31: BL33 decompress pass
ERROR:   Error initializing runtime service opteed_fast


U-Boot 2015.01 (Oct 03 2019 - 13:03:26)

DRAM:  3.5 GiB
Relocation Offset is: d6ef3000
spi_post_bind(spifc): req_seq = 0
register usb cfg[0][1] = 00000000d7f84a50
MMC:   aml_priv->desc_buf = 0x00000000d3ee37c0
aml_priv->desc_buf = 0x00000000d3ee5b00
SDIO Port C: 0, SDIO Port B: 1
spifc_probe: reg=00000000ffd14000, mem_map=00000000f6000000
SF: Detected MX25U6435F with page size 256 Bytes, erase size 64 KiB
, total 8 MiB
In:    serial
Out:   serial
Err:   serial
vpu: error: vpu: check dts: FDT_ERR_BADMAGIC, load default paramete
rs
vpu: driver version: v20190313
vpu: detect chip type: 9
vpu: clk_level default: 7(666667000Hz), max: 7(666667000Hz)
vpu: clk_level = 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: g12a/b osd1 matrix rgb2yuv ..............
vpp: g12a/b osd2 matrix rgb2yuv..............
vpp: g12a/b osd3 matrix rgb2yuv..............
cvbs: cpuid:0x29
cvbs_config_hdmipll_g12a
cvbs_set_vid2_clk
** Bad device specification mmc -1 **
** Bad device specification mmc -1 **
movi: not registered partition name, logo
movi - Read/write command from/to SD/MMC for ODROID board

Usage:
movi <read|write> <partition|sector> <offset> <address> [<length>]
    - <read|write>  the command to access the storage
    - <offset>  the offset from the start of given partiton in lba
    - <address>  the memory address to load/store from/to the stora
ge device
    - [<length>]  the size of the block to read/write in bytes
    - all parameters must be hexa-decimal only

[OSD]check dts: FDT_ERR_BADMAGIC, load default fb_addr parameters
[OSD]set initrd_high: 0x3d800000
[OSD]fb_addr for logo: 0x3d800000
[OSD]check dts: FDT_ERR_BADMAGIC, load default fb_addr parameters
[OSD]fb_addr for logo: 0x3d800000
[OSD]VPP_OFIFO_SIZE:0xfff01fff
[CANVAS]canvas init
[CANVAS]addr=0x3d800000 width=5760, height=2160
[OSD]wait_vsync_wakeup exit
cvbs: outputmode[1080p60hz] is invalid
vpp: vpp_matrix_update: 2
set hdmitx VIC = 16
config HPLL = 5940000 frac_rate = 1
HPLL: 0x3b3a04f7
HPLL: 0x1b3a04f7
HPLLv1: 0xdb3a04f7
config HPLL done
j = 6  vid_clk_div = 1
hdmitx phy setting done
hdmitx: set enc for VIC: 16
enc_vpu_bridge_reset[1312]
rx version is 1.4 or below  div=10
Net:   dwmac.ff3f0000
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, status=0x1bf2800
emmc/sd response timeout, cmd55, status=0x1bf2800
emmc/sd response timeout, cmd1, status=0x1bf2800
Hit Enter or space or Ctrl+C key to stop autoboot -- :  0 
(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) foun
d
## Attempting fetch boot.ini in usb:0...
** Bad device usb 0 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch boot.scr in usb:0...
** Bad device usb 0 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch /boot/boot.ini in usb:0...
** Bad device usb 0 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch /boot/boot.scr in usb:0...
** Bad device usb 0 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch boot.ini in usb:1...
** Bad device usb 1 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch boot.scr in usb:1...
** Bad device usb 1 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch /boot/boot.ini in usb:1...
** Bad device usb 1 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch /boot/boot.scr in usb:1...
** Bad device usb 1 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch boot.ini in usb:2...
** Bad device usb 2 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch boot.scr in usb:2...
** Bad device usb 2 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch /boot/boot.ini in usb:2...
** Bad device usb 2 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch /boot/boot.scr in usb:2...
** Bad device usb 2 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch boot.ini in usb:3...
** Bad device usb 3 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch boot.scr in usb:3...
** Bad device usb 3 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch /boot/boot.ini in usb:3...
** Bad device usb 3 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch /boot/boot.scr in usb:3...
** Bad device usb 3 **
## Executing script at 04000000
Wrong image format for "source" command
(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) foun
d
## Attempting fetch boot.ini in usb:0...
** Bad device usb 0 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch boot.scr in usb:0...
** Bad device usb 0 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch /boot/boot.ini in usb:0...
** Bad device usb 0 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch /boot/boot.scr in usb:0...
** Bad device usb 0 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch boot.ini in usb:1...
** Bad device usb 1 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch boot.scr in usb:1...
** Bad device usb 1 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch /boot/boot.ini in usb:1...
** Bad device usb 1 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch /boot/boot.scr in usb:1...
** Bad device usb 1 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch boot.ini in usb:2...
** Bad device usb 2 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch boot.scr in usb:2...
** Bad device usb 2 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch /boot/boot.ini in usb:2...
** Bad device usb 2 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch /boot/boot.scr in usb:2...
** Bad device usb 2 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch boot.ini in usb:3...
** Bad device usb 3 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch boot.scr in usb:3...
** Bad device usb 3 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch /boot/boot.ini in usb:3...
** Bad device usb 3 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch /boot/boot.scr in usb:3...
** Bad device usb 3 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch boot.ini in mmc:0...
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, status=0x1bf2800
emmc/sd response timeout, cmd55, status=0x1bf2800
emmc/sd response timeout, cmd1, status=0x1bf2800
** Bad device mmc 0 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch boot.scr in mmc:0...
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, status=0x1bf2800
emmc/sd response timeout, cmd55, status=0x1bf2800
emmc/sd response timeout, cmd1, status=0x1bf2800
** Bad device mmc 0 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch /boot/boot.ini in mmc:0...
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, status=0x1bf2800
emmc/sd response timeout, cmd55, status=0x1bf2800
emmc/sd response timeout, cmd1, status=0x1bf2800
** Bad device mmc 0 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch /boot/boot.scr in mmc:0...
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, status=0x1bf2800
emmc/sd response timeout, cmd55, status=0x1bf2800
emmc/sd response timeout, cmd1, status=0x1bf2800
** Bad device mmc 0 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch boot.ini in mmc:1...
card out
** Bad device mmc 1 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch boot.scr in mmc:1...
card out
** Bad device mmc 1 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch /boot/boot.ini in mmc:1...
card out
** Bad device mmc 1 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch /boot/boot.scr in mmc:1...
card out
** Bad device mmc 1 **
## Executing script at 04000000
Wrong image format for "source" command
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, status=0x1bf2800
emmc/sd response timeout, cmd55, status=0x1bf2800
emmc/sd response timeout, cmd1, status=0x1bf2800
movi: not registered partition name, boot
movi - Read/write command from/to SD/MMC for ODROID board

Usage:
movi <read|write> <partition|sector> <offset> <address> [<length>]
    - <read|write>  the command to access the storage
    - <offset>  the offset from the start of given partiton in lba
    - <address>  the memory address to load/store from/to the stora
ge device
    - [<length>]  the size of the block to read/write in bytes
    - all parameters must be hexa-decimal only

movi: not registered partition name, dtbs
movi - Read/write command from/to SD/MMC for ODROID board

Usage:
movi <read|write> <partition|sector> <offset> <address> [<length>]
    - <read|write>  the command to access the storage
    - <offset>  the offset from the start of given partiton in lba
    - <address>  the memory address to load/store from/to the stora
ge device
    - [<length>]  the size of the block to read/write in bytes
    - all parameters must be hexa-decimal only

[rsvmem] get fdtaddr NULL!
rsvmem - reserve memory

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

rsvmem check failed
Bad Linux ARM64 Image magic!
ee_gate_off ...
Wrong Image Format for bootm command
ERROR: can't get kernel image!
[rsvmem] get fdtaddr NULL!
rsvmem - reserve memory

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

rsvmem check failed
ee_gate_on ...
card out
movi: not registered partition name, boot
movi - Read/write command from/to SD/MMC for ODROID board

Usage:
movi <read|write> <partition|sector> <offset> <address> [<length>]
    - <read|write>  the command to access the storage
    - <offset>  the offset from the start of given partiton in lba
    - <address>  the memory address to load/store from/to the stora
ge device
    - [<length>]  the size of the block to read/write in bytes
    - all parameters must be hexa-decimal only

movi: not registered partition name, dtbs
movi - Read/write command from/to SD/MMC for ODROID board

Usage:
movi <read|write> <partition|sector> <offset> <address> [<length>]
    - <read|write>  the command to access the storage
    - <offset>  the offset from the start of given partiton in lba
    - <address>  the memory address to load/store from/to the stora
ge device
    - [<length>]  the size of the block to read/write in bytes
    - all parameters must be hexa-decimal only

[rsvmem] get fdtaddr NULL!
rsvmem - reserve memory

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

rsvmem check failed
Bad Linux ARM64 Image magic!
ee_gate_off ...
Wrong Image Format for bootm command
ERROR: can't get kernel image!
[rsvmem] get fdtaddr NULL!
rsvmem - reserve memory

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

rsvmem check failed
ee_gate_on ...
Speed: 1000, full duplex
BOOTP broadcast 1
DHCP client bound to address 192.168.1.162 (71 ms)
Retrieving file: pxelinux.cfg/909802f2-a1dd-11e8-98d0-529269fb1459
Speed: 1000, full duplex
Using dwmac.ff3f0000 device
TFTP from server 192.168.1.2; our IP address is 192.168.1.162
Filename 'pxelinux.cfg/909802f2-a1dd-11e8-98d0-529269fb1459'.
Load address: 0x1070000
Loading: T T 

I tried 4 USB scanning, the issue is still the same

 

G12B:BL:6e7c85:7898ac;FEAT:E0F83180:402000;POC:B;RCY:0;SPINOR:0;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:0000c067
L3:14000020
B2:00402000
B1:e0f83180

TE: 58157

BL2 Built : 06:17:13, Jun 28 2019. g12b gf0505d7-dirty - qi.duan@dr
oid13

Board ID = 4
Set A53 clk to 24M
Set A73 clk to 24M
Set clk81 to 24M
A53 clk: 1200 MHz
A73 clk: 1200 MHz
CLK81: 166.6M
smccc: 00012b09
DDR driver_vesion: LPDDR4_PHY_V_0_1_14 build time: Jun 28 2019 06:1
7:09
board id: 4
Load FIP HDR from SPI, src: 0x00010000, des: 0xfffd0000, size: 0x00
004000, part: 0
fw parse done
Load ddrfw from SPI, src: 0x00030000, des: 0xfffd0000, size: 0x0000
c000, part: 0
Load ddrfw from SPI, src: 0x0002c000, des: 0xfffd0000, size: 0x0000
4000, part: 0
PIEI prepare done
fastboot data load
fastboot data verify
verify result: 255
Cfg max: 1, cur: 1. Board id: 255. Force loop cfg
DDR4 probe
ddr clk to 1320MHz
Load ddrfw from SPI, src: 0x00014000, des: 0xfffd0000, size: 0x0000
c000, part: 0
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
Load ddrfw from SPI, src: 0x00020000, des: 0xfffd0000, size: 0x0000
c000, part: 0
Check phy result
INFO : End of initialization
INFO : End of 2D read delay Voltage center optimization
INFO : End of 2D write delay Voltage center optimization
INFO : Training has run successfully!

R0_RxClkDly_Margin==82 ps 7
R0_TxDqDly_Margi==106 ps 9


R1_RxClkDly_Margin==0 ps 0
R1_TxDqDly_Margi==0 ps 0

 dwc_ddrphy_apb_wr((0<<20)|(2<<16)|(0<<12)|(0xb0):0001 
2D training succeed
auto size-- 65535DDR cs0 size: 2048MB
DDR cs1 size: 2048MB
DMC_DDR_CTRL: 00600024DDR size: 3928MB
cs0 DataBus test pass
cs1 DataBus test pass
cs0 AddrBus test pass
cs1 AddrBus test pass
 pre test  bdlr_100_average==435 bdlr_100_min==435 bdlr_100_max==43
5 bdlr_100_cur==435
 aft test  bdlr_100_average==435 bdlr_100_min==435 bdlr_100_max==43
5 bdlr_100_cur==435
non-sec scramble use zero key
ddr scramble enabled

100bdlr_step_size ps== 435
result report
boot times 0Enable ddr reg access
Load FIP HDR from SPI, src: 0x00010000, des: 0x01700000, size: 0x00
004000, part: 0
Load BL3X from SPI, src: 0x0003c000, des: 0x0172c000, size: 0x00094
c00, part: 0
0.0;M3 CHK:0;cm4_sp_mode 0
E30HDR
MVN_1=0x00000000
MVN_2=0x00000000
[Image: g12b_v1.1.3375-8f9c8a7 2019-01-24 10:44:46 guotai.shen@droi
d11-sz]
OPS=0x40
ring efuse init
chipver efuse init
29 0a 40 00 01 13 0f 00 00 07 31 32 54 52 4d 50 
[0.019858 Inits done]
secure task start!
high task start!
low task start!
run into bl31
NOTICE:  BL31: v1.3(release):ab8811b
NOTICE:  BL31: Built : 15:03:31, Feb 12 2019
NOTICE:  BL31: G12A normal boot!
NOTICE:  BL31: BL33 decompress pass
ERROR:   Error initializing runtime service opteed_fast


U-Boot 2015.01 (Oct 03 2019 - 13:03:26)

DRAM:  3.5 GiB
Relocation Offset is: d6ef3000
spi_post_bind(spifc): req_seq = 0
register usb cfg[0][1] = 00000000d7f84a50
MMC:   aml_priv->desc_buf = 0x00000000d3ee37c0
aml_priv->desc_buf = 0x00000000d3ee5b00
SDIO Port C: 0, SDIO Port B: 1
spifc_probe: reg=00000000ffd14000, mem_map=00000000f6000000
SF: Detected MX25U6435F with page size 256 Bytes, erase size 64 KiB
, total 8 MiB
In:    serial
Out:   serial
Err:   serial
vpu: error: vpu: check dts: FDT_ERR_BADMAGIC, load default paramete
rs
vpu: driver version: v20190313
vpu: detect chip type: 9
vpu: clk_level default: 7(666667000Hz), max: 7(666667000Hz)
vpu: clk_level = 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: g12a/b osd1 matrix rgb2yuv ..............
vpp: g12a/b osd2 matrix rgb2yuv..............
vpp: g12a/b osd3 matrix rgb2yuv..............
cvbs: cpuid:0x29
cvbs_config_hdmipll_g12a
cvbs_set_vid2_clk
** Bad device specification mmc -1 **
** Bad device specification mmc -1 **
movi: not registered partition name, logo
movi - Read/write command from/to SD/MMC for ODROID board

Usage:
movi <read|write> <partition|sector> <offset> <address> [<length>]
    - <read|write>  the command to access the storage
    - <offset>  the offset from the start of given partiton in lba
    - <address>  the memory address to load/store from/to the stora
ge device
    - [<length>]  the size of the block to read/write in bytes
    - all parameters must be hexa-decimal only

[OSD]check dts: FDT_ERR_BADMAGIC, load default fb_addr parameters
[OSD]set initrd_high: 0x3d800000
[OSD]fb_addr for logo: 0x3d800000
[OSD]check dts: FDT_ERR_BADMAGIC, load default fb_addr parameters
[OSD]fb_addr for logo: 0x3d800000
[OSD]VPP_OFIFO_SIZE:0xfff01fff
[CANVAS]canvas init
[CANVAS]addr=0x3d800000 width=5760, height=2160
[OSD]wait_vsync_wakeup exit
cvbs: outputmode[1080p60hz] is invalid
vpp: vpp_matrix_update: 2
set hdmitx VIC = 16
config HPLL = 5940000 frac_rate = 1
HPLL: 0x3b3a04f7
HPLL: 0x1b3a04f7
HPLLv1: 0xdb3a04f7
config HPLL done
j = 6  vid_clk_div = 1
hdmitx phy setting done
hdmitx: set enc for VIC: 16
enc_vpu_bridge_reset[1312]
rx version is 1.4 or below  div=10
Net:   dwmac.ff3f0000
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, status=0x1bf2800
emmc/sd response timeout, cmd55, status=0x1bf2800
emmc/sd response timeout, cmd1, status=0x1bf2800
Hit Enter or space or Ctrl+C key to stop autoboot -- :  0 
(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) foun
d
## Attempting fetch boot.ini in usb:0...
** Bad device usb 0 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch boot.scr in usb:0...
** Bad device usb 0 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch /boot/boot.ini in usb:0...
** Bad device usb 0 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch /boot/boot.scr in usb:0...
** Bad device usb 0 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch boot.ini in usb:1...
** Bad device usb 1 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch boot.scr in usb:1...
** Bad device usb 1 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch /boot/boot.ini in usb:1...
** Bad device usb 1 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch /boot/boot.scr in usb:1...
** Bad device usb 1 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch boot.ini in usb:2...
** Bad device usb 2 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch boot.scr in usb:2...
** Bad device usb 2 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch /boot/boot.ini in usb:2...
** Bad device usb 2 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch /boot/boot.scr in usb:2...
** Bad device usb 2 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch boot.ini in usb:3...
** Bad device usb 3 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch boot.scr in usb:3...
** Bad device usb 3 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch /boot/boot.ini in usb:3...
** Bad device usb 3 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch /boot/boot.scr in usb:3...
** Bad device usb 3 **
## Executing script at 04000000
Wrong image format for "source" command
(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) foun
d
## Attempting fetch boot.ini in usb:0...
** Bad device usb 0 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch boot.scr in usb:0...
** Bad device usb 0 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch /boot/boot.ini in usb:0...
** Bad device usb 0 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch /boot/boot.scr in usb:0...
** Bad device usb 0 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch boot.ini in usb:1...
** Bad device usb 1 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch boot.scr in usb:1...
** Bad device usb 1 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch /boot/boot.ini in usb:1...
** Bad device usb 1 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch /boot/boot.scr in usb:1...
** Bad device usb 1 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch boot.ini in usb:2...
** Bad device usb 2 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch boot.scr in usb:2...
** Bad device usb 2 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch /boot/boot.ini in usb:2...
** Bad device usb 2 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch /boot/boot.scr in usb:2...
** Bad device usb 2 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch boot.ini in usb:3...
** Bad device usb 3 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch boot.scr in usb:3...
** Bad device usb 3 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch /boot/boot.ini in usb:3...
** Bad device usb 3 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch /boot/boot.scr in usb:3...
** Bad device usb 3 **
## Executing script at 04000000
Wrong image format for "source" command
(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) foun
d
## Attempting fetch boot.ini in usb:0...
** Bad device usb 0 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch boot.scr in usb:0...
** Bad device usb 0 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch /boot/boot.ini in usb:0...
** Bad device usb 0 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch /boot/boot.scr in usb:0...
** Bad device usb 0 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch boot.ini in usb:1...
** Bad device usb 1 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch boot.scr in usb:1...
** Bad device usb 1 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch /boot/boot.ini in usb:1...
** Bad device usb 1 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch /boot/boot.scr in usb:1...
** Bad device usb 1 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch boot.ini in usb:2...
** Bad device usb 2 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch boot.scr in usb:2...
** Bad device usb 2 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch /boot/boot.ini in usb:2...
** Bad device usb 2 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch /boot/boot.scr in usb:2...
** Bad device usb 2 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch boot.ini in usb:3...
** Bad device usb 3 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch boot.scr in usb:3...
** Bad device usb 3 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch /boot/boot.ini in usb:3...
** Bad device usb 3 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch /boot/boot.scr in usb:3...
** Bad device usb 3 **
## Executing script at 04000000
Wrong image format for "source" command
(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) foun
d
## Attempting fetch boot.ini in usb:0...
** Bad device usb 0 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch boot.scr in usb:0...
** Bad device usb 0 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch /boot/boot.ini in usb:0...
** Bad device usb 0 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch /boot/boot.scr in usb:0...
** Bad device usb 0 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch boot.ini in usb:1...
** Bad device usb 1 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch boot.scr in usb:1...
** Bad device usb 1 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch /boot/boot.ini in usb:1...
** Bad device usb 1 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch /boot/boot.scr in usb:1...
** Bad device usb 1 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch boot.ini in usb:2...
** Bad device usb 2 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch boot.scr in usb:2...
** Bad device usb 2 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch /boot/boot.ini in usb:2...
** Bad device usb 2 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch /boot/boot.scr in usb:2...
** Bad device usb 2 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch boot.ini in usb:3...
** Bad device usb 3 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch boot.scr in usb:3...
** Bad device usb 3 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch /boot/boot.ini in usb:3...
** Bad device usb 3 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch /boot/boot.scr in usb:3...
** Bad device usb 3 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch boot.ini in mmc:0...
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, status=0x1bf2800
emmc/sd response timeout, cmd55, status=0x1bf2800
emmc/sd response timeout, cmd1, status=0x1bf2800
** Bad device mmc 0 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch boot.scr in mmc:0...
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, status=0x1bf2800
emmc/sd response timeout, cmd55, status=0x1bf2800
emmc/sd response timeout, cmd1, status=0x1bf2800
** Bad device mmc 0 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch /boot/boot.ini in mmc:0...
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, status=0x1bf2800
emmc/sd response timeout, cmd55, status=0x1bf2800
emmc/sd response timeout, cmd1, status=0x1bf2800
** Bad device mmc 0 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch /boot/boot.scr in mmc:0...
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, status=0x1bf2800
emmc/sd response timeout, cmd55, status=0x1bf2800
emmc/sd response timeout, cmd1, status=0x1bf2800
** Bad device mmc 0 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch boot.ini in mmc:1...
card out
** Bad device mmc 1 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch boot.scr in mmc:1...
card out
** Bad device mmc 1 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch /boot/boot.ini in mmc:1...
card out
** Bad device mmc 1 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch /boot/boot.scr in mmc:1...
card out
** Bad device mmc 1 **
## Executing script at 04000000
Wrong image format for "source" command
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, status=0x1bf2800
emmc/sd response timeout, cmd55, status=0x1bf2800
emmc/sd response timeout, cmd1, status=0x1bf2800
movi: not registered partition name, boot
movi - Read/write command from/to SD/MMC for ODROID board

Usage:
movi <read|write> <partition|sector> <offset> <address> [<length>]
    - <read|write>  the command to access the storage
    - <offset>  the offset from the start of given partiton in lba
    - <address>  the memory address to load/store from/to the stora
ge device
    - [<length>]  the size of the block to read/write in bytes
    - all parameters must be hexa-decimal only

movi: not registered partition name, dtbs
movi - Read/write command from/to SD/MMC for ODROID board

Usage:
movi <read|write> <partition|sector> <offset> <address> [<length>]
    - <read|write>  the command to access the storage
    - <offset>  the offset from the start of given partiton in lba
    - <address>  the memory address to load/store from/to the stora
ge device
    - [<length>]  the size of the block to read/write in bytes
    - all parameters must be hexa-decimal only

[rsvmem] get fdtaddr NULL!
rsvmem - reserve memory

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

rsvmem check failed
Bad Linux ARM64 Image magic!
ee_gate_off ...
Wrong Image Format for bootm command
ERROR: can't get kernel image!
[rsvmem] get fdtaddr NULL!
rsvmem - reserve memory

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

rsvmem check failed
ee_gate_on ...
card out
movi: not registered partition name, boot
movi - Read/write command from/to SD/MMC for ODROID board

Usage:
movi <read|write> <partition|sector> <offset> <address> [<length>]
    - <read|write>  the command to access the storage
    - <offset>  the offset from the start of given partiton in lba
    - <address>  the memory address to load/store from/to the stora
ge device
    - [<length>]  the size of the block to read/write in bytes
    - all parameters must be hexa-decimal only

movi: not registered partition name, dtbs
movi - Read/write command from/to SD/MMC for ODROID board

Usage:
movi <read|write> <partition|sector> <offset> <address> [<length>]
    - <read|write>  the command to access the storage
    - <offset>  the offset from the start of given partiton in lba
    - <address>  the memory address to load/store from/to the stora
ge device
    - [<length>]  the size of the block to read/write in bytes
    - all parameters must be hexa-decimal only

[rsvmem] get fdtaddr NULL!
rsvmem - reserve memory

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

rsvmem check failed
Bad Linux ARM64 Image magic!
ee_gate_off ...
Wrong Image Format for bootm command
ERROR: can't get kernel image!
[rsvmem] get fdtaddr NULL!
rsvmem - reserve memory

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

rsvmem check failed
ee_gate_on ...
Speed: 1000, full duplex
BOOTP broadcast 1
DHCP client bound to address 192.168.1.162 (69 ms)
Retrieving file: pxelinux.cfg/909802f2-a1dd-11e8-98d0-529269fb1459
Speed: 1000, full duplex
Using dwmac.ff3f0000 device
TFTP from server 192.168.1.2; our IP address is 192.168.1.162
Filename 'pxelinux.cfg/909802f2-a1dd-11e8-98d0-529269fb1459'.
Load address: 0x1070000
Loading: *

 

 

Share this post


Link to post
Share on other sites
On 10/4/2019 at 10:10 AM, balbes150 said:

 

Have you tried these images ?

https://yadi.sk/d/TJOofJd_FGAUBg

 

 

 

Thank you for those excellent images. 

A timesaving way to get recent u-boot (U-Boot 2019.07-rc3-armbian) and kernel (5.3.0) up and running on the ordoid n2.

extlinux is great to boot custom kernel without fiddling with mkimage and boot.(ini|scr).

 

saved me alot of time :-)

Share this post


Link to post
Share on other sites

You are right I have plugged others USB devices needed for my system. One Zwave key, one bluetooth key, an USB RFXcom controller and one GSM key.

 

I did boot test with only the SSD, same issue:

 

G12B:BL:6e7c85:7898ac;FEAT:E0F83180:402000;POC:B;RCY:0;SPINOR:0;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:0000c067
L3:14000020
B2:00402000
B1:e0f83180

TE: 58313

BL2 Built : 06:17:13, Jun 28 2019. g12b gf0505d7-dirty - qi.duan@dr
oid13

Board ID = 4
Set A53 clk to 24M
Set A73 clk to 24M
Set clk81 to 24M
A53 clk: 1200 MHz
A73 clk: 1200 MHz
CLK81: 166.6M
smccc: 00012ba5
DDR driver_vesion: LPDDR4_PHY_V_0_1_14 build time: Jun 28 2019 06:1
7:09
board id: 4
Load FIP HDR from SPI, src: 0x00010000, des: 0xfffd0000, size: 0x00
004000, part: 0
fw parse done
Load ddrfw from SPI, src: 0x00030000, des: 0xfffd0000, size: 0x0000
c000, part: 0
Load ddrfw from SPI, src: 0x0002c000, des: 0xfffd0000, size: 0x0000
4000, part: 0
PIEI prepare done
fastboot data load
fastboot data verify
verify result: 255
Cfg max: 1, cur: 1. Board id: 255. Force loop cfg
DDR4 probe
ddr clk to 1320MHz
Load ddrfw from SPI, src: 0x00014000, des: 0xfffd0000, size: 0x0000
c000, part: 0
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
Load ddrfw from SPI, src: 0x00020000, des: 0xfffd0000, size: 0x0000
c000, part: 0
Check phy result
INFO : End of initialization
INFO : End of 2D read delay Voltage center optimization
INFO : End of 2D write delay Voltage center optimization
INFO : Training has run successfully!

R0_RxClkDly_Margin==94 ps 8
R0_TxDqDly_Margi==106 ps 9


R1_RxClkDly_Margin==0 ps 0
R1_TxDqDly_Margi==0 ps 0

 dwc_ddrphy_apb_wr((0<<20)|(2<<16)|(0<<12)|(0xb0):0001 
2D training succeed
auto size-- 65535DDR cs0 size: 2048MB
DDR cs1 size: 2048MB
DMC_DDR_CTRL: 00600024DDR size: 3928MB
cs0 DataBus test pass
cs1 DataBus test pass
cs0 AddrBus test pass
cs1 AddrBus test pass
 pre test  bdlr_100_average==435 bdlr_100_min==435 bdlr_100_max==43
5 bdlr_100_cur==435
 aft test  bdlr_100_average==435 bdlr_100_min==435 bdlr_100_max==43
5 bdlr_100_cur==435
non-sec scramble use zero key
ddr scramble enabled

100bdlr_step_size ps== 445
result report
boot times 0Enable ddr reg access
Load FIP HDR from SPI, src: 0x00010000, des: 0x01700000, size: 0x00
004000, part: 0
Load BL3X from SPI, src: 0x0003c000, des: 0x0172c000, size: 0x00094
c00, part: 0
0.0;M3 CHK:0;cm4_sp_mode 0
E30HDR
MVN_1=0x00000000
MVN_2=0x00000000
[Image: g12b_v1.1.3375-8f9c8a7 2019-01-24 10:44:46 guotai.shen@droi
d11-sz]
OPS=0x40
ring efuse init
chipver efuse init
29 0a 40 00 01 13 0f 00 00 07 31 32 54 52 4d 50 
[0.019858 Inits done]
secure task start!
high task start!
low task start!
run into bl31
NOTICE:  BL31: v1.3(release):ab8811b
NOTICE:  BL31: Built : 15:03:31, Feb 12 2019
NOTICE:  BL31: G12A normal boot!
NOTICE:  BL31: BL33 decompress pass
ERROR:   Error initializing runtime service opteed_fast


U-Boot 2015.01 (Oct 03 2019 - 13:03:26)

DRAM:  3.5 GiB
Relocation Offset is: d6ef3000
spi_post_bind(spifc): req_seq = 0
register usb cfg[0][1] = 00000000d7f84a50
MMC:   aml_priv->desc_buf = 0x00000000d3ee37c0
aml_priv->desc_buf = 0x00000000d3ee5b00
SDIO Port C: 0, SDIO Port B: 1
spifc_probe: reg=00000000ffd14000, mem_map=00000000f6000000
SF: Detected MX25U6435F with page size 256 Bytes, erase size 64 KiB
, total 8 MiB
In:    serial
Out:   serial
Err:   serial
vpu: error: vpu: check dts: FDT_ERR_BADMAGIC, load default paramete
rs
vpu: driver version: v20190313
vpu: detect chip type: 9
vpu: clk_level default: 7(666667000Hz), max: 7(666667000Hz)
vpu: clk_level = 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: g12a/b osd1 matrix rgb2yuv ..............
vpp: g12a/b osd2 matrix rgb2yuv..............
vpp: g12a/b osd3 matrix rgb2yuv..............
cvbs: cpuid:0x29
cvbs_config_hdmipll_g12a
cvbs_set_vid2_clk
** Bad device specification mmc -1 **
** Bad device specification mmc -1 **
movi: not registered partition name, logo
movi - Read/write command from/to SD/MMC for ODROID board

Usage:
movi <read|write> <partition|sector> <offset> <address> [<length>]
    - <read|write>  the command to access the storage
    - <offset>  the offset from the start of given partiton in lba
    - <address>  the memory address to load/store from/to the stora
ge device
    - [<length>]  the size of the block to read/write in bytes
    - all parameters must be hexa-decimal only

[OSD]check dts: FDT_ERR_BADMAGIC, load default fb_addr parameters
[OSD]set initrd_high: 0x3d800000
[OSD]fb_addr for logo: 0x3d800000
[OSD]check dts: FDT_ERR_BADMAGIC, load default fb_addr parameters
[OSD]fb_addr for logo: 0x3d800000
[OSD]VPP_OFIFO_SIZE:0xfff01fff
[CANVAS]canvas init
[CANVAS]addr=0x3d800000 width=5760, height=2160
[OSD]wait_vsync_wakeup exit
cvbs: outputmode[1080p60hz] is invalid
vpp: vpp_matrix_update: 2
set hdmitx VIC = 16
config HPLL = 5940000 frac_rate = 1
HPLL: 0x3b3a04f7
HPLL: 0x1b3a04f7
HPLLv1: 0xdb3a04f7
config HPLL done
j = 6  vid_clk_div = 1
hdmitx phy setting done
hdmitx: set enc for VIC: 16
enc_vpu_bridge_reset[1312]
rx version is 1.4 or below  div=10
Net:   dwmac.ff3f0000
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, status=0x1bf2800
emmc/sd response timeout, cmd55, status=0x1bf2800
emmc/sd response timeout, cmd1, status=0x1bf2800
Hit Enter or space or Ctrl+C key to stop autoboot -- :  0 
(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) foun
d
## Attempting fetch boot.ini in usb:0...
** Bad device usb 0 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch boot.scr in usb:0...
** Bad device usb 0 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch /boot/boot.ini in usb:0...
** Bad device usb 0 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch /boot/boot.scr in usb:0...
** Bad device usb 0 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch boot.ini in usb:1...
** Bad device usb 1 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch boot.scr in usb:1...
** Bad device usb 1 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch /boot/boot.ini in usb:1...
** Bad device usb 1 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch /boot/boot.scr in usb:1...
** Bad device usb 1 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch boot.ini in usb:2...
** Bad device usb 2 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch boot.scr in usb:2...
** Bad device usb 2 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch /boot/boot.ini in usb:2...
** Bad device usb 2 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch /boot/boot.scr in usb:2...
** Bad device usb 2 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch boot.ini in usb:3...
** Bad device usb 3 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch boot.scr in usb:3...
** Bad device usb 3 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch /boot/boot.ini in usb:3...
** Bad device usb 3 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch /boot/boot.scr in usb:3...
** Bad device usb 3 **
## Executing script at 04000000
Wrong image format for "source" command
(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) foun
d
## Attempting fetch boot.ini in usb:0...
** Bad device usb 0 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch boot.scr in usb:0...
** Bad device usb 0 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch /boot/boot.ini in usb:0...
** Bad device usb 0 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch /boot/boot.scr in usb:0...
** Bad device usb 0 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch boot.ini in usb:1...
** Bad device usb 1 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch boot.scr in usb:1...
** Bad device usb 1 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch /boot/boot.ini in usb:1...
** Bad device usb 1 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch /boot/boot.scr in usb:1...
** Bad device usb 1 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch boot.ini in usb:2...
** Bad device usb 2 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch boot.scr in usb:2...
** Bad device usb 2 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch /boot/boot.ini in usb:2...
** Bad device usb 2 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch /boot/boot.scr in usb:2...
** Bad device usb 2 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch boot.ini in usb:3...
** Bad device usb 3 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch boot.scr in usb:3...
** Bad device usb 3 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch /boot/boot.ini in usb:3...
** Bad device usb 3 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch /boot/boot.scr in usb:3...
** Bad device usb 3 **
## Executing script at 04000000
Wrong image format for "source" command
(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) foun
d
## Attempting fetch boot.ini in usb:0...
** Bad device usb 0 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch boot.scr in usb:0...
** Bad device usb 0 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch /boot/boot.ini in usb:0...
** Bad device usb 0 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch /boot/boot.scr in usb:0...
** Bad device usb 0 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch boot.ini in usb:1...
** Bad device usb 1 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch boot.scr in usb:1...
** Bad device usb 1 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch /boot/boot.ini in usb:1...
** Bad device usb 1 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch /boot/boot.scr in usb:1...
** Bad device usb 1 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch boot.ini in usb:2...
** Bad device usb 2 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch boot.scr in usb:2...
** Bad device usb 2 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch /boot/boot.ini in usb:2...
** Bad device usb 2 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch /boot/boot.scr in usb:2...
** Bad device usb 2 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch boot.ini in usb:3...
** Bad device usb 3 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch boot.scr in usb:3...
** Bad device usb 3 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch /boot/boot.ini in usb:3...
** Bad device usb 3 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch /boot/boot.scr in usb:3...
** Bad device usb 3 **
## Executing script at 04000000
Wrong image format for "source" command
(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) foun
d
## Attempting fetch boot.ini in usb:0...
** Bad device usb 0 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch boot.scr in usb:0...
** Bad device usb 0 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch /boot/boot.ini in usb:0...
** Bad device usb 0 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch /boot/boot.scr in usb:0...
** Bad device usb 0 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch boot.ini in usb:1...
** Bad device usb 1 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch boot.scr in usb:1...
** Bad device usb 1 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch /boot/boot.ini in usb:1...
** Bad device usb 1 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch /boot/boot.scr in usb:1...
** Bad device usb 1 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch boot.ini in usb:2...
** Bad device usb 2 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch boot.scr in usb:2...
** Bad device usb 2 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch /boot/boot.ini in usb:2...
** Bad device usb 2 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch /boot/boot.scr in usb:2...
** Bad device usb 2 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch boot.ini in usb:3...
** Bad device usb 3 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch boot.scr in usb:3...
** Bad device usb 3 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch /boot/boot.ini in usb:3...
** Bad device usb 3 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch /boot/boot.scr in usb:3...
** Bad device usb 3 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch boot.ini in mmc:0...
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, status=0x1bf2800
emmc/sd response timeout, cmd55, status=0x1bf2800
emmc/sd response timeout, cmd1, status=0x1bf2800
** Bad device mmc 0 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch boot.scr in mmc:0...
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, status=0x1bf2800
emmc/sd response timeout, cmd55, status=0x1bf2800
emmc/sd response timeout, cmd1, status=0x1bf2800
** Bad device mmc 0 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch /boot/boot.ini in mmc:0...
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, status=0x1bf2800
emmc/sd response timeout, cmd55, status=0x1bf2800
emmc/sd response timeout, cmd1, status=0x1bf2800
** Bad device mmc 0 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch /boot/boot.scr in mmc:0...
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, status=0x1bf2800
emmc/sd response timeout, cmd55, status=0x1bf2800
emmc/sd response timeout, cmd1, status=0x1bf2800
** Bad device mmc 0 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch boot.ini in mmc:1...
card out
** Bad device mmc 1 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch boot.scr in mmc:1...
card out
** Bad device mmc 1 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch /boot/boot.ini in mmc:1...
card out
** Bad device mmc 1 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch /boot/boot.scr in mmc:1...
card out
** Bad device mmc 1 **
## Executing script at 04000000
Wrong image format for "source" command
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, status=0x1bf2800
emmc/sd response timeout, cmd55, status=0x1bf2800
emmc/sd response timeout, cmd1, status=0x1bf2800
movi: not registered partition name, boot
movi - Read/write command from/to SD/MMC for ODROID board

Usage:
movi <read|write> <partition|sector> <offset> <address> [<length>]
    - <read|write>  the command to access the storage
    - <offset>  the offset from the start of given partiton in lba
    - <address>  the memory address to load/store from/to the stora
ge device
    - [<length>]  the size of the block to read/write in bytes
    - all parameters must be hexa-decimal only

movi: not registered partition name, dtbs
movi - Read/write command from/to SD/MMC for ODROID board

Usage:
movi <read|write> <partition|sector> <offset> <address> [<length>]
    - <read|write>  the command to access the storage
    - <offset>  the offset from the start of given partiton in lba
    - <address>  the memory address to load/store from/to the stora
ge device
    - [<length>]  the size of the block to read/write in bytes
    - all parameters must be hexa-decimal only

[rsvmem] get fdtaddr NULL!
rsvmem - reserve memory

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

rsvmem check failed
Bad Linux ARM64 Image magic!
ee_gate_off ...
Wrong Image Format for bootm command
ERROR: can't get kernel image!
[rsvmem] get fdtaddr NULL!
rsvmem - reserve memory

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

rsvmem check failed
ee_gate_on ...
card out
movi: not registered partition name, boot
movi - Read/write command from/to SD/MMC for ODROID board

Usage:
movi <read|write> <partition|sector> <offset> <address> [<length>]
    - <read|write>  the command to access the storage
    - <offset>  the offset from the start of given partiton in lba
    - <address>  the memory address to load/store from/to the stora
ge device
    - [<length>]  the size of the block to read/write in bytes
    - all parameters must be hexa-decimal only

movi: not registered partition name, dtbs
movi - Read/write command from/to SD/MMC for ODROID board

Usage:
movi <read|write> <partition|sector> <offset> <address> [<length>]
    - <read|write>  the command to access the storage
    - <offset>  the offset from the start of given partiton in lba
    - <address>  the memory address to load/store from/to the stora
ge device
    - [<length>]  the size of the block to read/write in bytes
    - all parameters must be hexa-decimal only

[rsvmem] get fdtaddr NULL!
rsvmem - reserve memory

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

rsvmem check failed
Bad Linux ARM64 Image magic!
ee_gate_off ...
Wrong Image Format for bootm command
ERROR: can't get kernel image!
[rsvmem] get fdtaddr NULL!
rsvmem - reserve memory

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

rsvmem check failed
ee_gate_on ...
Speed: 1000, full duplex
BOOTP broadcast 1
DHCP client bound to address 192.168.1.162 (74 ms)
Retrieving file: pxelinux.cfg/909802f2-a1dd-11e8-98d0-529269fb1459
Speed: 1000, full duplex
Using dwmac.ff3f0000 device
TFTP from server 192.168.1.2; our IP address is 192.168.1.162
Filename 'pxelinux.cfg/909802f2-a1dd-11e8-98d0-529269fb1459'.
Load address: 0x1070000
Loading: T 

After a reboot from uboot

reboot
reboot use default mode: normal
bl31 reboot reason: 0xd
bl31 reboot reason: 0x1
system cmd  1.
G12B:BL:6e7c85:7898ac;FEAT:E0F83180:402000;POC:B;RCY:0;SPINOR:0;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:0000c067
L3:14000020
B2:00402000
B1:e0f83180

TE: 58130

BL2 Built : 06:17:13, Jun 28 2019. g12b gf0505d7-dirty - qi.duan@dr
oid13

Board ID = 4
Set A53 clk to 24M
Set A73 clk to 24M
Set clk81 to 24M
A53 clk: 1200 MHz
A73 clk: 1200 MHz
CLK81: 166.6M
smccc: 00012aee
DDR driver_vesion: LPDDR4_PHY_V_0_1_14 build time: Jun 28 2019 06:1
7:09
board id: 4
Load FIP HDR from SPI, src: 0x00010000, des: 0xfffd0000, size: 0x00
004000, part: 0
fw parse done
Load ddrfw from SPI, src: 0x00030000, des: 0xfffd0000, size: 0x0000
c000, part: 0
Load ddrfw from SPI, src: 0x0002c000, des: 0xfffd0000, size: 0x0000
4000, part: 0
PIEI prepare done
fastboot data load
fastboot data verify
verify result: 255
Cfg max: 1, cur: 1. Board id: 255. Force loop cfg
DDR4 probe
ddr clk to 1320MHz
Load ddrfw from SPI, src: 0x00014000, des: 0xfffd0000, size: 0x0000
c000, part: 0
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
Load ddrfw from SPI, src: 0x00020000, des: 0xfffd0000, size: 0x0000
c000, part: 0
Check phy result
INFO : End of initialization
INFO : End of 2D read delay Voltage center optimization
INFO : End of 2D write delay Voltage center optimization
INFO : Training has run successfully!

R0_RxClkDly_Margin==94 ps 8
R0_TxDqDly_Margi==106 ps 9


R1_RxClkDly_Margin==0 ps 0
R1_TxDqDly_Margi==0 ps 0

 dwc_ddrphy_apb_wr((0<<20)|(2<<16)|(0<<12)|(0xb0):0001 
2D training succeed
auto size-- 65535DDR cs0 size: 2048MB
DDR cs1 size: 2048MB
DMC_DDR_CTRL: 00600024DDR size: 3928MB
cs0 DataBus test pass
cs1 DataBus test pass
cs0 AddrBus test pass
cs1 AddrBus test pass
 pre test  bdlr_100_average==435 bdlr_100_min==435 bdlr_100_max==43
5 bdlr_100_cur==435
 aft test  bdlr_100_average==435 bdlr_100_min==435 bdlr_100_max==43
5 bdlr_100_cur==435
non-sec scramble use zero key
ddr scramble enabled

100bdlr_step_size ps== 435
result report
boot times 1Enable ddr reg access
Load FIP HDR from SPI, src: 0x00010000, des: 0x01700000, size: 0x00
004000, part: 0
Load BL3X from SPI, src: 0x0003c000, des: 0x0172c000, size: 0x00094
c00, part: 0
0.0;M3 CHK:0;cm4_sp_mode 0
E30HDR
MVN_1=0x00000000
MVN_2=0x00000000
[Image: g12b_v1.1.3375-8f9c8a7 2019-01-24 10:44:46 guotai.shen@droi
d11-sz]
OPS=0x40
ring efuse init
chipver efuse init
29 0a 40 00 01 13 0f 00 00 07 31 32 54 52 4d 50 
[3.425250 Inits done]
secure task start!
high task start!
low task start!
run into bl31
NOTICE:  BL31: v1.3(release):ab8811b
NOTICE:  BL31: Built : 15:03:31, Feb 12 2019
NOTICE:  BL31: G12A normal boot!
NOTICE:  BL31: BL33 decompress pass
ERROR:   Error initializing runtime service opteed_fast


U-Boot 2015.01 (Oct 03 2019 - 13:03:26)

DRAM:  3.5 GiB
Relocation Offset is: d6ef3000
spi_post_bind(spifc): req_seq = 0
register usb cfg[0][1] = 00000000d7f84a50
MMC:   aml_priv->desc_buf = 0x00000000d3ee37c0
aml_priv->desc_buf = 0x00000000d3ee5b00
SDIO Port C: 0, SDIO Port B: 1
spifc_probe: reg=00000000ffd14000, mem_map=00000000f6000000
SF: Detected MX25U6435F with page size 256 Bytes, erase size 64 KiB
, total 8 MiB
In:    serial
Out:   serial
Err:   serial
vpu: error: vpu: check dts: FDT_ERR_BADMAGIC, load default paramete
rs
vpu: driver version: v20190313
vpu: detect chip type: 9
vpu: clk_level default: 7(666667000Hz), max: 7(666667000Hz)
vpu: clk_level = 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: g12a/b osd1 matrix rgb2yuv ..............
vpp: g12a/b osd2 matrix rgb2yuv..............
vpp: g12a/b osd3 matrix rgb2yuv..............
cvbs: cpuid:0x29
cvbs_config_hdmipll_g12a
cvbs_set_vid2_clk
** Bad device specification mmc -1 **
** Bad device specification mmc -1 **
movi: not registered partition name, logo
movi - Read/write command from/to SD/MMC for ODROID board

Usage:
movi <read|write> <partition|sector> <offset> <address> [<length>]
    - <read|write>  the command to access the storage
    - <offset>  the offset from the start of given partiton in lba
    - <address>  the memory address to load/store from/to the stora
ge device
    - [<length>]  the size of the block to read/write in bytes
    - all parameters must be hexa-decimal only

[OSD]check dts: FDT_ERR_BADMAGIC, load default fb_addr parameters
[OSD]set initrd_high: 0x3d800000
[OSD]fb_addr for logo: 0x3d800000
[OSD]check dts: FDT_ERR_BADMAGIC, load default fb_addr parameters
[OSD]fb_addr for logo: 0x3d800000
[OSD]VPP_OFIFO_SIZE:0xfff01fff
[CANVAS]canvas init
[CANVAS]addr=0x3d800000 width=5760, height=2160
[OSD]wait_vsync_wakeup exit
cvbs: outputmode[1080p60hz] is invalid
vpp: vpp_matrix_update: 2
set hdmitx VIC = 16
config HPLL = 5940000 frac_rate = 1
HPLL: 0x3b3a04f7
HPLL: 0x1b3a04f7
HPLLv1: 0xdb3a04f7
config HPLL done
j = 6  vid_clk_div = 1
hdmitx phy setting done
hdmitx: set enc for VIC: 16
enc_vpu_bridge_reset[1312]
rx version is 1.4 or below  div=10
Net:   dwmac.ff3f0000
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, status=0x1bf2800
emmc/sd response timeout, cmd55, status=0x1bf2800
emmc/sd response timeout, cmd1, status=0x1bf2800
Hit Enter or space or Ctrl+C key to stop autoboot -- :  0 
(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... 1 Storage Device(s) foun
d
## Attempting fetch boot.ini in usb:0...
reading boot.ini
709 bytes read in 32 ms (21.5 KiB/s)
## Executing script at 04000000
reading zImage
21262344 bytes read in 726 ms (27.9 MiB/s)
reading uInitrd
7935663 bytes read in 270 ms (28 MiB/s)
reading /dtb/meson-g12b-odroid-n2.dtb
45516 bytes read in 35 ms (1.2 MiB/s)
libfdt fdt_path_offset() returned FDT_ERR_NOTFOUND
[rsvmem] fdt get prop fail.
## Loading init Ramdisk from Legacy Image at 03700000 ...
   Image Name:   uInitrd
   Image Type:   AArch64 Linux RAMDisk Image (gzip compressed)
   Data Size:    7935599 Bytes = 7.6 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
load dtb from 0x1000000 ......
## Flattened Device Tree blob at 01000000
   Booting using the fdt blob at 0x1000000
libfdt fdt_path_offset() returned FDT_ERR_BADPATH
libfdt fdt_path_offset() returned FDT_ERR_NOTFOUND
[rsvmem] fdt get prop fail.
   Loading Ramdisk to 3d06e000, end 3d7ff66f ... OK
   Loading Device Tree to 000000001fff1000, end 000000001ffff1cb ..
. OK

Starting kernel ...

uboot time: 10642343 us
[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd0
34]
[    0.000000] Linux version 5.3.0-aml-g12 (root@vbox) (gcc version
 7.4.1 20181213 [linaro-7.4-2019.02 revision 56ec6f6b99cc167ff0c2f8
e1a2eed33b1edc85d4] (Linaro GCC 7.4-2019.02)) #5.98 SMP PREEMPT Wed

 

Share this post


Link to post
Share on other sites

Try leaving one startup option listed (usb), when the system stops after the first attempt to start from USB, run the manual command "restart usb" in u-boot (the correct command format for USB can be seen in the output of the command "help"). and see if the device appears in the list or not.

 

 

found scanning usb for storage devices... 1 Storage Device(s) foun

Share this post


Link to post
Share on other sites

That's quite strange.

 

From uboot:

 

odroidn2#usb storage
No storage devices, perhaps not 'usb start'ed..?

odroidn2#usb tree
USB device tree:
  1  Hub (5 Gb/s, 0mA)
  |  u-boot XHCI Host Controller 
  |
  +-2  Hub (480 Mb/s, 100mA)
       GenesysLogic USB2.1 Hub 

odroidn2#usb info
1: Hub,  USB Revision 3.0
 - u-boot XHCI Host Controller 
 - Class: Hub
 - PacketSize: 9  Configurations: 1
 - Vendor: 0x0000  Product 0x0000 Version 1.0
   Configuration: 1
   - Interfaces: 1 Self Powered 0mA
     Interface: 0
     - Alternate Setting 0, Endpoints: 1
     - Class Hub
     - Endpoint 1 In Interrupt MaxPacket 8 Interval 255ms

2: Hub,  USB Revision 2.10
 - GenesysLogic USB2.1 Hub 
 - Class: Hub
 - PacketSize: 64  Configurations: 1
 - Vendor: 0x05e3  Product 0x0610 Version 147.4
   Configuration: 1
   - Interfaces: 1 Self Powered Remote Wakeup 100mA
     Interface: 0
     - Alternate Setting 0, Endpoints: 1
     - Class Hub
     - Endpoint 1 In Interrupt MaxPacket 1 Interval 12ms
     - Endpoint 1 In Interrupt MaxPacket 1 Interval 12ms

odroidn2#usb start
(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... 1 Storage Device(s) found

odroidn2#usb storage
  Device 0: Vendor: External Rev: 0204 Prod: USB3.0          
            Type: Hard Disk
            Capacity: 238475.1 MB = 232.8 GB (488397168 x 512)

Scanning usb always finds the storage.

Share this post


Link to post
Share on other sites

I don't understand why the SSD is seen as connected to an USB 2.0 Hub at 480Mb/s

I use a USB 3.0 enclosure directly connected to the N2

 

odroidn2#usb tree
USB device tree:
  1  Hub (5 Gb/s, 0mA)
  |  u-boot XHCI Host Controller 
  |
  +-2  Hub (480 Mb/s, 100mA)
    |  GenesysLogic USB2.1 Hub 
    |
    +-3  Mass Storage (480 Mb/s, 500mA)
         JMicron External USB 3.0 201703310007F

 

Share this post


Link to post
Share on other sites

Try to write the image to any USB flash drive and check how it will be determined and how it will work with the start of the system. What SSD hardware do you use ?

Share this post


Link to post
Share on other sites
13 hours ago, Viald said:

I don't understand why the SSD is seen as connected to an USB 2.0 Hub at 480Mb/s

I use a USB 3.0 enclosure directly connected to the N2

Maybe it's your USB-SSD adapter.  It only works in USB 2.0 mode.

Share this post


Link to post
Share on other sites
On 10/2/2019 at 6:48 PM, Viald said:

I'm surprised that Qstat or others users succeed in running Armbian image with Petitboot.

Wow this thread expanded :) Sorry for no reply, Ive been away with work

 

After reading through your problems I have realised a problem with my advice. My own Armbian builds (and balbes150) use a separate boot partition whereas Armbian's official N2 build does not. This means the boot.init are in the root of the first partition of the uSD, eMMC or USB SSD and is detected by both petitboot and balbes 0.4 u-boot image defaults

 

@Viald I have just tested this again with balbes latest u-boot and with a Samsung 860 Pro SSD and a 2.5" mechanical HD both in a USB3 SATA enclosure. For both devices its working as expected (both the official Armbian N2 build and @balbes150 AMLG12 build 5.98 disco image)

 

Maybe you have too many USB devices plugged in and dont have enough power left to properly initialise the your SSD? Can you try with all the other USB devices removed and the SSD plugged directly into the N2 (no USB hub) and see if you still get: "0 Storage Device(s) found"

 

And also what is the bridge chip in the USB <-> SATA adaptor that you use?  (lsusb e.g. Bus 001 Device 004: ID 152d:2339 JMicron USA Technology Corp. JM20339 SATA Bridge)

 

Share this post


Link to post
Share on other sites
10 hours ago, balbes150 said:

Maybe it's your USB-SSD adapter.  It only works in USB 2.0 mode.

From uboot:

odroidn2#usb tree
USB device tree:
  1  Hub (5 Gb/s, 0mA)
  |  u-boot XHCI Host Controller 
  |
  +-2  Hub (480 Mb/s, 100mA)
    |  GenesysLogic USB2.1 Hub 
    |
    +-3  Mass Storage (480 Mb/s, 500mA)
         JMicron External USB 3.0 201703310007F

From Armbian:

/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 5000M
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/4p, 5000M
        |__ Port 1: Dev 3, If 0, Class=Mass Storage, Driver=usb-storage, 5000M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/2p, 480M
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/4p, 480M

Impossible, my SSD is well detected as USB 3.0 at 5000M. It seems that uboot has an issue with the driver.

Share this post


Link to post
Share on other sites
9 hours ago, qstaq said:

Maybe you have too many USB devices plugged in and dont have enough power left to properly initialise the your SSD? Can you try with all the other USB devices removed and the SSD plugged directly into the N2 (no USB hub) and see if you still get: "0 Storage Device(s) found"

 

And also what is the bridge chip in the USB <-> SATA adaptor that you use?  (lsusb e.g. Bus 001 Device 004: ID 152d:2339 JMicron USA Technology Corp. JM20339 SATA Bridge)

 

My test is done with only the SSD directly connected to the N2

 

Bus 002 Device 003: ID 152d:0578 JMicron Technology Corp. / JMicron USA Technology Corp. JMS567 SATA 6Gb/s bridge

 

Share this post


Link to post
Share on other sites

Now it makes sense! Return your USB enclosure and get a different one. The JMS567 (152d:0578) has many known problems under both linux and windows

 

Devices that use JMicron's own firmware function better and have some usb-quirks set in the driver to work round its UAS, power and USB detection issues. The cheap Chinese versions (Orico, Startech, etc) usually have a modified firmware that in most cases doesn't work properly, especially with linux. Linux sees the device is of 152d:0578 and expects to be talking to the official JMicron firmware but most of the JMS567 devices don't actually run this firmware

 

Google search for "JMS567 152d:0578 Linux usb3 error" and you will find literally hundres of people having the similar type of issues as you

 

https://github.com/raspberrypi/linux/issues/3026

https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1789589

https://www.raspberrypi.org/forums/viewtopic.php?t=246989

https://forums.linuxmint.com/viewtopic.php?t=230562

 

You might get basic functionality by disabling UAS and playing around with different usb-storage quirk options but it's a bridge chip that has serious problems in most of its implementations and really the only good place for it is the bin

Share this post


Link to post
Share on other sites

Thank you for your search and feedback. I will buy a new one tomorrow and do new tests. 

For information, I have no problem when testing with an USB flash drive. That sounds effectively an issue with the enclosure.

Share this post


Link to post
Share on other sites

U-boot has a size limit and cannot include all possible settings (drivers). U-boot is more strict about the proper operation of devices. When you run the kernel itself, there may be new and complete versions of all possible drivers that can work differently with the hardware. Alternatively, you can add additional commands to the u-boot variables to work specifically with your USB variant. This is easily done through the same script setting the startup parameters.

Share this post


Link to post
Share on other sites

I saw some options about usb boot. I don't know what are their impact. Is there any documentation ?

Share this post


Link to post
Share on other sites
33 minutes ago, Viald said:

I saw some options about usb boot. I don't know what are their impact. Is there any documentation ?

 

Add these lines (up to line "saveenv") to the order setup script and check if your device will be able to start. Show the UART output after adding these parameters.

 

setenv boot_order "usb1 usb2 usb3 usb4 usb mmc rawimage pxe spi"

setenv boot_usb1 "usb start;"

setenv boot_usb2 "usb storage;"

setenv boot_usb3 "usb tree;"

setenv boot_usb4 "usb info;"

 

 

Share this post


Link to post
Share on other sites

Here it is

G12B:BL:6e7c85:7898ac;FEAT:E0F83180:402000;POC:B;RCY:0;SPINOR:0;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:0000c067
L3:14000020
B2:00402000
B1:e0f83180

TE: 58313

BL2 Built : 06:17:13, Jun 28 2019. g12b gf0505d7-dirty - qi.duan@dr
oid13

Board ID = 4
Set A53 clk to 24M
Set A73 clk to 24M
Set clk81 to 24M
A53 clk: 1200 MHz
A73 clk: 1200 MHz
CLK81: 166.6M
smccc: 00012ba5
DDR driver_vesion: LPDDR4_PHY_V_0_1_14 build time: Jun 28 2019 06:1
7:09
board id: 4
Load FIP HDR from SPI, src: 0x00010000, des: 0xfffd0000, size: 0x00
004000, part: 0
fw parse done
Load ddrfw from SPI, src: 0x00030000, des: 0xfffd0000, size: 0x0000
c000, part: 0
Load ddrfw from SPI, src: 0x0002c000, des: 0xfffd0000, size: 0x0000
4000, part: 0
PIEI prepare done
fastboot data load
fastboot data verify
verify result: 255
Cfg max: 1, cur: 1. Board id: 255. Force loop cfg
DDR4 probe
ddr clk to 1320MHz
Load ddrfw from SPI, src: 0x00014000, des: 0xfffd0000, size: 0x0000
c000, part: 0
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
Load ddrfw from SPI, src: 0x00020000, des: 0xfffd0000, size: 0x0000
c000, part: 0
Check phy result
INFO : End of initialization
INFO : End of 2D read delay Voltage center optimization
INFO : End of 2D write delay Voltage center optimization
INFO : Training has run successfully!

R0_RxClkDly_Margin==82 ps 7
R0_TxDqDly_Margi==106 ps 9


R1_RxClkDly_Margin==0 ps 0
R1_TxDqDly_Margi==0 ps 0

 dwc_ddrphy_apb_wr((0<<20)|(2<<16)|(0<<12)|(0xb0):0001 
2D training succeed
auto size-- 65535DDR cs0 size: 2048MB
DDR cs1 size: 2048MB
DMC_DDR_CTRL: 00600024DDR size: 3928MB
cs0 DataBus test pass
cs1 DataBus test pass
cs0 AddrBus test pass
cs1 AddrBus test pass
 pre test  bdlr_100_average==435 bdlr_100_min==435 bdlr_100_max==43
5 bdlr_100_cur==435
 aft test  bdlr_100_average==435 bdlr_100_min==435 bdlr_100_max==43
5 bdlr_100_cur==435
non-sec scramble use zero key
ddr scramble enabled

100bdlr_step_size ps== 435
result report
boot times 0Enable ddr reg access
Load FIP HDR from SPI, src: 0x00010000, des: 0x01700000, size: 0x00
004000, part: 0
Load BL3X from SPI, src: 0x0003c000, des: 0x0172c000, size: 0x00094
c00, part: 0
0.0;M3 CHK:0;cm4_sp_mode 0
E30HDR
MVN_1=0x00000000
MVN_2=0x00000000
[Image: g12b_v1.1.3375-8f9c8a7 2019-01-24 10:44:46 guotai.shen@droi
d11-sz]
OPS=0x40
ring efuse init
chipver efuse init
29 0a 40 00 01 13 0f 00 00 07 31 32 54 52 4d 50 
[0.019859 Inits done]
secure task start!
high task start!
low task start!
run into bl31
NOTICE:  BL31: v1.3(release):ab8811b
NOTICE:  BL31: Built : 15:03:31, Feb 12 2019
NOTICE:  BL31: G12A normal boot!
NOTICE:  BL31: BL33 decompress pass
ERROR:   Error initializing runtime service opteed_fast


U-Boot 2015.01 (Oct 03 2019 - 13:03:26)

DRAM:  3.5 GiB
Relocation Offset is: d6ef3000
spi_post_bind(spifc): req_seq = 0
register usb cfg[0][1] = 00000000d7f84a50
MMC:   aml_priv->desc_buf = 0x00000000d3ee37c0
aml_priv->desc_buf = 0x00000000d3ee5b00
SDIO Port C: 0, SDIO Port B: 1
spifc_probe: reg=00000000ffd14000, mem_map=00000000f6000000
SF: Detected MX25U6435F with page size 256 Bytes, erase size 64 KiB
, total 8 MiB
In:    serial
Out:   serial
Err:   serial
vpu: error: vpu: check dts: FDT_ERR_BADMAGIC, load default paramete
rs
vpu: driver version: v20190313
vpu: detect chip type: 9
vpu: clk_level default: 7(666667000Hz), max: 7(666667000Hz)
vpu: clk_level = 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: g12a/b osd1 matrix rgb2yuv ..............
vpp: g12a/b osd2 matrix rgb2yuv..............
vpp: g12a/b osd3 matrix rgb2yuv..............
cvbs: cpuid:0x29
cvbs_config_hdmipll_g12a
cvbs_set_vid2_clk
** Bad device specification mmc -1 **
** Bad device specification mmc -1 **
movi: not registered partition name, logo
movi - Read/write command from/to SD/MMC for ODROID board

Usage:
movi <read|write> <partition|sector> <offset> <address> [<length>]
    - <read|write>  the command to access the storage
    - <offset>  the offset from the start of given partiton in lba
    - <address>  the memory address to load/store from/to the stora
ge device
    - [<length>]  the size of the block to read/write in bytes
    - all parameters must be hexa-decimal only

[OSD]check dts: FDT_ERR_BADMAGIC, load default fb_addr parameters
[OSD]set initrd_high: 0x3d800000
[OSD]fb_addr for logo: 0x3d800000
[OSD]check dts: FDT_ERR_BADMAGIC, load default fb_addr parameters
[OSD]fb_addr for logo: 0x3d800000
[OSD]VPP_OFIFO_SIZE:0xfff01fff
[CANVAS]canvas init
[CANVAS]addr=0x3d800000 width=5760, height=2160
[OSD]wait_vsync_wakeup exit
cvbs: outputmode[1080p60hz] is invalid
vpp: vpp_matrix_update: 2
set hdmitx VIC = 16
config HPLL = 5940000 frac_rate = 1
HPLL: 0x3b3a04f7
HPLL: 0x1b3a04f7
HPLLv1: 0xdb3a04f7
config HPLL done
j = 6  vid_clk_div = 1
hdmitx phy setting done
hdmitx: set enc for VIC: 16
enc_vpu_bridge_reset[1312]
rx version is 1.4 or below  div=10
Net:   dwmac.ff3f0000
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, status=0x1bf2800
emmc/sd response timeout, cmd55, status=0x1bf2800
emmc/sd response timeout, cmd1, status=0x1bf2800
Hit Enter or space or Ctrl+C key to stop autoboot -- :  0 
(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) foun
d
No storage devices, perhaps not 'usb start'ed..?
USB device tree:
  1  Hub (5 Gb/s, 0mA)
  |  u-boot XHCI Host Controller 
  |
  +-2  Hub (480 Mb/s, 100mA)
       GenesysLogic USB2.1 Hub 
     
1: Hub,  USB Revision 3.0
 - u-boot XHCI Host Controller 
 - Class: Hub
 - PacketSize: 9  Configurations: 1
 - Vendor: 0x0000  Product 0x0000 Version 1.0
   Configuration: 1
   - Interfaces: 1 Self Powered 0mA
     Interface: 0
     - Alternate Setting 0, Endpoints: 1
     - Class Hub
     - Endpoint 1 In Interrupt MaxPacket 8 Interval 255ms

2: Hub,  USB Revision 2.10
 - GenesysLogic USB2.1 Hub 
 - Class: Hub
 - PacketSize: 64  Configurations: 1
 - Vendor: 0x05e3  Product 0x0610 Version 147.4
   Configuration: 1
   - Interfaces: 1 Self Powered Remote Wakeup 100mA
     Interface: 0
     - Alternate Setting 0, Endpoints: 1
     - Class Hub
     - Endpoint 1 In Interrupt MaxPacket 1 Interval 12ms
     - Endpoint 1 In Interrupt MaxPacket 1 Interval 12ms

(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) foun
d
## Attempting fetch boot.ini in usb:0...
** Bad device usb 0 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch boot.scr in usb:0...
** Bad device usb 0 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch /boot/boot.ini in usb:0...
** Bad device usb 0 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch /boot/boot.scr in usb:0...
** Bad device usb 0 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch boot.ini in usb:1...
** Bad device usb 1 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch boot.scr in usb:1...
** Bad device usb 1 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch /boot/boot.ini in usb:1...
** Bad device usb 1 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch /boot/boot.scr in usb:1...
** Bad device usb 1 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch boot.ini in usb:2...
** Bad device usb 2 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch boot.scr in usb:2...
** Bad device usb 2 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch /boot/boot.ini in usb:2...
** Bad device usb 2 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch /boot/boot.scr in usb:2...
** Bad device usb 2 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch boot.ini in usb:3...
** Bad device usb 3 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch boot.scr in usb:3...
** Bad device usb 3 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch /boot/boot.ini in usb:3...
** Bad device usb 3 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch /boot/boot.scr in usb:3...
** Bad device usb 3 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch boot.ini in mmc:0...
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, status=0x1bf2800
emmc/sd response timeout, cmd55, status=0x1bf2800
emmc/sd response timeout, cmd1, status=0x1bf2800
** Bad device mmc 0 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch boot.scr in mmc:0...
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, status=0x1bf2800
emmc/sd response timeout, cmd55, status=0x1bf2800
emmc/sd response timeout, cmd1, status=0x1bf2800
** Bad device mmc 0 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch /boot/boot.ini in mmc:0...
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, status=0x1bf2800
emmc/sd response timeout, cmd55, status=0x1bf2800
emmc/sd response timeout, cmd1, status=0x1bf2800
** Bad device mmc 0 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch /boot/boot.scr in mmc:0...
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, status=0x1bf2800
emmc/sd response timeout, cmd55, status=0x1bf2800
emmc/sd response timeout, cmd1, status=0x1bf2800
** Bad device mmc 0 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch boot.ini in mmc:1...
card out
** Bad device mmc 1 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch boot.scr in mmc:1...
card out
** Bad device mmc 1 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch /boot/boot.ini in mmc:1...
card out
** Bad device mmc 1 **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch /boot/boot.scr in mmc:1...
card out
** Bad device mmc 1 **
## Executing script at 04000000
Wrong image format for "source" command
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, status=0x1bf2800
emmc/sd response timeout, cmd55, status=0x1bf2800
emmc/sd response timeout, cmd1, status=0x1bf2800
movi: not registered partition name, boot
movi - Read/write command from/to SD/MMC for ODROID board

Usage:
movi <read|write> <partition|sector> <offset> <address> [<length>]
    - <read|write>  the command to access the storage
    - <offset>  the offset from the start of given partiton in lba
    - <address>  the memory address to load/store from/to the stora
ge device
    - [<length>]  the size of the block to read/write in bytes
    - all parameters must be hexa-decimal only

movi: not registered partition name, dtbs
movi - Read/write command from/to SD/MMC for ODROID board

Usage:
movi <read|write> <partition|sector> <offset> <address> [<length>]
    - <read|write>  the command to access the storage
    - <offset>  the offset from the start of given partiton in lba
    - <address>  the memory address to load/store from/to the stora
ge device
    - [<length>]  the size of the block to read/write in bytes
    - all parameters must be hexa-decimal only

[rsvmem] get fdtaddr NULL!
rsvmem - reserve memory

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

rsvmem check failed
Bad Linux ARM64 Image magic!
ee_gate_off ...
Wrong Image Format for bootm command
ERROR: can't get kernel image!
[rsvmem] get fdtaddr NULL!
rsvmem - reserve memory

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

rsvmem check failed
ee_gate_on ...
card out
movi: not registered partition name, boot
movi - Read/write command from/to SD/MMC for ODROID board

Usage:
movi <read|write> <partition|sector> <offset> <address> [<length>]
    - <read|write>  the command to access the storage
    - <offset>  the offset from the start of given partiton in lba
    - <address>  the memory address to load/store from/to the stora
ge device
    - [<length>]  the size of the block to read/write in bytes
    - all parameters must be hexa-decimal only

movi: not registered partition name, dtbs
movi - Read/write command from/to SD/MMC for ODROID board

Usage:
movi <read|write> <partition|sector> <offset> <address> [<length>]
    - <read|write>  the command to access the storage
    - <offset>  the offset from the start of given partiton in lba
    - <address>  the memory address to load/store from/to the stora
ge device
    - [<length>]  the size of the block to read/write in bytes
    - all parameters must be hexa-decimal only

[rsvmem] get fdtaddr NULL!
rsvmem - reserve memory

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

rsvmem check failed
Bad Linux ARM64 Image magic!
ee_gate_off ...
Wrong Image Format for bootm command
ERROR: can't get kernel image!
[rsvmem] get fdtaddr NULL!
rsvmem - reserve memory

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

rsvmem check failed
ee_gate_on ...
Speed: 1000, full duplex
BOOTP broadcast 1
BOOTP broadcast 2
BOOTP broadcast 3
DHCP client bound to address 192.168.1.162 (822 ms)
Retrieving file: pxelinux.cfg/909802f2-a1dd-11e8-98d0-529269fb1459
Speed: 1000, full duplex
Using dwmac.ff3f0000 device
TFTP from server 192.168.1.2; our IP address is 192.168.1.162
Filename 'pxelinux.cfg/909802f2-a1dd-11e8-98d0-529269fb1459'.
Load address: 0x1070000
Loading: T T 

 

Share this post


Link to post
Share on other sites

For information, I just did tests with my new enclosure and it works well. The SSD is well detected at each boot. :thumbup:

I noticed that the usb scanning duration at boot time is much longer than with the first enclosure.

The chipset JMS567 is the exactly the same than the old one. But it's not the same brand.

Share this post


Link to post
Share on other sites

Does Armbian support UAS driver ?

The driver used for my disk is usb-storage

Port 1: Dev 4, If 0, Class=Mass Storage, Driver=usb-storage, 5000M

When I plug it on Ubuntu, the driver used is UAS.

Port 1: Dev 3, If 0, Class=Mass Storage, Driver=uas, 5000M

 

Share this post


Link to post
Share on other sites

Excellent, glad its working! 

 

On 10/8/2019 at 7:11 PM, Viald said:

Does Armbian support UAS driver ?

 

Yes it certainly does. It should behave just the same as x86 debian / ubuntu in that regard. Are you still having problems loading the uas supported driver?

Share this post


Link to post
Share on other sites

I think that the driver is not available on my release

root@jdm:~# lsmod
Module                  Size  Used by
cdc_acm                36864  2
bnep                   32768  2
zstd                   16384  6
zram                   32768  2
btusb                  53248  0
btrtl                  24576  1 btusb
btbcm                  16384  1 btusb
btintel                28672  1 btusb
bluetooth             552960  26 btrtl,btintel,btbcm,bnep,btusb
ecdh_generic           16384  2 bluetooth
ecc                    32768  1 ecdh_generic
ftdi_sio               65536  1
rfkill                 28672  3 bluetooth
option                 57344  0
usb_wwan               24576  1 option
usbserial              53248  5 ftdi_sio,usb_wwan,option
crct10dif_ce           16384  1
snd_soc_meson_axg_sound_card    20480  1
ir_nec_decoder         20480  0
dw_hdmi_cec            16384  0
meson_ir               16384  0
ao_cec_g12a            16384  0
snd_soc_meson_axg_tdmout    20480  1
snd_soc_meson_axg_frddr    24576  3
snd_soc_meson_axg_fifo    20480  1 snd_soc_meson_axg_frddr
snd_soc_meson_axg_tdm_interface    16384  2 snd_soc_meson_axg_sound_card
snd_soc_meson_axg_tdm_formatter    16384  2 snd_soc_meson_axg_tdm_interface,snd_soc_meson_axg_tdmout
ip_tables              32768  0
x_tables               40960  1 ip_tables
ipv6                  503808  54
nf_defrag_ipv6         24576  1 ipv6
crc_ccitt              16384  1 ipv6
rtc_pcf8563            24576  0
mdio_mux_meson_g12a    16384  0


root@jdm:~# modprobe uas
modprobe: FATAL: Module uas not found in directory /lib/modules/5.3.0-aml-g12

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
1 1