Jump to content

Recommended Posts

Posted

Hello, I have tested Armbian with SD card without issue. 

I'm wondering if it's possible to do the same using SSD.

SSD is much more reliable and faster than SD card.

I can do it with the Ubuntu release from Odroid using petitboot, but it seems that Armbian isn't compatible with petitboot.

 

Thank you

 

Posted

Yes. Its simple on the N2 :)

 

You can use HardKernel's Petitboot SPI Image to kexec boot from the SSD (https://wiki.odroid.com/odroid-n2/os_images/petitboot). Make sure you have the latest version of HK's Petitboot image (dev.20190705) flashed to the SPI chip, earlier versions have some problems. You can then set SPI as the default boot option and then boot into petitboot and set the ssd install as the default or only boot option. If petitboot cant find a uSD or eMMC installation, it will autoboot from the USB/SSD install regardless

 

A better, but unsupported, option (the ability to boot non-kexec kernels and a much simpler boot process) is to flash the SPI with @balbes150 odroid-n2 SPI u-boot image from here: https://yadi.sk/d/pHxaRAs-tZiei/UPDATE_U-BOOT_odroid_n2

Prepare the SPI boot recovery image update from the HK link above on to a uSD card. Before you flash it replace the 8MB spiboot.img file that got created on the uSD card with the spiboot.img from the balbes150 yandisk repo. This will leave you with an easily configurable u-boot running from the uSD card which allows you to boot a kernel from uSD, eMMC or USB

Posted

Thank you for your help.

I have already the lasted petitboot version.

I had flashed my SSD with the last Armbian image, but when I try to boot, petitboot detects the sda1 but doesn't start Armbian boot, with this message "Failed to launch petitboot, dropping to a shell"

Posted

The second method doesn't work as well. But the boot log is more verbose.

Can't find the boot.ini :huh:

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: 58166

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: 00012b12
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 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 (Sep 17 2019 - 15:41:09)

DRAM:  3.5 GiB
Relocation Offset is: d6ef3000
spi_post_bind(spifc): req_seq = 0
register usb cfg[0][1] = 00000000d7f84a30
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 
## 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.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
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 ...
(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... 4 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) foun
d
## Attempting fetch boot.ini in usb:0...
** File not found boot.ini **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch boot.scr in usb:0...
** File not found boot.scr **
## 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.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.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
dwmac.ff3f0000 Waiting for PHY auto negotiation to complete........
. TIMEOUT !
dwmac.ff3f0000: No link.
Retrieving file: pxelinux.cfg/909802f2-a1dd-11e8-98d0-529269fb1459
dwmac.ff3f0000 Waiting for PHY auto negotiation to complete.

 

Posted

I tried Buster server, Buster minimal and Stretch server, freshly downloaded yesterday.

I found a workaround (not perfect) here https://forum.odroid.com/viewtopic.php?f=179&t=34959 from Tobetter by moving /boot/boot.ini file in root directory.

Petitboot searches boot.ini file in all root partitions. I'm surprised that Qstat or others users succeed in running Armbian image with Petitboot.

But I have a non blocking error at boot time running Buster minimal

[    1.928207@2] Initramfs unpacking failed: junk in compressed archive

 

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

It's not an issue from the N2 or Petitboot. I just tried the last Ubuntu image from Odroid and it works well.

This is solely a Piteboot issue. It is not able to start the system normally, because it works after u-boot. Piteboot it works only with predefined scenarios, the information about which it laid to Piteboot. If you try to use your startup option, it won't be able to work with it properly. Only direct use of u-boot ensures that any user script runs correctly. If you've used SPIboot, It's capable of running any script in any combination of media.

 

12 hours ago, Viald said:

I tried Buster server, Buster minimal and Stretch server, freshly downloaded yesterday.

I found a workaround (not perfect) here https://forum.odroid.com/viewtopic.php?f=179&t=34959 from Tobetter by moving /boot/boot.ini file in root directory.

Petitboot searches boot.ini file in all root partitions. I'm surprised that Qstat or others users succeed in running Armbian image with Petitboot.

But I have a non blocking error at boot time running Buster minimal

you did not specify the exact name of the image you are using.

Posted

You can also use the latest version of SPIboot, which adds support for official Armbian images (copy " boot.ini " manual to root is no longer required). :)

 

 

 

Posted

I tried the last SPIboot release with the same Armbian image unfortunately it doesn't work.

 

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: 58166

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: 00012b12
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==440 bdlr_100_min==440 bdlr_100_max==44
0 bdlr_100_cur==440
 aft test  bdlr_100_average==440 bdlr_100_min==440 bdlr_100_max==44
