NSA310 - fail installing debian - initramfs
December 13, 2018 07:47AM
Hi guys, pls I used the last uBoot (flashed via UART with kwboot-tool). Then I plugged new HDD to my PC, formated that HDD in Ubuntu to EXT3 and then extracted Debian-4.12.1-kirkwood-tld-1-rootfs-bodhi.tar.bz2. After this I plugged that HDD to my NSA310. Im tried almost all possible things (reinstalling uBoot, HDD reformat, ...), but Im still stuck at (initramfs) and I cant run debian.
Can sbdy help me please? Thank you a lot.

Begin: Running /scripts/local-premount ... done.
Warning: fsck not present, so skipping unknown file system
mount: can't find /root in /etc/fstab
done.
Begin: Running /scripts/local-bottom ... done.
Begin: Running /scripts/init-bottom ... mount: mounting /dev on /root/dev failed: No such file or directory
mount: mounting /dev on /root/dev failed: No such file or directory
done.
mount: mounting /run on /root/run failed: No such file or directory
run-init: current directory on the same filesystem as the root: error 0
Target filesystem doesn't have requested /sbin/init.
run-init: current directory on the same filesystem as the root: error 0
run-init: current directory on the same filesystem as the root: error 0
run-init: current directory on the same filesystem as the root: error 0
run-init: current directory on the same filesystem as the root: error 0
run-init: current directory on the same filesystem as the root: error 0
No init found. Try passing init= bootarg.


BusyBox v1.22.1 (Debian 1:1.22.0-19+b3) built-in shell (ash)
Enter 'help' for a list of built-in commands.

(initramfs) stem doesn't have reqstem doesn't have req
sh: stem: not found
(initramfs)
[   83.29y
▒

U-Boot 2017.07-tld-1 (Sep 05 2017 - 00:54:15 -0700)
ZyXEL NSA310 1-Bay Power Media Server


SoC:   Kirkwood 88F6281_A1
DRAM:  256 MiB
WARNING: Caches not enabled
NAND:  128 MiB
In:    serial
Out:   serial
Err:   serial
Net:   egiga0
PHY reset timed out
MV88E1318 PHY initialized on egiga0
Hit any key to stop autoboot:  0
Unknown command 'run' - try 'help'
running scan_disk ...
Scan device usb
starting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 2 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found
device usb 0:1
** Bad device usb 0 **
device usb 1:1
** Bad device usb 1 **
device usb 2:1
** Bad device usb 2 **
device usb 3:1
** Bad device usb 3 **
Scan device ide

Reset IDE: Bus 0: OK Bus 1: not available
  Device 0: Model: ST1000DM003-1SB102 Firm: CC43 Ser#: Z9A5PF22
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 953869.7 MB = 931.5 GB (1953525168 x 512)
device ide 0:1
1 bytes read in 71 ms (0 Bytes/s)
Found bootable drive on ide 0
Unknown command 'setenv' - try 'help'
3821592 bytes read in 1165 ms (3.1 MiB/s)
7245696 bytes read in 1673 ms (4.1 MiB/s)
13074 bytes read in 46 ms (277.3 KiB/s)
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-4.12.1-kirkwood-tld-1
   Created:      2017-07-20   8:11:24 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3821528 Bytes = 3.6 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 01100000 ...
   Image Name:   initramfs-4.12.1-kirkwood-tld-1
   Created:      2017-07-24   0:18:23 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    7245632 Bytes = 6.9 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 01c00000
   Booting using the fdt blob at 0x1c00000
   Loading Kernel Image ... OK
   Loading Ramdisk to 0f424000, end 0fb0cf40 ... OK
   Loading Device Tree to 0f41d000, end 0f423311 ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.12.1-kirkwood-tld-1 (root@tldDebian) (gcc version 4.9.2 (Debian 4.9.2-10) ) #1 PREEMPT Sat Jul 15 21:40:50 PDT 2017
[    0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] OF: fdt: 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
[    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: 239360K/262144K available (8192K kernel code, 716K rwdata, 1972K rodata, 1024K init, 288K bss, 22784K 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 - 0xc0900000   (9184 kB)
[    0.000000]       .init : 0xc0c00000 - 0xc0d00000   (1024 kB)
[    0.000000]       .data : 0xc0d00000 - 0xc0db3274   ( 717 kB)
[    0.000000]        .bss : 0xc0db9b9c - 0xc0e01e60   ( 289 kB)
[    0.000000] Preemptible hierarchical RCU implementation.
[    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.000007] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[    0.000041] Switching to timer-based delay loop, resolution 5ns
[    0.000504] Console: colour dummy device 80x30
[    0.000538] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=2000000)
[    0.000561] pid_max: default: 32768 minimum: 301
[    0.000754] Security Framework initialized
[    0.000879] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000899] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.001804] CPU: Testing write buffer coherency: ok
[    0.002826] Setting up static identity map for 0x100000 - 0x100058
[    0.003115] mvebu-soc-id: MVEBU SoC ID=0x6281, Rev=0x3
[    0.006328] devtmpfs: initialized
[    0.011014] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.011040] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.011428] prandom: seed boundary self test passed
[    0.015164] prandom: 100 self tests passed
[    0.015176] pinctrl core: initialized pinctrl subsystem
[    0.016316] NET: Registered protocol family 16
[    0.016678] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.018271] cpuidle: using governor ladder
[    0.018342] cpuidle: using governor menu
[    0.018705] Feroceon L2: Enabling L2
[    0.018752] Feroceon L2: Cache support initialised.
[    0.024121] No ATAGs?
[    0.033391] vgaarb: loaded
[    0.033708] SCSI subsystem initialized
[    0.034193] usbcore: registered new interface driver usbfs
[    0.034272] usbcore: registered new interface driver hub
[    0.034354] usbcore: registered new device driver usb
[    0.035407] clocksource: Switched to clocksource orion_clocksource
[    0.124007] VFS: Disk quotas dquot_6.6.0
[    0.124091] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.134571] NET: Registered protocol family 2
[    0.135313] TCP established hash table entries: 2048 (order: 1, 8192 bytes)
[    0.135352] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[    0.135383] TCP: Hash tables configured (established 2048 bind 2048)
[    0.135525] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.135556] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.135734] NET: Registered protocol family 1
[    0.136149] RPC: Registered named UNIX socket transport module.
[    0.136161] RPC: Registered udp transport module.
[    0.136168] RPC: Registered tcp transport module.
[    0.136176] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.136427] Unpacking initramfs...
[    0.799989] Freeing initrd memory: 7076K
[    0.800060] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.801054] audit: initializing netlink subsys (disabled)
[    0.801497] Initialise system trusted keyrings
[    0.801549] Key type blacklist registered
[    0.801643] audit: type=2000 audit(0.795:1): state=initialized audit_enabled=0 res=1
[    0.801719] workingset: timestamp_bits=30 max_order=16 bucket_order=0
[    0.801807] zbud: loaded
[    0.802769] NFS: Registering the id_resolver key type
[    0.802797] Key type id_resolver registered
[    0.802805] Key type id_legacy registered
[    0.802823] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.802833] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.803026] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.803222] fuse init (API version 7.26)
[    0.803566] orangefs_debugfs_init: called with debug mask: :none: :0:
[    0.803773] orangefs_init: module version upstream loaded
[    0.803784] SGI XFS with ACLs, security attributes, realtime, no debug enabled
[    2.555425] random: fast init done
[    6.648073] Key type asymmetric registered
[    6.648090] Asymmetric key parser 'x509' registered
[    6.648157] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    6.648169] io scheduler noop registered
[    6.648177] io scheduler deadline registered
[    6.648257] io scheduler cfq registered (default)
[    6.649532] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    6.651407] mvebu-pcie mbus@f1000000:pcie-controller@82000000: PCI host bridge to bus 0000:00
[    6.651428] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    6.651442] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xefffffff]
[    6.651455] pci_bus 0000:00: root bus resource [bus 00-ff]
[    6.651782] PCI: bus0: Fast back to back transfers disabled
[    6.651806] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    6.675490] PCI: bus1: Fast back to back transfers disabled
[    6.675702] pci 0000:00:01.0: BAR 14: assigned [mem 0xe0000000-0xe00fffff]
[    6.675718] pci 0000:00:01.0: BAR 13: assigned [io  0x10000-0x10fff]
[    6.675738] pci 0000:01:00.0: BAR 6: assigned [mem 0xe0000000-0xe000ffff pref]
[    6.675754] pci 0000:01:00.0: BAR 4: assigned [mem 0xe0010000-0xe0013fff 64bit pref]
[    6.675778] pci 0000:01:00.0: BAR 2: assigned [mem 0xe0014000-0xe0014fff 64bit pref]
[    6.675799] pci 0000:01:00.0: BAR 0: assigned [io  0x10000-0x100ff]
[    6.675815] pci 0000:00:01.0: PCI bridge to [bus 01]
[    6.675828] pci 0000:00:01.0:   bridge window [io  0x10000-0x10fff]
[    6.675844] pci 0000:00:01.0:   bridge window [mem 0xe0000000-0xe00fffff]
[    6.675938] pcieport 0000:00:01.0: enabling device (0140 -> 0143)
[    6.676464] mv_xor f1060800.xor: Marvell shared XOR driver
[    6.736159] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy sg intr )
[    6.736390] mv_xor f1060900.xor: Marvell shared XOR driver
[    6.796135] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy sg intr )
[    6.796582] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    6.797950] console [ttyS0] disabled
[    6.798019] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 26, base_baud = 12500000) is a 16550A
[    7.491705] console [ttyS0] enabled
[    7.503591] loop: module loaded
[    7.507406] sata_mv f1080000.sata: slots 32 ports 2
[    7.515064] scsi host0: sata_mv
[    7.518728] scsi host1: sata_mv
[    7.522141] ata1: SATA max UDMA/133 irq 32
[    7.526308] ata2: SATA max UDMA/133 irq 32
[    7.531176] nand: device found, Manufacturer ID: 0xec, Chip ID: 0xf1
[    7.537665] nand: Samsung NAND 128MiB 3,3V 8-bit
[    7.542304] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    7.549938] Scanning device for bad blocks
[    7.652694] 9 ofpart partitions found on MTD device orion_nand
[    7.658578] Creating 9 MTD partitions on "orion_nand":
[    7.663748] 0x000000000000-0x000000100000 : "uboot"
[    7.669991] 0x000000100000-0x000000180000 : "uboot_env"
[    7.676619] 0x000000180000-0x000000200000 : "key_store"
[    7.683178] 0x000000200000-0x000000280000 : "info"
[    7.689208] 0x000000280000-0x000000c80000 : "etc"
[    7.695085] 0x000000c80000-0x000001680000 : "kernel_1"
[    7.701510] 0x000001680000-0x000004640000 : "rootfs1"
[    7.708133] 0x000004640000-0x000005040000 : "kernel_2"
[    7.714579] 0x000005040000-0x000008000000 : "rootfs2"
[    7.722494] libphy: Fixed MDIO Bus: probed
[    7.727524] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    7.734095] ehci-pci: EHCI PCI platform driver
[    7.738654] ehci-orion: EHCI orion driver
[    7.742886] orion-ehci f1050000.ehci: EHCI Host Controller
[    7.748462] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[    7.756389] orion-ehci f1050000.ehci: irq 30, io mem 0xf1050000
[    7.785433] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[    7.791741] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    7.798607] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    7.805905] usb usb1: Product: EHCI Host Controller
[    7.810811] usb usb1: Manufacturer: Linux 4.12.1-kirkwood-tld-1 ehci_hcd
[    7.817580] usb usb1: SerialNumber: f1050000.ehci
[    7.822959] hub 1-0:1.0: USB hub found
[    7.826828] hub 1-0:1.0: 1 port detected
[    7.831388] usbcore: registered new interface driver usb-storage
[    7.837832] mousedev: PS/2 mouse device common for all mice
[    7.844010] rtc-mv f1010300.rtc: rtc core: registered f1010300.rtc as rtc0
[    7.851136] i2c /dev entries driver
[    7.857862] hidraw: raw HID events driver (C) Jiri Kosina
[    7.863694] drop_monitor: Initializing network drop monitor service
[    7.870354] NET: Registered protocol family 17
[    7.874900] Key type dns_resolver registered
[    7.879938] registered taskstats version 1
[    7.884057] Loading compiled-in X.509 certificates
[    7.888959] zswap: loaded using pool lzo/zbud
[    7.903438] Key type big_key registered
[    7.916809] Key type encrypted registered
[    7.922259] rtc-mv f1010300.rtc: setting system clock to 2018-12-13 13:09:03 UTC (1544706543)
[    8.035456] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[    8.067883] ata1.00: ATA-8: ST1000DM003-1SB102, CC43, max UDMA/133
[    8.074096] ata1.00: 1953525168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[    8.087772] ata1.00: configured for UDMA/133
[    8.102626] scsi 0:0:0:0: Direct-Access     ATA      ST1000DM003-1SB1 CC43 PQ: 0 ANSI: 5
[    8.111945] sd 0:0:0:0: [sda] 1953525168 512-byte logical blocks: (1.00 TB/932 GiB)
[    8.120243] sd 0:0:0:0: [sda] 4096-byte physical blocks
[    8.125654] sd 0:0:0:0: [sda] Write Protect is off
[    8.130592] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    8.155136]  sda: sda1
[    8.159019] sd 0:0:0:0: [sda] Attached SCSI disk
[    8.185444] usb 1-1: new high-speed USB device number 2 using orion-ehci
[    8.377148] usb 1-1: New USB device found, idVendor=05e3, idProduct=0608
[    8.383913] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    8.391140] usb 1-1: Product: USB2.0 Hub
[    8.396118] hub 1-1:1.0: USB hub found
[    8.400273] hub 1-1:1.0: 4 ports detected
[    8.455722] ata2: SATA link down (SStatus 0 SControl F300)
[    8.474216] Freeing unused kernel memory: 1024K
Loading, please wait...
starting version 232
[    8.906719] r8169 Gigabit Ethernet driver 2.3LK-NAPI loaded
[    8.912386] r8169 0000:01:00.0: enabling device (0140 -> 0143)
[    8.962128] r8169 0000:01:00.0 eth0: RTL8168d/8111d at 0xd0d4f000, 00:00:00:00:00:30, XID 083000c0 IRQ 33
[    9.010937] r8169 0000:01:00.0 eth0: jumbo features [frames: 9200 bytes, tx checksumming: ko]
[    9.348670] r8169 0000:01:00.0 enp1s0: renamed from eth0
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... done.
Warning: fsck not present, so skipping unknown file system
mount: can't find /root in /etc/fstab
done.
Begin: Running /scripts/local-bottom ... done.
Begin: Running /scripts/init-bottom ... mount: mounting /dev on /root/dev failed: No such file or directory
mount: mounting /dev on /root/dev failed: No such file or directory
done.
mount: mounting /run on /root/run failed: No such file or directory
run-init: current directory on the same filesystem as the root: error 0
Target filesystem doesn't have requested /sbin/init.
run-init: current directory on the same filesystem as the root: error 0
run-init: current directory on the same filesystem as the root: error 0
run-init: current directory on the same filesystem as the root: error 0
run-init: current directory on the same filesystem as the root: error 0
run-init: current directory on the same filesystem as the root: error 0
No init found. Try passing init= bootarg.


BusyBox v1.22.1 (Debian 1:1.22.0-19+b3) built-in shell (ash)
Enter 'help' for a list of built-in commands.

(initramfs)

Re: NSA310 - fail installing debian - initramfs
December 13, 2018 09:10AM
Quote
drakul
mount: can't find /root in /etc/fstab
done.
Begin: Running /scripts/local-bottom ... done.
Begin: Running /scripts/init-bottom ... mount: mounting /dev on /root/dev failed: No such file or directory
mount: mounting /dev on /root/dev failed: No such file or directory
done.

I'd guess the location of your rootfs doesn't match what your passing from uboot (root=xxxxxx). You should be able to fix your boot parameters in uboot or generate a new initramfs that handles it as is.

Looks like it's not finding the rootdevice. Since you are getting into a recovery shell you should be able to:

1. manually mount the rootfs and /boot if they are separate.
2. chroot into the rootfs
3. create appropriate /etc/fstab entries for "/"
4. generate a new initrd (update-initramfs -u)
5. package it up as uboot inird image and put in the appropriate location
Re: NSA310 - fail installing debian - initramfs
December 13, 2018 09:46AM
admittedly I'm making a few assumptions. If you post the output of "ls /sys/block", "cat /etc/fstab" from that recovery shell and the output of "printenv" from uboot I can probably be more specific.
Re: NSA310 - fail installing debian - initramfs
December 13, 2018 10:49AM
Thank you very much for your suggestions. I printenv from uBoot:
NSA310> printenv
arcNumber=4022
baudrate=115200
bootcmd=run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec; reset
bootcmd_exec=run load_uimage; if run load_initrd; then if run load_dtb; then bootm $load_uimage_addr $load_initrd_addr $load_dtb_addr; else bootm $load_uimage_addr $load_initrd_addr; fi; else if run load_dtb; then bootm $load_uimage_addr - $load_dtb_addr; else bootm$load_uimage_addr; fi; fi
bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi
bootdelay=10
bootdev=usb
console=ttyS0,115200
device=0:1
devices=usb ide
disks=0 1 2 3
dtb_file=/boot/dts/kirkwood-nsa310a.dtb
ethact=egiga0
ethaddr=52:3b:20:9c:11:51
filesize=0
if_netconsole=ping $serverip
ipaddr=192.168.0.231
led_error=orange blinking
led_exit=green off
led_init=green blinking
load_dtb=ext2load ide 0:1 0x1c00000 /boot/dts/kirkwood-nsa310.dtb
load_dtb_addr=0x1c00000
load_initrd=ext2load ide 0:1 0x1100000 /boot/uInitrd
load_initrd_addr=0x1100000
load_uimage=ext2load ide 0:1 0x800000 /boot/uImage
load_uimage_addr=0x800000
mainlineLinux=yes
mtddevname=key_store
mtddevnum=2
mtdids=nand0=orion_nand
mtdparts=mtdparts=orion_nand:0x100000(uboot),0x80000(uboot_env),0x80000(key_store),0x80000(info),0xA00000(etc),0xA00000(kernel_1),0x2FC0000(rootfs1),0xA00000(kernel_2),0x2FC0000(rootfs2)
nand_erasesize=20000
nand_oobsize=40
nand_writesize=800
partition=nand0,2
preboot_nc=run if_netconsole start_netconsole
scan_disk=echo running scan_disk ...; scan_done=0; setenv scan_usb "usb start";  setenv scan_ide "ide reset";  setenv scan_mmc "mmc rescan"; for dev in $devices; do if test $scan_done -eq 0; then echo Scan device $dev; run scan_$dev; for disknum in $disks; do if test $scan_done -eq 0; then echo device $dev $disknum:1; if load $dev $disknum:1 $load_uimage_addr /boot/uImage 1; then scan_done=1; echo Found bootable drive on $dev $disknum; setenv device $disknum:1; setenv bootdev $dev; fi; fi; done; fi; done
serverip=192.168.0.220
set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts $custom_params
start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version;
stderr=serial
stdin=serial
stdout=serial
uenv_addr=0x810000
uenv_import=echo importing envs ...; env import -t $uenv_addr $filesize
uenv_init_devices=setenv init_usb "usb start";  setenv init_ide "ide reset";  setenv init_mmc "mmc rescan"; for devtype in $devices; do run init_$devtype; done;
uenv_load=run uenv_init_devices; setenv uenv_loaded 0; for devtype in $devices;  do for disknum in 0; do run uenv_read_disk; done; done;
uenv_read=echo loading envs from $devtype $disknum ...; if load $devtype $disknum:1 $uenv_addr /boot/uEnv.txt; then setenv uenv_loaded 1; fi
uenv_read_disk=if test $devtype -eq mmc; then if $devtype part; then run uenv_read;  fi; else if $devtype part $disknum; then run uenv_read; fi;  fi
usb_ready_retry=15

Environment size: 3017/131068 bytes

ls /sys/block
 ls /sys/block
loop0      loop3      loop6      mtdblock1  mtdblock4  mtdblock7
loop1      loop4      loop7      mtdblock2  mtdblock5  mtdblock8
loop2      loop5      mtdblock0  mtdblock3  mtdblock6  sda

cat /etc/fstab is EMPTY
(initramfs) cat /etc/fstab
(initramfs) cat /etc/fstab
(initramfs) /etc/fstab
sh: /etc/fstab: Permission denied
(initramfs) cat /etc/fstab
(initramfs) vi /etc/fstab

blkid
(initramfs) blkid
/dev/sda1: LABEL="rootfs" UUID="5b124020-15e7-47c4-8166-cec3ab993657" SEC_TYPE="ext2" TYPE="ext3" PARTUUID="11df4651-01"

mount
rootfs on / type rootfs (rw,size=119680k,nr_inodes=29920)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
udev on /dev type devtmpfs (rw,nosuid,relatime,size=119680k,nr_inodes=29920,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,noexec,relatime,size=24748k,mode=755)



Edited 4 time(s). Last edit at 12/13/2018 11:47AM by drakul.
Re: NSA310 - fail installing debian - initramfs
December 13, 2018 12:58PM
I should have probably mentioned that the /etc/fstab would be found inside the rootfs once you manage to mount it.

bodhi or someone familiar with these specific images might chime in with a best practice for this situation (I haven't gotten around to trying them out yet). But I've been at this point before and think I know what you need.

I'm thinking you should be able to get things working doing more or less the following:

1. mount your rootfs and then chroot into it:

mkdir /mnt/target
mount /dev/sda1 /mnt/target
mount -t proc none /mnt/target/proc
mount -t sysfs none /mnt/target/sys
mount -o bind /dev /mnt/target/dev
chroot /mnt/target /bin/bash

2. modify the /etc/fstab inside the chroot by adding/modifying a line to be similar to:
UUID=5b124020-15e7-47c4-8166-cec3ab993657 / ext3 defaults 1 1

3. generate a new initrd which will set the proper root device:
update-initramfs -u

4. create the uboot image based on that new initrd
mkimage -A arm -O linux -T ramdisk -C gzip -d /boot/initrd /boot/uInitrd

5. exit the chroot, reboot, hope all is well
Re: NSA310 - fail installing debian - initramfs
December 13, 2018 04:50PM
All,

No, the problem is quite simple. Don't try to do too much. Let me explain it shortly.

----
EDITED:typo

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)



Edited 1 time(s). Last edit at 12/13/2018 05:50PM by bodhi.
Re: NSA310 - fail installing debian - initramfs
December 13, 2018 05:47PM
drakul,

Quote

Hi guys, pls I used the last uBoot (flashed via UART with kwboot-tool). Then I plugged new HDD to my PC, formated that HDD in Ubuntu to EXT3 and then extracted Debian-4.12.1-kirkwood-tld-1-rootfs-bodhi.tar.bz2. After this I plugged that HDD to my NSA310. Im tried almost all possible things (reinstalling uBoot, HDD reformat, ...), but Im still stuck at (initramfs) and I cant run debian.

Mount the HDD on your PC again. Assuming it is mounted at /media/sdb1.

cd /media/sdb1/boot
ls -lart

Recall the step when you extracted the rootfs. Did you append the DTB to uImage? if you did then you will see uImage.orig in the output. The original uImage must be used since you are booting with the latest u-boot. (I'm positive that you did this step, just wanted to explain why).

Quote

4. Create uImage with embedded DTB for booting with older u-boots (2012 or earlier). Skip this step if you have installed the latest U-Boot for Kirkwood (or are installing this u-boot at the same time).

Please replace kirkwood-goflexnet.dtb below with the correct DTB name for your box (see the folder /media/sdb1/boot/dts for the exact spelling of your Kirkwood box name).

Generate the uImage with DTB embedded inside:
cd /media/sdb1/boot
cp -a zImage-4.12.1-kirkwood-tld-1 zImage.fdt
cat dts/kirkwood-goflexnet.dtb >> zImage.fdt
mv uImage uImage.orig
mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-4.12.1-kirkwood-tld-1 -d zImage.fdt uImage
sync


Restore the original uImage, bring the HDD back to the NSA310 and and try booting again.

cd /media/sdb1/boot
mv uImage.orig uImage
sync

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)



Edited 2 time(s). Last edit at 12/13/2018 06:14PM by bodhi.
Re: NSA310 - fail installing debian - initramfs
December 14, 2018 06:29AM
Guys bodhi and 1000001101000, thank you so much for your time. But I'm still stuck at this:
U-Boot 2017.07-tld-1 (Sep 05 2017 - 00:54:15 -0700)
ZyXEL NSA310 1-Bay Power Media Server


SoC:   Kirkwood 88F6281_A1
DRAM:  256 MiB
WARNING: Caches not enabled
NAND:  128 MiB
In:    serial
Out:   serial
Err:   serial
Net:   egiga0
PHY reset timed out
MV88E1318 PHY initialized on egiga0
Hit any key to stop autoboot:  0
Unknown command 'run' - try 'help'
running scan_disk ...
Scan device usb
starting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 2 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found
device usb 0:1
** Bad device usb 0 **
device usb 1:1
** Bad device usb 1 **
device usb 2:1
** Bad device usb 2 **
device usb 3:1
** Bad device usb 3 **
Scan device ide

Reset IDE: Bus 0: OK Bus 1: not available
  Device 0: Model: ST1000DM003-1SB102 Firm: CC43 Ser#: Z9A5PF22
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 953869.7 MB = 931.5 GB (1953525168 x 512)
device ide 0:1
1 bytes read in 83 ms (0 Bytes/s)
Found bootable drive on ide 0
Unknown command 'setenv' - try 'help'
3821592 bytes read in 1170 ms (3.1 MiB/s)
7245696 bytes read in 1698 ms (4.1 MiB/s)
13074 bytes read in 30 ms (424.8 KiB/s)
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-4.12.1-kirkwood-tld-1
   Created:      2017-07-20   8:11:24 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3821528 Bytes = 3.6 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 01100000 ...
   Image Name:   initramfs-4.12.1-kirkwood-tld-1
   Created:      2017-07-24   0:18:23 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    7245632 Bytes = 6.9 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 01c00000
   Booting using the fdt blob at 0x1c00000
   Loading Kernel Image ... OK
   Loading Ramdisk to 0f424000, end 0fb0cf40 ... OK
   Loading Device Tree to 0f41d000, end 0f423311 ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.12.1-kirkwood-tld-1 (root@tldDebian) (gcc version 4.9.2 (Debian 4.9.2-10) ) #1 PREEMPT Sat Jul 15 21:40:50 PDT 2017
[    0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] OF: fdt: 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
[    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: 239360K/262144K available (8192K kernel code, 716K rwdata, 1972K rodata, 1024K init, 288K bss, 22784K 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 - 0xc0900000   (9184 kB)
[    0.000000]       .init : 0xc0c00000 - 0xc0d00000   (1024 kB)
[    0.000000]       .data : 0xc0d00000 - 0xc0db3274   ( 717 kB)
[    0.000000]        .bss : 0xc0db9b9c - 0xc0e01e60   ( 289 kB)
[    0.000000] Preemptible hierarchical RCU implementation.
[    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.000007] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[    0.000041] Switching to timer-based delay loop, resolution 5ns
[    0.000504] Console: colour dummy device 80x30
[    0.000537] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=2000000)
[    0.000560] pid_max: default: 32768 minimum: 301
[    0.000754] Security Framework initialized
[    0.000878] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000897] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.001802] CPU: Testing write buffer coherency: ok
[    0.002826] Setting up static identity map for 0x100000 - 0x100058
[    0.003115] mvebu-soc-id: MVEBU SoC ID=0x6281, Rev=0x3
[    0.006329] devtmpfs: initialized
[    0.011022] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.011049] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.011439] prandom: seed boundary self test passed
[    0.015175] prandom: 100 self tests passed
[    0.015187] pinctrl core: initialized pinctrl subsystem
[    0.016337] NET: Registered protocol family 16
[    0.016699] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.018296] cpuidle: using governor ladder
[    0.018367] cpuidle: using governor menu
[    0.018731] Feroceon L2: Enabling L2
[    0.018778] Feroceon L2: Cache support initialised.
[    0.024141] No ATAGs?
[    0.033407] vgaarb: loaded
[    0.033726] SCSI subsystem initialized
[    0.034207] usbcore: registered new interface driver usbfs
[    0.034286] usbcore: registered new interface driver hub
[    0.034369] usbcore: registered new device driver usb
[    0.035418] clocksource: Switched to clocksource orion_clocksource
[    0.124021] VFS: Disk quotas dquot_6.6.0
[    0.124104] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.134605] NET: Registered protocol family 2
[    0.135348] TCP established hash table entries: 2048 (order: 1, 8192 bytes)
[    0.135387] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[    0.135470] TCP: Hash tables configured (established 2048 bind 2048)
[    0.135563] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.135593] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.135771] NET: Registered protocol family 1
[    0.136186] RPC: Registered named UNIX socket transport module.
[    0.136199] RPC: Registered udp transport module.
[    0.136206] RPC: Registered tcp transport module.
[    0.136213] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.136466] Unpacking initramfs...
[    0.800065] Freeing initrd memory: 7076K
[    0.800137] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.801130] audit: initializing netlink subsys (disabled)
[    0.801573] Initialise system trusted keyrings
[    0.801625] Key type blacklist registered
[    0.801730] audit: type=2000 audit(0.795:1): state=initialized audit_enabled=0 res=1
[    0.801806] workingset: timestamp_bits=30 max_order=16 bucket_order=0
[    0.801895] zbud: loaded
[    0.802858] NFS: Registering the id_resolver key type
[    0.802887] Key type id_resolver registered
[    0.802896] Key type id_legacy registered
[    0.802914] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.802924] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.803117] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.803312] fuse init (API version 7.26)
[    0.803655] orangefs_debugfs_init: called with debug mask: :none: :0:
[    0.803861] orangefs_init: module version upstream loaded
[    0.803873] SGI XFS with ACLs, security attributes, realtime, no debug enabled
[    2.555437] random: fast init done
[    6.648112] Key type asymmetric registered
[    6.648129] Asymmetric key parser 'x509' registered
[    6.648197] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    6.648208] io scheduler noop registered
[    6.648217] io scheduler deadline registered
[    6.648298] io scheduler cfq registered (default)
[    6.649574] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    6.651450] mvebu-pcie mbus@f1000000:pcie-controller@82000000: PCI host bridge to bus 0000:00
[    6.651471] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    6.651485] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xefffffff]
[    6.651498] pci_bus 0000:00: root bus resource [bus 00-ff]
[    6.651827] PCI: bus0: Fast back to back transfers disabled
[    6.651851] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    6.675498] PCI: bus1: Fast back to back transfers disabled
[    6.675709] pci 0000:00:01.0: BAR 14: assigned [mem 0xe0000000-0xe00fffff]
[    6.675726] pci 0000:00:01.0: BAR 13: assigned [io  0x10000-0x10fff]
[    6.675745] pci 0000:01:00.0: BAR 6: assigned [mem 0xe0000000-0xe000ffff pref]
[    6.675762] pci 0000:01:00.0: BAR 4: assigned [mem 0xe0010000-0xe0013fff 64bit pref]
[    6.675786] pci 0000:01:00.0: BAR 2: assigned [mem 0xe0014000-0xe0014fff 64bit pref]
[    6.675807] pci 0000:01:00.0: BAR 0: assigned [io  0x10000-0x100ff]
[    6.675823] pci 0000:00:01.0: PCI bridge to [bus 01]
[    6.675837] pci 0000:00:01.0:   bridge window [io  0x10000-0x10fff]
[    6.675853] pci 0000:00:01.0:   bridge window [mem 0xe0000000-0xe00fffff]
[    6.675947] pcieport 0000:00:01.0: enabling device (0140 -> 0143)
[    6.676471] mv_xor f1060800.xor: Marvell shared XOR driver
[    6.736171] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy sg intr )
[    6.736400] mv_xor f1060900.xor: Marvell shared XOR driver
[    6.796145] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy sg intr )
[    6.796589] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    6.797957] console [ttyS0] disabled
[    6.798026] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 26, base_baud = 12500000) is a 16550A
[    7.491713] console [ttyS0] enabled
[    7.503605] loop: module loaded
[    7.507424] sata_mv f1080000.sata: slots 32 ports 2
[    7.515078] scsi host0: sata_mv
[    7.518734] scsi host1: sata_mv
[    7.522139] ata1: SATA max UDMA/133 irq 32
[    7.526308] ata2: SATA max UDMA/133 irq 32
[    7.531181] nand: device found, Manufacturer ID: 0xec, Chip ID: 0xf1
[    7.537670] nand: Samsung NAND 128MiB 3,3V 8-bit
[    7.542312] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    7.549946] Scanning device for bad blocks
[    7.652692] 9 ofpart partitions found on MTD device orion_nand
[    7.658568] Creating 9 MTD partitions on "orion_nand":
[    7.663739] 0x000000000000-0x000000100000 : "uboot"
[    7.669981] 0x000000100000-0x000000180000 : "uboot_env"
[    7.676593] 0x000000180000-0x000000200000 : "key_store"
[    7.683150] 0x000000200000-0x000000280000 : "info"
[    7.689179] 0x000000280000-0x000000c80000 : "etc"
[    7.695058] 0x000000c80000-0x000001680000 : "kernel_1"
[    7.701488] 0x000001680000-0x000004640000 : "rootfs1"
[    7.708124] 0x000004640000-0x000005040000 : "kernel_2"
[    7.714579] 0x000005040000-0x000008000000 : "rootfs2"
[    7.722493] libphy: Fixed MDIO Bus: probed
[    7.727524] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    7.734096] ehci-pci: EHCI PCI platform driver
[    7.738664] ehci-orion: EHCI orion driver
[    7.742902] orion-ehci f1050000.ehci: EHCI Host Controller
[    7.748476] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[    7.756406] orion-ehci f1050000.ehci: irq 30, io mem 0xf1050000
[    7.785445] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[    7.791746] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    7.798615] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    7.805913] usb usb1: Product: EHCI Host Controller
[    7.810819] usb usb1: Manufacturer: Linux 4.12.1-kirkwood-tld-1 ehci_hcd
[    7.817589] usb usb1: SerialNumber: f1050000.ehci
[    7.822977] hub 1-0:1.0: USB hub found
[    7.826845] hub 1-0:1.0: 1 port detected
[    7.831396] usbcore: registered new interface driver usb-storage
[    7.837839] mousedev: PS/2 mouse device common for all mice
[    7.844018] rtc-mv f1010300.rtc: rtc core: registered f1010300.rtc as rtc0
[    7.851142] i2c /dev entries driver
[    7.857873] hidraw: raw HID events driver (C) Jiri Kosina
[    7.863700] drop_monitor: Initializing network drop monitor service
[    7.870364] NET: Registered protocol family 17
[    7.874905] Key type dns_resolver registered
[    7.879948] registered taskstats version 1
[    7.884065] Loading compiled-in X.509 certificates
[    7.888967] zswap: loaded using pool lzo/zbud
[    7.903541] Key type big_key registered
[    7.916983] Key type encrypted registered
[    7.922428] rtc-mv f1010300.rtc: setting system clock to 2018-12-14 12:21:57 UTC (1544790117)
[    8.035467] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[    8.046309] ata1.00: ATA-8: ST1000DM003-1SB102, CC43, max UDMA/133
[    8.052520] ata1.00: 1953525168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[    8.066123] ata1.00: configured for UDMA/133
[    8.080981] scsi 0:0:0:0: Direct-Access     ATA      ST1000DM003-1SB1 CC43 PQ: 0 ANSI: 5
[    8.090382] sd 0:0:0:0: [sda] 1953525168 512-byte logical blocks: (1.00 TB/932 GiB)
[    8.098607] sd 0:0:0:0: [sda] 4096-byte physical blocks
[    8.104011] sd 0:0:0:0: [sda] Write Protect is off
[    8.109009] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    8.128746]  sda: sda1
[    8.132604] sd 0:0:0:0: [sda] Attached SCSI disk
[    8.185454] usb 1-1: new high-speed USB device number 2 using orion-ehci
[    8.377166] usb 1-1: New USB device found, idVendor=05e3, idProduct=0608
[    8.383937] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    8.391163] usb 1-1: Product: USB2.0 Hub
[    8.396137] hub 1-1:1.0: USB hub found
[    8.400290] hub 1-1:1.0: 4 ports detected
[    8.430365] ata2: SATA link down (SStatus 0 SControl F300)
[    8.448884] Freeing unused kernel memory: 1024K
Loading, please wait...
starting version 232
[    8.883137] r8169 Gigabit Ethernet driver 2.3LK-NAPI loaded
[    8.915845] r8169 0000:01:00.0: enabling device (0140 -> 0143)
[    8.922545] r8169 0000:01:00.0 eth0: RTL8168d/8111d at 0xd0d4f000, 00:00:00:00:00:30, XID 083000c0 IRQ 33
[    8.986308] r8169 0000:01:00.0 eth0: jumbo features [frames: 9200 bytes, tx checksumming: ko]
[    9.322723] r8169 0000:01:00.0 enp1s0: renamed from eth0
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... done.
Warning: fsck not present, so skipping unknown file system
mount: can't find /root in /etc/fstab
done.
Begin: Running /scripts/local-bottom ... done.
Begin: Running /scripts/init-bottom ... mount: mounting /dev on /root/dev failed: No such file or directory
mount: mounting /dev on /root/dev failed: No such file or directory
done.
mount: mounting /run on /root/run failed: No such file or directory
run-init: current directory on the same filesystem as the root: error 0
Target filesystem doesn't have requested /sbin/init.
run-init: current directory on the same filesystem as the root: error 0
run-init: current directory on the same filesystem as the root: error 0
run-init: current directory on the same filesystem as the root: error 0
run-init: current directory on the same filesystem as the root: error 0
run-init: current directory on the same filesystem as the root: error 0
No init found. Try passing init= bootarg.


BusyBox v1.22.1 (Debian 1:1.22.0-19+b3) built-in shell (ash)
Enter 'help' for a list of built-in commands.

(initramfs)

I'm really sorry for my stupidity :)
Attachments:
open | download - IMG_20181214_132645.jpg (422 KB)
Re: NSA310 - fail installing debian - initramfs
December 14, 2018 08:23AM
Maybe I got some idea. I have Ubuntu on my PC in VirtualBox. When I run terminal, I have to put "sudo" before all executions (suda tar ...., sudo mkimage ...). But when I run "sudo cat dts/kirkwood-goflexnet.dtb >> zImage.fdt " I got "You have no permission." So I had to chmod 777 zImage.fdt and then it run correctly. Well my point is: Is it possible, that I make those folders (root, boot, usr, ...) on my HDD with wrong permissions and therefore I get "mounting /dev on /root/dev failed: No such file or directory" ?
Thank you for answers.
Re: NSA310 - fail installing debian - initramfs
December 14, 2018 04:41PM
drakul,

Don't worry! you just need to read the instruction carefully.

As I said above, you do not want to do step 4 when you create the rootfs:

https://forum.doozan.com/read.php?2,74784,74824#msg-74824

Quote

4. Create uImage with embedded DTB for booting with older u-boots (2012 or earlier). Skip this step if you have installed the latest U-Boot for Kirkwood (or are installing this u-boot at the same time).

Please replace kirkwood-goflexnet.dtb below with the correct DTB name for your box (see the folder /media/sdb1/boot/dts for the exact spelling of your Kirkwood box name).

Generate the uImage with DTB embedded inside:
cd /media/sdb1/boot
cp -a zImage-4.12.1-kirkwood-tld-1 zImage.fdt
cat dts/kirkwood-goflexnet.dtb >> zImage.fdt
mv uImage uImage.orig
mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-4.12.1-kirkwood-tld-1 -d zImage.fdt uImage
sync


So now all you need to do is reverse step 4.

Mount the HDD on Ubuntu, Restore the original uImage, bring the HDD back to the NSA310 and and try booting again.
cd /media/sdb1/boot
mv uImage.orig uImage
sync

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: NSA310 - fail installing debian - initramfs
December 14, 2018 04:43PM
If you still have trouble, recreate the rootfs, and post the terminal log for the session when you create the rootfs here and I'll review it for you.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
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: