Quantcast
Channel: Linux Device Hacking - Rescue System
Viewing all 142 articles
Browse latest View live

stuck at uBoot with wrong env settings (2 replies)

$
0
0
Hi all,

I have a goflex net and something went amiss during my last ARCH linux installation following the provided docs. Before that I had a working debian system - but unfortunately (maybe too confident in myself) I did no backups!

After that I tried a couple of things - sure to be able to solve it myself. I even tryed to install to NAND (openwrt) - only to get a running system. But now it seems I am hoplessly lost in a mixed uBoot env setting unable to boot from usb and unable to resolve it myself.

I have:
  • a goflex net with presumably wrong environment settings
  • a working serial connection (cable! not netconsole)
  • a working network connection
  • a running TFTP server - and able to load and boot images
  • a running UART boot setung with kwboot-tool
  • a bootable (tested) usb stick with ext2 with the rescue system from http://forum.doozan.com/read.php?4,8277

Although I am able to boot from tftp I am lacking a bootable uImage/Initrd.

This is what my boot up and env look like:
GoFlexNet> printenv
arcNumber=3089
baudrate=115200
bootcmd=${x_bootcmd_kernel}; setenv bootargs ${x_bootargs} ${x_bootargs_root}; ${x_bootcmd_usb}; bootm 0x6400000;
bootcmd_pogo=fsload uboot-original-mtd0.kwb; go 0x800200
bootcmd_usb=run usb_init; run usb_load_uimage; run set_bootargs_usb; run usb_boot;
bootdelay=3
console=ttyS0,115200
ethact=egiga0
ethaddr=00:10:75:26:8C:AD
ipaddr=192.168.178.111
led_error=orange blinking
led_exit=green off
led_init=green blinking
machid=c11
mainlineLinux=yes
mtdids=nand0=orion_nand
mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)
partition=nand0,2
serverip=192.168.178.29
set_bootargs_usb=setenv bootargs console=$console root=$usb_root rootdelay=$usb_rootdelay rootfstype=$usb_rootfstype $mtdparts
stderr=serial
stdin=serial
stdout=serial
usb_boot=if ext2load usb $usb_device 0x1100000 /boot/uInitrd; then bootm 0x800000 0x1100000;else bootm 0x800000;fi;
usb_device=0:1
usb_init=usb start
usb_load_uimage=mw 0x800000 0 1; ext2load usb $usb_device 0x800000 /boot/uImage
usb_root=/dev/sda1
usb_rootdelay=10
usb_rootfstype=ext2
x_bootargs=console=ttyS0,115200 mtdparts=orion_nand:1M(u-boot),1M@1M(second_stage_u-boot),3M@2M(kernel),251M@5M(rootfs) rw
x_bootargs_root=root=/dev/mtdblock3 rw rootfstype=jffs2
x_bootcmd_kernel=nand read 0x6400000 0x200000 0x300000
x_bootcmd_usb=usb start

Environment size: 1397/131068 bytes


This is my succesful uBoot UART booting with kwboot:
sudo ./kwboot-tool/kwboot -t -B 115200 /dev/ttyUSB0  -b uboot.2014.07-tld-1.goflexnet.mtd0.kwb -p
[sudo]
Sending boot message. Please reboot the target...-
Sending boot image...
  0 % [......................................................................]
  <snip>
 99 % [....................................]
[Type Ctrl-\ + c to quit]
?

U-Boot 2014.07-tld-1 (Jul 18 2014 - 00:35:50)
Seagate GoFlex Net

SoC:   Kirkwood 88F6281_A1
DRAM:  128 MiB
WARNING: Caches not enabled
NAND:  256 MiB
In:    serial
Out:   serial
Err:   serial
Net:   egiga0
88E1116 Initialized on egiga0
Hit any key to stop autoboot:  0
GoFlexNet>


This is my succesful tftp transfer with failed boot:
tftp 0x800000 uImage
Using egiga0 device
TFTP from server 192.168.178.29; our IP address is 192.168.178.111
Filename 'uImage'.
Load address: 0x800000
Loading: #################################################################
	 #################################################################
	 #################################################################
	 #####################################################
	 6.9 MiB/s
done
Bytes transferred = 3627880 (375b68 hex)
GoFlexNet> go 0x800000
## Starting application at 0x00800000 ...
<device hangs - nothing happens here>

I'm just stuck at my uBoot with working uart and tftp but still unable to take the next step. Maybe all I need is a proper uImage/Initrd and working uBoot env settings.

Help appreciated.

Regards

/dev/mtd2: no such file or directory (1 reply)

$
0
0
Hey guys,

Sorry if this is a dumb question. I did a quick search and can't seem to find any answer.

So I have a pogoplug E02 and I am hoping to get Rescue System running on it. When running the install script (install_rescue.sh) it failed when trying to write to /dev/mtd2. There is no such a file on my pogoplug somehow (all I have is mtd0, mtd0ro, mtd1, mtd1ro). The uBoot I have is the uboot-pogo_e02 (2014.04.R4-1).

What did I messed up?

Thanks!

Bricked? Pogo Pro; System restore (1 reply)

$
0
0
I attempted to install Arch on my Pogo Pro (r2s4 P22) and had a bunch of issues. Somehow, I botched the installation and am unsure of how to restore the original Pogoplug software to start from a clean slate.

I have attempted to establish a serial connection as specified in Qui's blog: and have had no luck...
http://blog.qnology.com/2013/10/pogoplug-e02-v2-serial-connection.html

The device does not show up on my network nor can I connect in PuTTY. The Green LED flashes rapidly and when connected the ethernet port has both LEDs blink.

Any ideas how to either restore the system to factory settings or put any form of linux on it to rescue my seemingly "bricked" device?

Seagate Goflex Net hangs at startup (9 replies)

$
0
0
Hello,
the filesystem on my usb drive crashed. Now I have a new usb drive but debian didn't like to start up. No network cable connected and using Debian-3.17.0-kirkwood-tld-1-rootfs-bodhi.tar.bz2
Thanks!

I have already get all information over serial/uart:
without usb drive:
U-Boot 2011.12 (Apr 18 2012 - 23:08:20)
Seagate GoFlexNet

SoC:   Kirkwood 88F6281_A1
DRAM:  128 MiB
WARNING: Caches not enabled
NAND:  256 MiB
In:    serial
Out:   serial
Err:   serial
Net:   egiga0
88E1116 Initialized on egiga0
Using egiga0 device
ping failed; host 10.10.10.5 is not alive
Hit any key to stop autoboot:  0
(Re)start USB...
USB:   Register 10011 NbrPorts 1
USB EHCI 1.00
scanning bus for devices... 1 USB Device(s) found
       scanning bus for storage devices... 0 Storage Device(s) found
** Block device usb 0 not supported

** Invalid boot device **
Creating 1 MTD partitions on "nand0":
0x000002500000-0x000010000000 : "mtd=3"
UBI: attaching mtd1 to ubi0
UBI: physical eraseblock size:   131072 bytes (128 KiB)
UBI: logical eraseblock size:    129024 bytes
UBI: smallest flash I/O unit:    2048
UBI: sub-page size:              512
UBI: VID header offset:          512 (aligned 512)
UBI: data offset:                2048
UBI: attached mtd1 to ubi0
UBI: MTD device name:            "mtd=3"
UBI: MTD device size:            219 MiB
UBI: number of good PEBs:        1751
UBI: number of bad PEBs:         1
UBI: max. allowed volumes:       128
UBI: wear-leveling threshold:    4096
UBI: number of internal volumes: 1
UBI: number of user volumes:     0
UBI: available PEBs:             1730
UBI: total number of reserved PEBs: 21
UBI: number of PEBs reserved for bad PEB handling: 17
UBI: max/mean erase counter: 1/1
UBIFS error (pid 0): ubifs_get_sb: cannot open "ubi:rootfs", error -19
Error reading superblock on volume 'ubi:rootfs'!
** Block device usb 0 not supported
** Block device usb 1 not supported
** Block device usb 2 not supported
** Block device usb 3 not supported
** Block device usb 0 not supported
** Block device usb 0 not supported
Wrong Image Format for bootm command
ERROR: can't get kernel image!
stopping USB..

Reset IDE: ide_preinit failed
** No boot file defined **
### JFFS2 loading 'uboot-original-mtd0.kwb' to 0x800000
Scanning JFFS2 FS: ........  read_nand_cached: error reading nand off 0x187f800       size 8192 bytes
read_nand_cached: error reading nand off 0x1881800 size 8192 bytes
read_nand_cached: error reading nand off 0x1883800 size 8192 bytes
read_nand_cached: error reading nand off 0x1885800 size 8192 bytes
read_nand_cached: error reading nand off 0x1887800 size 8192 bytes
read_nand_cached: error reading nand off 0x1889800 size 8192 bytes
read_nand_cached: error reading nand off 0x188b800 size 8192 bytes
read_nand_cached: error reading nand off 0x188d800 size 8192 bytes
read_nand_cached: error reading nand off 0x188f800 size 8192 bytes
read_nand_cached: error reading nand off 0x1891800 size 8192 bytes
read_nand_cached: error reading nand off 0x1893800 size 8192 bytes
read_nand_cached: error reading nand off 0x1895800 size 8192 bytes
read_nand_cached: error reading nand off 0x1897800 size 8192 bytes
read_nand_cached: error reading nand off 0x1899800 size 8192 bytes
read_nand_cached: error reading nand off 0x189b800 size 8192 bytes
read_nand_cached: error reading nand off 0x189d800 size 8192 bytes
read_nand_cached: error reading nand off 0x189f800 size 8192 bytes            .       done.
### JFFS2 load complete: 524288 bytes loaded to 0x800000
## Starting application at 0x00800200 ...

with usb drive
U-Boot 2011.12 (Apr 18 2012 - 23:08:20)
Seagate GoFlexNet

SoC:   Kirkwood 88F6281_A1
DRAM:  128 MiB
WARNING: Caches not enabled
NAND:  256 MiB
In:    serial
Out:   serial
Err:   serial
Net:   egiga0
88E1116 Initialized on egiga0
Using egiga0 device
ping failed; host 10.10.10.5 is not alive
Hit any key to stop autoboot:  0
(Re)start USB...
USB:   Register 10011 NbrPorts 1
USB EHCI 1.00
scanning bus for devices... 2 USB Device(s) found
       scanning bus for storage devices... 1 Storage Device(s) found
Loading file "/rescueme" from usb device 0:1 (usbda1)
** File not found /rescueme
reading /rescueme.txt

** Unable to read "/rescueme.txt" from usb 0:1 **
Creating 1 MTD partitions on "nand0":
0x000002500000-0x000010000000 : "mtd=3"
UBI: attaching mtd1 to ubi0
UBI: physical eraseblock size:   131072 bytes (128 KiB)
UBI: logical eraseblock size:    129024 bytes
UBI: smallest flash I/O unit:    2048
UBI: sub-page size:              512
UBI: VID header offset:          512 (aligned 512)
UBI: data offset:                2048
UBI: attached mtd1 to ubi0
UBI: MTD device name:            "mtd=3"
UBI: MTD device size:            219 MiB
UBI: number of good PEBs:        1751
UBI: number of bad PEBs:         1
UBI: max. allowed volumes:       128
UBI: wear-leveling threshold:    4096
UBI: number of internal volumes: 1
UBI: number of user volumes:     0
UBI: available PEBs:             1730
UBI: total number of reserved PEBs: 21
UBI: number of PEBs reserved for bad PEB handling: 17
UBI: max/mean erase counter: 1/1
UBIFS error (pid 0): ubifs_get_sb: cannot open "ubi:rootfs", error -19
Error reading superblock on volume 'ubi:rootfs'!
Loading file "/boot/uImage" from usb device 0:1 (usbda1)
1 bytes read
Found bootable drive on usb 0:1
Loading file "/boot/uImage" from usb device 0:1 (usbda1)
2822232 bytes read
Loading file "/boot/uInitrd" from usb device 0:1 (usbda1)
6114335 bytes read
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-3.17.0-kirkwood-tld-1
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2822168 Bytes = 2.7 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 01100000 ...
   Image Name:   initramfs-3.17.0-kirkwood-tld-1
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    6114271 Bytes = 5.8 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.

Error: unrecognized/unsupported machine ID (r1 = 0x00000c11).

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.

Funnily Bricked E02 - Possible uBoot issue - Followed V4 tutorial and bricked :( (19 replies)

$
0
0
Hi,

First of all, this place is great. Learned so much today from this forum.

I was trying to get samba on my pogoplug E02 pink. Followed Qui's blog, but then timestamp were not correct. Tried getting ntp installed didn't work. So decied to go with ArchLinux instead.

Suddenly, out of nowhere, Iost ssh access. Tried de-register and register did not help. Again somewhere on Qui's blog I found the way to get temporarily ssh working with curl thing. That worked.

Then by mistake, I kept following instruction from the same tutorial, which was supposedly for V4 debian installation. The link I followed - http://blog.qnology.com/2014/07/hacking-pogoplug-v4-series-4-and-mobile.html

When I rebooted, pogo didn't come back. Currently these issues are being faced-
1. Does not read USB! Tried HDD as well as flash drivers. HDD doesn't do anything. Flash drives lit up for a sec and go away.

2. Does not show front LED- I am guessing my env is incorrect since I followed V4, hence no LED.

3. Only flashes network LEDs once in a while, I guess. However, no IP assigned if I check my router's DHCP page.

What I tried -
1. Disconnected all drivers and hope to boot from internal flash, didn't help. Did not get an IP address to ssh into.
2. Followed Bodhi's ArchLinux/Debian images on ext3 as well as ext2 formatted flash drivers, did not boot. Again, as I reported above, flash drive light would lit up and go away.

Seems like I've put system in weird mode/setting for v4 so all peripherals stopped working.

Is their an easier way (by booting something) to rescue or do I have to with serial uBoot restore and stuff ?

Any help is highly appreciated. Strarbucks Coffee offered !
Please guide me with correct link/info/steps.

Rescue System Pogo V3 - Using Stock Pogo V3 OS (51 replies)

$
0
0
This procedure will allow us to use the stock Pogo V3 OS as a simple rescue system. When the Pogo V3 fails to boot with the currently attached rootfs on USB or HDD, stock Pogo OS can serve as a very simple rescue system to allow logging in through SSH and fix whatever is ailing the rootfs at the moment, eg. corrupted file system, mis-configured SSH, so on. Potentially, it can be used for more capabilities with optware or by just copying binaries to it.

Requirement:

1. The new U-Boot for Pogoplug V3 has been installed in your Pogoplug V3.

2. The original "data" MTD has not been modified (note that the original stock MTD definition looks slightly different but both "boot" and "data" MTDs are still basically at the same location).
cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00e00000 00020000 "boot"
mtd1: 07200000 00020000 "data"

Installation:

1. Setup u-boot envs:

fw_setenv bootcmd_stock 'setenv autoload n; setenv bootargs_stock "root=ubi0:rootfs ubi.mtd=2,512 rootfstype=ubifs console=ttyS0,115200 elevator=cfq mac_adr=0x00,0x30,0xe0,0x00,0x00,0x01 mem=128M"; setenv poweroutage yes; setenv boot "bootm 60500000"; setenv bootcmd_stock_fw "run set_bootargs_stock; run boot_nand"; setenv boot bootm 60500000; setenv boot_nand "run load_nand boot || run load_nand2 boot"; setenv kernflmode s; setenv load_nand2 "nboot 60500000 0 800000"; setenv load_nand "nboot 60500000 0 200000"; setenv set_bootargs_stock "setenv bootargs $bootargs_stock"; setenv mainlinelinux no; run bootcmd_stock_fw'

and then add this to the end of the current bootcmd. For example, if the current bootcmd is
bootcmd=run dt_bootcmd_usb; reset
then
fw_setenv bootcmd 'run dt_bootcmd_usb; run bootcmd_stock; reset'

Note: the idea is to add run bootcmd_stock to your current bootcmd. It might be different than the example.


Shutdown the Pogo V3 and remove the current USB/HDD rootfs. Power up and it will boot into stock Pogo OS.

2. Login the Pogo OS and setup to kill the Pogo process permanently, and some do some cleanup.

2A. Find the Pogo dynamic IP address in your router, or use some scanning program such as Linux nmap, IOS Fing,... And then use the credential that you have set up previously for stock Pogo OS during intial set up to boot new U-boot and/or Debian kernel (remember that root/password ?).

After logging in, you can kill pogoplug process so it won't interfere with normal opration:
killall hbwd

2B. Edit the file /etc/init.d/rcS to kill pogoplug service permanently.

Find the line which contains "hbmgr.sh start" and comment out the whole line, and add a new line to start dropbear:
###/etc/init.d/hbmgr.sh start
/usr/sbin/dropbear

2C. Comment out these lines to ensure booting without NAND checksum errors:

#if /usr/local/cloudengines/bin/blparam | grep ethaddr > /tmp/ethaddr; then
#	. /tmp/ethaddr
#fi
#rm -f /tmp/ethaddr
#if /usr/local/cloudengines/bin/blparam | grep cedebug > /tmp/cedebug; then
#	. /tmp/cedebug
#fi
#rm -f /tmp/cedebug


3. Download useful utilities

While in Pogo OS, you can download the following binpack so that the normal tools for use in nand installation and fixing filesystem, will be available in the system (you should download it to your USB rootfs using another Linux box).

Dowload: http://forum.doozan.com/read.php?3,27280,27280#msg-27280

Extract, and copy all binaries to /usr/loclal/bin for later emergency use.

4. Shutdown the Pogo V3, and powering up again to verify that you can login into stock OS.

DONE.

That's it! you have a simple rescue system on Pogoplug V3.

Please post feedbacks, especially about running the downloaded binaries. I have not tested this capability thoroughly.

Any possible for Pogo V4? (6 replies)

$
0
0
With my issues of late, I was wondering if there had been any progress or success with the pp v4. Looking at some of the listed variants, it seems to be enough room in the memory.
Can anyone confirm a working rescue or "other" running from the nand?

pogoplug E02 prompt "ERROR: can't get kernel image!", please help! (24 replies)

$
0
0
Hi, all

my target is pogoplug E02.

After i run http://jeff.doozan.com/debian/uboot/install_uboot_mtd0.sh, and select option n - to keep original Pogoplug software .

then i try to format and label partition on my usb disk
#format and label partition
./mke2fs -L ROOTFS -j /dev/sda1


but it prompt
###
Segmentation fault
###


then i reboot the target, found it can't get the network address. i have to use serial to connect it ,it prompt as below after boot
### without hit any to stop autoboot###
U-Boot 2011.12 (Feb 20 2012 - 21:21:59)
Pogoplug E02
SoC: Kirkwood 88F6281_A0
DRAM: 256 MiB
WARNING: Caches not enabled
NAND: 128 MiB
In: serial
Out: serial
Err: serial
Net: egiga0
88E1116 Initialized on egiga0
Hit any key to stop autoboot: 0
(Re)start USB...
USB: Register 10011 NbrPorts 1
USB EHCI 1.00
scanning bus for devices... 2 USB Device(s) found
scanning bus for storage devices... 0 Storage Device(s) found
** Block device usb 0 not supported
** Invalid boot device **
Creating 1 MTD partitions on "nand0":
0x000002500000-0x000008000000 : "mtd=3"
UBI: attaching mtd1 to ubi0
UBI: physical eraseblock size: 131072 bytes (128 KiB)
UBI: logical eraseblock size: 129024 bytes
UBI: smallest flash I/O unit: 2048
UBI: sub-page size: 512
UBI: VID header offset: 512 (aligned 512)
UBI: data offset: 2048
UBI: attached mtd1 to ubi0
UBI: MTD device name: "mtd=3"
UBI: MTD device size: 91 MiB
UBI: number of good PEBs: 728
UBI: number of bad PEBs: 0
UBI: max. allowed volumes: 128
UBI: wear-leveling threshold: 4096
UBI: number of internal volumes: 1
UBI: number of user volumes: 0
UBI: available PEBs: 717
UBI: total number of reserved PEBs: 11
UBI: number of PEBs reserved for bad PEB handling: 7
UBI: max/mean erase counter: 1/1
UBIFS error (pid 0): ubifs_get_sb: cannot open "ubi:rootfs", error -19
Error reading superblock on volume 'ubi:rootfs'!
** Block device usb 0 not supported
** Block device usb 1 not supported
** Block device usb 2 not supported
** Block device usb 3 not supported
** Block device usb 0 not supported
** Block device usb 0 not supported
Wrong Image Format for bootm command
ERROR: can't get kernel image!
stopping USB..
### JFFS2 loading 'uboot-original-mtd0.kwb' to 0x800000
Scanning JFFS2 FS: ....... done.
### JFFS2 load complete: 437248 bytes loaded to 0x800000
## Starting application at 0x00800200 ...


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

And for the log with hit key to stop autoboot
---------------------------------------------------------------------------------
###hit key to stop autoboot###
U-Boot 2011.12 (Feb 20 2012 - 21:21:59)
Pogoplug E02
SoC: Kirkwood 88F6281_A0
DRAM: 256 MiB
WARNING: Caches not enabled
NAND: 128 MiB
In: serial
Out: serial
Err: serial
Net: egiga0
88E1116 Initialized on egiga0
Hit any key to stop autoboot: 0
u-boot>>
u-boot>>
u-boot>>
u-boot>>
u-boot>> ifconfig
Unknown command 'ifconfig' - try 'help'
u-boot>> help
? - alias for 'help'
base - print or set address offset
bdinfo - print Board Info structure
boot - boot default, i.e., run 'bootcmd'
bootd - boot default, i.e., run 'bootcmd'
bootm - boot application image from memory
bootp - boot image via network using BOOTP/TFTP protocol
chpart - change active partition
cmp - memory compare
coninfo - print console devices and information
cp - memory copy
crc32 - checksum calculation
dhcp - boot image via network using DHCP/TFTP protocol
echo - echo args to console
editenv - edit environment variable
env - environment handling commands
exit - exit script
ext2load- load binary file from a Ext2 filesystem
ext2ls - list files in a directory (default /)
false - do nothing, unsuccessfully
fatinfo - print information about filesystem
fatload - load binary file from a dos filesystem
fatls - list files in a directory (default /)
fsinfo - print information about filesystems
fsload - load binary file from a filesystem image
go - start application at address 'addr'
help - print command description/usage
iminfo - print header information for application image
imxtract- extract a part of a multi-image
itest - return true/false on integer compare
loadb - load binary file over serial line (kermit mode)
loads - load S-Record file over serial line
loady - load binary file over serial line (ymodem mode)
loop - infinite loop on address range
ls - list files in a directory (default /)
md - memory display
mii - MII utility commands
mm - memory modify (auto-incrementing address)
mtdparts- define flash/nand partitions
mtest - simple RAM read/write test
mw - memory write (fill)
nand - NAND sub-system
nboot - boot from NAND device
nfs - boot image via network using NFS protocol
nm - memory modify (constant address)
ping - send ICMP ECHO_REQUEST to network host
printenv- print environment variables
reset - Perform RESET of the CPU
run - run commands in an environment variable
saveenv - save environment variables to persistent storage
setenv - set environment variables
showvar - print local hushshell variables
sleep - delay execution for some time
source - run script from memory
test - minimal test like /bin/sh
tftpboot- boot image via network using TFTP protocol
true - do nothing, successfully
ubi - ubi commands
ubifsload- load file from an UBIFS filesystem
ubifsls - list files in a directory
ubifsmount- mount UBIFS volume
ubifsumount- unmount UBIFS volume
usb - USB sub-system
usbboot - boot from USB device
version - print monitor, compiler and linker version
u-boot>> version
U-Boot 2011.12 (Feb 20 2012 - 21:21:59)
Pogoplug E02
arm-none-linux-gnueabi-gcc (Sourcery G++ Lite 2009q3-67) 4.4.1
GNU ld (Sourcery G++ Lite 2009q3-67) 2.19.51.20090709
u-boot>> ls
Scanning JFFS2 FS: ....... done.
drwxr-xr-x 0 Thu Dec 18 20:30:04 2008 bin
drwxr-xr-x 0 Thu Jan 15 19:07:02 2009 dev

--------------------------------------------------------------------------------
Seems the error is
Wrong Image Format for bootm command
ERROR: can't get kernel image!

Could anybody help to check it ? Many thanks!!!

Starting over (no replies)

$
0
0
I was trying to start clean and reinstall rescue along the way. Doesn't look like I made good progress. NSA320 with your latest uboot. It said it could
not proceed until I upgrade u boot but I thought I already had that so I commented out the check.
2015-09-08 19:22:19 (290 KB/s) - `/tmp/rootfs-mtd2.img' saved [28966912/28966912]


# Installing Rescue System

Erasing 128 Kibyte @ 80000 -- 100 % complete.
Image 3670016 bytes, NAND page 2048 bytes, OOB area 2048 bytes, device size 524288 bytes
Input file does not fit into device: Success
Data was only partially written due to error
: Success
Installation failed.
root@macplug:/tmp#

PogoPlug E02 GPIO (5 replies)

$
0
0
I managed to install OpenWRT onto it (and playing with the orange and green LEDs!), I started wondering if there are other GPIO pins. A quick:

root@OpenWrt:/sys/class/gpio# cat gpiochip0/ngpio
32
root@OpenWrt:/sys/class/gpio# cat gpiochip32/ngpio
18

suggests there are more available, but since I have virtually no experience hardware spelunking for undocumented GPIO pins, I figured I should at least start by finding someone who might’ve done so.

Has anybody identified additional GPIO pins on PogoPlug E02 board?

HP T5325 - Rescue System (3 replies)

$
0
0
Anybody interested in one?

if so what would you like in it?

Need Help GoFlex Net (2 replies)

$
0
0
Hi,
i have a seagate goflex net and i wanted to install a simple NAS or Samba.
The Goflex had no SSH and i was not able to enable it.
So i ordered an USB Serial interface and now i can use login on serial port.

after this i testet a lot i found on google but nothing worked.
Last i installed a script that installed arch linux.
But i want a small emdebian into nand with ssh or samba without USB stick
(i have an debian server on my PC and i understand better how to change things)

but i dont kwow how to install Debian from arch linux.
i can log in and install packeges, but how can i install a debian like described here
http://forum.doozan.com/read.php?2,72

What i want is -use any USB Drive connected to goflex- on other PC over Network
hope anyone can help me.
maybe step by step. i dont understand that arch linux... i am debianer ;-)

i think i need mtd-utils + wget, so i installed this on my arch.

Rescue System on GoFlex Net - u-boot envs settings example (no replies)

$
0
0
Hi Bodhi

my device GoflexNet
i tested this new uboot with your updated boot parameters it works fine and very robust.
Thank you very much.

I had to modify the boot parameters coz I also have a rescue system installed on internal flash.
Here I am listing the extra boot parameter setting which I did, so others my also profit from them.


#force rescue command used to force the boot into rescue system.
fw_setenv force_rescue 0
fw_setenv force_rescue_bootcmd 'if test $force_rescue -eq 1 || ext2load usb 0:1 0x1700000 /rescueme 1 || fatload usb 0:1 0x1700000 /rescueme.txt 1; then run rescue_bootcmd; fi'

#rescue boot command
fw_setenv rescue_installed 1
fw_setenv rescue_bootcmd 'if test $rescue_installed -eq 1; then run rescue_set_bootargs; nand read.e 0x800000 0x100000 0x400000; bootm 0x800000; else run pogo_bootcmd; fi'
fw_setenv rescue_set_bootargs 'setenv bootargs console=$console ubi.mtd=2 root=ubi0:rootfs ro rootfstype=ubifs $mtdparts $rescue_custom_params'

#update global boot command to accommodate the rescue boot cmd
fw_setenv bootcmd 'run force_rescue_bootcmd; run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec; run rescue_bootcmd; reset'


thans & cheers
lal

---------
Mod: Made this into its own thread in Rescue System forum. Added code tag.

fdisk returns cannot open /dev/sda (1 reply)

$
0
0
For some reason my USB stick no longer boots in to Arch Linux on my Pogo E02. I can ssh into it via root/ceadmin but it no longer reads the new usb stick. fdisk -l returns nothing and fdisk /dev/sda returns fdisk: cannot open /dev/sda.

I am out of ideas. Please help.

Here is the output of fw_printenv

ethact=egiga0
bootdelay=3
baudrate=115200
mainlineLinux=yes
console=ttyS0,115200
led_init=green blinking
led_exit=green off
led_error=orange blinking
mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)
mtdids=nand0=orion_nand
partition=nand0,2
stdin=serial
stdout=serial
stderr=serial
rescue_installed=0
rescue_set_bootargs=setenv bootargs console=$console ubi.mtd=2 root=ubi0:rootfs ro rootfstype=ubifs $mtdparts $rescue_custom_params
rescue_bootcmd=if test $rescue_installed -eq 1; then run rescue_set_bootargs; nand read.e 0x800000 0x100000 0x400000; bootm 0x800000; else run pogo_bootcmd; fi
pogo_bootcmd=if fsload uboot-original-mtd0.kwb; then go 0x800200; fi
force_rescue=0
force_rescue_bootcmd=if test $force_rescue -eq 1 || ext2load usb 0:1 0x1700000 /rescueme 1 || fatload usb 0:1 0x1700000 /rescueme.txt 1; then run rescue_bootcmd; fi
ubifs_mtd=3
ubifs_set_bootargs=setenv bootargs console=$console ubi.mtd=$ubifs_mtd root=ubi0:rootfs rootfstype=ubifs $mtdparts $ubifs_custom_params
ubifs_bootcmd=run ubifs_set_bootargs; if ubi part data && ubifsmount rootfs && ubifsload 0x800000 /boot/uImage && ubifsload 0x1100000 /boot/uInitrd; then bootm 0x800000 0x1100000; fi
usb_scan=usb_scan_done=0;for scan in $usb_scan_list; do run usb_scan_$scan; if test $usb_scan_done -eq 0 && ext2load usb $usb 0x800000 /boot/uImage 1; then usb_scan_done=1; echo "Found bootable drive on usb $usb"; setenv usb_device $usb; setenv usb_root /dev/$dev; fi; done
usb_scan_list=1 2 3 4
usb_scan_1=usb=0:1 dev=sda1
usb_scan_2=usb=1:1 dev=sdb1
usb_scan_3=usb=2:1 dev=sdc1
usb_scan_4=usb=3:1 dev=sdd1
usb_init=run usb_scan
usb_device=0:1
usb_root=/dev/sda1
usb_rootdelay=10
usb_set_bootargs=setenv bootargs console=$console root=$usb_root rootdelay=$usb_rootdelay rootfstype=$usb_rootfstype $mtdparts $usb_custom_params
usb_bootcmd=run usb_init; run usb_set_bootargs; run usb_boot
usb_boot=mw 0x800000 0 1; ext2load usb $usb_device 0x800000 /boot/uImage; if ext2load usb $usb_device 0x1100000 /boot/uInitrd; then bootm 0x800000 0x1100000; else bootm 0x800000; fi
bootcmd=usb start; run force_rescue_bootcmd; run ubifs_bootcmd; run usb_bootcmd; usb stop; run rescue_bootcmd; run pogo_bootcmd; reset
ethaddr=00:25:31:04:A2:2F
arcNumber=3542
usb_rootfstype=ext3


Thanks.

-----

Mod edit: use code tag.

[BETA] Rescue System V4, using a custom LEDE firmware (18 replies)

$
0
0
After some work and many Thanks Obama since LEDE devs don't cough up their secrets even after waterboarding, I present you Rescue System V4, with support for all kirkwoods (theoretically, I tested only nsa310)!

It's a custom-built LEDE/OpenWRT firmware.
it needs only 2MiB of space for the kernel and 11MiB of space for the rootfs on the NAND (will use more if available and allows writing on it).

But it is packed of goodies:

root@lede:/# ls /bin
ash              egrep            mknod            sed
board_detect     false            mktemp           sh
busybox          fgrep            mount            sleep
cat              fsync            mv               sync
chgrp            grep             netmsg           tar
chmod            gunzip           netstat          touch
chown            gzip             nice             true
config_generate  ipcalc.sh        pidof            ubus
cp               kill             ping             uclient-fetch
date             ln               ping6            umount
dd               lock             ps               uname
df               login            pwd              vi
dmesg            ls               rm               wget
echo             mkdir            rmdir            zcat
root@lede:/# ls /sbin
askfirst           init               mtd                sysupgrade
block              ip                 netifd             ubusd
cgdisk             jffs2mark          pivot_root         uci
devstatus          jffs2reset         poweroff           udevtrigger
firstboot          kmodloader         procd              udhcpc
gdisk              led.sh             reboot             upgraded
halt               logd               reload_config      urandom_seed
hotplug-call       logread            route              validate_data
hwclock            mdadm              sgdisk             wifi
ifconfig           mkfs.xfs           start-stop-daemon  xfs_db
ifdown             mkswap             swconfig           xfs_growfs
ifstatus           mmc                switch_root        xfs_repair
ifup               mount_root         sysctl
root@lede:/# ls /usr/bin
[                  du                 mkfifo             tar
[[                 env                mkfs.btrfs         tee
ar                 expr               mount              test
attr               file               mountpoint         time
awk                find               nano               top
basename           findmnt            nc                 tr
bc                 flock              ncdu               traceroute
btrfs              free               nslookup           traceroute6
btrfs-debug-tree   fsck.btrfs         passwd             umount
btrfs-find-root    funzip             perl               uniq
btrfs-image        getfacl            perl5.22.1         unlzma
btrfs-map-logical  getfattr           pgrep              unxz
btrfs-show-super   getrandom          pkg-config         unzip
btrfs-zero-log     head               printf             unzipsfx
btrfsck            hexdump            readlink           uptime
btrfstune          id                 reset              usign
bunzip2            jshn               rsync              uuidgen
bzcat              jsonfilter         scp                vim
bzip2              killall            seq                wc
chacl              ldd                setfacl            wget
chattr             less               setfattr           wget-ssl
chroot             lftp               sha1sum            which
clear              logger             sha256sum          xargs
cmp                lsattr             signify            xz
crontab            lsblk              sort               xzcat
cut                lsof               spi-config         yes
dbclient           lzcat              spi-pipe           zipgrep
dc                 lzma               ssh                zipinfo
dirname            mc                 strings
dmesg              mcedit             systool
dropbearkey        md5sum             tail
root@lede:/# ls /usr/sbin
atftp              fsck.ext4          mkfs.fat           swaplabel
atftpd             fsck.f2fs          mkfs.msdos         swapoff
badblocks          fsck.fat           mkfs.vfat          swapon
blkid              fsck.msdos         mkswap             tune2fs
brctl              fsck.vfat          modinfo            ubiattach
chroot             fw_printenv        modprobe           ubiblock
crond              fw_setenv          mtdinfo            ubicrc32
debootstrap        insmod             nanddump           ubidetach
dnsmasq            ip6tables          nandtest           ubiformat
dosfsck            ip6tables-restore  nandwrite          ubimkvol
dropbear           ip6tables-save     ntpd               ubinfo
dump.f2fs          iptables           ntpd-hotplug       ubinize
e2fsck             iptables-restore   odhcp6c            ubirename
f2fstat            iptables-save      odhcpd             ubirmvol
fatlabel           lsmod              odhcpd-update      ubirsvol
fdisk              mke2fs             resize2fs          ubiupdatevol
fibmap.f2fs        mkfs.ext2          rmmod              wipefs
findfs             mkfs.ext3          sensors            xtables-multi
fsck.ext2          mkfs.ext4          sensors-detect
fsck.ext3          mkfs.f2fs          smartctl

It supports ext2-3-4, btrfs, f2fs, FAT32, XFS (also ubifs and jffs2 and squashfs but these aren't usually used by Debian). (theoretically, not all have been tested)

It has fdisk for MBR partitioning and gdisk/sgdisk/cgdisk for GPT partitioning.

It also has mdadm and is able to read raid arrays (theoretically, not tested), and debootstrap/pkg-config so it can (theoretically, not tested) generate a debian rootfs on its own.

Since this is a rescue system, the opkg (expansion) functionality has been removed.

If you think there are crucial tools or drivers I've missed, please post and I'm updating the image. Serial connection is recommended as I might have not included the ethernet driver for your device (I should have).


I will add this to the installer script Soon(TM) so that you can automatically install a powerful recovery on your device's NAND instead of wasting it with a dead firmware the new uboot cannot use.


Installation (for testing purposes, so I'm not providing easy info, must use nand_erase then nandwrite):
-write the uimage of your device in the kernel partition on flash.
-write the rootfs image in a suitably large nand partition.
-change the name of the mtdpart where you flash the rootfs to "rootfs".
-write the envs to boot this recovery system in your uboot.

I'm providing my envs as examples (nsa310):

These are the bootargs
recovery_bootargs=setenv bootargs console=ttyS0,115200 rootdelay=10 $mtdparts_lede

These are the bootcommands
bootcmd_recovery=run recovery_bootargs; nand read 0x800000 nand0,7 ; bootm 0x800000
bootcmd=run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec; run bootcmd_recovery;
here the "nand0" is the NAND chip onboard, and "nand0,7" is like saying mtd7, or whatever hex offsets the partition sits in and none really feels like figuring out on this side.
Adjust that to fit the partition you flash the kernel image into.

This is mtdparts_lede, the last one is the rootfs (mtd8):
mtdparts_lede=mtdparts=orion_nand:0x100000(uboot),0x80000(uboot_env),0x80000(key_store),0x80000(info),0xA00000(etc),0xA00000(nope_kernel_1),0x2FC0000(nope_rootfs1),0xA00000(kernel),0x2FC0000(rootfs)

usage:
No webinterface is available, only way to connect is through ssh. user is "root", password is empty or "".

Let the device settle for 5 minutes after booting and trying to connect with ssh (if you don't have serial connection), or if you see serial output wait until there is a long message that says "jffs2 created successully with 0 errors" before pressing return and activating the serial console.
This happens only on first boot as it needs to generate the read-write partition.


for the curious ones:

If someone is wondering why this hacking around the mtdparts, it's because LEDE firmware's kernel looks for partitions called "rootfs" or "rootfs_data" and acts on them automatically.

In our case it splits on its own the "rootfs" partition in a first part with a squashfs filesystem and the rest of the space becomes another mtd partition where it creates a jffs2 (read-write) filesystem that then mounts as overlay on the squashfs (so you can write anywhere, and you can easily reset to defaults by erasing the jffs2 partition).

This system allows them to hard-code mtdparts in the dtb file so their kernel will ignore what uboot gives them, and their rootfs will be able to occupy the whole flash space instead of using only a pre-made mtd partition and wasting most of the NAND.
For this recovery system and for kirkwoods in general it's not that necessary, so I just rename an existing mtd partition in the kernel command line I send from uboot and call it a day.


Download link:

Here is the download package, https://www.dropbox.com/s/firggx4vzl6v4a4/kirkwood_recoveryV4-beta.7z?dl=0
I provide also "sources" and some instructions in the package so you can build the same on your own if you grab the LEDE sources from their git. (for the sake of openness).

EDIT: Now with fixed download link.

Wiki (no replies)

NSA 325 v2 bricked (3 replies)

$
0
0
My NSA325v2 is bricked

No network and only frontusb is working after boot, before starting kernel networks seems to be OK.

Restarting system.
Reseting !!
ü
         __  __                      _ _
        |  \/  | __ _ _ ____   _____| | |
        | |\/| |/ _` | '__\ \ / / _ \ | |
        | |  | | (_| | |   \ V /  __/ | |
        |_|  |_|\__,_|_|    \_/ \___|_|_|
 _   _     ____              _
| | | |   | __ )  ___   ___ | |_
| | | |___|  _ \ / _ \ / _ \| __|
| |_| |___| |_) | (_) | (_) | |_
 \___/    |____/ \___/ \___/ \__|
 ** MARVELL BOARD: DB-88F6282A-BP LE

U-Boot 1.1.4 (Jul 18 2013 - 10:47:29) Marvell version: 3.5.9

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

Soc: 88F6282 A1CPU running @ 1600Mhz L2 running @ 533Mhz
SysClock = 533Mhz , TClock = 200Mhz

DRAM (DDR3) CAS Latency = 7 tRP = 8 tRAS = 24 tRCD=8
DRAM CS[0] base 0x00000000   size 512MB
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)
Kernel address is 0x4640000.

Streaming disabled
Write allocate disabled


USB 0: host mode
	[BlueDBG] reseting SoC Pex[0]  0 ...
PEX 0: PCI Express Root Complex Interface
PEX interface detected Link X1
	[BlueDBG] reseting SoC Pex[1]  0 ...
	[BlueDBG] reseting SoC Pex[1]  1 ...
	[BlueDBG] reseting SoC Pex[1]  2 ...
	[BlueDBG] reseting SoC Pex[1]  3 ...
	[BlueDBG] reseting SoC Pex[1]  4 ...
	[BlueDBG] reseting SoC Pex[1]  5 ...
	[BlueDBG] reseting SoC Pex[1]  6 ...
	[BlueDBG] reseting SoC Pex[1]  7 ...
	[BlueDBG] reseting SoC Pex[1]  8 ...
	[BlueDBG] reseting SoC Pex[1]  9 ...
	[BlueDBG] reseting SoC Pex[1]  10 ...
PEX 1: interface detected no Link.
Net:   egiga0 [PRIME]
Hit any key to stop autoboot:  2 ??? 1 ??? 0

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


Reading data from 0x4640000 --   0% complete.
Reading data from 0x4659800 --   1% complete.
Reading data from 0x4673000 --   2% complete.
Reading data from 0x468c800 --   3% complete.
Reading data from 0x46a6000 --   4% complete.
Reading data from 0x46bf800 --   5% complete.
Reading data from 0x46d9800 --   6% complete.
Reading data from 0x46f3000 --   7% complete.
Reading data from 0x470c800 --   8% complete.
Reading data from 0x4726000 --   9% complete.
Reading data from 0x473f800 --  10% complete.
Reading data from 0x4759800 --  11% complete.
Reading data from 0x4773000 --  12% complete.
Reading data from 0x478c800 --  13% complete.
Reading data from 0x47a6000 --  14% complete.
Reading data from 0x47bf800 --  15% complete.
Reading data from 0x47d9800 --  16% complete.
Reading data from 0x47f3000 --  17% complete.
Reading data from 0x480c800 --  18% complete.
Reading data from 0x4826000 --  19% complete.
Reading data from 0x483f800 --  20% complete.
Reading data from 0x4859800 --  21% complete.
Reading data from 0x4873000 --  22% complete.
Reading data from 0x488c800 --  23% complete.
Reading data from 0x48a6000 --  24% complete.
Reading data from 0x48bf800 --  25% complete.
Reading data from 0x48d9800 --  26% complete.
Reading data from 0x48f3000 --  27% complete.
Reading data from 0x490c800 --  28% complete.
Reading data from 0x4926000 --  29% complete.
Reading data from 0x493f800 --  30% complete.
Reading data from 0x4959800 --  31% complete.
Reading data from 0x4973000 --  32% complete.
Reading data from 0x498c800 --  33% complete.
Reading data from 0x49a6000 --  34% complete.
Reading data from 0x49bf800 --  35% complete.
Reading data from 0x49d9800 --  36% complete.
Reading data from 0x49f3000 --  37% complete.
Reading data from 0x4a0c800 --  38% complete.
Reading data from 0x4a26000 --  39% complete.
Reading data from 0x4a3f800 --  40% complete.
Reading data from 0x4a59800 --  41% complete.
Reading data from 0x4a73000 --  42% complete.
Reading data from 0x4a8c800 --  43% complete.
Reading data from 0x4aa6000 --  44% complete.
Reading data from 0x4abf800 --  45% complete.
Reading data from 0x4ad9800 --  46% complete.
Reading data from 0x4af3000 --  47% complete.
Reading data from 0x4b0c800 --  48% complete.
Reading data from 0x4b26000 --  49% complete.
Reading data from 0x4b3f800 --  50% complete.
Reading data from 0x4b59800 --  51% complete.
Reading data from 0x4b73000 --  52% complete.
Reading data from 0x4b8c800 --  53% complete.
Reading data from 0x4ba6000 --  54% complete.
Reading data from 0x4bbf800 --  55% complete.
Reading data from 0x4bd9800 --  56% complete.
Reading data from 0x4bf3000 --  57% complete.
Reading data from 0x4c0c800 --  58% complete.
Reading data from 0x4c26000 --  59% complete.
Reading data from 0x4c3f800 --  60% complete.
Reading data from 0x4c59800 --  61% complete.
Reading data from 0x4c73000 --  62% complete.
Reading data from 0x4c8c800 --  63% complete.
Reading data from 0x4ca6000 --  64% complete.
Reading data from 0x4cbf800 --  65% complete.
Reading data from 0x4cd9800 --  66% complete.
Reading data from 0x4cf3000 --  67% complete.
Reading data from 0x4d0c800 --  68% complete.
Reading data from 0x4d26000 --  69% complete.
Reading data from 0x4d3f800 --  70% complete.
Reading data from 0x4d59800 --  71% complete.
Reading data from 0x4d73000 --  72% complete.
Reading data from 0x4d8c800 --  73% complete.
Reading data from 0x4da6000 --  74% complete.
Reading data from 0x4dbf800 --  75% complete.
Reading data from 0x4dd9800 --  76% complete.
Reading data from 0x4df3000 --  77% complete.
Reading data from 0x4e0c800 --  78% complete.
Reading data from 0x4e26000 --  79% complete.
Reading data from 0x4e3f800 --  80% complete.
Reading data from 0x4e59800 --  81% complete.
Reading data from 0x4e73000 --  82% complete.
Reading data from 0x4e8c800 --  83% complete.
Reading data from 0x4ea6000 --  84% complete.
Reading data from 0x4ebf800 --  85% complete.
Reading data from 0x4ed9800 --  86% complete.
Reading data from 0x4ef3000 --  87% complete.
Reading data from 0x4f0c800 --  88% complete.
Reading data from 0x4f26000 --  89% complete.
Reading data from 0x4f3f800 --  90% complete.
Reading data from 0x4f59800 --  91% complete.
Reading data from 0x4f73000 --  92% complete.
Reading data from 0x4f8c800 --  93% complete.
Reading data from 0x4fa6000 --  94% complete.
Reading data from 0x4fbf800 --  95% complete.
Reading data from 0x4fd9800 --  96% complete.
Reading data from 0x4ff3000 --  97% complete.
Reading data from 0x500c800 --  98% complete.
Reading data from 0x5026000 --  99% complete.
Reading data from 0x503f800 -- 100% complete.
 10485760 bytes read: OK
## Booting image at 02000000 ...
   Image Name:   Linux-2.6.31.8
   Created:      2015-05-15   4:20:19 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    5796192 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 May 15 12:20:01 CST 2015
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: 512MB = 512MB total
Memory: 506752KB available (5360K code, 302K data, 2872K init, 0K highmem)
Hierarchical RCU implementation.
NR_IRQS:128
Console: colour dummy device 80x30
Calibrating delay loop... 1599.07 BogoMIPS (lpj=7995392)
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.
invoking softwareStaggeredSpinUp()..., it will delay 5 seconds to spin up the second harddisk

CPU Interface
-------------
SDRAM_CS0 ....base 00000000, size 512MB
SDRAM_CS1 ....disable
SDRAM_CS2 ....disable
SDRAM_CS3 ....disable
PEX0_MEM ....base e0000000, size 128MB
PEX0_IO ....base f2000000, size   1MB
PEX1_MEM ....base e8000000, size 128MB
PEX1_IO ....base f2100000, size   1MB
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)-- DB-88F6282A-BP  Soc: MV88F6282 Rev 1 LE

 Detected Tclk 200000000 and SysClk 533333333
Marvell USB EHCI Host controller #0: d003a740
	[BlueDBG] reseting SoC Pex[0]  0 ...
PEX0 interface detected Link X1
	[BlueDBG] reseting SoC Pex[1]  0 ...
	[BlueDBG] reseting SoC Pex[1]  1 ...
	[BlueDBG] reseting SoC Pex[1]  2 ...
	[BlueDBG] reseting SoC Pex[1]  3 ...
	[BlueDBG] reseting SoC Pex[1]  4 ...
	[BlueDBG] reseting SoC Pex[1]  5 ...
	[BlueDBG] reseting SoC Pex[1]  6 ...
	[BlueDBG] reseting SoC Pex[1]  7 ...
	[BlueDBG] reseting SoC Pex[1]  8 ...
	[BlueDBG] reseting SoC Pex[1]  9 ...
	[BlueDBG] reseting SoC Pex[1]  10 ...
PEX1 interface detected no Link.
pci 0000:00:01.0: PME# supported from D0 D3hot
pci 0000:00:01.0: PME# disabled
PCI: bus0: Fast back to back transfers disabled
PCI: bus1: Fast back to back transfers enabled
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
EnablePowerSaving
PowerSavingTime = 15
No found HD
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
     o eth0, ifindex = 2, GbE port = 0

mvFpRuleDb (d10a0000): 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
NAND device: Manufacturer ID: 0x92, Chip ID: 0xf1 (Unknown NAND 128MiB 3,3V 8-bit)
Scanning device for bad blocks
Bad eraseblock 100 at 0x000000c80000
Bad eraseblock 200 at 0x000001900000
9 cmdlinepart partitions found on MTD device nand_mtd
Using command line partition definition
Creating 9 MTD partitions on "nand_mtd":
0x000000000000-0x000000100000 : "uboot"
0x000000100000-0x000000180000 : "uboot_env"
0x000000180000-0x000000200000 : "key_store"
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
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: low voltage detected, date/time is not reliable.
rtc-pcf8563 0-0051: retrieved date/time is not valid.
rtc-pcf8563 0-0051: hctosys: invalid date/time
Freeing init memory: 2872K
?[031m*** Stage 1: Setup system and device drivers ***?[0m
usb 1-1: new high speed USB device using ehci_marvell and address 2
eth0: mac address changed
egiga0: started
ADDRCONF(NETDEV_UP): egiga0: link is not ready
rtc-pcf8563 0-0051: low voltage detected, date/time is not reliable.
rtc-pcf8563 0-0051: retrieved date/time is not valid.
?[031m*** Stage 2: Prepare the root file system ***?[0m
?[033mMount system partition...?[0m
yaffs: dev is 32505864 name is "mtdblock8" ro
yaffs: passed flags ""
storage_gen_mntfw.sh: no internal disk available
1
WARNING: No valid partition on HDD or no HDD plugged!
WARNING: No valid partition on HDD or no HDD plugged
Boot from RAM disk
usb 1-1: device descriptor read/64, error -110
?[033mMount system disk image ...?[0m
yaffs: dev is 32505860 name is "mtdblock4" rw
yaffs: passed flags ""
/etc/zyxel/conf does not exist.. recoverying /etc/zyxel..
rm: can't remove '/etc/zyxel/lost+found': Directory not empty
Umount /etc/zyxel
flash_eraseall mtd4

Erasing 128 Kibyte @ 0 --  0 % complete.
Erasing 128 Kibyte @ 20000 --  1 % complete.
Erasing 128 Kibyte @ 40000 --  2 % complete.
Erasing 128 Kibyte @ 60000 --  3 % complete.
Erasing 128 Kibyte @ 80000 --  5 % complete.
Erasing 128 Kibyte @ a0000 --  6 % complete.
Erasing 128 Kibyte @ c0000 --  7 % complete.
Erasing 128 Kibyte @ e0000 --  8 % complete.
Erasing 128 Kibyte @ 100000 -- 10 % complete.
Erasing 128 Kibyte @ 120000 -- 11 % complete.
Erasing 128 Kibyte @ 140000 -- 12 % complete.
Erasing 128 Kibyte @ 160000 -- 13 % complete.
Erasing 128 Kibyte @ 180000 -- 15 % complete.
Erasing 128 Kibyte @ 1a0000 -- 16 % complete.
Erasing 128 Kibyte @ 1cyaffs: dev is 32505860 name is "mtdblock4" rw
0000 -- 17 % comyaffs: passed flags ""
plete.
Erasing 128 Kibyte @ 1e0000 -- 18 % complete.
Erasing 128 Kibyte @ 200000 -- 20 % complete.
Erasing 128 Kibyte @ 220000 -- 21 % complete.
Erasing 128 Kibyte @ 240000 -- 22 % complete.
Erasing 128 Kibyte @ 260000 -- 23 % complete.
Erasing 128 Kibyte @ 280000 -- 25 % complete.
Erasing 128 Kibyte @ 2a0000 -- 26 % complete.
Erasing 128 Kibyte @ 2c0000 -- 27 % complete.
Erasing 128 Kibyte @ 2e0000 -- 28 % complete.
Erasing 128 Kibyte @ 300000 -- 30 % complete.
Erasing 128 Kibyte @ 320000 -- 31 % complete.
Erasing 128 Kibyte @ 340000 -- 32 % complete.
Erasing 128 Kibyte @ 360000 -- 33 % complete.
Erasing 128 Kibyte @ 380000 -- 35 % complete.
Erasing 128 Kibyte @ 3a0000 -- 36 % complete.
Erasing 128 Kibyte @ 3c0000 -- 37 % complete.
Erasing 128 Kibyte @ 3e0000 -- 38 % complete.
Erasing 128 Kibyte @ 400000 -- 40 % complete.
Erasing 128 Kibyte @ 420000 -- 41 % complete.
Erasing 128 Kibyte @ 440000 -- 42 % complete.
Erasing 128 Kibyte @ 460000 -- 43 % complete.
Erasing 128 Kibyte @ 480000 -- 45 % complete.
Erasing 128 Kibyte @ 4a0000 -- 46 % complete.
Erasing 128 Kibyte @ 4c0000 -- 47 % complete.
Erasing 128 Kibyte @ 4e0000 -- 48 % complete.
Erasing 128 Kibyte @ 500000 -- 50 % complete.
Erasing 128 Kibyte @ 520000 -- 51 % complete.
Erasing 128 Kibyte @ 540000 -- 52 % complete.
Erasing 128 Kibyte @ 560000 -- 53 % complete.
Erasing 128 Kibyte @ 580000 -- 55 % complete.
Erasing 128 Kibyte @ 5a0000 -- 56 % complete.
Erasing 128 Kibyte @ 5c0000 -- 57 % complete.
Erasing 128 Kibyte @ 5e0000 -- 58 % complete.
Erasing 128 Kibyte @ 600000 -- 60 % complete.
Erasing 128 Kibyte @ 620000 -- 61 % complete.
Erasing 128 Kibyte @ 640000 -- 62 % complete.
Erasing 128 Kibyte @ 660000 -- 63 % complete.
Erasing 128 Kibyte @ 680000 -- 65 % complete.
Erasing 128 Kibyte @ 6a0000 -- 66 % complete.
Erasing 128 Kibyte @ 6c0000 -- 67 % complete.
Erasing 128 Kibyte @ 6e0000 -- 68 % complete.
Erasing 128 Kibyte @ 700000 -- 70 % complete.
Erasing 128 Kibyte @ 720000 -- 71 % complete.
Erasing 128 Kibyte @ 740000 -- 72 % complete.
Erasing 128 Kibyte @ 760000 -- 73 % complete.
Erasing 128 Kibyte @ 780000 -- 75 % complete.
Erasing 128 Kibyte @ 7a0000 -- 76 % complete.
Erasing 128 Kibyte @ 7c0000 -- 77 % complete.
Erasing 128 Kibyte @ 7e0000 -- 78 % complete.
Erasing 128 Kibyte @ 800000 -- 80 % complete.
Erasing 128 Kibyte @ 820000 -- 81 % complete.
Erasing 128 Kibyte @ 840000 -- 82 % complete.
Erasing 128 Kibyte @ 860000 -- 83 % complete.
Erasing 128 Kibyte @ 880000 -- 85 % complete.
Erasing 128 Kibyte @ 8a0000 -- 86 % complete.
Erasing 128 Kibyte @ 8c0000 -- 87 % complete.
Erasing 128 Kibyte @ 8e0000 -- 88 % complete.
Erasing 128 Kibyte @ 900000 -- 90 % complete.
Erasing 128 Kibyte @ 920000 -- 91 % complete.
Erasing 128 Kibyte @ 940000 -- 92 % complete.
Erasing 128 Kibyte @ 960000 -- 93 % complete.
Erasing 128 Kibyte @ 980000 -- 95 % complete.
Erasing 128 Kibyte @ 9a0000 -- 96 % complete.
Erasing 128 Kibyte @ 9c0000 -- 97 % complete.
Erasing 128 Kibyte @ 9e0000 -- 98 % complete.
Mount /etc/zyxel back
/etc/init.d/rcS: line 420: can't create /sys/block/sda/queue/read_ahead_kb: nonexistent directory
Start rcS2 of ZyXEL style
Set the phy back to auto-negotiation mode
base address = 4014e000
words[0] = phypoke
words[1] = 1
words[2] = 4
words[3] = 1e1
:GbitPhy[0x00000001:0x00000004] <= 0x000001e1
base address = 4014e000
words[0] = phypoke
words[1] = 1
words[2] = 9
words[3] = 300
:GbitPhy[0x00000001:0x00000009] <= 0x00000300
base address = 4014e000
words[0] = phypoke
words[1] = 1
words[2] =NTFS driver 2.1.29 [Flags: R/O MODULE].
 0
words[3] = 9140
:GbitPhy[0x00000001:0x00000000] <= 0x00009140
?[031m*** Stage 3: Start services on HDD ***?[0m
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
usb 1-1: device descriptor read/64, error -110
In hub_port_init, and number is 0, retry 0, port 1 .....
usb 1-1: new high speed USB device using ehci_marvell and address 3

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: 11:28:55 May 15 2015)
% 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
Dec  4 01:20:19 (none) syslog-ng[1334]: 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 NSA325-v2
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 (2015-05-15 11:23:13 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
WARNING: can't open config file: /etc/ssl/openssl.cnf
Generating a 1024 bit RSA private key
...++++++
....................++++++
writing new private key to '/etc/zyxel/cert/key/default_key.cer'
-----
WARNING: can't open config file: /etc/ssl/openssl.cnf
zyio_container_create_template(/etc/__system_default.xml): scope:[network/wlan] list:[wlan_list] type:[wlan_t] is not existed
usb 1-1: device descriptor read/64, error -110
Assemble volume....
[1383] server write-only FIFO is opened (fd=6)
[1383] server read-only FIFO is opened (fd=7)
[1383] server error read-only FIFO is opened (fd=8)
argc = 1,  func = 280
 Startup config
POLLHUP on 7
  pid = 1383
[1383] is disconnected
[1521] server write-only FIFO is opened (fd=6)
[1521] server read-only FIFO is opened (fd=7)
[1521] server error read-only FIFO is opened (fd=8)
argc = 1,  func = 14
argc = 1,  func = 17
argc = 2,  func = 105
argid[1]: 1087; argv[1]: ge1
argc = 5,  func = 108
argid[1]: 1087; argv[1]: ge1
argid[2]: 313; argv[2]: ip
argid[3]: 434; argv[3]: address
argid[4]: 539; argv[4]: dhcp
killall: httpd: no process killed
Dec  4 01:20:25 (none) httpd[1529]: [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
Dec  4 01:20:25 (none) httpd[1529]: [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
Dec  4 01:20:25 (none) httpd[1529]: [warn] RSA server certificate CommonName (CN) `NSA325-v2' does NOT match server name!?
Dec  4 01:20:25 (none) httpd[1529]: [error] mod_auth_zyxel: initialized.
argc = 3,  func = 106
argid[1]: 1087; argv[1]: ge1
argid[2]: 350; argv[2]: exit
argc = 2,  func = 444
argid[1]: 1080; argv[1]: 192.168.1.1
argc = 3,  func = 446
argid[1]: 879; argv[1]: fetch
argid[2]: 632; argv[2]: auto
Dec  4 01:20:26 (none) httpd[1530]: [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
Dec  4 01:20:26 (none) httpd[1530]: [warn] RSA server certificate CommonName (CN) `NSA325-v2' does NOT match server name!?
Dec  4 01:20:26 (none) httpd[1530]: [error] mod_auth_zyxel: initialized.
/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
[1536] server write-only FIFO is opened (fd=9)
[1536] server read-only FIFO is opened (fd=10)
[1536] server error read-only FIFO is opened (fd=11)
argc = 7,  func = 77
argid[1]: 267; argv[1]: mail
argid[2]: 1415; argv[2]: 1
argid[3]: 435; argv[3]: category
argid[4]: 375; argv[4]: all
argid[5]: 461; argv[5]: level
argid[6]: 478; argv[6]: alert
mail server '1' log_category(all) is:alert
argc = 1,  func = 445
POLLHUP on 10
  pid = 1536
[1536] is disconnected
argc = 7,  func = 77
argid[1]: 267; argv[1]: mail
argid[2]: 1415; argv[2]: 1
argid[3]: 435; argv[3]: category
argid[4]: 375; argv[4]: all
argid[5]: 461; argv[5]: level
argid[6]: 375; argv[6]: all
mail server '1' log_category(all) is:all
argc = 1,  func = 72
/usr/sbin/ntpdate_agent
argc = 2,  func = 68
argid[1]: 1079; argv[1]: time.stdtime.gov.tw
argc = 2,  func = 60
argid[1]: 1130; argv[1]: +0800
/usr/sbin/zic -d /etc /var/zyxel/myzone_rule
/bin/ln -s -f /etc/MyZone /etc/localtime
Dec  4 09:20:30 (none) ntpdate[1588]: can't find host time.stdtime.gov.tw
Dec  4 09:20:30 (none) ntpdate[1588]: no servers can be used, exiting
argc = 1,  func = 38
killall: pure-ftpd: no process killed
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 (2015-05-15 11:23:13 CST) multi-call binary.

Usage: rmdir [OPTIONS] DIRECTORY...

argc = 4,  func = 414
argid[1]: 1250; argv[1]: yes
argid[2]: 1251; argv[2]: yes
argid[3]: 1252; argv[3]: yes
Dec  4 09:20:33 (none) dhcpcd[1571]: timed out waiting for a valid DHCP server response
argc = 2,  func DisablePowerSaving
= 147
argid[1]:TimerState = 0
 1155; argv[1]: EnablePowerSaving
15
PowerSavingTime = 15
No found HD
test0
Test1
Test2
Test3:
argc = 2,  func = 161
argid[1]: 1160; argv[1]: g
exec_cmd complete
eth status = g
ethtest0
Test1
Test2
Test3:
argc = 2,  func = 676
argid[1]: 1087; argv[1]: ge1
Dec  4 09:20:34 (none) ntpdate[1741]: can't find host ntp1.cs.wisc.edu
Dec  4 09:20:34 (none) ntpdate[1741]: no servers can be used, exiting
Dec  4 09:20:34 (none) httpd[1739]: [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
Dec  4 09:20:34 (none) httpd[1739]: [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
Dec  4 09:20:34 (none) httpd[1739]: [warn] RSA server certificate CommonName (CN) `NSA325-v2' does NOT match server name!?
Dec  4 09:20:34 (none) httpd[1739]: [error] mod_auth_zyxel: initialized.
argc = 2,  func = 163
argid[1]: 1161; argv[1]: enable
argc = 2,  func = 18
argid[1]: 350; argv[1]: exit
argc = 1,  func = 20
POLLHUP on 7
  pid = 1521
[1521] is disconnected
Dec  4 09:20:37 (none) httpd[1754]: [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
Dec  4 09:20:37 (none) httpd[1754]: [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
Dec  4 09:20:37 (none) httpd[1754]: [warn] RSA server certificate CommonName (CN) `NSA325-v2' does NOT match server name!?
Dec  4 09:20:37 (none) httpd[1754]: [error] mod_auth_zyxel: initialized.
configure terminal ip smb internal disable "/i-data/md0"
[1762] server write-only FIFO is opened (fd=6)
[1762] server read-only FIFO is opened (fd=7)
[1762] server error read-only FIFO is opened (fd=8)
argc = 4,  func = 184
argid[1]: 634; argv[1]: internal
argid[2]: 303; argv[2]: disable
argid[3]: 1183; argv[3]: "/i-data/md0"
share path /i-data/md0/public not existing.
share path /i-data/md0/video not existing.
share path /i-data/md0/photo not existing.
share path /i-data/md0/music not existing.
share path /i-data/md0/admin not existing.
RegenSmbConfigFile:2203 Close file ok
no such autosata.
Error happens when deleting autosata.
POLLHUP on 7
  pid = 1762
[1762] is disconnected
configure terminal ip smb internal disable "/i-data/md1"
[1767] server write-only FIFO is opened (fd=6)
[1767] server read-only FIFO is opened (fd=7)
[1767] server error read-only FIFO is opened (fd=8)
argc = 4,  func = 184
argid[1]: 634; argv[1]: internal
argid[2]: 303; argv[2]: disable
argid[3]: 1183; argv[3]: "/i-data/md1"
share path /i-data/md0/public not existing.
share path /i-data/md0/video not existing.
share path /i-data/md0/photo not existing.
share path /i-data/md0/music not existing.
share path /i-data/md0/admin not existing.
RegenSmbConfigFile:2203 Close file ok
no such autosata.
Error happens when deleting autosata.
POLLHUP on 7
  pid = 1767
[1767] is disconnected
Dec  4 09:20:38 (none) httpd[1755]: [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
Dec  4 09:20:38 (none) httpd[1755]: [warn] RSA server certificate CommonName (CN) `NSA325-v2' does NOT match server name!?
Dec  4 09:20:38 (none) httpd[1755]: [error] mod_auth_zyxel: initialized.
usb 1-1: device descriptor read/64, error -110
In hub_port_init, and number is 0, retry 1, port 1 .....
usb 1-1: new high speed USB device using ehci_marvell and address 4
Dec  4 09:20:42 (none) ntpdate[1798]: can't find host ntp1.gbg.netnod.se
Dec  4 09:20:42 (none) ntpdate[1798]: no servers can be used, exiting
usb 1-1: device not accepting address 4, error -110
In hub_port_init, and number is 0, retry 2, port 1 .....
usb 1-1: new high speed USB device using ehci_marvell and address 5
Dec  4 09:20:50 (none) ntpdate[1801]: can't find host ntp2.cs.wisc.edu
Dec  4 09:20:50 (none) ntpdate[1801]: no servers can be used, exiting
Dec  4 09:20:57 (none) zcip: init egiga0
Dec  4 09:20:57 (none) zcip: start, interface egiga0
usb 1-1: device not accepting address 5, error -110
In hub_port_init, and number is 0, retry 3, port 1 .....
hub 1-0:1.0: unable to enumerate USB device on port 1
Starting smbd...
Starting nmbd...
Starting NSU Agent...
PCI: enabling device 0000:00:01.0 (0140 -> 0142)
xhci_hcd 0000:00:01.0: xHCI Host Controller
xhci_hcd 0000:00:01.0: new USB bus registered, assigned bus number 2
xhci_hcd 0000:00:01.0: irq 9, io mem 0xe0000000
usb usb2: config 1 interface 0 altsetting 0 endpoint 0x81 has no SuperSpeed companion descriptor
usb usb2: configuration #1 chosen from 1 choice
hotplug918add:
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 4 ports detected
hotplug919add:9
hotplug919add:[9/0/0]USB hub device:09h/xxh/xxh
Starting copy auto daylight saving tzfile to /i-data/md0/.system/ ...
cp -a /usr/local/zoneinfo /i-data/md0/.system/
cp: can't create directory '/i-data/md0/.system/': No such file or directory
storage_gen_swap.sh: not enough space to dd swap file
GMT offset=28800s
setting system time zone to tz_minuteswest=-480
mknod: /dev/btncpy: File exists
setLED COPY OFF
led_state_map_addr = 10
[2274] server write-only FIFO is opened (fd=6)
[2274] server read-only FIFO is opened (fd=7)
[2274] server error read-only FIFO is opened (fd=8)
argc = 2,  func = 351
argid[1]: 1226; argv[1]: former
Warning - readback failed
POLLHUP on 7
  pid = 2274
[2274] is disconnected
schedule_controller is already running now.
Starting "/etc/init.d/zypkg_controller.sh".
Starting to set up zy-pkgs environment ...
-> No volume exists now. zy-pkgs will not work.
sh: you need to specify whom to kill
Dec  4 09:21:01 (none) syslog-ng[1334]: Termination requested via signal, terminating;
Dec  4 09:21:01 (none) syslog-ng[1334]: syslog-ng shutting down; version='2.0.10'
rm: can't remove '/i-data/.system/dropbox/dropbox.enable': No such file or directory
mkdir: can't create directory '/i-data/.system/dropbox': No such file or directory
Dec  4 09:21:01 NSA325-v2 syslog-ng[2318]: syslog-ng starting up; version='2.0.10'
cp: can't create '/i-data/.system/dropbox/dropbox.db': No such file or directory
mkdir: can't create directory '/i-data/md0/.system/web_cache': No such file or directory
mount: special device /i-data/md0/.system/web_cache does not exist
chmod: /i-data/md0/.system/zyxelFrameworkLog: No such file or directory
chmod: /usr/local/apache/web_framework/data/cache: Read-only file system
chmod: /usr/local/apache/web_framework/data/cache: Read-only file system
Web Server already started.
mkdir: can't create directory '/i-data/md0/': No such file or directory
mkdir: can't create directory '/i-data/md0/': No such file or directory
Starting app_wd...
?[031m core_checksum ?[0m: 3f68d24c4d30c56ef86dd0808f89ec72
?[031m fwversion ?[0m: V4.80(AALS.0)C0
?[031m img_checksum ?[0m: 24c99d7e5313ccefa42942ee2ef043d7
?[031m modelid ?[0m: AE03
?[031m revision ?[0m: 46871
?[031m romfile_checksum ?[0m: 6613
?[031m zld_checksum ?[0m: b56a608539da559b33d27781c58ab2a9
GbE port 0: TxEnable WA - Enabled, deep=1, tx_en_bk=1

Update zypkg list
[2407] server write-only FIFO is opened (fd=6)
[2407] server read-only FIFO is opened (fd=7)
[2407] server error read-only FIFO is opened (fd=8)
argc = 1,  func = 644
POLLHUP on 7
  pid = 2407
[2407] is disconnected
chmod: /i-data/md0/admin/zy-pkgs: No such file or directory
[2430] server write-only FIFO is opened (fd=6)
[2430] server read-only FIFO is opened (fd=7)
[2430] server error read-only FIFO is opened (fd=8)
argc = 1,  func = 412
killall: twonkystarter: no process killed
/usr/lib/python2.6/site-packages/flickrapi/__init__.py:45: DeprecationWarning: the md5 module is deprecated; use hashlib instead
umount: /usr/local/apache/htdocs/adv,/res/imdb_poster: not mounted
Dec  4 09:21:08 NSA325-v2 zcip: config egiga0 169.254.157.149
Dec  4 09:21:08 NSA325-v2 zcip: script /usr/share/zcip.script config failed, exitcode=1
POLLHUP on 7
  pid = 2430
[2430] is disconnected
mdadm_status_log.sh: raid status = DeviceDisappeared
2462
led_state_map_addr = 46

Please press Enter to activate this console. mdadm_status_log.sh: raid mdx = /dev/md0
Dec  4 09:21:20 NSA325-v2 ntpdate[2047]: can't find host tock.usno.navy.mil
Dec  4 09:21:20 NSA325-v2 ntpdate[2047]: no servers can be used, exiting
Dec  4 09:21:32 NSA325-v2 dhcpcd[2485]: timed out waiting for a valid DHCP server response
Dec  4 09:21:42 NSA325-v2 ntpdate[2481]: can't find host ntp3.cs.wisc.edu
Dec  4 09:21:42 NSA325-v2 ntpdate[2481]: no servers can be used, exiting
egiga0: link up, full duplex, speed 100 Mbps
ADDRCONF(NETDEV_CHANGE): egiga0: link becomes ready
[2495] server write-only FIFO is opened (fd=6)
[2495] server read-only FIFO is opened (fd=7)
[2495] server error read-only FIFO is opened (fd=8)
argc = 3,  func = 106
argid[1]: 1087; argv[1]: ge1
argid[2]: 350; argv[2]: exit
POLLHUP on 7
  pid = 2495
[2495] is disconnected
[2500] server write-only FIFO is opened (fd=6)
[2500] server read-only FIFO is opened (fd=7)
[2500] server error read-only FIFO is opened (fd=8)
argc = 1,  func = 445
POLLHUP on 7
  pid = 2500
[2500] is disconnected
[2505] server write-only FIFO is opened (fd=6)
[2505] server read-only FIFO is opened (fd=7)
[2505] server error read-only FIFO is opened (fd=8)
argc = 4,  func = 446
argid[1]: 879; argv[1]: fetch
argid[2]: 632; argv[2]: auto
argid[3]: 1087; argv[3]: ge1
Dec  4 09:21:46 NSA325-v2 ntpdate[2519]: can't find host ntp.cs.strath.ac.uk
Dec  4 09:21:46 NSA325-v2 ntpdate[2519]: no servers can be used, exiting
/bin/rm -f /var/zyxel/zysh/egiga0.metric
Dec  4 09:21:55 NSA325-v2 ntpdate[2526]: can't find host ntp1.sp.se
Dec  4 09:21:55 NSA325-v2 ntpdate[2526]: no servers can be used, exiting
/bin/ip route del default via 0.0.0.0 dev egiga0
RTNETLINK answers: No such process
Dec  4 09:21:58 NSA325-v2 ntpdate[2539]: can't find host time1.stupi.se
Dec  4 09:21:58 NSA325-v2 ntpdate[2539]: no servers can be used, exiting
POLLHUP on 7
  pid = 2505
[2505] is disconnected
[2546] server write-only FIFO is opened (fd=6)
[2546] server read-only FIFO is opened (fd=7)
[2546] server error read-only FIFO is opened (fd=8)
argc = 1,  func = 141
POLLHUP on 7
  pid = 2546
[2546] is disconnected
Dec  4 09:22:01 NSA325-v2 dhcpcd[2537]: timed out waiting for a valid DHCP server response
Dec  4 09:22:04 NSA325-v2 ntpdate[2574]: can't find host tick.stdtime.gov.tw
Dec  4 09:22:04 NSA325-v2 ntpdate[2574]: no servers can be used, exiting
Dec  4 09:22:09 NSA325-v2 ntpdate[2577]: can't find host tock.stdtime.gov.tw
Dec  4 09:22:09 NSA325-v2 ntpdate[2577]: no servers can be used, exiting
egiga0: link down
egiga0: link up, full duplex, speed 100 Mbps
[2601] server write-only FIFO is opened (fd=6)
[2601] server read-only FIFO is opened (fd=7)
[2601] server error read-only FIFO is opened (fd=8)
argc = 3,  func = 106
argid[1]: 1087; argv[1]: ge1
argid[2]: 350; argv[2]: exit
POLLHUP on 7
  pid = 2601
[2601] is disconnected
[2606] server write-only FIFO is opened (fd=6)
[2606] server read-only FIFO is opened (fd=7)
[2606] server error read-only FIFO is opened (fd=8)
argc = 1,  func = 445
POLLHUP on 7
  pid = 2606
[2606] is disconnected
[2611] server write-only FIFO is opened (fd=6)
[2611] server read-only FIFO is opened (fd=7)
[2611] server error read-only FIFO is opened (fd=8)
argc = 4,  func = 446
argid[1]: 879; argv[1]: fetch
argid[2]: 632; argv[2]: auto
argid[3]: 1087; argv[3]: ge1
/bin/rm -f /var/zyxel/zysh/egiga0.metric
/bin/ip route del default via 0.0.0.0 dev egiga0
POLLHUP on 7
  pid = 2611
[2611] is disconnected
[2638] server write-only FIFO is opened (fd=6)
[2638] server read-only FIFO is opened (fd=7)
[2638] server error read-only FIFO is opened (fd=8)
argc = 1,  func = 141
POLLHUP on 7
  pid = 2638
[2638] is disconnected



BusyBox v1.17.2 (2015-05-15 11:23:13 CST) built-in shell (ash)
Enter 'help' for a list of built-in commands.

/ # Dec  4 01:22:36 NSA325-v2 linuxrc: starting pid 2468, tty '': '-/bin/sh'
Dec  4 09:22:37 NSA325-v2 dhcpcd[2632]: timed out waiting for a valid DHCP server response
/bi
/ # /bin/?[J
-/bin/sh: /bin/: Permission denied
/ # ls
bin      etc      init     mnt      root     tmp      zyxel
dev      home     lib      proc     sbin     usr
e-data   i-data   linuxrc  ram_bin  sys      var
/ # route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
/ #
/ # route?[J 0.0.0.0 192.168.1.??[J??[J10[2677] server write-only FIFO is opened (fd=6)
[2677] server read-only FIFO is opened (fd=7)
[2677] server error read-only FIFO is opened (fd=8)
argc = 1,  func = 70
POLLHUP on 7
  pid = 2677
[2677] is disconnected
[2682] server write-only FIFO is opened (fd=6)
[2682] server read-only FIFO is opened (fd=7)
[2682] server error read-only FIFO is opened (fd=8)
argc = 1,  func = 71
/usr/sbin/zic -d /etc /var/zyxel/myzone_rule
./bin/ln -s -f /etc/MyZone /etc/localtime
Dec  4 09:23:01 NSA325-v2 zcip: init egiga0
POLLHUP on 7
  pid = 2682
[2682] is disconnected
Dec  4 09:23:01 NSA325-v2 zcip: start, interface egiga0
1[2695] server write-only FIFO is opened (fd=6)
[2695] server read-only FIFO is opened (fd=7)
[2695] server error read-only FIFO is opened (fd=8)
argc = 1,  func = 349
POLLHUP on 7
  pid = 2695
[2695] is disconnected
[2720] server write-only FIFO is opened (fd=6)
[2720] server read-only FIFO is opened (fd=7)
[2720] server error read-only FIFO is opened (fd=8)
argc = 1,  func = 349
POLLHUP on 7
  pid = 2720
[2720] is disconnected
[2725] server write-only FIFO is opened (fd=6)
[2725] server read-only FIFO is opened (fd=7)
[2725] server error read-only FIFO is opened (fd=8)
argc = 4,  func = 346
argid[1]: 1224; argv[1]: ""
argid[2]: 597; argv[2]: in
argid[3]: 1225; argv[3]: "NULL"
POLLHUP on 7
  pid = 2725
[2725] is disconnected

BusyBox v1.17.2 (2015-05-15 11:23:13 CST) multi-call binary.

Usage: route [{add|del|delete}]

/ #
/ # route 0.0.0.0 192.168.10.1?[J
/ # route?[J
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         *               0.0.0.0         U     50     0        0 egiga0
/ # Dec  4 09:23:11 NSA325-v2 zcip: config egiga0 169.254.157.149
Dec  4 09:23:11 NSA325-v2 zcip: script /usr/share/zcip.script config failed, exitcode=1
cd /u
/ # cd /usr/?[JsDec  4 09:23:21 NSA325-v2 ntpdate[2704]: can't find host time.stdtime.gov.tw
Dec  4 09:23:21 NSA325-v2 ntpdate[2704]: no servers can be used, exiting
h
/ # cd /usr/share/?[J
/usr/share # ls
WordPress_patch_1.09.2.tgz  udhcpc
empty                       zcip.script
gallery_patch_1.09.2.tgz
/usr/share # cat zc
/usr/share # cat zcip.script ?[J
#!/bin/sh

# only for use as a "zcip" callback script
if [ "x$interface" = x ]
then
	exit 1
fi

if [ -z $metric ]; then
	metric=10
fi

# zcip should start on boot/resume and various media changes
case "$1" in
init)
	# for now, zcip requires the link to be already up,
	# and it drops links when they go down.  that isn't
	# the most robust model...
	exit 0
	;;
config)
	if [ "x$ip" = x ]
	then
		exit 1
	fi
	# remember $ip for $interface, to use on restart
	if [ "x$IP" != x -a -w "$IP.$interface" ]
	then
		echo $ip > "$IP.$interface"
	fi
	ip address add dev $interface \
		scope global local "$ip/16" broadcast +
	exec route add default dev $interface metric $metric
	;;
deconfig)
	if [ x$ip = x ]
	then
		exit 1
	fi
	exec ip address del dev $interface local $ip
	;;
esac
exit 1
/usr/share # Dec  4 09:23:36 NSA325-v2 dhcpcd[2798]: timed out waiting for a valid DHCP server response
./z
/usr/share # ./zcip.script ?[J
/usr/share # ls -la
drwxr-xr-x    4 root     root          1024 May 15  2015 .
drwxr-xr-x    8 root     root          1024 May 15  2015 ..
-rwxr-xr-x    1 root     root           929 May 15  2015 WordPress_patch_1.09.2.tgz
drwxr-xr-x    2 root     root          1024 May 15  2015 empty
-rwxr-xr-x    1 root     root          2038 May 15  2015 gallery_patch_1.09.2.tgz
drwxr-xr-x    2 root     root          1024 May 15  2015 udhcpc
-rwxr-xr-x    1 root     root           781 May 15  2015 zcip.script
/usr/share # ./u
/usr/share # ./udhcpc/?[J
-/bin/sh: ./udhcpc/: Permission denied
/usr/share # cd u
/usr/share # cd udhcpc/?[J
/usr/share/udhcpc # ls
default.script
/usr/share/udhcpc # ./d
/usr/share/udhcpc # ./default.script ?[J
Error: should be called from udhcpc
/usr/share/udhcpc # cat de
/usr/share/udhcpc # cat default.script ?[J
#!/bin/sh

# udhcpc script edited by Tim Riker <Tim@Rikers.org>

[ -z "$1" ] && echo "Error: should be called from udhcpc" && exit 1

RESOLV_CONF="/etc/resolv.conf"
[ -n "$broadcast" ] && BROADCAST="broadcast $broadcast"
[ -n "$subnet" ] && NETMASK="netmask $subnet"

case "$1" in
	deconfig)
		/sbin/ifconfig $interface 192.168.1.3
		;;

	renew|bound)
		/sbin/ifconfig $interface $ip $BROADCAST $NETMASK

		if [ -n "$router" ] ; then
			echo "deleting routers"
			while route del default dev $interface ; do
				:
			done

			metric=0
			for i in $router ; do
				route add default gw $i dev $interface metric $((metric++))
			done
		fi

		echo -n > $RESOLV_CONF
		[ -n "$domain" ] && echo search $domain >> $RESOLV_CONF
		for i in $dns ; do
			echo adding dns $i
			echo nameserver $i >> $RESOLV_CONF
		done
		;;
esac

exit 0
/usr/share/udhcpc # Dec  4 09:24:32 NSA325-v2 dhcpcd[2826]: timed out waiting for a valid DHCP server response

/usr/share/udhcpc # ifconfig egigi??[Ja0 192.168.10.85 netmak??[Jsk 255.255.255.0
/usr/share/udhcpc #
/usr/share/udhcpc # ifconfig egiga0 192.168.10.85 netmask 255.255.255.0?[J
/usr/share/udhcpc # cat default.script ?[J??[J??[J??[J??[J??[J??[J??[J??[J??[J??[J??[J??[J??[J??[J??[J??[J??[J??[J??[Jifconfig
egiga0    Link encap:Ethernet  HWaddr 00:50:43:00:02:02
          inet addr:192.168.10.85  Bcast:192.168.10.255  Mask:255.255.255.0
          inet6 addr: fe80::250:43ff:fe00:202/64 Scope:Link
          UP BROADCAST NOTRAILERS RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:34 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:532
          RX bytes:0 (0.0 B)  TX bytes:6448 (6.2 KiB)
          Interrupt:11

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:34 errors:0 dropped:0 overruns:0 frame:0
          TX packets:34 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:6084 (5.9 KiB)  TX bytes:6084 (5.9 KiB)

/usr/share/udhcpc # ifconfig
egiga0    Link encap:Ethernet  HWaddr 00:50:43:00:02:02
          inet addr:192.168.10.85  Bcast:192.168.10.255  Mask:255.255.255.0
          inet6 addr: fe80::250:43ff:fe00:202/64 Scope:Link
          UP BROADCAST NOTRAILERS RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:34 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:532
          RX bytes:0 (0.0 B)  TX bytes:6448 (6.2 KiB)
          Interrupt:11

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:35 errors:0 dropped:0 overruns:0 frame:0
          TX packets:35 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:6440 (6.2 KiB)  TX bytes:6440 (6.2 KiB)

/usr/share/udhcpc #
/usr/share/udhcpc # ifconfig?[J --help
BusyBox v1.17.2 (2015-05-15 11:23:13 CST) multi-call binary.

Usage: ifconfig [-a] interface [address]

/usr/share/udhcpc # ifconfig
egiga0    Link encap:Ethernet  HWaddr 00:50:43:00:02:02
          inet addr:192.168.10.85  Bcast:192.168.10.255  Mask:255.255.255.0
          inet6 addr: fe80::250:43ff:fe00:202/64 Scope:Link
          UP BROADCAST NOTRAILERS RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:51 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:532
          RX bytes:0 (0.0 B)  TX bytes:8940 (8.7 KiB)
          Interrupt:11

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:36 errors:0 dropped:0 overruns:0 frame:0
          TX packets:36 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:6796 (6.6 KiB)  TX bytes:6796 (6.6 KiB)

/usr/share/udhcpc # Dec  4 09:25:28 NSA325-v2 dhcpcd[2847]: timed out waiting for a valid DHCP server response
ifconfig egiga0 inet6 down
ifconfig: bad address 'inet6'
/usr/share/udhcpc #
/usr/share/udhcpc # ifconfig egiga0 inet6 down?[J??[J??[J??[J??[J??[J
ifconfig: bad address 'inet6'
/usr/share/udhcpc # egiga0: link down
exit

Please press Enter to activate this console. Dec  4 01:26:21 NSA325-v2 linuxrc: process '-/bin/sh' (pid 2468) exited. Scheduling for restart.



BusyBox v1.17.2 (2015-05-15 11:23:13 CST) built-in shell (ash)
Enter 'help' for a list of built-in commands.

/ # Dec  4 09:26:25 NSA325-v2 linuxrc: starting pid 2877, tty '': '-/bin/sh'
exit

Please press Enter to activate this console. Dec  4 09:26:27 NSA325-v2 linuxrc: process '-/bin/sh' (pid 2877) exited. Scheduling for restart.

uboot NSA310 - probably erase uboot (29 replies)

$
0
0
Hi,

I think I kill my uboot when I try test latest changes in LEDE:
I follow the procedure:
https://github.com/lede-project/source/pull/656#issuecomment-274945142

I compile the uboot:
~/openwrt/LEDEnsa310 $ ls -alh bin/targets/kirkwood/generic/u-boot-nsa310/
total 1,5M

508K Jan 25 21:28 u-boot.bin
508K Jan 25 21:28 u-boot.img
508K Jan 25 21:28 u-boot.kwb

and take u-boot.bin
then on console:
nvironment size: 2960/131068 bytes
NSA310> usb reset
resetting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 3 USB Device(s) found
       scanning usb for storage devices...
Use USB retry period from the environment: 15 second(s)
1 Storage Device(s) found
NSA310> fatload usb 0 0x1000000 uboot.bin
reading uboot.bin
519520 bytes read in 41 ms (12.1 MiB/s)
NSA310> nand write 0x1000000 0x00000 0x100000

NAND write: device 0 offset 0x0, size 0x100000
NAND write to offset 0 failed -5
 0 bytes written: ERROR
NSA310>

SA310> mtdparts

device nand0 <orion_nand>, # parts = 9
 #: name                size            offset          mask_flags
 0: uboot               0x00100000      0x00000000      0
 1: uboot_env           0x00080000      0x00100000      0
 2: key_store           0x00080000      0x00180000      0
 3: info                0x00080000      0x00200000      0
 4: etc                 0x00a00000      0x00280000      0
 5: kernel_1            0x00a00000      0x00c80000      0
 6: rootfs1             0x02fc0000      0x01680000      0
 7: kernel_2            0x00a00000      0x04640000      0
 8: rootfs2             0x02fc0000      0x05040000      0

active partition: nand0,2 - (key_store) 0x00080000 @ 0x00180000

defaults:
mtdids  : none
mtdparts: none
NSA310>
NSA310>
NSA310>
NSA310>
NSA310>
NSA310> reset
resetting ...


And then lost communication forever :-(

Is there anything I can do ?


---
Mod edit: use code tags

Newest recommended Rescue System for Pogoplug E02? (no replies)

$
0
0
Hi

Which one is the newest recommended Rescue System for a Pogoplug E02?
Is there any way of identifying the version of the installed Rescue System?

Thanks,

Rainer

Problem in flashing NSA325 u-boot (11 replies)

$
0
0
@bodhi
My device has different partition, The expected behavior was different from the guide.
When I'm deleting 4 blocks it only deletes one.

/e-data/4089-AD8E/tools # flash_erase /dev/mtd0 0 4
Erasing 128 Kibyte @ 60000 -- 100 % complete

now when I flash the uboot I get this
/e-data/4089-AD8E # nandwrite /dev/mtd0 kirkwood/generic/u-boot-nsa325/u-boot.kw
b
Input file is not page aligned
Data did not fit into device, due to bad blocks
: Success

/etc/fw_env.config
MTD device name       Device offset   Env. size       Flash sector size       Number of sectors
NAND example
/dev/mtd1               0x0000          0x20000         0x20000                 4

cat /proc/mtd
mtd0: 00100000 00020000 "uboot"
mtd1: 00080000 00020000 "uboot_env"
mtd2: 00080000 00020000 "key_store"
mtd3: 00080000 00020000 "info"
mtd4: 00a00000 00020000 "etc"
mtd5: 00a00000 00020000 "kernel_1"
mtd6: 02fc0000 00020000 "rootfs1"
mtd7: 00a00000 00020000 "kernel_2"
mtd8: 02fc0000 00020000 "rootfs2"

original env
bootargs=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=nand read.e 0x2000000 $(kernel_addr) 0xA00000; bootm 0x2000000
bootdelay=2
baudrate=115200
loads_echo=0
ipaddr=10.4.52.165
serverip=10.4.52.7
rootpath=/srv/ubuntu
netmask=255.255.255.0
nandEcc=1bit
kernel_addr=C80000
MODEL_ID=AA03
PRODUCT_NAME=NSA-325
FEATURE_BIT=00
CONTRY_TYPE=FF
VENDOR_NAME=MitraStar Technology Corp.
run_diag=yes
ethaddr=FC:F5:28:00:00:00

after flashing uboot
Warning: Bad CRC, using default environment
bootargs=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=nand read.e 0x2000000 $(kernel_addr) 0xA00000; bootm 0x2000000
bootdelay=2
baudrate=115200
nandEcc=1bit
kernel_addr=480000
MODEL_ID=A203
PRODUCT_NAME=NSA-310
FEATURE_BIT=00
CONTRY_TYPE=FF
VENDOR_NAME=ZyXEL Communications Corp.

I have backup of mtd0
What should I do now?
Viewing all 142 articles
Browse latest View live


Latest Images