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

Problems with Stora MS2000/MS2110 NAND replacement (no replies)

$
0
0
Hello,

I got two units of Netgear Stora MS2110/2000 (same hardware, but 2110 are sold with 1TB drive inside). Second unit had dead flash with almost no good cells left and producing ECC errors, so I decided to replace NAND chip. And now story begins:
- tried to buy same Samsung K9F2G08U0C-SCB0 from Aliexpress - both 5 chips arrived DOA. Symptoms were - no TTL output, no LED lights/blinks, only one chip was recognized only one time from U-Boot via kwboot, but as 1MB/4KB pagesize. So I throw them.
- After few days investigation found that Samsung NAND chips of this type are EOL and it's no more on table for selling. Looked for compatible alternative and based on datasheets decided to order Cypress/Spansion S34ML02G100TFI000. On a paper both chips are similar and should be interchangeable, but when I replaced Samsung one with Spansion one problems began. Symptoms - when I load via kwboot/TTL original u-boot dump, chip is recognized with correct size, page size, eraseblock and so on. I can flash it with orifginal firmware files (nand dumps without ECC and OOB), flashing ends without any errors and complaints, but after reboot unit is completely dead - no TTL output from U-boot, no lights, just a spinning fan. Tried to boot unit via kwboot with original u-boot and unit is booting from NAND, tried to flash Bodhi's 2017.05 U-boot + recovery kernel/rootfs on USB for Stora - same problem - it boots via serial, but not in standalone. At this moment I am bit lost where to look and what to change - not sure if this is a problem of U-Boot/Kernel NAND support or just NAND flash controller is not recognizing NAND chip and refuses to initialize it.
For convenience datasheets are attached. Tomorrow I will get U-boot logs too. I really need advise where to look for clues and will be happy to share any progress which I will gain.

Boot with Ext4 - U-Boot for Pogoplug V3 (OXNAS OX820) (1 reply)

$
0
0
Hey Bodhi,

Thanks for keeping these devices alive. Quick question, is there a environment flag we have to set to boot from ext4? I can boot from ext2 and ext3 but ext4 fails:

U-Boot 2015.10-tld-2 (Oct 21 2017 - 22:00:02 -0700)
OXNAS OX820

DRAM:  128 MiB
NAND:  128 MiB
In:    serial
Out:   serial
Err:   serial
Net:   dwmac.40400000
Hit any key to stop autoboot:  0
starting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 3 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found

Reset IDE: SATA PHY not ready for device 0
ide_preinit failed

Partition Map for USB device 0  --   Partition Type: DOS

Part    Start Sector    Num Sectors     UUID            Type
  1     2048            104857600       00062524-01     83
  2     104859648       -1469549776     00062524-02     83
loading envs from usb 0 ...
** File not found /boot/uEnv.txt **

no IDE devices available
running scan_disk ...
Scan device usb
device usb 0:1
** File not found /boot/uImage **
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: SATA PHY not ready for device 0
ide_preinit failed
device ide 0:1
** Bad device size - ide 0 **
device ide 1:1
** Bad device ide 1 **
device ide 2:1
** Bad device ide 2 **
device ide 3:1
** Bad device ide 3 **
loading uImage ...
** File not found /boot/uImage **
loading uInitrd ...
** File not found /boot/uInitrd **
loading DTB /boot/dts/ox820-pogoplug-pro.dtb ...
** File not found /boot/dts/ox820-pogoplug-pro.dtb **
Wrong Image Format for bootm command
ERROR: can't get kernel image!
resetting ...


TerraMaster F2NAS2 u-boot program (2 replies)

$
0
0
I have a TerraMaster F2-NAS2. Its a Marvell kirkwood (88F6282). The board is capable of kwboot a u-boot image.

I have constructed a .dts file and used this to build a linux uImage, which boots successfully (I have not attempted to build u-boot w/ this yet tho).

I have the original u-boot image (extracted from the mtd0) and can boot it from kwboot.
But, when i save the image into mtd0, it does not boot from it (nothing happens on the serial).

I have read back out mtd0 after programming it, and all seems well.

if i boot it w/ kwboot, i can save/restore environment variables from the other half of the space.

Does anyone have any suggestions why the board will not boot when this is programmed to flash, but will boot it from kwboot?

The original flash layout was:
mtd0: 00100000 00020000 "bootloader"
mtd1: 00400000 00020000 "data"
mtd2: 01000000 00020000 "backup-kernel"
mtd3: 06400000 00020000 "backup-system"
mtd4: 01000000 00020000 "kernel"
mtd5: 17700000 00020000 "rootfs"

The system has a single nand device (512M).

i've tried writing the u-boot back in using both itself (booted from kwboot) w/ nand write.e 0 0 0x80000 (after loading it w/ tftpboot @ 0). I've also tried writing it back in using linux (both the mfg uImage and my own). in all cases, when i apply power, nothing happens until i kwboot it.

um, suggestions?

(ps, why did it get erased, well, mea culpa as i was playing w/ the partitioning w/ my own uImage :)

broken uboot? (7 replies)

$
0
0
I have a GoFlex home. I had everything working including rescue boot. After upgrading via this: https://forum.doozan.com/read.php?3,12381 I can no longer completely boot to disk, usb, or rescue. Usb or rescue wont boot at all and hdd boots to kernel panic

I think I broke something.

This is archlinux on HDD

U-Boot via serial
U-Boot 2017.07-tld-1 (Sep 05 2017 - 00:21:31 -0700)
Seagate GoFlex Home

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
Hit any key to stop autoboot:  0
starting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 2 USB Device(s) found
       scanning usb for storage devices...
Use USB retry period from the environment: 15 second(s)
1 Storage Device(s) found


Reset IDE: Bus 0: OK Bus 1: not available
  Device 0: Model: ST3000DM001-9YN166 Firm: CC9F Ser#: W1F13E9D
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 2861588.4 MB = 2794.5 GB (5860533168 x 512)
Unknown command 'mmc' - try 'help'

Partition Map for USB device 0  --   Partition Type: DOS

Part    Start Sector    Num Sectors     UUID            Type
  1     2048            30029202        00000000-01     83

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0
loading envs from usb 0 ...
** File not found /boot/uEnv.txt **

Partition Map for IDE device 0  --   Partition Type: EFI

Part    Start LBA       End LBA         Name
        Attributes
        Type GUID
        Partition GUID
  1     0x00000800      0x028007ff      "Linux filesystem"
        attrs:  0x0000000000000000
        type:   0fc63daf-8483-4772-8e79-3d69d8477de4
        type:   linux
        guid:   41ba78b9-cb08-419e-9383-738a750e24ad
  2     0x02800800      0x15d50a38e     "Linux filesystem"
        attrs:  0x0000000000000000
        type:   0fc63daf-8483-4772-8e79-3d69d8477de4
        type:   linux
        guid:   f9185ed6-b463-4fc5-bd8b-2be47709f6ce
Unknown command 'mmc' - try 'help'
running scan_disk ...
Scan device usb
device usb 0:1
1 bytes read in 323 ms (0 Bytes/s)
Found bootable drive on usb 0
loading uImage ...
4600064 bytes read in 574 ms (7.6 MiB/s)
loading uInitrd ...
** File not found /boot/uInitrd **
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:   Linux-4.4.97-1-ARCH
   Created:      2017-11-11   4:51:55 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    4600000 Bytes = 4.4 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK

Starting kernel ...


[   22.274945] VFS: Cannot open root device "LABEL=rootfs" or unknown-block(0,0): error -6
[   22.282986] Please append a correct "root=" boot option; here are the available partitions:
[   22.291466] 0100            8192 ram0  (driver?)
[   22.296151] 0101            8192 ram1  (driver?)
[   22.300795] 0102            8192 ram2  (driver?)
[   22.305484] 0103            8192 ram3  (driver?)
[   22.310126] 0104            8192 ram4  (driver?)
[   22.314810] 0105            8192 ram5  (driver?)
[   22.319456] 0106            8192 ram6  (driver?)
[   22.324104] 0107            8192 ram7  (driver?)
[   22.328771] 0108            8192 ram8  (driver?)
[   22.333417] 0109            8192 ram9  (driver?)
[   22.338084] 010a            8192 ram10  (driver?)
[   22.342817] 010b            8192 ram11  (driver?)
[   22.347571] 010c            8192 ram12  (driver?)
[   22.352304] 010d            8192 ram13  (driver?)
[   22.357058] 010e            8192 ram14  (driver?)
[   22.361791] 010f            8192 ram15  (driver?)
[   22.366549] 0800      2930266584 sda  driver: sd
[   22.371193]   0801        20971520 sda1 41ba78b9-cb08-419e-9383-738a750e24ad
[   22.378300]   0802      2909294023 sda2 f9185ed6-b463-4fc5-bd8b-2be47709f6ce
[   22.385406] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[   22.393707] CPU: 0 PID: 1 Comm: swapper Not tainted 4.4.97-1-ARCH #1
[   22.400086] Hardware name: Seagate GoFlex Home
[   22.404568] [<c001047c>] (unwind_backtrace) from [<c000d978>] (show_stack+0x10/0x14)
[   22.412348] [<c000d978>] (show_stack) from [<c00cd690>] (panic+0x88/0x208)
[   22.419264] [<c00cd690>] (panic) from [<c08512c0>] (mount_block_root+0x1b8/0x278)
[   22.426787] [<c08512c0>] (mount_block_root) from [<c0851570>] (mount_root+0xf4/0x120)
[   22.434650] [<c0851570>] (mount_root) from [<c08516f4>] (prepare_namespace+0x158/0x1b8)
[   22.442690] [<c08516f4>] (prepare_namespace) from [<c0850e98>] (kernel_init_freeable+0x1f8/0x24c)
[   22.451610] [<c0850e98>] (kernel_init_freeable) from [<c0646e40>] (kernel_init+0x8/0xe8)
[   22.459739] [<c0646e40>] (kernel_init) from [<c000a4b0>] (ret_from_fork+0x14/0x24)
[   22.467343] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)

printenv
arcNumber=3338
bootargs=console=${console},${baudrate} ${optargs} root=/dev/sd${letter}1 rw rootwait ${mtdparts}
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 $loa
d_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-pogo_e02.dtb
ethact=egiga0
ethaddr=00:10:75:xx:xx:xx
if_netconsole=ping $serverip
ipaddr=192.168.0.231
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
mtddevname=u-boot
mtddevnum=0
mtdids=nand0=orion_nand
mtdparts=mtdparts=orion_nand:1M(u-boot),-(rootfs)
partition=nand0,0
preboot_nc=run if_netconsole start_netconsole
scan_disk=echo running scan_disk ...; scan_done=0; setenv scan_usb "usb start";  setenv scan_ide "ide reset";  setenv scan_mmc "mmc rescan"; for dev in $devices; do if test $scan_done -eq 0; then echo Scan device $dev; run scan_$dev; for disknum in $disks; do if test $scan_done -eq 0; then echo device $dev $disknum:1; if load $dev $disknum:1 $load_uimage_addr /boot/uImage 1; then scan_done=1; echo Found bootable drive on $dev $disknum; setenv device $disknum:1; setenv bootdev $dev; fi; fi; done; fi; done
serverip=192.168.0.220
set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts $custom_params
setargs=setenv bootargs console=${console},${baudrate} ${optargs} root=/dev/sd${letter}1 rw rootwait ${mtdparts}
start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version;
stderr=serial
stdin=serial
stdout=serial
uenv_addr=0x810000
uenv_import=echo importing envs ...; env import -t $uenv_addr $filesize
uenv_init_devices=setenv init_usb "usb start";  setenv init_ide "ide reset";  setenv init_mmc "mmc rescan"; for devtype in $devices; do run init_$devtype; done;
uenv_load=run uenv_init_devices; setenv uenv_loaded 0; for devtype in $devices;  do for disknum in 0; do run uenv_read_disk; done; done;
uenv_read=echo loading envs from $devtype $disknum ...; if load $devtype $disknum:1 $uenv_addr /boot/uEnv.txt; then setenv uenv_loaded 1; fi
uenv_read_disk=if test $devtype -eq mmc; then if $devtype part; then run uenv_read;  fi; else if $devtype part $disknum; then run uenv_read; fi;  fi
usb_ready_retry=15

I have a feeling I am missing the label on the HDD SDA1 partition, but thats just a guess. Im not sure how to confirm or fix. The GFH seems to ignore booting from usb (but does recognize its there).

This is a fresh OS install, so I dont mind wiping it. But how do I get back to either rescue or some linux cli to do that?

Thanks

Bricked NSA320S during 2017.07 flash (no replies)

$
0
0
Hello,

my power plug stopped working while I was trying to flash Kirkwood on my NSA320S. Now all that is lighting up are the blue power-LED and the yellow/green LED next to it and there is nothing on the serial console. I guess it's bricked. Is there still a chance to get it working again?

Thanks

Stuck after u-boot update (NetgearSTORA) (1 reply)

$
0
0
Hi there,

i updated U-Boot of my Netgear Stora, following the instructions here: https://forum.doozan.com/read.php?3,12381
and also tried to run a Debian rootfs from a usb stick.

I am not sure what went wrong an why the System does not boot up.

would be nice to get any advice

U-Boot 2017.07-tld-1 (Sep 05 2017 - 00:38:05 -0700)
Netgear Stora MS2110

SoC:   Kirkwood 88F6281_A0
DRAM:  128 MiB
WARNING: Caches not enabled
NAND:  256 MiB
In:    serial
Out:   serial
Err:   serial
Net:   egiga0
PHY reset timed out
88E1116 Initialized on egiga0
Hit any key to stop autoboot:  0
starting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 2 USB Device(s) found
       scanning usb for storage devices...
Use USB retry period from the environment: 15 second(s)
1 Storage Device(s) found

Reset IDE: ide_preinit failed
Unknown command 'mmc' - try 'help'

Partition Map for USB device 0  --   Partition Type: EFI

Part    Start LBA       End LBA         Name
        Attributes
        Type GUID
        Partition GUID
  1     0x00000800      0x00ee6bde      " "
        attrs:  0x0000000000000000
        type:   0fc63daf-8483-4772-8e79-3d69d8477de4
        type:   linux
        guid:   1c42b9ef-f6ca-4b08-8e31-52d4cd41f321

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0
loading envs from usb 0 ...
** File not found /boot/uEnv.txt **

no IDE devices available
Unknown command 'mmc' - try 'help'
running scan_disk ...
Scan device usb
device usb 0:1
1 bytes read in 723 ms (0 Bytes/s)
Found bootable drive on usb 0
loading uImage ...
3833461 bytes read in 918 ms (4 MiB/s)
loading uInitrd ...
7245696 bytes read in 987 ms (7 MiB/s)
loading DTB /boot/dts/kirkwood-netgear_stora_ms2000.dtb ...
11869 bytes read in 2645 ms (3.9 KiB/s)
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-4.12.1-kirkwood-tld-1
   Created:      2018-03-05  21:09:10 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3833397 Bytes = 3.7 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 01100000 ...
   Image Name:   initramfs-4.12.1-kirkwood-tld-1
   Created:      2017-07-24   0:18:23 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    7245632 Bytes = 6.9 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 01c00000
   Booting using the fdt blob at 0x1c00000
   Loading Kernel Image ... OK
   Loading Ramdisk to 03917000, end 03ffff40 ... OK
   Loading Device Tree to 03911000, end 03916e5c ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.12.1-kirkwood-tld-1 (root@tldDebian) (gcc version 4.9.2 (Debian 4.9.2-10) ) #1 PREEMPT Sat Jul 15 21:40:50 PDT 2017
[    0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] OF: fdt: Machine model: NETGEAR MS2000 / MS2110 aka Stora
[    0.000000] bootconsole [earlycon0] enabled
[    0.000000] Memory policy: Data cache writeback
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512
[    0.000000] Kernel command line: console=ttyS0,115200n8 earlyprintk
[    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: 116496K/131072K available (8192K kernel code, 716K rwdata, 1972K rodata, 1024K init, 288K bss, 14576K 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 : 0xc8800000 - 0xff800000   ( 880 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xc8000000   ( 128 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 0xc0900000   (9184 kB)
[    0.000000]       .init : 0xc0c00000 - 0xc0d00000   (1024 kB)
[    0.000000]       .data : 0xc0d00000 - 0xc0db3274   ( 717 kB)
[    0.000000]        .bss : 0xc0db9b9c - 0xc0e01e60   ( 289 kB)
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302233 ns
[    0.000009] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[    0.007992] Switching to timer-based delay loop, resolution 5ns
[    0.014578] Console: colour dummy device 80x30
[    0.019217] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=2000000)
[    0.029934] pid_max: default: 32768 minimum: 301
[    0.034894] Security Framework initialized
[    0.039294] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.046044] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.054360] CPU: Testing write buffer coherency: ok
[    0.060610] Setting up static identity map for 0x100000 - 0x100058
[    0.067219] mvebu-soc-id: MVEBU SoC ID=0x6281, Rev=0x2
[    0.076314] devtmpfs: initialized
[    0.084902] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.094979] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.101725] prandom: seed boundary self test passed
[    0.111265] prandom: 100 self tests passed
[    0.115476] pinctrl core: initialized pinctrl subsystem
[    0.122232] NET: Registered protocol family 16
[    0.127282] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.136249] cpuidle: using governor ladder
[    0.140616] cpuidle: using governor menu
[    0.145099] Feroceon L2: Enabling L2
[    0.148884] Feroceon L2: Cache support initialised.
[    0.154295] [Firmware Info]: /ocp@f1000000/ethernet-controller@72000/ethernet0-port@0: local-mac-address is not set
[    0.171064] No ATAGs?
[    0.182186] vgaarb: loaded
[    0.187736] SCSI subsystem initialized
[    0.192209] usbcore: registered new interface driver usbfs
[    0.197885] usbcore: registered new interface driver hub
[    0.203458] usbcore: registered new device driver usb
[    0.209902] clocksource: Switched to clocksource orion_clocksource
[    0.323901] VFS: Disk quotas dquot_6.6.0
[    0.328008] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.347802] NET: Registered protocol family 2
[    0.353184] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.360330] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.366815] TCP: Hash tables configured (established 1024 bind 1024)
[    0.373404] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.379366] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.385981] NET: Registered protocol family 1
[    0.390969] RPC: Registered named UNIX socket transport module.
[    0.397007] RPC: Registered udp transport module.
[    0.401910] RPC: Registered tcp transport module.
[    0.406720] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.413700] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.421481] audit: initializing netlink subsys (disabled)
[    0.427521] Initialise system trusted keyrings
[    0.432171] audit: type=2000 audit(0.417:1): state=initialized audit_enabled=0 res=1
[    0.440147] Key type blacklist registered
[    0.444402] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[    0.451123] zbud: loaded
[    0.454901] NFS: Registering the id_resolver key type
[    0.460208] Key type id_resolver registered
[    0.464499] Key type id_legacy registered
[    0.468630] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.475504] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.482229] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.489618] fuse init (API version 7.26)
[    0.494122] orangefs_debugfs_init: called with debug mask: :none: :0:
[    0.501011] orangefs_init: module version upstream loaded
[    0.506522] SGI XFS with ACLs, security attributes, realtime, no debug enabled
[    2.559910] random: fast init done
[    7.558394] Key type asymmetric registered
[    7.562885] Asymmetric key parser 'x509' registered
[    7.567939] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    7.575662] io scheduler noop registered
[    7.579688] io scheduler deadline registered
[    7.584218] io scheduler cfq registered (default)
[    7.590605] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    7.600293] mvebu-pcie mbus@f1000000:pcie-controller@82000000: PCI host bridge to bus 0000:00
[    7.608954] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    7.615378] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xefffffff]
[    7.622404] pci_bus 0000:00: root bus resource [bus 00-ff]
[    7.628390] PCI: bus0: Fast back to back transfers disabled
[    7.634129] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    7.642465] PCI: bus1: Fast back to back transfers enabled
[    7.648141] pci 0000:00:01.0: PCI bridge to [bus 01]
[    7.653893] mv_xor f1060800.xor: Marvell shared XOR driver
[    7.720810] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy sg intr )
[    7.728767] mv_xor f1060900.xor: Marvell shared XOR driver
[    7.790807] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy sg intr )
[    7.798998] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    7.807093] console [ttyS0] disabled
[    7.810923] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 26, base_baud = 12500000) is a 16550A
[    7.820114] console [ttyS0] enabled
[    7.820114] console [ttyS0] enabled
[    7.827206] bootconsole [earlycon0] disabled
[    7.827206] bootconsole [earlycon0] disabled
[    7.846237] loop: module loaded
[    7.850157] sata_mv f1080000.sata: slots 32 ports 2
[    7.858394] scsi host0: sata_mv
[    7.862136] scsi host1: sata_mv
[    7.865573] ata1: SATA max UDMA/133 irq 33
[    7.869692] ata2: SATA max UDMA/133 irq 33
[    7.874738] nand: device found, Manufacturer ID: 0xec, Chip ID: 0xda
[    7.881244] nand: Samsung NAND 256MiB 3,3V 8-bit
[    7.885885] nand: 256 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    7.893524] Scanning device for bad blocks
[    7.927819] Bad eraseblock 280 at 0x000002300000
[    7.937153] Bad eraseblock 324 at 0x000002880000
[    8.047119] Bad eraseblock 1304 at 0x00000a300000
[    8.132061] 3 ofpart partitions found on MTD device orion_nand
[    8.137957] Creating 3 MTD partitions on "orion_nand":
[    8.143183] 0x000000000000-0x000000100000 : "u-boot"
[    8.149749] 0x000000100000-0x000000700000 : "uImage"
[    8.156400] 0x000000700000-0x000010000000 : "root"
[    8.166217] libphy: Fixed MDIO Bus: probed
[    8.171464] libphy: orion_mdio_bus: probed
[    8.175650] [Firmware Warn]: /ocp@f1000000/mdio-bus@72004/ethernet-phy@8: Whitelisted compatible string. Please remove
[    8.187424] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    8.214627] ata1: SATA link down (SStatus 0 SControl F300)
[    8.561386] ata2: SATA link down (SStatus 0 SControl F300)
[    9.296544] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 00:26:f2:6e:85:1f
[    9.305455] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    9.312066] ehci-pci: EHCI PCI platform driver
[    9.316599] ehci-orion: EHCI orion driver
[    9.320903] orion-ehci f1050000.ehci: EHCI Host Controller
[    9.326450] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[    9.334384] orion-ehci f1050000.ehci: irq 30, io mem 0xf1050000
[    9.369944] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[    9.376281] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    9.383138] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    9.390426] usb usb1: Product: EHCI Host Controller
[    9.395327] usb usb1: Manufacturer: Linux 4.12.1-kirkwood-tld-1 ehci_hcd
[    9.402082] usb usb1: SerialNumber: f1050000.ehci
[    9.407596] hub 1-0:1.0: USB hub found
[    9.411485] hub 1-0:1.0: 1 port detected
[    9.416174] usbcore: registered new interface driver usb-storage
[    9.422669] mousedev: PS/2 mouse device common for all mice
[    9.769944] usb 1-1: new high-speed USB device number 2 using orion-ehci
[    9.961019] usb 1-1: New USB device found, idVendor=0781, idProduct=5567
[    9.967783] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    9.975001] usb 1-1: Product: Cruzer Blade
[    9.979122] usb 1-1: Manufacturer: SanDisk
[    9.983263] usb 1-1: SerialNumber: 200608757011CCE0899C
[    9.989402] usb-storage 1-1:1.0: USB Mass Storage device detected
[    9.995995] scsi host2: usb-storage 1-1:1.0
[   10.489938] rtc-mv f1010300.rtc: internal RTC not ticking
[   10.495587] i2c /dev entries driver
[   10.506215] rtc-pcf8563 0-0051: rtc core: registered rtc-pcf8563 as rtc0
[   10.516333] hidraw: raw HID events driver (C) Jiri Kosina
[   10.522296] drop_monitor: Initializing network drop monitor service
[   10.528879] NET: Registered protocol family 17
[   10.533480] Key type dns_resolver registered
[   10.538694] registered taskstats version 1
[   10.542855] Loading compiled-in X.509 certificates
[   10.547739] zswap: loaded using pool lzo/zbud
[   10.555038] Key type big_key registered
[   10.561228] Key type encrypted registered
[   10.568209] rtc-pcf8563 0-0051: setting system clock to 2018-03-05 23:55:12 UTC (1520294112)
[   10.577902] VFS: Cannot open root device "(null)" or unknown-block(0,0): error -6
[   10.585612] Please append a correct "root=" boot option; here are the available partitions:
[   10.594084] 1f00            1024 mtdblock0
[   10.594091]  (driver?)
[   10.600715] 1f01            6144 mtdblock1
[   10.600721]  (driver?)
[   10.607295] 1f02          254976 mtdblock2
[   10.607299]  (driver?)
[   10.613897] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[   10.622207] CPU: 0 PID: 1 Comm: swapper Not tainted 4.12.1-kirkwood-tld-1 #1
[   10.629281] Hardware name: Marvell Kirkwood (Flattened Device Tree)
[   10.635616] [<c010ea54>] (unwind_backtrace) from [<c010ab48>] (show_stack+0x10/0x14)
[   10.643411] [<c010ab48>] (show_stack) from [<c01dba9c>] (panic+0xb0/0x250)
[   10.650330] [<c01dba9c>] (panic) from [<c0c01274>] (mount_block_root+0x204/0x27c)
[   10.657859] [<c0c01274>] (mount_block_root) from [<c0c013d8>] (mount_root+0xec/0x118)
[   10.665731] [<c0c013d8>] (mount_root) from [<c0c01528>] (prepare_namespace+0x124/0x184)
[   10.673780] [<c0c01528>] (prepare_namespace) from [<c0c00e90>] (kernel_init_freeable+0x210/0x260)
[   10.682708] [<c0c00e90>] (kernel_init_freeable) from [<c0833200>] (kernel_init+0x8/0x10c)
[   10.690935] [<c0833200>] (kernel_init) from [<c01070f0>] (ret_from_fork+0x14/0x24)
[   10.698550] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[   11.060630] scsi 2:0:0:0: Direct-Access     SanDisk  Cruzer Blade     1.00 PQ: 0 ANSI: 2
[   11.081961] sd 2:0:0:0: [sda] 15625216 512-byte logical blocks: (8.00 GB/7.45 GiB)
[   11.090556] sd 2:0:0:0: [sda] Write Protect is off
[   11.095383] sd 2:0:0:0: [sda] Mode Sense: 03 00 00 00
[   11.120679] sd 2:0:0:0: [sda] No Caching mode page found
[   11.126040] sd 2:0:0:0: [sda] Assuming drive cache: write through
[   11.168628]  sda: sda1
[   11.183182] sd 2:0:0:0: [sda] Attached SCSI removable disk

Problem installing NSA320 u-boot (1 reply)

$
0
0
Hi,
I was about to udpate u-boot on my NSA320 nas to then be able to easily run debian stretch (https://forum.doozan.com/read.php?2,12096) on it.
However, when I run

dmesg | grep -i 'bad'


I got this:

Scanning device for bad blocks
Bad eraseblock 813 at 0x0000065a0000



I'm just doing what the instructions says and posting here... What can I do now?

Thanks.

Full bootlog if it helps:

         __  __                      _ _
        |  \/  | __ _ _ ____   _____| | |
        | |\/| |/ _` | '__\ \ / / _ \ | |
        | |  | | (_| | |   \ V /  __/ | |
        |_|  |_|\__,_|_|    \_/ \___|_|_|
 _   _     ____              _
| | | |   | __ )  ___   ___ | |_
| | | |___|  _ \ / _ \ / _ \| __|
| |_| |___| |_) | (_) | (_) | |_
 \___/    |____/ \___/ \___/ \__|
 ** MARVELL BOARD: RD-88F6281A LE

U-Boot 1.1.4 (Nov  9 2012 - 14:55:24) Marvell version: 3.4.19

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

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

DRAM CAS Latency = 5 tRP = 5 tRAS = 18 tRCD=6
DRAM CS[0] base 0x00000000   size 256MB
DRAM CS[1] base 0x10000000   size 256MB
DRAM Total size 512MB  16bit width
Addresses 10M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (10M - 7M): Done
NAND:128 MB
Flash:  0 kB

CPU : Marvell Feroceon (Rev 1)
//---  stateButtonBit = 3, recovery ---//
Kernel address is 0xc80000.

Streaming disabled
Write allocate disabled

Module 0 is RGMII
Module 1 is TDM

USB 0: host mode
PEX 0: interface detected no Link.
Net:   egiga0, egiga1 [PRIME]
Hit any key to stop autoboot:  0

NAND read: device 0 offset 0xc80000, size 0xa00000

Reading data from 0x167f800 -- 100% complete.
 10485760 bytes read: OK
## Booting image at 02000000 ...
   Image Name:   Linux-2.6.31.8
   Created:      2016-03-11   9:09:36 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    5730420 Bytes =  5.5 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
OK

Starting kernel ...

Uncompressing Linux.............................................................................................................................................................................................................................................................................. done, booting the kernel.
Linux version 2.6.31.8 (root@BuildMachine) (gcc version 4.3.2 (sdk3.3-ct-ng-1.4.1) ) #2 Fri Mar 11 17:09:19 CST 2016
CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=00053977
CPU: VIVT data cache, VIVT instruction cache
Machine: Feroceon-KW
Using UBoot passing parameters structure
Memory policy: ECC disabled, Data cache writeback
Built 1 zonelists in Zone order, mobility grouping off.  Total pages: 130048
Kernel command line: 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
PID hash table entries: 2048 (order: 11, 8192 bytes)
Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
Memory: 256MB 256MB = 512MB total
Memory: 506752KB available (5360K code, 302K data, 2808K init, 0K highmem)
Hierarchical RCU implementation.
NR_IRQS:128
Console: colour dummy device 80x30
Calibrating delay loop... 1199.30 BogoMIPS (lpj=5996544)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
NET: Registered protocol family 16
Feroceon L2: Enabling L2
Feroceon L2: Cache support initialised.

CPU Interface
-------------
SDRAM_CS0 ....base 00000000, size 256MB
SDRAM_CS1 ....base 10000000, size 256MB
SDRAM_CS2 ....disable
SDRAM_CS3 ....disable
PEX0_MEM ....base e0000000, size 128MB
PEX0_IO ....base f2000000, size   1MB
PEX1_MEM ....no such
PEX1_IO ....no such
INTER_REGS ....base f1000000, size   1MB
NFLASH_CS ....base fa000000, size   2MB
SPI_CS ....base f4000000, size  16MB
BOOT_ROM_CS ....no such
DEV_BOOTCS ....no such
CRYPT_ENG ....base f0000000, size   2MB

  Marvell Development Board (LSP Version KW_LSP_5.1.3_patch18)-- RD-88F6281A  Soc: 88F6281 A1 LE

 Detected Tclk 200000000 and SysClk 400000000
Marvell USB EHCI Host controller #0: d003a740
PEX0 interface detected no Link.
PCI: bus0: Fast back to back transfers enabled
mvPexLocalBusNumSet: ERR. Invalid PEX interface 1
bio: create slab <bio-0> at 0
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
cfg80211: Calling CRDA to update world regulatory domain
NET: Registered protocol family 2
IP route cache hash table entries: 16384 (order: 4, 65536 bytes)
TCP established hash table entries: 65536 (order: 7, 524288 bytes)
TCP bind hash table entries: 65536 (order: 6, 262144 bytes)
TCP: Hash tables configured (established 65536 bind 65536)
TCP reno registered
NET: Registered protocol family 1
cpufreq: Init kirkwood cpufreq driver
XOR registered 4 channels
XOR 2nd invalidate WA enabled
mvCesaInit: sessions=640, queue=64, pSram=f0000000
Warning: TS unit is powered off.
gpio_dev = fd00000
LED_SET_CTL_IOC_NUM= 6702
High gpio polarity = 50
High gpio polarity = 70
Enable Interrupt
mv88f6281_wdt: Watchdog Timer timeout = 8 sec.
mv88f6281_wdt: HW Watchdog timeout    = 15 sec.
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
JFFS2 version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
fuse init (API version 7.12)
SGI XFS with security attributes, large block/inode numbers, no debug enabled
SGI XFS Quota Management subsystem
msgmni has been set to 990
alg: No test for cipher_null (cipher_null-generic)
alg: No test for ecb(cipher_null) (ecb-cipher_null)
alg: No test for digest_null (digest_null-generic)
alg: No test for compress_null (compress_null-generic)
alg: No test for stdrng (krng)
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
io scheduler noop registered
io scheduler cfq registered (default)
Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0xf1012000 (irq = 33) is a 16550A
console [ttyS0] enabled
brd: module loaded
loop: module loaded
Integrated Sata device found
IRQ 21/mvSata: IRQF_DISABLED is not guaranteed on shared IRQs
Wake up disk0......
Wake up disk1......
scsi0 : Marvell SCSI to SATA adapter
scsi1 : Marvell SCSI to SATA adapter
scsi 0:0:0:0: Direct-Access              WD30EFRX-68EUZN0 82.0 PQ: 0 ANSI: 5
scsi 1:0:0:0: Direct-Access              WD30EFRX-68EUZN0 82.0 PQ: 0 ANSI: 5
EnablePowerSaving
PowerSavingTime = 15
sd 0:0:0:0: [sda] Sector size 0 reported, assuming 512.
sd 0:0:0:0: [sda] 5860533168 512-byte logical blocks: (3.00 TB/2.72 TiB)
sd 0:0:0:0: [sda] 0-byte physical blocks
sd 1:0:0:0: [sdb] Sector size 0 reported, assuming 512.
sd 1:0:0:0: [sdb] 5860533168 512-byte logical blocks: (3.00 TB/2.72 TiB)
sd 1:0:0:0: [sdb] 0-byte physical blocks
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: Attached scsi generic sg0 type 0
sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, supports DPO and FUA
sd 0:0:0:0: [sda] Sector size 0 reported, assuming 512.
sd 1:0:0:0: Attached scsi generic sg1 type 0
sd 1:0:0:0: [sdb] Write Protect is off
Loading Marvell Ethernet Driver:
  o Cached descriptors in DRAM
  o DRAM SW cache-coherency
  o 1 Giga ports supported
  o Single RX Queue support - ETH_DEF_RXQ=0
  o Single TX Queue support - ETH_DEF_TXQ=0
  o TCP segmentation offload (TSO) supported
  o Large Receive offload (LRO) supported
  o Receive checksum offload supported
  o Transmit checksum offload supported
  o Network Fast Processing (Routing) supported - (Disabled)
  o Driver ERROR statistics enabled
  o Proc tool API enabled
  o SKB Reuse supported - (Disabled)
  o SKB Recycle supported - (Disabled)
  o Rx descripors: q0=128
  o Tx descripors: q0=532
  o Loading network interface(s):
     o register under mv88fx_eth platform
 sda:     o eth0, ifindex = 2, GbE port = 0

mvFpRuleDb (d1090000): 16384 entries, 65536 bytes
Counter=0, opIdx=6, overhead=16
Counter=1, opIdx=2, overhead=0
Counter=2, opIdx=1, overhead=18
Counter=3, opIdx=2, overhead=0
sd 1:0:0:0: [sdb] Write cache: enabled, read cache: enabled, supports DPO and FUA
sd 1:0:0:0: [sdb] Sector size 0 reported, assuming 512.
NAND device: Manufacturer ID: 0xec, Chip ID: 0xf1 (Samsung NAND 128MiB 3,3V 8-bit)
Scanning device for bad blocks
Bad eraseblock 813 at 0x0000065a0000
9 cmdlinepart partitions found on MTD device nand_mtd
Using command line partition definition
Creating 9 MTD partitions on "nand_mtd":
0x000000000000-0x000000100000 : "uboot"
 sdb:
0x000000100000-0x000000180000 : "uboot_env"
0x000000180000-0x000000200000 : "key_store"
0x000000200000-0x000000280000 : "info"
0x000000280000-0x000000c80000 : "etc"
0x000000c80000-0x000001680000 : "kernel_1"
0x000001680000-0x000004640000 : "rootfs1"
0x000004640000-0x000005040000 : "kernel_2"
0x000005040000-0x000008000000 : "rootfs2"
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ehci_marvell ehci_marvell.70059: Marvell Orion EHCI
ehci_marvell ehci_marvell.70059: new USB bus registered, assigned bus number 1
 sdb1 sdb2
 sda1 sda2
sd 1:0:0:0: [sdb] Sector size 0 reported, assuming 512.
sd 0:0:0:0: [sda] Sector size 0 reported, assuming 512.
sd 1:0:0:0: [sdb] Attached SCSI disk
sd 0:0:0:0: [sda] Attached SCSI disk
ehci_marvell ehci_marvell.70059: irq 19, io base 0xf1050100
ehci_marvell ehci_marvell.70059: USB 2.0 started, EHCI 1.00
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
uhci_hcd: USB Universal Host Controller Interface driver
usbcore: registered new interface driver usblp
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usbcore: registered new interface driver ums-datafab
usbcore: registered new interface driver ums-freecom
usbcore: registered new interface driver ums-jumpshot
usbcore: registered new interface driver ums-sddr09
usbcore: registered new interface driver ums-sddr55
usbcore: registered new interface driver ums-usbat
mice: PS/2 mouse device common for all mice
i2c /dev entries driver
rtc-pcf8563 0-0051: chip found, driver version 0.4.3
rtc-pcf8563 0-0051: rtc core: registered rtc-pcf8563 as rtc0
md: linear personality registered for level -1
md: raid0 personality registered for level 0
md: raid1 personality registered for level 1
sdhci: Secure Digital Host Controller Interface driver
sdhci: Copyright(c) Pierre Ossman
mmc0: mvsdio driver initialized, lacking card detect (fall back to polling)
usbcore: registered new interface driver hiddev
usbcore: registered new interface driver usbhid
usbhid: v2.6:USB HID core driver
TCP cubic registered
NET: Registered protocol family 10
lo: Disabled Privacy Extensions
Mobile IPv6
IPv6 over IPv4 tunneling driver
sit0: Disabled Privacy Extensions
ip6tnl0: Disabled Privacy Extensions
NET: Registered protocol family 17
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
rtc-pcf8563 0-0051: setting system clock to 2018-03-06 15:00:56 UTC (1520348456)
Freeing init memory: 2808K
*** Stage 1: Setup system and device drivers ***
usb 1-1: new high speed USB device using ehci_marvell and address 2
In hub_port_init, and number is 0, retry 0, port 1 .....
usb 1-1: configuration #1 chosen from 1 choice
hub 1-1:1.0: USB hub found
hub 1-1:1.0: 4 ports detected
eth0: mac address changed
egiga0: started
ADDRCONF(NETDEV_UP): egiga0: link is not ready
Turn on the auto-negotiation function
base address = 40151000
words[0] = phypoke
words[1] = 0x1
words[2] = 0x4
words[3] = 0x1e1
:GbitPhy[0x00000001:0x00000004] <= 0x000001e1
base address = 40151000
words[0] = phypoke
words[1] = 0x1
words[2] = 0x9
words[3] = 0x300
:GbitPhy[0x00000001:0x00000009] <= 0x00000300
base address = 40151000
words[0] = phypoke
words[1] = 0x1
words[2] = 0x0
words[3] = 0x9140
:GbitPhy[0x00000001:0x00000000] <= 0x00009140
affs: dev is 32505862 name is "mtdblock6" ro
m*** Stage 2: Pryaffs: passed flags ""
epare the root file system ***
Mount system partition...
/dev/sda1 /zyxel/mnt/sysdisk ext2 ro,relatime,errors=continue 0 0
0
Boot from disk
Checksum of sysdisk.img : a1e743a41560dc3edcb22b943b199ec2
Checksum from INFO  : a1e743a41560dc3edcb22b943b199ec2
Checksum pass!
Mount system disk image ...
yaffs: dev is 32505860 name is "mtdblock4" rw
yaffs: passed flags ""
/etc/zyxel/conf exist..
Start rcS2 of ZyXEL style
*** Stage 3: Start services on HDD ***
NTFS driver 2.1.29 [Flags: R/O MODULE].
tntfs: module license 'Commercial. For support email ntfs-support@tuxera.com.' taints kernel.
Disabling lock debugging due to kernel taint
Tuxera NTFS driver 3011.12.23 [Flags: R/W MODULE].
PPP generic driver version 2.4.2
PPP MPPE Compression module registered
PPP Deflate Compression module registered
NET: Registered protocol family 24
PPP BSD Compression module registered
modprobe: module fuse not found in modules.dep
sda
sdb
checking sda

WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted.


WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted.


WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted.

Trying to mount /dev/sda1
mount: /dev/sda1 already mounted or /mnt/parnerkey busy
mount: according to mtab, /dev/sda1 is mounted on /zyxel/mnt/sysdisk
Fail to mount /dev/sda1
checking sdb

WARNING: GPT (GUID Partition Table) detected on '/dev/sdb'! The util fdisk doesn't support GPT. Use GNU Parted.


WARNING: GPT (GUID Partition Table) detected on '/dev/sdb'! The util fdisk doesn't support GPT. Use GNU Parted.


WARNING: GPT (GUID Partition Table) detected on '/dev/sdb'! The util fdisk doesn't support GPT. Use GNU Parted.

Trying to mount /dev/sdb1
/dev/sdb1 looks like swapspace - not mounted
mount: you must specify the filesystem type
Fail to mount /dev/sdb1
Press ENTER to continue...
Starting zylogd...
 zylog starts.
Starting uamd...
Starting ZySH daemon and client...
Start NSA-220 system daemon....
 Start ZySH daemon
zyshd: version 2.0.0 (build: 16:45:26 Mar 11 2016)
% zylog init start
cat: can't open '/var/run/syslog-ng.pid': No such file or directory
Try to KILL SIGHUP to syslog-ng: pid=0
syslog-ng not running, start /usr/sbin/syslog-ng
Mar  6 15:01:16 (none) syslog-ng[1387]: syslog-ng starting up; version='2.0.10'
zyio_open_config success. (/etc/__system_default.xml, 0)
zyio_open_config success. (/etc/zyxel/conf/__system_default_device_ha.xml, 0)
/usr/sbin/zic -d /etc /var/zyxel/myzone_rule
/bin/ln -s -f /etc/MyZone /etc/localtime
/bin/hostname NSA320
Usage: umount [-hV]
       umount -a [-f] [-r] [-n] [-v] [-t vfstypes] [-O opts]
       umount [-f] [-r] [-n] [-v] special | node...
Usage: umount [-hV]
       umount -a [-f] [-r] [-n] [-v] [-t vfstypes] [-O opts]
       umount [-f] [-r] [-n] [-v] special | node...
BusyBox v1.17.2 (2016-03-11 16:40:37 CST) multi-call binary.

Usage: rmdir [OPTIONS] DIRECTORY...

Init SMB DB access...
rm: can't remove '/var/log/samba/smb.db': No such file or directory
zyio_container_create_template(/etc/__system_default.xml): scope:[network/wlan] list:[wlan_list] type:[wlan_t] is not existed
Assemble volume....
[1431] server write-only FIFO is opened (fd=6)
[1431] server read-only FIFO is opened (fd=7)
[1431] server error read-only FIFO is opened (fd=8)
argc = 1,  func = 281
md: md0 stopped.
md: bind<sdb2>
md: bind<sda2>
md0: detected capacity change from 0 to 6000159490048
 md0: unknown partition table
cat: can't open '/tmp/mduuid.map': No such file or directory
EXT4-fs (md0): barriers disabled
kjournald2 starting: pid 1564, dev md0:8, commit interval 5 seconds
EXT4-fs (md0): warning: mounting fs with errors, running e2fsck is recommended
EXT4-fs (md0): internal journal on md0:8
EXT4-fs (md0): delayed allocation enabled
EXT4-fs: file extents enabled
EXT4-fs: mballoc enabled
EXT4-fs (md0): mounted filesystem with writeback data mode
/dev/md0 [/i-data/154e7f3c]: user quotas turned on
 Startup config
POLLHUP on 7
  pid = 1431
[1431] is disconnected
[1609] server write-only FIFO is opened (fd=6)
[1609] server read-only FIFO is opened (fd=7)
[1609] server error read-only FIFO is opened (fd=8)
argc = 1,  func = 14
argc = 1,  func = 17
argc = 1,  func = 673
argc = 2,  func = 106
argid[1]: 1088; argv[1]: ge1
argc = 5,  func = 109
argid[1]: 1088; argv[1]: ge1
argid[2]: 313; argv[2]: ip
argid[3]: 435; argv[3]: address
argid[4]: 540; argv[4]: dhcp
killall: httpd: no process killed
Mar  6 15:01:24 (none) httpd[1621]: [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
Mar  6 15:01:24 (none) httpd[1621]: [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
Mar  6 15:01:24 (none) httpd[1621]: [warn] RSA server certificate CommonName (CN) `NSA320' does NOT match server name!?
Mar  6 15:01:24 (none) httpd[1621]: [error] mod_auth_zyxel: initialized.
argc = 3,  func = 107
argid[1]: 1088; argv[1]: ge1
argid[2]: 350; argv[2]: exit
argc = 2,  func = 445
argid[1]: 1081; argv[1]: 192.168.1.1
argc = 4,  func = 447
argid[1]: 880; argv[1]: fetch
argid[2]: 633; argv[2]: auto
argid[3]: 1088; argv[3]: ge1
/bin/rm -f /var/zyxel/zysh/egiga0.metric
/bin/ip route del default via 0.0.0.0 dev egiga0
RTNETLINK answers: No such process
Mar  6 15:01:27 (none) httpd[1622]: [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
Mar  6 15:01:27 (none) httpd[1622]: [warn] RSA server certificate CommonName (CN) `NSA320' does NOT match server name!?
Mar  6 15:01:27 (none) httpd[1622]: [error] mod_auth_zyxel: initialized.
[1628] server write-only FIFO is opened (fd=9)
[1628] server read-only FIFO is opened (fd=10)
[1628] server error read-only FIFO is opened (fd=11)
argc = 7,  func = 78
argid[1]: 267; argv[1]: mail
argid[2]: 1416; argv[2]: 1
argid[3]: 436; argv[3]: category
argid[4]: 375; argv[4]: all
argid[5]: 462; argv[5]: level
argid[6]: 479; argv[6]: alert
mail server '1' log_category(all) is:alert
argc = 1,  func = 446
POLLHUP on 10
  pid = 1628
[1628] is disconnected
argc = 7,  func = 78
argid[1]: 267; argv[1]: mail
argid[2]: 1416; argv[2]: 1
argid[3]: 436; argv[3]: category
argid[4]: 375; argv[4]: all
argid[5]: 462; argv[5]: level
argid[6]: 375; argv[6]: all
mail server '1' log_category(all) is:all
argc = 2,  func = 69
argid[1]: 1080; argv[1]: time.stdtime.gov.tw
argc = 2,  func = 61
argid[1]: 1131; argv[1]: +0100
/usr/sbin/zic -d /etc /var/zyxel/myzone_rule
/bin/ln -s -f /etc/MyZone /etc/localtime
argc = 1,  func = 73
/usr/sbin/ntpdate_agent time.stdtime.gov.tw
argc = 4,  func = 347
argid[1]: 1225; argv[1]: "CET"
argid[2]: 598; argv[2]: in
argid[3]: 1226; argv[3]: "Brussels,Copenhagen,Madrid,Paris"
Mar  6 16:01:29 (none) ntpdate[1685]: can't find host time.stdtime.gov.tw
Mar  6 16:01:29 (none) ntpdate[1685]: no servers can be used, exiting
argc = 3,  func = 41
argid[1]: 286; argv[1]: port
argid[2]: 1408; argv[2]: 21
argc = 3,  func = 51
argid[1]: 389; argv[1]: first
argid[2]: 1414; argv[2]: 1024
argc = 3,  func = 51
argid[1]: 390; argv[1]: last
argid[2]: 1414; argv[2]: 65535
argc = 2,  func = 196
argid[1]: 1141; argv[1]: "admin"
argc = 5,  func = 197
argid[1]: 1141; argv[1]: "admin"
argid[2]: 1427; argv[2]: 501
argid[3]: 363; argv[3]: password
argid[4]: 1165; argv[4]: 997731E9980B3C70AAD3B435B51404EE:16389B840F864416FA22B44D3A85409F
enter smb_db_update_user
argc = 5,  func = 197
argid[1]: 1141; argv[1]: "admin"
argid[2]: 1427; argv[2]: 501
argid[3]: 638; argv[3]: type
argid[4]: 639; argv[4]: admin
enter smb_db_update_user
argc = 5,  func = 198
argid[1]: 1141; argv[1]: "admin"
argid[2]: 1427; argv[2]: 501
argid[3]: 643; argv[3]: shpass
argid[4]: 1168; argv[4]:  $1$$pT21fI5QuPBQweXCLLEhQ1
shpass : $1$$pT21fI5QuPBQweXCLLEhQ1
argc = 4,  func = 193
argid[1]: 1141; argv[1]: "admin"
argid[2]: 1427; argv[2]: 501
argid[3]: 350; argv[3]: exit
argc = 6,  func = 178
argid[1]: 457; argv[1]: share
argid[2]: 631; argv[2]: save
argid[3]: 1170; argv[3]: "public"
argid[4]: 396; argv[4]: path
argid[5]: 1172; argv[5]: "/i-data/md0/public"
argc = 7,  func = 179
argid[1]: 457; argv[1]: share
argid[2]: 631; argv[2]: save
argid[3]: 1170; argv[3]: "public"
argid[4]: 396; argv[4]: path
argid[5]: 1172; argv[5]: "/i-data/md0/public"
argid[6]: 302; argv[6]: enable
argc = 8,  func = 179
argid[1]: 457; argv[1]: share
argid[2]: 631; argv[2]: save
argid[3]: 1170; argv[3]: "public"
argid[4]: 396; argv[4]: path
argid[5]: 1172; argv[5]: "/i-data/md0/public"
argid[6]: 599; argv[6]: access-flag
argid[7]: 600; argv[7]: private
argc = 7,  func = 167
argid[1]: 457; argv[1]: share
argid[2]: 631; argv[2]: save
argid[3]: 1170; argv[3]: "public"
argid[4]: 396; argv[4]: path
argid[5]: 1172; argv[5]: "/i-data/md0/public"
argid[6]: 350; argv[6]: exit
EXT4: add strict allocate = yesEXT4: add strict allocate = yesEXT4: add strict allocate = yesEXT4: add strict allocate = yesEXT4: add strict allocate = yesRegenSmbConfigFile:2215 Close file ok
argc = 6,  func = 178
argid[1]: 457; argv[1]: share
argid[2]: 631; argv[2]: save
argid[3]: 1170; argv[3]: "video"
argid[4]: 396; argv[4]: path
argid[5]: 1172; argv[5]: "/i-data/md0/video"
argc = 7,  func = 179
argid[1]: 457; argv[1]: share
argid[2]: 631; argv[2]: save
argid[3]: 1170; argv[3]: "video"
argid[4]: 396; argv[4]: path
argid[5]: 1172; argv[5]: "/i-data/md0/video"
argid[6]: 617; argv[6]: media-server
argc = 7,  func = 167
argid[1]: 457; argv[1]: share
argid[2]: 631; argv[2]: save
argid[3]: 1170; argv[3]: "video"
argid[4]: 396; argv[4]: path
argid[5]: 1172; argv[5]: "/i-data/md0/video"
argid[6]: 350; argv[6]: exit
EXT4: add strict allocate = yesEXT4: add strict allocate = yesEXT4: add strict allocate = yesEXT4: add strict allocate = yesEXT4: add strict allocate = yesRegenSmbConfigFile:2215 Close file ok
argc = 6,  func = 178
argid[1]: 457; argv[1]: share
argid[2]: 631; argv[2]: save
argid[3]: 1170; argv[3]: "photo"
argid[4]: 396; argv[4]: path
argid[5]: 1172; argv[5]: "/i-data/md0/photo"
argc = 7,  func = 179
argid[1]: 457; argv[1]: share
argid[2]: 631; argv[2]: save
argid[3]: 1170; argv[3]: "photo"
argid[4]: 396; argv[4]: path
argid[5]: 1172; argv[5]: "/i-data/md0/photo"
argid[6]: 617; argv[6]: media-server
argc = 7,  func = 179
argid[1]: 457; argv[1]: share
argid[2]: 631; argv[2]: save
argid[3]: 1170; argv[3]: "photo"
argid[4]: 396; argv[4]: path
argid[5]: 1172; argv[5]: "/i-data/md0/photo"
argid[6]: 302; argv[6]: enable
argc = 8,  func = 179
argid[1]: 457; argv[1]: share
argid[2]: 631; argv[2]: save
argid[3]: 1170; argv[3]: "photo"
argid[4]: 396; argv[4]: path
argid[5]: 1172; argv[5]: "/i-data/md0/photo"
argid[6]: 599; argv[6]: access-flag
argid[7]: 600; argv[7]: private
argc = 7,  func = 167
argid[1]: 457; argv[1]: share
argid[2]: 631; argv[2]: save
argid[3]: 1170; argv[3]: "photo"
argid[4]: 396; argv[4]: path
argid[5]: 1172; argv[5]: "/i-data/md0/photo"
argid[6]: 350; argv[6]: exit
EXT4: add strict allocate = yesEXT4: add strict allocate = yesEXT4: add strict allocate = yesEXT4: add strict allocate = yesEXT4: add strict allocate = yesRegenSmbConfigFile:2215 Close file ok
argc = 6,  func = 178
argid[1]: 457; argv[1]: share
argid[2]: 631; argv[2]: save
argid[3]: 1170; argv[3]: "music"
argid[4]: 396; argv[4]: path
argid[5]: 1172; argv[5]: "/i-data/md0/music"
argc = 7,  func = 179
argid[1]: 457; argv[1]: share
argid[2]: 631; argv[2]: save
argid[3]: 1170; argv[3]: "music"
argid[4]: 396; argv[4]: path
argid[5]: 1172; argv[5]: "/i-data/md0/music"
argid[6]: 617; argv[6]: media-server
argc = 7,  func = 167
argid[1]: 457; argv[1]: share
argid[2]: 631; argv[2]: save
argid[3]: 1170; argv[3]: "music"
argid[4]: 396; argv[4]: path
argid[5]: 1172; argv[5]: "/i-data/md0/music"
argid[6]: 350; argv[6]: exit
EXT4: add strict allocate = yesEXT4: add strict allocate = yesEXT4: add strict allocate = yesEXT4: add strict allocate = yesEXT4: add strict allocate = yesRegenSmbConfigFile:2215 Close file ok
argc = 6,  func = 178
argid[1]: 457; argv[1]: share
argid[2]: 631; argv[2]: save
argid[3]: 1170; argv[3]: "admin"
argid[4]: 396; argv[4]: path
argid[5]: 1172; argv[5]: "/i-data/md0/admin"
argc = 7,  func = 179
argid[1]: 457; argv[1]: share
argid[2]: 631; argv[2]: save
argid[3]: 1170; argv[3]: "admin"
argid[4]: 396; argv[4]: path
argid[5]: 1172; argv[5]: "/i-data/md0/admin"
argid[6]: 302; argv[6]: enable
argc = 8,  func = 179
argid[1]: 457; argv[1]: share
argid[2]: 631; argv[2]: save
argid[3]: 1170; argv[3]: "admin"
argid[4]: 396; argv[4]: path
argid[5]: 1172; argv[5]: "/i-data/md0/admin"
argid[6]: 599; argv[6]: access-flag
argid[7]: 601; argv[7]: public
argc = 7,  func = 167
argid[1]: 457; argv[1]: share
argid[2]: 631; argv[2]: save
argid[3]: 1170; argv[3]: "admin"
argid[4]: 396; argv[4]: path
argid[5]: 1172; argv[5]: "/i-data/md0/admin"
argid[6]: 350; argv[6]: exit
EXT4: add strict allocate = yesEXT4: add strict allocate = yesEXT4: add strict allocate = yesEXT4: add strict allocate = yesEXT4: add strict allocate = yesRegenSmbConfigFile:2215 Close file ok
argc = 6,  func = 178
argid[1]: 457; argv[1]: share
argid[2]: 631; argv[2]: save
argid[3]: 1170; argv[3]: "lost_and_found"
argid[4]: 396; argv[4]: path
argid[5]: 1172; argv[5]: "/i-data/154e7f3c/lost+found"
argc = 7,  func = 179
argid[1]: 457; argv[1]: share
argid[2]: 631; argv[2]: save
argid[3]: 1170; argv[3]: "lost_and_found"
argid[4]: 396; argv[4]: path
argid[5]: 1172; argv[5]: "/i-data/154e7f3c/lost+found"
argid[6]: 303; argv[6]: disable
argc = 8,  func = 179
argid[1]: 457; argv[1]: share
argid[2]: 631; argv[2]: save
argid[3]: 1170; argv[3]: "lost_and_found"
argid[4]: 396; argv[4]: path
argid[5]: 1172; argv[5]: "/i-data/154e7f3c/lost+found"
argid[6]: 603; argv[6]: owner
argid[7]: 1141; argv[7]: "admin"
argc = 8,  func = 179
argid[1]: 457; argv[1]: share
argid[2]: 631; argv[2]: save
argid[3]: 1170; argDisablePowerSaving
v[3]: "lost_and_TimerState = 1
found"
argid[4]EnablePowerSaving
: 396; argv[4]: PowerSavingTime = 15
path
argid[5]: 1172; argv[5]: "/i-data/154e7f3c/lost+found"
argid[6]: 599; argv[6]: access-flag
argid[7]: 600; argv[7]: private
argc = 7,  func = 179
argid[1]: 457; argv[1]: share
argid[2]: 631; argv[2]: save
argid[3]: 1170; argv[3]: "lost_and_found"
argid[4]: 396; argv[4]: path
argid[5]: 1172; argv[5]: "/i-data/154e7f3c/lost+found"
argid[6]: 620; argv[6]: recycle-bin
argc = 7,  func = 167
argid[1]: 457; argv[1]: share
argid[2]: 631; argv[2]: save
argid[3]: 1170; argv[3]: "lost_and_found"
argid[4]: 396; argv[4]: path
argid[5]: 1172; argv[5]: "/i-data/154e7f3c/lost+found"
argid[6]: 350; argv[6]: exit
EXT4: add strict allocate = yesEXT4: add strict allocate = yesEXT4: add strict allocate = yesEXT4: add strict allocate = yesEXT4: add strict allocate = yesRegenSmbConfigFile:2215 Close file ok
argc = 6,  func = 178
argid[1]: 457; argv[1]: share
argid[2]: 631; argv[2]: save
argid[3]: 1170; argv[3]: "transmission"
argid[4]: 396; argv[4]: path
argid[5]: 1172; argv[5]: "/i-data/154e7f3c/transmission"
argc = 7,  func = 179
argid[1]: 457; argv[1]: share
argid[2]: 631; argv[2]: save
argid[3]: 1170; argv[3]: "transmission"
argid[4]: 396; argv[4]: path
argid[5]: 1172; argv[5]: "/i-data/154e7f3c/transmission"
argid[6]: 303; argv[6]: disable
argc = 8,  func = 179
argid[1]: 457; argv[1]: share
argid[2]: 631; argv[2]: save
argid[3]: 1170; argv[3]: "transmission"
argid[4]: 396; argv[4]: path
argid[5]: 1172; argv[5]: "/i-data/154e7f3c/transmission"
argid[6]: 603; argv[6]: owner
argid[7]: 1141; argv[7]: "admin"
argc = 8,  func = 179
argid[1]: 457; argv[1]: share
argid[2]: 631; argv[2]: save
argid[3]: 1170; argv[3]: "transmission"
argid[4]: 396; argv[4]: path
argid[5]: 1172; argv[5]: "/i-data/154e7f3c/transmission"
argid[6]: 599; argv[6]: access-flag
argid[7]: 600; argv[7]: private
argc = 7,  func = 179
argid[1]: 457; argv[1]: share
argid[2]: 631; argv[2]: save
argid[3]: 1170; argv[3]: "transmission"
argid[4]: 396; argv[4]: path
argid[5]: 1172; argv[5]: "/i-data/154e7f3c/transmission"
argid[6]: 620; argv[6]: recycle-bin
argc = 7,  func = 167
argid[1]: 457; argv[1]: share
argid[2]: 631; argv[2]: save
argid[3]: 1170; argv[3]: "transmission"
argid[4]: 396; argv[4]: path
argid[5]: 1172; argv[5]: "/i-data/154e7f3c/transmission"
argid[6]: 350; argv[6]: exit
EXT4: add strict allocate = yesEXT4: add strict allocate = yesEXT4: add strict allocate = yesEXT4: add strict allocate = yesEXT4: add strict allocate = yesRegenSmbConfigFile:2215 Close file ok
argc = 4,  func = 415
argid[1]: 1251; argv[1]: no
argid[2]: 1252; argv[2]: yes
argid[3]: 1253; argv[3]: yes
argc = 4,  func = 434
argid[1]: 1256; argv[1]: -1
argid[2]: 1256; argv[2]: 80
argid[3]: 1258; argv[3]: no
/bin/rm /etc/service_conf/httpd_zld.conf
/bin/mv /etc/service_conf/httpd_zld.conf.new /etc/service_conf/httpd_zld.conf
argc = 2,  func = 148
argid[1]: 1156; argv[1]: 15
test0
Test1
Test2
Test3:
argc = 2,  func = 151
argid[1]: 1157; argv[1]: 99
test0
Test1
Test2
Test3:
kill
sh: you need to specify whom to kill
Mar  6 16:01:32 (none) dhcpcd[1653]: timed out waiting for a valid DHCP server response
 1823 root      1816 S <  /usr/sbin/apcupsd
BATTERYLEVEL 50

argc = 2,  func = 677
argid[1]: 1088; argv[1]: ge1
Mar  6 16:01:36 (none) httpd[1843]: [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
Mar  6 16:01:36 (none) httpd[1843]: [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
Mar  6 16:01:36 (none) httpd[1843]: [warn] RSA server certificate CommonName (CN) `NSA320' does NOT match server name!?
Mar  6 16:01:36 (none) httpd[1843]: [error] mod_auth_zyxel: initialized.
argc = 2,  func = 162
argid[1]: 1161; argv[1]: g
exec_cmd complete
eth status = g
ethtest0
Test1
Test2
Test3:
argc = 2,  func = 164
argid[1]: 1162; argv[1]: enable
argc = 2,  func = 535
argid[1]: 930; argv[1]: activate
/bin/killall -USR1 app_wd
killall: app_wd: no process killed
argc = 2,  func = 18
argid[1]: 350; argv[1]: exit
argc = 1,  func = 20
POLLHUP on 7
  pid = 1609
[1609] is disconnected
cat: can't open '/etc/tdc_homepage': No such file or directory
Restart Web Server...
Mar  6 16:01:39 (none) httpd[1863]: [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
Mar  6 16:01:39 (none) httpd[1863]: [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
Mar  6 16:01:39 (none) httpd[1863]: [warn] RSA server certificate CommonName (CN) `NSA320' does NOT match server name!?
Mar  6 16:01:39 (none) httpd[1863]: [error] mod_auth_zyxel: initialized.
configure terminal ip smb internal enable "/i-data/md0"
[1871] server write-only FIFO is opened (fd=6)
[1871] server read-only FIFO is opened (fd=7)
[1871] server error read-only FIFO is opened (fd=8)
argc = 4,  func = 184
argid[1]: 635; argv[1]: internal
argid[2]: 302; argv[2]: enable
argid[3]: 1184; argv[3]: "/i-data/md0"
ln -s "/i-data/154e7f3c/admin" "admin"
ln -s "/i-data/154e7f3c/music" "music"
ln -s "/i-data/154e7f3c/photo" "photo"
ln -s "/i-data/154e7f3c/public" "public"
ln -s "/i-data/154e7f3c/video" "video"
EXT4: add strict allocate = yesEXT4: add strict allocate = yesEXT4: add strict allocate = yesEXT4: add strict allocate = yesEXT4: add strict allocate = yesRegenSmbConfigFile:2215 Close file ok
EXT4: add strict allocate = yesEXT4: add strict allocate = yesEXT4: add strict allocate = yesEXT4: add strict allocate = yesEXT4: add strict allocate = yesEXT4: add strict allocate = yesRegenSmbConfigFile:2215 Close file ok
POLLHUP on 7
  pid = 1871
[1871] is disconnected
configure terminal ip smb internal disable "/i-data/md1"
Mar  6 16:01:40 (none) httpd[1864]: [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
Mar  6 16:01:40 (none) httpd[1864]: [warn] RSA server certificate CommonName (CN) `NSA320' does NOT match server name!?
Mar  6 16:01:40 (none) httpd[1864]: [error] mod_auth_zyxel: initialized.
[1942] server write-only FIFO is opened (fd=6)
[1942] server read-only FIFO is opened (fd=7)
[1942] server error read-only FIFO is opened (fd=8)
argc = 4,  func = 185
argid[1]: 635; argv[1]: internal
argid[2]: 303; argv[2]: disable
argid[3]: 1184; argv[3]: "/i-data/md1"
EXT4: add strict allocate = yesEXT4: add strict allocate = yesEXT4: add strict allocate = yesEXT4: add strict allocate = yesEXT4: add strict allocate = yesEXT4: add strict allocate = yesRegenSmbConfigFile:2215 Close file ok
no such autosata.
Error happens when deleting autosata.
POLLHUP on 7
  pid = 1942
[1942] is disconnected
configure terminal ip smb internal enable "/i-data/154e7f3c"
[1952] server write-only FIFO is opened (fd=6)
[1952] server read-only FIFO is opened (fd=7)
[1952] server error read-only FIFO is opened (fd=8)
argc = 4,  func = 184
argid[1]: 635; argv[1]: internal
argid[2]: 302; argv[2]: enable
argid[3]: 1184; argv[3]: "/i-data/154e7f3c"
ln -s "/i-data/154e7f3c/admin" "admin"
ln -s "/i-data/154e7f3c/music" "music"
ln -s "/i-data/154e7f3c/photo" "photo"
ln -s "/i-data/154e7f3c/public" "public"
ln -s "/i-data/154e7f3c/video" "video"
EXT4: add strict allocate = yesEXT4: add strict allocate = yesEXT4: add strict allocate = yesEXT4: add strict allocate = yesEXT4: add strict allocate = yesEXT4: add strict allocate = yesRegenSmbConfigFile:2215 Close file ok
/etc/zyxel/storage/sysvol/.system/autoshare_sata/internal has pointed to other share.
EXT4: add strict allocate = yesEXT4: add strict allocate = yesEXT4: add strict allocate = yesEXT4: add strict allocate = yesEXT4: add strict allocate = yesEXT4: add strict allocate = yesRegenSmbConfigFile:2215 Close file ok
POLLHUP on 7
  pid = 1952
[1952] is disconnected
ln: /i-data/.zyxel/.zyxel: File exists
Starting smbd...
Starting nmbd...
Starting NSU Agent...

WARNING: GPT (GUID Partition Table) detected on '/dev/sdb'! The util fdisk doesn't support GPT. Use GNU Parted.


WARNING: GPT (GUID Partition Table) detected on '/dev/sdb'! The util fdisk doesn't support GPT. Use GNU Parted.

Setting up swapspace version 1, size = 498684 KiB
no label, UUIAdding 498680k swap on /dev/sdb1.  Priority:-1 extents:1 across:498680k
D=a23a9a15-2a69-47b2-817a-b0d09b00ef0c
Adding 524280k swap on /i-data/.zyxel/swap_ul6545p.  Priority:-2 extents:3 across:540664k
storage_gen_swap.sh:/zyxel/mnt/sysdisk/swap_ul6545p exists
GMT offset=3600s
setting system time zone to tz_minuteswest=-60
mknod: /dev/btncpy: File exists
Mar  6 16:01:43 (none) apcupsd[1823]: apcupsd FATAL ERROR in linux-usb.c at line 605 Cannot open UPS device: "/dev/usb/hiddev0" -- For a link to detailed USB trouble shooting information, please see http://www.apcupsd.com/support.html.
Mar  6 16:01:43 (none) apcupsd[1823]: apcupsd error shutdown completed
killall: dservice: no process killed
setLED COPY OFF
led_state_map_addr = 10
[2639] server write-only FIFO is opened (fd=6)
[2639] server read-only FIFO is opened (fd=7)
[2639] server error read-only FIFO is opened (fd=8)
argc = 2,  func = 352
argid[1]: 1227; argv[1]: former
POLLHUP on 7
  pid = 2639
[2639] is disconnected
schedule_controller is already running now.
Starting "/etc/init.d/zypkg_controller.sh".
Starting to set up zy-pkgs environment ...
cp: can't stat '/etc/zyxel/zy-pkgs/*': No such file or directory
Finish "/etc/init.d/zypkg_controller.sh".
Starting "/etc/init.d/zypkg_controller.sh".
Starting all zypkgs via "/etc/init.d/zypkg_controller.sh" ...
- starting package "PHP-MySQL-phpMyAdmin" ...
---> start "PHP-MySQL-phpMyAdmin" successfully.
- starting package "gallery" ...
---> Error: start-up program "/usr/local/zy-pkgs/etc/init.d/gallery" is not existed or not excutable
- starting package "WordPress" ...
---> Error: start-up program "/usr/local/zy-pkgs/etc/init.d/WordPress" is not existed or not excutable
- starting package "SqueezeCenter" ...
---> Error: start-up program "/usr/local/zy-pkgs/etc/init.d/SqueezeCenter" is not existed or not excutable
- starting package "eMule" ...
---> Error: start-up program "/usr/local/zy-pkgs/etc/init.d/eMule" is not existed or not excutable
- starting package "DyDNS" ...
---> Error: start-up program "/usr/local/zy-pkgs/etc/init.d/DyDNS" is not existed or not excutable
- starting package "SMART" ...
---> start "SMART" successfully.
- starting package "BackupPlanner" ...
---> Error: start-up program "/usr/local/zy-pkgs/etc/init.d/BackupPlanner" is not existed or not excutable
- starting package "NFS" ...
---> Error: start-up program "/usr/local/zy-pkgs/etc/init.d/NFS" is not existed or not excutable
- starting package "Tftp" ...
---> Error: start-up program "/usr/local/zy-pkgs/etc/init.d/Tftp" is not existed or not excutable
- starting package "Syslog" ...
---> Error: start-up program "/usr/local/zy-pkgs/etc/init.d/Syslog" is not existed or not excutable
- starting package "pyLoad" ...
startuping pyLoad ...
180306 16:01:45 mysqld_safe Logging to '/usr/local/zy-pkgs/mysql/var/NSA320.err'.
DownloadDaemon is Enabled.
---> start "pyLoad" successfully.
- starting package "NZBGet" ...
---> Error: start-up program "/usr/local/zy-pkgs/etc/init.d/NZBGet" is not existed or not excutable
- starting package "Transmission" ...
---> start "Transmission" successfully.
180306 16:01:45 mysqld_safe Starting mysqld daemon with databases from /usr/local/zy-pkgs/mysql/var
- starting package "MetaRepository" ...
---> start "MetaRepository" successfully.
- starting package "MidnightCommander" ...
---> start "MidnightCommander" successfully.
- starting package "Tweaks" ...
---> start "Tweaks" successfully.
- killing httpd ...

- starting httpd ...
/usr/lib/python2.6/site-packages/flickrapi/__init__.py:45: DeprecationWarning: the md5 module is deprecated; use hashlib instead

Problem installing NSA320 u-boot - continued (3 replies)

$
0
0
Sorted the above out... I noticed it was out of the first mb. I have sucessfully flashed the new u-boot now. :)
However, I can't boot stock zyxel image. It seems that I can boot debian stretch (haven't had time to fully boot it up yet, that's another thing anyway) which I flashed following instructions from https://forum.doozan.com/read.php?2,12096

I think I screwed it up when I should have set
fw_setenv mtdparts 'xxxxxxxxx'
since I didn't had that variable in the backup i took of the environment before, so I just didn't run that.

Any help to restore the ability to boot the stock zyxel image is greatly appreciated. I need to boot up that one one last time to recover data I have in the JOBD partition before going with OMV.

This is the u-boot log:

U-Boot 2017.07-tld-1 (Sep 05 2017 - 00:46:11 -0700)
ZyXEL NSA320 2-Bay Power Media Server

SoC:   Kirkwood 88F6281_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
starting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 2 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found

Reset IDE: Bus 0: OK Bus 1: OK
  Device 0: Model: WDC WD30EFRX-68EUZN0 Firm: 82.00A82 Ser#:  WD-WCC4N6UX02JH
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 2861588.4 MB = 2794.5 GB (5860533168 x 512)
  Device 1: Model: WDC WD30EFRX-68EUZN0 Firm: 82.00A82 Ser#:  WD-WCC4N5JCKKV6
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 2861588.4 MB = 2794.5 GB (5860533168 x 512)
Unknown command 'mmc' - try 'help'
## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0
loading envs from usb 0 ...
** Bad device usb 0 **

Partition Map for IDE device 0  --   Partition Type: EFI

Part    Start LBA       End LBA         Name
        Attributes
        Type GUID
        Partition GUID
  1     0x00000800      0x000f3fff      "mitraswap"
        attrs:  0x0000000000000000
        type:   0657fd6d-a4ab-43c4-84e5-0933c84b4f4f
        type:   swap
        guid:   8a6ebe8b-87c9-4dc7-9a85-9f670ef809cf
  2     0x000f4000      0x15d509fff     "eexxtt44"
        attrs:  0x0000000000000000
        type:   ebd0a0a2-b9e5-4433-87c0-68b6b72699c7
        type:   data
        guid:   9a279fa3-46de-4fae-b268-e4e15c6064b3


Partition Map for IDE device 1  --   Partition Type: EFI

Part    Start LBA       End LBA         Name
        Attributes
        Type GUID
        Partition GUID
  1     0x00000800      0x000f3fff      "mitraswap"
        attrs:  0x0000000000000000
        type:   0657fd6d-a4ab-43c4-84e5-0933c84b4f4f
        type:   swap
        guid:   31d9fc6d-19db-4264-b8e1-e7f43baed572
  2     0x000f4000      0x15d509fff     "eexxtt44"
        attrs:  0x0000000000000000
        type:   ebd0a0a2-b9e5-4433-87c0-68b6b72699c7
        type:   data
        guid:   b2806883-140c-4bcc-bfdf-39b4a6603f0b
Unknown command 'mmc' - try 'help'
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: OK
  Device 0: Model: WDC WD30EFRX-68EUZN0 Firm: 82.00A82 Ser#:  WD-WCC4N6UX02JH
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 2861588.4 MB = 2794.5 GB (5860533168 x 512)
  Device 1: Model: WDC WD30EFRX-68EUZN0 Firm: 82.00A82 Ser#:  WD-WCC4N5JCKKV6
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 2861588.4 MB = 2794.5 GB (5860533168 x 512)
device ide 0:1
** File not found /boot/uImage **
device ide 1:1
Failed to mount ext2 filesystem...
** Unrecognized filesystem type **
device ide 2:1
** Bad device ide 2 **
device ide 3:1
** Bad device ide 3 **
Scan device mmc
Unknown command 'mmc' - try 'help'
device mmc 0:1
** Bad device mmc 0 **
device mmc 1:1
** Bad device mmc 1 **
device mmc 2:1
** Bad device mmc 2 **
device mmc 3:1
** Bad device mmc 3 **
loading uImage ...
** Bad device usb 0 **
loading uInitrd ...
** Bad device usb 0 **
loading DTB /boot/dts/kirkwood-nsa320.dtb ...
** Bad device usb 0 **
Wrong Image Format for bootm command
Error occured, error code = 112
ERROR: can't get kernel image!
NSA320>

And here the environment printenv:
arcNumber=3956
bootargs=console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)
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
bootdelay=10
bootdev=usb
device=0:1
devices=usb ide mmc
disks=0 1 2 3
dtb_file=/boot/dts/kirkwood-nsa320.dtb
ethact=egiga0
ethaddr=MY_MAC_IN_RIGHT_FORMAT
fileaddr=1c00000
filesize=0
if_netconsole=ping $serverip
init_ide=ide reset
init_mmc=mmc rescan
init_usb=usb start
ipaddr=192.168.0.231
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),4M(uImage),32M(rootfs),-(data)
partition=nand0,2
preboot_nc=run if_netconsole start_netconsole
scan_disk=echo running scan_disk ...; scan_done=0; setenv scan_usb "usb start";  setenv scan_ide "ide reset";  setenv scan_mmc "mmc rescan"; for dev in $devices; do if test $scan_done -eq 0; then echo Scan device $dev; run scan_$dev; for disknum in $disks; do if test $scan_done -eq 0; then echo device $dev $disknum:1; if load $dev $disknum:1 $load_uimage_addr /boot/uImage 1; then scan_done=1; echo Found bootable drive on $dev $disknum; setenv device $disknum:1; setenv bootdev $dev; fi; fi; done; fi; done
scan_ide=ide reset
scan_mmc=mmc rescan
scan_usb=usb start
serverip=192.168.0.220
set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts $custom_params
start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version;
stderr=serial
stdin=serial
stdout=serial
uenv_addr=0x810000
uenv_import=echo importing envs ...; env import -t $uenv_addr $filesize
uenv_init_devices=setenv init_usb "usb start";  setenv init_ide "ide reset";  setenv init_mmc "mmc rescan"; for devtype in $devices; do run init_$devtype; done;
uenv_load=run uenv_init_devices; setenv uenv_loaded 0; for devtype in $devices;  do for disknum in 0; do run uenv_read_disk; done; done;
uenv_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_ready_retry=15

Environment size: 3144/131068 bytes


revive Medion oxnas stg-212 (1 reply)

$
0
0
Hey guys, as i didn't succeed on openwrt-forums for now and you really seem familiar to my device, maybe someone is able to help me reviving my Medion NAS? :-) For now i think my problem could be mtd-related and there is no place to uncompress Linux?

I tried to "factory reset" my Medion NAS running OpenWrt for oxnas by re-flashing openwrt-oxnas-stg212-squashfs-ubinized.bin. Device didn't come up again, so i checked with serial and got:

Starting kernel ...

Uncompressing Linux...

XZ-compressed data is corrupt

 -- System halted


After digging for 48 hours now i managed to update u-boot, but didn't manage to get any further booting at least into rescue or something else. Guess it's a pretty easy task for someone who knows what to do, but i'm simply failing starting kernel from 0x62000000 - at least that's what i'm thinking... My logs so far:

Stage-1 Bootloader Thu Nov 24 19:20:59 CST 2011
Attempting to set PLLA to 750MHz ...
  plla_ctrl0 : 0x0000000A
  plla_ctrl1 : 0x000F0000
  plla_ctrl2 : 0x001D01A0
  plla_ctrl3 : 0x00000017
PLLA Set

Setup memory, testing, Image 0
  Hdr len: 0x0001A94C
  Hdr CRC: 0xF0019DAC
 OK


U-Boot 1.1.2 (Jun 24 2011 - 09:41:57)

U-Boot code: 60D00000 -> 60D1A94C  BSS: -> 60D1F004
RAM Configuration:
        Bank #0: 60000000 128 MB
SRAM Configuration:
        64KB at 0x50000000
NAND:128 MiB
In:    serial
Out:   serial
Err:   serial
Setting Linux mem= boot arg value
Hit any key to stop autoboot:  0


$ printenv
bootdelay=2
baudrate=115200
autoload=n
bootfile="uImage"
load_nand=nboot 61000000 0 440000
boot=bootm 61000000
boot_nand=run load_nand boot
MODEL_ID=AB03
PRODUCT_NAME=STG-212
VENDOR_NAME=MitraStar Technology Corp.
ethaddr=00:11:41:30:3A:12
boot_openwrt=nand read 0x64000000 0x440000 0x90000 ; go 64000000
filesize=85390
fileaddr=64000000
netmask=255.255.0.0
ipaddr=192.168.50.100
serverip=192.168.50.59
boot_stage2=nand read 0x64000000 0x440000 0x90000 ; go 64000000
bootcmd=run boot_stage2
stdin=serial
stdout=serial
stderr=serial
bootargs= console=ttyS0,115200 elevator=cfq mac_adr=0x00,0x30,0xe0,0x00,0x00,0x01 mem=128M poweroutage=yes

Environment size: 639/131068 bytes


$ run boot_stage2

NAND read: device 0 offset 0x440000, size 0x90000
 589824 bytes read: OK
## Starting application at 0x64000000 ...


U-Boot 2014.10 (Dec 08 2017 - 09:01:13) for OXNAS

DRAM:  128 MiB
NAND:  128 MiB
UBI: attaching mtd1 to ubi0
UBI: scanning is finished
UBI: attached mtd1 (name "mtd=1", size 114 MiB) to ubi0
UBI: PEB size: 131072 bytes (128 KiB), LEB size: 129024 bytes
UBI: min./max. I/O unit sizes: 2048/2048, sub-page size 512
UBI: VID header offset: 512 (aligned 512), data offset: 2048
UBI: good PEBs: 911, bad PEBs: 1, corrupted PEBs: 0
UBI: user volume: 5, internal volumes: 1, max. volumes count: 128
UBI: max/mean erase counter: 76/43, WL threshold: 4096, image sequence number: 1342704460
UBI: available PEBs: 0, total reserved PEBs: 911, PEBs reserved for bad PEB handling: 19
In:    serial
Out:   serial
Err:   serial
Net:   dwmac.40400000
IDE:   SATA PHY not ready for device 0
SATA PHY not ready for device 1
ide_preinit failed
Hit any key to stop autoboot:  0


OX820 # printenv
autoload=no
baudrate=115200
boot_dhcp=run load_kernel_dhcp && run boot_kernel;
boot_kernel=bootm 0x62000000;
boot_openwrt=nand read 0x62000000 0x42000000 0x90000 ; go 62000000
boot_rescue=run load_kernel_rescue && run boot_kernel;
boot_stage2=nand read 64000000 440000 90000; go 64000000
boot_ubi=run load_kernel_ubi && run boot_kernel;
bootargs=console=ttyS0,115200n8 earlyprintk=serial
bootcmd=run boot_stage2
bootdelay=1
console=console=ttyS0,115200n8 earlyprintk=serial
ethact=dwmac.40400000
ethaddr=00:25:31:01:66:5F
fileaddr=64000000
filesize=420000
ipaddr=192.168.50.100
load_kernel_dhcp=dhcp 0x62000000 oxnas-rescue.bin;
load_kernel_rescue=nand read 0x62000000 0x4e0000 0x400000;
load_kernel_ubi=ubi readvol 0x62000000 kernel;
mtdids=nand0=41000000.nand
mtdparts=mtdparts=41000000.nand:14m(boot),-(data)
normalboot=run boot_ubi; run boot_rescue; run boot_dhcp;
serverip=192.168.50.59
stderr=serial
stdin=serial
stdout=serial

Environment size: 988/16379 bytes


OX820 # run boot_ubi
Read 0 bytes from volume kernel to 62000000
No size specified -> Using max size (1806336)
## Loading kernel from FIT Image at 62000000 ...
   Using 'config@1' configuration
   Trying 'kernel@1' kernel subimage
     Description:  ARM OpenWrt Linux-3.14.26
     Type:         Kernel Image
     Compression:  uncompressed
     Data Start:   0x620000e4
     Data Size:    1722608 Bytes = 1.6 MiB
     Architecture: ARM
     OS:           Linux
     Load Address: 0x60008000
     Entry Point:  0x60008000
     Hash algo:    crc32
     Hash value:   6611a8c8
     Hash algo:    sha1
     Hash value:   490849128e3c6fafd1fc54d5284bd978e626bcbc
   Verifying Hash Integrity ... crc32+ sha1+ OK
## Loading fdt from FIT Image at 62000000 ...
   Using 'config@1' configuration
   Trying 'fdt@1' fdt subimage
     Description:  ARM OpenWrt pogoplug-pro device tree blob
     Type:         Flat Device Tree
     Compression:  uncompressed
     Data Start:   0x621a4b0c
     Data Size:    6993 Bytes = 6.8 KiB
     Architecture: ARM
     Hash algo:    crc32
     Hash value:   15dce0d6
     Hash algo:    sha1
     Hash value:   08c70cb4db38f437b6000b26305b49052be3345a
   Verifying Hash Integrity ... crc32+ sha1+ OK
   Booting using the fdt blob at 0x621a4b0c
   Loading Kernel Image ... OK
   Loading Device Tree to 67e1d000, end 67e21b50 ... OK

Starting kernel ...

Uncompressing Linux...

XZ-compressed data is corrupt

 -- System halted

Any help much appreciated! I'm able to tftp via LAN and already managed to flash and rescue like 4 years ago after compiling my own openwrt for that device, but almost forgot everything in the last 4 years... :-/ THX i.a.!

FreeBSD on GoFlexHome (8 replies)

$
0
0
After many months of trying and thanks to the patience of bodhi I have got this far:-

U-Boot 2017.05-tld-2 (Jul 26 2017 - 02:37:42 -0700)
Seagate GoFlex Home

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
Hit any key to stop autoboot:  0 
BOOTP broadcast 1
BOOTP broadcast 2
BOOTP broadcast 3
*** Unhandled DHCP Option in OFFER/ACK: 125
*** Unhandled DHCP Option in OFFER/ACK: 125
DHCP client bound to address 192.168.1.54 (1038 ms)
*** Warning: no boot file name; using 'C0A80136.img'
Using egiga0 device
TFTP from server 192.168.1.1; our IP address is 192.168.1.54
Filename 'C0A80136.img'.
Load address: 0x800000
Loading: T T T T T T T T T T 
Retry count exceeded; starting again
Wrong Image Format for bootm command
ERROR: can't get kernel image!
GoFlexHome> usb start
starting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 2 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found
GoFlexHome> printenv
api_address=7b12860
baudrate=115200
bootargs=root=/dev/nfs nfsroot=192.168.1.43: ip=192.168.1.23:192.168.1.43:::::off
bootcmd=bootp; setenv bootargs root=/dev/nfs nfsroot=${serverip}:${rootpath} ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}::off; bootm
bootdelay=3
ethact=egiga0
ethaddr=52:3b:20:9c:11:51
ipaddr=192.168.1.23
serverip=192.168.1.43
stderr=serial,lcd
stdin=serial,cros-ec-keyb
stdout=serial,lcd
usb_boot=fatload usb $usb_device 0x900000 ubldr.bin; go 0x900000;

Environment size: 517/131068 bytes
GoFlexHome> fatload usb 0:1 0x2000000 ubldr
reading ubldr
295973 bytes read in 90 ms (3.1 MiB/s)
GoFlexHome> bootelf 0x02000000
CACHE: Misaligned operation at range [01000098, 01030c04]
CACHE: Misaligned operation at range [01030c04, 01031707]
CACHE: Misaligned operation at range [01031708, 010330f0]
CACHE: Misaligned operation at range [010330f0, 0103558b]
CACHE: Misaligned operation at range [01035590, 01036c98]
CACHE: Misaligned operation at range [01036c98, 01036cf4]
CACHE: Misaligned operation at range [01036cf4, 01036d5c]
CACHE: Misaligned operation at range [01036d5c, 01036e30]
CACHE: Misaligned operation at range [01036e30, 01036e3c]
## Starting application at 0x01000098 ...
Consoles: U-Boot console  
Compatible U-Boot API signature found @0x7b12860

FreeBSD/arm U-Boot loader, Revision 1.2
(Thu Nov 30 14:06:37 GMT 2017 root@Test)

DRAM: 128MB
Number of U-Boot devices: 2
U-Boot env: loaderdev not set, will probe all devices.
Found U-Boot device: disk
  Probing all disk devices...
  Checking unit=0 slice=<auto> partition=<auto>... good.
Booting from disk0s2:
/boot/kernel/kernel data=0x443064+0x30f9c syms=[0x4+0x932d0+0x4+0x667c5]

Hit [Enter] to boot immediately, or any other key for command prompt.
Booting [/boot/kernel/kernel] in 9 seconds... Booting [/boot/kernel/kernel] in 8 seconds... Booting [/boot/kernel/kernel] in 7 seconds... Booting [/boot/kernel/kernel] in 6 seconds... Booting [/boot/kernel/kernel] in 5 seconds... Booting [/boot/kernel/kernel] in 4 seconds... Booting [/boot/kernel/kernel] in 3 seconds... Booting [/boot/kernel/kernel] in 2 seconds... Booting [/boot/kernel/kernel] in 1 second... Booting [/boot/kernel/kernel]...               
Using DTB compiled into kernel.
Kernel entry at 0x1200100...
Kernel args: (null)
Copyright (c) 1992-2017 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
    The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 11.1-RELEASE #0: Thu Nov 30 14:22:01 GMT 2017
    root@Test:/usr/obj/arm.arm/usr/src/sys/DB-88F6XXX arm
FreeBSD clang version 4.0.0 (tags/RELEASE_400/final 297347) (based on LLVM 4.0.0)
module mvs already present!
CPU: Feroceon 88FR131 rev 1 (**unknown 4** core)
  Little-endian DC enabled IC disabled WA disabled DC streaming enabled
  BTB disabled L2 enabled L2 prefetch enabled
  WB enabled LABT branch prediction disabled
  16KB/32B 4-way instruction cache
  16KB/32B 4-way write-back-locking-C data cache
real memory  = 134213632 (127 MB)
avail memory = 123895808 (118 MB)
SOC: Marvell 88F6281 rev A1, TClock 200MHz
  Instruction cache prefetch disabled, data cache prefetch disabled
  256KB 4-way set-associative write-through unified L2 cache
random: entropy device external interface
ofwbus0: <Open Firmware Device Tree>
simplebus0: <Flattened device tree simple bus> on ofwbus0
cpulist0: <Open Firmware CPU Group> on ofwbus0
cpu0: <Open Firmware CPU> on cpulist0
localbus0: <Marvell device bus> on ofwbus0
nand0: <Marvell NAND controller> mem 0xf9300000-0xf93fffff on localbus0
nandbus0: <NAND bus> on nand0
ic0: <Marvell Integrated Interrupt Controller> mem 0x20200-0x2023b on simplebus0
timer0: <Marvell CPU Timer> mem 0x20300-0x2032f irq 1 on simplebus0
Event timer "CPUTimer0" frequency 200000000 Hz quality 1000
Timecounter "CPUTimer1" frequency 200000000 Hz quality 1000
gpio0: <Marvell Integrated GPIO Controller> mem 0x10100-0x1011f irq 35,36,37,38,39,40,41 on simplebus0
rtc0: <Marvell Integrated RTC> mem 0x10300-0x10307 on simplebus0
twsi0: <Marvell Integrated I2C Bus Controller> mem 0x11000-0x1101f irq 43 on simplebus0
iicbus0: <Philips I2C bus> on twsi0
iic0: <I2C generic I/O> on iicbus0
mge0: <Marvell Gigabit Ethernet controller> mem 0x72000-0x73fff irq 12,13,14,11,46 on simplebus0
mge0: PHY8 attached, phy_sc points to mge0
mge0: Ethernet address: 52:3b:20:9c:11:51
mge0: MII failed to find PHY
device_attach: mge0 attach returned 6
uart0: <16550 or compatible> mem 0x12000-0x1201f irq 33 on simplebus0
uart0: console (1056,n,8,1)
uart1: <16550 or compatible> mem 0x12100-0x1211f irq 34 on simplebus0
cesa0: <Marvell Cryptographic Engine and Security Accelerator> mem 0x30000-0x30fff,0x3d000-0x3dfff irq 22 on simplebus0
ehci0: <Marvell Integrated USB 2.0 controller> mem 0x50000-0x50fff irq 48,19 on simplebus0
usbus0: EHCI version 1.0
usbus0 on ehci0
mvs0: <Marvell 88F6281 SATA controller> mem 0x80000-0x85fff irq 21 on simplebus0
mvs0: Gen-IIe, 2 3Gbps ports, Port Multiplier supported with FBS
mvsch0: <Marvell SATA channel> at channel 0 on mvs0
mvsch1: <Marvell SATA channel> at channel 1 on mvs0
pcib0: <Marvell Integrated PCI/PCI-E Controller> mem 0xf1040000-0xf1041fff irq 44 on ofwbus0
pci0: <PCI bus> on pcib0
cryptosoft0: <software crypto>
Timecounters tick every 10.000 msec
usbus0: 480Mbps High Speed USB v2.0

This looks like a FreeBSD problem so I just need to get the U-Boot parameters finalised and I can stop pestering everyone on this forum... :)

Seagate GoFLEX Home won't boot off SATA HDD (7 replies)

$
0
0
So, I managed to flash bodhi's uboot on my Seagate GoFLEX Home (from here) and it has no problem to boot off of an external USB memory stick. However, when I attached a SATA HDD (already formatted as an EXT4 filesystem, labeled with rootfs, and contains a root filesystem extracted from linux-4.15.2-kirkwood-tld-1-bodhi.tar.bz2) to the SATA port, it boots off the SATA port with its LED first flashes as green/yellow and then turns to remain a solid RED. At this point, I can't access it through an SSH login, i.e. no IP Address, etc. Again, it has no problem when boot off of an external USB memory stick even though both USB memory stick and SATA HDD are attached to the device. I also configured it with a netconsole to troubleshoot uBoot without a serial cable. When booting from a SATA HDD, the netconsole output shows it was loading DTB /boot/dts/kirkwood-pogo_e02.dtb. However, when booting off of an external USB memory stick, the netconsole output shows it was loading DTB /boot/dts/kirkwood-goflexhome.dtb (see below). I don't know why. Anyway, the fw_printenv dump is shown below and hope it will reveal what the problem is.

Net Console output (booting from SATA HDD):
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 
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: ST3000DM001-1ER166 Firm: CC26 Ser#: Z503WNB5
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 2861588.4 MB = 2794.5 GB (5860533168 x 512)
Unknown command 'mmc' - try 'help'
## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0
loading envs from usb 0 ...
** Bad device usb 0 **

Partition Map for IDE device 0  --   Partition Type: EFI

Part    Start LBA       End LBA         Name
        Attributes
        Type GUID
        Partition GUID
  1     0x00000800      0x004007ff      "rootfs"
        attrs:  0x0000000000000000
        type:   0fc63daf-8483-4772-8e79-3d69d8477de4
        type:   linux
        guid:   d35fd06c-e4a9-4ac5-8ca0-882586ffd53f
  2     0x00400800      0x008007ff      ""
        attrs:  0x0000000000000000
        type:   0fc63daf-8483-4772-8e79-3d69d8477de4
        type:   linux
        guid:   db41d8bd-746b-4619-874f-14f7ed6025e8
  3     0x00800800      0x00c007ff      ""
        attrs:  0x0000000000000000
        type:   0fc63daf-8483-4772-8e79-3d69d8477de4
        type:   linux
        guid:   b948c24e-3521-414b-88aa-9770a5c65dbe
  4     0x00c00800      0x010007ff      ""
        attrs:  0x0000000000000000
        type:   0657fd6d-a4ab-43c4-84e5-0933c84b4f4f
        type:   swap
        guid:   13145338-7ca2-44d5-b1fe-48d1baa02d23
  5     0x01000800      0x15d50a38e     "data"
        attrs:  0x0000000000000000
        type:   0fc63daf-8483-4772-8e79-3d69d8477de4
        type:   linux
        guid:   111be5a6-ef54-4fee-a33c-01bc1c3e9ff8
Unknown command 'mmc' - try 'help'
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: ST3000DM001-1ER166 Firm: CC26 Ser#: Z503WNB5
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 2861588.4 MB = 2794.5 GB (5860533168 x 512)
device ide 0:1
1 bytes read in 68 ms (0 Bytes/s)
Found bootable drive on ide 0
loading uImage ...
3821592 bytes read in 1029 ms (3.5 MiB/s)
loading uInitrd ...
7245696 bytes read in 1134 ms (6.1 MiB/s)
loading DTB /boot/dts/kirkwood-pogo_e02.dtb ...
10444 bytes read in 111 ms (91.8 KiB/s)
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-4.12.1-kirkwood-tld-1
   Created:      2017-07-20   8:11:24 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3821528 Bytes = 3.6 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 01100000 ...
   Image Name:   initramfs-4.12.1-kirkwood-tld-1
   Created:      2017-07-24   0:18:23 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    7245632 Bytes = 6.9 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 01c00000
   Booting using the fdt blob at 0x1c00000


Starting kernel ...

Net Console output (booting from SATA HDD):
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 
starting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 2 USB Device(s) found
       scanning usb for storage devices... 
Use USB retry period from the environment: 15 second(s)
1 Storage Device(s) found

Reset IDE: Bus 0: OK Bus 1: not available  
  Device 0: Model: ST3000DM001-1ER166 Firm: CC26 Ser#: Z503WNB5
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 2861588.4 MB = 2794.5 GB (5860533168 x 512)
Unknown command 'mmc' - try 'help'

Partition Map for USB device 0  --   Partition Type: DOS

Part    Start Sector    Num Sectors     UUID            Type
  1     2048            7800832         9415b7df-01     83 Boot

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0
loading envs from usb 0 ...
139 bytes read in 753 ms (0 Bytes/s)

Partition Map for IDE device 0  --   Partition Type: EFI

Part    Start LBA       End LBA         Name
        Attributes
        Type GUID
        Partition GUID
  1     0x00000800      0x004007ff      "rootfs"
        attrs:  0x0000000000000000
        type:   0fc63daf-8483-4772-8e79-3d69d8477de4
        type:   linux
        guid:   d35fd06c-e4a9-4ac5-8ca0-882586ffd53f
  2     0x00400800      0x008007ff      ""
        attrs:  0x0000000000000000
        type:   0fc63daf-8483-4772-8e79-3d69d8477de4
        type:   linux
        guid:   db41d8bd-746b-4619-874f-14f7ed6025e8
  3     0x00800800      0x00c007ff      ""
        attrs:  0x0000000000000000
        type:   0fc63daf-8483-4772-8e79-3d69d8477de4
        type:   linux
        guid:   b948c24e-3521-414b-88aa-9770a5c65dbe
  4     0x00c00800      0x010007ff      ""
        attrs:  0x0000000000000000
        type:   0657fd6d-a4ab-43c4-84e5-0933c84b4f4f
        type:   swap
        guid:   13145338-7ca2-44d5-b1fe-48d1baa02d23
  5     0x01000800      0x15d50a38e     "data"
        attrs:  0x0000000000000000
        type:   0fc63daf-8483-4772-8e79-3d69d8477de4
        type:   linux
        guid:   111be5a6-ef54-4fee-a33c-01bc1c3e9ff8
Unknown command 'mmc' - try 'help'
importing envs ...
running scan_disk ...
Scan device mmc
Unknown command 'mmc' - try 'help'
device mmc 0:1
** Bad device mmc 0 **
device mmc 1:1
** Bad device mmc 1 **
device mmc 2:1
** Bad device mmc 2 **
device mmc 3:1
** Bad device mmc 3 **
device mmc 4:1
** Bad device mmc 4 **
device mmc 5:1
** Bad device mmc 5 **
device mmc 6:1
** Bad device mmc 6 **
device mmc 7:1
** Bad device mmc 7 **
Scan device usb
device usb 0:1
1 bytes read in 692 ms (0 Bytes/s)
Found bootable drive on usb 0
loading uImage ...
3821592 bytes read in 823 ms (4.4 MiB/s)
loading uInitrd ...
7245696 bytes read in 820 ms (8.4 MiB/s)
loading DTB /boot/dts/kirkwood-goflexhome.dtb ...
10603 bytes read in 3183 ms (2.9 KiB/s)
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-4.12.1-kirkwood-tld-1
   Created:      2017-07-20   8:11:24 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3821528 Bytes = 3.6 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 01100000 ...
   Image Name:   initramfs-4.12.1-kirkwood-tld-1
   Created:      2017-07-24   0:18:23 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    7245632 Bytes = 6.9 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 01c00000
   Booting using the fdt blob at 0x1c00000


Starting kernel ...

fw_prrintenv dump:
[root@debian:/root 2%] # fw_printenv 
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
ethaddr=00:11:22:33:44:55:66
if_netconsole=ping $serverip
ipaddr=192.168.0.231
led_error=orange blinking
led_exit=green off
led_init=green blinking
dtb_file=/boot/dts/kirkwood-pogo_e02.dtb
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
machid=0x831
mainlineLinux=yes
mtdids=nand0=orion_nand
mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)
partition=nand0,2
preboot_nc=run if_netconsole start_netconsole
scan_disk=echo running scan_disk ...; scan_done=0; setenv scan_usb "usb start";  setenv scan_ide "ide reset";  setenv scan_mmc "mmc rescan"; for dev in $devices; do if test $scan_done -eq 0; then echo Scan device $dev; run scan_$dev; for disknum in $disks; do if test $scan_done -eq 0; then echo device $dev $disknum:1; if load $dev $disknum:1 $load_uimage_addr /boot/uImage 1; then scan_done=1; echo Found bootable drive on $dev $disknum; setenv device $disknum:1; setenv bootdev $dev; fi; fi; done; fi; done
serverip=192.168.0.220
set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts $custom_params
start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version;
stderr=serial
stdin=serial
stdout=serial
uenv_addr=0x810000
uenv_import=echo importing envs ...; env import -t $uenv_addr $filesize
uenv_init_devices=setenv init_usb "usb start";  setenv init_ide "ide reset";  setenv init_mmc "mmc rescan"; for devtype in $devices; do run init_$devtype; done;
uenv_load=run uenv_init_devices; setenv uenv_loaded 0; for devtype in $devices;  do for disknum in 0; do run uenv_read_disk; done; done;
uenv_read_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=3338
[root@debian:/root 3%] #

/boot/uEnv.txt on a SATA HDD:
dtb_file=/boot/dts/kirkwood-goflexhome.dtb
devices=usb ide
disks=0 1 2 3 4 5 6 7

/boot/uEnv.txt on a SATA HDD:
dtb_file=/boot/dts/kirkwood-goflexhome.dtb
devices=usb ide
disks=0 1 2 3 4 5 6 7

Pogoplug V3 (OXNAS OX820) Questions (2 replies)

$
0
0
Bodhi, do you have a list of setenvs? I intend to set this up as a multi-usb cloud for home use and be able to access remotely. I'm running it through a Linksys wrt32x router so speed is no issue and I do have communication ( the router sees it), however I cannot access it from the browser yet, I know there has to be an easy fix but as usual I am still learning, I hope all this helps the next guy:)

thanks Echowarrior108

NSA325v2 uBoot messed up after upgrade (1 reply)

$
0
0
Hi guys,
at first: Thank you, especially Bodhi, for all the work you set into this project.

I have a NSA325v2 with UART-access. I' ve been using Debian 4.4 since february 2016. Last weekend my USB flash key is broken - no partitions, no block-device-access, no recognition via fdisk.

So I bought a new one and downloaded the debian-4.12.1-rootfs. There is only one partition and I formatted it to ext3 and labeled it "rootfs". Then I got root an expanded the tarball in this partition. I've checked /etc/fstab for the fs-type of the root-partition.

I could not boot into the new OS, therefore I tried to upgrade uBoot from stock to 2017.07.

I followed the instructions in this thread https://forum.doozan.com/read.php?3,12381, but I am not sure, if I missed some point.

  • I backed up the env and mtd0, but in an overhasty act I destroyed the backup on the flash key.
  • I checked for bad blocks, but there were none.
  • I erased /mtd0 and wrote the uboot.2017.07-tld-1-nsa325.mtd0.kwb to /mtd0. The output was as expected.
  • I think, I might have skipped flashing the default u-boot envs.

I've put the uEnv.txt-file in the /boot-folder and when I start the NAS and can get to the "NSA325>" prompt.

When I try to autoboot to Debian I get stuck either at
"Uncompressing Linux... done, booting the kernel."
when I build the uImage with
cp -a zImage-4.12.1-kirkwood-tld-1  zImage.fdt
cat dts/kirkwood-goflexnet.dtb  >> zImage.fdt
mv uImage uImage.orig
mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-4.12.1-kirkwood-tld-1 -d zImage.fdt  uImage

or at
Error: unrecognized/unsupported machine ID (r1 = 0x0000118f).

Available machine support:

ID (hex)        NAME
ffffffff        Generic DT based system
ffffffff        Marvell Kirkwood (Flattened Device Tree)

Please check your kernel config and/or bootloader.
when I use the original image file without embedded dtb file.

I've double checked, but "machid" is neither set in uEnv.txt nor in "setenv".


Screen of my NAS with skipped autoboot:
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 
NSA325>

This is the environment:
arcNumber=4495
baudrate=115200
bootargs=$(bootargs_linux)
bootargs_0000(key_store),0x80000(info),0xA00000(etc),0xA00000(kernel_1),0x2FC0000(rootfs1),0xA00000(kernel_2),0x2FC0000(rootfs2)=root=LABEL=rootfs loglevel=8
bootargs_inux=consol=ttyS0,115200 mtdparts=nand_mtd:0x100000(uboot),0x80000(uboot_env),0x80000(key_store),0x80000(info),0xA00000(etc),0xA00000(kernel_1),0x2FC0000(rootfs1),0A00000(kernel_2),0x2FC0000(rootfs2) root=LABEL=rootfs loglevel=8
bootargs_linux=console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 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) earlyprintk=serial
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=echo Booting Linux... ; run bootcmd_linux; echo booting from NAND... ; run bootcmd_stock; reset
bootcmd_largs=)
bootcmd_linux=setenv mainlineLinux yes; setenv bootargs $(bootargs_linux); mw.l f1010100 0020c000; usb reset; ext2load usb 0:1 0x1c00000 /boot/dts/kirkwood-nsa325.dtb; ext2load usb 0:1 0x800000  /boot/uImage; ext2load usb 0:1 0x02100000 /boot/uInitrd; bootm 0x800000 0x02100000
bootcmd_lnv=bootargs $(bootargs_linux)
bootcmd_ls=$(bootargs_linux)
bootcmd_stock=setenv mainlineLinux no; setenv bootargs $(bootargs_stock); nand read.e 0x2000000 $(kernel_addr) 0xA00000; bootm 0x2000000
bootdelay=3
devices=usb ide
disks=0 1 2 3 4 5 6 7
ethact=egiga0
ethaddr=00:50:43:00:02:02
fileaddr=1100000
filesize=6e8f80
ipaddr=192.168.1.5
load_dtb=ext2load usb 0:1 0x1c00000 /boot/dts/kirkwood-nsa325.dtb
load_init=ext2load usb 0:1 0x1100000 /boot/uInitrd
load_initrd=ext2load usb 0:1 0x1100000 /boot/uInitrd
load_uimage=ext2load usb 0:1 0x800000 /boot/uImage
loadaddr=0x02000000
mainlineLinux=yes
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)
serverip=192.168.152.24
stderr=serial
stdin=serial
stdout=serial
to_linux=setenv mainlineLinux yes; setenv bootcmd \\'run bootcmd_linux\\'; saveenv; reset
to_stock=setenv mainlineLinux no; setenv bootcmd \\'run bootcmd_stock\\'; saveenv; reset
usb_boot=run load_dtb; run load_uimage; if run load_initrd; then bootm 0x800000 0x1100000 0x1c00000; else bootm 0x800000 - 0x1c00000; fi
usb_set_bootargs=setenv bootargs console=$console root=$usb_root rootdelay=$usb_rootdelay rootfstype=$usb_rootfstype $mtdparts init=/bin/systemd


My OS on the PC is openSUSE, so at the moment I can't use kwboot to rebuild the uBoot-Environment at the moment. (Yes, I've already tried that...).

Can anybody tell me, what I've missed or what I can do to get this box up and running again?


-andy-

Install u-boot on NSA320 - how to set fw_env.config (5 replies)

$
0
0
I'm trying to flash the latest U-Boot on my NSA-320. I got to step c and I get a bad block error when I try to execute "fw_printenv > current_envs.txt". In step 8 the "Device offset" was "0x0000", so I changed it to "0xc0000" as directed. When I changed it back to "0x0000" the "fw_printenv > current_envs.txt" command works fine.

I'm afraid to reboot now! What do I do?

NSA310 original u-boot request (no replies)

$
0
0
Hello! I'm looking for an original u-boot for nsa310. I didn't make a backup and I want to go back to stock. Pls help.

my netgear stora has stopped loading from the built-in HDD (12 replies)

$
0
0
Hello! Bodhi

I have a problem after updating uboot.2017.07-tld-1.netgear_ms2110.bodhi.tar my netgear stora has stopped loading from the built-in HDD

The USB disk is loaded well.

help please understand the problem

Thank you!


Netgear Stora> printenv
printenv
arcNumber=2743
bootargs=console=ttyS0,115200 root=LABEL=rootfs rootdelay=0
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=5
devices=usb ide
ethact=egiga0
ethaddr=C0:3F:0E:B0:E6:EC
if_netconsole=ping $serverip
init_ide=ide reset
init_mmc=mmc rescan
init_usb=usb start
ipaddr=192.168.1.141
led_error=orange blinking
led_exit=green off
led_init=white 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
nc_ready=1
ncip=192.168.1.27
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
scan_ide=ide reset
scan_mmc=mmc rescan
scan_usb=usb start
serverip=192.168.1.27
set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=0
start_netconsole=setenv ncip $serverip; setenv bootdelay 5; 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=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_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_ready_retry=15

Environment size: 3003/131068 bytes
Netgear Stora>



Netgear Stora> boot
boot

Reset IDE: Bus 0: OK Bus 1: OK 
  Device 0: Model: ST3500320AS  Firm: SD1A Ser#: 9QM62ZZS
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 476938.9 MB = 465.7 GB (976771055 x 512)
  Device 1: Model: Hitachi HDS721010CLA332  Firm: JP4OA3EA Ser#: JP2911HD00GTPC
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 953869.7 MB = 931.5 GB (1953525168 x 512)
** First descriptor is NOT a primary desc on 1:1 **
## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0
loading envs from usb 0 ...
** Bad device usb 0 **

Partition Map for IDE device 0  --   Partition Type: DOS

Part	Start Sector	Num Sectors	UUID		Type
  1	10487808  	8388608   	9f9b604e-01	83 Boot
  2	2048      	10485760  	9f9b604e-02	82
  3	18876416  	957894639 	9f9b604e-03	8e
running scan_disk ...
Scan device usb
Scan device ide

Reset IDE: Bus 0: OK Bus 1: OK 
  Device 0: Model: ST3500320AS  Firm: SD1A Ser#: 9QM62ZZS
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 476938.9 MB = 465.7 GB (976771055 x 512)
  Device 1: Model: Hitachi HDS721010CLA332  Firm: JP4OA3EA Ser#: JP2911HD00GTPC
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 953869.7 MB = 931.5 GB (1953525168 x 512)
** First descriptor is NOT a primary desc on 1:1 **
loading uImage ...
** Bad device specification 0x800000 /boot/uImage **
loading uInitrd ...
** Bad device specification 0x1100000 /boot/uInitrd **
loading DTB ...
** No device specified **
Wrong Image Format for bootm command
ERROR: can't get kernel image!
Netgear Stora>



Netgear Stora> usb reset
usb reset
resetting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 2 USB Device(s) found
       scanning usb for storage devices... 
Use USB retry period from the environment: 15 second(s)
1 Storage Device(s) found
Netgear Stora> boot
boot

Reset IDE: Bus 0: OK Bus 1: OK 
  Device 0: Model: ST3500320AS  Firm: SD1A Ser#: 9QM62ZZS
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 476938.9 MB = 465.7 GB (976771055 x 512)
  Device 1: Model: Hitachi HDS721010CLA332  Firm: JP4OA3EA Ser#: JP2911HD00GTPC
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 953869.7 MB = 931.5 GB (1953525168 x 512)
** First descriptor is NOT a primary desc on 1:1 **

Partition Map for USB device 0  --   Partition Type: DOS

Part	Start Sector	Num Sectors	UUID		Type
  1	2048      	62978048  	0022902e-01	83

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0
loading envs from usb 0 ...
86 bytes read in 569 ms (0 Bytes/s)

Partition Map for IDE device 0  --   Partition Type: DOS

Part	Start Sector	Num Sectors	UUID		Type
  1	10487808  	8388608   	9f9b604e-01	83 Boot
  2	2048      	10485760  	9f9b604e-02	82
  3	18876416  	957894639 	9f9b604e-03	8e
importing envs ...
running scan_disk ...
Scan device usb
device usb 0:1
1 bytes read in 507 ms (0 Bytes/s)
Found bootable drive on usb 0
loading uImage ...
3926040 bytes read in 635 ms (5.9 MiB/s)
loading uInitrd ...
7858105 bytes read in 625 ms (12 MiB/s)
loading DTB /boot/dts/kirkwood-netgear_stora_ms2000.dtb ...
11499 bytes read in 2306 ms (3.9 KiB/s)
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-4.15.2-kirkwood-tld-1
   Created:      2018-04-05  10:13:15 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3925976 Bytes = 3.7 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 01100000 ...
   Image Name:   initramfs-4.15.2-kirkwood-tld-1
   Created:      2018-04-05  10:15:35 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    7858041 Bytes = 7.5 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 ...

nsa 325v2 vs debian noob questions (no replies)

$
0
0
Hiya,
i own a nsa 325v2 and would like to install debian on it, just i have some questions i cannot seem to find the answer anywhere, so if there's some sort of noob guide i've missed, please gimme the link.

So.. first of all i've read this from nas central and this from Buttzy10169: so if i have understood it well the procedure needs to modify the inborn boot manager, right?
Is there any way to revert these changes?

Once i modify the boot order should i update the uboot? any cons?

Next step is to prepare the usb drive with debian, right?
According to nas central i just have to unzip and put folders into the two partitions, while on bodhi instructions setlist the thing is much longer: which procedure should i follow?

Is there any easy way to backup all of the nas firmware, boot, etc and to flash it back in case i brick it?

Pogoplug V3 (OXNAS OX820) mpcie altenatives (no replies)

$
0
0
After much help from Bodhi, thank you! ,

I have attempted and made work a microUSB dual card in the minipcie slot, this was mainly because I don't use the wifi card and also I wanted to free up all my usb ports! Keep in mind I used a working USB rootfs with debian installed.

Please read entirely before trying this ! I claim no responsibility for personal injury or bricked unit!

How I did this was not too complicated but I wanted to log it all so others with this will be able to bypass the roadblocks I ran into, first I ordered a minipcie with dual slot microusb ports ( i'm sure others will work) :

https://www.amazon.com/gp/product/B00S6AQUK0/ref=oh_aui_detailpage_o01_s00?ie=UTF8&psc=1

next I ordered 2 micro pcie usb cards, I used sandisk 16gb, the reason for two was that I was hoping to use the second as a swap however I have not tested that at this time but I did format it as a linux-swap.

next I took the working usb rootfs and put it in my pc, (I used windows and miniTool Partition Wizard Edition, however I am sure you could do this in gparted or cp in terminal) then inserted the micro usb and ran the program. then I simply copied the partition. It took some time btw:)

after that i took out the micro usb and inserted the second one and formatted it to linux-swap.

next I placed both cards in the mpcie adapter ( they insert by sliding the clips and placing them in and putting the little covers back over the cards and sliding them back, yes it took me a bit to figure it out, my eyes are not what they used to be:)

I then unplugged and took apart the pogoplug, removed the wifi card on the back of the board.
next I inserted the card and tested it by powering it up out of the case, (not recommended because it has live 120v when exposed) and it did absolutely nothing!
The issue was that the card touches the board very slightly and I almost bricked the board. my fix was some small strips of electrical tape placed between the card and the board then snugging down the retaining screws. plugged it back in and had lights! simple successes excite me:) after testing it out I had net console access just like with the usb rootfs. so then i re-assembled the unit and rebooted and am keeping the usb rootfs as a backup in case I get crazy and mess up the working micro usb....


I hope this helps someone that is looking for more ports and I am no expert so feel free to let me know if there are other things I can do with this!!

Thanks and good luck! Echowarrior108

Booting ArchLinuxARM on a Seagate GoFLEX Home (1 reply)

$
0
0
Bodhi,

I don't know if this is the right place to ask question below. If not, I will ask on the ArchLinuxARM forum.

I have a Seagate GoFLEX Home flashed with your 2017.07 U-Boot Kirkwood - GoFlex Home and it has no problem to boot up with a debian ARM OS. Right now, I would like my Seagate GoFLEX Home to boot and/or run ALARM (Arch Linux ARM) OS. So, I downloaded and extracted the ArchLinuxARM-2018.04-kirkwood-rootfs.tar.gz on a USB memory stick and notice its /boot directory only contains ONLY two files, i.e. initramfs-linux.img and uImage. Since it does not come with a .dtb file, I have my /boot/uEnv.txt configured as shown below and my device won't boot. Perhaps, I did something wrong or may be your uboot doesn't support ALARM OS? Do you think you can help me out in this case?
devices=usb ide
disks=0 1 2 3 4 5 6 7
dtb_file=

Issue booting after uboot update (3 replies)

$
0
0
Using Bodhi's excellent instructions I've booted the Debian rootfs from USB and updated to the latest kernel - Linux stora 4.15.2-kirkwood-tld-1

My original uboot system was: U-Boot 1.1.4 (Sep 4 2009 - 09:36:11) Marvell version: 3.4.14
and I'm updating to uboot.2017.07-tld-1.netgear_ms2110.mtd0.kwb

I've got a serial console and I tested with UART and booted successfully so I went ahead with the flashing process.

Following the guide I got to the stage where I check for bad blocks...
root@stora:~# dmesg | grep -i 'bad'
[    8.151723] Scanning device for bad blocks
[    8.204418] Bad eraseblock 448 at 0x000003800000
[    8.215826] Bad eraseblock 511 at 0x000003fe0000
[    8.269987] Bad eraseblock 969 at 0x000007920000
[    8.283464] Bad eraseblock 1051 at 0x000008360000
[    8.295284] Bad eraseblock 1117 at 0x000008ba0000
[    8.342523] Bad eraseblock 1510 at 0x00000bcc0000
[    8.398180] Bad eraseblock 1979 at 0x00000f760000
You say blocks 0 - 7 are the ones to watch out for. I'm not sure if you're referring to the first number (in decimal) or the hex number (which I don't know how to read), but I assumed you meant the decimal number and went ahead to the next step. Maybe you could make the instructions slightly clearer for people who are newbies to this area like me?

At step 7 I got unexpected output:
root@stora:~# flash_erase /dev/mtd0 0 4
Erasing 128 Kibyte @ 465f5c00000064 --  4 % complete 
root@stora:~#

At step 8 it's similar:
root@stora:/tmp# /usr/sbin/flash_erase /dev/mtd0 0xc0000 1
Erasing 128 Kibyte @ 47af5c00000064 --  7 % complete
...but I completed all of the steps and rebooted and uboot has been upgraded successfully!

It loads the kernel and initrd and Debian starts booting, but then it gets stuck -
[   10.342612] VFS: Cannot open root device "(null)" or unknown-block(0,0): error -6
[   10.350137] Please append a correct "root=" boot option; here are the available partitions:
[   10.358656] 1f00            1024 mtdblock0
[   10.358662]  (driver?)
[   10.365300] 1f01            6144 mtdblock1
[   10.365305]  (driver?)
[   10.371921] 1f02          254976 mtdblock2
[   10.371926]  (driver?)
[   10.378498] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)

It seems that uboot knows where to find and load the kernel, but the kernel isn't accepting the 'root' part from this environment var:
set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts $custom_params

When I replace 'root=LABEL=rootfs' with 'root=/dev/sda1' it boots Debian correctly, but when I plug the hard disks back in the block devices are numbered randomly and then a similar issue occurs. I updated /etc/fstab to use a UUID instead of /dev/sdX but is there a way to do this in the uboot args as well seeing as the label isn't working?

When the USB stick is plugged into my computer -
$ blkid
/dev/sdb1: LABEL="rootfs" UUID="4be089b4-752a-4ea9-b021-b1d88fff3857" SEC_TYPE="ext2" TYPE="ext3" PARTUUID="96dd54ae-01"

Any help would be greatly appreciated.
Viewing all 902 articles
Browse latest View live