0 bdlr_100_cur==440
non-sec scramble use zero key
ddr scramble enabled

100bdlr_step_size ps== 440
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 
## 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 ...
(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... 4 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) foun
d
## Attempting fetch boot.ini in usb:0...
** File not found boot.ini **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch boot.scr in usb:0...
** File not found boot.scr **
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch /boot/boot.ini in usb:0...
4447 bytes read in 212 ms (19.5 KiB/s)
## Executing script at 04000000
Wrong image format for "source" command
## Attempting fetch /boot/boot.scr in usb:0...
** File not found /boot/boot.scr **
## 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
dwmac.ff3f0000 Waiting for PHY auto negotiation to complete........
. TIMEOUT !
dwmac.ff3f0000: No link.
Retrieving file: pxelinux.cfg/909802f2-a1dd-11e8-98d0-529269fb1459
dwmac.ff3f0000 Waiting for PHY auto negotiation to complete..

 

 

My boot.ini file (the one from the image)

 

setenv rootdev "UUID=3870c6cd-7196-4bba-988d-d233498a04ae"
setenv rootfstype "ext4"

ODROIDN2-UBOOT-CONFIG

# Default Console Device Setting
setenv condev "console=ttyS0,115200n8 console=tty1 loglevel=1"   # on both

# Auto Detection of Monitor settings based on your Screen information
setenv display_autodetect "true"

# HDMI Mode
# Resolution Configuration
#    Symbol             | Resolution
# ----------------------+-------------
#    "480x320p60hz"     | 480x320 Progressive 60Hz
#    "480p60hz"         | 720x480 Progressive 60Hz
#    "576p50hz"         | 720x576 Progressive 50Hz
#    "720p60hz"         | 1280x720 Progressive 60Hz
#    "720p50hz"         | 1280x720 Progressive 50Hz
#    "1080p60hz"        | 1920x1080 Progressive 60Hz
#    "1080p50hz"        | 1920x1080 Progressive 50Hz
#    "1080p30hz"        | 1920x1080 Progressive 30Hz
#    "1080p24hz"        | 1920x1080 Progressive 24Hz
#    "1080i60hz"        | 1920x1080 Interlaced 60Hz
#    "1080i50hz"        | 1920x1080 Interlaced 50Hz
#    "2160p60hz"        | 3840x2160 Progressive 60Hz
#    "2160p50hz"        | 3840x2160 Progressive 50Hz
#    "2160p30hz"        | 3840x2160 Progressive 30Hz
#    "2160p25hz"        | 3840x2160 Progressive 25Hz
#    "2160p24hz"        | 3840x2160 Progressive 24Hz
#    "smpte24hz"        | 3840x2160 Progressive 24Hz SMPTE
#    "2160p60hz420"     | 3840x2160 Progressive 60Hz YCbCr 4:2:0
#    "2160p50hz420"     | 3840x2160 Progressive 50Hz YCbCr 4:2:0
#    "640x480p60hz"     | 640x480 Progressive 60Hz
#    "800x480p60hz"     | 800x480 Progressive 60Hz
#    "800x600p60hz"     | 800x600 Progressive 60Hz
#    "1024x600p60hz"    | 1024x600 Progressive 60Hz
#    "1024x768p60hz"    | 1024x768 Progressive 60Hz
#    "1280x800p60hz"    | 1280x800 Progressive 60Hz
#    "1280x1024p60hz"   | 1280x1024 Progressive 60Hz
#    "1360x768p60hz"    | 1360x768 Progressive 60Hz
#    "1440x900p60hz"    | 1440x900 Progressive 60Hz
#    "1600x900p60hz"    | 1600x900 Progressive 60Hz
#    "1600x1200p60hz"   | 1600x1200 Progressive 60Hz
#    "1680x1050p60hz"   | 1680x1050 Progressive 60Hz
#    "1920x1200p60hz"   | 1920x1200 Progressive 60Hz
#    "2560x1080p60hz"   | 2560x1080 Progressive 60Hz
#    "2560x1440p60hz"   | 2560x1440 Progressive 60Hz
#    "2560x1600p60hz"   | 2560x1600 Progressive 60Hz
#    "3440x1440p60hz"   | 3440x1440 Progressive 60Hz
setenv hdmimode "1080p60hz"

# Overscan percentage
# This value scales down the actual screen size by the percentage below
# valid range is 80 to 100
setenv overscan "100"

### voutmode : hdmi or dvi
setenv voutmode "hdmi"
# setenv voutmode "dvi"

# HPD enable/disable option
setenv disablehpd "false"

# max cpu frequency for big core, A73 in MHz unit
# setenv max_freq_a73 "2004"  # 2.004 GHz
# setenv max_freq_a73 "1992"  # 1.992 GHz
# setenv max_freq_a73 "1908"  # 1.908 GHz
setenv max_freq_a73 "1800"  # 1.8 GHz, default value
# setenv max_freq_a73 "1704"  # 1.704 GHz
 
# max cpu frequency for little core, A53 in MHz unit
# setenv max_freq_a53 "1992"  # 1.992 GHz
setenv max_freq_a53 "1896"  # 1.896 GHz, default value
# setenv max_freq_a53 "1704"  # 1.704 GHz


# max cpu-cores
# Note:
# CPU's 0 and 1 are the A53 (small cores)
# CPU's 2 to 5 are the A73 (big cores)
# Lowering this value disables only the bigger cores (the last cores).
# setenv maxcpus "4"
# setenv maxcpus "5"
setenv maxcpus "6"

### Normal HDMI Monitors
if test "${display_autodetect}" = "true"; then hdmitx edid; fi
if test "${hdmimode}" = "custombuilt"; then setenv cmode "modeline=${modeline}"; fi

# Boot Args
setenv bootargs "root=${rootdev} rootwait rootflags=data=writeback rw rootfstype=${rootfstype} ${condev} ${amlogic} no_console_suspend fsck.repair=yes net.ifnames=0 elevator=noop hdmimode=${hdmimode} cvbsmode=576cvbs max_freq_a53=${max_freq_a53} max_freq_a73=${max_freq_a73} maxcpus=${maxcpus} voutmode=${voutmode} ${cmode} disablehpd=${disablehpd} cvbscable=${cvbscable} overscan=${overscan} usb-xhci.tablesize=2"

# Set load addresses
setenv dtb_loadaddr "0x1000000"
setenv k_addr "0x1100000"
setenv loadaddr "0x1B00000"
setenv initrd_loadaddr "0x3700000"

# Load kernel, dtb and initrd
ext4load mmc ${devno}:1 ${k_addr} boot/zImage
ext4load mmc ${devno}:1 ${dtb_loadaddr} boot/dtb/amlogic/meson64_odroidn2.dtb
ext4load mmc ${devno}:1 ${initrd_loadaddr} boot/uInitrd
fdt addr ${dtb_loadaddr}
# unzip the kernel
unzip ${k_addr} ${loadaddr}

# boot
booti ${loadaddr} ${initrd_loadaddr} ${dtb_loadaddr}

 

Posted
14 hours ago, Viald said:

## Attempting fetch /boot/boot.ini in usb:0... 4447 bytes read in 212 ms (19.5 KiB/s) ## Executing script at 04000000 Wrong image format for "source" command

 

You have the wrong " boot.ini"

Posted
3 minutes ago, Viald said:

No, I can but I prefer use the official one.

Official images are collected in violation of the rules recommended by HK. And they're based on an old kernel with a compromised security system. :)

Posted
14 hours ago, Viald said:

ext4load mmc ${devno}:1 ${k_addr} boot/zImage ext4load mmc ${devno}:1 ${dtb_loadaddr} boot/dtb/amlogic/meson64_odroidn2.dtb ext4load mmc ${devno}:1 ${initrd_loadaddr} boot/uInitrd

When started from USB, these lines will not work, they indicate the forced use of the SD card.

Posted
1 minute ago, balbes150 said:

Official images are collected in violation of the rules recommended by HK. And they're based on an old kernel with a compromised security system. :)

Good to know :)

Posted
5 minutes ago, Viald said:

I just give a try, I works, I can boot. I notice that the SSD is not recognise each time I power up the N2. I have to do twice. 

So I'll give a longer try to your release. Is it possible to update it (mainly the kernel) in the future using apt ?

What's the default root password ?

Posted
3 minutes ago, Viald said:

just give a try, I works, I can boot. I notice that the SSD is not recognise each time I power up the N2. I have to do twice. 

Show the UART log at the first start and at the second.

Posted

First 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... 0 Storage Device(s) found
## 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...

 

Second 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... 4 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found
## 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 720 ms (28.2 MiB/s)
reading uInitrd
7930578 bytes read in 270 ms (28 MiB/s)
reading /dtb/meson-g12b-odroid-n2.dtb
45516 bytes read in 34 ms (1.3 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:    7930514 Bytes = 7.6 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK

 

Posted
24 minutes ago, Viald said:

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

Your device did not have time to be detected, there may be a power problem.

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...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines