Boot from an OpenWrt hard drive WRT1200AC

Hi, I’m trying to run openwrt from a hard drive or USB flash drive, and it doesn’t boot.
created an image

BootROM - 1.73
Booting from NAND flash

General initialization - Version: 1.0.0
Detected Device ID 6820
High speed PHY - Version: 2.0

Init RD NAS topology Serdes Lane 3 is USB3
Serdes Lane 4 is SGMII
board SerDes lanes topology details:
 | Lane #  | Speed |  Type       |
 --------------------------------
 |   0    |  06   |  SATA0      |
 |   1    |  05   |  PCIe0      |
 |   2    |  06   |  SATA1      |
 |   3    |  05   |  USB3 HOST1 |
 |   4    |  05   |  PCIe1      |
 |   5    |  00   |  SGMII2     |
 --------------------------------
:** Link is Gen1, check the EP capability
PCIe, Idx 0: Link upgraded to Gen2 based on client cpabilities
:** Link is Gen1, check the EP capability
PCIe, Idx 1: remains Gen1
High speed PHY - Ended Successfully
DDR3 Training Sequence - Ver TIP-1.26.0
mvSysEnvGetTopologyUpdateInfo: TWSI Read failed
DDR3 Training Sequence - Switching XBAR Window to FastPath Window
DDR3 Training Sequence - Ended Successfully
Not detected suspend to RAM indication
BootROM: Image checksum verification PASSED

 __   __                      _ _
|  \/  | __ _ _ ____   _____| | |
| |\/| |/ _` | '__\ \ / / _ \ | |
| |  | | (_| | |   \ V /  __/ | |
|_|  |_|\__,_|_|    \_/ \___|_|_|
         _   _     ____              _
        | | | |   | __ )  ___   ___ | |_
        | | | |___|  _ \ / _ \ / _ \| __|
        | |_| |___| |_) | (_) | (_) | |_
         \___/    |____/ \___/ \___/ \__|
 ** LOADER **


U-Boot 2013.01 (Mar 27 2015 - 16:55:31) Marvell version: 2014_T3.0p6

Boot version : v2.0.13

Board: RD-NAS-88F6820-DDR3
SoC:   MV88F6820 Rev A0
       running 2 CPUs
CPU:   ARM Cortex A9 MPCore (Rev 1) LE
       CPU 0
       CPU    @ 1332 [MHz]
       L2     @ 666 [MHz]
       TClock @ 200 [MHz]
       DDR    @ 666 [MHz]
       DDR 32 Bit Width, FastPath Memory Access, DLB Enabled, ECC Disabled
DRAM:  512 MiB

Map:   Code:                    0x1fea9000:0x1ff7632c
       BSS:                     0x1ffef6b4
       Stack:                   0x1f9a8f20
       Heap:                    0x1f9a9000:0x1fea9000
raise: Signal # 8 caught
U-ENV offset == 0x200000
raise: Signal # 8 caught
U-ENV offset == 0x200000
       U-Boot Environment:      0x00200000:0x00220000 (NAND)

NAND:  128 MiB
MMC:   mv_sdh: 0
DEVINFO offset == 0x900000
U-ENV offset == 0x200000
U-ENV offset == 0x200000
S-ENV offset == 0x240000


#### auto_recovery ####
[u_env] get auto_recovery == yes
[u_env] get auto_recovery == yes
[u_env] get boot_part == 2
[u_env] get boot_part_ready == 3
auto_recovery enabled:1, boot_part:2, boot_part_ready:3

S-ENV offset == 0x240000
[boot_count_read] block:0x240000, size:128KB, records:64
[boot_count_read_record] boot_count:1, next_record:15

[boot_count_write] erase:0, auto_recovery->block_offset:0x240000 offset=0x247800

Updating boot_count ...
[boot_count_write] offset:0x247800 , length:2048
done

PCI-e 0 (IF 0 - bus 0) Root Complex Interface, Detected Link X1, GEN 2.0
PCI-e 1 (IF 1 - bus 1) Root Complex Interface, Detected Link X1, GEN 1.1
USB2.0 0: Host Mode
USB3.0 1: Host Mode
USB3.0 0: Host Mode
Board configuration detected:
mvEthE6171SwitchBasicInit init
Net:
|  port  | Interface | PHY address  |
|--------|-----------|--------------|
| egiga0 |   RGMII   |     0x01     |
| egiga1 |   SGMII   |     0x00     |
egiga0 [PRIME], egiga1
auto_recovery_check changes bootcmd: run altnandboot
Hit any key to stop autoboot:  0
AHCI init for unit0
SATA link 0 timeout.
Target spinup took 0 ms.

Error: SCSI Controller(s) 1B4B:9215 1B4B:9235 not found
scanning bus for devices...
  Device 0: (1:0) Vendor: ATA Prod.:  Rev: ----
            Type: Hard Disk
            Capacity: 0.1 MB = 0.0 GB (333 x 512)
Found 1 device(s).
2601291 bytes read in 164 ms (15.1 MiB/s)
## Booting kernel from Legacy Image at 02000000 ...
   Image Name:   ARM OpenWrt Linux-4.14.106
   Created:      2019-03-18  19:55:52 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2601227 Bytes = 2.5 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.14.106 (lovator@linux-mint) (gcc version 7.4.0 (OpenWrt GCC 7.4.0 r9639-57b1e951b5)) #0 SMP Mon Mar 18 19:55:52 2019
[    0.000000] CPU: ARMv7 Processor [414fc091] revision 1 (ARMv7), cr=10c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt: Machine model: Linksys WRT1200AC
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] random: get_random_bytes called from start_kernel+0x74/0x478 with crng_init=0
[    0.000000] percpu: Embedded 12 pages/cpu @dfbd0000 s18892 r8192 d22068 u49152
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 130048
[    0.000000] Kernel command line:
[    0.000000] Bootloader command line not present
[    0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Memory: 509916K/524288K available (6144K kernel code, 187K rwdata, 1376K rodata, 1024K init, 225K bss, 14372K reserved, 0K cma-reserved, 0K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xe0800000 - 0xff800000   ( 496 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0008000 - 0xc0700000   (7136 kB)
[    0.000000]       .init : 0xc0900000 - 0xc0a00000   (1024 kB)
[    0.000000]       .data : 0xc0a00000 - 0xc0a2ef40   ( 188 kB)
[    0.000000]        .bss : 0xc0a2ef40 - 0xc0a674d8   ( 226 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000]  RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] L2C-310 enabling early BRESP for Cortex-A9
[    0.000000] L2C-310 full line of zeros enabled for Cortex-A9
[    0.000000] L2C-310 D prefetch enabled, offset 1 lines
[    0.000000] L2C-310 dynamic clock gating enabled, standby mode enabled
[    0.000000] L2C-310 Coherent cache controller enabled, 16 ways, 1024 kB
[    0.000000] L2C-310 Coherent: CACHE_ID 0x410054c9, AUX_CTRL 0x56070001
[    0.000007] sched_clock: 64 bits at 666MHz, resolution 1ns, wraps every 4398046511103ns
[    0.000018] clocksource: arm_global_timer: mask: 0xffffffffffffffff max_cycles: 0x999999d70a, max_idle_ns: 440795225152 ns
[    0.000033] Switching to timer-based delay loop, resolution 1ns
[    0.000167] Ignoring duplicate/late registration of read_current_timer delay
[    0.000175] clocksource: armada_370_xp_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 76450417870 ns
[    0.000329] Calibrating delay loop (skipped), value calculated using timer frequency.. 1332.00 BogoMIPS (lpj=6660000)
[    0.000338] pid_max: default: 32768 minimum: 301
[    0.000397] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000404] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000647] CPU: Testing write buffer coherency: ok
[    0.000661] CPU0: Spectre v2: using BPIALL workaround
[    0.000775] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.000903] Setting up static identity map for 0x100000 - 0x100060
[    0.000985] mvebu-soc-id: MVEBU SoC ID=0x6820, Rev=0x4
[    0.001070] mvebu-pmsu: Initializing Power Management Service Unit
[    0.001122] Hierarchical SRCU implementation.
[    0.001326] smp: Bringing up secondary CPUs ...
[    0.001461] Booting CPU 1
[    0.001630] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.001632] CPU1: Spectre v2: using BPIALL workaround
[    0.001682] smp: Brought up 1 node, 2 CPUs
[    0.001687] SMP: Total of 2 processors activated (2664.00 BogoMIPS).
[    0.001691] CPU: All CPU(s) started in SVC mode.
[    0.003444] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    0.003501] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.003509] futex hash table entries: 512 (order: 3, 32768 bytes)
[    0.003559] pinctrl core: initialized pinctrl subsystem
[    0.003854] NET: Registered protocol family 16
[    0.004397] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.005092] cpuidle: using governor ladder
[    0.005230] mvebu-pmsu: CPU hotplug support is currently broken on Armada 38x: disabling
[    0.005238] mvebu-pmsu: CPU idle is currently broken on Armada 38x: disabling
[    0.011876] reg-fixed-voltage usb3_1-vbus: could not find pctldev for node /soc/internal-regs/pinctrl@18000/usb3_1-vbus-pins, deferring probe
[    0.012071] SCSI subsystem initialized
[    0.012287] usbcore: registered new interface driver usbfs
[    0.012321] usbcore: registered new interface driver hub
[    0.012351] usbcore: registered new device driver usb
[    0.012901] clocksource: Switched to clocksource arm_global_timer
[    0.013312] NET: Registered protocol family 2
[    0.013565] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[    0.013592] TCP bind hash table entries: 4096 (order: 3, 32768 bytes)
[    0.013631] TCP: Hash tables configured (established 4096 bind 4096)
[    0.013671] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.013687] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.013761] NET: Registered protocol family 1
[    0.014706] Crashlog allocated RAM at address 0x3f00000
[    0.014873] workingset: timestamp_bits=30 max_order=17 bucket_order=0
[    0.016703] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.016713] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.018069] io scheduler noop registered
[    0.018076] io scheduler deadline registered (default)
[    0.018570] armada-38x-pinctrl f1018000.pinctrl: registered pinctrl driver
[    0.019699] mvebu-pcie soc:pcie: PCI host bridge to bus 0000:00
[    0.019711] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    0.019718] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xe7ffffff]
[    0.019724] pci_bus 0000:00: root bus resource [bus 00-ff]
[    0.019930] PCI: bus0: Fast back to back transfers disabled
[    0.019938] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.019946] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.020208] PCI: bus1: Fast back to back transfers disabled
[    0.020484] PCI: bus2: Fast back to back transfers disabled
[    0.020512] pci 0000:00:01.0: BAR 8: assigned [mem 0xe0000000-0xe01fffff]
[    0.020519] pci 0000:00:02.0: BAR 8: assigned [mem 0xe0200000-0xe03fffff]
[    0.020528] pci 0000:01:00.0: BAR 0: assigned [mem 0xe0000000-0xe00fffff 64bit pref]
[    0.020540] pci 0000:01:00.0: BAR 2: assigned [mem 0xe0100000-0xe01fffff 64bit pref]
[    0.020551] pci 0000:00:01.0: PCI bridge to [bus 01]
[    0.020558] pci 0000:00:01.0:   bridge window [mem 0xe0000000-0xe01fffff]
[    0.020567] pci 0000:02:00.0: BAR 0: assigned [mem 0xe0200000-0xe02fffff 64bit pref]
[    0.020580] pci 0000:02:00.0: BAR 2: assigned [mem 0xe0300000-0xe03fffff 64bit pref]
[    0.020591] pci 0000:00:02.0: PCI bridge to [bus 02]
[    0.020597] pci 0000:00:02.0:   bridge window [mem 0xe0200000-0xe03fffff]
[    0.020862] mv_xor f1060800.xor: Marvell shared XOR driver
[    0.083456] mv_xor f1060800.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    0.083582] mv_xor f1060900.xor: Marvell shared XOR driver
[    0.143409] mv_xor f1060900.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    0.143578] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    0.143887] console [ttyS0] disabled
[    0.163965] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 22, base_baud = 12500000) is a 16550A
[    0.893366] console [ttyS0] enabled
[    0.898564] loop: module loaded
[    0.902053] ahci-mvebu f10a8000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
[    0.911167] ahci-mvebu f10a8000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs
[    0.920392] scsi host0: ahci-mvebu
[    0.923977] scsi host1: ahci-mvebu
[    0.927474] ata1: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x100 irq 41
[    0.935446] ata2: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x180 irq 41
[    0.943840] pxa3xx-nand f10d0000.flash: This platform can't do DMA on this device
[    0.951634] nand: device found, Manufacturer ID: 0x01, Chip ID: 0xf1
[    0.958035] nand: AMD/Spansion S34ML01G2
[    0.961978] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    0.969601] pxa3xx-nand f10d0000.flash: ECC strength 16, ECC step size 2048
[    0.976802] Bad block table found at page 65472, version 0x01
[    0.982935] Bad block table found at page 65408, version 0x01
[    0.988996] 10 fixed-partitions partitions found on MTD device pxa3xx_nand-0
[    0.996091] Creating 10 MTD partitions on "pxa3xx_nand-0":
[    1.001606] 0x000000000000-0x000000200000 : "u-boot"
[    1.006871] 0x000000200000-0x000000240000 : "u_env"
[    1.011995] 0x000000240000-0x000000280000 : "s_env"
[    1.017115] 0x000000900000-0x000000a00000 : "devinfo"
[    1.022406] 0x000000a00000-0x000003200000 : "kernel1"
[    1.027815] 0x000001000000-0x000003200000 : "rootfs1"
[    1.033215] 0x000003200000-0x000005a00000 : "kernel2"
[    1.038604] 0x000003800000-0x000005a00000 : "rootfs2"
[    1.043989] 0x000005a00000-0x000008000000 : "syscfg"
[    1.049285] 0x000000280000-0x000000900000 : "unused_area"
[    1.055300] libphy: Fixed MDIO Bus: probed
[    1.059771] libphy: orion_mdio_bus: probed
[    1.064093] mvneta_bm f10c8000.bm: Buffer Manager for network controller enabled
[    1.073041] mvneta f1070000.ethernet eth0: Using hardware mac address 00:50:43:0d:da:f2
[    1.082499] mvneta f1034000.ethernet eth1: Using random mac address 06:ca:bc:20:d8:57
[    1.090553] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.097123] ehci-platform: EHCI generic platform driver
[    1.102451] ehci-orion: EHCI orion driver
[    1.106583] orion-ehci f1058000.usb: EHCI Host Controller
[    1.112021] orion-ehci f1058000.usb: new USB bus registered, assigned bus number 1
[    1.119692] orion-ehci f1058000.usb: irq 38, io mem 0xf1058000
[    1.152906] orion-ehci f1058000.usb: USB 2.0 started, EHCI 1.00
[    1.159095] hub 1-0:1.0: USB hub found
[    1.162879] hub 1-0:1.0: 1 port detected
[    1.167314] usbcore: registered new interface driver usb-storage
[    1.173550] i2c /dev entries driver
[    1.188471] (NULL device *): hwmon_device_register() is deprecated. Please convert the driver to use hwmon_device_register_with_info().
[    1.200953] orion_wdt: Initial timeout 171 sec
[    1.205708] sdhci: Secure Digital Host Controller Interface driver
[    1.211920] sdhci: Copyright(c) Pierre Ossman
[    1.216409] sdhci-pltfm: SDHCI platform and OF driver helper
[    1.225891] marvell-cesa f1090000.crypto: CESA device successfully registered
[    1.233587] NET: Registered protocol family 10
[    1.238540] Segment Routing with IPv6
[    1.242252] NET: Registered protocol family 17
[    1.246860] 8021q: 802.1Q VLAN Support v1.8
[    1.251077] Registering SWP/SWPB emulation handler
[    1.257553] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    1.262929] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 2
[    1.270526] xhci-hcd f10f8000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x0000000000010010
[    1.279882] xhci-hcd f10f8000.usb3: irq 43, io mem 0xf10f8000
[    1.284187] ata1: SATA link down (SStatus 0 SControl 300)
[    1.285924] hub 2-0:1.0: USB hub found
[    1.294879] hub 2-0:1.0: 1 port detected
[    1.298951] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    1.304328] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 3
[    1.311861] xhci-hcd f10f8000.usb3: Host supports USB 3.0  SuperSpeed
[    1.318381] usb usb3: We don't know the algorithms for LPM for this host, disabling LPM.
[    1.326724] hub 3-0:1.0: USB hub found
[    1.330508] hub 3-0:1.0: 1 port detected
[    1.334896] mvsw61xx 10.mvsw61xx: Found MV88E6176 at f1072004.mdio-mii:10
[    1.341721] mvsw61xx 10.mvsw61xx: Using direct addressing
[    1.355399] hctosys: unable to open rtc device (rtc0)
[    1.452905] ata2: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[    1.460133] ata2.00: ATA-8: WDC WD3200BPVT-80ZEST0, 01.01A01, max UDMA/133
[    1.467054] ata2.00: 625142448 sectors, multi 0: LBA48 NCQ (depth 31/32)
[    1.474902] ata2.00: configured for UDMA/133
[    1.479362] scsi 1:0:0:0: Direct-Access     ATA      WDC WD3200BPVT-8 1A01 PQ: 0 ANSI: 5
[    1.487899] sd 1:0:0:0: [sda] 625142448 512-byte logical blocks: (320 GB/298 GiB)
[    1.495434] sd 1:0:0:0: [sda] 4096-byte physical blocks
[    1.500711] sd 1:0:0:0: [sda] Write Protect is off
[    1.505580] sd 1:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    1.544529]  sda: sda1
[    1.547260] sd 1:0:0:0: [sda] Attached SCSI removable disk
[    1.552865] VFS: Cannot open root device "(null)" or unknown-block(0,0): error -6
[    1.560398] Please append a correct "root=" boot option; here are the available partitions:
[    1.568806] 1f00            2048 mtdblock0
[    1.568808]  (driver?)
[    1.575388] 1f01             256 mtdblock1
[    1.575389]  (driver?)
[    1.581963] 1f02             256 mtdblock2
[    1.581965]  (driver?)
[    1.588542] 1f03            1024 mtdblock3
[    1.588544]  (driver?)
[    1.595121] 1f04           40960 mtdblock4
[    1.595122]  (driver?)
[    1.601694] 1f05           34816 mtdblock5
[    1.601695]  (driver?)
[    1.608273] 1f06           40960 mtdblock6
[    1.608274]  (driver?)
[    1.614851] 1f07           34816 mtdblock7
[    1.614853]  (driver?)
[    1.621424] 1f08           38912 mtdblock8
[    1.621425]  (driver?)
[    1.628002] 1f09            6656 mtdblock9
[    1.628003]  (driver?)
[    1.634579] 0800       312571224 sda
[    1.634581]  driver: sd
[    1.640716]   0801        72516608 sda1 de049085-01
[    1.640718]
[    1.647119] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[    1.655427] CPU1: stopping
[    1.658150] CPU: 1 PID: 0 Comm: swapper/1 Not tainted 4.14.106 #0
[    1.664274] Hardware name: Marvell Armada 380/385 (Device Tree)
[    1.670243] [<c010ef68>] (unwind_backtrace) from [<c010ac14>] (show_stack+0x10/0x14)
[    1.678034] [<c010ac14>] (show_stack) from [<c060bd08>] (dump_stack+0x88/0x9c)
[    1.685296] [<c060bd08>] (dump_stack) from [<c010ddac>] (handle_IPI+0xe4/0x18c)
[    1.692645] [<c010ddac>] (handle_IPI) from [<c0101494>] (gic_handle_irq+0x8c/0x90)
[    1.700255] [<c0101494>] (gic_handle_irq) from [<c010b8cc>] (__irq_svc+0x6c/0x90)
[    1.707775] Exception stack(0xdf465f80 to 0xdf465fc8)
[    1.712855] 5f80: 00000001 00000000 00000000 c0114620 ffffe000 c0a03cbc c0a03c70 00000000
[    1.721076] 5fa0: 00000000 414fc091 00000000 00000000 df465fc8 df465fd0 c0108304 c0108308
[    1.729295] 5fc0: 60000013 ffffffff
[    1.732805] [<c010b8cc>] (__irq_svc) from [<c0108308>] (arch_cpu_idle+0x34/0x38)
[    1.740242] [<c0108308>] (arch_cpu_idle) from [<c015e174>] (do_idle+0xdc/0x19c)
[    1.747592] [<c015e174>] (do_idle) from [<c015e490>] (cpu_startup_entry+0x18/0x1c)
[    1.755203] [<c015e490>] (cpu_startup_entry) from [<0010182c>] (0x10182c)
[    1.762504] Rebooting in 1 seconds..

removed the rootfs and wrote it to the hard disk, then extracted the kernel and placed it in the root of the disk

help me figure out what i did wrong ?

Have you tried an image from http://downloads.openwrt.org ?

Likely the boot loader's bootargs (or equivalent) don't reflect that init should be mounting the device you want.

It looks like you need root=sda1 or the like, and perhaps a change to rootfs=

With access to the bootloader, you should be able to modify the U-Boot environment.

If you want this "permanent" (without needing to modify the U-Boot envioinment), look at using the bootargs-append property in the /chosen node of the DTS. On a device I'm working with that requires different parameters, I am using

bootargs-append = " root=/dev/ubiblock0_0 rootfstype=squashfs ro clk_ignore_unused";

See, for example, http://man7.org/linux/man-pages/man7/bootparam.7.html

3 Likes

created his own https://openwrt.org/docs/guide-developer/quickstart-build-images

Yes, I understand this...but have you tried the pre-built one?

Disregard, I see you're attempting to place this on an HDD.

there is no such thing for ext4, only squashfs

It works with internal memory, but there is no such image from a connected hard disk with a router.

Might be some information to be gleaned from McDebian methodology.

1 Like

init doesn't seem to know it should be mounting sda1

See https://elixir.bootlin.com/linux/v4.14.106/source/init/do_mounts.c (or similar) for further details of the process.

kernel will be on Nand memory and rootfs will boot from sda
Is it possible to install the boot on sda when building the kernel?
make kernel_menuconfig

1 Like
[    0.000000] Kernel command line:
[    0.000000] Bootloader command line not present

make kernel_menuconfig

[x] atag boot options
[x] extend or use

vs

( or use chosen in the dts as advised above )

while your there check for things like;

scsi generic
any filesystem you need
possibly usb / sata stuff
etc. etc.

1 Like

Might be of interest

Give thanks.
I have already solved this problem.
When building the kernel, this value was added.
[x]Kernel command line type (Use bootloader kernel arguments if available) --->
[x](rootdelay=5 root=/dev/sda1 rootfstype=ext4 rw init=/sbin/init console=ttyS0,115200) Default kernel command string

Thanks to the kind person ValCher1961 for the help.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.