Quantcast
Channel: Linux Device Hacking - uBoot
Viewing all 902 articles
Browse latest View live

Restore uboot for Synology DS414 (1 reply)

$
0
0
Please help!

I had a working uboot but somehow it now just gets stuck on Modules Detected.


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


U-Boot 2011.12-SYNO-d7bdf8d-2013-12-11 (Dec 11 2013 - 17:58:54) Marvell version: v2011.12 2013_Q1.2

Board: Synology AXP 78230 4-bay/2-bay
SoC: MV78230 B0
running 2 CPUs
Custom configuration
CPU: Marvell PJ4B (584) v7 (Rev 2) LE
CPU 0
CPU @ 1333 [MHz]
L2 @ 667 [MHz]
TClock @ 250 [MHz]
DDR @ 667 [MHz]
DDR 32Bit Width, FastPath Memory Access
DDR ECC Disabled
DRAM: 1 GiB

Map: Code: 0x3fefb000:0x3ff9f630
BSS: 0x3ffef33c
Stack: 0x3f9eaef8
Heap: 0x3f9eb000:0x3fefb000

MMC: MRVL_MMC: 0
SF: Detected M25P64 with page size 64 KiB, total 8 MiB
PEX 0.0(0): Root Complex Interface, Detected Link X4, GEN 1.1
PEX 1.0(1): Detected No Link.
PEX 1.1(2): Detected No Link.
PEX 1.2(3): Detected No Link.
FPU initialized to Run Fast Mode.
USB 0: Host Mode
USB 1: Host Mode
USB 2: Device Mode
Modules Detected:


I think i need to follow this guide i found to boot uboot over UART but i keep getting an error:

pi@raspberrypi:~ $ kwboot -t -B 115200 /dev/ttyUSB0 -b uboot_DS414r1.bin -p
Sending boot message. Please reboot the target...-
Sending boot image...
0 % [+++++++++++++++++xmodem: Bad message

NSA325 - Restore to stock firmware (no replies)

$
0
0
Hello dear community members,

Using various tutorials (https://openwrt.org/toh/zyxel/nsa325) I successfully flashed the new uBoot and the latest OpenWRT on my Zyxel NSA325, but after some playing around I'd like to return to stock firmware because I'll be giving it away.

Could anyone please help me out as I am clueless, and no I unfortunately did not backup anything before flashing....

Thank you,

Dan

Synology Diskstation DS414 Unbricking (no replies)

$
0
0
----------------------------------------------------------------------

Synology Diskstation DS414 Unbricking

----------------------------------------------------------------------

This was many hours work so i thought it was a good idea to document properly rather than leave it online as 100 or so different forum posts (in multiple different languages) that i used to solve this tricky problem.

A special thanks to Bohdi from doozan.com and Greg Langford from greglangford.co.uk for their assistance.

----------------------------------------------------------------------

The problem

----------------------------------------------------------------------

After selling my DS on facebook marketplace (the first mistake) the guy who bought it managed to brick it. At first it seemed like the power had been pulled during an upgrade but now after recovery i have all the logs and can see he had attempted to use disks from an old DS2XX series which seemed to corrupt the boot image.

The device was delivered back at my door with a blue flashing light of death and so the project began to unbrick my DS.

The reason i say facebook marketplace was my first mistake was i couldn't find any support on what to do when a buyer returns something that they obviously broke themselves. Ebay on the other hand have processes in place to help with disputes like this. I'm not knocking facebook marketplace in general as it has been a good way to sell stuff quickly due to the amount of people it reaches in the local area but i will take this as a warning when i next come to sell something.

----------------------------------------------------------------------

The research

----------------------------------------------------------------------

So, where do you start with blue blinking light of death. Many unhelpful suggestions on the Synology forums, even from the synology support chat saying the box was “unrecoverable” but a couple of useful posts did start me on the right track.

The first one i found wasn't the most helpful but gave me hope it was fixable.

https://community.synology.com/enu/forum/17/post/69287

Now this was a scary read as soldering anything has not always worked out positively for me in the past. The important part of this post that should be carefully considered is the sentence “This guide is for all who are sure that u-boot has been corrupted and that there is no other way to recover.”

So how do i confirm if uboot is corrupted? I need to console!

Now Synology have not made this a simple plug and play process. The console pins are hidden underneath which first lead me to a youtube video on dismantling the box to find the pins. As it turns out all i needed to do was tape the correct 3 UART pins together and slide them through the correct gap in the underside of the case.

https://pasteboard.co/J46QuyY.png

I prefer the second video as until you realise which direction to push the inside bar it can be a pain to open.

**NOTE** if you are watching these thinking the DS414 can be memory upgraded then look at the photos below. The DS414 has the memory fixed to the motherboard unlike the DS415+

https://www.youtube.com/watch?v=UhsSmOLQA_g&t=135s

https://www.youtube.com/watch?v=eHCf51AytLM&t=51s


https://pasteboard.co/J46QYo5.png

https://pasteboard.co/J46RiiY.png

Once consoled i was off to a good start although I had a major pain getting tftp to work in the stock Marvel uboot.

Using a dutch post

https://gathering.tweakers.net/forum/list_message/61991482#61991482

I managed to get the DS booted but typing “save” set me back a few days as it didnt save the image correctly and meant even uboot was not loading back to its prompt. So a new search began, how to recover u-boot, hopefully without soldering or using a SOIC clip like the tweakers post suggested.

**NOTE** a SOIC clip is a clip that can attach to a rom chip for reading or writing without soldering. So for example if you couldnt console you could go direct to the chip. I think the problem for me would have been finding which chip to clip so im glad i didnt need to go down this route.

https://pasteboard.co/J46RHwE.png

Now its funny the order i found these in but the next post i came across when searching how to recover u-boot was back on the synology forum. A post by Greg Langford, most of which by this point i had done but i reached out to Greg via his website as the forum post was too old to post.

https://community.synology.com/enu/forum/17/post/59925

Clicking a link in Greg’s post led me to the doozan forum which was the most help of all.

https://forum.doozan.com/read.php?3,99414,page=2

Here I managed (with a lot of help) to load a custom uboot image using a tool called kwboot and load a custom built debian OS to reflash uboot and the zImage partitions.

I'm kinda glad it worked out that way as i learned a lot about how the Synology boots and different ways that devices running uboot can be hacked.

Using this custom debian build i restored the /dev/mtd1 partition and u-boot was back to a prompt. With a few final pointers from Greg on restoring the firmware once booted i finally had a working Synology again!

----------------------------------------------------------------------

The solution

----------------------------------------------------------------------


Step 1. Console the Synology

-- Label the disks so they go back in the correct order and remove them.
-- Remove network cable and any external USB.
-- Now console and find out why it’s not booting.
-- Does it stop before loading the image or after?
-- Do you get a Marvel prompt?


Console using a UART Cable

To console the Synology dont do what i did and open the case, just turn the case on its side and find the back 3 pins closest to the board.


https://pasteboard.co/J46Sqtv.png

The pins you’re looking for are 2,4,6 but you wont see this without the case open so tape the UART together going BLACK / WHITE / GREEN (red is not needed)

Green goes closest to the power button.

Using your favourite terminal program, set the port to the correct COM port (find the COM port for the usb serial in Device Manager) and set the baud rate to 115200. Leave everything else default. Now a tip is to turn on terminal logging so you record ALL your outputs each time you load the console. I use SecureCrt and set my scroll back buffer to 128000 and the log file to append


https://pasteboard.co/J46SBuO.png

Turn on the power while this is connected and see if you get to the Marvel prompt.

If you do then that is a good sign!

Step 2. Prepare the USB

Now you can use TFTP but to save you the issue i had i highly recommend using a usb stick.

Find a usb stick, an old one 8Gb or under is perfect. Format in windows using a tool called rufus to make sure you get the partition exact.

Format it to be non bootable, MBR (important), labelled rootfs, fat32 and quick format.

**NOTE** I used ext2 as i was preparing a custom image from a raspberry pi running raspbian and the custom uboot i was using prefered ext2.

https://pasteboard.co/J46SSda.png

Download the latest DS for your synology in pat file format and use 7zip to unpack.

https://www.synology.com/en-uk/support/download/DS414#firmware

https://pasteboard.co/J46T7tv.png

The folder you extract should look like this:

https://pasteboard.co/J46ThZFz.png

The uboot file is important if you cannot boot into a Marvel prompt (i’ll cover that later) but if you are at the prompt you just need zImage and rd.bin.

Copy these to the usb and eject.

Step 3. Boot from usb (do not save)

I made the mistake here of changing envs trying to get it to boot. The best thing here is to load the image from the usb into RAM and boot.

Here are the commands you need (Plug the drives back in first):


*** Warning - bad CRC, using default environment

Wrong Image Format for bootm command
ERROR: can't get kernel image!

So i loaded the kernel back on by downloading the latest 414 firmware from Synology, unpacking the pat file and using a USB formatted with rufus to fat16 to copy zImage and rd.bin

Marvell>> usb start

(Re)start USB...
USB:   Active port:     0
Register 10011 NbrPorts 1
USB EHCI 1.00
scanning bus for devices... 2 USB Device(s) found
       scanning bus for storage devices... 1 Storage Device(s) found



Marvell>> fatload usb 0:1 2000000 zImage
reading zImage


2123952 bytes read

Marvell>> fatload usb 0:1 8000000 rd.bin
reading rd.bin

3698039 bytes read


Marvell>> bootm 0x2000000 0x8000000

Step 4. Upgrade the firmware.

Hopefully this will boot back into the syno software and you can login and perform an upgrade using the pat file you downloaded.

https://pasteboard.co/J46TG83.png

View the console output here from the upgrade. It was very satisfying to watch it boot again by itself for the first time in weeks!!!

https://pastebin.com/wYBkJt8A



----------------------------------------------------------------------

What if u-boot doesn't give a Marvel prompt

----------------------------------------------------------------------

Now this was the fun part! I managed to type save as i said above which set me back a few steps as i had to find someone to help me boot a custom uboot and restore the image from debian. The fun part was seeing how this could easily be used to hack a DS into any OS from debian or even Freenas (hopefully a future guide coming soon)


Step 1. Download kwboot in Linux

Now I did all this using my raspberry pi model b. It's one of the original pis that normally sits on shelf as isn't powerful enough to run much these days but is perfect for a project like this!

The reasons i found it perfect were easy access to the usb ports as my other linux machines are all VMs plus i could start with a clean raspbian build.

I recommend the stretch version of raspian as buster seems to have a buggy version of kwboot in the main repo.

http://downloads.raspberrypi.org/raspbian_lite/images/raspbian_lite-2019-04-09/2019-04-08-raspbian-stretch-lite.zip

Download the zip and use rufus to load the image to the SD card ready to boot the rpi.


Boot the rpi with the new SD card and SSH from SecureCrt. Make sure its connected to the network and do an apt-get update


https://pasteboard.co/J46UO3W.png


sudo apt-get update
sudo apt-get upgrade
sudo apt install u-boot-tools minicom -y

Plug in the UART console and check which tty it has loaded as and start minicom


cat /var/log/messages | grep ttyUSB
sudo minicom --device /dev/ttyUSB0

Plug in the console to the synology and power it on. At this point my boot was hanging at

MMC:   MRVL_MMC: 0
SF: Detected M25P64 with page size 64 KiB, total 8 MiB
PEX 0.0(0): Root Complex Interface, Detected Link X4, GEN 1.1
PEX 1.0(1): Root Complex Interface, Detected Link X1, GEN 2.0
PEX 1.1(2): Detected No Link.
PEX 1.2(3): Detected No Link.
FPU initialized to Run Fast Mode.
USB 0: Host Mode
USB 1: Host Mode
USB 2: Device Mode
Modules Detected:

---HANGS---


Step 2. Download the custom kwb and run kwboot


Download the kwb file for the DS414 ready to use with kwboot and winscp it across to the rpi. This is a custom u-boot that can run from UART.

kwb

Rename the file to correct the typo on the ds number and run kboot

mv u-boot-spl-2019.10-tld-1.ds114.kwb u-boot-spl-2019.10-tld-1.ds414.kwb
kwboot -t -B 115200 /dev/ttyUSB0 -b u-boot-spl-2019.10-tld-1.ds414.kwb -a

Sending boot message. Please reboot the target...-


Now power on the Synology and it should boot into a custom u-boot with a => prompt

https://pastebin.com/qZnHr1Sv



Step 3. Prepare the custom debian os usb stick

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

Format the usb as ext2 this time as this custom u-boot doesnt have ext3 or 4 loaded and seemed a little unstable using fat. Make sure its MBR not GPT and the label is rootfs

https://pasteboard.co/J46Wbyk.png

Download kernel and winscp it over to the rpi or wget direct into the home dir

https://bitly.com/37ygLsI

The run the following (assuming your usb is /dev/sda)



sudo su -
mount -t ext2 /dev/sda1 /media/usb/
cd /media/usb
tar -xvjf /home/pi/Debian-5.2.9-mvebu-tld-1-rootfs-bodhi.tar.bz2
cd boot
cp -a zImage-5.2.9-mvebu-tld-1 zImage.fdt 
cat dts/armada-xp-synology-ds414.dtb >> zImage.fdt
mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-5.2.9-mvebu-tld-1 -d zImage.fdt uImage
sed -i 's/ext3/ext2/' /media/usb/etc/fstab
cp -v /home/pi/uboot_DS414r1.bin /media/usb/root/
cp -v /home/pi/zImage /media/usb/root/
cd;sync;umount /media/usb


**NOTE** The lines below are from the pat file from the synology website. I used these to reflash mtd0 and mtd1 which got my Synology booting back to the Marvel prompt.


cp -v /home/pi/uboot_DS414r1.bin /media/usb/root/
cp -v /home/pi/zImage /media/usb/root/


Step 4. Boot into Debian from usb

Move the usb stick into the FRONT usb next to the power button. Use the kwboot command again to boot to the => prompt and run the following:


kwboot -t -B 115200 /dev/ttyUSB0 -b u-boot-spl-2019.10-tld-1.ds414.kwb -a

setenv bootargs 'console=ttyS0,115200 root=/dev/sda1 rootdelay=3 mtdparts=spi0.0:0x000d0000(u-boot),0x002d0000(zimage),0x00430000(rd),0x00010000(vendor),0x00010000(u-boot-envs),0x00010000(fis) earlyprintk=serial'

ext2load usb 0:1 2000000 boot/uImage

bootm 0x2000000


If this boots correctly the output should be similar to this.

https://pastebin.com/CHNGv0Sa

Step 5. Login to Debian and backup the mtd partitions

Login with root / root

Check the mtd parts have the u-boot labels NOT the RedBoot labels.

root@debian:~# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 000d0000 00001000 "u-boot"
mtd1: 002d0000 00001000 "zimage"
mtd2: 00430000 00001000 "rd"
mtd3: 00010000 00001000 "vendor"
mtd4: 00010000 00001000 "u-boot-envs"
mtd5: 00010000 00001000 "fis"


Backup each of these parts to usb. The counts are hex to decimal conversions of the above.


root@debian:~# dd if=/dev/mtd3 of=mtd3 bs=1 count=65536
root@debian:~# dd if=/dev/mtd4 of=mtd4 bs=1 count=65536
root@debian:~# dd if=/dev/mtd5 of=mtd5 bs=1 count=65536
root@debian:~# dd if=/dev/mtd0 of=mtd0 bs=1 count=851968
root@debian:~# dd if=/dev/mtd1 of=mtd1 bs=1 count=2949120
root@debian:~# dd if=/dev/mtd2 of=mtd2 bs=1 count=4390912


Step 6. Restore the stock u-boot and zImage

Now i got an error here verifying the data but this got me back to a working Marvel prompt where i was able to boot zImage and rd.bin from usb like the first part of this guide.

If this works for you without error then it’s possible that you won’t need any further steps and a reboot will boot you back into the stock syno OS.


root@debian:~# flash_unlock /dev/mtd0
root@debian:~# flashcp -v uboot_DS414r1.bin /dev/mtd0
Erasing blocks: 203/203 (100%)
Writing data: 808k/808k (100%)
Verifying data: 808k/808k (100%)
root@debian:~#


root@debian:~# flash_unlock /dev/mtd1
root@debian:~# flashcp -v zImage /dev/mtd1
Erasing blocks: 519/519 (100%)
Writing data: 2074k/2074k (100%)
Verifying data: 2050k/2074k (98%)File does not seem to match flash data. First mismatch at 0x001fe000-0x00200800


Good luck.

Goflex net usb boot not working when hdd attached (no replies)

$
0
0
First off I want to thank you bodhi for providing us with this great project of yours. I am still in love with my goflex net, now running debian buster and uboot 2017 thanks to your excellent work.

I just have a minor issue with my setup. The box runs from an USB drive, but when I power it up with an hdd attached it doesn't work. The kernel is missing the right init params. Maybe there is aproblem with the device enumeration. The thumb drive uses one ext3 partition labels rootfs and the hdd is labeled data using ext4 as far as I remember.
The uboot is version 2017 with your environment defaults plus some minor changes.

Fw_printenv:
arcNumber=3089
bootcmd_exec=run load_uimage; if run load_initrd; then if run load_dtb; then bootm $load_uimage_addr $load_initrd_addr $load_dtb_addr; else bootm $load_uimage_addr $load_initrd_addr; fi; else if run load_dtb; then bootm $load_uimage_addr - $load_dtb_addr; else bootm $load_uimage_addr; fi; fi
bootcmd=run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec
bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi; sleep 3
bootdelay=10
bootdev=usb
device=0:1
devices=usb ide mmc
disks=0 1 2 3
dtb_file=/boot/dts/kirkwood-goflexnet.dtb
ethact=egiga0
ethaddr=00:10:75:26:6D:3A
if_netconsole=ping $serverip
ipaddr=192.168.1.111
led_error=orange blinking
led_exit=green off
led_init=green blinking
load_dtb_addr=0x1c00000
load_dtb=echo loading DTB $dtb_file ...; load $bootdev $device $load_dtb_addr $dtb_file
load_initrd_addr=0x1100000
load_initrd=echo loading uInitrd ...; load $bootdev $device $load_initrd_addr /boot/uInitrd
load_uimage_addr=0x800000
load_uimage=echo loading uImage ...; load $bootdev $device $load_uimage_addr /boot/uImage
mainlineLinux=yes
mtdids=nand0=orion_nand
mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)
partition=nand0,2
preboot_nc=setenv nc_ready 0; for pingstat in 1 2 3 4 5; do; sleep 1; if run if_netconsole; then setenv nc_ready 1; fi; done; if test $nc_ready -eq 1; then run start_netconsole; fi
preboot=run preboot_nc
scan_disk=echo running scan_disk ...; scan_done=0; setenv scan_usb "usb start";  setenv scan_ide "ide reset";  setenv scan_mmc "mmc rescan"; for dev in $devices; do if test $scan_done -eq 0; then echo Scan device $dev; run scan_$dev; for disknum in $disks; do if test $scan_done -eq 0; then echo device $dev $disknum:1; if load $dev $disknum:1 $load_uimage_addr /boot/uImage 1; then scan_done=1; echo Found bootable drive on $dev $disknum; setenv device $disknum:1; setenv bootdev $dev; fi; fi; done; fi; done
serverip=192.168.1.101
set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts $custom_params
start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version;
stderr=serial
stdin=serial
stdout=serial
uenv_addr=0x810000
uenv_import=echo importing envs ...; env import -t $uenv_addr $filesize
uenv_init_devices=echo Initializing devices...; setenv init_usb "usb start";  setenv init_ide "ide reset";  setenv init_mmc "mmc rescan"; for devtype in $devices; do run init_$devtype; done
uenv_load=run uenv_init_devices; setenv uenv_loaded 0; for devtype in $devices; do for disknum in $disks; do if test $uenv_loaded -eq 0; then setenv device_type $devtype; setenv disk_number $disknum; run uenv_read; fi; done; done;
uenv_read=echo Loading envs from $device_type $disk_number...; if load $device_type  $disk_number:1 $uenv_addr /boot/uEnv.txt; then setenv uenv_loaded 1; echo ... envs loaded; fi
usb_ready_retry=15
usb_root=LABEL=rootfs

Without hdd attached:
U-Boot 2017.07-tld-1 (Sep 05 2017 - 00:17:19 -0700)
Seagate GoFlex Net

SoC:   Kirkwood 88F6281_A1
DRAM:  128 MiB
WARNING: Caches not enabled
NAND:  256 MiB
In:    serial
Out:   serial
Err:   serial
Net:   egiga0
88E1116 Initialized on egiga0
Using egiga0 device
host 192.168.1.101 is alive
Using egiga0 device
host 192.168.1.101 is alive
Using egiga0 device
host 192.168.1.101 is alive
Using egiga0 device
host 192.168.1.101 is alive
Using egiga0 device
host 192.168.1.101 is alive
Uncompressing Linux... done, booting the kernel.
[    0.000000][    T0] Booting Linux on physical CPU 0x0
[    0.000000][    T0] Linux version 5.2.9-kirkwood-tld-1 (root@tldDebian) (gcc version 6.3.0 20170516 (Debian 6.3.0-18+deb9u1)) #1 PREEMPT Sat Aug 17 15:00:56 PDT 2019
[    0.000000][    T0] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[    0.000000][    T0] CPU: VIVT data cache, VIVT instruction cache
[    0.000000][    T0] OF: fdt: Machine model: Seagate GoFlex Net
[    0.000000][    T0] printk: bootconsole [earlycon0] enabled
[    0.000000][    T0] Memory policy: Data cache writeback
[    0.000000][    T0] Built 1 zonelists, mobility grouping on.  Total pages: 32512
[    0.000000][    T0] Kernel command line: console=ttyS0,115200n8 earlyprintk root=/dev/sda1 rootdelay=10
[    0.000000][    T0] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000][    T0] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000][    T0] Memory: 114320K/131072K available (9216K kernel code, 868K rwdata, 3400K rodata, 1024K init, 301K bss, 16752K reserved, 0K cma-reserved)
[    0.000000][    T0] random: get_random_u32 called from cache_alloc_refill+0x38c/0x928 with crng_init=0
[    0.000000][    T0] rcu: Preemptible hierarchical RCU implementation.
[    0.000000][    T0] 	Tasks RCU enabled.
[    0.000000][    T0] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000][    T0] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000][    T0] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302233 ns
[    0.000008][    T0] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[    0.008602][    T0] Switching to timer-based delay loop, resolution 5ns
[    0.015987][    T0] Console: colour dummy device 80x30
[    0.021236][    T0] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=2000000)
[    0.032560][    T0] pid_max: default: 32768 minimum: 301
[    0.038267][    T0] LSM: Security Framework initializing
[    0.043831][    T0] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.051238][    T0] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.059915][    T0] *** VALIDATE proc ***
[    0.064205][    T0] *** VALIDATE cgroup1 ***
[    0.068505][    T0] *** VALIDATE cgroup2 ***
[    0.072930][    T0] CPU: Testing write buffer coherency: ok
[    0.080325][    T1] Setting up static identity map for 0x100000 - 0x100058
[    0.087522][    T1] mvebu-soc-id: MVEBU SoC ID=0x6281, Rev=0x3
[    0.093740][    T1] rcu: Hierarchical SRCU implementation.
[    0.102614][    T1] devtmpfs: initialized
[    0.112296][    T1] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.122962][    T1] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.130118][    T1] xor: measuring software checksum speed
[    0.228627][    T1]    arm4regs  :  1083.600 MB/sec
[    0.328629][    T1]    8regs     :   650.400 MB/sec
[    0.428627][    T1]    32regs    :   945.600 MB/sec
[    0.433531][    T1] xor: using function: arm4regs (1083.600 MB/sec)
[    0.439867][    T1] prandom: seed boundary self test passed
[    0.449698][    T1] prandom: 100 self tests passed
[    0.454519][    T1] pinctrl core: initialized pinctrl subsystem
[    0.461939][    T1] NET: Registered protocol family 16
[    0.467670][    T1] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.476147][    T1] audit: initializing netlink subsys (disabled)
[    0.483561][   T14] audit: type=2000 audit(0.470:1): state=initialized audit_enabled=0 res=1
[    0.492194][    T1] cpuidle: using governor ladder
[    0.497089][    T1] cpuidle: using governor menu
[    0.502313][    T1] Feroceon L2: Enabling L2
[    0.506640][    T1] Feroceon L2: Cache support initialised.
[    0.517950][    T1] No ATAGs?
[    2.568609][    C0] random: fast init done
[    6.483239][   T71] alg: No test for lzo-rle (lzo-rle-generic)
[    6.489803][   T73] alg: No test for lzo-rle (lzo-rle-scomp)
[    6.668939][    T1] raid6: int32x8  gen()   127 MB/s
[    6.839035][    T1] raid6: int32x8  xor()    86 MB/s
[    7.008863][    T1] raid6: int32x4  gen()   129 MB/s
[    7.178888][    T1] raid6: int32x4  xor()    83 MB/s
[    7.348824][    T1] raid6: int32x2  gen()   132 MB/s
[    7.518920][    T1] raid6: int32x2  xor()    94 MB/s
[    7.689169][    T1] raid6: int32x1  gen()   100 MB/s
[    7.858888][    T1] raid6: int32x1  xor()    68 MB/s
[    7.863873][    T1] raid6: using algorithm int32x2 gen() 132 MB/s
[    7.870011][    T1] raid6: .... xor() 94 MB/s, rmw enabled
[    7.875523][    T1] raid6: using intx1 recovery algorithm
[    7.881221][    T1] vgaarb: loaded
[    7.885147][    T1] SCSI subsystem initialized
[    7.890148][    T1] usbcore: registered new interface driver usbfs
[    7.896416][    T1] usbcore: registered new interface driver hub
[    7.902573][    T1] usbcore: registered new device driver usb
[    7.908519][    T1] pps_core: LinuxPPS API ver. 1 registered
[    7.914228][    T1] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    7.924139][    T1] PTP clock support registered
[    7.930130][    T1] clocksource: Switched to clocksource orion_clocksource
[    8.974451][    T1] VFS: Disk quotas dquot_6.6.0
[    8.979178][    T1] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    8.996831][    T1] NET: Registered protocol family 2
[    9.002798][    T1] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes)
[    9.011289][    T1] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    9.018991][    T1] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    9.026133][    T1] TCP: Hash tables configured (established 1024 bind 1024)
[    9.033356][    T1] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    9.039929][    T1] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    9.047178][    T1] NET: Registered protocol family 1
[    9.052940][    T1] RPC: Registered named UNIX socket transport module.
[    9.059586][    T1] RPC: Registered udp transport module.
[    9.065095][    T1] RPC: Registered tcp transport module.
[    9.070543][    T1] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    9.077712][    T1] PCI: CLS 0 bytes, default 32
[    9.082775][    T1] NetWinder Floating Point Emulator V0.97 (double precision)
[    9.091211][    T1] Initialise system trusted keyrings
[    9.096410][    T1] Key type blacklist registered
[    9.101411][    T1] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[    9.108674][    T1] zbud: loaded
[    9.113085][    T1] NFS: Registering the id_resolver key type
[    9.118879][    T1] Key type id_resolver registered
[    9.123898][    T1] Key type id_legacy registered
[    9.128636][    T1] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    9.136093][    T1] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    9.143489][    T1] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    9.151538][    T1] fuse: init (API version 7.31)
[    9.156648][    T1] orangefs_debugfs_init: called with debug mask: :none: :0:
[    9.164029][    T1] orangefs_init: module version upstream loaded
[    9.170173][    T1] SGI XFS with ACLs, security attributes, realtime, scrub, no debug enabled
[    9.181921][    T1] async_tx: api initialized (async)
[    9.187008][    T1] Key type asymmetric registered
[    9.191887][    T1] Asymmetric key parser 'x509' registered
[    9.197535][    T1] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246)
[    9.207133][    T1] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    9.217309][    T1] mv_xor f1060800.xor: Marvell shared XOR driver
[    9.280967][    T1] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    9.291135][    T1] mv_xor f1060900.xor: Marvell shared XOR driver
[    9.350972][    T1] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    9.361304][    T1] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    9.369620][    T1] printk: console [ttyS0] disabled
[    9.374754][    T1] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 25, base_baud = 12500000) is a 16550A
[    9.384549][    T1] printk: console [ttyS0] enabled
[    9.384549][    T1] printk: console [ttyS0] enabled
[    9.394387][    T1] printk: bootconsole [earlycon0] disabled
[    9.394387][    T1] printk: bootconsole [earlycon0] disabled
[    9.413563][    T1] loop: module loaded
[    9.417994][    T1] sata_mv f1080000.sata: slots 32 ports 2
[    9.426468][    T1] scsi host0: sata_mv
[    9.430970][    T1] scsi host1: sata_mv
[    9.435141][    T1] ata1: SATA max UDMA/133 irq 32
[    9.439956][    T1] ata2: SATA max UDMA/133 irq 32
[    9.446027][    T1] nand: device found, Manufacturer ID: 0x2c, Chip ID: 0xda
[    9.453215][    T1] nand: Micron MT29F2G08AAD
[    9.457597][    T1] nand: 256 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    9.465934][    T1] Scanning device for bad blocks
[    9.531454][    T1] Bad eraseblock 569 at 0x000004720000
[    9.544627][    T1] Bad eraseblock 643 at 0x000005060000
[    9.556432][    T1] Bad eraseblock 704 at 0x000005800000
[    9.705004][    T1] 4 fixed-partitions partitions found on MTD device orion_nand
[    9.712480][    T1] Creating 4 MTD partitions on "orion_nand":
[    9.718378][    T1] 0x000000000000-0x000000100000 : "u-boot"
[    9.725441][    T1] 0x000000100000-0x000000500000 : "uImage"
[    9.732487][    T1] 0x000000500000-0x000002500000 : "pogoplug"
[    9.739748][    T1] 0x000002500000-0x00000fd00000 : "root"
[    9.748526][    T1] libphy: Fixed MDIO Bus: probed
[    9.754225][    T1] libphy: orion_mdio_bus: probed
[    9.760402][    T1] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    9.768446][    T1] mv643xx_eth_port mv643xx_eth_port.0: DMA mask not set
[    9.775349][  T112] ata1: SATA link down (SStatus 0 SControl F300)
[   10.121719][  T114] ata2: SATA link down (SStatus 0 SControl F300)
[   10.500779][    T1] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 00:10:75:26:6d:3a
[   10.510389][    T1] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[   10.517688][    T1] ehci-pci: EHCI PCI platform driver
[   10.522938][    T1] ehci-orion: EHCI orion driver
[   10.527865][    T1] orion-ehci f1050000.ehci: EHCI Host Controller
[   10.534136][    T1] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[   10.542723][    T1] orion-ehci f1050000.ehci: irq 29, io mem 0xf1050000
[   10.570171][    T1] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[   10.577192][    T1] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.02
[   10.586223][    T1] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[   10.594200][    T1] usb usb1: Product: EHCI Host Controller
[   10.599804][    T1] usb usb1: Manufacturer: Linux 5.2.9-kirkwood-tld-1 ehci_hcd
[   10.607166][    T1] usb usb1: SerialNumber: f1050000.ehci
[   10.613208][    T1] hub 1-0:1.0: USB hub found
[   10.617718][    T1] hub 1-0:1.0: 1 port detected
[   10.623134][    T1] usbcore: registered new interface driver usb-storage
[   10.630304][    T1] mousedev: PS/2 mouse device common for all mice
[   10.990167][   T15] usb 1-1: new high-speed USB device number 2 using orion-ehci
[   11.195602][   T15] usb 1-1: New USB device found, idVendor=18a5, idProduct=0243, bcdDevice=11.00
[   11.204548][   T15] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[   11.212443][   T15] usb 1-1: Product: STORE N GO
[   11.217101][   T15] usb 1-1: Manufacturer: Verbatim
[   11.222022][   T15] usb 1-1: SerialNumber: AAPL9J8T502LGI6T
[   11.229039][   T15] usb-storage 1-1:1.0: USB Mass Storage device detected
[   11.236330][   T15] scsi host2: usb-storage 1-1:1.0
[   11.690166][    T1] rtc-mv f1010300.rtc: internal RTC not ticking
[   11.696458][    T1] i2c /dev entries driver
[   11.701334][    T1] device-mapper: uevent: version 1.0.3
[   11.706964][    T1] device-mapper: ioctl: 4.40.0-ioctl (2019-01-18) initialised: dm-devel@redhat.com
[   11.716599][    T1] device-mapper: multipath round-robin: version 1.2.0 loaded
[   11.723935][    T1] device-mapper: multipath queue-length: version 0.2.0 loaded
[   11.731330][    T1] device-mapper: multipath service-time: version 0.3.0 loaded
[   11.738745][    T1] device-mapper: dm-log-userspace: version 1.3.0 loaded
[   11.745594][    T1] device-mapper: raid: Loading target version 1.14.0
[   11.754386][    T1] hidraw: raw HID events driver (C) Jiri Kosina
[   11.760903][    T1] drop_monitor: Initializing network drop monitor service
[   11.768212][    T1] NET: Registered protocol family 17
[   11.773655][    T1] Key type dns_resolver registered
[   11.779471][    T1] registered taskstats version 1
[   11.784327][    T1] Loading compiled-in X.509 certificates
[   11.789913][    T1] zswap: loaded using pool lzo/zbud
[   11.810277][    T1] Key type big_key registered
[   11.818203][    T1] Key type encrypted registered
[   11.825025][    T1] hctosys: unable to open rtc device (rtc0)
[   11.831413][    T1] Waiting 10 sec before mounting root device...
[   12.394088][   T23] scsi 2:0:0:0: Direct-Access     Verbatim STORE N GO       1100 PQ: 0 ANSI: 6
[   12.404905][    T7] sd 2:0:0:0: [sda] 31285248 512-byte logical blocks: (16.0 GB/14.9 GiB)
[   12.414137][    T7] sd 2:0:0:0: [sda] Write Protect is off
[   12.420513][    T7] sd 2:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[   12.436520][    T7]  sda: sda1
[   12.443638][    T7] sd 2:0:0:0: [sda] Attached SCSI removable disk
[   22.250230][    T1] md: Waiting for all devices to be available before autodetect
[   22.257752][    T1] md: If you don't use raid, use raid=noautodetect
[   22.264962][    T1] md: Autodetecting RAID arrays.
[   22.269777][    T1] md: autorun ...
[   22.273349][    T1] md: ... autorun DONE.
[   22.278911][    T1] EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem
[   22.288579][    T1] EXT4-fs (sda1): INFO: recovery required on readonly filesystem
[   22.296290][    T1] EXT4-fs (sda1): write access will be enabled during recovery
[   22.415370][    T1] EXT4-fs (sda1): recovery complete
[   22.432142][    T1] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
[   22.440637][    T1] VFS: Mounted root (ext3 filesystem) readonly on device 8:1.
[   22.466837][    T1] devtmpfs: mounted
[   22.473597][    T1] Freeing unused kernel memory: 1024K
[   22.479431][    T1] Checked W+X mappings: passed, no W+X pages found
[   22.485861][    T1] Run /sbin/init as init process
INIT: version 2.93 booting
[info] Using makefile-style concurrent boot in runlevel S.
ERROR: could not open /proc/stat: No such file or directory
findfs: unable to resolve 'LABEL=rootfs'
[ ok ] Starting hotplug events dispatcher: systemd-udevd.
[ ok ] Synthesizing the initial hotplug events (subsystems)...done.
[ ok ] Synthesizing the initial hotplug events (devices)...[   25.083113][  T299] systemd-udevd[299]: Using default interface naming scheme 'v240'.
done.
[....] Waiting for /dev to be fully populated...[   25.278413][  T299] systemd-udevd[299]: link_config: autonegotiation is unset or enabled, the speed and duplex are not writable.
[   25.382296][  T318] watchdog: f1020300.watchdog-timer: driver supplied timeout (4294967295) out of range
[   25.483247][  T318] watchdog: f1020300.watchdog-timer: falling back to default timeout (21)
[   25.554411][  T295] usbcore: registered new interface driver uas
[   25.641955][  T318] orion_wdt: Initial timeout 21 sec
[   25.750086][  T300] sd 2:0:0:0: Attached scsi generic sg0 type 0
[   25.834189][  T319] marvell-cesa f1030000.crypto: CESA device successfully registered
[   25.913577][  T319] systemd-udevd[319]: link_config: autonegotiation is unset or enabled, the speed and duplex are not writable.
done.
[ ok ] Setting hostname to 'nas'...done.
[warn] Not activating swap on swapfile. ... (warning).
[   27.180943][    C0] random: crng init done
[   27.238868][  T523] EXT4-fs (sda1): re-mounted. Opts: (null)
[....] Will now check root file system:fsck from util-linux 2.33.1
[/sbin/fsck.ext3 (1) -- /] fsck.ext3 -y -C0 /dev/sda1 
e2fsck 1.44.5 (15-Dec-2018)
rootfs: clean, 41035/979200 files, 517130/3910400 blocks
. ok 
[   27.587404][  T549] EXT4-fs (sda1): re-mounted. Opts: errors=remount-ro
[info] Will now check all file systems.
fsck from util-linux 2.33.1
Checking all file systems.
LABEL=rootfs is mounted
[ ok ] Done checking file systems. A log is being saved in /var/log/fsck/checkfs if that location is writable..
[ ok ] Cleaning up temporary files....
[....] Will now mount local filesystems:mount: /mnt/hdd: can't find UUID=795705e2-65a5-4c47-afed-a8acdd58978f.
mount: /mnt/hdd1: can't find UUID=6c83b6c1-17b3-412d-b6e4-ac78a1984c64.
 failed!
[....] Will now activate swapfile swap:swapon: /swapfile: found signature [pagesize=4096, signature=swap]
swapon: /swapfile: pagesize=4096, swapsize=536870912, devsize=536870912
swapon /swapfile
[   30.200181][  T858] Adding 524284k swap on /swapfile.  Priority:-2 extents:18 across:2748864k FS
done.
[ ok ] Checking minimum space in /tmp...done.
[ ok ] Cleaning up temporary files....
[ ok ] Starting Setting kernel variables: sysctl.
[ ok ] Initializing random number generator...done.
[....] Configuring network interfaces...Internet Systems Consortium DHCP Client 4.4.1
Copyright 2004-2018 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/00:10:75:26:6d:3a
Sending on   LPF/eth0/00:10:75:26:6d:3a
Sending on   Socket/fallback
DHCPREQUEST for 192.168.1.111 on eth0 to 255.255.255.255 port 67
[   35.381689][    C0] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control disabled
DHCPREQUEST for 192.168.1.111 on eth0 to 255.255.255.255 port 67
DHCPACK of 192.168.1.111 from 192.168.1.1
bound to 192.168.1.111 -- renewal in 857 seconds.
[   39.639377][ T1085] NET: Registered protocol family 10
[   39.646542][ T1085] Segment Routing with IPv6
done.
[ ok ] Starting RPC port mapper daemon: rpcbind.
[ ok ] Starting NFS common utilities: statd idmapd.
[ ok ] Cleaning up temporary files....
INIT: Entering runlevel: 2
[info] Using makefile-style concurrent boot in runlevel 2.
[....] Starting busybox' syslogd implementation : syslogdStarting /sbin/syslogd...
1303 (syslogd)
. ok 
[....] Starting busybox' klogd implementation : klogdStarting /sbin/klogd...
1330 (klogd)
. ok 
[ ok ] Starting system message bus: dbus.
[ ok ] Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon.
[ ok ] Starting NFS common utilities: statd idmapd.
[ ok ] Exporting directories for NFS kernel daemon....
[....] Starting NFS kernel daemon: nfsd[   46.288813][ T1470] NFSD: Using UMH upcall client tracking operations.
[   46.295499][ T1470] NFSD: starting 90-second grace period (net f000001c)
[ ok td.
[FAIL] Starting nginx: nginx failed!
[ ok ] Starting NTP server: ntpd.
[....] Starting PHP 7.3 FastCGI Process Manager: php-fpm7.3mkdir: created directory '/run/php'
mode of '/run/php' retained as 0755 (rwxr-xr-x)
changed ownership of '/run/php' from root:root to www-data:www-data
. ok 
[....] Starting ftp server: proftpd1970-01-01 01:00:49,381 nas proftpd[1601]: processing configuration directory '/etc/proftpd/conf.d/'
. ok 
[ ok ] Starting OpenBSD Secure Shell server: sshd.
[ ok ] Running local boot scripts (/etc/rc.local).
[FAIL] startpar: service(s) returned failure: nginx ... failed!

Debian GNU/Linux 10 nas ttyS0

With hdd attached
U-Boot 2017.07-tld-1 (Sep 05 2017 - 00:17:19 -0700)
Seagate GoFlex Net

SoC:   Kirkwood 88F6281_A1
DRAM:  128 MiB
WARNING: Caches not enabled
NAND:  256 MiB
In:    serial
Out:   serial
Err:   serial
Net:   egiga0
88E1116 Initialized on egiga0
Using egiga0 device
host 192.168.1.101 is alive
Using egiga0 device
host 192.168.1.101 is alive
Using egiga0 device
host 192.168.1.101 is alive
Using egiga0 device
host 192.168.1.101 is alive
Using egiga0 device
host 192.168.1.101 is alive
Uncompressing Linux... done, booting the kernel.
[    0.000000][    T0] Booting Linux on physical CPU 0x0
[    0.000000][    T0] Linux version 5.2.9-kirkwood-tld-1 (root@tldDebian) (gcc version 6.3.0 20170516 (Debian 6.3.0-18+deb9u1)) #1 PREEMPT Sat Aug 17 15:00:56 PDT 2019
[    0.000000][    T0] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[    0.000000][    T0] CPU: VIVT data cache, VIVT instruction cache
[    0.000000][    T0] OF: fdt: Machine model: Seagate GoFlex Net
[    0.000000][    T0] printk: bootconsole [earlycon0] enabled
[    0.000000][    T0] Memory policy: Data cache writeback
[    0.000000][    T0] Built 1 zonelists, mobility grouping on.  Total pages: 32512
[    0.000000][    T0] Kernel command line: console=ttyS0,115200n8 earlyprintk root=/dev/sda1 rootdelay=10
[    0.000000][    T0] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000][    T0] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000][    T0] Memory: 114320K/131072K available (9216K kernel code, 868K rwdata, 3400K rodata, 1024K init, 301K bss, 16752K reserved, 0K cma-reserved)
[    0.000000][    T0] random: get_random_u32 called from cache_alloc_refill+0x38c/0x928 with crng_init=0
[    0.000000][    T0] rcu: Preemptible hierarchical RCU implementation.
[    0.000000][    T0] 	Tasks RCU enabled.
[    0.000000][    T0] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000][    T0] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000][    T0] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302233 ns
[    0.000008][    T0] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[    0.008602][    T0] Switching to timer-based delay loop, resolution 5ns
[    0.015987][    T0] Console: colour dummy device 80x30
[    0.021236][    T0] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=2000000)
[    0.032560][    T0] pid_max: default: 32768 minimum: 301
[    0.038267][    T0] LSM: Security Framework initializing
[    0.043831][    T0] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.051238][    T0] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.059916][    T0] *** VALIDATE proc ***
[    0.064205][    T0] *** VALIDATE cgroup1 ***
[    0.068505][    T0] *** VALIDATE cgroup2 ***
[    0.072930][    T0] CPU: Testing write buffer coherency: ok
[    0.080324][    T1] Setting up static identity map for 0x100000 - 0x100058
[    0.087522][    T1] mvebu-soc-id: MVEBU SoC ID=0x6281, Rev=0x3
[    0.093739][    T1] rcu: Hierarchical SRCU implementation.
[    0.102613][    T1] devtmpfs: initialized
[    0.112282][    T1] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.122953][    T1] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.130108][    T1] xor: measuring software checksum speed
[    0.228627][    T1]    arm4regs  :  1083.600 MB/sec
[    0.328627][    T1]    8regs     :   650.400 MB/sec
[    0.428626][    T1]    32regs    :   945.600 MB/sec
[    0.433540][    T1] xor: using function: arm4regs (1083.600 MB/sec)
[    0.439873][    T1] prandom: seed boundary self test passed
[    0.449698][    T1] prandom: 100 self tests passed
[    0.454519][    T1] pinctrl core: initialized pinctrl subsystem
[    0.461937][    T1] NET: Registered protocol family 16
[    0.467668][    T1] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.476147][    T1] audit: initializing netlink subsys (disabled)
[    0.483569][   T14] audit: type=2000 audit(0.470:1): state=initialized audit_enabled=0 res=1
[    0.492203][    T1] cpuidle: using governor ladder
[    0.497097][    T1] cpuidle: using governor menu
[    0.502321][    T1] Feroceon L2: Enabling L2
[    0.506649][    T1] Feroceon L2: Cache support initialised.
[    0.517958][    T1] No ATAGs?
[    2.568609][    C0] random: fast init done
[    6.483561][   T71] alg: No test for lzo-rle (lzo-rle-generic)
[    6.490121][   T73] alg: No test for lzo-rle (lzo-rle-scomp)
[    6.668943][    T1] raid6: int32x8  gen()   127 MB/s
[    6.839037][    T1] raid6: int32x8  xor()    86 MB/s
[    7.008985][    T1] raid6: int32x4  gen()   129 MB/s
[    7.178889][    T1] raid6: int32x4  xor()    83 MB/s
[    7.348787][    T1] raid6: int32x2  gen()   132 MB/s
[    7.518917][    T1] raid6: int32x2  xor()    94 MB/s
[    7.689170][    T1] raid6: int32x1  gen()   100 MB/s
[    7.858888][    T1] raid6: int32x1  xor()    68 MB/s
[    7.863873][    T1] raid6: using algorithm int32x2 gen() 132 MB/s
[    7.870011][    T1] raid6: .... xor() 94 MB/s, rmw enabled
[    7.875523][    T1] raid6: using intx1 recovery algorithm
[    7.881222][    T1] vgaarb: loaded
[    7.885154][    T1] SCSI subsystem initialized
[    7.890157][    T1] usbcore: registered new interface driver usbfs
[    7.896424][    T1] usbcore: registered new interface driver hub
[    7.902583][    T1] usbcore: registered new device driver usb
[    7.908527][    T1] pps_core: LinuxPPS API ver. 1 registered
[    7.914236][    T1] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    7.924147][    T1] PTP clock support registered
[    7.930142][    T1] clocksource: Switched to clocksource orion_clocksource
[    8.974528][    T1] VFS: Disk quotas dquot_6.6.0
[    8.979248][    T1] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    8.996888][    T1] NET: Registered protocol family 2
[    9.002845][    T1] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes)
[    9.011333][    T1] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    9.019035][    T1] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    9.026176][    T1] TCP: Hash tables configured (established 1024 bind 1024)
[    9.033399][    T1] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    9.039973][    T1] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    9.047222][    T1] NET: Registered protocol family 1
[    9.052985][    T1] RPC: Registered named UNIX socket transport module.
[    9.059629][    T1] RPC: Registered udp transport module.
[    9.065135][    T1] RPC: Registered tcp transport module.
[    9.070578][    T1] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    9.077747][    T1] PCI: CLS 0 bytes, default 32
[    9.082813][    T1] NetWinder Floating Point Emulator V0.97 (double precision)
[    9.091238][    T1] Initialise system trusted keyrings
[    9.096441][    T1] Key type blacklist registered
[    9.101445][    T1] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[    9.108702][    T1] zbud: loaded
[    9.113128][    T1] NFS: Registering the id_resolver key type
[    9.118921][    T1] Key type id_resolver registered
[    9.123932][    T1] Key type id_legacy registered
[    9.128671][    T1] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    9.136128][    T1] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    9.143524][    T1] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    9.151576][    T1] fuse: init (API version 7.31)
[    9.156683][    T1] orangefs_debugfs_init: called with debug mask: :none: :0:
[    9.164063][    T1] orangefs_init: module version upstream loaded
[    9.170209][    T1] SGI XFS with ACLs, security attributes, realtime, scrub, no debug enabled
[    9.181957][    T1] async_tx: api initialized (async)
[    9.187042][    T1] Key type asymmetric registered
[    9.191923][    T1] Asymmetric key parser 'x509' registered
[    9.197572][    T1] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246)
[    9.207169][    T1] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    9.217347][    T1] mv_xor f1060800.xor: Marvell shared XOR driver
[    9.280989][    T1] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    9.291133][    T1] mv_xor f1060900.xor: Marvell shared XOR driver
[    9.350977][    T1] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    9.361319][    T1] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    9.369638][    T1] printk: console [ttyS0] disabled
[    9.374772][    T1] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 25, base_baud = 12500000) is a 16550A
[    9.384565][    T1] printk: console [ttyS0] enabled
[    9.384565][    T1] printk: console [ttyS0] enabled
[    9.394406][    T1] printk: bootconsole [earlycon0] disabled
[    9.394406][    T1] printk: bootconsole [earlycon0] disabled
[    9.413597][    T1] loop: module loaded
[    9.418024][    T1] sata_mv f1080000.sata: slots 32 ports 2
[    9.426490][    T1] scsi host0: sata_mv
[    9.430998][    T1] scsi host1: sata_mv
[    9.435169][    T1] ata1: SATA max UDMA/133 irq 32
[    9.439982][    T1] ata2: SATA max UDMA/133 irq 32
[    9.446053][    T1] nand: device found, Manufacturer ID: 0x2c, Chip ID: 0xda
[    9.453240][    T1] nand: Micron MT29F2G08AAD
[    9.457623][    T1] nand: 256 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    9.465960][    T1] Scanning device for bad blocks
[    9.531492][    T1] Bad eraseblock 569 at 0x000004720000
[    9.544684][    T1] Bad eraseblock 643 at 0x000005060000
[    9.556464][    T1] Bad eraseblock 704 at 0x000005800000
[    9.705013][    T1] 4 fixed-partitions partitions found on MTD device orion_nand
[    9.712488][    T1] Creating 4 MTD partitions on "orion_nand":
[    9.718386][    T1] 0x000000000000-0x000000100000 : "u-boot"
[    9.725445][    T1] 0x000000100000-0x000000500000 : "uImage"
[    9.732489][    T1] 0x000000500000-0x000002500000 : "pogoplug"
[    9.739750][    T1] 0x000002500000-0x00000fd00000 : "root"
[    9.748538][    T1] libphy: Fixed MDIO Bus: probed
[    9.754237][    T1] libphy: orion_mdio_bus: probed
[    9.760390][    T1] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    9.768434][    T1] mv643xx_eth_port mv643xx_eth_port.0: DMA mask not set
[    9.775341][  T112] ata1: SATA link down (SStatus 0 SControl F300)
[   10.290296][  T114] ata2: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[   10.301857][  T114] ata2.00: ATA-8: WDC WD20NPVT-00Z2TT0, 01.01A01, max UDMA/133
[   10.309290][  T114] ata2.00: 3907029168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[   10.321509][  T114] ata2.00: configured for UDMA/133
[   10.337017][   T23] scsi 1:0:0:0: Direct-Access     ATA      WDC WD20NPVT-00Z 1A01 PQ: 0 ANSI: 5
[   10.346865][    T7] sd 1:0:0:0: [sda] 3907029168 512-byte logical blocks: (2.00 TB/1.82 TiB)
[   10.355738][    T7] sd 1:0:0:0: [sda] 4096-byte physical blocks
[   10.361830][    T7] sd 1:0:0:0: [sda] Write Protect is off
[   10.367474][    T7] sd 1:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[   10.447206][    T7]  sda: sda1
[   10.451857][    T7] sd 1:0:0:0: [sda] Attached SCSI disk
[   10.500804][    T1] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 00:10:75:26:6d:3a
[   10.510428][    T1] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[   10.517706][    T1] ehci-pci: EHCI PCI platform driver
[   10.522956][    T1] ehci-orion: EHCI orion driver
[   10.527897][    T1] orion-ehci f1050000.ehci: EHCI Host Controller
[   10.534164][    T1] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[   10.542763][    T1] orion-ehci f1050000.ehci: irq 29, io mem 0xf1050000
[   10.570181][    T1] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[   10.577204][    T1] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.02
[   10.586240][    T1] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[   10.594217][    T1] usb usb1: Product: EHCI Host Controller
[   10.599821][    T1] usb usb1: Manufacturer: Linux 5.2.9-kirkwood-tld-1 ehci_hcd
[   10.607183][    T1] usb usb1: SerialNumber: f1050000.ehci
[   10.613219][    T1] hub 1-0:1.0: USB hub found
[   10.617727][    T1] hub 1-0:1.0: 1 port detected
[   10.623137][    T1] usbcore: registered new interface driver usb-storage
[   10.630307][    T1] mousedev: PS/2 mouse device common for all mice
[   10.990179][   T15] usb 1-1: new high-speed USB device number 2 using orion-ehci
[   11.195890][   T15] usb 1-1: New USB device found, idVendor=18a5, idProduct=0243, bcdDevice=11.00
[   11.204836][   T15] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[   11.212730][   T15] usb 1-1: Product: STORE N GO
[   11.217380][   T15] usb 1-1: Manufacturer: Verbatim
[   11.222300][   T15] usb 1-1: SerialNumber: AAPL9J8T502LGI6T
[   11.229329][   T15] usb-storage 1-1:1.0: USB Mass Storage device detected
[   11.236627][   T15] scsi host2: usb-storage 1-1:1.0
[   11.690177][    T1] rtc-mv f1010300.rtc: internal RTC not ticking
[   11.696473][    T1] i2c /dev entries driver
[   11.701340][    T1] device-mapper: uevent: version 1.0.3
[   11.706962][    T1] device-mapper: ioctl: 4.40.0-ioctl (2019-01-18) initialised: dm-devel@redhat.com
[   11.716602][    T1] device-mapper: multipath round-robin: version 1.2.0 loaded
[   11.723934][    T1] device-mapper: multipath queue-length: version 0.2.0 loaded
[   11.731329][    T1] device-mapper: multipath service-time: version 0.3.0 loaded
[   11.738747][    T1] device-mapper: dm-log-userspace: version 1.3.0 loaded
[   11.745596][    T1] device-mapper: raid: Loading target version 1.14.0
[   11.754394][    T1] hidraw: raw HID events driver (C) Jiri Kosina
[   11.760892][    T1] drop_monitor: Initializing network drop monitor service
[   11.768208][    T1] NET: Registered protocol family 17
[   11.773659][    T1] Key type dns_resolver registered
[   11.779488][    T1] registered taskstats version 1
[   11.784336][    T1] Loading compiled-in X.509 certificates
[   11.789922][    T1] zswap: loaded using pool lzo/zbud
[   11.810116][    T1] Key type big_key registered
[   11.818147][    T1] Key type encrypted registered
[   11.824982][    T1] hctosys: unable to open rtc device (rtc0)
[   11.831373][    T1] Waiting 10 sec before mounting root device...
[   12.394748][    T7] scsi 2:0:0:0: Direct-Access     Verbatim STORE N GO       1100 PQ: 0 ANSI: 6
[   12.405566][   T23] sd 2:0:0:0: [sdb] 31285248 512-byte logical blocks: (16.0 GB/14.9 GiB)
[   12.414798][   T23] sd 2:0:0:0: [sdb] Write Protect is off
[   12.421173][   T23] sd 2:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[   12.437556][   T23]  sdb: sdb1
[   12.444801][   T23] sd 2:0:0:0: [sdb] Attached SCSI removable disk
[   22.250233][    T1] md: Waiting for all devices to be available before autodetect
[   22.257752][    T1] md: If you don't use raid, use raid=noautodetect
[   22.265004][    T1] md: Autodetecting RAID arrays.
[   22.269820][    T1] md: autorun ...
[   22.273394][    T1] md: ... autorun DONE.
[   22.488377][    T1] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
[   22.496897][    T1] VFS: Mounted root (ext4 filesystem) readonly on device 8:1.
[   22.528772][    T1] devtmpfs: error mounting -2
[   22.536290][    T1] Freeing unused kernel memory: 1024K
[   22.542138][    T1] Checked W+X mappings: passed, no W+X pages found
[   22.548521][    T1] Run /sbin/init as init process
[   22.574841][    T1] Run /etc/init as init process
[   22.579789][    T1] Run /bin/init as init process
[   22.584813][    T1] Run /bin/sh as init process
[   22.589382][    T1] Kernel panic - not syncing: No working init found.  Try passing init= option to kernel. See Linux Documentation/admin-guide/init.rst for guidance.
[   22.604316][    T1] CPU: 0 PID: 1 Comm: swapper Not tainted 5.2.9-kirkwood-tld-1 #1
[   22.612001][    T1] Hardware name: Marvell Kirkwood (Flattened Device Tree)
[   22.619023][    T1] [<c010f6ac>] (unwind_backtrace) from [<c010bb00>] (show_stack+0x10/0x14)
[   22.627513][    T1] [<c010bb00>] (show_stack) from [<c0119fa0>] (panic+0xe0/0x30c)
[   22.635133][    T1] [<c0119fa0>] (panic) from [<c09dcfb0>] (kernel_init+0xd8/0x10c)
[   22.642827][    T1] [<c09dcfb0>] (kernel_init) from [<c01010e0>] (ret_from_fork+0x14/0x34)
[   22.651129][    T1] Exception stack(0xc7881fb0 to 0xc7881ff8)
[   22.656904][    T1] 1fa0:                                     00000000 00000000 00000000 00000000
[   22.665818][    T1] 1fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[   22.674727][    T1] 1fe0: 00000000 00000000 00000000 00000000 00000013 00000000
[   22.682081][    T1] ---[ end Kernel panic - not syncing: No working init found.  Try passing init= option to kernel. See Linux Documentation/admin-guide/init.rst for guidance. ]---

I'm out of ideas at the moment.

Zyxel NSA 325 v2 - Debian install (1 reply)

$
0
0
Hello,

I became the proud owner of the device mentioned in the subject, because my father attempted to dump it in the trash and I thought it might still be usefull for something. After some searching I got here on this forum and here I am, asking newby questions and hope that somebody might answer.

So I would like to install Debian on this box. I read trough these two threads:
https://forum.doozan.com/read.php?3,12381
https://forum.doozan.com/read.php?2,12096

If I get it correctly I have to go trough the steps described in these two topic. I started checking steps in the Uboot document and tried the dmesg command which resulted in this:

~ # dmesg | grep -i 'bad'
Scanning device for bad blocks
Bad eraseblock 100 at 0x000000c80000
Bad eraseblock 200 at 0x000001900000
~ # dmesg
reported, assuming 512.
NAND device: Manufacturer ID: 0x92, Chip ID: 0xf1 (Unknown NAND 128MiB 3,3V 8-bit)
Scanning device for bad blocks
Bad eraseblock 100 at 0x000000c80000
Bad eraseblock 200 at 0x000001900000
9 cmdlinepart partitions found on MTD device nand_mtd
Using command line partition definition
Creating 9 MTD partitions on "nand_mtd":
0x000000000000-0x000000100000 : "uboot"
0x000000100000-0x000000180000 : "uboot_env"
0x000000180000-0x000000200000 : "key_store"
 sda:
0x000000200000-0x000000280000 : "info"
0x000000280000-0x000000c80000 : "etc"
0x000000c80000-0x000001680000 : "kernel_1"
0x000001680000-0x000004640000 : "rootfs1"

Here I stopped as I seen bad blocks, but then I realised that my bad blocks are in the "kernel_1" and "rootfs" part?
This is what I am not sure of and seek some guidance on. Please if you have anything to add as a useful information regarding this install, then feel free.

Updating U-Boot on Dockstar (2 replies)

$
0
0
Hey there.
As per my signature, I have an old Dockstar from 2009 which is running U-Boot 2014.04.R4-1.
I have read the U-Boot updates sticky post but it seems kind of confusing.
I would like to know if there is any simple way to update it's U-Boot or maybe someone could break it down a little for me.
Thanks in advance.
Cheers

Pogoplug Mobile with bodhi's U-Boot and OpenWRT? (9 replies)

$
0
0
Hello,

I have a Pogoplug Mobile device (POGO-V4-A1-01) with SSH and telnet access enabled.

I would like to get rid of the original Pogoplug OS completely, and reflash the on-board memory with OpenWRT. However, I'd also like to have netconsole, and the ability to boot off a root filesystem on a USB drive. It is unclear that the U-Boot builds that OpenWRT provides have these capabilities, and in any event not only is their installation process not as well-documented as the ones here, their process assumes serial console access, which I do not have (not least since this would require soldering).

Would it be feasible to use bodhi's U-Boot together with an on-board OpenWRT image?

Can a Pogoplug V4-A3 (red lable) boot from USB? (2 replies)

$
0
0
Hi bodhi and all,

Just found another plug in a box and this time it is a V4-A3 that has USB 3.0 which is nice. Thinking about using this a a NFS server to host among other things rootfs for other plugs to boot from.

After update to the newest uboot (2017), from netconsole it seems that the a USB drive connected to a USB 3.0 port is not detected. Uboot thinks there is one USB device (controller?) but could not detect the any storage devices.

Are there any environment variables that need to be set in uboot to boot from a USB drive on this device?

Also while Arch linux can boot from MMC (SD card) Debian did not (see the Starting kernel ... message but booting does not seem to complete, no show up on LAN).

Thanks in advance.
--nnSlick

trying to upgrade PogoPlug E02 (4 replies)

$
0
0
I was following the UBoot instructions from an older pogoplug I had set up here back in 2014-15, I think the pendrive eventually went bad. I was still able to boot into the stock pogo OS and was following these instructions . I noticed I didn't have an /boot folder towards the end, setup netconsole and rebooted. Below is the output from booting.
Where did I go wrong?

U-Boot 2017.07-tld-1 (Sep 05 2017 - 00:13:18 -0700)
Pogo E02
gcc (Debian 6.3.0-18) 6.3.0 20170516
GNU ld (GNU Binutils for Debian) 2.28
Hit any key to stop autoboot:  0 
Initializing devices...
starting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 3 USB Device(s) found
       scanning usb for storage devices... 
Use USB retry period from the environment: 15 second(s)
1 Storage Device(s) found
Unknown command 'ide' - try 'help'
Unknown command 'mmc' - try 'help'
Loading envs from usb 0...
** File not found /boot/uEnv.txt **
Loading envs from usb 1...
** Bad device usb 1 **
Loading envs from usb 2...
** Bad device usb 2 **
Loading envs from usb 3...
** Bad device usb 3 **
Loading envs from ide 0...
** Bad device ide 0 **
Loading envs from ide 1...
** Bad device ide 1 **
Loading envs from ide 2...
** Bad device ide 2 **
Loading envs from ide 3...
** Bad device ide 3 **
Loading envs from mmc 0...
** Bad device mmc 0 **
Loading envs from mmc 1...
** Bad device mmc 1 **
Loading envs from mmc 2...
** Bad device mmc 2 **
Loading envs from mmc 3...
** Bad device mmc 3 **
running scan_disk ...
Scan device usb
device usb 0:1
1 bytes read in 569 ms (0 Bytes/s)
Found bootable drive on usb 0
loading uImage ...
1612096 bytes read in 985 ms (1.6 MiB/s)
loading uInitrd ...
7096647 bytes read in 1974 ms (3.4 MiB/s)
loading DTB /boot/dts/kirkwood-pogo_e02.dtb ...
** File not found /boot/dts/kirkwood-pogo_e02.dtb **
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   kernel 3.2.0-4-kirkwood
   Created:      2014-11-07  19:11:20 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    1612032 Bytes = 1.5 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 01100000 ...
   Image Name:   ramdisk 3.2.0-4-kirkwood
   Created:      2014-11-07  19:11:22 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    7096583 Bytes = 6.8 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... Bad Data CRC
Ramdisk image is corrupt or invalid
PogoE02> 

NSA325 - help switching from OpenWrt to Debian (1 reply)

$
0
0
Hi I am OpenWRT, working fine, I want to boot from Debian instead. What should I do. Can anyone help?
Here is my console log USB serial:

U-Boot 2017.07-tld-1 (Sep 05 2017 - 00:42:03 -0700)
ZyXEL NSA325 2-Bay Power Media Server

SoC:   Kirkwood 88F6282_A1
DRAM:  512 MiB
WARNING: Caches not enabled
NAND:  128 MiB
In:    serial
Out:   serial
Err:   serial
Net:   egiga0
MV88E1318 PHY initialized on egiga0
Hit any key to stop autoboot:  0
## Error: "setenv" not defined
ubi0: attaching mtd1
ubi0: scanning is finished
ubi0: attached mtd1 (name "mtd=2", size 126 MiB)
ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 129024 bytes
ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 512
ubi0: VID header offset: 512 (aligned 512), data offset: 2048
ubi0: good PEBs: 1012, bad PEBs: 2, corrupted PEBs: 0
ubi0: user volume: 3, internal volumes: 1, max. volumes count: 128
ubi0: max/mean erase counter: 2/0, WL threshold: 4096, image sequence number: 1062167026
ubi0: available PEBs: 0, total reserved PEBs: 1012, PEBs reserved for bad PEB handling: 18
Read 0 bytes from volume kernel to 800000
No size specified -> Using max size (2193408)
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   ARM OpenWrt Linux-4.14.167
   Created:      2020-01-29  16:05:35 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2081576 Bytes = 2 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.14.167 (builder@buildhost) (gcc version 7.5.0 (OpenWrt GCC 7.5.0 r10911-c155900f66)) #0 Wed Jan 29 16:05:35 2020
[    0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] OF: fdt: Machine model: ZyXEL NSA325
[    0.000000] Memory policy: Data cache writeback
[    0.000000] random: get_random_bytes called from 0xc0700980 with crng_init=0
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 130048
[    0.000000] Kernel command line: console=ttyS0,115200
[    0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Memory: 512108K/524288K available (4804K kernel code, 162K rwdata, 728K rodata, 1024K init, 208K bss, 12180K 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 : 0xe0800000 - 0xff800000   ( 496 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 0xc05b1030   (5797 kB)
[    0.000000]       .init : 0xc0700000 - 0xc0800000   (1024 kB)
[    0.000000]       .data : 0xc0800000 - 0xc0828ba0   ( 163 kB)
[    0.000000]        .bss : 0xc0828ba0 - 0xc085cf84   ( 209 kB)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302233 ns
[    0.000007] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[    0.000033] Switching to timer-based delay loop, resolution 5ns
[    0.000099] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=2000000)
[    0.000119] pid_max: default: 32768 minimum: 301
[    0.000232] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000248] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000703] CPU: Testing write buffer coherency: ok
[    0.001337] Setting up static identity map for 0x100000 - 0x10003c
[    0.001556] mvebu-soc-id: MVEBU SoC ID=0x6282, Rev=0x1
[    0.004639] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.004659] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.004732] pinctrl core: initialized pinctrl subsystem
[    0.005618] NET: Registered protocol family 16
[    0.005888] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.006687] cpuidle: using governor ladder
[    0.006977] Feroceon L2: Enabling L2
[    0.007009] Feroceon L2: Cache support initialised.
[    0.007216] [Firmware Info]: /ocp@f1000000/ethernet-controller@72000/ethernet0-port@0: local-mac-address is not set
[    0.009953] No ATAGs?
[    0.021947] SCSI subsystem initialized
[    0.022451] usbcore: registered new interface driver usbfs
[    0.022493] usbcore: registered new interface driver hub
[    0.022533] usbcore: registered new device driver usb
[    0.023913] clocksource: Switched to clocksource orion_clocksource
[    0.024512] NET: Registered protocol family 2
[    0.024954] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[    0.025008] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[    0.025058] TCP: Hash tables configured (established 4096 bind 4096)
[    0.025115] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.025134] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.025235] NET: Registered protocol family 1
[    0.026079] Crashlog allocated RAM at address 0x3f00000
[    0.027254] workingset: timestamp_bits=30 max_order=17 bucket_order=0
[    0.030498] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.030509] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.036053] io scheduler noop registered
[    0.036064] io scheduler deadline registered (default)
[    0.036950] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    0.038032] mvebu-pcie mbus@f1000000:pcie@82000000: PCI host bridge to bus 0000:00
[    0.038047] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    0.038055] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xefffffff]
[    0.038064] pci_bus 0000:00: root bus resource [bus 00-ff]
[    0.038236] PCI: bus0: Fast back to back transfers disabled
[    0.038247] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.038592] PCI: bus1: Fast back to back transfers disabled
[    0.038630] pci 0000:00:01.0: BAR 8: assigned [mem 0xe0000000-0xe00fffff]
[    0.038643] pci 0000:01:00.0: BAR 0: assigned [mem 0xe0000000-0xe0001fff 64bit]
[    0.038661] pci 0000:00:01.0: PCI bridge to [bus 01]
[    0.038672] pci 0000:00:01.0:   bridge window [mem 0xe0000000-0xe00fffff]
[    0.038709] pci 0000:00:01.0: enabling device (0140 -> 0142)
[    0.038726] pci 0000:01:00.0: enabling device (0140 -> 0142)
[    0.039077] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    0.040418] console [ttyS0] disabled
[    0.040473] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 26, base_baud = 12500000) is a 16550A
[    0.541530] console [ttyS0] enabled
[    0.545853] sata_mv f1080000.sata: slots 32 ports 2
[    0.553145] scsi host0: sata_mv
[    0.556696] scsi host1: sata_mv
[    0.559954] ata1: SATA max UDMA/133 irq 32
[    0.564082] ata2: SATA max UDMA/133 irq 32
[    0.568565] nand: device found, Manufacturer ID: 0x92, Chip ID: 0xf1
[    0.574964] nand: Eon NAND 128MiB 3,3V 8-bit
[    0.579254] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    0.586865] Scanning device for bad blocks
[    0.595779] Bad eraseblock 100 at 0x000000c80000
[    0.605161] Bad eraseblock 200 at 0x000001900000
[    0.648855] 3 fixed-partitions partitions found on MTD device orion_nand
[    0.655589] Creating 3 MTD partitions on "orion_nand":
[    0.660746] 0x000000000000-0x0000000c0000 : "uboot"
[    0.666062] 0x0000000c0000-0x000000140000 : "uboot_env"
[    0.671666] 0x000000140000-0x000008000000 : "ubi"
[    0.677468] libphy: Fixed MDIO Bus: probed
[    0.681765] libphy: orion_mdio_bus: probed
[    0.688003] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    0.696141] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 5c:f4:ab:50:0d:b2
[    0.704944] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.711500] ehci-pci: EHCI PCI platform driver
[    0.716006] ehci-orion: EHCI orion driver
[    0.720169] orion-ehci f1050000.ehci: EHCI Host Controller
[    0.725714] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[    0.733487] orion-ehci f1050000.ehci: irq 30, io mem 0xf1050000
[    0.763922] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[    0.770342] hub 1-0:1.0: USB hub found
[    0.774261] hub 1-0:1.0: 1 port detected
[    0.778524] usbcore: registered new interface driver usb-storage
[    0.784716] i2c /dev entries driver
[    0.789056] orion_wdt: Initial timeout 21 sec
[    0.798023] marvell-cesa f1030000.crypto: CESA device successfully registered
[    0.805851] NET: Registered protocol family 10
[    0.811591] Segment Routing with IPv6
[    0.815345] NET: Registered protocol family 17
[    0.819826] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[    0.832844] 8021q: 802.1Q VLAN Support v1.8
[    0.839447] UBI: auto-attach mtd2
[    0.842787] ubi0: attaching mtd2
[    1.016837] ubi0: scanning is finished
[    1.020699] ata1: SATA link down (SStatus 0 SControl F300)
[    1.037079] ubi0: attached mtd2 (name "ubi", size 126 MiB)
[    1.042592] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 129024 bytes
[    1.049528] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 512
[    1.056265] ubi0: VID header offset: 512 (aligned 512), data offset: 2048
[    1.063082] ubi0: good PEBs: 1012, bad PEBs: 2, corrupted PEBs: 0
[    1.069204] ubi0: user volume: 3, internal volumes: 1, max. volumes count: 128
[    1.076463] ubi0: max/mean erase counter: 2/0, WL threshold: 4096, image sequence number: 1062167026
[    1.085642] ubi0: available PEBs: 0, total reserved PEBs: 1012, PEBs reserved for bad PEB handling: 18
[    1.095496] block ubiblock0_1: created from ubi0:1(rootfs)
[    1.101006] ubiblock: device ubiblock0_1 (rootfs) set to be root filesystem
[    1.108146] hctosys: unable to open rtc device (rtc0)
[    1.113517] ubi0: background thread "ubi_bgt0d" started, PID 462
[    1.183926] usb 1-1: new high-speed USB device number 2 using orion-ehci
[    1.355167] ata2: SATA link down (SStatus 0 SControl F300)
[    1.364090] VFS: Mounted root (squashfs filesystem) readonly on device 254:0.
[    1.374165] Freeing unused kernel memory: 1024K
[    1.474552] hub 1-1:1.0: USB hub found
[    1.478751] hub 1-1:1.0: 4 ports detected
[    1.533941] random: fast init done
[    1.608514] init: Console is alive
[    1.612041] init: - watchdog -
[    1.731786] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    1.790017] xhci_hcd 0000:01:00.0: xHCI Host Controller
[    1.795329] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 2
[    1.803066] xhci_hcd 0000:01:00.0: hcc params 0x014042cb hci version 0x96 quirks 0x0000000000000004
[    1.812929] hub 2-0:1.0: USB hub found
[    1.816886] hub 2-0:1.0: 2 ports detected
[    1.821179] xhci_hcd 0000:01:00.0: xHCI Host Controller
[    1.826467] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 3
[    1.833919] xhci_hcd 0000:01:00.0: Host supports USB 3.0  SuperSpeed
[    1.840535] usb usb3: We don't know the algorithms for LPM for this host, disabling LPM.
[    1.849024] hub 3-0:1.0: USB hub found
[    1.852952] hub 3-0:1.0: 2 ports detected
[    1.858404] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    1.875948] init: - preinit -
[    1.940393] usb 1-1.2: new high-speed USB device number 3 using orion-ehci
[    2.131277] random: procd: uninitialized urandom read (4 bytes read)
[    2.137941] usb-storage 1-1.2:1.0: USB Mass Storage device detected
[    2.152382] scsi host2: usb-storage 1-1.2:1.0
[    2.300250] random: jshn: uninitialized urandom read (4 bytes read)
[    2.328254] random: jshn: uninitialized urandom read (4 bytes read)
[    2.599267] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control disabled
[    2.609178] mv643xx_eth_port mv643xx_eth_port.0 eth0: link down
[    2.615966] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
Press the [f] key and hit [enter] to enter failsafe mode
Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level
[    3.205067] scsi 2:0:0:0: Direct-Access     SanDisk' Cruzer Fit       1.00 PQ: 0 ANSI: 6
[    3.214650] sd 2:0:0:0: [sda] 123174912 512-byte logical blocks: (63.1 GB/58.7 GiB)
[    3.223010] sd 2:0:0:0: [sda] Write Protect is off
[    3.228509] sd 2:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[    3.244417]  sda: sda1
[    3.249388] sd 2:0:0:0: [sda] Attached SCSI removable disk
[    5.482881] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control disabled
[    5.492798] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[    5.771671] UBIFS (ubi0:2): background thread "ubifs_bgt0_2" started, PID 585
[    5.804683] UBIFS (ubi0:2): recovery needed
[    5.949707] UBIFS (ubi0:2): recovery completed
[    5.954256] UBIFS (ubi0:2): UBIFS: mounted UBI device 0, volume 2, name "rootfs_data"
[    5.962120] UBIFS (ubi0:2): LEB size: 129024 bytes (126 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[    5.972092] UBIFS (ubi0:2): FS size: 122314752 bytes (116 MiB, 948 LEBs), journal size 6064128 bytes (5 MiB, 47 LEBs)
[    5.982751] UBIFS (ubi0:2): reserved for root: 4952683 bytes (4836 KiB)
[    5.989406] UBIFS (ubi0:2): media format: w4/r0 (latest is w5/r0), UUID 3BFA64AE-764E-418C-9E10-3BEEB7FF0840, small LPT model
[    6.003887] mount_root: switching to ubifs overlay
[    6.018667] urandom-seed: Seeding with /etc/urandom.seed
[    6.073852] procd: - early -
[    6.077201] procd: - watchdog -
[    6.665873] procd: - watchdog -
[    6.669183] procd: - ubus -
[    6.730913] urandom_read: 3 callbacks suppressed
[    6.730918] random: ubusd: uninitialized urandom read (4 bytes read)
[    6.742883] random: ubusd: uninitialized urandom read (4 bytes read)
[    6.749522] random: ubusd: uninitialized urandom read (4 bytes read)
[    6.756583] procd: - init -
Please press Enter to activate this console.
[    7.066032] kmodloader: loading kernel modules from /etc/modules.d/*
[    7.086134] ip6_tables: (C) 2000-2006 Netfilter Core Team
[    7.104688] ip_tables: (C) 2000-2006 Netfilter Core Team
[    7.114027] nf_conntrack version 0.5.0 (8192 buckets, 32768 max)
[    7.162928] rtc-pcf8563 0-0051: rtc core: registered rtc-pcf8563 as rtc0
[    7.176144] urngd: v1.0.2 started.
[    7.190138] xt_time: kernel timezone is -0000
[    7.217190] PPP generic driver version 2.4.2
[    7.222779] NET: Registered protocol family 24
[    7.235602] kmodloader: done loading kernel modules from /etc/modules.d/*
[    7.267275] random: crng init done
[    7.270694] random: 1 urandom warning(s) missed due to ratelimiting
[   11.358094] br-lan: port 1(eth0) entered blocking state
[   11.363348] br-lan: port 1(eth0) entered disabled state
[   11.368790] device eth0 entered promiscuous mode
[   11.395581] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[   14.038865] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control disabled
[   14.048789] br-lan: port 1(eth0) entered blocking state
[   14.054051] br-lan: port 1(eth0) entered forwarding state
[   14.060469] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready

================
moderator edit: please used code tag to post log

GoFlex Home - IDE Reset powers off device (3 replies)

$
0
0
Appears to be a great community and knowledge base on this forum which has helped a lot over the last few weeks.
Any help would be greatly appreciated.

The Issue
As the GoFlex Home boots I get an intermittent green LED for a number of seconds, I hear the SATA disk begin to spin up, then the entire GoFlex device powers off.

Brand new disk, up-to-date uboot and new-ish kernel & rootfs.
See below for more details.

Background
My trusty GoFlex Home has been running great for a number of years with Arch, but I now wanted to fit a SATA disk with more storage space.

The uboot was very out of date and I wanted to switch to debian.
I therefore fitted the brand new SATA disk and updated to the following listed below with the respective guide links.

UBoot 2017.07 - https://forum.doozan.com/read.php?3,12381
Debian 5.2.9 Kirkwood (25/08/2019 as per first time install note) - https://forum.doozan.com/read.php?2,12096

I was able to boot fully (through uboot and the kernel) and use the distro fine from SSH prior to the issue existing.
However ,every boot now powers down the GoFlex (appears to be at the point "ide reset" is issued); NC output below.

Just in case it helps, on the last successful boot, I issued:
apt-get update
apt-get upgrade
reboot (and then powered off for a number of days)

Note: As indicated in the Debian rootfs guide, if apt-get updates initramfs, uInitrd should be re-generated. Which I did as specified before powering down.

Other notes
-I have also used CloneZilla to create an iso from the new disk prior to the issue presenting.
-Exactly the same occurs when the 3.5" SATA disk is fitted within a powered USB SATA caddy and connected to the GoFlex by USB (to rule out power draw of the new disk).
-A USB flash drive boots successfully within the GoFlex and I can SSH in (without the SATA disk connected).

NC output when issue occurs
Note nothing else is listed as the device is then "offline".

host 192.168.0.25 is alive
host 192.168.0.25 is alive
host 192.168.0.25 is alive
host 192.168.0.25 is alive
host 192.168.0.25 is alive

U-Boot 2017.07-tld-1 (Sep 05 2017 - 00:21:31 -0700)
Seagate GoFlex Home
gcc (Debian 6.3.0-18) 6.3.0 20170516
GNU ld (GNU Binutils for Debian) 2.28
Hit any key to stop autoboot:  0 
Initializing devices...
starting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 1 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found

Reset IDE: Bus 0: ..

Print Env for completeness
printenv
arcNumber=3338
bootcmd=run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec
bootcmd_exec=run load_uimage; if run load_initrd; then if run load_dtb; then bootm $load_uimage_addr $load_initrd_addr $load_dtb_addr; else bootm $load_uimage_addr $load_initrd_addr; fi; else if run load_dtb; then bootm $load_uimage_addr - $load_dtb_addr; else bootm $load_uimage_addr; fi; fi
bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi; sleep 3
bootdelay=10
bootdev=usb
device=0:1
devices=usb ide mmc
disks=0 1 2 3
dtb_file=/boot/dts/kirkwood-goflexhome.dtb
ethact=egiga0
ethaddr=[purposefully omitted]
if_netconsole=ping $serverip
ipaddr=192.168.0.90
led_error=orange blinking
led_exit=green off
led_init=green blinking
load_dtb=echo loading DTB $dtb_file ...; load $bootdev $device $load_dtb_addr $dtb_file
load_dtb_addr=0x1c00000
load_initrd=echo loading uInitrd ...; load $bootdev $device $load_initrd_addr /boot/uInitrd
load_initrd_addr=0x1100000
load_uimage=echo loading uImage ...; load $bootdev $device $load_uimage_addr /boot/uImage
load_uimage_addr=0x800000
mainlineLinux=yes
mtdids=nand0=orion_nand
mtdparts=mtdparts=orion_nand:1M(u-boot),-(rootfs)
nc_ready=1
ncip=192.168.0.25
ncipk=192.168.0.26
partition=nand0,2
preboot=run preboot_nc
preboot_nc=setenv nc_ready 0; for pingstat in 1 2 3 4 5; do; sleep 1; if run if_netconsole; then setenv nc_ready 1; fi; done; if test $nc_ready -eq 1; then run start_netconsole; fi
scan_disk=echo running scan_disk ...; scan_done=0; setenv scan_usb "usb start";  setenv scan_ide "ide reset";  setenv scan_mmc "mmc rescan"; for dev in $devices; do if test $scan_done -eq 0; then echo Scan device $dev; run scan_$dev; for disknum in $disks; do if test $scan_done -eq 0; then echo device $dev $disknum:1; if load $dev $disknum:1 $load_uimage_addr /boot/uImage 1; then scan_done=1; echo Found bootable drive on $dev $disknum; setenv device $disknum:1; setenv bootdev $dev; fi; fi; done; fi; done
serverip=192.168.0.25
set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts $custom_params
start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version;
stderr=nc
stdin=nc
stdout=nc
uenv_addr=0x810000
uenv_import=echo importing envs ...; env import -t $uenv_addr $filesize
uenv_init_devices=echo Initializing devices...; setenv init_usb "usb start";  setenv init_ide "ide reset";  setenv init_mmc "mmc rescan"; for devtype in $devices; do run init_$devtype; done
uenv_load=run uenv_init_devices; setenv uenv_loaded 0; for devtype in $devices; do for disknum in $disks; do if test $uenv_loaded -eq 0; then setenv device_type $devtype; setenv disk_number $disknum; run uenv_read; fi; done; done;
uenv_read=echo Loading envs from $device_type $disk_number...; if load $device_type  $disk_number:1 $uenv_addr /boot/uEnv.txt; then setenv uenv_loaded 1; echo ... envs loaded; fi
usb_ready_retry=15

=====
moderator edit: use code tag for envs listing.

GoFlex home stalling for 30 mins when there is no nc endpoint (2 replies)

$
0
0
Hi guys, bit of a weird problem.
Thank you for the assistance recently in getting my GoFlex Home back online.
Now that I have it nicely setup with Debian and a 4TB HDD I'm getting a long boot delay.

If I have a machine setup listening at the NC IP, it boots straight through uboot (as I can see from the NC output) and is online within a minute or so.

However, if the NC endpoint isn't there, the device sits with the blinking green status light for around 30 minutes before spinning up the drive and initializing Linux.

This is an assumption, as I do not have serial cabling and therefore can not actually see what is going on to cause the long delay.
Note: I do not hear the spin up sound for the IDE drive or the normal red LED for two seconds followed by static green - that I normally see towards the end of uboot initialisation.

I suspected it may be something getting stuck in a loop regarding NC uboot vars.
I therefore delicately removed the NC related variables, but this has had no effect and strangely I still get NC output for uboot.

The current printenv being used is listed below.
Any ideas and thanks in advance for any advice?

Current uboot env vars
GoFlexHome> printenv
printenv
arcNumber=3338
bootcmd=run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec
bootcmd_exec=run load_uimage; if run load_initrd; then if run load_dtb; then bootm $load_uimage_addr $load_initrd_addr $load_dtb_addr; else bootm $load_uimage_addr $load_initrd_addr; fi; else if run load_dtb; then bootm $load_uimage_addr - $load_dtb_addr; else bootm $load_uimage_addr; fi; fi
bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi; sleep 3
bootdelay=10
bootdev=usb
device=0:1
devices=usb ide mmc
disks=0 1 2 3
dtb_file=/boot/dts/kirkwood-goflexhome.dtb
ethact=egiga0
ethaddr=[Deliberately Omitted]
if_netconsole=ping $serverip
ipaddr=192.168.0.90
led_error=orange blinking
led_exit=green off
led_init=green blinking
load_dtb=echo loading DTB $dtb_file ...; load $bootdev $device $load_dtb_addr $dtb_file
load_dtb_addr=0x1c00000
load_initrd=echo loading uInitrd ...; load $bootdev $device $load_initrd_addr /boot/uInitrd
load_initrd_addr=0x1100000
load_uimage=echo loading uImage ...; load $bootdev $device $load_uimage_addr /boot/uImage
load_uimage_addr=0x800000
mainlineLinux=yes
mtdids=nand0=orion_nand
mtdparts=mtdparts=orion_nand:1M(u-boot),-(rootfs)
nc_ready=1
ncip=192.168.0.191
ncipk=192.168.0.26
netconsole=off
partition=nand0,2
scan_disk=echo running scan_disk ...; scan_done=0; setenv scan_usb "usb start"; setenv scan_ide "ide reset"; setenv scan_mmc "mmc rescan"; for dev in $devices; do if test $scan_done -eq 0; then echo Scan device $dev; run scan_$dev; for disknum in $disks; do if test $scan_done -eq 0; then echo device $dev $disknum:1; if load $dev $disknum:1 $load_uimage_addr /boot/uImage 1; then scan_done=1; echo Found bootable drive on $dev $disknum; setenv device $disknum:1; setenv bootdev $dev; fi; fi; done; fi; done
serverip=192.168.0.191
set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts $custom_params
start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version;
stderr=nc
stdin=nc
stdout=nc
uenv_addr=0x810000
uenv_import=echo importing envs ...; env import -t $uenv_addr $filesize
uenv_init_devices=echo Initializing devices...; setenv init_usb "usb start"; setenv init_ide "ide reset"; setenv init_mmc "mmc rescan"; for devtype in $devices; do run init_$devtype; done
uenv_load=run uenv_init_devices; setenv uenv_loaded 0; for devtype in $devices; do for disknum in $disks; do if test $uenv_loaded -eq 0; then setenv device_type $devtype; setenv disk_number $disknum; run uenv_read; fi; done; done;
uenv_read=echo Loading envs from $device_type $disk_number...; if load $device_type $disk_number:1 $uenv_addr /boot/uEnv.txt; then setenv uenv_loaded 1; echo ... envs loaded; fi
usb_ready_retry=15

UBoot output when NC is listening
0
Initializing devices...
starting USB...
USB0: USB EHCI 1.00
scanning bus 0 for devices... 1 USB Device(s) found
scanning usb for storage devices... 0 Storage Device(s) found

Reset IDE: Bus 0: ........OK Bus 1: not available
Device 0: Model: ST4000DM004-2CV104 Firm: 0001 Ser#: ZFN32R0G
Type: Hard Disk
Supports 48-bit addressing
Capacity: 3815447.8 MB = 3726.0 GB (7814037168 x 512)
Unknown command 'mmc' - try 'help'
Loading envs from usb 0...
** Bad device usb 0 **
Loading envs from usb 1...
** Bad device usb 1 **
Loading envs from usb 2...
** Bad device usb 2 **
Loading envs from usb 3...
** Bad device usb 3 **
Loading envs from ide 0...
** File not found /boot/uEnv.txt **
Loading envs from ide 1...
** Bad device ide 1 **
Loading envs from ide 2...
** Bad device ide 2 **
Loading envs from ide 3...
** Bad device ide 3 **
Loading envs from mmc 0...
** Bad device mmc 0 **
Loading envs from mmc 1...
** Bad device mmc 1 **
Loading envs from mmc 2...
** Bad device mmc 2 **
Loading envs from mmc 3...
** Bad device mmc 3 **
running scan_disk ...
Scan device usb
device usb 0:1
** Bad device usb 0 **
device usb 1:1
** Bad device usb 1 **
device usb 2:1
** Bad device usb 2 **
device usb 3:1
** Bad device usb 3 **
Scan device ide

Reset IDE: Bus 0: OK Bus 1: not available
Device 0: Model: ST4000DM004-2CV104 Firm: 0001 Ser#: ZFN32R0G
Type: Hard Disk
Supports 48-bit addressing
Capacity: 3815447.8 MB = 3726.0 GB (7814037168 x 512)
device ide 0:1
1 bytes read in 56 ms (0 Bytes/s)
Found bootable drive on ide 0
loading uImage ...
4973929 bytes read in 1120 ms (4.2 MiB/s)
loading uInitrd ...
9788920 bytes read in 2232 ms (4.2 MiB/s)
loading DTB /boot/dts/kirkwood-goflexhome.dtb ...
10249 bytes read in 95 ms (104.5 KiB/s)
## Booting kernel from Legacy Image at 00800000 ...
Image Name: Linux-5.2.9-kirkwood-tld-1
Created: 2020-05-11 22:09:27 UTC
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 4973865 Bytes = 4.7 MiB
Load Address: 00008000
Entry Point: 00008000
Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 01100000 ...
Image Name: initramfs-5.2.9-kirkwood-tld-1
Created: 2020-05-11 22:19:56 UTC
Image Type: ARM Linux RAMDisk Image (gzip compressed)
Data Size: 9788856 Bytes = 9.3 MiB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
## Flattened Device Tree blob at 01c00000
Booting using the fdt blob at 0x1c00000

Starting kernel ...

Goflex Home doesn't boot from sata (2 replies)

$
0
0
I'm not sure what the problem is, but my GFH never boots from sata normally. I can interrupt uboot and boot into recovery with the net console. When I issue a "reboot now" command from rescue, sometimes it will sometimes boot from the sata and all will be normal. It has been a few years since I really did anything with this, so I don't remember all the details of what I did when setting it up originally, but I didn't do anything unusual. I also don't remember if I made some change before it stopped working consistently. How do I get my system to consistently boot up from sata again? The led does settle on solid green, but I have no SSH and the device is not connected to the network.

I am not sure if this is a uBoot issue or something else. The fact that it works at least rarely means that it is not completely wrong.

I have the 3TB version: 16GB ext3 root partition and 2.7TB ext4 data partition. It is a MBR/GPT hybrid. I have net console and recovery. I am using U-Boot 2011.12 (Apr 18 2012 - 23:08:20)

Here are the outputs I am able to get. If you think of others I will post them right away.

Thanks in advance for any help you can give. I would love to have this nice little system working again.

fw_printenv:
arcNumber=3338
baudrate=115200
bootdelay=10
console=ttyS0,115200
ethact=egiga0
ethaddr=00:10:75:2d:0e:a2
led_error=orange blinking
led_exit=green off
led_init=green blinking
mainlineLinux=yes
mtdids=nand0=orion_nand
mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)
partition=nand0,2
stderr=serial
stdin=serial
stdout=serial
ipaddr=192.168.x.x
serverip=192.168.y.y
if_netconsole=ping $serverip
preboot=run if_netconsole start_netconsole
start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version;
set_bootargs_rescue=setenv bootargs console=$console ubi.mtd=2 root=ubi0:rootfs ro rootfstype=ubifs $mtdparts
bootcmd_rescue=run set_bootargs_rescue; nand read.e 0x800000 0x100000 0x400000; bootm 0x800000
bootcmd_pogo=run bootcmd_rescue
rescue_installed=1
bootcmd_sata=run sata_init; run sata_load_uimage; run set_bootargs_sata; run sata_boot;
sata_init=ide reset
sata_load_uimage=mw 0x800000 0 1; ext2load ide $sata_device 0x800000 /boot/uImage
set_bootargs_sata=setenv bootargs console=$console root=$sata_root rootdelay=$sata_rootdelay rootfstype=$sata_rootfstype $mtdparts
sata_boot=if ext2load ide $sata_device 0x1100000 /boot/uInitrd; then bootm 0x800000 0x1100000;else bootm 0x800000;fi;
sata_device=0:1
sata_root=/dev/sda1
sata_rootdelay=8
sata_rootfstype=ext2
bootcmd_usb=run usb_init; run usb_load_uimage; run set_bootargs_usb; run usb_boot;
usb_init=usb start; setenv usb_root LABEL=rootfs
usb_load_uimage=mw 0x800000 0 1; ext2load usb $usb_device 0x800000 /boot/uImage
set_bootargs_usb=setenv bootargs console=$console root=$usb_root rootdelay=$usb_rootdelay rootfstype=$usb_rootfstype $mtdparts
usb_boot=if ext2load usb $usb_device 0x1100000 /boot/uInitrd; then bootm 0x800000 0x1100000;else bootm 0x800000;fi;
usb_device=0:1
usb_root=/dev/sda1
usb_rootdelay=10
usb_rootfstype=ext2
bootcmd=run bootcmd_usb; usb stop; run bootcmd_sata; run bootcmd_pogo; reset

net console output for the boot using recovery:
GoFlexNet> run bootcmd_pogo

NAND read: device 0 offset 0x100000, size 0x400000
 4194304 bytes read: OK
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-3.3.2-kirkwide
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3627768 Bytes = 3.5 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

net console output for the successful reboot from sata:

U-Boot 2011.12 (Apr 18 2012 - 23:08:20)
Seagate GoFlexNet
arm-none-linux-gnueabi-gcc (Sourcery G++ Lite 2009q3-67) 4.4.1
GNU ld (Sourcery G++ Lite 2009q3-67) 2.19.51.20090709
Hit any key to stop autoboot:  0 

Reset IDE: Bus 0: OK Bus 1: not available  
  Device 0: Model: ST3000DM001-9YN166 Firm: CC9D Ser#: S1F06WKW
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 764436.4 MB = 746.5 GB (1565565872 x 512)
Loading file "/boot/uImage" from ide device 0:1 (hda1)
4120184 bytes read
Loading file "/boot/uInitrd" from ide device 0:1 (hda1)
** File not found /boot/uInitrd
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-4.1.3-1-ARCH
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    4120120 Bytes = 3.9 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

dmesg output from the always successful boot to recovery
rescue:~# dmesg
[    0.000000] Booting Linux on physical CPU 0
[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Linux version 3.3.2-kirkwide (davygravy@bitbaker64) (gcc version 4.3.5 (Buildroot 2010.08) ) #1 Mon Oct 29 17:52:07 CDT 2012
[    0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=00053977
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] Machine: Seagate GoFlex Home
[    0.000000] Memory policy: ECC disabled, Data cache writeback
[    0.000000] On node 0 totalpages: 32768
[    0.000000] free_area_init_node: node 0, pgdat c0730944, node_mem_map c07a5000
[    0.000000]   Normal zone: 256 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 32512 pages, LIFO batch:7
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512
[    0.000000] Kernel command line: console=ttyS0,115200 ubi.mtd=2 root=ubi0:rootfs ro rootfstype=ubifs mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)
[    0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Memory: 128MB = 128MB total
[    0.000000] Memory: 122080k/122080k available, 8992k reserved, 0K highmem
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
[    0.000000]     vmalloc : 0xc8800000 - 0xff000000   ( 872 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xc8000000   ( 128 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 0xc06c06c8   (6882 kB)
[    0.000000]       .init : 0xc06c1000 - 0xc06eb000   ( 168 kB)
[    0.000000]       .data : 0xc06ec000 - 0xc0734c38   ( 292 kB)
[    0.000000]        .bss : 0xc0734c5c - 0xc07a4294   ( 446 kB)
[    0.000000] SLUB: Genslabs=13, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS:114
[    0.000000] gpiochip_add: registered GPIOs 0 to 31 on device: orion_gpio0
[    0.000000] gpiochip_add: registered GPIOs 32 to 49 on device: orion_gpio1
[    0.000000] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 21474ms
[    0.000000] Console: colour dummy device 80x30
[    1.450648] Calibrating delay loop... 1191.11 BogoMIPS (lpj=5955584)
[    1.540574] pid_max: default: 32768 minimum: 301
[    1.540705] Security Framework initialized
[    1.540724] SELinux:  Disabled at boot.
[    1.540787] Mount-cache hash table entries: 512
[    1.541155] Initializing cgroup subsys cpuacct
[    1.541171] Initializing cgroup subsys devices
[    1.541182] Initializing cgroup subsys freezer
[    1.541191] Initializing cgroup subsys net_cls
[    1.541262] CPU: Testing write buffer coherency: ok
[    1.541540] Setting up static identity map for 0x511040 - 0x51107c
[    1.542548] devtmpfs: initialized
[    1.544425] NET: Registered protocol family 16
[    1.545161] Kirkwood: MV88F6281-A1, TCLK=200000000.
[    1.545178] Feroceon L2: Enabling L2
[    1.545214] Feroceon L2: Cache support initialised.
[    1.545696] initial MPP regs: 01111111 11113322 00001111 00100000 00000000 00000000 00000000
[    1.545720]   final MPP regs: 01111111 11113322 00001111 00000000 00000000 00000000 00000000
[    1.549574] bio: create slab <bio-0> at 0
[    1.549931] vgaarb: loaded
[    1.550199] SCSI subsystem initialized
[    1.550339] libata version 3.00 loaded.
[    1.550569] usbcore: registered new interface driver usbfs
[    1.550642] usbcore: registered new interface driver hub
[    1.550738] usbcore: registered new device driver usb
[    1.551310] Switching to clocksource orion_clocksource
[    1.576479] NET: Registered protocol family 2
[    1.576713] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[    1.577291] TCP established hash table entries: 4096 (order: 3, 32768 bytes)
[    1.577392] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[    1.577446] TCP: Hash tables configured (established 4096 bind 4096)
[    1.577456] TCP reno registered
[    1.577467] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    1.577489] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    1.577718] NET: Registered protocol family 1
[    1.578033] RPC: Registered named UNIX socket transport module.
[    1.578044] RPC: Registered udp transport module.
[    1.578052] RPC: Registered tcp transport module.
[    1.578059] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    1.578073] PCI: CLS 0 bytes, default 32
[    1.578124] NetWinder Floating Point Emulator V0.97 (double precision)
[    1.578664] audit: initializing netlink socket (disabled)
[    1.578697] type=2000 audit(0.120:1): initialized
[    1.587247] VFS: Disk quotas dquot_6.5.2
[    1.587478] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    1.590152] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    1.591272] JFFS2 version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    1.591850] fuse init (API version 7.18)
[    1.592320] SGI XFS with security attributes, large block/inode numbers, no debug enabled
[    1.593699] msgmni has been set to 238
[    1.594980] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253)
[    1.594994] io scheduler noop registered
[    1.595002] io scheduler deadline registered
[    1.595038] io scheduler cfq registered (default)
[    1.595096] mv_xor_shared mv_xor_shared.0: Marvell shared XOR driver
[    1.595132] mv_xor_shared mv_xor_shared.1: Marvell shared XOR driver
[    1.631414] mv_xor mv_xor.0: Marvell XOR: ( xor cpy )
[    1.671391] mv_xor mv_xor.1: Marvell XOR: ( xor fill cpy )
[    1.711382] mv_xor mv_xor.2: Marvell XOR: ( xor cpy )
[    1.751381] mv_xor mv_xor.3: Marvell XOR: ( xor fill cpy )
[    1.751721] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    1.772248] serial8250.0: ttyS0 at MMIO 0xf1012000 (irq = 33) is a 16550A
[    2.265401] console [ttyS0] enabled
[    2.269417] sata_mv sata_mv.0: version 1.28
[    2.269506] sata_mv sata_mv.0: slots 32 ports 1
[    2.274907] scsi0 : sata_mv
[    2.277963] ata1: SATA max UDMA/133 irq 21
[    2.283009] NAND device: Manufacturer ID: 0x98, Chip ID: 0xda (Toshiba NAND 256MiB 3,3V 8-bit)
[    2.291691] Scanning device for bad blocks
[    2.509950] 4 cmdlinepart partitions found on MTD device orion_nand
[    2.516256] Creating 4 MTD partitions on "orion_nand":
[    2.521431] 0x000000000000-0x000000100000 : "u-boot"
[    2.527273] 0x000000100000-0x000000500000 : "uImage"
[    2.532998] 0x000000500000-0x000002500000 : "rootfs"
[    2.538713] 0x000002500000-0x000010000000 : "data"
[    2.544614] UBI: attaching mtd2 to ubi0
[    2.548469] UBI: physical eraseblock size:   131072 bytes (128 KiB)
[    2.554781] UBI: logical eraseblock size:    129024 bytes
[    2.560200] UBI: smallest flash I/O unit:    2048
[    2.564937] UBI: sub-page size:              512
[    2.569575] UBI: VID header offset:          512 (aligned 512)
[    2.575444] UBI: data offset:                2048
[    2.637596] UBI: max. sequence number:       7
[    2.652657] UBI: attached mtd2 to ubi0
[    2.656426] UBI: MTD device name:            "rootfs"
[    2.661520] UBI: MTD device size:            32 MiB
[    2.666419] UBI: number of good PEBs:        256
[    2.671056] UBI: number of bad PEBs:         0
[    2.675524] UBI: number of corrupted PEBs:   0
[    2.679987] UBI: max. allowed volumes:       128
[    2.684634] UBI: wear-leveling threshold:    4096
[    2.689351] UBI: number of internal volumes: 1
[    2.693816] UBI: number of user volumes:     1
[    2.698272] UBI: available PEBs:             0
[    2.702736] UBI: total number of reserved PEBs: 256
[    2.707630] UBI: number of PEBs reserved for bad PEB handling: 2
[    2.713676] UBI: max/mean erase counter: 1/0
[    2.717963] UBI: image sequence number:  1230342828
[    2.722880] UBI: background thread "ubi_bgt0d" started, PID 43
[    2.728922] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    2.735855] mv643xx_eth smi: probed
[    2.741492] mv643xx_eth_port mv643xx_eth_port.0: eth0: port 0 with MAC address 00:10:75:2d:0e:a2
[    2.750357] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    2.756988] orion-ehci orion-ehci.0: Marvell Orion EHCI
[    2.762330] orion-ehci orion-ehci.0: new USB bus registered, assigned bus number 1
[    2.791369] orion-ehci orion-ehci.0: irq 19, io mem 0xf1050000
[    2.811356] orion-ehci orion-ehci.0: USB 2.0 started, EHCI 1.00
[    2.817375] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    2.824208] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.831477] usb usb1: Product: Marvell Orion EHCI
[    2.836198] usb usb1: Manufacturer: Linux 3.3.2-kirkwide ehci_hcd
[    2.842330] usb usb1: SerialNumber: orion-ehci.0
[    2.847470] hub 1-0:1.0: USB hub found
[    2.851242] hub 1-0:1.0: 1 port detected
[    2.855487] Initializing USB Mass Storage driver...
[    2.860476] usbcore: registered new interface driver usb-storage
[    2.866524] USB Mass Storage support registered.
[    2.871437] mousedev: PS/2 mouse device common for all mice
[    2.877086] i2c /dev entries driver
[    2.881076] device-mapper: uevent: version 1.0.3
[    2.886073] device-mapper: ioctl: 4.22.0-ioctl (2011-10-19) initialised: dm-devel@redhat.com
[    2.894638] cpuidle: using governor ladder
[    2.898823] cpuidle: using governor menu
[    2.902911] Registered led device: status:green:health
[    2.902999] Registered led device: status:orange:fault
[    2.903093] Registered led device: status:white:misc
[    2.904103] TCP cubic registered
[    2.907348] NET: Registered protocol family 17
[    2.911870] Registering the dns_resolver key type
[    2.916623] Gating clock of unused units
[    2.916631] before: 0x00dfc3fd
[    2.916639]  after: 0x00c741c9
[    2.917046] registered taskstats version 1
[    2.921856] console [netcon0] enabled
[    2.925533] netconsole: network logging started
[    2.930079] drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
[    2.936446] Initializing network drop monitor service
[    3.001374] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[    3.041395] ata1.00: ATA-8: ST3000DM001-9YN166, CC9D, max UDMA/133
[    3.047609] ata1.00: 5860533168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[    3.311395] ata1.00: configured for UDMA/133
[    3.316015] scsi 0:0:0:0: Direct-Access     ATA      ST3000DM001-9YN1 CC9D PQ: 0 ANSI: 5
[    3.324681] sd 0:0:0:0: [sda] 5860533168 512-byte logical blocks: (3.00 TB/2.72 TiB)
[    3.332484] sd 0:0:0:0: [sda] 4096-byte physical blocks
[    3.338255] sd 0:0:0:0: [sda] Write Protect is off
[    3.343088] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
[    3.343187] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    3.391881]  sda: sda1 sda2
[    3.395801] sd 0:0:0:0: [sda] Attached SCSI disk
[    3.400488] md: Waiting for all devices to be available before autodetect
[    3.407334] md: If you don't use raid, use raid=noautodetect
[    3.413551] md: Autodetecting RAID arrays.
[    3.417665] md: Scanned 0 and added 0 devices.
[    3.422147] md: autorun ...
[    3.424954] md: ... autorun DONE.
[    3.584251] UBIFS: mounted UBI device 0, volume 0, name "rootfs"
[    3.590286] UBIFS: mounted read-only
[    3.593896] UBIFS: file system size:   30836736 bytes (30114 KiB, 29 MiB, 239 LEBs)
[    3.601599] UBIFS: journal size:       9033728 bytes (8822 KiB, 8 MiB, 71 LEBs)
[    3.608939] UBIFS: media format:       w4/r0 (latest is w4/r0)
[    3.614807] UBIFS: default compressor: lzo
[    3.618922] UBIFS: reserved for root:  0 bytes (0 KiB)
[    3.624967] VFS: Mounted root (ubifs filesystem) readonly on device 0:15.
[    3.632190] devtmpfs: mounted
[    3.635669] Freeing init memory: 168K
[    3.911765] udevd (70): /proc/70/oom_adj is deprecated, please use /proc/70/oom_score_adj instead.
[    5.712228] mv643xx_eth_port mv643xx_eth_port.0: eth0: link up, 100 Mb/s, full duplex, flow control disabled

dmesg output from the rarely successful boot from sata
[root@alarm ~]# dmesg
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Initializing cgroup subsys cpuacct
[    0.000000] Linux version 4.1.3-1-ARCH (builduser@leming) (gcc version 5.1.0 (GCC) ) #1 PREEMPT Wed Jul 22 02:14:56 MDT 2015
[    0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] Machine: Seagate GoFlex Home
[    0.000000] Memory policy: Data cache writeback
[    0.000000] On node 0 totalpages: 32768
[    0.000000] free_area_init_node: node 0, pgdat c080f4d4, node_mem_map c7eda000
[    0.000000]   Normal zone: 288 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 32768 pages, LIFO batch:7
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32480
[    0.000000] Kernel command line: console=ttyS0,115200 root=/dev/sda1 rootdelay=8 rootfstype=ext2 mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)
[    0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Memory: 120792K/131072K available (5861K kernel code, 422K rwdata, 1700K rodata, 268K init, 699K bss, 10280K reserved, 0K cma-reserved)
[    0.000000] Virtual kernel memory layout:
                   vector  : 0xffff0000 - 0xffff1000   (   4 kB)
                   fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
                   vmalloc : 0xc8800000 - 0xff000000   ( 872 MB)
                   lowmem  : 0xc0000000 - 0xc8000000   ( 128 MB)
                   modules : 0xbf000000 - 0xc0000000   (  16 MB)
                     .text : 0xc0008000 - 0xc076a760   (7562 kB)
                     .init : 0xc076b000 - 0xc07ae000   ( 268 kB)
                     .data : 0xc07ae000 - 0xc08178ac   ( 423 kB)
                      .bss : 0xc08178ac - 0xc08c6550   ( 700 kB)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000] NR_IRQS:114
[    0.000013] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[    0.315117] clocksource orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302233 ns
[    0.315307] Console: colour dummy device 80x30
[    0.315335] Calibrating delay loop... 1191.11 BogoMIPS (lpj=5955584)
[    0.405207] pid_max: default: 32768 minimum: 301
[    0.405301] Security Framework initialized
[    0.405387] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.405408] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.406102] Initializing cgroup subsys blkio
[    0.406133] Initializing cgroup subsys memory
[    0.406195] Initializing cgroup subsys devices
[    0.406224] Initializing cgroup subsys freezer
[    0.406248] Initializing cgroup subsys net_cls
[    0.406269] Initializing cgroup subsys bfqio
[    0.406288] Initializing cgroup subsys perf_event
[    0.406312] Initializing cgroup subsys net_prio
[    0.406391] CPU: Testing write buffer coherency: ok
[    0.406833] Setting up static identity map for 0x81e0 - 0x8238
[    0.408743] devtmpfs: initialized
[    0.411103] clocksource jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.411667] pinctrl core: initialized pinctrl subsystem
[    0.412396] NET: Registered protocol family 16
[    0.412877] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.435209] cpuidle: using governor ladder
[    0.465206] cpuidle: using governor menu
[    0.465368] Kirkwood: MV88F6281-A1, TCLK=200000000.
[    0.465394] Feroceon L2: Enabling L2
[    0.465434] Feroceon L2: Cache support initialised.
[    0.466177] initial MPP regs: 01111111 11113322 00001111 00100000 00000000 00000000 00000000
[    0.466206]   final MPP regs: 01111111 11113322 00001111 00000000 00000000 00000000 00000000
[    0.496699] vgaarb: loaded
[    0.497017] SCSI subsystem initialized
[    0.497195] libata version 3.00 loaded.
[    0.497537] usbcore: registered new interface driver usbfs
[    0.497615] usbcore: registered new interface driver hub
[    0.497675] usbcore: registered new device driver usb
[    0.497837] pps_core: LinuxPPS API ver. 1 registered
[    0.497846] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.497880] PTP clock support registered
[    0.498942] Switched to clocksource orion_clocksource
[    0.529126] FS-Cache: Loaded
[    0.542128] NET: Registered protocol family 2
[    0.543017] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.543043] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.543063] TCP: Hash tables configured (established 1024 bind 1024)
[    0.543134] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.543157] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.543341] NET: Registered protocol family 1
[    0.543398] PCI: CLS 0 bytes, default 32
[    0.545293] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.557990] VFS: Disk quotas dquot_6.6.0
[    0.558254] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.560169] jffs2: version 2.2. (NAND) \xffffffc2\xffffffa9 2001-2006 Red Hat, Inc.
[    0.561219] fuse init (API version 7.23)
[    0.563484] aufs 4.1-20150629
[    0.565877] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250)
[    0.565901] io scheduler noop registered
[    0.565916] io scheduler deadline registered
[    0.566199] io scheduler cfq registered
[    0.566684] io scheduler bfq registered (default)
[    0.566693] BFQ I/O-scheduler: v7r8
[    0.566896] mv_xor mv_xor.0: Marvell shared XOR driver
[    0.599032] mv_xor mv_xor.0: Marvell XOR: ( xor cpy )
[    0.639019] mv_xor mv_xor.0: Marvell XOR: ( xor cpy )
[    0.639200] mv_xor mv_xor.1: Marvell shared XOR driver
[    0.679016] mv_xor mv_xor.1: Marvell XOR: ( xor cpy )
[    0.719016] mv_xor mv_xor.1: Marvell XOR: ( xor cpy )
[    0.724492] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    0.725577] console [ttyS0] disabled
[    0.745688] serial8250.0: ttyS0 at MMIO 0xf1012000 (irq = 33, base_baud = 12500000) is a 16550A
[    1.265874] console [ttyS0] enabled
[    1.282819] brd: module loaded
[    1.292170] loop: module loaded
[    1.295644] sata_mv sata_mv.0: version 1.28
[    1.295696] sata_mv sata_mv.0: cannot get optional clkdev
[    1.301282] sata_mv sata_mv.0: slots 32 ports 1
[    1.307608] scsi host0: sata_mv
[    1.311216] ata1: SATA max UDMA/133 irq 21
[    1.316061] nand: device found, Manufacturer ID: 0x98, Chip ID: 0xda
[    1.322590] nand: Toshiba NAND 256MiB 3,3V 8-bit
[    1.327231] nand: 256 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    1.334865] Scanning device for bad blocks
[    1.556907] 4 cmdlinepart partitions found on MTD device orion_nand
[    1.563219] Creating 4 MTD partitions on "orion_nand":
[    1.568386] 0x000000000000-0x000000100000 : "u-boot"
[    1.573905] 0x000000100000-0x000000500000 : "uImage"
[    1.579370] 0x000000500000-0x000002500000 : "rootfs"
[    1.584843] 0x000002500000-0x000010000000 : "data"
[    1.597271] libphy: orion_mdio_bus: probed
[    1.601537] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    1.828972] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[    1.869003] ata1.00: ATA-8: ST3000DM001-9YN166, CC9D, max UDMA/133
[    1.875215] ata1.00: 5860533168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[    1.959007] ata1.00: configured for UDMA/133
[    1.979283] scsi 0:0:0:0: Direct-Access     ATA      ST3000DM001-9YN1 CC9D PQ: 0 ANSI: 5
[    1.999822] sd 0:0:0:0: [sda] 5860533168 512-byte logical blocks: (3.00 TB/2.72 TiB)
[    2.007602] sd 0:0:0:0: [sda] 4096-byte physical blocks
[    2.013250] sd 0:0:0:0: Attached scsi generic sg0 type 0
[    2.029295] sd 0:0:0:0: [sda] Write Protect is off
[    2.034113] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
[    2.034232] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    2.095840]  sda: sda1 sda2
[    2.110263] sd 0:0:0:0: [sda] Attached SCSI disk
[    2.759146] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 00:10:75:2d:0e:a2
[    2.768111] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    2.774703] ehci-pci: EHCI PCI platform driver
[    2.779254] ehci-orion: EHCI orion driver
[    2.783363] orion-ehci orion-ehci.0: EHCI Host Controller
[    2.788813] orion-ehci orion-ehci.0: new USB bus registered, assigned bus number 1
[    2.796586] orion-ehci orion-ehci.0: irq 19, io mem 0xf1050000
[    2.818974] orion-ehci orion-ehci.0: USB 2.0 started, EHCI 1.00
[    2.825875] hub 1-0:1.0: USB hub found
[    2.829726] hub 1-0:1.0: 1 port detected
[    2.834289] usbcore: registered new interface driver uas
[    2.839812] usbcore: registered new interface driver usb-storage
[    2.845898] usbcore: registered new interface driver ums-alauda
[    2.851942] usbcore: registered new interface driver ums-cypress
[    2.858026] usbcore: registered new interface driver ums-datafab
[    2.864136] usbcore: registered new interface driver ums_eneub6250
[    2.870420] usbcore: registered new interface driver ums-freecom
[    2.876502] usbcore: registered new interface driver ums-isd200
[    2.882526] usbcore: registered new interface driver ums-jumpshot
[    2.888715] usbcore: registered new interface driver ums-karma
[    2.894646] usbcore: registered new interface driver ums-onetouch
[    2.900865] usbcore: registered new interface driver ums-realtek
[    2.906954] usbcore: registered new interface driver ums-sddr09
[    2.912976] usbcore: registered new interface driver ums-sddr55
[    2.919000] usbcore: registered new interface driver ums-usbat
[    2.925301] mousedev: PS/2 mouse device common for all mice
[    2.931905] rtc-mv rtc-mv: rtc core: registered rtc-mv as rtc0
[    2.937877] i2c /dev entries driver
[    2.942060] sdhci: Secure Digital Host Controller Interface driver
[    2.948266] sdhci: Copyright(c) Pierre Ossman
[    2.952752] sdhci-pltfm: SDHCI platform and OF driver helper
[    2.959179] ledtrig-cpu: registered to indicate activity on CPUs
[    2.965351] usbcore: registered new interface driver r8712u
[    2.971175] gre: GRE over IPv4 demultiplexor driver
[    2.976121] NET: Registered protocol family 17
[    2.980664] Key type dns_resolver registered
[    2.985983] registered taskstats version 1
[    2.992211] Key type encrypted registered
[    2.996819] console [netcon0] enabled
[    3.000580] netconsole: network logging started
[    3.005241] rtc-mv rtc-mv: setting system clock to 2015-09-15 02:49:57 UTC (1442285397)
[    3.014407] Waiting 8 sec before mounting root device...
[   11.043992] EXT4-fs (sda1): mounting ext2 file system using the ext4 subsystem
[   11.078594] EXT4-fs (sda1): warning: maximal mount count reached, running e2fsck is recommended
[   11.088358] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
[   11.096123] VFS: Mounted root (ext2 filesystem) on device 8:1.
[   11.133738] devtmpfs: mounted
[   11.137506] Freeing unused kernel memory: 268K (c076b000 - c07ae000)
[   11.637498] NET: Registered protocol family 10
[   11.643138] systemd[1]: Inserted module 'ipv6'
[   11.661549] ip_tables: (C) 2000-2006 Netfilter Core Team
[   11.666948] systemd[1]: Inserted module 'ip_tables'
[   11.685499] random: systemd urandom read with 41 bits of entropy available
[   11.709095] systemd[1]: systemd 224 running in system mode. (+PAM -AUDIT -SELINUX -IMA -APPARMOR +SMACK -SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID -ELFUTILS +KMOD +IDN)
[   11.727536] systemd[1]: Detected architecture arm.
[   11.759646] systemd[1]: Set hostname to <alarm>.
[   12.515273] systemd[1]: display-manager.service: Cannot add dependency job, ignoring: Unit display-manager.service failed to load: No such file or directory.
[   12.537016] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
[   12.569551] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[   12.599299] systemd[1]: Reached target Paths.
[   12.620120] systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point.
[   12.650837] systemd[1]: Created slice Root Slice.
[   12.677576] systemd[1]: Listening on udev Kernel Socket.
[   12.700248] systemd[1]: Created slice System Slice.
[   12.720377] systemd[1]: Created slice system-serial\x2dgetty.slice.
[   12.750495] systemd[1]: Created slice system-getty.slice.
[   12.780204] systemd[1]: Created slice system-systemd\x2dfsck.slice.
[   12.809490] systemd[1]: Listening on udev Control Socket.
[   12.839715] systemd[1]: Listening on networkd rtnetlink socket.
[   12.869544] systemd[1]: Listening on Journal Socket.
[   12.902641] systemd[1]: Starting Apply Kernel Variables...
[   12.949398] systemd[1]: Mounting Temporary Directory...
[   12.966516] systemd[1]: Mounting FUSE Control File System...
[   13.021317] systemd[1]: Starting Create list of required static device nodes for the current kernel...
[   13.073151] systemd[1]: Starting Setup Virtual Console...
[   13.092904] systemd[1]: Listening on Journal Socket (/dev/log).
[   13.111237] systemd[1]: Starting Journal Service...
[   13.129437] systemd[1]: Listening on /dev/initctl Compatibility Named Pipe.
[   13.159392] systemd[1]: Reached target Encrypted Volumes.
[   13.193411] systemd[1]: Starting Remount Root and Kernel File Systems...
[   13.239974] systemd[1]: Listening on LVM2 metadata daemon socket.
[   13.254276] EXT4-fs (sda1): re-mounted. Opts: (null)
[   13.281130] systemd[1]: Listening on Device-mapper event daemon FIFOs.
[   13.312888] systemd[1]: Mounting POSIX Message Queue File System...
[   13.350127] systemd[1]: Created slice User and Session Slice.
[   13.379384] systemd[1]: Reached target Slices.
[   13.404209] systemd[1]: Mounting Debug File System...
[   13.439303] systemd[1]: Reached target Remote File Systems.
[   13.475445] systemd[1]: Mounted Debug File System.
[   13.499624] systemd-journald[95]: File /var/log/journal/7f8e3ae20b1b45a189fb69f91badb983/system.journal corrupted or uncleanly shut down, renaming and replacing.
[   13.514609] systemd[1]: Mounted POSIX Message Queue File System.
[   13.539366] systemd[1]: Mounted FUSE Control File System.
[   13.569461] systemd[1]: Mounted Temporary Directory.
[   13.591668] systemd[1]: Started Apply Kernel Variables.
[   13.622361] systemd[1]: Started Create list of required static device nodes for the current kernel.
[   13.651610] systemd[1]: Started Setup Virtual Console.
[   13.681322] systemd[1]: Started Remount Root and Kernel File Systems.
[   14.284214] systemd[1]: Started Journal Service.
[   14.922195] systemd-journald[95]: Received request to flush runtime journal from PID 1
[   15.809127] random: nonblocking pool is initialized
[   16.582687] Adding 524284k swap on /swapfile.img.  Priority:-1 extents:12 across:9327796k
[   18.925260] EXT4-fs (sda2): mounted filesystem with ordered data mode. Opts: (null)
[   23.619455] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   25.292470] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 100 Mb/s, full duplex, flow control disabled
[   25.302336] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready

fdisk partition information:
Disk /dev/sda: 2.7 TiB, 3000592982016 bytes, 5860533168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0x00000000

Device     Boot Start      End  Sectors    Size Id Type
/dev/sda1  *     2048 33556479 33554432     16G 83 Linux
/dev/sda4           1     2047     2047 1023.5K ee GPT

Partition 4 does not start on physical sector boundary.

gdisk partition information:
GPT fdisk (gdisk) version 0.8.5

Type device filename, or press <Enter> to exit: /dev/sda
Partition table scan:
  MBR: hybrid
  BSD: not present
  APM: not present
  GPT: present

Found valid GPT with hybrid MBR; using GPT.

Disk /dev/sda: 5860533168 sectors, 2.7 TiB
Logical sector size: 512 bytes
Disk identifier (GUID): E6D0FDC0-0A69-47A9-B3DF-672B315FAB76
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 5860533134
Partitions will be aligned on 2048-sector boundaries
Total free space is 2014 sectors (1007.0 KiB)

Number  Start (sector)    End (sector)  Size       Code  Name
   1            2048        33556479   16.0 GiB    8300  Linux filesystem
   2        33556480      5860533134   2.7 TiB     8300  Linux filesystem

Detailed information on the partitions from gdisk:
Partition number (1-2): 1
Partition GUID code: 0FC63DAF-8483-4772-8E79-3D69D8477DE4 (Linux filesystem)
Partition unique GUID: 3C0E4B12-3F36-4A7A-9BF9-77339F129B4F
First sector: 2048 (at 1024.0 KiB)
Last sector: 33556479 (at 16.0 GiB)
Partition size: 33554432 sectors (16.0 GiB)
Attribute flags: 0000000000000000
Partition name: 'Linux filesystem'

Partition number (1-2): 2
Partition GUID code: 0FC63DAF-8483-4772-8E79-3D69D8477DE4 (Linux filesystem)
Partition unique GUID: 286CD015-48D9-436C-97A8-9821D9824830
First sector: 33556480 (at 16.0 GiB)
Last sector: 5860533134 (at 2.7 TiB)
Partition size: 5826976655 sectors (2.7 TiB)
Attribute flags: 0000000000000000
Partition name: 'Linux filesystem'

Need help in restoring u-boot for Netgear Stora MS2110 (6 replies)

$
0
0
Hello guys. Could you please help me with some issues I have with a Netgear Stora MS2110?
This thing was bricked when I got it. I tried to revive it but the official recovery server is history(very bad and disrespectful move if you ask me).
So I started to look for ways to unbrick it and I found this forum. I started to play around with uboot and I have a serial connection established. In my "infinite" wisdom I did a resetenv and now this thing is out of control.

This is what happens when I power up the device:

CPU running @ 1000Mhz L2 running @ 333Mhz
SysClock = 333Mhz , TClock = 200Mhz

DRAM CAS Latency = 5 tRP = 5 tRAS = 18 tRCD=6
DRAM CS[0] base 0x00000000 size 64MB
DRAM CS[1] base 0x04000000 size 64MB
DRAM Total size 128MB 16bit width
Flash: 0 kB
Addresses 8M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (8M - 7M): Done
NAND:256 MB
CRC in Flash: ffffffff, Calculated CRC: 619d86db
+++++++++++++++++++++++++++Checksum Error!++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++Checksum Error!++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++Checksum Error!++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++Checksum Error!++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++Checksum Error!++++++++++++++++++++++++++++++
## Error: environment overflow, "stdin" deleted
## Error: environment overflow, "stdout" deleted
## Error: environment overflow, "stderr" deleted

CPU : Marvell Feroceon (Rev 1)
## Error: environment overflow, "console" deleted
## Error: environment overflow, "mainlineLinux" deleted
## Error: environment overflow, "CASset" deleted
## Error: environment overflow, "enaMonExt" deleted
## Error: environment overflow, "enaCpuStream" deleted
## Error: environment overflow, "enaWrAllo" deleted
## Error: environment overflow, "pexMode" deleted
## Error: environment overflow, "disL2Cache" deleted
## Error: environment overflow, "setL2CacheWT" deleted
## Error: environment overflow, "disL2Prefetch" deleted
## Error: environment overflow, "enaICPref" deleted


And goes on and on and on with these "environment overflow" errors and finaly I get the Marvell prompt.

I did manage to save a backup of my previous default environments but when i try to setenv for example:
setenv serveripaddr 192.168.0.1
I get ## Error: environment overflow, "serveripaddr" deleted

Any setenv command returns these "environment overflow" errors.

I do have a flashware.img on hand but again its having trouble with it and I get these errors.

USB 0: device mode
PEX 0: interface detected no Link.
Net: ## Error: environment overflow, "ethact" deleted
egiga0, egiga1## Error: environment overflow, "ethact" deleted

USB: scanning bus for devices... 2 USB Device(s) found
scanning bus for storage devices... 1 Storage Device(s) found
Trying to load image from USB flash drive using FAT FS
reading /flashware.img

** Unable to read "/flashware.img" from usb 0:1 **
Trying to load image from USB flash drive using ext2 FS partition 0
Failed to mount ext2 filesystem...
** Bad ext2 partition or disk - usb 0:0 **
Trying to load image from USB flash drive using ext2 FS partition 1
....
.................................................................................................

1048576 bytes read
## Error: environment overflow, "filesize" deleted
Missing loadaddr environment variable assuming default (0x400000)!
Update bootcmd
## Error: environment overflow, "bootcmd" deleted
## Error: environment overflow, "console" deleted
Erasing Nand...Writing to Nand... done

bootcmd: setenv bootargs $(console) root=/dev/ram0 rootfstype=squashfs initrd=0x600000,0xffd00000 ramdisk_size=-3072 recovery=usb serverip=0.0.0.0; bootm 0x400000;
## Error: environment overflow, "bootcmd" deleted
Booting the image (@ 0x400000)...
Power Button is pressed!
MPP Sel: 00000530, Data IN Enable: 00020058, Data In Polarity: 00000040, Data In: 00000801
Power Button is released!
MAC: 00:01:4B:C3:DA:75, IP: 10.195.218.117
## Error: environment overflow, "ethaddr" deleted
## Error: environment overflow, "ipaddr" deleted
## Error: environment overflow, "serverip" deleted
## Error: environment overflow, "netmask" deleted
## Error: environment overflow, "image_name" deleted
## Error: environment overflow, "console" deleted
## Error: environment overflow, "bootargs_root" deleted
## Error: environment overflow, "rootpath" deleted
## Error: environment overflow, "ethact" deleted
*** ERROR: `serverip' not set
## Error: environment overflow, "bootargs" deleted
## Booting image at 00800000 ...
Bad Magic Number
Marvell>>

Another weird thing is when i type printenv i get loads of blank screens and at the end
Environment size: 131069/131068 bytes
Marvell>>
The first size is bigger then the second which indicates to me some sort of corrupted data.

So if anyone has had this type of troubles please help me fix it. Im sorry for my bad spelling, english is not my language.
Thanks

Restore and run from NAND stock (1 reply)

$
0
0
Hi dear members!

I'd like to restore the stock firmware. I have many confs and files what I created when I did the Debian install.
Unfortunately I'm not sure what is what.
I dont know if I have mtds dump or not. I have a lot of files. What can be the filename?

Now, I have a working Debian (from SATA) and a serial console.

NSA325> ver

U-Boot 2017.07-tld-1 (Sep 05 2017 - 00:42:03 -0700)
ZyXEL NSA325 2-Bay Power Media Server
gcc (Debian 6.3.0-18) 6.3.0 20170516
GNU ld (GNU Binutils for Debian) 2.28
NSA325> 
NSA325> printenv
arcNumber=4495
baudrate=115200
bootargs=console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 nand_mtd:0x100000(uboot),0x80000(uboot_env),0x80000(key_store),0x80000(info),0xA00000(etc),0xA00000(kernel_1),0x2FC0000(rootfs1),0xA00000(kernel_2),0x2FC0000(rootfs2) root=/root rw init=/init
bootargs_linux=console=ttyS0,115200 mtdparts=nand_mtd:0x100000(u-boot),0x400000(uImage),0x2000000(rootfs),0xDB00000(data), root=LABEL=rootfs loglevel=8
bootargs_stock=console=ttyS0,115200 mtdparts=nand_mtd:0x100000(uboot),0x80000(uboot_env),0x80000(key_store),0x80000(info),0xA00000(etc),0xA00000(kernel_1),0x2FC0000(rootfs1),0xA00000(kernel_2),0x2FC0000(rootfs2) root=/dev/nfs rw init=/init
bootcmd=run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec
bootcmd_exec=run load_uimage; if run load_initrd; then if run load_dtb; then bootm $load_uimage_addr $load_initrd_addr $load_dtb_addr; else bootm $load_uimage_addr $load_initrd_addr; fi; else if run load_dtb; then bootm $load_uimage_addr - $load_dtb_addr; else bootm $load_uimage_addr; fi; fi
bootcmd_linux=setenv bootargs $(bootargs_linux); mw.l f1010100 0020c000; ide reset; ext2load ide 0:1 $(loadaddr) /boot/uImage; ext2load ide 0:1 0x01100000 /boot/uInitrd; bootm $(loadaddr) 0x01100000
bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi
bootdelay=10
bootdev=usb
console=ttyS0,115200
delete=init_usb
device=0:1
devices=usb ide
disks=0 1 2 3
dtb_file=/boot/dts/kirkwood-nsa325.dtb
ethact=egiga0
ethaddr=00:50:43:00:02:02
fileaddr=800000
filesize=3a5018
if_netconsole=ping $serverip
init_ide=ide reset
init_mmc=mmc rescan
init_usb=usb start
ipaddr=192.168.0.200
led_error=orange blinking
led_exit=green off
led_init=green blinking
load_dtb=echo loading DTB $dtb_file ...; load $bootdev $device $load_dtb_addr $dtb_file
load_dtb_addr=0x1c00000
load_initrd=echo loading uInitrd ...; load $bootdev $device $load_initrd_addr /boot/uInitrd
load_initrd_addr=0x1100000
load_uimage=echo loading uImage ...; load $bootdev $device $load_uimage_addr /boot/uImage
load_uimage_addr=0x800000
loadaddr=0x800000
mainlineLinux=yes
mtdids=nand0=orion_nand
mtdparts=mtdparts=orion_nand:0x100000(uboot),0x80000(uboot_env),0x80000(key_store),0x80000(info),0xA00000(etc),0xA00000(kernel_1),0x2FC0000(rootfs1),0xA00000(kernel_2),0x2FC0000(rootfs2)
partition=nand0,2
preboot_nc=run if_netconsole start_netconsole
sata_boot=ide reset; mw 0x800000 0 1; ext2load ide 0:1 0x800000 /boot/uImage; if ext2load ide 0:1 0x1100000 /boot/uInitrd; then bootm 0x800000 0x1100000; else bootm 0x800000; fi
sata_bootcmd=run usb_set_bootargs; run sata_boot
scan_disk=echo running scan_disk ...; scan_done=0; setenv scan_usb "usb start";  setenv scan_ide "ide reset";  setenv scan_mmc "mmc rescan"; for dev in $devices; do if test $scan_done -eq 0; then echo Scan device $dev; run scan_$dev; for disknum in $disks; do if test $scan_done -eq 0; then echo device $dev $disknum:1; if load $dev $disknum:1 $load_uimage_addr /boot/uImage 1; then scan_done=1; echo Found bootable drive on $dev $disknum; setenv device $disknum:1; setenv bootdev $dev; fi; fi; done; fi; done
scan_ide=ide reset
scan_mmc=mmc rescan
scan_usb=usb start
serverip=192.168.0.250
set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts $custom_params
start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version;
stderr=serial
stdin=serial
stdout=serial
uenv_addr=0x810000
uenv_import=echo importing envs ...; env import -t $uenv_addr $filesize
uenv_init_devices=setenv init_usb "usb start";  setenv init_ide "ide reset";  setenv init_mmc "mmc rescan"; for devtype in $devices; do run init_$devtype; done;
uenv_load=echo uenv load...; run uenv_init_devices; setenv uenv_loaded 0; for devtype in $devices;  do for disknum in 0; do run uenv_read_disk; done; done;
uenv_loaded=0
uenv_read=echo loading envs from $devtype $disknum ...; if load $devtype $disknum:1 $uenv_addr /boot/uEnv.txt; then setenv uenv_loaded 1; fi
uenv_read_disk=if test $devtype -eq mmc; then if $devtype part; then run uenv_read;  fi; else if $devtype part $disknum; then run uenv_read; fi;  fi
usb_boot=echo USB boot... ; run load_dtb; run load_uimage; if run load_initrd; then bootm 0x800000 0x1100000 0x1c00000; else bootm 0x800000 - 0x1c00000; fi
usb_ready_retry=15

Environment size: 4474/131068 bytes
NSA325>

Please help, what can I do next.
Thank you!

Can't boot without netconsole listener (2 replies)

$
0
0
This has been bothering me for a while, but not enough to do anything about it until now. I've had netconsole running on my Dockstar within U-boot for some time now and it works great except for one problem. If the server isn't listening the Dockstar won't boot. The light flashes green forever. I even got an APC 1500VA battery backup power supply (which turned out to be a piece of crap) because if I'm away when the power goes out my Dockstar won't boot when the power comes back. Today the power went out and the APC provided all of 5 minutes worth of backup power with a very light load. I need to change the server to my desktop which I can turn on remotely and ssh to, but it still bothers me why this happens. I figure it has something to do with the environment variables, but I don't see anything obvious.
bootcmd_exec=run load_uimage; if run load_initrd; then if run load_dtb; then bootm $load_uimage_addr $load_initrd_addr $load_dtb_addr; else bootm $load_uimage_addr $load_initrd_addr; fi; else if run load_dtb; then bootm $load_uimage_addr - $load_dtb_addr; else bootm $load_uimage_addr; fi; fi
bootcmd=run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec
bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi
bootdelay=10
bootdev=usb
device=0:1
devices=usb ide mmc
disks=0 1 2 3
ethact=egiga0
if_netconsole=ping $serverip
led_error=orange blinking
led_exit=green off
led_init=green blinking
load_dtb_addr=0x1c00000
load_initrd_addr=0x1100000
load_uimage_addr=0x800000
load_dtb=echo loading DTB $dtb_file ...; load $bootdev $device $load_dtb_addr $dtb_file
load_initrd=echo loading uInitrd ...; load $bootdev $device $load_initrd_addr /boot/uInitrd
load_uimage=echo loading uImage ...; load $bootdev $device $load_uimage_addr /boot/uImage
mainlineLinux=yes
mtdids=nand0=orion_nand
partition=nand0,2
scan_disk=echo running scan_disk ...; scan_done=0; setenv scan_usb "usb start";  setenv scan_ide "ide reset";  setenv scan_mmc "mmc rescan"; for dev in $devices; do if test $scan_done -eq 0; then echo Scan device $dev; run scan_$dev; for disknum in $disks; do if test $scan_done -eq 0; then echo device $dev $disknum:1; if load $dev $disknum:1 $load_uimage_addr /boot/uImage 1; then scan_done=1; echo Found bootable drive on $dev $disknum; setenv device $disknum:1; setenv bootdev $dev; fi; fi; done; fi; done
set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts $custom_params
stderr=serial
stdin=serial
stdout=serial
uenv_addr=0x810000
uenv_import=echo importing envs ...; env import -t $uenv_addr $filesize
uenv_init_devices=setenv init_usb "usb start";  setenv init_ide "ide reset";  setenv init_mmc "mmc rescan"; for devtype in $devices; do run init_$devtype; done;
uenv_load=run uenv_init_devices; setenv uenv_loaded 0; for devtype in $devices;  do for disknum in 0; do run uenv_read_disk; done; done;
uenv_read_disk=if test $devtype -eq mmc; then if $devtype part; then run uenv_read;  fi; else if $devtype part $disknum; then run uenv_read; fi;  fi
uenv_read=echo loading envs from $devtype $disknum ...; if load $devtype $disknum:1 $uenv_addr /boot/uEnv.txt; then setenv uenv_loaded 1; fi
usb_ready_retry=15
arcNumber=2998
mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)
ethaddr=00:11:A5:7A:7E:73
preboot_nc=setenv nc_ready 0; for pingstat in 1 2 3 4 5; do; sleep 1; if run if_netconsole; then setenv nc_ready 1; fi; done; if test $nc_ready -eq 1; then run start_netconsole; fi
preboot=run preboot_nc
ipaddr=192.168.0.115
serverip=192.168.0.100
serverport=614
start_netconsole=setenv ncip $serverip:$serverport; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version;
custom_params=zswap.enabled=1 zswap.compressor=lz4

Thanks in advance for any insight.
-JT

Zyxel NSA325v2 - uBoot flashed but Debian not booting (1 reply)

$
0
0
Dear experts,

I have a problem with my Zyxel NSA325v2 after uBoot Update to "U-Boot 2017.07-tld-1"

After the flash-procedure and after rebooting the device I always get the message "Unknown command 'host'":


U-Boot 2017.07-tld-1 (Sep 05 2017 - 00:42:03 -0700)
ZyXEL NSA325 2-Bay Power Media Server
SoC:   Kirkwood 88F6282_A1
DRAM:  512 MiB
WARNING: Caches not enabled
NAND:  128 MiB
In:    serial
Out:   serial
Err:   serial
Net:   egiga0
MV88E1318 PHY initialized on egiga0
Hit any key to stop autoboot:  0 
Unknown command 'host' - try 'help'
Unknown command 'host' - try 'help'

and debian is not booting.

Environment Data via printenv:
arcNumber=4495
baudrate=115200
boot_a_script=load ${devtype} ${devnum}:${distro_bootpart} ${scriptaddr} ${prefix}${script}; source ${scriptaddr}
boot_extlinux=sysboot ${devtype} ${devnum}:${distro_bootpart} any ${scriptaddr} ${prefix}${boot_syslinux_conf}
boot_prefixes=/ /boot/
boot_script_dhcp=boot.scr.uimg
boot_scripts=boot.scr.uimg boot.scr
boot_syslinux_conf=extlinux/extlinux.conf
boot_targets=host1 host0
bootcmd=run distro_bootcmd
bootcmd_host0=setenv devnum 0; run host_boot
bootcmd_host1=setenv devnum 1; run host_boot
bootdelay=2
bootm_size=0x10000000
devnum=0
distro_bootcmd=setenv scsi_need_init; for target in ${boot_targets}; do run bootcmd_${target}; done
eth1addr=00:00:11:22:33:45
eth3addr=00:00:11:22:33:46
eth5addr=00:00:11:22:33:47
ethact=egiga0
ethaddr=xx:xx:xx:xx:xx:xx (address cleared by me)
fdt_addr_r=0xc00000
host_boot=if host dev ${devnum}; then setenv devtype host; run scan_dev_for_boot_part; fi
ipaddr=1.2.3.4
kernel_addr_r=0x1000000
mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)
pxefile_addr_r=0x2000
ramdisk_addr_r=0x2000000
sata_boot=if sata dev ${devnum}; then setenv devtype sata; run scan_dev_for_boot_part; fi
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
scan_dev_for_extlinux=if test -e ${devtype} ${devnum}:${distro_bootpart} ${prefix}${boot_syslinux_conf}; then echo Found ${prefix}${boot_syslinux_conf}; run boot_extlinux; echo SCRIPT FAILED: continuing...; fi
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
scriptaddr=0x1000
scsi_boot=run scsi_init; if scsi dev ${devnum}; then setenv devtype scsi; run scan_dev_for_boot_part; fi
scsi_init=if ${scsi_need_init}; then setenv scsi_need_init false; scsi scan; fi
stderr=serial
stdin=serial
stdout=serial
virtio_boot=if virtio dev ${devnum}; then setenv devtype virtio; run scan_dev_for_boot_part; fi

Environment size: 2437/131068 bytes

If I enter the following instructions:
usb start  
 ext2load usb 0:1 0x800000 /boot/uboot.2016.05-tld-1.environment.scr  
 source 0x800000  
 printenv  
 setenv devices 'usb ide'  
 setenv dtb_file '/boot/dts/kirkwood-nsa325.dtb'  
 setenv ethaddr xx:xx:xx:xx:xx:xx   (address cleared by me)
 boot

debian is booting and I can login:

Debian GNU/Linux 10 debian ttyS0

debian login: root
Password: 
Last login: Wed Dec 31 16:01:16 PST 1969 on ttyS0
Linux debian 5.2.9-kirkwood-tld-1 #1 PREEMPT Sat Aug 17 15:00:56 PDT 2019 armv5tel

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.
Check of USB Stick (Ubuntu Terminal):

ls -lart

drwxr-xr-x  11 root root     4096 Jan  1  1970 var
drwxr-xr-x   2 root root     4096 Jan  1  2011 sys
drwxr-xr-x   2 root root     4096 Jan 22  2012 proc
drwxr-xr-x   2 root root     4096 Jan 22  2012 home
drwx------   2 root root    16384 Feb 24  2012 lost+found
drwxr-xr-x  10 root root     4096 Feb 24  2012 usr
drwxr-xr-x   2 root root     4096 Feb 24  2012 srv
drwxr-xr-x   2 root root     4096 Feb 24  2012 opt
drwxr-xr-x   5 root root     4096 Feb 24  2012 dev
drwxr-xr-x   2 root root     4096 Feb  8  2013 run
drwxr-xr-x   2 root root     4096 Feb 10  2015 mnt
drwxr-xr-x   2 root root     4096 Aug 25  2019 bin
drwxr-xr-x   2 root root     4096 Aug 25  2019 sbin
drwxr-xr-x  13 root root     4096 Aug 25  2019 lib
drwxr-xr-x   3 root root     4096 Jul 29 13:18 boot
drwx------   5 root root     4096 Jul 29 21:46 root
-rw-r--r--   1 root root  1048576 Jul 29 21:48 mtd0
-rw-r--r--   1 root root  4194304 Jul 29 21:48 mtd1
-rw-r--r--   1 root root 33554432 Jul 29 21:48 mtd2
-rw-r--r--   1 root root 95420416 Jul 29 21:48 mtd3
-rw-r--r--   1 root root     2298 Jul 29 21:49 current_envs.txt
drwxr-xr-x  21 root root     4096 Jul 29 22:04 .
drwxr-xr-x   3 root root     4096 Jul 29 22:29 media
drwxrwxrwt   2 root root     4096 Jul 30 22:39 tmp
drwxr-xr-x  57 root root     4096 Jul 30 22:39 etc
drwxr-x---+  4 root root     4096 Jul 30 22:45 ..


May someone help me please?



Kind regards
Mark

RN10400 (no replies)

$
0
0
Hello,

i have a old Netgear readynas model name RN10400 model no RND-4D. Well okay, This nas i have a problem with because it not start up. it is 4x3Tb HD. disks. And every disk start up and runing well. But i can't get enything out of it.
And in the display is standing. "Boot from USB failure....."

I don't know what ReadyNas os ver. firmware is installed. But i have read from netgear support that shall be first updated to ReadyNas Os 6.2.5 or 6.3.5 then upgard to ReadyNas os 6.5.2 and to 6.10.X or else it go broken.

And the netgear say this product/software is end of life.

So is there enyone who can help me with this.? And help me make a USB so i can upgard my Nas and get it up and going again.
Netgear not support enything, Not sell new motherboard nothing. I saw on internet a shop in England who had new motherboard to my RN10400 but they was out of stock. Mayby not so strange when they go broken very fast.

Well can somebody help me with this. I hope so.

Thanks..

2015.10 U-Boot for MEDION LIFE P89626 (1 reply)

$
0
0
the u-boot from this thread works
https://forum.doozan.com/read.php?3,16017

followed as described and flashed the nand.

as a startingpint i used my own old gentoo image but it schould also work with the arch-linux image.

used an serial connection to change the the env var dtb_file to /boot/dts/ox820-stg212.dtb
and bevor i flashed the new nand i noted the old mac address so that ic an also set it back to the old.

its working great

RN104 bricked (3 replies)

$
0
0
Hi All,

I hope someone can help me with restoring my NAS to its default readynas OS 6
The previous seller has installed Debian on it and I wanted to restore the NAS to its sock OS 6 and while I was doing that I have erase the entire nand chip by command: nand erase.chip

Now whenever I power on my NAS I am getting following

BootROM 1.20
Booting from NAND flash
BootROM: Bad header at offset 00000000
BootROM: Bad header at offset 00010000
BootROM: Bad header at offset 00020000
BootROM: Bad header at offset 00030000
BootROM: Bad header at offset 00040000
BootROM: Bad header at offset 00050000
....
BootROM: Bad header at offset 012A0000
BootROM: Bad header at offset 012B0000
BootROM: Bad header at offset 012C0000
BootROM: Bad header at offset 012D0000

I have manage to get uboot for my model from readynas OS 6 pack from netgear website and now I am trying to restore.
Viewing all 902 articles
Browse latest View live