Welcome! Log In Create A New Profile

Advanced

Unbricking OMNINAS kd20 (oxnas820)

Posted by crosser 
Re: Unbricking OMNINAS kd20 (oxnas820)
November 04, 2018 11:55AM
No luck up to now. To answer your question:
Quote
1. So what is on the USB drive? is the rootfs on the 2nd partition? With the current bootargs that you have, rootfs mut be on sda2

I had nothing in sda2 so I extracted wheezy_rootfst.tar.gz to it.
I had no usb-drive connected up to now.

I added console to folder dev which let the 'run' a little bit longer, but it stopped as before.
Today I tried out several images I found inside wheezy-folder.
This gave a little more success but it seems I run into trouble with rights on sda2. At least I think so.

Interesting is, that I can insert or remove the USB-Drive (USB2 Ports) and the serial console tells about.
BTW: It's a rescue system USB from Shuttle for Shuttle KD20 and Shuttle say this USB stick will boot/run on USB3 Port only which is not functional up to now.

But I can't give any commands via serial console, the input is just repeated (shown), but I find no way to interact via serial console.
Below you can see the log. Have a look to the -only root can do that and Read-only file system(s)

tftp 61000000 uInitrd_w
Wait GMAC to reset
Wait for PHY reset
PHY is IC+ IP1001LF
Wait for link to come up...........Link up
Wait for auto-negotiation to complete
Link is 1000M
TFTP from server 192.168.0.1; our IP address is 192.168.0.128
Filename 'uInitrd_w'.
Load address: 0x61000000
Loading: *<0x08>
ARP Resend request
T invalid RARP header
#################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 ###################################
done
Bytes transferred = 1841120 (1c17e0 hex)


OXNAS> tftp 60500000 uImage3.18.1_7
Wait GMAC to reset
Wait for PHY reset
PHY is IC+ IP1001LF
Wait for link to come up...........Link up
Wait for auto-negotiation to complete
Link is 1000M
TFTP from server 192.168.0.1; our IP address is 192.168.0.128
Filename 'uImage3.18.1_7'.
Load address: 0x60500000
Loading: *<0x08>
ARP Resend request
T invalid RARP header
#################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 ##############
done
Bytes transferred = 3066555 (2ecabb hex)
OXNAS> bootm
## Booting image at 60500000 ...
   Image Name:   Linux-3.18.1_7
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3066491 Bytes =  2.9 MB
   Load Address: 60008000
   Entry Point:  60008000
   Verifying Checksum ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 3.18.1_KD20-peace (peacemaker@VBarch) (gcc version 4.9.1 (GCC) ) #14 SMP Mon Jan 5 11:17:33 CET 2015
[    0.000000] CPU: ARMv6-compatible processor [410fb025] revision 5 (ARMv7), cr=00c5787d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] Machine model: Shuttle KD20
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] DT missing boot CPU MPIDR[23:0], fall back to default cpu_logical_map
[    0.000000] PERCPU: Embedded 9 pages/cpu @cfde0000 s6784 r8192 d21888 u36864
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 65024
[    0.000000] Kernel command line: root=/dev/sda2 initrd=0x61000000 console=ttyS0,115200 elevator=cfq mac_adr=0x00,0x25,0xb1,0xff,0xff,0x00 mem=256M poweroutage=yes
[    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: 251048K/262144K available (6197K kernel code, 241K rwdata, 1680K rodata, 184K init, 392K bss, 11096K reserved)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xffe00000   (2048 kB)
[    0.000000]     vmalloc : 0xd0800000 - 0xff000000   ( 744 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xd0000000   ( 256 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 0xc07b965c   (7878 kB)
[    0.000000]       .init : 0xc07ba000 - 0xc07e8000   ( 184 kB)
[    0.000000]       .data : 0xc07e8000 - 0xc08247d0   ( 242 kB)
[    0.000000]        .bss : 0xc08247d0 - 0xc08869ec   ( 393 kB)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000] NR_IRQS:160
[    0.000017] sched_clock: 24 bits at 390kHz, resolution 2560ns, wraps every 42949670400ns
[    0.000217] Console: colour dummy device 80x30
[    0.000250] Calibrating delay loop... 319.48 BogoMIPS (lpj=1597440)
[    0.050053] pid_max: default: 32768 minimum: 301
[    0.050224] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.050247] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.051120] CPU: Testing write buffer coherency: ok
[    0.051520] Setting up static identity map for 0x605e5dc8 - 0x605e5e00
[    0.053442] CPU1: Booted secondary processor
[    0.110177] Brought up 2 CPUs
[    0.110200] SMP: Total of 2 processors activated.
[    0.111180] devtmpfs: initialized
[    0.114721] xor: measuring software checksum speed
[    0.209973]    arm4regs  :  1108.400 MB/sec
[    0.309985]    8regs     :   515.200 MB/sec
[    0.409968]    32regs    :   560.800 MB/sec
[    0.409986] xor: using function: arm4regs (1108.400 MB/sec)
[    0.410032] pinctrl core: initialized pinctrl subsystem
[    0.412892] NET: Registered protocol family 16
[    0.413614] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.417904] gpio-oxnas 44000000.gpio: at address d0848000
[    0.418176] gpio-oxnas 44100000.gpio: at address d084a000
[    0.418598] pinctrl-oxnas pinctrl: initialized OX820 pinctrl driver
[    0.590464] raid6: int32x1     39 MB/s
[    0.760683] raid6: int32x2     64 MB/s
[    0.930682] raid6: int32x4     71 MB/s
[    1.100764] raid6: int32x8     69 MB/s
[    1.100782] raid6: using algorithm int32x4 (71 MB/s)
[    1.100792] raid6: using intx1 recovery algorithm
[    1.211256] oxnas-pcie 47c0: PCIe version/deviceID 0x82510b5
[    1.222423] oxnas-pcie 47c0: link up
[    1.222666] oxnas-pcie 47c0: PCI host bridge to bus 0000:00
[    1.222694] pci_bus 0000:00: root bus resource [mem 0x48000000-0x49ffffff]
[    1.222714] pci_bus 0000:00: root bus resource [mem 0x4a000000-0x4bdfffff pref]
[    1.222732] pci_bus 0000:00: root bus resource [io  0x0000-0xfffff]
[    1.222753] pci_bus 0000:00: root bus resource [bus 00-7f]
[    1.223262] PCI: bus0: Fast back to back transfers disabled
[    1.223344] pci 0000:00:00.0: BAR 0: assigned [mem 0x48000000-0x48007fff 64bit]
[    1.223772] vgaarb: loaded
[    1.224222] SCSI subsystem initialized
[    1.224988] usbcore: registered new interface driver usbfs
[    1.225080] usbcore: registered new interface driver hub
[    1.225210] usbcore: registered new device driver usb
[    1.225349] pps_core: LinuxPPS API ver. 1 registered
[    1.225364] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    1.225405] PTP clock support registered
[    1.227325] Switched to clocksource rps_clocksource_timer
[    1.227353] cfg80211: Calling CRDA to update world regulatory domain
[    1.241105] NET: Registered protocol family 2
[    1.242106] TCP established hash table entries: 2048 (order: 1, 8192 bytes)
[    1.242168] TCP bind hash table entries: 2048 (order: 2, 16384 bytes)
[    1.242227] TCP: Hash tables configured (established 2048 bind 2048)
[    1.242316] TCP: reno registered
[    1.242344] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    1.242385] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    1.242700] NET: Registered protocol family 1
[    1.243287] RPC: Registered named UNIX socket transport module.
[    1.243307] RPC: Registered udp transport module.
[    1.243317] RPC: Registered tcp transport module.
[    1.243330] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    1.243399] pci 0000:00:00.0: enabling device (0140 -> 0142)
[    1.245017] futex hash table entries: 512 (order: 2, 16384 bytes)
[    1.261038] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    1.262773] fuse init (API version 7.23)
[    1.263682] SGI XFS with ACLs, security attributes, realtime, no debug enabled
[    1.267425] NILFS version 2 loaded
[    1.269493] gfs2: GFS2 installed
[    1.269560] msgmni has been set to 490
[    1.272701] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[    1.272739] io scheduler noop registered
[    1.272762] io scheduler deadline registered
[    1.272819] io scheduler cfq registered (default)
[    1.273372] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[    1.274698] console [ttyS0] disabled
[    1.274777] of_serial 44200000.uart: ttyS0 at MMIO 0x44200000 (irq = 55, base_baud = 390625) is a 16550A
[    1.844579] console [ttyS0] enabled
[    1.850396] scsi host0: sata_oxnas
[    1.854512] scsi host1: sata_oxnas
[    1.858176] ata1: SATA max UDMA/133 irq 50
[    1.862256] ata2: SATA max UDMA/133 irq 50
[    1.866652] sata_oxnas: resetting SATA core
[    1.867568] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xf1
[    1.867576] nand: Hynix H27U1G8F2BTR-BC
[    1.867584] nand: 128MiB, SLC, page size: 2048, OOB size: 64
[    1.867599] Scanning device for bad blocks
[    1.949701] 2 ofpart partitions found on MTD device 41000000.nand
[    1.955778] Creating 2 MTD partitions on "41000000.nand":
[    1.961157] 0x000000000000-0x000000e00000 : "boot"
[    1.967336] 0x000000e00000-0x000008000000 : "ubi"
[    1.973918] stmmaceth 40400000.ethernet: snps,phy-addr property is deprecated
[    1.981112] stmmaceth 40400000.ethernet: no reset control found
[    1.987038] stmmac - user ID: 0x12, Synopsys ID: 0x35
[    1.992061]  Ring mode enabled
[    1.995107]  DMA HW capability register supported
[    1.999616]  Enhanced/Alternate descriptors
[    2.003952] 	Enabled extended descriptors
[    2.007943]  RX Checksum Offload Engine supported (type 2)
[    2.013396]  TX Checksum insertion supported
[    2.017651]  Wake-Up On Lan supported
[    2.021291]  Enable RX Mitigation via HW Watchdog Timer
[    2.029355] libphy: stmmac: probed
[    2.032750] eth0: PHY ID 02430d91 at 1 IRQ POLL (stmmac-0:01) active
[    2.039377] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    2.045911] ehci-pci: EHCI PCI platform driver
[    2.050670] oxnas-ehci 40200100.ehci: EHCI Host Controller
[    2.056222] oxnas-ehci 40200100.ehci: new USB bus registered, assigned bus number 1
[    2.064000] oxnas-ehci 40200100.ehci: irq 39, io mem 0x40200100
[    2.083576] oxnas-ehci 40200100.ehci: USB 2.0 started, EHCI 1.00
[    2.089894] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    2.096691] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.103900] usb usb1: Product: EHCI Host Controller
[    2.108753] usb usb1: Manufacturer: Linux 3.18.1_KD20-peace ehci_hcd
[    2.115089] usb usb1: SerialNumber: 40200100.ehci
[    2.120611] hub 1-0:1.0: USB hub found
[    2.124456] hub 1-0:1.0: 2 ports detected
[    2.129070] usbcore: registered new interface driver usblp
[    2.134753] usbcore: registered new interface driver usb-storage
[    2.141030] mousedev: PS/2 mouse device common for all mice
[    2.146977] gpio-fan gpio-fan: GPIO fan initialized
[    2.151902] md: linear personality registered for level -1
[    2.157406] md: raid0 personality registered for level 0
[    2.162698] md: raid1 personality registered for level 1
[    2.168002] md: raid10 personality registered for level 10
[    2.174364] device-mapper: ioctl: 4.28.0-ioctl (2014-09-17) initialised: dm-devel@redhat.com
[    2.184453] usbcore: registered new interface driver usbhid
[    2.190005] usbhid: USB HID core driver
[    2.194211] TCP: cubic registered
[    2.198502] NET: Registered protocol family 10
[    2.204549] sit: IPv6 over IPv4 tunneling driver
[    2.210099] NET: Registered protocol family 17
[    2.219409] Btrfs loaded
[    2.222387] drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
[    2.410022] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[    2.443586] usb 1-2: new high-speed USB device number 2 using oxnas-ehci
[    2.604551] usb 1-2: New USB device found, idVendor=08ec, idProduct=0012
[    2.611233] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    2.618362] usb 1-2: Product: DiskOnKey
[    2.622184] usb 1-2: Manufacturer: M-Sys
[    2.626104] usb 1-2: SerialNumber: 2880224153400E5B
[    2.631961] usb-storage 1-2:1.0: USB Mass Storage device detected
[    2.638566] scsi host2: usb-storage 1-2:1.0
[    2.820080] ata1.00: ATA-8: TOSHIBA MK6465GSX, GJ003A, max UDMA/100
[    2.826329] ata1.00: 1250263728 sectors, multi 16: LBA48 NCQ (depth 0/32)
[    2.833920] ata1.00: configured for UDMA/100
[    2.838673] scsi 0:0:0:0: Direct-Access     ATA      TOSHIBA MK6465GS 3A   PQ: 0 ANSI: 5
[    2.848261] sd 0:0:0:0: [sda] 1250263728 512-byte logical blocks: (640 GB/596 GiB)
[    2.856040] sata_oxnas: resetting SATA core
[    2.856458] sd 0:0:0:0: [sda] Write Protect is off
[    2.856686] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    2.903605] sata_oxnas: resetting SATA core
[    3.583544] ata2: SATA link down (SStatus 0 SControl 300)
[    3.644561] scsi 2:0:0:0: Direct-Access     M-Sys    DiskOnKey        4.70 PQ: 0 ANSI: 0 CCS
[    3.655613] sd 2:0:0:0: [sdb] 1019392 512-byte logical blocks: (521 MB/497 MiB)
[    3.660113] ata1: exception Emask 0x10 SAct 0x0 SErr 0x0 action 0xe frozen
[    3.660142] ata1: hard resetting link
[    3.674124] sd 2:0:0:0: [sdb] Write Protect is off
[    3.679485] sd 2:0:0:0: [sdb] No Caching mode page found
[    3.684810] sd 2:0:0:0: [sdb] Assuming drive cache: write through
[    3.695147]  sdb: sdb1
[    3.701114] sd 2:0:0:0: [sdb] Attached SCSI removable disk
[    4.570050] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[    4.632209] ata1.00: configured for UDMA/100
[    4.636477] ata1: EH complete
[    4.684113]  sda: sda1 sda2
[    4.689717] sd 0:0:0:0: [sda] Attached SCSI disk
[    4.694522] md: Waiting for all devices to be available before autodetect
[    4.701286] md: If you don't use raid, use raid=noautodetect
[    4.707793] md: Autodetecting RAID arrays.
[    4.711877] md: Scanned 0 and added 0 devices.
[    4.716326] md: autorun ...
[    4.719101] md: ... autorun DONE.
[    4.724467] EXT2-fs (sda2): error: couldn't mount because of unsupported optional features (4)
[    4.733713] EXT4-fs (sda2): mounting ext3 file system using the ext4 subsystem
[    4.752256] EXT4-fs (sda2): INFO: recovery required on readonly filesystem
[    4.759160] EXT4-fs (sda2): write access will be enabled during recovery
[    5.110791] EXT4-fs (sda2): recovery complete
[    5.123358] EXT4-fs (sda2): mounted filesystem with ordered data mode. Opts: (null)
[    5.131074] VFS: Mounted root (ext3 filesystem) readonly on device 8:2.
[    5.144847] devtmpfs: mounted
[    5.148193] Freeing unused kernel memory: 184K (c07ba000 - c07e8000)
INIT: version 2.88 booting
[<0x1b>[36minfo<0x1b>[39;49m] Using makefile-style concurrent boot in runlevel S.
mount: only root can do that (effective UID is 1000)
touch: cannot touch `/run/.tmpfs': Read-only file system
mount: only root can do that (effective UID is 1000)
touch: cannot touch `/run/lock/.tmpfs': Read-only file system
mount: only root can do that (effective UID is 1000)
[....] udev requires a mounted procfs, not started ...<0x1b>[?25l<0x1b>[?1c<0x1b>7<0x1b>[1G[<0x1b>[31mFAIL<0x1b>[39;49m<0x1b>8<0x1b>[?25h<0x1b>[?0c <0x1b>[31mfailed!<0x1b>[39;49m
<0x1b>[?25l<0x1b>[?1c<0x1b>7<0x1b>[1G[<0x1b>[31mFAIL<0x1b>[39;49m<0x1b>8<0x1b>[?25h<0x1b>[?0c <0x1b>[31mfailed!<0x1b>[39;49m
mount: only root can do that (effective UID is 1000)
touch: cannot touch `/run/shm/.tmpfs': Read-only file system
[....] Filesystem type 'devpts' is not supported. Skipping mount. ...<0x1b>[?25l<0x1b>[?1c<0x1b>7<0x1b>[1G[<0x1b>[33mwarn<0x1b>[39;49m<0x1b>8<0x1b>[?25h<0x1b>[?0c <0x1b>[33m(warning).<0x1b>[39;49m
[<0x1b>[36minfo<0x1b>[39;49m] Setting the system clock.
hwclock: Cannot access the Hardware Clock via any known method.
hwclock: Use the --debug option to see the details of our search for an access method.
[....] Unable to set System Clock to: Thu Jan 1 00:00:08 UTC 1970 ...<0x1b>[?25l<0x1b>[?1c<0x1b>7<0x1b>[1G[<0x1b>[33mwarn<0x1b>[39;49m<0x1b>8<0x1b>[?25h<0x1b>[?0c <0x1b>[33m(warning).<0x1b>[39;49m
[....] Activating swap...<0x1b>[?25l<0x1b>[?1c<0x1b>7<0x1b>[1G[<0x1b>[32m ok <0x1b>[39;49m<0x1b>8<0x1b>[?25h<0x1b>[?0cdone.
mount: only root can do that (effective UID is 1000)
[....] Cleaning up temporary files...[    9.479575] random: nonblocking pool is initialized
/etc/init.d/checkroot-bootclean.sh: 22: /etc/init.d/checkroot-bootclean.sh: cannot create /tmp/.clean: Read-only file system
touch: cannot touch `/run/.tmpfs': Read-only file system
touch: cannot touch `/run/lock/.tmpfs': Read-only file system
touch: cannot touch `/run/.tmpfs': Read-only file system
touch: cannot touch `/run/lock/.tmpfs': Read-only file system
mount: only root can do that (effective UID is 1000)
touch: cannot touch `/run/shm/.tmpfs': Read-only file system
[....] Filesystem type 'devpts' is not supported. Skipping mount. ...<0x1b>[?25l<0x1b>[?1c<0x1b>7<0x1b>[1G[<0x1b>[33mwarn<0x1b>[39;49m<0x1b>8<0x1b>[?25h<0x1b>[?0c <0x1b>[33m(warning).<0x1b>[39;49m
touch: cannot touch `/run/shm/.tmpfs': Read-only file system
[....] Filesystem type 'devpts' is not supported. Skipping mount. ...<0x1b>[?25l<0x1b>[?1c<0x1b>7<0x1b>[1G[<0x1b>[33mwarn<0x1b>[39;49m<0x1b>8<0x1b>[?25h<0x1b>[?0c <0x1b>[33m(warning).<0x1b>[39;49m
/etc/init.d/mtab.sh: 48: /etc/init.d/mtab.sh: cannot open /proc/mounts: No such file
[....] Activating lvm and md swap...<0x1b>[?25l<0x1b>[?1c<0x1b>7<0x1b>[1G[<0x1b>[32m ok <0x1b>[39;49m<0x1b>8<0x1b>[?25h<0x1b>[?0cdone.
[....] Checking file systems...fsck from util-linux 2.20.1
<0x1b>[?25l<0x1b>[?1c<0x1b>7<0x1b>[1G[<0x1b>[32m ok <0x1b>[39;49m<0x1b>8<0x1b>[?25h<0x1b>[?0cdone.
[....] Mounting local filesystems...mount: only root can do that (effective UID is 1000)
<0x1b>[?25l<0x1b>[?1c<0x1b>7<0x1b>[1G[<0x1b>[31mFAIL<0x1b>[39;49m<0x1b>8<0x1b>[?25h<0x1b>[?0c<0x1b>[31mfailed.<0x1b>[39;49m
[....] Activating swapfile swap...<0x1b>[?25l<0x1b>[?1c<0x1b>7<0x1b>[1G[<0x1b>[32m ok <0x1b>[39;49m<0x1b>8<0x1b>[?25h<0x1b>[?0cdone.
mount: only root can do that (effective UID is 1000)
touch: kann <0xbb>/run/.tmpfs<0xab> nicht ber<0xfc>hren: Das Dateisystem ist nur lesbar
mount: only root can do that (effective UID is 1000)
touch: kann <0xbb>/run/lock/.tmpfs<0xab> nicht ber<0xfc>hren: Das Dateisystem ist nur lesbar
mount: only root can do that (effective UID is 1000)
touch: kann <0xbb>/run/shm/.tmpfs<0xab> nicht ber<0xfc>hren: Das Dateisystem ist nur lesbar
df: Warning: cannot read table of mounted file systems
[....] Cleaning up temporary files.../etc/init.d/mountall-bootclean.sh: 22: /etc/init.d/mountall-bootclean.sh: cannot create /tmp/.clean: Read-only file system
[....] Setting kernel variables ...<0x1b>[?25l<0x1b>[?1c<0x1b>7<0x1b>[1G[<0x1b>[32m ok <0x1b>[39;49m<0x1b>8<0x1b>[?25h<0x1b>[?0cdone.
[....] Configuring network interfaces...ifup: failed to open statefile /run/network/ifstate: Read-only file system
<0x1b>[?25l<0x1b>[?1c<0x1b>7<0x1b>[1G[<0x1b>[31mFAIL<0x1b>[39;49m<0x1b>8<0x1b>[?25h<0x1b>[?0c<0x1b>[31mfailed.<0x1b>[39;49m
[....] Cleaning up temporary files.../etc/init.d/mountnfs-bootclean.sh: 22: /etc/init.d/mountnfs-bootclean.sh: cannot create /tmp/.clean: Read-only file system
/etc/init.d/bootmisc.sh: 29: /etc/init.d/bootmisc.sh: cannot create /var/run/utmp: Read-only file system
[....] startpar: service(s) returned failure: udev checkroot-bootclean.sh mountall-bootclean.sh mountnfs-bootclean.sh bootmisc.sh ...<0x1b>[?25l<0x1b>[?1c<0x1b>7<0x1b>[1G[<0x1b>[31mFAIL<0x1b>[39;49m<0x1b>8<0x1b>[?25h<0x1b>[?0c <0x1b>[31mfailed!<0x1b>[39;49m
INIT: Entering runlevel: 2
[<0x1b>[36minfo<0x1b>[39;49m] Using makefile-style concurrent boot in runlevel 2.
savelog: directory /var/log/ is not writable
/etc/init.d/bootlogs: 23: /etc/init.d/bootlogs: cannot create /var/log/dmesg: Read-only file system
chgrp: changing group of `/var/log/dmesg': Read-only file system
/etc/init.d/motd: 21: /etc/init.d/motd: cannot create /var/run/motd.dynamic: Read-only file system
[....] Starting enhanced syslogd: rsyslogdCan't open or create /var/run/rsyslogd.pid.
Can't write pid.
Such message it will throw out while removing and inserting the USB stick. Shows there is something alive :)
[  134.808355] usb 1-2: USB disconnect, device number 2
[  145.390090] usb 1-1: new high-speed USB device number 3 using oxnas-ehci
[  145.541058] usb 1-1: New USB device found, idVendor=08ec, idProduct=0012
[  145.547742] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  145.554887] usb 1-1: Product: DiskOnKey
[  145.558709] usb 1-1: Manufacturer: M-Sys
[  145.562634] usb 1-1: SerialNumber: 2880224153400E5B
[  145.568453] usb-storage 1-1:1.0: USB Mass Storage device detected
[  145.575037] scsi host3: usb-storage 1-1:1.0
[  146.571059] scsi 3:0:0:0: Direct-Access     M-Sys    DiskOnKey        4.70 PQ: 0 ANSI: 0 CCS
[  146.582113] sd 3:0:0:0: [sdb] 1019392 512-byte logical blocks: (521 MB/497 MiB)
[  146.589977] sd 3:0:0:0: [sdb] Write Protect is off
[  146.595351] sd 3:0:0:0: [sdb] No Caching mode page found
[  146.600647] sd 3:0:0:0: [sdb] Assuming drive cache: write through
[  146.611031]  sdb: sdb1
[  146.616980] sd 3:0:0:0: [sdb] Attached SCSI removable disk
Re: Unbricking OMNINAS kd20 (oxnas820)
November 04, 2018 04:44PM
Bastler,

It looks very good!

And
OXNAS> bootm

Should be
bootm 0x60500000 0x61000000

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



Edited 1 time(s). Last edit at 11/04/2018 04:46PM by bodhi.
Re: Unbricking OMNINAS kd20 (oxnas820)
November 05, 2018 10:53AM
Ok bodhi, seems the last information was the winner for now.
Quote
bootm 0x60500000 0x61000000
System runs now to login :) And here I stumbled again :(

I tried several logins and passwords I found, and know, but I can't find the right combination of login and pwd for this.


OXNAS> tftp 61000000 uInitrd_w
Wait GMAC to reset
Wait for PHY reset
PHY is IC+ IP1001LF
Wait for link to come up...........Link up
Wait for auto-negotiation to complete
Link is 1000M
TFTP from server 192.168.0.1; our IP address is 192.168.0.128
Filename 'uInitrd_w'.
Load address: 0x61000000
Loading: *<0x08>
ARP Resend request
T invalid RARP header
#################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 ###################################
done
Bytes transferred = 1841120 (1c17e0 hex)
OXNAS> tftp 60500000 uImage3.18.1_7
Wait GMAC to reset
Wait for PHY reset
PHY is IC+ IP1001LF
Wait for link to come up...........Link up
Wait for auto-negotiation to complete
Link is 1000M
TFTP from server 192.168.0.1; our IP address is 192.168.0.128
Filename 'uImage3.18.1_7'.
Load address: 0x60500000
Loading: *<0x08>#################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 ##############
done
Bytes transferred = 3066555 (2ecabb hex)
OXNAS> bootm 60500000 61000000
## Booting image at 60500000 ...
   Image Name:   Linux-3.18.1_7
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3066491 Bytes =  2.9 MB
   Load Address: 60008000
   Entry Point:  60008000
   Verifying Checksum ... OK
OK
## Loading Ramdisk Image at 61000000 ...
   Image Name:   Wheezy Ramdisk
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    1841056 Bytes =  1.8 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 3.18.1_KD20-peace (peacemaker@VBarch) (gcc version 4.9.1 (GCC) ) #14 SMP Mon Jan 5 11:17:33 CET 2015
[    0.000000] CPU: ARMv6-compatible processor [410fb025] revision 5 (ARMv7), cr=00c5787d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] Machine model: Shuttle KD20
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] DT missing boot CPU MPIDR[23:0], fall back to default cpu_logical_map
[    0.000000] PERCPU: Embedded 9 pages/cpu @cfde0000 s6784 r8192 d21888 u36864
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 65024
[    0.000000] Kernel command line: root=/dev/sda2 initrd=0x61000000 console=ttyS0,115200 elevator=cfq mac_adr=0x00,0x25,0xb1,0xff,0xff,0x00 mem=256M poweroutage=yes
[    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: 249248K/262144K available (6197K kernel code, 241K rwdata, 1680K rodata, 184K init, 392K bss, 12896K reserved)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xffe00000   (2048 kB)
[    0.000000]     vmalloc : 0xd0800000 - 0xff000000   ( 744 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xd0000000   ( 256 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 0xc07b965c   (7878 kB)
[    0.000000]       .init : 0xc07ba000 - 0xc07e8000   ( 184 kB)
[    0.000000]       .data : 0xc07e8000 - 0xc08247d0   ( 242 kB)
[    0.000000]        .bss : 0xc08247d0 - 0xc08869ec   ( 393 kB)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000] NR_IRQS:160
[    0.000017] sched_clock: 24 bits at 390kHz, resolution 2560ns, wraps every 42949670400ns
[    0.000220] Console: colour dummy device 80x30
[    0.000250] Calibrating delay loop... 319.48 BogoMIPS (lpj=1597440)
[    0.050055] pid_max: default: 32768 minimum: 301
[    0.050227] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.050247] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.051125] CPU: Testing write buffer coherency: ok
[    0.051525] Setting up static identity map for 0x605e5dc8 - 0x605e5e00
[    0.053434] CPU1: Booted secondary processor
[    0.110172] Brought up 2 CPUs
[    0.110195] SMP: Total of 2 processors activated.
[    0.111178] devtmpfs: initialized
[    0.114828] xor: measuring software checksum speed
[    0.209976]    arm4regs  :  1108.400 MB/sec
[    0.309982]    8regs     :   515.200 MB/sec
[    0.409971]    32regs    :   560.800 MB/sec
[    0.409989] xor: using function: arm4regs (1108.400 MB/sec)
[    0.410035] pinctrl core: initialized pinctrl subsystem
[    0.413219] NET: Registered protocol family 16
[    0.413944] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.418232] gpio-oxnas 44000000.gpio: at address d0848000
[    0.418519] gpio-oxnas 44100000.gpio: at address d084a000
[    0.418961] pinctrl-oxnas pinctrl: initialized OX820 pinctrl driver
[    0.591462] raid6: int32x1     40 MB/s
[    0.760698] raid6: int32x2     64 MB/s
[    0.930693] raid6: int32x4     71 MB/s
[    1.100805] raid6: int32x8     69 MB/s
[    1.100820] raid6: using algorithm int32x4 (71 MB/s)
[    1.100830] raid6: using intx1 recovery algorithm
[    1.211299] oxnas-pcie 47c0: PCIe version/deviceID 0x82510b5
[    1.222453] oxnas-pcie 47c0: link up
[    1.222691] oxnas-pcie 47c0: PCI host bridge to bus 0000:00
[    1.222720] pci_bus 0000:00: root bus resource [mem 0x48000000-0x49ffffff]
[    1.222743] pci_bus 0000:00: root bus resource [mem 0x4a000000-0x4bdfffff pref]
[    1.222760] pci_bus 0000:00: root bus resource [io  0x0000-0xfffff]
[    1.222784] pci_bus 0000:00: root bus resource [bus 00-7f]
[    1.223285] PCI: bus0: Fast back to back transfers disabled
[    1.223367] pci 0000:00:00.0: BAR 0: assigned [mem 0x48000000-0x48007fff 64bit]
[    1.223779] vgaarb: loaded
[    1.224230] SCSI subsystem initialized
[    1.224988] usbcore: registered new interface driver usbfs
[    1.225090] usbcore: registered new interface driver hub
[    1.225223] usbcore: registered new device driver usb
[    1.225361] pps_core: LinuxPPS API ver. 1 registered
[    1.225377] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    1.225418] PTP clock support registered
[    1.227018] cfg80211: Calling CRDA to update world regulatory domain
[    1.227468] Switched to clocksource rps_clocksource_timer
[    1.241070] NET: Registered protocol family 2
[    1.242045] TCP established hash table entries: 2048 (order: 1, 8192 bytes)
[    1.242112] TCP bind hash table entries: 2048 (order: 2, 16384 bytes)
[    1.242170] TCP: Hash tables configured (established 2048 bind 2048)
[    1.242257] TCP: reno registered
[    1.242286] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    1.242329] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    1.242634] NET: Registered protocol family 1
[    1.243210] RPC: Registered named UNIX socket transport module.
[    1.243233] RPC: Registered udp transport module.
[    1.243246] RPC: Registered tcp transport module.
[    1.243258] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    1.243333] pci 0000:00:00.0: enabling device (0140 -> 0142)
[    1.243809] Unpacking initramfs...
[    1.444825] Freeing initrd memory: 1800K (c1000000 - c11c2000)
[    1.456483] futex hash table entries: 512 (order: 2, 16384 bytes)
[    1.472302] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    1.473991] fuse init (API version 7.23)
[    1.474859] SGI XFS with ACLs, security attributes, realtime, no debug enabled
[    1.478612] NILFS version 2 loaded
[    1.480757] gfs2: GFS2 installed
[    1.480826] msgmni has been set to 490
[    1.483904] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[    1.483937] io scheduler noop registered
[    1.483957] io scheduler deadline registered
[    1.484016] io scheduler cfq registered (default)
[    1.484546] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[    1.485824] console [ttyS0] disabled
[    1.485900] of_serial 44200000.uart: ttyS0 at MMIO 0x44200000 (irq = 55, base_baud = 390625) is a 16550A
[    2.064535] console [ttyS0] enabled
[    2.070305] scsi host0: sata_oxnas
[    2.074411] scsi host1: sata_oxnas
[    2.078085] ata1: SATA max UDMA/133 irq 50
[    2.082170] ata2: SATA max UDMA/133 irq 50
[    2.086430] sata_oxnas: resetting SATA core
[    2.087462] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xf1
[    2.087467] nand: Hynix H27U1G8F2BTR-BC
[    2.087477] nand: 128MiB, SLC, page size: 2048, OOB size: 64
[    2.087503] Scanning device for bad blocks
[    2.171097] 2 ofpart partitions found on MTD device 41000000.nand
[    2.177182] Creating 2 MTD partitions on "41000000.nand":
[    2.182561] 0x000000000000-0x000000e00000 : "boot"
[    2.188756] 0x000000e00000-0x000008000000 : "ubi"
[    2.195374] stmmaceth 40400000.ethernet: snps,phy-addr property is deprecated
[    2.202560] stmmaceth 40400000.ethernet: no reset control found
[    2.208491] stmmac - user ID: 0x12, Synopsys ID: 0x35
[    2.213529]  Ring mode enabled
[    2.216568]  DMA HW capability register supported
[    2.221071]  Enhanced/Alternate descriptors
[    2.225410] 	Enabled extended descriptors
[    2.229393]  RX Checksum Offload Engine supported (type 2)
[    2.234872]  TX Checksum insertion supported
[    2.239116]  Wake-Up On Lan supported
[    2.242757]  Enable RX Mitigation via HW Watchdog Timer
[    2.259230] libphy: stmmac: probed
[    2.262625] eth0: PHY ID 02430d91 at 1 IRQ POLL (stmmac-0:01) active
[    2.269273] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    2.275814] ehci-pci: EHCI PCI platform driver
[    2.280555] oxnas-ehci 40200100.ehci: EHCI Host Controller
[    2.286087] oxnas-ehci 40200100.ehci: new USB bus registered, assigned bus number 1
[    2.293867] oxnas-ehci 40200100.ehci: irq 39, io mem 0x40200100
[    2.313548] oxnas-ehci 40200100.ehci: USB 2.0 started, EHCI 1.00
[    2.319887] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    2.326681] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.333890] usb usb1: Product: EHCI Host Controller
[    2.338749] usb usb1: Manufacturer: Linux 3.18.1_KD20-peace ehci_hcd
[    2.345088] usb usb1: SerialNumber: 40200100.ehci
[    2.350658] hub 1-0:1.0: USB hub found
[    2.354513] hub 1-0:1.0: 2 ports detected
[    2.359152] usbcore: registered new interface driver usblp
[    2.364807] usbcore: registered new interface driver usb-storage
[    2.371097] mousedev: PS/2 mouse device common for all mice
[    2.377070] gpio-fan gpio-fan: GPIO fan initialized
[    2.381995] md: linear personality registered for level -1
[    2.387491] md: raid0 personality registered for level 0
[    2.392780] md: raid1 personality registered for level 1
[    2.398087] md: raid10 personality registered for level 10
[    2.404408] device-mapper: ioctl: 4.28.0-ioctl (2014-09-17) initialised: dm-devel@redhat.com
[    2.414556] usbcore: registered new interface driver usbhid
[    2.420106] usbhid: USB HID core driver
[    2.424302] TCP: cubic registered
[    2.428587] NET: Registered protocol family 10
[    2.434667] sit: IPv6 over IPv4 tunneling driver
[    2.440227] NET: Registered protocol family 17
[    2.449576] Btrfs loaded
[    2.452564] drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
[    2.630018] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[    2.673582] usb 1-2: new high-speed USB device number 2 using oxnas-ehci
[    2.834547] usb 1-2: New USB device found, idVendor=08ec, idProduct=0012
[    2.841231] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    2.848363] usb 1-2: Product: DiskOnKey
[    2.852185] usb 1-2: Manufacturer: M-Sys
[    2.856102] usb 1-2: SerialNumber: 2880224153400E5B
[    2.861941] usb-storage 1-2:1.0: USB Mass Storage device detected
[    2.868579] scsi host2: usb-storage 1-2:1.0
[    3.016335] ata1.00: ATA-8: TOSHIBA MK6465GSX, GJ003A, max UDMA/100
[    3.022617] ata1.00: 1250263728 sectors, multi 16: LBA48 NCQ (depth 0/32)
[    3.030182] ata1.00: configured for UDMA/100
[    3.034928] scsi 0:0:0:0: Direct-Access     ATA      TOSHIBA MK6465GS 3A   PQ: 0 ANSI: 5
[    3.044546] sd 0:0:0:0: [sda] 1250263728 512-byte logical blocks: (640 GB/596 GiB)
[    3.052538] sata_oxnas: resetting SATA core
[    3.063884] sd 0:0:0:0: [sda] Write Protect is off
[    3.068889] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    3.080120] sata_oxnas: resetting SATA core
[    3.760017] ata2: SATA link down (SStatus 0 SControl 300)
[    3.840025] ata1: exception Emask 0x10 SAct 0x0 SErr 0x0 action 0xe frozen
[    3.846886] ata1: hard resetting link
[    3.874554] scsi 2:0:0:0: Direct-Access     M-Sys    DiskOnKey        4.70 PQ: 0 ANSI: 0 CCS
[    3.885606] sd 2:0:0:0: [sdb] 1019392 512-byte logical blocks: (521 MB/497 MiB)
[    3.893660] sd 2:0:0:0: [sdb] Write Protect is off
[    3.898977] sd 2:0:0:0: [sdb] No Caching mode page found
[    3.904312] sd 2:0:0:0: [sdb] Assuming drive cache: write through
[    3.914654]  sdb: sdb1
[    3.920611] sd 2:0:0:0: [sdb] Attached SCSI removable disk
[    4.760017] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[    4.828462] ata1.00: configured for UDMA/100
[    4.832768] ata1: EH complete
[    4.880445]  sda: sda1 sda2
[    4.885399] sd 0:0:0:0: [sda] Attached SCSI disk
[    4.890439] Freeing unused kernel memory: 184K (c07ba000 - c07e8000)
Loading, please wait...
[    5.030561] udevd[91]: starting version 175
modprobe: chdir(3.18.1_KD20-peace): No such file or directory
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.
modprobe: chdir(3.18.1_KD20-peace): No such file or directory
[    6.003036] EXT4-fs (sda2): mounting ext3 file system using the ext4 subsystem
[    6.086556] EXT4-fs (sda2): mounted filesystem with ordered data mode. Opts: (null)
Begin: Running /scripts/local-bottom ... done.
done.
Begin: Running /scripts/init-bottom ... done.
INIT: version 2.88 booting
[<0x1b>[36minfo<0x1b>[39;49m] Using makefile-style concurrent boot in runlevel S.
mount: only root can do that (effective UID is 1000)
[    9.188492] random: nonblocking pool is initialized
[....] Starting the hotplug events dispatcher: udevd[    9.457866] udevd[294]: starting version 175
<0x1b>[?25l<0x1b>[?1c<0x1b>7<0x1b>[1G[<0x1b>[32m ok <0x1b>[39;49m<0x1b>8<0x1b>[?25h<0x1b>[?0c.
[....] Synthesizing the initial hotplug events...<0x1b>[?25l<0x1b>[?1c<0x1b>7<0x1b>[1G[<0x1b>[32m ok <0x1b>[39;49m<0x1b>8<0x1b>[?25h<0x1b>[?0cdone.
[....] Waiting for /dev to be fully populated...<0x1b>[?25l<0x1b>[?1c<0x1b>7<0x1b>[1G[<0x1b>[32m ok <0x1b>[39;49m<0x1b>8<0x1b>[?25h<0x1b>[?0cdone.
mount: only root can do that (effective UID is 1000)
[....] Activating swap...<0x1b>[?25l<0x1b>[?1c<0x1b>7<0x1b>[1G[<0x1b>[32m ok <0x1b>[39;49m<0x1b>8<0x1b>[?25h<0x1b>[?0cdone.
mount: only root can do that (effective UID is 1000)
[....] Creating compatibility symlink from /etc/mtab to /proc/mounts. ...<0x1b>[?25l<0x1b>[?1c<0x1b>7<0x1b>[1G[<0x1b>[33mwarn<0x1b>[39;49m<0x1b>8<0x1b>[?25h<0x1b>[?0c <0x1b>[33m(warning).<0x1b>[39;49m
rm: cannot remove `/etc/mtab': Read-only file system
[....] Cleaning up temporary files.../etc/init.d/checkroot-bootclean.sh: 22: /etc/init.d/checkroot-bootclean.sh: cannot create /tmp/.clean: Read-only file system
[<0x1b>[36minfo<0x1b>[39;49m] Loading kernel module mii.
libkmod: ERROR ../libkmod/libkmod.c:554 kmod_search_moddep: could not open moddep file '/lib/modules/3.18.1_KD20-peace/modules.dep.bin'
[<0x1b>[36minfo<0x1b>[39;49m] Loading kernel module gmac.
libkmod: ERROR ../libkmod/libkmod.c:554 kmod_search_moddep: could not open moddep file '/lib/modules/3.18.1_KD20-peace/modules.dep.bin'
[<0x1b>[36minfo<0x1b>[39;49m] Loading kernel module scsi_wait_scan.
libkmod: ERROR ../libkmod/libkmod.c:554 kmod_search_moddep: could not open moddep file '/lib/modules/3.18.1_KD20-peace/modules.dep.bin'
[<0x1b>[36minfo<0x1b>[39;49m] Loading kernel module ahci.
libkmod: ERROR ../libkmod/libkmod.c:554 kmod_search_moddep: could not open moddep file '/lib/modules/3.18.1_KD20-peace/modules.dep.bin'
[<0x1b>[36minfo<0x1b>[39;49m] Loading kernel module led-class.
libkmod: ERROR ../libkmod/libkmod.c:554 kmod_search_moddep: could not open moddep file '/lib/modules/3.18.1_KD20-peace/modules.dep.bin'
[<0x1b>[36minfo<0x1b>[39;49m] Loading kernel module ledtrig-backlight.
libkmod: ERROR ../libkmod/libkmod.c:554 kmod_search_moddep: could not open moddep file '/lib/modules/3.18.1_KD20-peace/modules.dep.bin'
[<0x1b>[36minfo<0x1b>[39;49m] Loading kernel module ledtrig-default-on.
libkmod: ERROR ../libkmod/libkmod.c:554 kmod_search_moddep: could not open moddep file '/lib/modules/3.18.1_KD20-peace/modules.dep.bin'
[<0x1b>[36minfo<0x1b>[39;49m] Loading kernel module ledtrig-heartbeat.
libkmod: ERROR ../libkmod/libkmod.c:554 kmod_search_moddep: could not open moddep file '/lib/modules/3.18.1_KD20-peace/modules.dep.bin'
[<0x1b>[36minfo<0x1b>[39;49m] Loading kernel module mmc_block.
libkmod: ERROR ../libkmod/libkmod.c:554 kmod_search_moddep: could not open moddep file '/lib/modules/3.18.1_KD20-peace/modules.dep.bin'
[<0x1b>[36minfo<0x1b>[39;49m] Loading kernel module mmc_core.
libkmod: ERROR ../libkmod/libkmod.c:554 kmod_search_moddep: could not open moddep file '/lib/modules/3.18.1_KD20-peace/modules.dep.bin'
[<0x1b>[36minfo<0x1b>[39;49m] Loading kernel module sdhci-pci.
libkmod: ERROR ../libkmod/libkmod.c:554 kmod_search_moddep: could not open moddep file '/lib/modules/3.18.1_KD20-peace/modules.dep.bin'
[<0x1b>[36minfo<0x1b>[39;49m] Loading kernel module sdhci-pltfm.
libkmod: ERROR ../libkmod/libkmod.c:554 kmod_search_moddep: could not open moddep file '/lib/modules/3.18.1_KD20-peace/modules.dep.bin'
[<0x1b>[36minfo<0x1b>[39;49m] Loading kernel module sdhci.
libkmod: ERROR ../libkmod/libkmod.c:554 kmod_search_moddep: could not open moddep file '/lib/modules/3.18.1_KD20-peace/modules.dep.bin'
[<0x1b>[36minfo<0x1b>[39;49m] Loading kernel module spi_bitbang.
libkmod: ERROR ../libkmod/libkmod.c:554 kmod_search_moddep: could not open moddep file '/lib/modules/3.18.1_KD20-peace/modules.dep.bin'
[<0x1b>[36minfo<0x1b>[39;49m] Loading kernel module spi_ox820_gpio.
libkmod: ERROR ../libkmod/libkmod.c:554 kmod_search_moddep: could not open moddep file '/lib/modules/3.18.1_KD20-peace/modules.dep.bin'
[<0x1b>[36minfo<0x1b>[39;49m] Loading kernel module usblp.
libkmod: ERROR ../libkmod/libkmod.c:554 kmod_search_moddep: could not open moddep file '/lib/modules/3.18.1_KD20-peace/modules.dep.bin'
[<0x1b>[36minfo<0x1b>[39;49m] Loading kernel module autofs4.
libkmod: ERROR ../libkmod/libkmod.c:554 kmod_search_moddep: could not open moddep file '/lib/modules/3.18.1_KD20-peace/modules.dep.bin'
mount: only root can do that (effective UID is 1000)
mount: only root can do that (effective UID is 1000)
mount: only root can do that (effective UID is 1000)
mount: only root can do that (effective UID is 1000)
mount: only root can do that (effective UID is 1000)
mount: only root can do that (effective UID is 1000)
mount: only root can do that (effective UID is 1000)
mount: only root can do that (effective UID is 1000)
mount: only root can do that (effective UID is 1000)
mount: only root can do that (effective UID is 1000)
mount: only root can do that (effective UID is 1000)
mount: only root can do that (effective UID is 1000)
mount: only root can do that (effective UID is 1000)
mount: only root can do that (effective UID is 1000)
mount: only root can do that (effective UID is 1000)
mount: only root can do that (effective UID is 1000)
[....] Activating lvm and md swap...<0x1b>[?25l<0x1b>[?1c<0x1b>7<0x1b>[1G[<0x1b>[32m ok <0x1b>[39;49m<0x1b>8<0x1b>[?25h<0x1b>[?0cdone.
[....] Checking file systems...fsck from util-linux 2.20.1
<0x1b>[?25l<0x1b>[?1c<0x1b>7<0x1b>[1G[<0x1b>[32m ok <0x1b>[39;49m<0x1b>8<0x1b>[?25h<0x1b>[?0cdone.
[....] Mounting local filesystems...mount: only root can do that (effective UID is 1000)
<0x1b>[?25l<0x1b>[?1c<0x1b>7<0x1b>[1G[<0x1b>[31mFAIL<0x1b>[39;49m<0x1b>8<0x1b>[?25h<0x1b>[?0c<0x1b>[31mfailed.<0x1b>[39;49m
[....] Activating swapfile swap...<0x1b>[?25l<0x1b>[?1c<0x1b>7<0x1b>[1G[<0x1b>[32m ok <0x1b>[39;49m<0x1b>8<0x1b>[?25h<0x1b>[?0cdone.
mount: only root can do that (effective UID is 1000)
mount: only root can do that (effective UID is 1000)
df: Warning: cannot read table of mounted file systems
[....] Cleaning up temporary files.../etc/init.d/mountall-bootclean.sh: 22: /etc/init.d/mountall-bootclean.sh: cannot create /tmp/.clean: Read-only file system
[....] Setting kernel variables ...<0x1b>[?25l<0x1b>[?1c<0x1b>7<0x1b>[1G[<0x1b>[32m ok <0x1b>[39;49m<0x1b>8<0x1b>[?25h<0x1b>[?0cdone.
[....] Configuring network interfaces...Internet Systems Consortium DHCP Client 4.2.2
Copyright 2004-2011 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

can't create /var/lib/dhcp/dhclient.eth0.leases: Read-only file system
Listening on LPF/eth0/00:25:b1:ff:ff:00
Sending on   LPF/eth0/00:25:b1:ff:ff:00
Sending on   Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 7
[   22.350184] stmmaceth 40400000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 12
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 12
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 15
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 7
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
ifup: interface eth0 already configured
<0x1b>[?25l<0x1b>[?1c<0x1b>7<0x1b>[1G[<0x1b>[32m ok <0x1b>[39;49m<0x1b>8<0x1b>[?25h<0x1b>[?0cdone.
[....] Cleaning up temporary files.../etc/init.d/mountnfs-bootclean.sh: 22: /etc/init.d/mountnfs-bootclean.sh: cannot create /tmp/.clean: Read-only file system
[....] startpar: service(s) returned failure: checkroot-bootclean.sh mountall-bootclean.sh mountnfs-bootclean.sh ...<0x1b>[?25l<0x1b>[?1c<0x1b>7<0x1b>[1G[<0x1b>[31mFAIL<0x1b>[39;49m<0x1b>8<0x1b>[?25h<0x1b>[?0c <0x1b>[31mfailed!<0x1b>[39;49m
INIT: Entering runlevel: 2
[<0x1b>[36minfo<0x1b>[39;49m] Using makefile-style concurrent boot in runlevel 2.
savelog: directory /var/log/ is not writable
/etc/init.d/bootlogs: 23: /etc/init.d/bootlogs: cannot create /var/log/dmesg: Read-only file system
chgrp: changing group of `/var/log/dmesg': Read-only file system
[....] Starting enhanced syslogd: rsyslogd<0x1b>[?25l<0x1b>[?1c<0x1b>7<0x1b>[1G[<0x1b>[32m ok <0x1b>[39;49m<0x1b>8<0x1b>[?25h<0x1b>[?0c.
[....] Starting periodic command scheduler: cron<0x1b>[?25l<0x1b>[?1c<0x1b>7<0x1b>[1G[<0x1b>[32m ok <0x1b>[39;49m<0x1b>8<0x1b>[?25h<0x1b>[?0c.
[....] Starting OpenBSD Secure Shell server: sshd<0x1b>[?25l<0x1b>[?1c<0x1b>7<0x1b>[1G[<0x1b>[32m ok <0x1b>[39;49m<0x1b>8<0x1b>[?25h<0x1b>[?0c.

Debian GNU/Linux 7 oxnas ttyS0

oxnas login:
Re: Unbricking OMNINAS kd20 (oxnas820)
November 05, 2018 06:06PM
Bastler,

> Ok bodhi, seems the last information was the
> winner for now.
>
Quote
bootm 0x60500000 0x61000000
> System runs now to login :)

Big step :)

>
> I tried several logins and passwords I found, and
> know, but I can't find the right combination of
> login and pwd for this.

At this point, you have completly unbricked and ready to use the new kernel. So skip this problem, and go straight to:

https://forum.doozan.com/read.php?2,16044

Use a new USB and create the rootfs Debian-4.4.54-oxnas-tld-1-rootfs-bodhi.tar.bz2. There is already a KD20 DTB in this rootfs. So you would append it to zImage to get the uImage. Next, use uImage and uInitrd in this rootfs to boot kernel 4.4.54-oxnas-tld-1. (Rename your current uImage and uInitrd for safe keeping, and copy these 2 kernel files to your tftp root)

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



Edited 1 time(s). Last edit at 11/05/2018 09:17PM by bodhi.
Re: Unbricking OMNINAS kd20 (oxnas820)
November 06, 2018 12:18PM
Ok, I tried to follow your instructions.

In fact I use a sata disc I extracted the files from Debian-4.4.54-oxnas-tld-1-rootfs-bodhi.tar.bz2 to sda2 (rootfs).

I append zImage + ox820-kd20.dtb to the new file uImage.
Placed both files to my tftp folder.

Started kd20 to menu.

tftp uImage to 60500000 and tftp uInitrd to 61000000.
bootm 60500000 61000000

got bad magic number.

set bootargs uInitrd to 65000000
ftp uImage to 60500000 and tftp uInitrd to 65000000.
bootm 60500000 65000000

got bad magic number.

Not really sure what I'm doing wrong, have to search.
Re: Unbricking OMNINAS kd20 (oxnas820)
November 06, 2018 01:06PM
Quote
Bastler
I append zImage + ox820-kd20.dtb to the new file uImage.

Did you create uboot images for your kernel/initrd?

You should have a step where you generate them before moving them to your TFTP folder, similar to what's listed in the instructions:

Quote
Bodhi
mkimage -A arm -O linux -T kernel -C none -a 0x60008000 -e 0x60008000 -n Linux-4.4.133-oxnas-tld-1 -d vmlinuz-4.4.133-oxnas-tld-1 uImage
mkimage -A arm -O linux -T ramdisk -C gzip -a 0x60000000 -e 0x60000000 -n initramfs-4.4.133-oxnas-tld-1 -d initrd.img-4.4.133-oxnas-tld-1 uInitrd

If you missed this step it would explain the errors you're seeing.
Re: Unbricking OMNINAS kd20 (oxnas820)
November 06, 2018 02:35PM
Yes, you are right, I didn't made this steps.
Overlooked that while following instructions above.
Will try that next days.
Re: Unbricking OMNINAS kd20 (oxnas820)
November 08, 2018 01:08PM
Ok, was (is) different as I thought.
Had to look to
Quote
Updated 02 Aug 2017:
Now I can boot into debian via tftpboot, but I have still to search about the HowTo write into the kd20 to make booting permanent. But for now I can say I'm happy I could reach this step, as it is, now.

mkimage -A arm -O linux -C none -T kernel -a 0x60008000 -e 0x60008000 -n 'Linux-4-4-54-oxnas-tld-1' -d zImage.fdt uImage

Image Name:   Linux-4-4-54-oxnas-tld-1
Created:      Thu Nov  8 19:02:47 2018
Image Type:   ARM Linux Kernel Image (uncompressed)
Data Size:    4629851 Bytes = 4521.34 kB = 4.42 MB
Load Address: 60008000
Entry Point:  60008000

OXNAS> tftpboot
Wait GMAC to reset
Wait for PHY reset
PHY is IC+ IP1001LF
Wait for link to come up...........Link up
Wait for auto-negotiation to complete
Link is 1000M
TFTP from server 192.168.0.1; our IP address is 192.168.0.128
Filename 'uImage'.
Load address: 0x60000000
Loading: *<0x08>
ARP Resend request
T invalid RARP header
#################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 ############################################################
done
Bytes transferred = 4629915 (46a59b hex)
OXNAS> setenv bootargs root=/dev/sda2 initrd=0x61000000 console=ttyS0,115200 elevator=cfq mac_adr=0x00,0x25,0xb1,0xff,0xff,0x00 mem=256M poweroutage=yes init=/bin/systemd

OXNAS> bootm
## Booting image at 60000000 ...
   Image Name:   Linux-4-4-54-oxnas-tld-1
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    4629851 Bytes =  4.4 MB
   Load Address: 60008000
   Entry Point:  60008000
   Verifying Checksum ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.4.54-oxnas-tld-1 (root@tldDebian) (gcc version 4.9.2 (Debian 4.9.2-10) ) #2 SMP PREEMPT Sat Mar 18 23:09:58 PDT 2017
[    0.000000] CPU: ARMv6-compatible processor [410fb025] revision 5 (ARMv7), cr=00c5787d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] Machine model: Shuttle KD20
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] DT missing boot CPU MPIDR[23:0], fall back to default cpu_logical_map
[    0.000000] PERCPU: Embedded 12 pages/cpu @cfdd9000 s17696 r8192 d23264 u49152
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 65024
[    0.000000] Kernel command line: root=/dev/sda2 initrd=0x61000000 console=ttyS0,115200 elevator=cfq mac_adr=0x00,0x25,0xb1,0xff,0xff,0x00 mem=256M poweroutage=yes init=/bin/systemd
[    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: 250636K/262144K available (6410K kernel code, 288K rwdata, 1908K rodata, 224K init, 247K bss, 11508K 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 - 0xc0827e14   (8320 kB)
[    0.000000]       .init : 0xc0828000 - 0xc0860000   ( 224 kB)
[    0.000000]       .data : 0xc0860000 - 0xc08a8378   ( 289 kB)
[    0.000000]        .bss : 0xc08a8378 - 0xc08e6350   ( 248 kB)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000] NR_IRQS:160
[    0.000000] clocksource: rps_clocksource_timer: mask: 0xffffff max_cycles: 0xffffff, max_idle_ns: 19112603332 ns
[    0.000007] sched_clock: 24 bits at 390kHz, resolution 2560ns, wraps every 21474835200ns
[    0.000199] Console: colour dummy device 80x30
[    0.000235] Calibrating delay loop... 319.48 BogoMIPS (lpj=1597440)
[    0.050030] pid_max: default: 32768 minimum: 301
[    0.050216] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.050237] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.051115] Initializing cgroup subsys net_cls
[    0.051205] CPU: Testing write buffer coherency: ok
[    0.051665] Setting up static identity map for 0x60008220 - 0x60008258
[    0.190151] Brought up 2 CPUs
[    0.190174] SMP: Total of 2 processors activated (638.97 BogoMIPS).
[    0.191022] devtmpfs: initialized
[    0.197063] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.197112] futex hash table entries: 512 (order: 2, 16384 bytes)
[    0.197460] prandom: seed boundary self test passed
[    0.202152] prandom: 100 self tests passed
[    0.202186] pinctrl core: initialized pinctrl subsystem
[    0.203084] NET: Registered protocol family 16
[    0.203765] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.230018] cpuidle: using governor ladder
[    0.260008] cpuidle: using governor menu
[    0.266562] gpio-oxnas 44000000.gpio: at address d0848000
[    0.266979] gpio-oxnas 44100000.gpio: at address d084a000
[    0.267578] pinctrl-oxnas pinctrl: initialized OX820 pinctrl driver
[    0.392002] oxnas-pcie 47c00000.pcie-controller: PCIe version/deviceID 0x82510b5
[    0.402112] oxnas-pcie 47c00000.pcie-controller: link up
[    0.402478] oxnas-pcie 47c00000.pcie-controller: PCI host bridge to bus 0000:00
[    0.402506] pci_bus 0000:00: root bus resource [mem 0x48000000-0x49ffffff]
[    0.402526] pci_bus 0000:00: root bus resource [mem 0x4a000000-0x4bdfffff pref]
[    0.402544] pci_bus 0000:00: root bus resource [io  0x0000-0xfffff]
[    0.402565] pci_bus 0000:00: root bus resource [bus 00-7f]
[    0.403220] PCI: bus0: Fast back to back transfers disabled
[    0.403317] pci 0000:00:00.0: BAR 0: assigned [mem 0x48000000-0x48007fff 64bit]
[    0.403845] vgaarb: loaded
[    0.404375] SCSI subsystem initialized
[    0.405332] usbcore: registered new interface driver usbfs
[    0.405455] usbcore: registered new interface driver hub
[    0.405629] usbcore: registered new device driver usb
[    0.405836] pps_core: LinuxPPS API ver. 1 registered
[    0.405852] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.405903] PTP clock support registered
[    0.408345] clocksource: Switched to clocksource rps_clocksource_timer
[    0.428500] NET: Registered protocol family 2
[    0.429450] TCP established hash table entries: 2048 (order: 1, 8192 bytes)
[    0.429509] TCP bind hash table entries: 2048 (order: 2, 16384 bytes)
[    0.429565] TCP: Hash tables configured (established 2048 bind 2048)
[    0.429672] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.429719] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.430080] NET: Registered protocol family 1
[    0.430686] RPC: Registered named UNIX socket transport module.
[    0.430709] RPC: Registered udp transport module.
[    0.430720] RPC: Registered tcp transport module.
[    0.430732] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.430796] pci 0000:00:00.0: enabling device (0140 -> 0142)
[    0.432988] Initialise system trusted keyring
[    0.447104] zbud: loaded
[    0.453158] NFS: Registering the id_resolver key type
[    0.453219] Key type id_resolver registered
[    0.453232] Key type id_legacy registered
[    0.453276] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.453301] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.454346] fuse init (API version 7.23)
[    0.456509] Key type big_key registered
[    0.532387] Key type asymmetric registered
[    0.532426] Asymmetric key parser 'x509' registered
[    0.532564] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[    0.532592] io scheduler noop registered
[    0.532613] io scheduler deadline registered
[    0.532677] io scheduler cfq registered (default)
[    0.533391] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[    0.534983] console [ttyS0] disabled
[    0.535096] 44200000.uart: ttyS0 at MMIO 0x44200000 (irq = 6, base_baud = 390625) is a 16550A
[    1.120455] console [ttyS0] enabled
[    1.136419] loop: module loaded
[    1.142584] scsi host0: sata_oxnas
[    1.146728] scsi host1: sata_oxnas
[    1.150602] ata1: SATA max UDMA/133 irq 7
[    1.154600] ata2: SATA max UDMA/133 irq 7
[    1.158707] sata_oxnas: resetting SATA core
[    1.159715] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xf1
[    1.159723] nand: Hynix H27U1G8F2BTR-BC
[    1.159733] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    1.159751] Scanning device for bad blocks
[    1.243952] 2 ofpart partitions found on MTD device 41000000.nand
[    1.250055] Creating 2 MTD partitions on "41000000.nand":
[    1.255436] 0x000000000000-0x000000e00000 : "boot"
[    1.281052] 0x000000e00000-0x000008000000 : "ubi"
[    1.301527] oxnas-gmac 40400000.ethernet: snps,phy-addr property is deprecated
[    1.308812] oxnas-gmac 40400000.ethernet: no reset control found
[    1.314854] stmmac - user ID: 0x12, Synopsys ID: 0x35
[    1.319877]  Ring mode enabled
[    1.322938]  DMA HW capability register supported
[    1.327441]  Enhanced/Alternate descriptors
[    1.331799] 	Enabled extended descriptors
[    1.335782]  RX Checksum Offload Engine supported (type 2)
[    1.341255]  TX Checksum insertion supported
[    1.345497]  Wake-Up On Lan supported
[    1.349137]  Enable RX Mitigation via HW Watchdog Timer
[    1.371901] libphy: stmmac: probed
[    1.375296] eth%d: PHY ID 02430d91 at 1 IRQ POLL (stmmac-0:01) active
[    1.382748] PPP generic driver version 2.4.2
[    1.387678] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.394314] ehci-pci: EHCI PCI platform driver
[    1.399157] oxnas-ehci 40200100.ehci: EHCI Host Controller
[    1.404794] oxnas-ehci 40200100.ehci: new USB bus registered, assigned bus number 1
[    1.412718] oxnas-ehci 40200100.ehci: irq 10, io mem 0x40200100
[    1.430000] oxnas-ehci 40200100.ehci: USB 2.0 started, EHCI 1.00
[    1.436352] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.443166] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.450383] usb usb1: Product: EHCI Host Controller
[    1.455237] usb usb1: Manufacturer: Linux 4.4.54-oxnas-tld-1 ehci_hcd
[    1.461672] usb usb1: SerialNumber: 40200100.ehci
[    1.467399] hub 1-0:1.0: USB hub found
[    1.471306] hub 1-0:1.0: 2 ports detected
[    1.476451] xhci_hcd 0000:00:00.0: xHCI Host Controller
[    1.481820] xhci_hcd 0000:00:00.0: new USB bus registered, assigned bus number 2
[    1.489594] xhci_hcd 0000:00:00.0: hcc params 0x040040a5 hci version 0x100 quirks 0x00080490
[    1.498588] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[    1.505397] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.512616] usb usb2: Product: xHCI Host Controller
[    1.517475] usb usb2: Manufacturer: Linux 4.4.54-oxnas-tld-1 xhci-hcd
[    1.523911] usb usb2: SerialNumber: 0000:00:00.0
[    1.529589] hub 2-0:1.0: USB hub found
[    1.533501] hub 2-0:1.0: 2 ports detected
[    1.538360] xhci_hcd 0000:00:00.0: xHCI Host Controller
[    1.543697] xhci_hcd 0000:00:00.0: new USB bus registered, assigned bus number 3
[    1.551360] usb usb3: We don't know the algorithms for LPM for this host, disabling LPM.
[    1.559690] usb usb3: New USB device found, idVendor=1d6b, idProduct=0003
[    1.566510] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.573936] usb usb3: Product: xHCI Host Controller
[    1.578798] usb usb3: Manufacturer: Linux 4.4.54-oxnas-tld-1 xhci-hcd
[    1.585244] usb usb3: SerialNumber: 0000:00:00.0
[    1.590965] hub 3-0:1.0: USB hub found
[    1.594785] hub 3-0:1.0: 2 ports detected
[    1.600015] usbcore: registered new interface driver cdc_acm
[    1.605711] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[    1.613923] usbcore: registered new interface driver cdc_wdm
[    1.619801] usbcore: registered new interface driver usb-storage
[    1.626106] usbcore: registered new interface driver usbserial
[    1.632273] usbcore: registered new interface driver usbserial_generic
[    1.638840] usbserial: USB Serial support registered for generic
[    1.645317] mousedev: PS/2 mouse device common for all mice
[    1.651156] i2c /dev entries driver
[    1.656793] hidraw: raw HID events driver (C) Jiri Kosina
[    1.662571] usbcore: registered new interface driver usbhid
[    1.668121] usbhid: USB HID core driver
[    1.674344] NET: Registered protocol family 10
[    1.691176] sit: IPv6 over IPv4 tunneling driver
[    1.696855] NET: Registered protocol family 17
[    1.701552] Key type dns_resolver registered
[    1.707376] registered taskstats version 1
[    1.710172] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[    1.717739] Loading compiled-in X.509 certificates
[    1.722675] zswap: loaded using pool lzo/zbud
[    1.729285] Key type encrypted registered
[    1.790072] usb 1-2: new high-speed USB device number 2 using oxnas-ehci
[    1.850001] usb 2-1: new high-speed USB device number 2 using xhci_hcd
[    1.944107] usb 1-2: New USB device found, idVendor=0325, idProduct=ac02
[    1.950848] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    1.957952] usb 1-2: Product: RALLY2
[    1.961559] usb 1-2: Manufacturer: OCZ Technology
[    1.966246] usb 1-2: SerialNumber: AA04012700344490
[    1.972572] usb-storage 1-2:1.0: USB Mass Storage device detected
[    1.979184] scsi host2: usb-storage 1-2:1.0
[    2.004741] usb 2-1: New USB device found, idVendor=05e3, idProduct=0723
[    2.011479] usb 2-1: New USB device strings: Mfr=3, Product=4, SerialNumber=0
[    2.018583] usb 2-1: Product: USB Storage
[    2.022607] usb 2-1: Manufacturer: Generic 
[    2.028569] usb-storage 2-1:1.0: USB Mass Storage device detected
[    2.035238] scsi host3: usb-storage 2-1:1.0
[    2.085852] ata1.00: ATA-8: TOSHIBA MK6465GSX, GJ003A, max UDMA/100
[    2.092134] ata1.00: 1250263728 sectors, multi 16: LBA48 NCQ (depth 0/32)
[    2.099724] ata1.00: configured for UDMA/100
[    2.104788] scsi 0:0:0:0: Direct-Access     ATA      TOSHIBA MK6465GS 3A   PQ: 0 ANSI: 5
[    2.114854] sd 0:0:0:0: [sda] 1250263728 512-byte logical blocks: (640 GB/596 GiB)
[    2.122600] sata_oxnas: resetting SATA core
[    2.123095] sd 0:0:0:0: [sda] Write Protect is off
[    2.123328] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    2.170106] sata_oxnas: resetting SATA core
[    2.849999] ata2: SATA link down (SStatus 0 SControl 300)
[    2.930004] ata1: exception Emask 0x10 SAct 0x0 SErr 0x0 action 0xe frozen
[    2.936867] ata1: hard resetting link
[    2.981972] scsi 2:0:0:0: Direct-Access     OCZ      RALLY2           1100 PQ: 0 ANSI: 0 CCS
[    2.993559] sd 2:0:0:0: [sdb] 15663104 512-byte logical blocks: (8.02 GB/7.47 GiB)
[    3.002181] sd 2:0:0:0: [sdb] Write Protect is off
[    3.007925] sd 2:0:0:0: [sdb] No Caching mode page found
[    3.013381] sd 2:0:0:0: [sdb] Assuming drive cache: write through
[    3.025717]  sdb: sdb1
[    3.031925] sd 2:0:0:0: [sdb] Attached SCSI removable disk
[    3.051100] scsi 3:0:0:0: Direct-Access     Generic  STORAGE DEVICE   9454 PQ: 0 ANSI: 0
[    3.063265] sd 3:0:0:0: [sdc] Attached SCSI removable disk
[    3.849999] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[    3.909104] ata1.00: configured for UDMA/100
[    3.913418] ata1: EH complete
[    3.960998]  sda: sda1 sda2
[    3.966958] sd 0:0:0:0: [sda] Attached SCSI disk
[    3.979325] EXT4-fs (sda2): mounting ext3 file system using the ext4 subsystem
[    4.076352] EXT4-fs (sda2): mounted filesystem with ordered data mode. Opts: (null)
[    4.084075] VFS: Mounted root (ext3 filesystem) readonly on device 8:2.
[    4.112985] devtmpfs: mounted
[    4.116510] Freeing unused kernel memory: 224K (c0828000 - c0860000)
[    5.825584] systemd[1]: System time before build time, advancing clock.
[    6.168320] ip_tables: (C) 2000-2006 Netfilter Core Team
[    6.233144] random: systemd: uninitialized urandom read (16 bytes read, 66 bits of entropy available)
[    6.242772] systemd[1]: Configuration file /etc/systemd/system.conf is marked world-writable. Please remove world writability permission bits. Proceeding anyway.
[    6.307182] systemd[1]: systemd 232 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD +IDN)
[    6.326108] systemd[1]: Detected architecture arm.

Welcome to <0x1b>[1mDebian GNU/Linux 9 (stretch)<0x1b>[0m!
Re: Unbricking OMNINAS kd20 (oxnas820)
November 08, 2018 04:43PM
Bastler,

[    0.000000] Linux version 4.4.54-oxnas-tld-1 (root@tldDebian) (gcc version 4.9.2 (Debian 4.9.2-10) ) #2 SMP PREEMPT Sat Mar 18 23:09:58 PDT 2017
[    0.000000] CPU: ARMv6-compatible processor [410fb025] revision 5 (ARMv7), cr=00c5787d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] Machine model: Shuttle KD20

Very good!

But you need to load uInitrd also

OXNAS> tftp 0x61000000 uInitrd

and boot with it.

OXNAS> bootm 0x60500000 0x61000000

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Unbricking OMNINAS kd20 (oxnas820)
November 09, 2018 08:34AM
Had some problems with uInitrd but solved it and gave it a new try.
Have to clean up some world-writable but this is secondary problem for now because I can repeat all the needed steps up to here again.
I hope I'm soon at the point to try making the kd20 box booting without sata now?

OXNAS> 
OXNAS> tftp 0x60000000 uImage
Wait GMAC to reset
Wait for PHY reset
PHY is IC+ IP1001LF
Wait for link to come up............Link up
Wait for auto-negotiation to complete
Link is 1000M
TFTP from server 192.168.0.1; our IP address is 192.168.0.128
Filename 'uImage'.
Load address: 0x60000000
Loading: *<0x08>#################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 ############################################################
done
Bytes transferred = 4629915 (46a59b hex)
OXNAS> tftp 0x61000000 uInitrd
Wait GMAC to reset
Wait for PHY reset
PHY is IC+ IP1001LF
Wait for link to come up...........Link up
Wait for auto-negotiation to complete
Link is 1000M
TFTP from server 192.168.0.1; our IP address is 192.168.0.128
Filename 'uInitrd'.
Load address: 0x61000000
Loading: *<0x08>
ARP Resend request
T invalid RARP header
#################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #####################################################
done
Bytes transferred = 4594376 (461ac8 hex)
OXNAS> setenv bootargs root=/dev/sda2 initrd=0x61000000 console=ttyS0,115200 elevator=cfq mac_adr=0x00,0x25,0xb1,0xff,0xff,0x00 mem=256M poweroutage=yes init=/bin/systemd


OXNAS> bootm 60000000 61000000
## Booting image at 60000000 ...
   Image Name:   Linux-4-4-54-oxnas-tld-1
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    4629851 Bytes =  4.4 MB
   Load Address: 60008000
   Entry Point:  60008000
   Verifying Checksum ... OK
OK
## Loading Ramdisk Image at 61000000 ...
   Image Name:   initramfs-4.4.54-oxnas-tld-1
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    4594312 Bytes =  4.4 MB
   Load Address: 60000000
   Entry Point:  60000000
   Verifying Checksum ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.4.54-oxnas-tld-1 (root@tldDebian) (gcc version 4.9.2 (Debian 4.9.2-10) ) #2 SMP PREEMPT Sat Mar 18 23:09:58 PDT 2017
[    0.000000] CPU: ARMv6-compatible processor [410fb025] revision 5 (ARMv7), cr=00c5787d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] Machine model: Shuttle KD20
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] DT missing boot CPU MPIDR[23:0], fall back to default cpu_logical_map
[    0.000000] PERCPU: Embedded 12 pages/cpu @cfdd9000 s17696 r8192 d23264 u49152
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 65024
[    0.000000] Kernel command line: root=/dev/sda2 initrd=0x61000000 console=ttyS0,115200 elevator=cfq mac_adr=0x00,0x25,0xb1,0xff,0xff,0x00 mem=256M poweroutage=yes init=/bin/systemd
[    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: 246148K/262144K available (6410K kernel code, 288K rwdata, 1908K rodata, 224K init, 247K bss, 15996K 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 - 0xc0827e14   (8320 kB)
[    0.000000]       .init : 0xc0828000 - 0xc0860000   ( 224 kB)
[    0.000000]       .data : 0xc0860000 - 0xc08a8378   ( 289 kB)
[    0.000000]        .bss : 0xc08a8378 - 0xc08e6350   ( 248 kB)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000] NR_IRQS:160
[    0.000000] clocksource: rps_clocksource_timer: mask: 0xffffff max_cycles: 0xffffff, max_idle_ns: 19112603332 ns
[    0.000010] sched_clock: 24 bits at 390kHz, resolution 2560ns, wraps every 21474835200ns
[    0.000199] Console: colour dummy device 80x30
[    0.000235] Calibrating delay loop... 319.48 BogoMIPS (lpj=1597440)
[    0.050030] pid_max: default: 32768 minimum: 301
[    0.050211] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.050232] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.051120] Initializing cgroup subsys net_cls
[    0.051207] CPU: Testing write buffer coherency: ok
[    0.051658] Setting up static identity map for 0x60008220 - 0x60008258
[    0.190151] Brought up 2 CPUs
[    0.190177] SMP: Total of 2 processors activated (638.97 BogoMIPS).
[    0.191037] devtmpfs: initialized
[    0.196917] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.196966] futex hash table entries: 512 (order: 2, 16384 bytes)
[    0.197340] prandom: seed boundary self test passed
[    0.202037] prandom: 100 self tests passed
[    0.202068] pinctrl core: initialized pinctrl subsystem
[    0.202941] NET: Registered protocol family 16
[    0.203624] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.230021] cpuidle: using governor ladder
[    0.260011] cpuidle: using governor menu
[    0.266472] gpio-oxnas 44000000.gpio: at address d0848000
[    0.266895] gpio-oxnas 44100000.gpio: at address d084a000
[    0.267507] pinctrl-oxnas pinctrl: initialized OX820 pinctrl driver
[    0.392552] oxnas-pcie 47c00000.pcie-controller: PCIe version/deviceID 0x82510b5
[    0.403594] oxnas-pcie 47c00000.pcie-controller: link up
[    0.403957] oxnas-pcie 47c00000.pcie-controller: PCI host bridge to bus 0000:00
[    0.403988] pci_bus 0000:00: root bus resource [mem 0x48000000-0x49ffffff]
[    0.404006] pci_bus 0000:00: root bus resource [mem 0x4a000000-0x4bdfffff pref]
[    0.404021] pci_bus 0000:00: root bus resource [io  0x0000-0xfffff]
[    0.404042] pci_bus 0000:00: root bus resource [bus 00-7f]
[    0.404666] PCI: bus0: Fast back to back transfers disabled
[    0.404761] pci 0000:00:00.0: BAR 0: assigned [mem 0x48000000-0x48007fff 64bit]
[    0.405291] vgaarb: loaded
[    0.405821] SCSI subsystem initialized
[    0.406768] usbcore: registered new interface driver usbfs
[    0.406888] usbcore: registered new interface driver hub
[    0.407060] usbcore: registered new device driver usb
[    0.407267] pps_core: LinuxPPS API ver. 1 registered
[    0.407283] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.407329] PTP clock support registered
[    0.409779] clocksource: Switched to clocksource rps_clocksource_timer
[    0.429688] NET: Registered protocol family 2
[    0.430732] TCP established hash table entries: 2048 (order: 1, 8192 bytes)
[    0.430796] TCP bind hash table entries: 2048 (order: 2, 16384 bytes)
[    0.430858] TCP: Hash tables configured (established 2048 bind 2048)
[    0.430968] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.431016] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.431313] NET: Registered protocol family 1
[    0.431902] RPC: Registered named UNIX socket transport module.
[    0.431923] RPC: Registered udp transport module.
[    0.431933] RPC: Registered tcp transport module.
[    0.431943] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.432010] pci 0000:00:00.0: enabling device (0140 -> 0142)
[    0.432450] Unpacking initramfs...
[    0.942310] Freeing initrd memory: 4488K (c1000000 - c1462000)
[    0.953016] Initialise system trusted keyring
[    0.967403] zbud: loaded
[    0.973406] NFS: Registering the id_resolver key type
[    0.973473] Key type id_resolver registered
[    0.973488] Key type id_legacy registered
[    0.973534] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.973560] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.974576] fuse init (API version 7.23)
[    0.976765] Key type big_key registered
[    1.057745] Key type asymmetric registered
[    1.057784] Asymmetric key parser 'x509' registered
[    1.057925] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[    1.057950] io scheduler noop registered
[    1.057971] io scheduler deadline registered
[    1.058032] io scheduler cfq registered (default)
[    1.058754] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[    1.060531] console [ttyS0] disabled
[    1.060636] 44200000.uart: ttyS0 at MMIO 0x44200000 (irq = 6, base_baud = 390625) is a 16550A
[    1.655121] console [ttyS0] enabled
[    1.671224] loop: module loaded
[    1.677391] scsi host0: sata_oxnas
[    1.681617] scsi host1: sata_oxnas
[    1.685434] ata1: SATA max UDMA/133 irq 7
[    1.689433] ata2: SATA max UDMA/133 irq 7
[    1.693583] sata_oxnas: resetting SATA core
[    1.694589] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xf1
[    1.694597] nand: Hynix H27U1G8F2BTR-BC
[    1.694607] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    1.694625] Scanning device for bad blocks
[    1.777733] 2 ofpart partitions found on MTD device 41000000.nand
[    1.783833] Creating 2 MTD partitions on "41000000.nand":
[    1.789217] 0x000000000000-0x000000e00000 : "boot"
[    1.811054] 0x000000e00000-0x000008000000 : "ubi"
[    1.831508] oxnas-gmac 40400000.ethernet: snps,phy-addr property is deprecated
[    1.838791] oxnas-gmac 40400000.ethernet: no reset control found
[    1.844833] stmmac - user ID: 0x12, Synopsys ID: 0x35
[    1.849858]  Ring mode enabled
[    1.852925]  DMA HW capability register supported
[    1.857433]  Enhanced/Alternate descriptors
[    1.861788] 	Enabled extended descriptors
[    1.865779]  RX Checksum Offload Engine supported (type 2)
[    1.871255]  TX Checksum insertion supported
[    1.875502]  Wake-Up On Lan supported
[    1.879144]  Enable RX Mitigation via HW Watchdog Timer
[    1.893570] libphy: stmmac: probed
[    1.896972] eth%d: PHY ID 02430d91 at 1 IRQ POLL (stmmac-0:01) active
[    1.904384] PPP generic driver version 2.4.2
[    1.909299] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.915891] ehci-pci: EHCI PCI platform driver
[    1.920793] oxnas-ehci 40200100.ehci: EHCI Host Controller
[    1.926297] oxnas-ehci 40200100.ehci: new USB bus registered, assigned bus number 1
[    1.934172] oxnas-ehci 40200100.ehci: irq 10, io mem 0x40200100
[    1.960005] oxnas-ehci 40200100.ehci: USB 2.0 started, EHCI 1.00
[    1.966364] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.973191] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.980423] usb usb1: Product: EHCI Host Controller
[    1.985280] usb usb1: Manufacturer: Linux 4.4.54-oxnas-tld-1 ehci_hcd
[    1.991728] usb usb1: SerialNumber: 40200100.ehci
[    1.997447] hub 1-0:1.0: USB hub found
[    2.001315] hub 1-0:1.0: 2 ports detected
[    2.006474] xhci_hcd 0000:00:00.0: xHCI Host Controller
[    2.011799] xhci_hcd 0000:00:00.0: new USB bus registered, assigned bus number 2
[    2.019558] xhci_hcd 0000:00:00.0: hcc params 0x040040a5 hci version 0x100 quirks 0x00080490
[    2.028482] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[    2.035310] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.042531] usb usb2: Product: xHCI Host Controller
[    2.047388] usb usb2: Manufacturer: Linux 4.4.54-oxnas-tld-1 xhci-hcd
[    2.053824] usb usb2: SerialNumber: 0000:00:00.0
[    2.059491] hub 2-0:1.0: USB hub found
[    2.063362] hub 2-0:1.0: 2 ports detected
[    2.068241] xhci_hcd 0000:00:00.0: xHCI Host Controller
[    2.073536] xhci_hcd 0000:00:00.0: new USB bus registered, assigned bus number 3
[    2.081154] usb usb3: We don't know the algorithms for LPM for this host, disabling LPM.
[    2.089474] usb usb3: New USB device found, idVendor=1d6b, idProduct=0003
[    2.096435] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.103874] usb usb3: Product: xHCI Host Controller
[    2.108736] usb usb3: Manufacturer: Linux 4.4.54-oxnas-tld-1 xhci-hcd
[    2.115187] usb usb3: SerialNumber: 0000:00:00.0
[    2.120929] hub 3-0:1.0: USB hub found
[    2.124748] hub 3-0:1.0: 2 ports detected
[    2.130004] usbcore: registered new interface driver cdc_acm
[    2.135646] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[    2.143787] usbcore: registered new interface driver cdc_wdm
[    2.149670] usbcore: registered new interface driver usb-storage
[    2.155932] usbcore: registered new interface driver usbserial
[    2.162094] usbcore: registered new interface driver usbserial_generic
[    2.168665] usbserial: USB Serial support registered for generic
[    2.175173] mousedev: PS/2 mouse device common for all mice
[    2.180963] i2c /dev entries driver
[    2.186606] hidraw: raw HID events driver (C) Jiri Kosina
[    2.192327] usbcore: registered new interface driver usbhid
[    2.197872] usbhid: USB HID core driver
[    2.204065] NET: Registered protocol family 10
[    2.221184] sit: IPv6 over IPv4 tunneling driver
[    2.226828] NET: Registered protocol family 17
[    2.231518] Key type dns_resolver registered
[    2.237355] registered taskstats version 1
[    2.241536] Loading compiled-in X.509 certificates
[    2.246446] zswap: loaded using pool lzo/zbud
[    2.250160] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[    2.273738] Key type encrypted registered
[    2.320074] usb 1-2: new high-speed USB device number 2 using oxnas-ehci
[    2.380008] usb 2-1: new high-speed USB device number 2 using xhci_hcd
[    2.474196] usb 1-2: New USB device found, idVendor=0325, idProduct=ac02
[    2.480931] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    2.488035] usb 1-2: Product: RALLY2
[    2.491650] usb 1-2: Manufacturer: OCZ Technology
[    2.496335] usb 1-2: SerialNumber: AA04012700344490
[    2.502648] usb-storage 1-2:1.0: USB Mass Storage device detected
[    2.509260] scsi host2: usb-storage 1-2:1.0
[    2.534635] usb 2-1: New USB device found, idVendor=05e3, idProduct=0723
[    2.541373] usb 2-1: New USB device strings: Mfr=3, Product=4, SerialNumber=0
[    2.548477] usb 2-1: Product: USB Storage
[    2.552499] usb 2-1: Manufacturer: Generic 
[    2.558466] usb-storage 2-1:1.0: USB Mass Storage device detected
[    2.565130] scsi host3: usb-storage 2-1:1.0
[    2.592560] ata1.00: ATA-8: TOSHIBA MK6465GSX, GJ003A, max UDMA/100
[    2.598812] ata1.00: 1250263728 sectors, multi 16: LBA48 NCQ (depth 0/32)
[    2.606433] ata1.00: configured for UDMA/100
[    2.630709] scsi 0:0:0:0: Direct-Access     ATA      TOSHIBA MK6465GS 3A   PQ: 0 ANSI: 5
[    2.640486] sd 0:0:0:0: [sda] 1250263728 512-byte logical blocks: (640 GB/596 GiB)
[    2.648453] sata_oxnas: resetting SATA core
[    2.648826] sd 0:0:0:0: [sda] Write Protect is off
[    2.649054] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    2.690050] sata_oxnas: resetting SATA core
[    3.370001] ata2: SATA link down (SStatus 0 SControl 300)
[    3.450007] ata1: exception Emask 0x10 SAct 0x0 SErr 0x0 action 0xe frozen
[    3.456870] ata1: hard resetting link
[    3.531320] scsi 2:0:0:0: Direct-Access     OCZ      RALLY2           1100 PQ: 0 ANSI: 0 CCS
[    3.543009] sd 2:0:0:0: [sdb] 15663104 512-byte logical blocks: (8.02 GB/7.47 GiB)
[    3.551621] sd 2:0:0:0: [sdb] Write Protect is off
[    3.557376] sd 2:0:0:0: [sdb] No Caching mode page found
[    3.562856] sd 2:0:0:0: [sdb] Assuming drive cache: write through
[    3.575178]  sdb: sdb1
[    3.581184] scsi 3:0:0:0: Direct-Access     Generic  STORAGE DEVICE   9454 PQ: 0 ANSI: 0
[    3.589565] sd 2:0:0:0: [sdb] Attached SCSI removable disk
[    3.597655] sd 3:0:0:0: [sdc] Attached SCSI removable disk
[    4.370001] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[    4.426905] ata1.00: configured for UDMA/100
[    4.431221] ata1: EH complete
[    4.478827]  sda: sda1 sda2
[    4.482826] sda: detected capacity change from 0 to 640135028736
[    4.484247] sd 0:0:0:0: [sda] Attached SCSI disk
[    4.490526] Freeing unused kernel memory: 224K (c0828000 - c0860000)
Loading, please wait...
starting version 232
[    4.685888] random: systemd-udevd: uninitialized urandom read (16 bytes read, 19 bits of entropy available)
[    4.697489] random: systemd-udevd: uninitialized urandom read (16 bytes read, 19 bits of entropy available)
[    4.698135] random: udevadm: uninitialized urandom read (16 bytes read, 19 bits of entropy available)
[    4.700595] random: udevadm: uninitialized urandom read (16 bytes read, 19 bits of entropy available)
[    4.700789] random: udevadm: uninitialized urandom read (16 bytes read, 19 bits of entropy available)
[    4.702036] random: udevadm: uninitialized urandom read (16 bytes read, 19 bits of entropy available)
[    4.703296] random: udevadm: uninitialized urandom read (16 bytes read, 19 bits of entropy available)
[    4.704417] random: udevadm: uninitialized urandom read (16 bytes read, 19 bits of entropy available)
[    4.705553] random: udevadm: uninitialized urandom read (16 bytes read, 19 bits of entropy available)
[    4.706767] random: udevadm: uninitialized urandom read (16 bytes read, 19 bits of entropy available)
[    5.021237] usbcore: registered new interface driver uas
[    5.220014] i2c-gpio i2c-gpio: using pins 41 (SDA) and 42 (SCL)
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.
Begin: Will now check root file system ... fsck from util-linux 2.29.2
fsck: error 2 (No such file or directory) while executing fsck.ext3 for /dev/sda2
fsck exited with status code 8
done.
Warning: File system check failed but did not detect errors
[   10.958382] EXT4-fs (sda2): mounting ext3 file system using the ext4 subsystem
[   11.084590] EXT4-fs (sda2): mounted filesystem with ordered data mode. Opts: (null)
done.
Begin: Running /scripts/local-bottom ... done.
Begin: Running /scripts/init-bottom ... done.
[   12.921881] systemd[1]: System time before build time, advancing clock.
[   13.220262] ip_tables: (C) 2000-2006 Netfilter Core Team
[   13.285340] systemd[1]: Configuration file /etc/systemd/system.conf is marked world-writable. Please remove world writability permission bits. Proceeding anyway.
[   13.347857] systemd[1]: systemd 232 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD +IDN)
[   13.366791] systemd[1]: Detected architecture arm.

Welcome to <0x1b>[1mDebian GNU/Linux 9 (stretch)<0x1b>[0m!

[   13.451573] random: nonblocking pool is initialized
[   13.456665] systemd[1]: Set hostname to <debian>.
[   14.197347] systemd[1]: Configuration file /lib/systemd/system/system.slice is marked world-writable. Please remove world writability permission bits. Proceeding anyway.
[   14.232384] systemd[1]: Configuration file /lib/systemd/system/slices.target is marked world-writable. Please remove world writability permission bits. Proceeding anyway.
[   14.249372] systemd[1]: Configuration file /lib/systemd/system/shutdown.target is marked world-writable. Please remove world writability permission bits. Proceeding anyway.
[   14.266076] systemd[1]: Configuration file /lib/systemd/system/local-fs.target is marked world-writable. Please remove world writability permission bits. Proceeding anyway.
[   14.286999] systemd[1]: Configuration file /lib/systemd/system/systemd-remount-fs.service is marked world-writable. Please remove world writability permission bits. Proceeding anyway.
[   14.305564] systemd[1]: Configuration file /lib/systemd/system/systemd-journald.socket is marked world-writable. Please remove world writability permission bits. Proceeding anyway.
[   14.325603] systemd[1]: Configuration file /lib/systemd/system/systemd-journald.service is marked world-writable. Please remove world writability permission bits. Proceeding anyway.
[   14.346465] systemd[1]: Configuration file /lib/systemd/system/sysinit.target is marked world-writable. Please remove world writability permission bits. Proceeding anyway.
[   14.382520] systemd[1]: Configuration file /lib/systemd/system/sys-kernel-config.mount is marked world-writable. Please remove world writability permission bits. Proceeding anyway.
[   14.421670] systemd[1]: Configuration file /lib/systemd/system/systemd-journal-flush.service is marked world-writable. Please remove world writability permission bits. Proceeding anyway.
[   14.441295] systemd[1]: Configuration file /lib/systemd/system/systemd-user-sessions.service is marked world-writable. Please remove world writability permission bits. Proceeding anyway.
[   14.460405] systemd[1]: Configuration file /lib/systemd/system/basic.target is marked world-writable. Please remove world writability permission bits. Proceeding anyway.
[   14.478167] systemd[1]: Configuration file /lib/systemd/system/paths.target is marked world-writable. Please remove world writability permission bits. Proceeding anyway.
[   14.494594] systemd[1]: Configuration file /lib/systemd/system/timers.target is marked world-writable. Please remove world writability permission bits. Proceeding anyway.
[   14.520117] systemd[1]: Configuration file /lib/systemd/system/systemd-tmpfiles-clean.timer is marked world-writable. Please remove world writability permission bits. Proceeding anyway.
[   14.538424] systemd[1]: Configuration file /lib/systemd/system/systemd-tmpfiles-clean.service is marked world-writable. Please remove world writability permission bits. Proceeding anyway.
[   14.557173] systemd[1]: Configuration file /lib/systemd/system/time-sync.target is marked world-writable. Please remove world writability permission bits. Proceeding anyway.
[   14.573998] systemd[1]: Configuration file /lib/systemd/system/apt-daily.timer is marked world-writable. Please remove world writability permission bits. Proceeding anyway.
[   14.649553] systemd[1]: Configuration file /lib/systemd/system/apt-daily.service is marked world-writable. Please remove world writability permission bits. Proceeding anyway.
[   14.677306] systemd[1]: Configuration file /lib/systemd/system/network-online.target is marked world-writable. Please remove world writability permission bits. Proceeding anyway.
[   14.711191] systemd[1]: Configuration file /lib/systemd/system/networking.service is marked world-writable. Please remove world writability permission bits. Proceeding anyway.
[   14.729646] systemd[1]: Configuration file /lib/systemd/system/network-pre.target is marked world-writable. Please remove world writability permission bits. Proceeding anyway.
[   14.746744] systemd[1]: Configuration file /lib/systemd/system/apt-daily-upgrade.timer is marked world-writable. Please remove world writability permission bits. Proceeding anyway.
[   14.765050] systemd[1]: Configuration file /lib/systemd/system/apt-daily-upgrade.service is marked world-writable. Please remove world writability permission bits. Proceeding anyway.
[   14.783116] systemd[1]: Configuration file /lib/systemd/system/network.target is marked world-writable. Please remove world writability permission bits. Proceeding anyway.
[   14.799879] systemd[1]: Configuration file /lib/systemd/system/nss-user-lookup.target is marked world-writable. Please remove world writability permission bits. Proceeding anyway.
[   14.817303] systemd[1]: Configuration file /lib/systemd/system/remote-fs.target is marked world-writable. Please remove world writability permission bits. Proceeding anyway.
[   14.835325] systemd[1]: Configuration file /lib/systemd/system/nfs-client.target is marked world-writable. Please remove world writability permission bits. Proceeding anyway.
[   14.853204] systemd[1]: Configuration file /lib/systemd/system/rpc-svcgssd.service is marked world-writable. Please remove world writability permission bits. Proceeding anyway.
[   14.871641] systemd[1]: Configuration file /lib/systemd/system/nfs-config.service is marked world-writable. Please remove world writability permission bits. Proceeding anyway.
[   14.888865] systemd[1]: Configuration file /lib/systemd/system/nfs-utils.service is marked world-writable. Please remove world writability permission bits. Proceeding anyway.
[   14.906114] systemd[1]: Configuration file /lib/systemd/system/nfs-server.service is marked world-writable. Please remove world writability permission bits. Proceeding anyway.
[   14.925934] systemd[1]: Configuration file /lib/systemd/system/rpc-statd-notify.service is marked world-writable. Please remove world writability permission bits. Proceeding anyway.
[   14.944409] systemd[1]: Configuration file /lib/systemd/system/nss-lookup.target is marked world-writable. Please remove world writability permission bits. Proceeding anyway.
[   14.961423] systemd[1]: Configuration file /lib/systemd/system/rpc-statd.service is marked world-writable. Please remove world writability permission bits. Proceeding anyway.
[   14.979315] systemd[1]: Configuration file /lib/systemd/system/umount.target is marked world-writable. Please remove world writability permission bits. Proceeding anyway.
[   14.995847] systemd[1]: Configuration file /lib/systemd/system/nfs-idmapd.service is marked world-writable. Please remove world writability permission bits. Proceeding anyway.
[   15.013475] systemd[1]: Configuration file /lib/systemd/system/rpcbind.socket is marked world-writable. Please remove world writability permission bits. Proceeding anyway.
[   15.030876] systemd[1]: Configuration file /lib/systemd/system/rpcbind.service is marked world-writable. Please remove world writability permission bits. Proceeding anyway.
[   15.048499] systemd[1]: Configuration file /lib/systemd/system/rpcbind.target is marked world-writable. Please remove world writability permission bits. Proceeding anyway.
[   15.065144] systemd[1]: Configuration file /lib/systemd/system/nfs-mountd.service is marked world-writable. Please remove world writability permission bits. Proceeding anyway.
[   15.082803] systemd[1]: Configuration file /lib/systemd/system/proc-fs-nfsd.mount is marked world-writable. Please remove world writability permission bits. Proceeding anyway.
[   15.100805] systemd[1]: Configuration file /lib/systemd/system/run-rpc_pipefs.mount is marked world-writable. Please remove world writability permission bits. Proceeding anyway.
[   15.118502] systemd[1]: Configuration file /lib/systemd/system/rpc-gssd.service is marked world-writable. Please remove world writability permission bits. Proceeding anyway.
[   15.135936] systemd[1]: Configuration file /lib/systemd/system/auth-rpcgss-module.service is marked world-writable. Please remove world writability permission bits. Proceeding anyway.
[   15.154298] systemd[1]: Configuration file /lib/systemd/system/nfs-blkmap.service is marked world-writable. Please remove world writability permission bits. Proceeding anyway.
[   15.172111] systemd[1]: Configuration file /lib/systemd/system/remote-fs-pre.target is marked world-writable. Please remove world writability permission bits. Proceeding anyway.
[   15.189388] systemd[1]: Configuration file /lib/systemd/system/systemd-ask-password-console.path is marked world-writable. Please remove world writability permission bits. Proceeding anyway.
[   15.208977] systemd[1]: Configuration file /lib/systemd/system/systemd-ask-password-console.service is marked world-writable. Please remove world writability permission bits. Proceeding anyway.
[   15.228569] systemd[1]: Configuration file /lib/systemd/system/sys-kernel-debug.mount is marked world-writable. Please remove world writability permission bits. Proceeding anyway.
[   15.246551] systemd[1]: Configuration file /lib/systemd/system/cryptsetup.target is marked world-writable. Please remove world writability permission bits. Proceeding anyway.
[   15.263585] systemd[1]: Configuration file /lib/systemd/system/systemd-tmpfiles-setup.service is marked world-writable. Please remove world writability permission bits. Proceeding anyway.
[   15.282419] systemd[1]: Configuration file /lib/systemd/system/systemd-udevd.service is marked world-writable. Please remove world writability permission bits. Proceeding anyway.
[   15.301240] systemd[1]: Configuration file /lib/systemd/system/systemd-udevd-kernel.socket is marked world-writable. Please remove world writability permission bits. Proceeding anyway.
[   15.319395] systemd[1]: Configuration file /lib/systemd/system/systemd-udevd-control.socket is marked world-writable. Please remove world writability permission bits. Proceeding anyway.
[   15.338470] systemd[1]: Configuration file /lib/systemd/system/systemd-binfmt.service is marked world-writable. Please remove world writability permission bits. Proceeding anyway.
[   15.356531] systemd[1]: Configuration file /lib/systemd/system/systemd-random-seed.service is marked world-writable. Please remove world writability permission bits. Proceeding anyway.
[   15.375567] systemd[1]: Configuration file /lib/systemd/system/sys-fs-fuse-connections.mount is marked world-writable. Please remove world writability permission bits. Proceeding anyway.
[   15.394739] systemd[1]: Configuration file /lib/systemd/system/dev-mqueue.mount is marked world-writable. Please remove world writability permission bits. Proceeding anyway.
[   15.412160] systemd[1]: Configuration file /lib/systemd/system/systemd-udev-trigger.service is marked world-writable. Please remove world writability permission bits. Proceeding anyway.
[   15.430950] systemd[1]: Configuration file /lib/systemd/system/systemd-machine-id-commit.service is marked world-writable. Please remove world writability permission bits. Proceeding anyway.
[   15.449917] systemd[1]: Configuration file /lib/systemd/system/systemd-modules-load.service is marked world-writable. Please remove world writability permission bits. Proceeding anyway.
[   15.468464] systemd[1]: Configuration file /lib/systemd/system/systemd-sysctl.service is marked world-writable. Please remove world writability permission bits. Proceeding anyway.
[   15.486594] systemd[1]: Configuration file /lib/systemd/system/dev-hugepages.mount is marked world-writable. Please remove world writability permission bits. Proceeding anyway.
[   15.504448] systemd[1]: Configuration file /lib/systemd/system/systemd-hwdb-update.service is marked world-writable. Please remove world writability permission bits. Proceeding anyway.
[   15.523256] systemd[1]: Configuration file /lib/systemd/system/systemd-tmpfiles-setup-dev.service is marked world-writable. Please remove world writability permission bits. Proceeding anyway.
[   15.542604] systemd[1]: Configuration file /lib/systemd/system/proc-sys-fs-binfmt_misc.automount is marked world-writable. Please remove world writability permission bits. Proceeding anyway.
[   15.562014] systemd[1]: Configuration file /lib/systemd/system/proc-sys-fs-binfmt_misc.mount is marked world-writable. Please remove world writability permission bits. Proceeding anyway.
[   15.580723] systemd[1]: Configuration file /lib/systemd/system/systemd-update-utmp.service is marked world-writable. Please remove world writability permission bits. Proceeding anyway.
[   15.600514] systemd[1]: Configuration file /lib/systemd/system/kmod-static-nodes.service is marked world-writable. Please remove world writability permission bits. Proceeding anyway.
[   15.618887] systemd[1]: Configuration file /lib/systemd/system/systemd-timesyncd.service is marked world-writable. Please remove world writability permission bits. Proceeding anyway.
[   15.652554] systemd[1]: Configuration file /lib/systemd/system/systemd-timesyncd.service.d/disable-with-time-daemon.conf is marked world-writable. Please remove world writability permission bits. Proceeding anyway.
[   15.673740] systemd[1]: Configuration file /lib/systemd/system/swap.target is marked world-writable. Please remove world writability permission bits. Proceeding anyway.
[   15.690222] systemd[1]: Configuration file /lib/systemd/system/emergency.service is marked world-writable. Please remove world writability permission bits. Proceeding anyway.
[   15.708311] systemd[1]: Configuration file /lib/systemd/system/rescue.service is marked world-writable. Please remove world writability permission bits. Proceeding anyway.
[   15.726246] systemd[1]: Configuration file /lib/systemd/system/syslog.socket is marked world-writable. Please remove world writability permission bits. Proceeding anyway.
[   15.744186] systemd[1]: Configuration file /lib/systemd/system/systemd-journald-audit.socket is marked world-writable. Please remove world writability permission bits. Proceeding anyway.
[   15.762654] systemd[1]: Configuration file /lib/systemd/system/systemd-journald-dev-log.socket is marked world-writable. Please remove world writability permission bits. Proceeding anyway.
[   15.782033] systemd[1]: Configuration file /lib/systemd/system/sockets.target is marked world-writable. Please remove world writability permission bits. Proceeding anyway.
[   15.812608] systemd[1]: Configuration file /lib/systemd/system/dbus.socket is marked world-writable. Please remove world writability permission bits. Proceeding anyway.
[   15.841617] systemd[1]: Configuration file /lib/systemd/system/dbus.service is marked world-writable. Please remove world writability permission bits. Proceeding anyway.
[   15.858685] systemd[1]: Configuration file /lib/systemd/system/systemd-initctl.socket is marked world-writable. Please remove world writability permission bits. Proceeding anyway.
[   15.882877] systemd[1]: Configuration file /lib/systemd/system/systemd-initctl.service is marked world-writable. Please remove world writability permission bits. Proceeding anyway.
[   15.900707] systemd[1]: Configuration file /lib/systemd/system/avahi-daemon.socket is marked world-writable. Please remove world writability permission bits. Proceeding anyway.
[   15.918891] systemd[1]: Configuration file /lib/systemd/system/avahi-daemon.service is marked world-writable. Please remove world writability permission bits. Proceeding anyway.
[   15.938160] systemd[1]: Configuration file /lib/systemd/system/systemd-fsck-root.service is marked world-writable. Please remove world writability permission bits. Proceeding anyway.
[   15.958451] systemd[1]: Configuration file /lib/systemd/system/systemd-fsckd.socket is marked world-writable. Please remove world writability permission bits. Proceeding anyway.
[   15.976476] systemd[1]: Configuration file /lib/systemd/system/systemd-fsckd.service is marked world-writable. Please remove world writability permission bits. Proceeding anyway.
[   15.994224] systemd[1]: Configuration file /lib/systemd/system/emergency.target is marked world-writable. Please remove world writability permission bits. Proceeding anyway.
[   16.012226] systemd[1]: Configuration file /lib/systemd/system/local-fs-pre.target is marked world-writable. Please remove world writability permission bits. Proceeding anyway.
[   16.033472] systemd[1]: Configuration file /lib/systemd/system/graphical.target is marked world-writable. Please remove world writability permission bits. Proceeding anyway.
[   16.071831] systemd[1]: Configuration file /lib/systemd/system/systemd-update-utmp-runlevel.service is marked world-writable. Please remove world writability permission bits. Proceeding anyway.
[   16.094878] systemd[1]: Configuration file /lib/systemd/system/multi-user.target is marked world-writable. Please remove world writability permission bits. Proceeding anyway.
[   16.136788] systemd[1]: Configuration file /lib/systemd/system/systemd-ask-password-wall.path is marked world-writable. Please remove world writability permission bits. Proceeding anyway.
[   16.155686] systemd[1]: Configuration file /lib/systemd/system/systemd-ask-password-wall.service is marked world-writable. Please remove world writability permission bits. Proceeding anyway.
[   16.174727] systemd[1]: Configuration file /lib/systemd/system/getty.target is marked world-writable. Please remove world writability permission bits. Proceeding anyway.
[   16.201515] systemd[1]: Configuration file /lib/systemd/system/getty-static.service is marked world-writable. Please remove world writability permission bits. Proceeding anyway.
[   16.229562] systemd[1]: Configuration file /lib/systemd/system/serial-getty@.service is marked world-writable. Please remove world writability permission bits. Proceeding anyway.
[   16.251133] systemd[1]: Configuration file /lib/systemd/system/getty@.service is marked world-writable. Please remove world writability permission bits. Proceeding anyway.
[   16.270617] systemd[1]: Configuration file /lib/systemd/system/systemd-logind.service is marked world-writable. Please remove world writability permission bits. Proceeding anyway.
[   16.291020] systemd[1]: Configuration file /lib/systemd/system/user.slice is marked world-writable. Please remove world writability permission bits. Proceeding anyway.
[   16.313003] systemd[1]: Configuration file /lib/systemd/system/rc-local.service is marked world-writable. Please remove world writability permission bits. Proceeding anyway.
[   16.341299] systemd[1]: Configuration file /lib/systemd/system/rc-local.service.d/debian.conf is marked world-writable. Please remove world writability permission bits. Proceeding anyway.
[   16.359674] systemd[1]: Configuration file /lib/systemd/system/ssh.service is marked world-writable. Please remove world writability permission bits. Proceeding anyway.
[   16.383933] systemd[1]: Configuration file /lib/systemd/system/rescue.target is marked world-writable. Please remove world writability permission bits. Proceeding anyway.
[   16.413936] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
[<0x1b>[0;32m  OK  <0x1b>[0m] Started Dispatch Password Requests to Console Directory Watch.
[   16.441036] systemd[1]: Created slice System Slice.
[<0x1b>[0;32m  OK  <0x1b>[0m] Created slice System Slice.
[   16.490675] systemd[1]: Mounting RPC Pipe File System...
         Mounting RPC Pipe File System...
[   16.511083] systemd[1]: Created slice system-serial\x2dgetty.slice.
[<0x1b>[0;32m  OK  <0x1b>[0m] Created slice system-serial\x2dgetty.slice.
[   16.545369] systemd[1]: Mounting POSIX Message Queue File System...
         Mounting POSIX Message Queue File System...
[   16.570713] systemd[1]: dev-hugepages.mount: Couldn't determine result for ConditionVirtualization=!private-users, assuming failed: No such file or directory
[   16.585856] systemd[1]: Listening on Journal Socket (/dev/log).
[<0x1b>[0;32m  OK  <0x1b>[0m] Listening on Journal Socket (/dev/log).
[   16.677388] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[<0x1b>[0;32m  OK  <0x1b>[0m] Started Forward Password Requests to Wall Directory Watch.
[   16.710681] systemd[1]: Listening on udev Kernel Socket.
[<0x1b>[0;32m  OK  <0x1b>[0m] Listening on udev Kernel Socket.
[   16.741854] systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point.
[<0x1b>[0;32m  OK  <0x1b>[0m] Set up automount Arbitrary Executab<0xe2><0x80><0xa6>rmats File System Automount Point.
[   16.770926] systemd[1]: Created slice User and Session Slice.
[<0x1b>[0;32m  OK  <0x1b>[0m] Created slice User and Session Slice.
[   16.800430] systemd[1]: Reached target Slices.
[<0x1b>[0;32m  OK  <0x1b>[0m] Reached target Slices.
[   16.820853] systemd[1]: Listening on /dev/initctl Compatibility Named Pipe.
[<0x1b>[0;32m  OK  <0x1b>[0m] Listening on /dev/initctl Compatibility Named Pipe.
[   16.880586] systemd[1]: Mounting Debug File System...
         Mounting Debug File System...
[   16.901248] systemd[1]: Listening on Journal Socket.
[<0x1b>[0;32m  OK  <0x1b>[0m] Listening on Journal Socket.
[   17.011210] systemd[1]: Starting Load Kernel Modules...
         Starting Load Kernel Modules...
[   17.045002] systemd[1]: Starting Create list of required static device nodes for the current kernel...
         Starting Create list of required st<0xe2><0x80><0xa6>ce nodes for the current kernel...
[   17.080035] systemd[1]: Listening on udev Control Socket.
[<0x1b>[0;32m  OK  <0x1b>[0m] Listening on udev Control Socket.
[   17.110878] systemd[1]: Reached target Swap.
[<0x1b>[0;32m  OK  <0x1b>[0m] Reached target Swap.
[   17.131233] systemd[1]: Created slice system-getty.slice.
[<0x1b>[0;32m  OK  <0x1b>[0m] Created slice system-getty.slice.
[   17.160619] systemd[1]: Reached target Paths.
[<0x1b>[0;32m  OK  <0x1b>[0m] Reached target Paths.
[   17.180823] systemd[1]: Listening on fsck to fsckd communication Socket.
[<0x1b>[0;32m  OK  <0x1b>[0m] Listening on fsck to fsckd communication Socket.
[   17.241697] systemd[1]: Starting Journal Service...
         Starting Journal Service...
[   17.260638] systemd[1]: Reached target Encrypted Volumes.
[<0x1b>[0;32m  OK  <0x1b>[0m] Reached target Encrypted Volumes.
[   17.291220] systemd[1]: Listening on RPCbind Server Activation Socket.
[<0x1b>[0;32m  OK  <0x1b>[0m] Listening on RPCbind Server Activation Socket.
[   17.330600] systemd-journald[183]: Configuration file /etc/systemd/journald.conf is marked world-writable. Please remove world writability permission bits. Proceeding anyway.
[   17.351232] systemd[1]: Starting File System Check on Root Device...
         Starting File System Check on Root Device...
[   17.391744] systemd[1]: run-rpc_pipefs.mount: Mount process exited, code=exited status=1
[   17.400988] systemd[1]: Failed to mount RPC Pipe File System.
[<0x1b>[0;1;31mFAILED<0x1b>[0m] Failed to mount RPC Pipe File System.
See 'systemctl status run-rpc_pipefs.mount' for details.
[   17.450542] systemd[1]: Dependency failed for pNFS block layout mapping daemon.
[<0x1b>[0;1;33mDEPEND<0x1b>[0m] Dependency failed for pNFS block layout mapping daemon.
[   17.465464] systemd[1]: nfs-blkmap.service: Job nfs-blkmap.service/start failed with result 'dependency'.
[   17.479505] systemd[1]: Dependency failed for RPC security service for NFS server.
[<0x1b>[0;1;33mDEPEND<0x1b>[0m] Dependency failed for RPC security service for NFS server.
[   17.500482] systemd[1]: rpc-svcgssd.service: Job rpc-svcgssd.service/start failed with result 'dependency'.
[   17.520240] systemd[1]: Dependency failed for RPC security service for NFS client and server.
[<0x1b>[0;1;33mDEPEND<0x1b>[0m] Dependency failed for RPC security service for NFS client and server.
[   17.550484] systemd[1]: rpc-gssd.service: Job rpc-gssd.service/start failed with result 'dependency'.
[   17.559836] systemd[1]: run-rpc_pipefs.mount: Unit entered failed state.
[   17.567800] systemd[1]: dev-mqueue.mount: Mount process exited, code=exited status=1
[   17.576732] systemd[1]: Failed to mount POSIX Message Queue File System.
[<0x1b>[0;1;31mFAILED<0x1b>[0m] Failed to mount POSIX Message Queue File System.
See 'systemctl status dev-mqueue.mount' for details.
[   17.620418] systemd[1]: dev-mqueue.mount: Unit entered failed state.
[   17.628418] systemd[1]: sys-kernel-debug.mount: Mount process exited, code=exited status=1
[   17.637939] systemd[1]: Failed to mount Debug File System.
[<0x1b>[0;1;31mFAILED<0x1b>[0m] Failed to mount Debug File System.
See 'systemctl status sys-kernel-debug.mount' for details.
[   17.680545] systemd[1]: sys-kernel-debug.mount: Unit entered failed state.
[   17.696360] systemd[1]: Started Load Kernel Modules.
[<0x1b>[0;32m  OK  <0x1b>[0m] Started Load Kernel Modules.
[   17.734415] systemd[1]: Started Create list of required static device nodes for the current kernel.
[<0x1b>[0;32m  OK  <0x1b>[0m] Started Create list of required sta<0xe2><0x80><0xa6>vice nodes for the current kernel.
[   17.772139] systemd[1]: Started Journal Service.
[<0x1b>[0;32m  OK  <0x1b>[0m] Started Journal Service.
[<0x1b>[0;32m  OK  <0x1b>[0m] Started File System Check Daemon to report status.
         Starting Create Static Device Nodes in /dev...
         Mounting FUSE Control File System...
         Starting Apply Kernel Variables...
[<0x1b>[0;32m  OK  <0x1b>[0m] Reached target NFS client services.
[<0x1b>[0;32m  OK  <0x1b>[0m] Reached target Remote File Systems (Pre).
[<0x1b>[0;32m  OK  <0x1b>[0m] Reached target Remote File Systems.
[<0x1b>[0;1;31mFAILED<0x1b>[0m] Failed to mount FUSE Control File System.
See 'systemctl status sys-fs-fuse-connections.mount' for details.
[<0x1b>[0;32m  OK  <0x1b>[0m] Started File System Check on Root Device.
         Starting Remount Root and Kernel File Systems...
[<0x1b>[0;32m  OK  <0x1b>[0m] Started Apply Kernel Variables.
[<0x1b>[0;1;31mFAILED<0x1b>[0m] Failed to start Remount Root and Kernel File Systems.
See 'systemctl status systemd-remount-fs.service' for details.
         Starting udev Coldplug all Devices...
         Starting Flush Journal to Persistent Storage...
         Starting Load/Save Random Seed...
[<0x1b>[0;32m  OK  <0x1b>[0m] Started Create Static Device Nodes in /dev.
[<0x1b>[0;32m  OK  <0x1b>[0m] Started Load/Save Random Seed.
[<0x1b>[0;32m  OK  <0x1b>[0m] Reached target Local File Systems (Pre).
         Mounting /tmp...
         Starting udev Kernel Device Manager...
[<0x1b>[0;1;31mFAILED<0x1b>[0m] Failed to mount /tmp.
See 'systemctl status tmp.mount' for details.
[<0x1b>[0;1;33mDEPEND<0x1b>[0m] Dependency failed for Network Time Synchronization.
[<0x1b>[0;1;33mDEPEND<0x1b>[0m] Dependency failed for Local File Systems.
[   18.857879] systemd-journald[183]: Received request to flush runtime journal from PID 1
         Starting Preprocess NFS configuration...
         Starting Raise network interfaces...
[<0x1b>[0;32m  OK  <0x1b>[0m] Reached target Timers.
[<0x1b>[0;32m  OK  <0x1b>[0m] Reached target Login Prompts.
[<0x1b>[0;32m  OK  <0x1b>[0m] Reached target Sockets.
[<0x1b>[0;32m  OK  <0x1b>[0m] Started Emergency Shell.
[<0x1b>[0;32m  OK  <0x1b>[0m] Reached target Emergency Mode.
[<0x1b>[0;32m  OK  <0x1b>[0m] Reached target System Time Synchronized.
[<0x1b>[0;32m  OK  <0x1b>[0m] Started Flush Journal to Persistent Storage.
[<0x1b>[0;32m  OK  <0x1b>[0m] Started udev Coldplug all Devices.
         Starting Create Volatile Files and Directories...
[<0x1b>[0;32m  OK  <0x1b>[0m] Started Preprocess NFS configuration.
[<0x1b>[0;32m  OK  <0x1b>[0m] Started udev Kernel Device Manager.
[<0x1b>[0;1;31mFAILED<0x1b>[0m] Failed to start Create Volatile Files and Directories.
See 'systemctl status systemd-tmpfiles-setup.service' for details.
         Starting Update UTMP about System Boot/Shutdown...
         Mounting FUSE Control File System...
[<0x1b>[0;1;31mFAILED<0x1b>[0m] Failed to mount FUSE Control File System.
See 'systemctl status sys-fs-fuse-connections.mount' for details.
[<0x1b>[0;1;31mFAILED<0x1b>[0m] Failed to start Update UTMP about System Boot/Shutdown.
See 'systemctl status systemd-update-utmp.service' for details.
[<0x1b>[0;1;33mDEPEND<0x1b>[0m] Dependency failed for Update UTMP about System Runlevel Changes.
[<0x1b>[0;32m  OK  <0x1b>[0m] Found device /dev/ttyS0.
[   20.233169] input: gpio-keys-polled as /devices/platform/gpio-keys-polled/input/input0
[   22.087582] eth0: device MAC address 82:f5:82:33:6e:7a
You are in emergGive root password for maintenance
(or press Control-D to continue): [   25.170170] oxnas-gmac 40400000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
Re: Unbricking OMNINAS kd20 (oxnas820)
November 09, 2018 04:39PM
Bastler,

> I hope I'm soon at the point to try making the
> kd20 box booting without sata now?

Close. But not yet.

(or press Control-D to continue): [   25.170170] oxnas-gmac 40400000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx

1. Remove init=/bin/systemd from the bootargs. Boot with sysvinit until your installed system is running OK. And then at that point, you can switch.

2. Change bootargs to use label rootfs so that the rootfs will be mounted from the USB rootfs (you need to create this eventually, so should do it now).

setenv bootargs root=LABEL=rootfs initrd=0x61000000 console=ttyS0,115200 elevator=cfq mac_adr=0x00,0x25,0xb1,0xff,0xff,0x00 mem=256M poweroutage=yes

Once you have booted cleanly to Debian on USB rootfs,

dmesg
cat /proc/mtd

And at this point, flash u-boot to mtd0. And the box is fully operational.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Unbricking OMNINAS kd20 (oxnas820)
November 11, 2018 10:19AM
bodhi
Would you say that this is what you could tell a 'clean boot' from sata now?

There is no USB Drive plugged in, just the sata drive. (& Network cable and the serial cable)
These are the (standard) envs used for this today:
What's to do more before I can insert init=/bin/systemd and use LABEL now?

And once more: A big thank you for your patience with me!

OXNAS> printenv
bootcmd=run beep select0 load loadr sysled boot || run sysretry load loadr sysled boot|| run sysretry load loadr sysled boot|| run sysretry load loadr sysled boot|| run sysretry load loadr sysled boot|| run sysretry load loadr sysled boot|| run sysretry load loadr sysled boot|| run sysretry load loadr sysled boot|| run sysretry load loadr sysled boot || run sysretry load loadr sysled boot || run errled select2 load3 loadr3 ramboot boot 
bootdelay=2
baudrate=115200
ethaddr=00:25:b1:ff:ff:00
ipaddr=192.168.0.128
serverip=192.168.0.1
autoload=n
netmask=255.255.0.0
bootfile="uImage"
select0=ide dev 0
select1=ide dev 1
select2=dhcp 
loadr=ide read 0x62000000 2122 1644
load=ide read 0x60500000 50a 1800
loadr3=tftp 0x62000000 rdimg.gz
load2=ide read 0x60500000 e3e8 1800
load3=tftp 0x60500000 uImage
sysretry=led a;ide res
sysled=led 1
errled=led r
beep=beep
ramboot=setenv bootargs root=/dev/ram0 console=ttyS0,115200 initrd=0x61000000 mem=256M
boot=bootm 60500000 62000000
stdin=serial
stdout=serial
stderr=serial
bootargs=root=/dev/sda2 initrd=0x61000000 console=ttyS0,115200 elevator=cfq mac_adr=0x00,0x25,0xb1,0xff,0xff,0x00 mem=256M poweroutage=yes

Environment size: 1158/8188 bytes


Stage-1 Bootloader 2015-01.21-21:48:56
Attempting to set PLLA to 800MHz ...
  plla_ctrl0 : 0x0000030A
  plla_ctrl1 : 0x00400000
  plla_ctrl2 : 0x007F0068
  plla_ctrl3 : 0x00000193
PLLA Set

Setup memory, testing
Reading disk 00
  Sector : 0x0000009A
  Hdr len: 0x00025978
  Hdr CRC: 0x1CCE0DF0
 OK
Detecting SATA busses:
Bus 0: No devices found
Failed to read valid environment from disk, using built-in default
␍␊
     _           _   _   _      
    | |         | | | | | |      
 ___| |__  _   _| |_| |_| | ___  
/ __| '_ \| | | | __| __| |/ _ \ 
\__ \ | | | |_| | |_| |_| |  __/ 
|___/_| |_|\__,_|\__|\__|_|\___| 
          _   _     ____              _
         | | | |   | __ )  ___   ___ | |_
         | | | |___|  _ \ / _ \ / _ \| __| 
         | |_| |___| |_) | (_) | (_) | |_
          \___/    |____/ \___/ \___/ \__| 

U-Boot 1.1.2 (Jan 24 2015 - 13:54:11)

U-Boot code: 60D00000 -> 60D25978  BSS: -> 60D3A680
IRQ Stack: 60cddf7c
FIQ Stack: 60cdcf7c
RAM Configuration:
⇥	Bank #0: 60000000 256 MB
SRAM Configuration:
⇥	64KB at 0x50000000
NAND:128 MiB
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Setting Linux mem= boot arg value
Hit any key to stop autoboot:  2 <0x08><0x08><0x08> 0

                              Boot Menu
==============================================================================␍␊
0: Enter Command Line Interface             1: Reboot
2: Start the Kernel Code                    T: GPIO Test Function

=> Select: 

OXNAS> tftp 0x60000000 uImage
Wait GMAC to reset
Wait for PHY reset
PHY is IC+ IP1001LF
Wait for link to come up...........Link up
Wait for auto-negotiation to complete
Link is 1000M
TFTP from server 192.168.0.1; our IP address is 192.168.0.128
Filename 'uImage'.
Load address: 0x60000000
Loading: *<0x08>
ARP Resend request
T invalid RARP header
#################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 ############################################################
done
Bytes transferred = 4629915 (46a59b hex)
OXNAS> tftp 0x61000000 uInitrd
Wait GMAC to reset
Wait for PHY reset
PHY is IC+ IP1001LF
Wait for link to come up...........Link up
Wait for auto-negotiation to complete
Link is 1000M
TFTP from server 192.168.0.1; our IP address is 192.168.0.128
Filename 'uInitrd'.
Load address: 0x61000000
Loading: *<0x08>
ARP Resend request
T invalid RARP header
#################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #####################################################
done
Bytes transferred = 4594376 (461ac8 hex)
OXNAS> bootm 0x60000000 0x61000000
## Booting image at 60000000 ...
   Image Name:   Linux-4-4-54-oxnas-tld-1
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    4629851 Bytes =  4.4 MB
   Load Address: 60008000
   Entry Point:  60008000
   Verifying Checksum ... OK
OK
## Loading Ramdisk Image at 61000000 ...
   Image Name:   initramfs-4.4.54-oxnas-tld-1
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    4594312 Bytes =  4.4 MB
   Load Address: 60000000
   Entry Point:  60000000
   Verifying Checksum ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.4.54-oxnas-tld-1 (root@tldDebian) (gcc version 4.9.2 (Debian 4.9.2-10) ) #2 SMP PREEMPT Sat Mar 18 23:09:58 PDT 2017
[    0.000000] CPU: ARMv6-compatible processor [410fb025] revision 5 (ARMv7), cr=00c5787d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] Machine model: Shuttle KD20
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] DT missing boot CPU MPIDR[23:0], fall back to default cpu_logical_map
[    0.000000] PERCPU: Embedded 12 pages/cpu @cfdd9000 s17696 r8192 d23264 u49152
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 65024
[    0.000000] Kernel command line: root=/dev/sda2 initrd=0x61000000 console=ttyS0,115200 elevator=cfq mac_adr=0x00,0x25,0xb1,0xff,0xff,0x00 mem=256M poweroutage=yes
[    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: 246148K/262144K available (6410K kernel code, 288K rwdata, 1908K rodata, 224K init, 247K bss, 15996K 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 - 0xc0827e14   (8320 kB)
[    0.000000]       .init : 0xc0828000 - 0xc0860000   ( 224 kB)
[    0.000000]       .data : 0xc0860000 - 0xc08a8378   ( 289 kB)
[    0.000000]        .bss : 0xc08a8378 - 0xc08e6350   ( 248 kB)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000] NR_IRQS:160
[    0.000000] clocksource: rps_clocksource_timer: mask: 0xffffff max_cycles: 0xffffff, max_idle_ns: 19112603332 ns
[    0.000010] sched_clock: 24 bits at 390kHz, resolution 2560ns, wraps every 21474835200ns
[    0.000197] Console: colour dummy device 80x30
[    0.000232] Calibrating delay loop... 319.48 BogoMIPS (lpj=1597440)
[    0.050030] pid_max: default: 32768 minimum: 301
[    0.050211] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.050232] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.051112] Initializing cgroup subsys net_cls
[    0.051200] CPU: Testing write buffer coherency: ok
[    0.051648] Setting up static identity map for 0x60008220 - 0x60008258
[    0.190151] Brought up 2 CPUs
[    0.190177] SMP: Total of 2 processors activated (638.97 BogoMIPS).
[    0.191024] devtmpfs: initialized
[    0.197199] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.197248] futex hash table entries: 512 (order: 2, 16384 bytes)
[    0.197603] prandom: seed boundary self test passed
[    0.202298] prandom: 100 self tests passed
[    0.202329] pinctrl core: initialized pinctrl subsystem
[    0.203207] NET: Registered protocol family 16
[    0.203870] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.230018] cpuidle: using governor ladder
[    0.260011] cpuidle: using governor menu
[    0.266506] gpio-oxnas 44000000.gpio: at address d0848000
[    0.266928] gpio-oxnas 44100000.gpio: at address d084a000
[    0.267543] pinctrl-oxnas pinctrl: initialized OX820 pinctrl driver
[    0.392112] oxnas-pcie 47c00000.pcie-controller: PCIe version/deviceID 0x82510b5
[    0.403143] oxnas-pcie 47c00000.pcie-controller: link up
[    0.403517] oxnas-pcie 47c00000.pcie-controller: PCI host bridge to bus 0000:00
[    0.403550] pci_bus 0000:00: root bus resource [mem 0x48000000-0x49ffffff]
[    0.403571] pci_bus 0000:00: root bus resource [mem 0x4a000000-0x4bdfffff pref]
[    0.403591] pci_bus 0000:00: root bus resource [io  0x0000-0xfffff]
[    0.403614] pci_bus 0000:00: root bus resource [bus 00-7f]
[    0.404275] PCI: bus0: Fast back to back transfers disabled
[    0.404372] pci 0000:00:00.0: BAR 0: assigned [mem 0x48000000-0x48007fff 64bit]
[    0.404902] vgaarb: loaded
[    0.405427] SCSI subsystem initialized
[    0.406351] usbcore: registered new interface driver usbfs
[    0.406469] usbcore: registered new interface driver hub
[    0.406635] usbcore: registered new device driver usb
[    0.406837] pps_core: LinuxPPS API ver. 1 registered
[    0.406855] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.406904] PTP clock support registered
[    0.409313] clocksource: Switched to clocksource rps_clocksource_timer
[    0.429294] NET: Registered protocol family 2
[    0.430323] TCP established hash table entries: 2048 (order: 1, 8192 bytes)
[    0.430382] TCP bind hash table entries: 2048 (order: 2, 16384 bytes)
[    0.430438] TCP: Hash tables configured (established 2048 bind 2048)
[    0.430548] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.430594] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.430878] NET: Registered protocol family 1
[    0.431475] RPC: Registered named UNIX socket transport module.
[    0.431498] RPC: Registered udp transport module.
[    0.431511] RPC: Registered tcp transport module.
[    0.431521] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.431585] pci 0000:00:00.0: enabling device (0140 -> 0142)
[    0.432023] Unpacking initramfs...
[    0.941342] Freeing initrd memory: 4488K (c1000000 - c1462000)
[    0.952000] Initialise system trusted keyring
[    0.966154] zbud: loaded
[    0.972039] NFS: Registering the id_resolver key type
[    0.972111] Key type id_resolver registered
[    0.972124] Key type id_legacy registered
[    0.972175] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.972198] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.973237] fuse init (API version 7.23)
[    0.975488] Key type big_key registered
[    1.056261] Key type asymmetric registered
[    1.056296] Asymmetric key parser 'x509' registered
[    1.056437] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[    1.056463] io scheduler noop registered
[    1.056483] io scheduler deadline registered
[    1.056552] io scheduler cfq registered (default)
[    1.057280] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[    1.058890] console [ttyS0] disabled
[    1.058997] 44200000.uart: ttyS0 at MMIO 0x44200000 (irq = 6, base_baud = 390625) is a 16550A
[    1.651829] console [ttyS0] enabled
[    1.667648] loop: module loaded
[    1.673843] scsi host0: sata_oxnas
[    1.678010] scsi host1: sata_oxnas
[    1.681879] ata1: SATA max UDMA/133 irq 7
[    1.685877] ata2: SATA max UDMA/133 irq 7
[    1.689973] sata_oxnas: resetting SATA core
[    1.691048] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xf1
[    1.691054] nand: Hynix H27U1G8F2BTR-BC
[    1.691064] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    1.691082] Scanning device for bad blocks
[    1.774192] 2 ofpart partitions found on MTD device 41000000.nand
[    1.780293] Creating 2 MTD partitions on "41000000.nand":
[    1.785674] 0x000000000000-0x000000e00000 : "boot"
[    1.811048] 0x000000e00000-0x000008000000 : "ubi"
[    1.831500] oxnas-gmac 40400000.ethernet: snps,phy-addr property is deprecated
[    1.838789] oxnas-gmac 40400000.ethernet: no reset control found
[    1.844828] stmmac - user ID: 0x12, Synopsys ID: 0x35
[    1.849856]  Ring mode enabled
[    1.852915]  DMA HW capability register supported
[    1.857420]  Enhanced/Alternate descriptors
[    1.861775] 	Enabled extended descriptors
[    1.865761]  RX Checksum Offload Engine supported (type 2)
[    1.871239]  TX Checksum insertion supported
[    1.875486]  Wake-Up On Lan supported
[    1.879124]  Enable RX Mitigation via HW Watchdog Timer
[    1.908664] libphy: stmmac: probed
[    1.912125] eth%d: PHY ID 02430d91 at 1 IRQ POLL (stmmac-0:01) active
[    1.919498] PPP generic driver version 2.4.2
[    1.924477] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.931051] ehci-pci: EHCI PCI platform driver
[    1.935877] oxnas-ehci 40200100.ehci: EHCI Host Controller
[    1.941455] oxnas-ehci 40200100.ehci: new USB bus registered, assigned bus number 1
[    1.949271] oxnas-ehci 40200100.ehci: irq 10, io mem 0x40200100
[    1.970007] oxnas-ehci 40200100.ehci: USB 2.0 started, EHCI 1.00
[    1.976355] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.983188] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.990420] usb usb1: Product: EHCI Host Controller
[    1.995276] usb usb1: Manufacturer: Linux 4.4.54-oxnas-tld-1 ehci_hcd
[    2.001725] usb usb1: SerialNumber: 40200100.ehci
[    2.007431] hub 1-0:1.0: USB hub found
[    2.011297] hub 1-0:1.0: 2 ports detected
[    2.016440] xhci_hcd 0000:00:00.0: xHCI Host Controller
[    2.021775] xhci_hcd 0000:00:00.0: new USB bus registered, assigned bus number 2
[    2.029539] xhci_hcd 0000:00:00.0: hcc params 0x040040a5 hci version 0x100 quirks 0x00080490
[    2.038494] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[    2.045322] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.052546] usb usb2: Product: xHCI Host Controller
[    2.057402] usb usb2: Manufacturer: Linux 4.4.54-oxnas-tld-1 xhci-hcd
[    2.063836] usb usb2: SerialNumber: 0000:00:00.0
[    2.069544] hub 2-0:1.0: USB hub found
[    2.073415] hub 2-0:1.0: 2 ports detected
[    2.078325] xhci_hcd 0000:00:00.0: xHCI Host Controller
[    2.083624] xhci_hcd 0000:00:00.0: new USB bus registered, assigned bus number 3
[    2.091253] usb usb3: We don't know the algorithms for LPM for this host, disabling LPM.
[    2.099578] usb usb3: New USB device found, idVendor=1d6b, idProduct=0003
[    2.106519] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.114014] usb usb3: Product: xHCI Host Controller
[    2.118878] usb usb3: Manufacturer: Linux 4.4.54-oxnas-tld-1 xhci-hcd
[    2.125332] usb usb3: SerialNumber: 0000:00:00.0
[    2.131023] hub 3-0:1.0: USB hub found
[    2.134842] hub 3-0:1.0: 2 ports detected
[    2.140139] usbcore: registered new interface driver cdc_acm
[    2.145786] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[    2.153937] usbcore: registered new interface driver cdc_wdm
[    2.159823] usbcore: registered new interface driver usb-storage
[    2.166080] usbcore: registered new interface driver usbserial
[    2.172249] usbcore: registered new interface driver usbserial_generic
[    2.178821] usbserial: USB Serial support registered for generic
[    2.185333] mousedev: PS/2 mouse device common for all mice
[    2.191121] i2c /dev entries driver
[    2.196825] hidraw: raw HID events driver (C) Jiri Kosina
[    2.202549] usbcore: registered new interface driver usbhid
[    2.208102] usbhid: USB HID core driver
[    2.214000] NET: Registered protocol family 10
[    2.230978] sit: IPv6 over IPv4 tunneling driver
[    2.236651] NET: Registered protocol family 17
[    2.241372] Key type dns_resolver registered
[    2.247180] registered taskstats version 1
[    2.250168] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[    2.257541] Loading compiled-in X.509 certificates
[    2.262479] zswap: loaded using pool lzo/zbud
[    2.283655] Key type encrypted registered
[    2.390000] usb 2-1: new high-speed USB device number 2 using xhci_hcd
[    2.544614] usb 2-1: New USB device found, idVendor=05e3, idProduct=0723
[    2.551342] usb 2-1: New USB device strings: Mfr=3, Product=4, SerialNumber=0
[    2.558448] usb 2-1: Product: USB Storage
[    2.562470] usb 2-1: Manufacturer: Generic 
[    2.568455] usb-storage 2-1:1.0: USB Mass Storage device detected
[    2.575101] scsi host2: usb-storage 2-1:1.0
[    2.599027] ata1.00: ATA-8: TOSHIBA MK6465GSX, GJ003A, max UDMA/100
[    2.605337] ata1.00: 1250263728 sectors, multi 16: LBA48 NCQ (depth 0/32)
[    2.612961] ata1.00: configured for UDMA/100
[    2.630753] scsi 0:0:0:0: Direct-Access     ATA      TOSHIBA MK6465GS 3A   PQ: 0 ANSI: 5
[    2.640663] sd 0:0:0:0: [sda] 1250263728 512-byte logical blocks: (640 GB/596 GiB)
[    2.648286] sata_oxnas: resetting SATA core
[    2.660549] sd 0:0:0:0: [sda] Write Protect is off
[    2.665564] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    2.680373] sata_oxnas: resetting SATA core
[    3.360158] ata2: SATA link down (SStatus 0 SControl 300)
[    3.440010] ata1: exception Emask 0x10 SAct 0x0 SErr 0x0 action 0xe frozen
[    3.446876] ata1: hard resetting link
[    3.590996] scsi 2:0:0:0: Direct-Access     Generic  STORAGE DEVICE   9454 PQ: 0 ANSI: 0
[    3.602611] sd 2:0:0:0: [sdb] Attached SCSI removable disk
[    4.360002] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[    4.411110] ata1.00: configured for UDMA/100
[    4.415380] ata1: EH complete
[    4.463014]  sda: sda1 sda2
[    4.468218] sd 0:0:0:0: [sda] Attached SCSI disk
[    4.473290] Freeing unused kernel memory: 224K (c0828000 - c0860000)
Loading, please wait...
starting version 232
[    4.676352] random: systemd-udevd: uninitialized urandom read (16 bytes read, 9 bits of entropy available)
[    4.687767] random: systemd-udevd: uninitialized urandom read (16 bytes read, 9 bits of entropy available)
[    4.688033] random: udevadm: uninitialized urandom read (16 bytes read, 9 bits of entropy available)
[    4.690521] random: udevadm: uninitialized urandom read (16 bytes read, 9 bits of entropy available)
[    4.690713] random: udevadm: uninitialized urandom read (16 bytes read, 9 bits of entropy available)
[    4.692039] random: udevadm: uninitialized urandom read (16 bytes read, 9 bits of entropy available)
[    4.693209] random: udevadm: uninitialized urandom read (16 bytes read, 9 bits of entropy available)
[    4.694384] random: udevadm: uninitialized urandom read (16 bytes read, 9 bits of entropy available)
[    4.695592] random: udevadm: uninitialized urandom read (16 bytes read, 9 bits of entropy available)
[    4.696788] random: udevadm: uninitialized urandom read (16 bytes read, 9 bits of entropy available)
[    5.089553] usbcore: registered new interface driver uas
[    5.148838] i2c-gpio i2c-gpio: using pins 41 (SDA) and 42 (SCL)
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.
Begin: Will now check root file system ... fsck from util-linux 2.29.2
fsck: error 2 (No such file or directory) while executing fsck.ext3 for /dev/sda2
fsck exited with status code 8
done.
Warning: File system check failed but did not detect errors
[   10.828436] EXT4-fs (sda2): mounting ext3 file system using the ext4 subsystem
[   10.955394] EXT4-fs (sda2): mounted filesystem with ordered data mode. Opts: (null)
done.
Begin: Running /scripts/local-bottom ... done.
Begin: Running /scripts/init-bottom ... done.
INIT: version 2.88 booting
[<0x1b>[36minfo<0x1b>[39;49m] Using makefile-style concurrent boot in runlevel S.
[....] Starting the hotplug events dispatcher: systemd-udevdstarting version 232
<0x1b>[?25l<0x1b>[?1c<0x1b>7<0x1b>[1G[<0x1b>[32m ok <0x1b>[39;49m<0x1b>8<0x1b>[?25h<0x1b>[?0c.
[....] Synthesizing the initial hotplug events...[   14.837053] random: nonblocking pool is initialized
<0x1b>[?25l<0x1b>[?1c<0x1b>7<0x1b>[1G[<0x1b>[32m ok <0x1b>[39;49m<0x1b>8<0x1b>[?25h<0x1b>[?0cdone.
[   15.570718] input: gpio-keys-polled as /devices/platform/gpio-keys-polled/input/input0
[....] Waiting for /dev to be fully populated...<0x1b>[?25l<0x1b>[?1c<0x1b>7<0x1b>[1G[<0x1b>[32m ok <0x1b>[39;49m<0x1b>8<0x1b>[?25h<0x1b>[?0cdone.
[....] Activating swap...<0x1b>[?25l<0x1b>[?1c<0x1b>7<0x1b>[1G[<0x1b>[32m ok <0x1b>[39;49m<0x1b>8<0x1b>[?25h<0x1b>[?0cdone.
[   17.541900] EXT4-fs (sda2): re-mounted. Opts: (null)
[....] Checking root file system...fsck from util-linux 2.29.2
rootfs: clean, 14007/39075840 files, 2848297/156280150 blocks
<0x1b>[?25l<0x1b>[?1c<0x1b>7<0x1b>[1G[<0x1b>[32m ok <0x1b>[39;49m<0x1b>8<0x1b>[?25h<0x1b>[?0cdone.
[   18.027806] EXT4-fs (sda2): re-mounted. Opts: errors=remount-ro
[....] Activating lvm and md swap...<0x1b>[?25l<0x1b>[?1c<0x1b>7<0x1b>[1G[<0x1b>[32m ok <0x1b>[39;49m<0x1b>8<0x1b>[?25h<0x1b>[?0cdone.
[....] Checking file systems...fsck from util-linux 2.29.2
<0x1b>[?25l<0x1b>[?1c<0x1b>7<0x1b>[1G[<0x1b>[32m ok <0x1b>[39;49m<0x1b>8<0x1b>[?25h<0x1b>[?0cdone.
[....] Loading kernel modules...<0x1b>[?25l<0x1b>[?1c<0x1b>7<0x1b>[1G[<0x1b>[32m ok <0x1b>[39;49m<0x1b>8<0x1b>[?25h<0x1b>[?0cdone.
[....] Cleaning up temporary files... /tmp<0x1b>[?25l<0x1b>[?1c<0x1b>7<0x1b>[1G[<0x1b>[32m ok <0x1b>[39;49m<0x1b>8<0x1b>[?25h<0x1b>[?0c.
[....] Mounting local filesystems...<0x1b>[?25l<0x1b>[?1c<0x1b>7<0x1b>[1G[<0x1b>[32m ok <0x1b>[39;49m<0x1b>8<0x1b>[?25h<0x1b>[?0cdone.
[....] Activating swapfile swap...<0x1b>[?25l<0x1b>[?1c<0x1b>7<0x1b>[1G[<0x1b>[32m ok <0x1b>[39;49m<0x1b>8<0x1b>[?25h<0x1b>[?0cdone.
[....] Cleaning up temporary files...<0x1b>[?25l<0x1b>[?1c<0x1b>7<0x1b>[1G[<0x1b>[32m ok <0x1b>[39;49m<0x1b>8<0x1b>[?25h<0x1b>[?0c.
[....] Setting kernel variables...<0x1b>[?25l<0x1b>[?1c<0x1b>7<0x1b>[1G[<0x1b>[32m ok <0x1b>[39;49m<0x1b>8<0x1b>[?25h<0x1b>[?0cdone.
[   22.549491] eth0: device MAC address ba:ae:bd:4b:86:c4
[....] Configuring network interfaces...Internet Systems Consortium DHCP Client 4.3.5
Copyright 2004-2016 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/ba:ae:bd:4b:86:c4
Sending on   LPF/eth0/ba:ae:bd:4b:86:c4
Sending on   Socket/fallback
DHCPREQUEST of 192.168.0.16 on eth0 to 255.255.255.255 port 67
[   25.630310] oxnas-gmac 40400000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
DHCPREQUEST of 192.168.0.16 on eth0 to 255.255.255.255 port 67
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 3
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 7
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 15
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 13
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 15
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
No DHCPOFFERS received.
Trying recorded lease 192.168.0.16
PING 192.168.0.1 (192.168.0.1) 56(84) bytes of data.

--- 192.168.0.1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 1.437/1.437/1.437/0.000 ms
bound: renewal in 1501633054 seconds.
<0x1b>[?25l<0x1b>[?1c<0x1b>7<0x1b>[1G[<0x1b>[32m ok <0x1b>[39;49m<0x1b>8<0x1b>[?25h<0x1b>[?0cdone.
[....] Starting RPC port mapper daemon: rpcbind<0x1b>[?25l<0x1b>[?1c<0x1b>7<0x1b>[1G[<0x1b>[32m ok <0x1b>[39;49m<0x1b>8<0x1b>[?25h<0x1b>[?0c.
[....] Starting NFS common utilities: statd idmapd<0x1b>[?25l<0x1b>[?1c<0x1b>7<0x1b>[1G[<0x1b>[32m ok <0x1b>[39;49m<0x1b>8<0x1b>[?25h<0x1b>[?0c.
[....] Cleaning up temporary files...<0x1b>[?25l<0x1b>[?1c<0x1b>7<0x1b>[1G[<0x1b>[32m ok <0x1b>[39;49m<0x1b>8<0x1b>[?25h<0x1b>[?0c.
INIT: Entering runlevel: 2
[<0x1b>[36minfo<0x1b>[39;49m] Using makefile-style concurrent boot in runlevel 2.
[....] Starting busybox' syslogd implementation : syslogdStarting /sbin/syslogd...
1261 (syslogd)
<0x1b>[?25l<0x1b>[?1c<0x1b>7<0x1b>[1G[<0x1b>[32m ok <0x1b>[39;49m<0x1b>8<0x1b>[?25h<0x1b>[?0c.
[....] Starting NFS common utilities: statd idmapd<0x1b>[?25l<0x1b>[?1c<0x1b>7<0x1b>[1G[<0x1b>[32m ok <0x1b>[39;49m<0x1b>8<0x1b>[?25h<0x1b>[?0c.
[....] Starting system message bus: dbus<0x1b>[?25l<0x1b>[?1c<0x1b>7<0x1b>[1G[<0x1b>[32m ok <0x1b>[39;49m<0x1b>8<0x1b>[?25h<0x1b>[?0c.
[....] Not starting NFS kernel daemon: no exports. ...<0x1b>[?25l<0x1b>[?1c<0x1b>7<0x1b>[1G[<0x1b>[33mwarn<0x1b>[39;49m<0x1b>8<0x1b>[?25h<0x1b>[?0c <0x1b>[33m(warning).<0x1b>[39;49m
[....] Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon<0x1b>[?25l<0x1b>[?1c<0x1b>7<0x1b>[1G[<0x1b>[32m ok <0x1b>[39;49m<0x1b>8<0x1b>[?25h<0x1b>[?0c.
[....] Starting busybox' klogd implementation : klogdStarting /sbin/klogd...
1260 (klogd)
<0x1b>[?25l<0x1b>[?1c<0x1b>7<0x1b>[1G[<0x1b>[32m ok <0x1b>[39;49m<0x1b>8<0x1b>[?25h<0x1b>[?0c.
[....] Starting OpenBSD Secure Shell server: sshd<0x1b>[?25l<0x1b>[?1c<0x1b>7<0x1b>[1G[<0x1b>[32m ok <0x1b>[39;49m<0x1b>8<0x1b>[?25h<0x1b>[?0c.
[....] Starting NTP server: ntpd<0x1b>[?25l<0x1b>[?1c<0x1b>7<0x1b>[1G[<0x1b>[32m ok <0x1b>[39;49m<0x1b>8<0x1b>[?25h<0x1b>[?0c.

Debian GNU/Linux 9 debian ttyS0


debian login: root
Password: 
Last login: Tue Aug  1 17:15:07 PDT 2017 from 192.168.0.220 on pts/0
Linux debian 4.4.54-oxnas-tld-1 #2 SMP PREEMPT Sat Mar 18 23:09:58 PDT 2017 armv6l

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
root@debian:~# ssh-keygen -A
root@debian:~# apt-get update
0% [Working]0% [Connecting to http.debian.net]0% [Connecting to http.debian.net]0% [Connecting to http.debian.net]0% [Connecting to http.debian.net]0% [Connecting to http.debian.net]0% [Connecting to http.debian.net]0% [Connecting to http.debian.net]0% [Connecting to http.debian.net]0% [Connecting to http.debian.net]0% [Connecting to http.debian.net]0% [Connecting to http.debian.net]0% [Connecting to http.debian.net]0% [Connecting to http.debian.net]0% [Connecting to http.debian.net]0% [Connecting to http.debian.net]0% [Connecting to http.debian.net]0% [Connecting to http.debian.net]0% [Connecting to http.debian.net]0% [Connecting to http.debian.net]0% [Connecting to ftp.us.debian.org] [Connecting to security.debian.org] [Conne0% [Connecting to ftp.us.debian.org] [Connecting to security.debian.org] [Conne0% [Connecting to ftp.us.debian.org] [Connecting to security.debian.org] [Conne0% [Connecting to ftp.us.debian.org] [Connecting to security.debian.org] [Conne0% [Connecting to ftp.us.debian.org] [Connecting to security.debian.org] [Conne0% [Connecting to ftp.us.debian.org] [Connecting to security.debian.org] [Conne0% [Connecting to ftp.us.debian.org] [Connecting to security.debian.org] [Conne0% [Connecting to ftp.us.debian.org] [Connecting to security.debian.org] [Conne0% [Connecting to ftp.us.debian.org] [Connecting to security.debian.org] [Conne0% [Connecting to ftp.us.debian.org] [Connecting to security.debian.org] [Conne0% [Connecting to ftp.us.debian.org] [Connecting to security.debian.org] [Conne0% [Connecting to ftp.us.debian.org] [Connecting to security.debian.org] [Conne0% [Connecting to ftp.us.debian.org] [Connecting to security.debian.org] [Conne0% [Connecting to ftp.us.debian.org] [Connecting to security.debian.org] [Conne0% [Connecting to ftp.us.debian.org] [Connecting to security.debian.org] [Conne0% [Connecting to ftp.us.debian.org] [Connecting to security.debian.org] [Conne0% [Connecting to ftp.us.debian.org] [Connecting to security.debian.org] [Conne0% [Connecting to ftp.us.debian.org] [Connecting to security.debian.org] [Conne0% [Connecting to ftp.us.debian.org] [Connecting to security.debian.org] [Conne0% [Connecting to ftp.us.debian.org] [Connecting to security.debian.org] [Conne                                                                               Err:1 http://http.debian.net/debian stretch-updates InRelease
  Temporary failure resolving 'http.debian.net'
                                                                               0% [Connecting to ftp.us.debian.org] [Connecting to security.debian.org]0% [Connecting to ftp.us.debian.org] [Connecting to security.debian.org]0% [Connecting to ftp.us.debian.org] [Connecting to security.debian.org]0% [Connecting to ftp.us.debian.org] [Connecting to security.debian.org]0% [Connecting to ftp.us.debian.org] [Connecting to security.debian.org]0% [Connecting to ftp.us.debian.org] [Connecting to security.debian.org]0% [Connecting to ftp.us.debian.org] [Connecting to security.debian.org]0% [Connecting to ftp.us.debian.org] [Connecting to security.debian.org]0% [Connecting to ftp.us.debian.org] [Connecting to security.debian.org]0% [Connecting to ftp.us.debian.org] [Connecting to security.debian.org]                                                                        Err:2 http://security.debian.org stretch/updates InRelease
  Temporary failure resolving 'security.debian.org'
                                                                        0% [Connecting to ftp.us.debian.org]                                    Err:3 http://ftp.us.debian.org/debian stretch InRelease
  Temporary failure resolving 'ftp.us.debian.org'
                                    0% [Working]            Reading package lists... 0%Reading package lists... 0%Reading package lists... 1%Reading package lists... 4%Reading package lists... 7%Reading package lists... 10%Reading package lists... 13%Reading package lists... 16%Reading package lists... 19%Reading package lists... 22%Reading package lists... 25%Reading package lists... 28%Reading package lists... 31%Reading package lists... 34%Reading package lists... 37%Reading package lists... 40%Reading package lists... 43%Reading package lists... 46%Reading package lists... 49%Reading package lists... 52%Reading package lists... 55%Reading package lists... 57%Reading package lists... 57%Reading package lists... 58%Reading package lists... 69%Reading package lists... 79%Reading package lists... 90%Reading package lists... 98%Reading package lists... 98%Reading package lists... 99%Reading package lists... 99%Reading package lists... 99%Reading package lists... 99%Reading package lists... 99%Reading package lists... 99%Reading package lists... 99%Reading package lists... 99%Reading package lists... 99%Reading package lists... Done
W: Failed to fetch http://ftp.us.debian.org/debian/dists/stretch/InRelease  Temporary failure resolving 'ftp.us.debian.org'
W: Failed to fetch http://security.debian.org/dists/stretch/updates/InRelease  Temporary failure resolving 'security.debian.org'
W: Failed to fetch http://http.debian.net/debian/dists/stretch-updates/InRelease  Temporary failure resolving 'http.debian.net'
W: Some index files failed to download. They have been ignored, or old ones used instead.
root@debian:~# apt-get upgrade
Reading package lists... 0%Reading package lists... 0%Reading package lists... 1%Reading package lists... 4%Reading package lists... 7%Reading package lists... 10%Reading package lists... 13%Reading package lists... 16%Reading package lists... 19%Reading package lists... 22%Reading package lists... 25%Reading package lists... 28%Reading package lists... 31%Reading package lists... 34%Reading package lists... 37%Reading package lists... 40%Reading package lists... 43%Reading package lists... 46%Reading package lists... 49%Reading package lists... 52%Reading package lists... 55%Reading package lists... 57%Reading package lists... 57%Reading package lists... 58%Reading package lists... 70%Reading package lists... 81%Reading package lists... 93%Reading package lists... 98%Reading package lists... 98%Reading package lists... 99%Reading package lists... 99%Reading package lists... 99%Reading package lists... 99%Reading package lists... 99%Reading package lists... 99%Reading package lists... 99%Reading package lists... 99%Reading package lists... Done
Building dependency tree... 0%Building dependency tree... 0%Building dependency tree... 0%Building dependency tree... 50%Building dependency tree... 50%Building dependency tree... 68%Building dependency tree... 91%Building dependency tree       
Reading state information... 0%Reading state information... 1%Reading state information... Done
Calculating upgrade... 0%Calculating upgrade... 50%Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
  libapt-pkg4.12 libbind9-80 libdb5.1 libdns88 libgcrypt11 libgnutls26
  libgssglue1 libisc84 libisccc80 libisccfg82 liblwres80 libprocps0
  libssl1.0.0 libsystemd-login0 libtasn1-3
Use 'apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@debian:~# 

Re: Unbricking OMNINAS kd20 (oxnas820)
November 11, 2018 04:59PM
Bastler,

It looks very good, a clean boot!


Quote
This is good - kernel detected the mtds correctly.

[ 1.691082] Scanning device for bad blocks
[ 1.774192] 2 ofpart partitions found on MTD device 41000000.nand
[ 1.780293] Creating 2 MTD partitions on "41000000.nand":
[ 1.785674] 0x000000000000-0x000000e00000 : "boot"
[ 1.811048] 0x000000e00000-0x000008000000 : "ubi"

But before you flash u-boot to NAND.

Verify that you can access the mtds the normal way in userspace:
cat /proc/mtd
cat /etc/fw_env.config
fw_printenv

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Unbricking OMNINAS kd20 (oxnas820)
November 12, 2018 09:49AM
here are the results.

fw_printenv looks from beginning not such good, but may be, is at this point nevertheless ok?

cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00e00000 00020000 "boot"
mtd1: 07200000 00020000 "ubi"

root@debian:~# cat /etc/fw_env.config
# MTD device name	Device offset	Env. size	Flash sector size	Number of sectors
# pogoplug pro
  /dev/mtd0               0x00100000      0x20000         0x20000

root@debian:~# fw_printenv
[  390.658035] __nand_correct_data: uncorrectable ECC error
[  390.663705] __nand_correct_data: uncorrectable ECC error
[  390.668997] __nand_correct_data: uncorrectable ECC error
[  390.674895] __nand_correct_data: uncorrectable ECC error
[  390.680258] __nand_correct_data: uncorrectable ECC error
[  390.685544] __nand_correct_data: uncorrectable ECC error
[  390.691402] __nand_correct_data: uncorrectable ECC error
[  390.696698] __nand_correct_data: uncorrectable ECC error
[  390.702735] __nand_correct_data: uncorrectable ECC error
[  390.708029] __nand_correct_data: uncorrectable ECC error
[  390.713781] __nand_correct_data: uncorrectable ECC error
[  390.719080] __nand_correct_data: uncorrectable ECC error
[  390.724812] __nand_correct_data: uncorrectable ECC error
[  390.730426] __nand_correct_data: uncorrectable ECC error
[  390.735713] __nand_correct_data: uncorrectable ECC error
[  390.741552] __nand_correct_data: uncorrectable ECC error
[  390.747136] __nand_correct_data: uncorrectable ECC error
[  390.752883] __nand_correct_data: uncorrectable ECC error
[  390.758182] __nand_correct_data: uncorrectable ECC error
[  390.764206] __nand_correct_data: uncorrectable ECC error
[  390.769505] __nand_correct_data: uncorrectable ECC error
[  390.775523] __nand_correct_data: uncorrectable ECC error
[  390.780879] __nand_correct_data: uncorrectable ECC error
[  390.786165] __nand_correct_data: uncorrectable ECC error
[  390.792005] __nand_correct_data: uncorrectable ECC error
[  390.797304] __nand_correct_data: uncorrectable ECC error
[  390.803033] __nand_correct_data: uncorrectable ECC error
[  390.808614] __nand_correct_data: uncorrectable ECC error
[  390.814632] __nand_correct_data: uncorrectable ECC error
[  390.819929] __nand_correct_data: uncorrectable ECC error
[  390.825671] __nand_correct_data: uncorrectable ECC error
[  390.831288] __nand_correct_data: uncorrectable ECC error
[  390.836579] __nand_correct_data: uncorrectable ECC error
[  390.842416] __nand_correct_data: uncorrectable ECC error
[  390.847994] __nand_correct_data: uncorrectable ECC error
[  390.853731] __nand_correct_data: uncorrectable ECC error
[  390.859025] __nand_correct_data: uncorrectable ECC error
[  390.865044] __nand_correct_data: uncorrectable ECC error
[  390.870382] __nand_correct_data: uncorrectable ECC error
[  390.875668] __nand_correct_data: uncorrectable ECC error
[  390.881502] __nand_correct_data: uncorrectable ECC error
[  390.887080] __nand_correct_data: uncorrectable ECC error
[  390.892828] __nand_correct_data: uncorrectable ECC error
[  390.898122] __nand_correct_data: uncorrectable ECC error
[  390.903851] __nand_correct_data: uncorrectable ECC error
[  390.909148] __nand_correct_data: uncorrectable ECC error
[  390.915463] __nand_correct_data: uncorrectable ECC error
[  390.920798] __nand_correct_data: uncorrectable ECC error
[  390.926087] __nand_correct_data: uncorrectable ECC error
[  390.931929] __nand_correct_data: uncorrectable ECC error
[  390.937228] __nand_correct_data: uncorrectable ECC error
[  390.943249] __nand_correct_data: uncorrectable ECC error
[  390.948546] __nand_correct_data: uncorrectable ECC error
[  390.954288] __nand_correct_data: uncorrectable ECC error
[  390.959582] __nand_correct_data: uncorrectable ECC error
[  390.965312] __nand_correct_data: uncorrectable ECC error
[  390.970928] __nand_correct_data: uncorrectable ECC error
[  390.976217] __nand_correct_data: uncorrectable ECC error
[  390.982051] __nand_correct_data: uncorrectable ECC error
[  390.987348] __nand_correct_data: uncorrectable ECC error
[  390.993367] __nand_correct_data: uncorrectable ECC error
[  390.998666] __nand_correct_data: uncorrectable ECC error
[  391.004405] __nand_correct_data: uncorrectable ECC error
[  391.009702] __nand_correct_data: uncorrectable ECC error
[  391.015718] __nand_correct_data: uncorrectable ECC error
[  391.021053] __nand_correct_data: uncorrectable ECC error
[  391.026342] __nand_correct_data: uncorrectable ECC error
[  391.032186] __nand_correct_data: uncorrectable ECC error
[  391.037486] __nand_correct_data: uncorrectable ECC error
[  391.043522] __nand_correct_data: uncorrectable ECC error
[  391.048819] __nand_correct_data: uncorrectable ECC error
[  391.054635] __nand_correct_data: uncorrectable ECC error
[  391.059934] __nand_correct_data: uncorrectable ECC error
[  391.065666] __nand_correct_data: uncorrectable ECC error
[  391.071285] __nand_correct_data: uncorrectable ECC error
[  391.076577] __nand_correct_data: uncorrectable ECC error
[  391.082408] __nand_correct_data: uncorrectable ECC error
[  391.087708] __nand_correct_data: uncorrectable ECC error
[  391.093724] __nand_correct_data: uncorrectable ECC error
[  391.099020] __nand_correct_data: uncorrectable ECC error
[  391.104768] __nand_correct_data: uncorrectable ECC error
[  391.110387] __nand_correct_data: uncorrectable ECC error
[  391.115676] __nand_correct_data: uncorrectable ECC error
[  391.121518] __nand_correct_data: uncorrectable ECC error
[  391.126814] __nand_correct_data: uncorrectable ECC error
[  391.132830] __nand_correct_data: uncorrectable ECC error
[  391.138129] __nand_correct_data: uncorrectable ECC error
[  391.144151] __nand_correct_data: uncorrectable ECC error
[  391.149450] __nand_correct_data: uncorrectable ECC error
[  391.155184] __nand_correct_data: uncorrectable ECC error
[  391.160803] __nand_correct_data: uncorrectable ECC error
[  391.166090] __nand_correct_data: uncorrectable ECC error
[  391.171950] __nand_correct_data: uncorrectable ECC error
[  391.177528] __nand_correct_data: uncorrectable ECC error
[  391.183278] __nand_correct_data: uncorrectable ECC error
[  391.188574] __nand_correct_data: uncorrectable ECC error
[  391.194301] __nand_correct_data: uncorrectable ECC error
[  391.199600] __nand_correct_data: uncorrectable ECC error
[  391.205606] __nand_correct_data: uncorrectable ECC error
[  391.210941] __nand_correct_data: uncorrectable ECC error
[  391.216227] __nand_correct_data: uncorrectable ECC error
[  391.222056] __nand_correct_data: uncorrectable ECC error
[  391.227353] __nand_correct_data: uncorrectable ECC error
[  391.233085] __nand_correct_data: uncorrectable ECC error
[  391.238379] __nand_correct_data: uncorrectable ECC error
[  391.244387] __nand_correct_data: uncorrectable ECC error
[  391.249684] __nand_correct_data: uncorrectable ECC error
[  391.255703] __nand_correct_data: uncorrectable ECC error
[  391.261038] __nand_correct_data: uncorrectable ECC error
[  391.266606] __nand_correct_data: uncorrectable ECC error
[  391.272448] __nand_correct_data: uncorrectable ECC error
[  391.277747] __nand_correct_data: uncorrectable ECC error
[  391.283481] __nand_correct_data: uncorrectable ECC error
[  391.289062] __nand_correct_data: uncorrectable ECC error
[  391.294809] __nand_correct_data: uncorrectable ECC error
[  391.300165] __nand_correct_data: uncorrectable ECC error
[  391.305735] __nand_correct_data: uncorrectable ECC error
[  391.311580] __nand_correct_data: uncorrectable ECC error
[  391.317160] __nand_correct_data: uncorrectable ECC error
[  391.322903] __nand_correct_data: uncorrectable ECC error
[  391.328202] __nand_correct_data: uncorrectable ECC error
[  391.334213] __nand_correct_data: uncorrectable ECC error
[  391.339509] __nand_correct_data: uncorrectable ECC error
[  391.345251] __nand_correct_data: uncorrectable ECC error
[  391.350592] __nand_correct_data: uncorrectable ECC error
[  391.356160] __nand_correct_data: uncorrectable ECC error
[  391.361999] __nand_correct_data: uncorrectable ECC error
[  391.367298] __nand_correct_data: uncorrectable ECC error
[  391.373035] __nand_correct_data: uncorrectable ECC error
[  391.378329] __nand_correct_data: uncorrectable ECC error
[  391.384343] __nand_correct_data: uncorrectable ECC error
[  391.389639] __nand_correct_data: uncorrectable ECC error
[  391.395379] __nand_correct_data: uncorrectable ECC error
[  391.400998] __nand_correct_data: uncorrectable ECC error
[  391.406287] __nand_correct_data: uncorrectable ECC error
[  391.412131] __nand_correct_data: uncorrectable ECC error
[  391.417431] __nand_correct_data: uncorrectable ECC error
[  391.423449] __nand_correct_data: uncorrectable ECC error
[  391.428748] __nand_correct_data: uncorrectable ECC error
[  391.434506] __nand_correct_data: uncorrectable ECC error
[  391.440435] __nand_correct_data: uncorrectable ECC error
[  391.445736] __nand_correct_data: uncorrectable ECC error
[  391.451468] __nand_correct_data: uncorrectable ECC error
[  391.457049] __nand_correct_data: uncorrectable ECC error
[  391.462791] __nand_correct_data: uncorrectable ECC error
[  391.468090] __nand_correct_data: uncorrectable ECC error
[  391.473825] __nand_correct_data: uncorrectable ECC error
[  391.479124] __nand_correct_data: uncorrectable ECC error
[  391.485122] __nand_correct_data: uncorrectable ECC error
[  391.490462] __nand_correct_data: uncorrectable ECC error
[  391.495749] __nand_correct_data: uncorrectable ECC error
[  391.501867] __nand_correct_data: uncorrectable ECC error
[  391.507166] __nand_correct_data: uncorrectable ECC error
[  391.512908] __nand_correct_data: uncorrectable ECC error
[  391.518208] __nand_correct_data: uncorrectable ECC error
[  391.523944] __nand_correct_data: uncorrectable ECC error
[  391.529523] __nand_correct_data: uncorrectable ECC error
[  391.535260] __nand_correct_data: uncorrectable ECC error
[  391.540597] __nand_correct_data: uncorrectable ECC error
[  391.545889] __nand_correct_data: uncorrectable ECC error
[  391.551710] __nand_correct_data: uncorrectable ECC error
[  391.557291] __nand_correct_data: uncorrectable ECC error
[  391.563054] __nand_correct_data: uncorrectable ECC error
[  391.568350] __nand_correct_data: uncorrectable ECC error
[  391.574085] __nand_correct_data: uncorrectable ECC error
[  391.579665] __nand_correct_data: uncorrectable ECC error
[  391.585410] __nand_correct_data: uncorrectable ECC error
[  391.590743] __nand_correct_data: uncorrectable ECC error
[  391.596029] __nand_correct_data: uncorrectable ECC error
[  391.601861] __nand_correct_data: uncorrectable ECC error
[  391.607441] __nand_correct_data: uncorrectable ECC error
[  391.613181] __nand_correct_data: uncorrectable ECC error
[  391.618480] __nand_correct_data: uncorrectable ECC error
[  391.624675] __nand_correct_data: uncorrectable ECC error
[  391.629975] __nand_correct_data: uncorrectable ECC error
[  391.635719] __nand_correct_data: uncorrectable ECC error
[  391.641057] __nand_correct_data: uncorrectable ECC error
[  391.646343] __nand_correct_data: uncorrectable ECC error
[  391.652459] __nand_correct_data: uncorrectable ECC error
[  391.657761] __nand_correct_data: uncorrectable ECC error
[  391.663500] __nand_correct_data: uncorrectable ECC error
[  391.668797] __nand_correct_data: uncorrectable ECC error
[  391.674524] __nand_correct_data: uncorrectable ECC error
[  391.679818] __nand_correct_data: uncorrectable ECC error
[  391.685544] __nand_correct_data: uncorrectable ECC error
[  391.691182] __nand_correct_data: uncorrectable ECC error
[  391.696468] __nand_correct_data: uncorrectable ECC error
[  391.702586] __nand_correct_data: uncorrectable ECC error
[  391.707886] __nand_correct_data: uncorrectable ECC error
[  391.713630] __nand_correct_data: uncorrectable ECC error
[  391.718927] __nand_correct_data: uncorrectable ECC error
[  391.724659] __nand_correct_data: uncorrectable ECC error
[  391.729955] __nand_correct_data: uncorrectable ECC error
[  391.735974] __nand_correct_data: uncorrectable ECC error
[  391.741309] __nand_correct_data: uncorrectable ECC error
[  391.746598] __nand_correct_data: uncorrectable ECC error
[  391.752714] __nand_correct_data: uncorrectable ECC error
[  391.758010] __nand_correct_data: uncorrectable ECC error
[  391.764032] __nand_correct_data: uncorrectable ECC error
[  391.769331] __nand_correct_data: uncorrectable ECC error
[  391.775065] __nand_correct_data: uncorrectable ECC error
[  391.780403] __nand_correct_data: uncorrectable ECC error
[  391.785692] __nand_correct_data: uncorrectable ECC error
[  391.791795] __nand_correct_data: uncorrectable ECC error
[  391.797096] __nand_correct_data: uncorrectable ECC error
[  391.802841] __nand_correct_data: uncorrectable ECC error
[  391.808140] __nand_correct_data: uncorrectable ECC error
[  391.814156] __nand_correct_data: uncorrectable ECC error
[  391.819456] __nand_correct_data: uncorrectable ECC error
[  391.825505] __nand_correct_data: uncorrectable ECC error
[  391.830840] __nand_correct_data: uncorrectable ECC error
[  391.836126] __nand_correct_data: uncorrectable ECC error
[  391.841960] __nand_correct_data: uncorrectable ECC error
[  391.847255] __nand_correct_data: uncorrectable ECC error
[  391.852986] __nand_correct_data: uncorrectable ECC error
[  391.858283] __nand_correct_data: uncorrectable ECC error
[  391.864017] __nand_correct_data: uncorrectable ECC error
[  391.869596] __nand_correct_data: uncorrectable ECC error
[  391.875328] __nand_correct_data: uncorrectable ECC error
[  391.880668] __nand_correct_data: uncorrectable ECC error
[  391.886233] __nand_correct_data: uncorrectable ECC error
[  391.892075] __nand_correct_data: uncorrectable ECC error
[  391.897374] __nand_correct_data: uncorrectable ECC error
[  391.903395] __nand_correct_data: uncorrectable ECC error
[  391.908697] __nand_correct_data: uncorrectable ECC error
[  391.914432] __nand_correct_data: uncorrectable ECC error
[  391.919731] __nand_correct_data: uncorrectable ECC error
[  391.925455] __nand_correct_data: uncorrectable ECC error
[  391.930795] __nand_correct_data: uncorrectable ECC error
[  391.936363] __nand_correct_data: uncorrectable ECC error
[  391.942208] __nand_correct_data: uncorrectable ECC error
[  391.947509] __nand_correct_data: uncorrectable ECC error
[  391.953546] __nand_correct_data: uncorrectable ECC error
[  391.958842] __nand_correct_data: uncorrectable ECC error
[  391.964579] __nand_correct_data: uncorrectable ECC error
[  391.970480] __nand_correct_data: uncorrectable ECC error
[  391.975777] __nand_correct_data: uncorrectable ECC error
[  391.981514] __nand_correct_data: uncorrectable ECC error
[  391.987089] __nand_correct_data: uncorrectable ECC error
[  391.992824] __nand_correct_data: uncorrectable ECC error
[  391.998120] __nand_correct_data: uncorrectable ECC error
[  392.003852] __nand_correct_data: uncorrectable ECC error

Warning: Bad CRC, using default environment
bootargs=
bootcmd=
bootdelay=2
baudrate=115200
arch=sandbox
cpu=sandbox
board=sandbox
board_name=sandbox
stdin=serial,cros-ec-keyb,usbkbd
stdout=serial,vidconsole
stderr=serial,vidconsole
ethaddr=00:00:11:22:33:44
eth1addr=00:00:11:22:33:45
eth3addr=00:00:11:22:33:46
eth5addr=00:00:11:22:33:47
ipaddr=1.2.3.4
host_boot=if host dev ${devnum}; then setenv devtype host; run scan_dev_for_boot_part; fi
boot_net_pci_enum=pci enum
boot_net_usb_start=usb start
usb_boot=usb start; if usb dev ${devnum}; then setenv devtype usb; run scan_dev_for_boot_part; fi
boot_prefixes=/ /boot/
boot_scripts=boot.scr.uimg boot.scr
boot_script_dhcp=boot.scr.uimg
boot_targets=host1 host0 
boot_extlinux=sysboot ${devtype} ${devnum}:${distro_bootpart} any ${scriptaddr} ${prefix}extlinux/extlinux.conf
scan_dev_for_extlinux=if test -e ${devtype} ${devnum}:${distro_bootpart} ${prefix}extlinux/extlinux.conf; then echo Found ${prefix}extlinux/extlinux.conf; run boot_extlinux; echo SCRIPT FAILED: continuing...; fi
boot_a_script=load ${devtype} ${devnum}:${distro_bootpart} ${scriptaddr} ${prefix}${script}; source ${scriptaddr}
scan_dev_for_scripts=for script in ${boot_scripts}; do if test -e ${devtype} ${devnum}:${distro_bootpart} ${prefix}${script}; then echo Found U-Boot script ${prefix}${script}; run boot_a_script; echo SCRIPT FAILED: continuing...; fi; done
scan_dev_for_boot=echo Scanning ${devtype} ${devnum}:${distro_bootpart}...; for prefix in ${boot_prefixes}; do run scan_dev_for_extlinux; run scan_dev_for_scripts; done;
scan_dev_for_boot_part=part list ${devtype} ${devnum} -bootable devplist; env exists devplist || setenv devplist 1; for distro_bootpart in ${devplist}; do if fstype ${devtype} ${devnum}:${distro_bootpart} bootfstype; then run scan_dev_for_boot; fi; done
bootcmd_host1=setenv devnum 1; run host_boot
bootcmd_host0=setenv devnum 0; run host_boot
distro_bootcmd=for target in ${boot_targets}; do run bootcmd_${target}; done
bootm_size=0x10000000
kernel_addr_r=0x1000000
fdt_addr_r=0xc00000
ramdisk_addr_r=0x2000000
scriptaddr=0x1000
pxefile_addr_r=0x2000
root@debian:~# 
Re: Unbricking OMNINAS kd20 (oxnas820)
November 12, 2018 04:19PM
Bastler,

It is OK. It just mean that there is nothing on the envs area in NAND.

You can flash u-boot to mtd0. And then fix the env at serial console prompt.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Unbricking OMNINAS kd20 (oxnas820)
November 15, 2018 11:58AM
Weekend is coming and it's time to go ahead, at least I would like to :)
Booting via sata seems to be stable now, but the next steps, writing uImage into mtd0, I don't see any land for now.

Quote
You can flash u-boot to mtd0. And then fix the env at serial console prompt.
Sounds easy but isn't (for me) :)
Have to read so much more in the forum about the correct howto.
If I loaded the uImage via tftp I'll get
Load address: 0x60000000
-
-
Bytes transferred = 4629915 (46a59b hex)
This let me think that this info I found isn't the correct data to erase and flash:
nand erase 40000 200000
nand write 64000000 40000 200000
So I would use 60000000 as start but I'm very very unsure with the next two values.

while booting I get:
[    1.775065] 2 ofpart partitions found on MTD device 41000000.nand
[    1.781166] Creating 2 MTD partitions on "41000000.nand":
[    1.786549] 0x000000000000-0x000000e00000 : "boot"
[    1.811056] 0x000000e00000-0x000008000000 : "ubi"
If booted:
root@debian:~# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00e00000 00020000 "boot"
mtd1: 07200000 00020000 "ubi"
This all can't be such hard to do but I have to find the entry. A long way to go :)
Booting without sata is the first goal.
A little hint, -one more again-, would be very helpful for me.

//================================================================================

If I will come some steps forward ever, I would like to restore the old KD20 again. That was my goal.
Therefore I collected some information about the Shuttle KD20 and own the nand backup-files.
That's from printenv stock kd20:
Shuttle>> printenv
bootcmd=run beep select0 load loadr sysled boot || run errled select2 load3 loadr3 ramboot boot
bootdelay=2
baudrate=115200
ethaddr=00:25:b1:ff:ff:00
ipaddr=192.168.0.128
serverip=192.168.0.1
autoload=n
netmask=255.255.0.0
bootfile="uImage"
select0=nand info
select1=ide dev 0
select2=dhcp
loadr=nand read.e 0x62000000 240000 280000
loadr2=ide read 0x62000000 2122 1800
loadr3=tftp 0x62000000 rdimg.gz
load=nand read.e 0x60500000 840000 300000
load2=ide read 0x60500000 50a 1800
load3=tftp 0x60500000 uImage
sysled=led 1
errled=led r
beep=beep
ramboot=setenv bootargs root=/dev/ram0 console=ttyS0,115200 initrd=0x61000000 mem=256M mac_adr=0x00,0x25,0xb1,0xff,0xff,0x00
boot=bootm 60500000 62000000
ft=n
stdin=serial
stdout=serial
stderr=serial
bootargs=root=ubi0:rootfs ubi.mtd=5,512 rootfstype=ubifs initrd=0x61000000 console=ttyS0,115200 elevator=cfq mac_adr=0x00,0x25,0xb1,0xff,0xff,0x00 mem=256M poweroutage=yes

Environment size: 920/8188 bytes
These are infos I got about the mtd 0 to 5
/ # cat /proc/partitions
major minor #blocks name

31 0 131072 mtdblock0
31 1 256 mtdblock1
31 2 2048 mtdblock2
31 3 6144 mtdblock3
31 4 7936 mtdblock4
31 5 114688 mtdblock5

and these are the backup files:
mtd0.backup     134,2 MB (134.217.728 Bytes)
mtd1.backup     262,1 kB (262.144 Bytes)
mtd2.backup     2,1 MB (2.097.152 Bytes)
mtd3.backup     6,3 MB (6.291.456 Bytes)
mtd4.backup     8,1 MB (8.126.464 Bytes)
mtd5.backup     117,4 MB (117.440.512 Bytes)

stage1.backup  262,1 kB (262.144 Bytes)
uboot.backup    2,1 MB (2.097.152 Bytes)
Re: Unbricking OMNINAS kd20 (oxnas820)
November 15, 2018 05:26PM
Bastler,

> Booting via sata seems to be stable now, but the
> next steps, writing uImage into mtd0, I don't see
> any land for now.
>
> Sounds easy but isn't (for me) :)
> Have to read so much more in the forum
> about the correct howto.

Remember, this box is the same SoC OX820 as the Pogo Pro V3.

The instruction how to flash in Debian is in the release thread:
https://forum.doozan.com/read.php?3,16017

Quote

6. Erase 6 blocks on mtd0
/usr/sbin/flash_erase /dev/mtd0 0x0 6
Expected output
Erasing 128 Kibyte @ a0000 -- 100 % complete


7. Flash encoded spl stage1 to 0x0
/usr/sbin/nandwrite /dev/mtd0 uboot.spl.2013.10.ox820.850mhz.mtd0.img
Expected output
Writing data to block 0 at offset 0x0

8. Flash u-boot to 0x40000
/usr/sbin/nandwrite -s 262144 /dev/mtd0 uboot.2015.10-tld-2.ox820.mtd0.img
Expected output
Writing data to block 2 at offset 0x40000
Writing data to block 3 at offset 0x60000
Writing data to block 4 at offset 0x80000
Writing data to block 5 at offset 0xa0000

In your case, you would use your KD20 files:

stage1.wrapped-nand --- instead of uboot.spl.2013.10.ox820.850mhz.mtd0.img
u-boot.wrapped-nand  --- instead of uboot.2015.10-tld-2.ox820.mtd0.img

And to go back to stock, use your backup:

stage1.backup  262,1 kB (262.144 Bytes)
uboot.backup    2,1 MB (2.097.152 Bytes)

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



Edited 1 time(s). Last edit at 11/15/2018 05:28PM by bodhi.
Re: Unbricking OMNINAS kd20 (oxnas820)
November 16, 2018 03:50AM
Quote
Remember, this box is the same SoC OX820 as the Pogo Pro V3.
I was so focused to KD20 last weeks so that my searching was narrow-minded to Shuttle KD20 only and I didn't saw the things left and right the path :( You point me towards this again now!
Your help is very appreciated, thank you very much!
Re: Unbricking OMNINAS kd20 (oxnas820)
November 16, 2018 04:16AM
Hi Bastler,

> I was so focused to KD20 last weeks so that my
> searching was narrow-minded to Shuttle KD20 only
> and I didn't saw the things left and right the
> path :( You point me towards this again now!
> Your help is very appreciated, thank you very
> much!

You're welcome :)

That's why I always ask users to post the log of what they are doing (you've been doing exactly that). That's the only way I can get my arm around of what you have, and what you are doing, and then give a suggestion that hopefully points to a right track.

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

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: