Welcome! Log In Create A New Profile

Advanced

[solved]no IP/network after system failure, DHCP DD-WRT

Posted by rynax 
[solved]no IP/network after system failure, DHCP DD-WRT
November 01, 2012 09:43AM
Hi,

Recently the root file system (ext2) on the flash drive was corrupted, (due to transmission-daemon's status/log write operation I would say).

Have tried using fsck to repair file system and it fixed several errors.

Now the Pogo E2 could not boot into the system correctly (no ip showing in the router, can't access via network).
So what could I do to rescue it ?

here's the netconsole log
U-Boot 2011.12 (Feb 20 2012 - 21:21:59)
Pogoplug E02
Hit any key to stop autoboot:  0
(Re)start USB...
USB:   Register 10011 NbrPorts 1
USB EHCI 1.00
scanning bus for devices... 3 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-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:        727
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:             716
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'!
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)
2279256 bytes read
Loading file "/boot/uInitrd" from usb device 0:1 (usbda1)
6996465 bytes read
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-3.3.2
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2279192 Bytes = 2.2 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 01100000 ...
   Image Name:   initramfs-3.3.2-kirkwood-dg
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    6996401 Bytes = 6.7 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...



Edited 2 time(s). Last edit at 11/02/2012 10:18AM by rynax.
Re: root ext2 file system corrupted, fscked, still can’t get ip/network
November 01, 2012 09:45AM
if boot without the Debian installation, there seems to have many bad blocks in the NAND, should I concern?

U-Boot 2011.12 (Feb 20 2012 - 21:21:59)
Pogoplug E02                                                                                                                                                                                                                               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:        727
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:             716
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: .........  read_nand_cached: error reading nand off 0x1a1e600 size 8192 bytes
read_nand_cached: error reading nand off 0x1a20600 size 8192 bytes
read_nand_cached: error reading nand off 0x1a22600 size 8192 bytes
read_nand_cached: error reading nand off 0x1a24600 size 8192 bytes
read_nand_cached: error reading nand off 0x1a26600 size 8192 bytes
read_nand_cached: error reading nand off 0x1a28600 size 8192 bytes
read_nand_cached: error reading nand off 0x1a2a600 size 8192 bytes
read_nand_cached: error reading nand off 0x1a2c600 size 8192 bytes
read_nand_cached: error reading nand off 0x1a2e600 size 8192 bytes
read_nand_cached: error reading nand off 0x1a30600 size 8192 bytes
read_nand_cached: error reading nand off 0x1a32600 size 8192 bytes
read_nand_cached: error reading nand off 0x1a32400 size 8192 bytes
read_nand_cached: error reading nand off 0x1a34400 size 8192 bytes
read_nand_cached: error reading nand off 0x1a36400 size 8192 bytes
read_nand_cached: error reading nand off 0x1a38400 size 8192 bytes
read_nand_cached: error reading nand off 0x1a3a400 size 8192 bytes
read_nand_cached: error reading nand off 0x1a3c400 size 8192 bytes
read_nand_cached: error reading nand off 0x1a3e400 size 8192 bytes                                                                                                                                                                          done.
read_nand_cached: error reading nand off 0x1a20e00 size 8192 bytes
read_nand_cached: error reading nand off 0x1a24800 size 8192 bytes
### JFFS2 load complete: 524288 bytes loaded to 0x800000
## Starting application at 0x00800200 ...

Re: root ext2 file system corrupted, fscked, still can’t get ip/network
November 02, 2012 10:14AM
Ok, I was able to rescue the system by doing the following steps:

modify /lib/udev/rules.d/75-persistent-net-generator.rules change the eth to Eth
# device name whitelist
KERNEL!="Eth*|ath*|wlan*[0-9]|msh*|ra*|sta*|ctc*|lcs*|hsi*", \
					GOTO="persistent_net_generator_end"

change the /etc/network/interfaces file, edit it from a dhcp config to a static ip config:
(was dhcp on the debian and assign static ip from the router).
auto lo eth0 
iface lo inet loopback 
# iface eth0 inet dhcp 

iface eth0 inet static 
address 192.168.1.100 
netmask 255.255.255.0 
broadcast 192.168.1.255 
gateway 192.168.1.1

Also change the hostname in /etc/hostname.

This combination works, I don't know which step saved it.

reference:
http://forum.doozan.com/read.php?2,9771
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: