Welcome! Log In Create A New Profile

Advanced

NSA310 Debian boot problem

Posted by alex512 
NSA310 Debian boot problem
August 10, 2019 06:41AM
Hello.

Can't boot from usb or hdd.

1. usb/hdd partion ext2:
mkfs.ext2 -L rootfs /dev/sda1

2. kernel:
cp -a zImage-4.5.0-kirkwood-tld-1  zImage.fdt
cat dts/kirkwood-nsa310.dtb  >> zImage.fdt
mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-4.5.0-kirkwood-tld-1 -d zImage.fdt  uImage-4.5.0
mkimage -A arm -O linux -T ramdisk -C gzip -a 0x00000000 -e 0x00000000 -n initramfs-4.5.0-kirkwood-tld-1 -d initrd.img-4.5.0-kirkwood-tld-1 uInitrd-4.5.0

3. tar -xjf Debian-4.12.1-kirkwood-tld-1-rootfs-bodhi.tar.bz2
4. boot nas
 ** MARVELL BOARD: RD-88F6281A LE

U-Boot 1.1.4 (Feb 22 2011 - 10:31:35) Marvell version: 3.4.19

U-Boot code: 00600000 -> 0067FFF0  BSS: -> 006CFEE0

Soc: 88F6281 A1 (DDR2)
CPU running @ 1200Mhz L2 running @ 400Mhz
SysClock = 400Mhz , TClock = 200Mhz

uboot commands:
NSA310>> usb reset
NSA310>> setenv bootargs console=ttyS0,115200 root=/dev/sda1 rootdelay=10
NSA310>> setenv arcNumber 4022
NSA310>> setenv machid
NSA310>> setenv mtdparts
NSA310>> ext2load usb 0:1 0x1100000 /boot/uInitrd-4.5.0
NSA310>> ext2load usb 0:1 0x1100000 /boot/uInitrd-4.5.0
NSA310>> bootm 0x800000 0x1100000

and then:
## Booting image at 00800000 ...
   Image Name:   Linux-4.5.0-kirkwood-tld-1
   Created:      2019-08-10   6:41:32 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3207114 Bytes =  3.1 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
OK
## Loading Ramdisk Image at 01100000 ...
   Image Name:   initramfs-4.5.0-kirkwood-tld-1
   Created:      2019-08-10   6:41:42 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    8831809 Bytes =  8.4 MB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.5.0-kirkwood-tld-1 (root@tldDebian) (gcc version 4.9.2 (Debian 4.9.2-10) ) #4 PREEMPT Fri Mar 18 21:36:04 PDT 2016
[    0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] Machine model: ZyXEL NSA310
[    0.000000] Memory policy: Data cache writeback
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 65024
[    0.000000] Kernel command line: console=ttyS0,115200 root=/dev/sda1 rootdelay=10
[    0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Memory: 241776K/262144K available (6112K kernel code, 599K rwdata, 2024K rodata, 300K init, 315K bss, 20368K reserved, 0K cma-reserved)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xd0800000 - 0xff800000   ( 752 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xd0000000   ( 256 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 0xc07fa588   (8138 kB)
[    0.000000]       .init : 0xc07fb000 - 0xc0846000   ( 300 kB)
[    0.000000]       .data : 0xc0846000 - 0xc08dbc8c   ( 600 kB)
[    0.000000]        .bss : 0xc08dbc8c - 0xc092abe0   ( 316 kB)
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000]  Build-time adjustment of leaf fanout to 32.
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302233 ns
[    0.000008] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[    0.000305] Console: colour dummy device 80x30
[    0.000335] Calibrating delay loop... 1196.85 BogoMIPS (lpj=5984256)
[    0.090095] pid_max: default: 32768 minimum: 301
[    0.090208] Security Framework initialized
[    0.090281] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.090300] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.091143] CPU: Testing write buffer coherency: ok
[    0.091566] Setting up static identity map for 0x8200 - 0x8258
[    0.091859] mvebu-soc-id: MVEBU SoC ID=0x6281, Rev=0x3
[    0.095387] devtmpfs: initialized
[    0.100618] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.100890] prandom: seed boundary self test passed
[    0.104624] prandom: 100 self tests passed
[    0.104648] pinctrl core: initialized pinctrl subsystem
[    0.105991] NET: Registered protocol family 16
[    0.106382] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.130097] cpuidle: using governor ladder
[    0.160094] cpuidle: using governor menu
[    0.160488] Feroceon L2: Enabling L2
[    0.160531] Feroceon L2: Cache support initialised.
[    0.166166] No ATAGs?
[    0.201518] vgaarb: loaded
[    0.201889] usbcore: registered new interface driver usbfs
[    0.201969] usbcore: registered new interface driver hub
[    0.202032] usbcore: registered new device driver usb
[    0.203105] clocksource: Switched to clocksource orion_clocksource
[    0.247648] VFS: Disk quotas dquot_6.6.0
[    0.247725] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.259254] NET: Registered protocol family 2
[    0.260043] TCP established hash table entries: 2048 (order: 1, 8192 bytes)
[    0.260082] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[    0.260113] TCP: Hash tables configured (established 2048 bind 2048)
[    0.260174] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.260198] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.260399] NET: Registered protocol family 1
[    0.260780] RPC: Registered named UNIX socket transport module.
[    0.260791] RPC: Registered udp transport module.
[    0.260799] RPC: Registered tcp transport module.
[    0.260806] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.261105] Unpacking initramfs...
[    1.014727] Freeing initrd memory: 8628K (c1100000 - c196d000)
[    1.014846] NetWinder Floating Point Emulator V0.97 (double precision)
[    1.015972] futex hash table entries: 256 (order: -1, 3072 bytes)
[    1.016048] audit: initializing netlink subsys (disabled)
[    1.016101] audit: type=2000 audit(1.010:1): initialized
[    1.016451] Initialise system trusted keyring
[    1.016837] zbud: loaded
[    1.017533] NFS: Registering the id_resolver key type
[    1.017588] Key type id_resolver registered
[    1.017598] Key type id_legacy registered
[    1.017627] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    1.017644] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    1.017876] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    1.018403] Key type big_key registered
[    1.036647] request_module: runaway loop modprobe binfmt-464c
[    1.050051] request_module: runaway loop modprobe binfmt-464c
[    1.060328] Key type asymmetric registered
[    1.060350] Asymmetric key parser 'x509' registered
[    1.060444] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[    1.060462] io scheduler noop registered
[    1.060476] io scheduler deadline registered
[    1.060536] io scheduler cfq registered (default)
[    1.061908] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    1.062585] irq: Cannot allocate irq_descs @ IRQ33, assuming pre-allocated
[    1.063016] irq: Cannot allocate irq_descs @ IRQ65, assuming pre-allocated
[    1.064405] mvebu-pcie mbus:pcie-controller: PCI host bridge to bus 0000:00
[    1.064424] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    1.064438] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xefffffff]
[    1.064451] pci_bus 0000:00: root bus resource [bus 00-ff]
[    1.064854] PCI: bus0: Fast back to back transfers disabled
[    1.064880] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.083188] PCI: bus1: Fast back to back transfers disabled
[    1.083366] pci 0000:00:01.0: BAR 14: assigned [mem 0xe0000000-0xe00fffff]
[    1.083382] pci 0000:00:01.0: BAR 13: assigned [io  0x10000-0x10fff]
[    1.083401] pci 0000:01:00.0: BAR 6: assigned [mem 0xe0000000-0xe000ffff pref]
[    1.083417] pci 0000:01:00.0: BAR 4: assigned [mem 0xe0010000-0xe0013fff 64bit pref]
[    1.083441] pci 0000:01:00.0: BAR 2: assigned [mem 0xe0014000-0xe0014fff 64bit pref]
[    1.083462] pci 0000:01:00.0: BAR 0: assigned [io  0x10000-0x100ff]
[    1.083478] pci 0000:00:01.0: PCI bridge to [bus 01]
[    1.083491] pci 0000:00:01.0:   bridge window [io  0x10000-0x10fff]
[    1.083505] pci 0000:00:01.0:   bridge window [mem 0xe0000000-0xe00fffff]
[    1.083586] pcieport 0000:00:01.0: enabling device (0140 -> 0143)
[    1.083883] mv_xor f1060800.xor: Marvell shared XOR driver
[    1.123794] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    1.124029] mv_xor f1060900.xor: Marvell shared XOR driver
[    1.163789] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    1.164278] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    1.165682] console [ttyS0] disabled
[    1.165745] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 26, base_baud = 12500000) is a 16550A
[    1.841551] console [ttyS0] enabled
[    1.846367] nand: device found, Manufacturer ID: 0xec, Chip ID: 0xf1
[    1.852753] nand: Samsung NAND 128MiB 3,3V 8-bit
[    1.857431] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    1.865056] Scanning device for bad blocks
[    1.922384] Bad eraseblock 549 at 0x0000044a0000
[    1.952452] Bad eraseblock 812 at 0x000006580000
[    1.977589] 9 ofpart partitions found on MTD device orion_nand
[    1.983469] Creating 9 MTD partitions on "orion_nand":
[    1.988634] 0x000000000000-0x000000100000 : "uboot"
[    1.994852] 0x000000100000-0x000000180000 : "uboot_env"
[    2.001323] 0x000000180000-0x000000200000 : "key_store"
[    2.007857] 0x000000200000-0x000000280000 : "info"
[    2.013987] 0x000000280000-0x000000c80000 : "etc"
[    2.019983] 0x000000c80000-0x000001680000 : "kernel_1"
[    2.026432] 0x000001680000-0x000004640000 : "rootfs1"
[    2.032743] 0x000004640000-0x000005040000 : "kernel_2"
[    2.039178] 0x000005040000-0x000008000000 : "rootfs2"
[    2.046669] libphy: Fixed MDIO Bus: probed
[    2.051144] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    2.057784] ehci-pci: EHCI PCI platform driver
[    2.062324] ehci-orion: EHCI orion driver
[    2.066566] orion-ehci f1050000.ehci: EHCI Host Controller
[    2.072105] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[    2.080002] orion-ehci f1050000.ehci: irq 30, io mem 0xf1050000
[    2.103140] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[    2.109410] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    2.116258] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.123530] usb usb1: Product: EHCI Host Controller
[    2.128430] usb usb1: Manufacturer: Linux 4.5.0-kirkwood-tld-1 ehci_hcd
[    2.135093] usb usb1: SerialNumber: f1050000.ehci
[    2.140559] hub 1-0:1.0: USB hub found
[    2.144411] hub 1-0:1.0: 1 port detected
[    2.149325] mousedev: PS/2 mouse device common for all mice
[    2.155635] rtc-mv f1010300.rtc: rtc core: registered f1010300.rtc as rtc0
[    2.162699] i2c /dev entries driver
[    2.169482] hidraw: raw HID events driver (C) Jiri Kosina
[    2.175340] drop_monitor: Initializing network drop monitor service
[    2.181897] NET: Registered protocol family 17
[    2.186652] Key type dns_resolver registered
[    2.191746] registered taskstats version 1
[    2.195929] Loading compiled-in X.509 certificates
[    2.200808] zswap: loaded using pool lzo/zbud
[    2.215656] request_module: runaway loop modprobe binfmt-464c
[    2.235033] request_module: runaway loop modprobe binfmt-464c
[    2.244909] Key type encrypted registered
[    2.249626] rtc-mv f1010300.rtc: setting system clock to 2019-08-10 11:36:24 UTC (1565436984)
[    2.260961] Freeing unused kernel memory: 300K (c07fb000 - c0846000)
[    2.277502] request_module: runaway loop modprobe binfmt-464c
[    2.300196] Failed to execute /init (error -8)
[    2.318798] Starting init: /sbin/init exists but couldn't execute it (error -8)
[    2.340009] Starting init: /bin/sh exists but couldn't execute it (error -8)
[    2.347480] Kernel panic - not syncing: No working init found.  Try passing init= option to kernel. See Linux Documentation/init.txt for guidance.
[    2.360672] CPU: 0 PID: 1 Comm: swapper Not tainted 4.5.0-kirkwood-tld-1 #4
[    2.367660] Hardware name: Marvell Kirkwood (Flattened Device Tree)
[    2.373991] [<c001680c>] (unwind_backtrace) from [<c0012a78>] (show_stack+0x10/0x14)
[    2.381780] [<c0012a78>] (show_stack) from [<c00c3428>] (panic+0xac/0x240)
[    2.388696] [<c00c3428>] (panic) from [<c05cb308>] (kernel_init+0xbc/0xe8)
[    2.395608] [<c05cb308>] (kernel_init) from [<c000f110>] (ret_from_fork+0x14/0x24)
[    2.403220] ---[ end Kernel panic - not syncing: No working init found.  Try passing init= option to kernel. See Linux Documentation/init.txt for guidance.
[    2.473130] usb 1-1: new high-speed USB device number 2 using orion-ehci
[    2.644754] usb 1-1: New USB device found, idVendor=05e3, idProduct=0608
[    2.651503] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    2.673121] usb 1-1: Product: USB2.0 Hub
[    2.683859] hub 1-1:1.0: USB hub found
[    2.693131] hub 1-1:1.0: 4 ports detected
[    2.983127] usb 1-1.2: new high-speed USB device number 3 using orion-ehci
[    3.114378] usb 1-1.2: New USB device found, idVendor=0781, idProduct=5572
[    3.121302] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    3.143120] usb 1-1.2: Product: Cruzer Switch
[    3.147510] usb 1-1.2: Manufacturer: SanDisk
[    3.151801] usb 1-1.2: SerialNumber: 4C530001270708108354
[   75.123134] random: nonblocking pool is initialized


When boot 4.12.1:
## Booting image at 00800000 ...
   Image Name:   Linux-4.12.1-kirkwood-tld-1
   Created:      2019-08-10  10:55:49 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3834602 Bytes =  3.7 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
OK
## Loading Ramdisk Image at 01100000 ...
   Image Name:   initramfs-4.12.1-kirkwood-tld-1
   Created:      2019-08-10  10:55:52 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    7273690 Bytes =  6.9 MB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
and nothing then.

When init=/init is in bootargs Failed to execute /init (error -8) also occurs.

What I doing wrong?
Re: NSA310 Debian boot problem
August 10, 2019 12:24PM
alex512,

Did you look at this post (in the Wiki thread):

https://forum.doozan.com/read.php?3,23727

Quote

Booting Debian on Pogoplug

How to set up U-Boot for booting in multiple drives configuration
Backup and Restore NAND mtds
UART Booting HowTo for Selected Kirkwood Devices
Migrating from Arch to Debian?
How to boot new Debian rootfs using stock u-boot tftp - Pogo E02
How to boot new Debian rootfs on USB using stock u-boot - NSA325
How to boot Debian rootfs on a GPT HDD with stock u-boot (kernel files stored in HDD raw sector), 2nd HowTo post

-bodhi
===========================
Forum Wiki
bodhi's corner
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: