Re: Rescue V2.8 : many enhancements + full kernel support for GoFlexNet/Home, Zyxel NSA3x0 and many others September 02, 2012 04:23AM |
Registered: 14 years ago Posts: 36 |
... rescue:/tmp# flash_eraseall /dev/mtd2 Erasing 128 Kibyte @ 2000000 -- 100 % complete. rescue:/tmp# ubiformat /dev/mtd2 -s 512 -f rootfs-mtd2.img -y [ 641.322528] UBIFS error (pid 95): ubifs_read_node: bad node type (255 but expected 9) [ 641.330405] UBIFS error (pid 95): ubifs_read_node: bad node at LEB 217:92928 [ 641.337507] UBIFS error (pid 95): ubifs_iget: failed to read inode 2124, error -22 [ 641.345137] UBIFS error (pid 95): ubifs_lookup: dead directory entry 'ubiformat', error -22 [ 641.353542] UBIFS warning (pid 95): ubifs_ro_mode: switched to read-only mode, error -22 -sh: ubiformat: Invalid argument rescue:/tmp#
... [ 14.024824] VFS: Cannot open root device "ubi0:rootfs" or unknown-block(0,0) [ 14.031901] Please append a correct "root=" boot option; here are the available partitions: [ 14.040313] 1f00 1024 mtdblock0 (driver?) [ 14.045421] 1f01 4096 mtdblock1 (driver?) [ 14.050505] 1f02 32768 mtdblock2 (driver?) [ 14.055600] 1f03 224256 mtdblock3 (driver?) [ 14.060681] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
wget http://download.doozan.com/uboot/flash_erase wget http://download.doozan.com/uboot/nandwrite
Re: Rescue V2.8 : many enhancements + full kernel support for GoFlexNet/Home, Zyxel NSA3x0 and many others September 02, 2012 03:36PM |
Registered: 13 years ago Posts: 501 |
> ... > rescue:/tmp# flash_eraseall /dev/mtd2 > Erasing 128 Kibyte @ 2000000 -- 100 % complete. > rescue:/tmp# ubiformat /dev/mtd2 -s 512 -f > rootfs-mtd2.img -y > [ 641.322528] UBIFS error (pid 95): > ubifs_read_node: bad node type (255 but expected > 9) > [ 641.330405] UBIFS error (pid 95): > ubifs_read_node: bad node at LEB 217:92928 > [ 641.337507] UBIFS error (pid 95): ubifs_iget: > failed to read inode 2124, error -22 > [ 641.345137] UBIFS error (pid 95): ubifs_lookup: > dead directory entry 'ubiformat', error -22 > [ 641.353542] UBIFS warning (pid 95): > ubifs_ro_mode: switched to read-only mode, error > -22 > -sh: ubiformat: Invalid argument > rescue:/tmp# >
> ... > [ 14.024824] VFS: Cannot open root device > "ubi0:rootfs" or unknown-block(0,0) > [ 14.031901] Please append a correct "root=" > boot option; here are the available partitions: > [ 14.040313] 1f00 1024 mtdblock0 > (driver?) > [ 14.045421] 1f01 4096 mtdblock1 > (driver?) > [ 14.050505] 1f02 32768 mtdblock2 > (driver?) > [ 14.055600] 1f03 224256 mtdblock3 > (driver?) > [ 14.060681] Kernel panic - not syncing: VFS: > Unable to mount root fs on unknown-block(0,0) >>
wget > http://download.doozan.com/uboot/flash_erase > wget > http://download.doozan.com/uboot/nandwrite>
Re: Rescue V2.8 : many enhancements + full kernel support for GoFlexNet/Home, Zyxel NSA3x0 and many others September 02, 2012 04:16PM |
Registered: 14 years ago Posts: 36 |
Re: Rescue V2.8 : many enhancements + full kernel support for GoFlexNet/Home, Zyxel NSA3x0 and many others September 02, 2012 04:21PM |
Registered: 14 years ago Posts: 36 |
Re: Rescue V2.8 : many enhancements + full kernel support for GoFlexNet/Home, Zyxel NSA3x0 and many others September 02, 2012 09:50PM |
Registered: 13 years ago Posts: 501 |
thunder
Re: Rescue V2.8 : many enhancements + full kernel support for GoFlexNet/Home, Zyxel NSA3x0 and many others October 10, 2012 02:25PM |
Re: Rescue V2.8 : many enhancements + full kernel support for GoFlexNet/Home, Zyxel NSA3x0 and many others October 11, 2012 02:48AM |
Registered: 12 years ago Posts: 1 |
Benjamin
Re: Rescue V2.8 : many enhancements + full kernel support for GoFlexNet/Home, Zyxel NSA3x0 and many others October 16, 2012 03:59PM |
Re: Rescue V2.8 : many enhancements + full kernel support for GoFlexNet/Home, Zyxel NSA3x0 and many others October 16, 2012 05:30PM |
Registered: 13 years ago Posts: 501 |
Benjamin
Re: Rescue V2.8 : many enhancements + full kernel support for GoFlexNet/Home, Zyxel NSA3x0 and many others October 17, 2012 01:05AM |
Arpith
Re: Rescue V2.8 : many enhancements + full kernel support for GoFlexNet/Home, Zyxel NSA3x0 and many others October 18, 2012 08:42AM |
Benjamin
Re: Rescue V2.8 : many enhancements + full kernel support for GoFlexNet/Home, Zyxel NSA3x0 and many others October 18, 2012 07:31PM |
Re: Rescue V2.8 : many enhancements + full kernel support for GoFlexNet/Home, Zyxel NSA3x0 and many others October 19, 2012 08:23PM |
Registered: 12 years ago Posts: 4 |
Re: Rescue V2.8 : many enhancements + full kernel support for GoFlexNet/Home, Zyxel NSA3x0 and many others October 20, 2012 10:56AM |
Registered: 12 years ago Posts: 4 |
Quote
davygravy
kk, thank you for the offer for the patch... actually, 30 minutes and some testing seems to have done it (just took the ALARM support patch and pulled out the two Pogo sections, added/modified two lines or so in each)... I now have a version 2.8.1 that extends arcNumber support for the Pogo_e02 and pogoplugv4 by their given arcNumbers...
I tested it in the PogoE02 and it works fine - setting arcNumber to 3542 enables proper LED behavior. I haven't tested it on the mtd function w/ this patch, but it shouldn't have changed anything wrt mtd.
/sys/class/ledsI only have:
plug:green:healthand
plug:red:miscI can just switching on/off the led with orange color changing (echo..) trigger value of plug:green:health to default-on/none.
Linux rescue 3.3.2-kirkwide #1 Mon May 28 13:23:17 CDT 2012 armv5tel GNU/Linuxand Debian Wheezy, whose kernel is:
Linux debian 3.2.0-3-kirkwood #1 Mon Jul 23 22:36:47 UTC 2012 armv5tel GNU/Linux
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_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_rootfstype=ext2 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:00:8C:09 serverip=192.168.0.100 ipaddr=192.168.0.104 if_netconsole=ping $serverip start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version; preboot=run if_netconsole start_netconsole set_bootargs_rescue=setenv bootargs console=$console ubi.mtd=2 root=ubi0:rootfs ro rootfstype=ubifs $mtdparts bootcmd_rescue=run set_bootargs_rescue; nand read.e 0x800000 0x100000 0x400000; bootm 0x800000 bootcmd_pogo=run bootcmd_rescue rescue_installed=1 arcNumber=3542
Re: Rescue V2.8 : many enhancements + full kernel support for GoFlexNet/Home, Zyxel NSA3x0 and many others October 27, 2012 06:19AM |
Registered: 12 years ago Posts: 4 |
# # Kernel # BR2_LINUX_KERNEL=y # BR2_LINUX_KERNEL_2_6_34 is not set # BR2_LINUX_KERNEL_SAME_AS_HEADERS is not set BR2_LINUX_KERNEL_CUSTOM_VERSION=y # BR2_LINUX_KERNEL_CUSTOM_TARBALL is not set BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="3.3.2" BR2_LINUX_KERNEL_VERSION="3.3.2" BR2_LINUX_KERNEL_PATCH="custom/linux-3.3.2-wide" # BR2_LINUX_KERNEL_USE_DEFCONFIG is not set BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="custom/linux-3.3.2-config" BR2_LINUX_KERNEL_UIMAGE=y # BR2_LINUX_KERNEL_BZIMAGE is not set # BR2_LINUX_KERNEL_ZIMAGE is not set # BR2_LINUX_KERNEL_VMLINUX is not setIn turn, having a look in the kernel config file refernced there (custom/linux-3.3.2-config), I see that the POGO E02 arch (CONFIG_MACH_POGO_E02) is missing:
# # Marvell Kirkwood Implementations # CONFIG_MACH_DB88F6281_BP=y CONFIG_MACH_RD88F6192_NAS=y CONFIG_MACH_RD88F6281=y CONFIG_MACH_MV88F6281GTW_GE=y CONFIG_MACH_SHEEVAPLUG=y CONFIG_MACH_ESATA_SHEEVAPLUG=y CONFIG_MACH_GURUPLUG=y CONFIG_MACH_TS219=y CONFIG_MACH_TS41X=y CONFIG_MACH_DOCKSTAR=y CONFIG_MACH_GOFLEXNET=y CONFIG_MACH_GOFLEXHOME=y CONFIG_MACH_OPENRD=y CONFIG_MACH_OPENRD_BASE=y CONFIG_MACH_OPENRD_CLIENT=y CONFIG_MACH_OPENRD_ULTIMATE=y CONFIG_MACH_NETSPACE_V2=y CONFIG_MACH_INETSPACE_V2=y CONFIG_MACH_NETSPACE_MAX_V2=y CONFIG_MACH_D2NET_V2=y CONFIG_MACH_NET2BIG_V2=y CONFIG_MACH_NET5BIG_V2=y CONFIG_MACH_T5325=y CONFIG_MACH_NSA310=y CONFIG_MACH_NSA320=y # # System MMU #
root@debian:/var/log# fw_printenv | grep arc arcNumber=3542(on the previous post, there is the compite fw_printev output)
[ 0.000000] Booting Linux on physical CPU 0 [ 0.000000] Initializing cgroup subsys cpuset [ 0.000000] Initializing cgroup subsys cpu [ 0.000000] Linux version 3.3.2-goflex-kirkwide-sdm (root@debian-cc) (gcc version 4.5.2 (Sourcery G++ Lite 2011.03-41) ) #1 Sat Oct 27 00:20:18 CEST 2012 [ 0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=00053977 [ 0.000000] CPU: VIVT data cache, VIVT instruction cache [ 0.000000] Machine: Marvell SheevaPlug Reference Board [ 0.000000] Memory policy: ECC disabled, Data cache writeback [ 0.000000] On node 0 totalpages: 65536 [ 0.000000] free_area_init_node: node 0, pgdat c07027a4, node_mem_map c0777000 [ 0.000000] Normal zone: 512 pages used for memmap [ 0.000000] Normal zone: 0 pages reserved [ 0.000000] Normal zone: 65024 pages, LIFO batch:15 [ 0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768 [ 0.000000] pcpu-alloc: [0] 0 [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 65024 [ 0.000000] Kernel command line: console=ttyS0,115200 root=/dev/sda1 rootdelay=10 rootfstype=ext2 mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)(you can see in red the kernel string, that confirm I'm using my custom built kernel; the reference to goflex is just because I didn't rename correctly the default string used in the .config I used).
Re: Rescue V2.8 : many enhancements + full kernel support for GoFlexNet/Home, Zyxel NSA3x0 and many others October 27, 2012 02:37PM |
Registered: 13 years ago Posts: 501 |
Re: Rescue V2.8 : many enhancements + full kernel support for GoFlexNet/Home, Zyxel NSA3x0 and many others October 27, 2012 05:10PM |
Registered: 12 years ago Posts: 4 |
Re: Rescue V2.8 : many enhancements + full kernel support for GoFlexNet/Home, Zyxel NSA3x0 and many others October 28, 2012 03:31AM |
Registered: 12 years ago Posts: 4 |
/usr/sbin/fw_setenv machid dd6
Re: Rescue V2.8 : many enhancements + full kernel support for GoFlexNet/Home, Zyxel NSA3x0 and many others October 28, 2012 12:06PM |
Registered: 13 years ago Posts: 501 |
pogoE02> pogoE02> set serverip 192.168.x.x pogoE02> set ipaddr 192.168.x.x pogoE02> tftpboot 0x800000 uboot.mtd0.kwb-pogoE02-L2Coff-arcNumberworks Using egiga0 device TFTP from server 192.168.x.x; our IP address is 192.168.x.x Filename 'uboot.mtd0.kwb-pogoE02-L2Coff-arcNumberworks'. Load address: 0x800000 Loading: #################################### done Bytes transferred = 524288 (80000 hex) pogoE02> nand erase 0x0 0x80000 NAND erase: device 0 offset 0x0, size 0x80000 Erasing at 0x60000 -- 100% complete. OK pogoE02> nand write.e 0x800000 0x0 0x80000 NAND write: device 0 offset 0x0, size 0x80000 524288 bytes written: OK pogoE02> reset resetting ... U-Boot 2011.12 (Jun 08 2012 - 11:41:39) 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 error: ubi_read_volume_table: the layout volume was not found UBI error: ubi_init: cannot attach mtd1 UBI error: ubi_init: UBI error: cannot initialize UBI, error -22 UBI init error 22 ... Wrong Image Format for bootm command ERROR: can't get kernel image! stopping USB.. NAND read: device 0 offset 0x100000, size 0x400000 4194304 bytes read: OK ## Booting kernel from Legacy Image at 00800000 ... Image Name: Linux-3.3.2-kirkwide Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 3038888 Bytes = 2.9 MiB Load Address: 00008000 Entry Point: 00008000 Verifying Checksum ... OK Loading Kernel Image ... OK OK Starting kernel ... Uncompressing Linux... done, booting the kernel. [ 0.000000] Booting Linux on physical CPU 0 [ 0.000000] Initializing cgroup subsys cpuset [ 0.000000] Initializing cgroup subsys cpu [ 0.000000] Linux version 3.3.2-kirkwide (davygravy@bitbaker64) (gcc version2 [ 0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397 [ 0.000000] CPU: VIVT data cache, VIVT instruction cache [ 0.000000] Machine: Pogoplug E02 [ 0.000000] Memory policy: ECC disabled, Data cache writeback ... [ 13.066319] Kirkwood: MV88F6281-A0, TCLK=200000000. [ 13.066337] Feroceon L2: Enabling L2 [ 13.066377] Feroceon L2: Cache support initialised. [ 13.070047] bio: create slab <bio-0> at 0 ... [ 13.262228] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled [ 13.282697] serial8250.0: ttyS0 at MMIO 0xf1012000 (irq = 33) is a 16550A [ 13.738837] console [ttyS0] enabled [ 13.743452] NAND device: Manufacturer ID: 0xec, Chip ID: 0xf1 (Samsung NAND ) [ 13.752145] Scanning device for bad blocks [ 13.832184] 4 cmdlinepart partitions found on MTD device orion_nand [ 13.838481] Creating 4 MTD partitions on "orion_nand": [ 13.843661] 0x000000000000-0x000000100000 : "u-boot" [ 13.849469] 0x000000100000-0x000000500000 : "uImage" [ 13.855239] 0x000000500000-0x000002500000 : "rootfs" [ 13.861018] 0x000002500000-0x000008000000 : "data" ... ... [ 14.692189] hub 1-1:1.0: USB hub found [ 14.696354] hub 1-1:1.0: 4 ports detected Initializing random number generator... done. Starting system message bus: done Starting network... Starting Network Interface Plugging Daemon: eth0. Starting Netatalk services (this will take a while): Starting afpd afpd cnid_metad. Starting sshd: OK starting p910nd with options -b -f /dev/usb/lp0 on port 0 with pid-file p9100d.d ... MacPlug for Kirkwood Devices File/Print Sharing Suite for Mac Doozan Forum http://forum.doozan.com MacPlug developed by davygravy david.c.purdy@gmail.com MacPlug login: root Password: MacPlug:~# MacPlug:~# ls /sys/class/leds/ status:green:health status:orange:fault
Re: Rescue V2.8 : many enhancements + full kernel support for GoFlexNet/Home, Zyxel NSA3x0 and many others October 28, 2012 12:15PM |
Registered: 13 years ago Posts: 501 |
MacPro:~ davygravy$ ssh root@192.168.X.X Doozan Forum Kirkwood/*Plug* Recovery System V2.8.2 : Oct 29 2012 root@192.168.11.188's password: rescue:~# dmesg | grep Machine [ 0.000000] Machine: Pogoplug E02 rescue:~#
Re: Rescue V2.8.2 : many enhancements + full kernel support for GoFlexNet/Home, Zyxel NSA3x0 and many others February 27, 2013 09:41PM |
Registered: 11 years ago Posts: 1 |
basti523
Re: Rescue V2.8.2 : many enhancements + full kernel support for GoFlexNet/Home, Zyxel NSA3x0 and many others May 04, 2013 03:45AM |
Der Freibeuter
Re: Rescue V2.8.2 : many enhancements + full kernel support for GoFlexNet/Home, Zyxel NSA3x0 and many others May 11, 2013 03:41PM |
Der Freibeuter
Re: Rescue V2.8.2 : many enhancements + full kernel support for GoFlexNet/Home, Zyxel NSA3x0 and many others May 12, 2013 03:47AM |
Re: Rescue V2.8.2 : many enhancements + full kernel support for GoFlexNet/Home, Zyxel NSA3x0 and many others May 13, 2013 08:00AM |
Registered: 13 years ago Posts: 157 |
Stupid mistake - brick or recoverable? May 15, 2013 04:16AM |
Registered: 13 years ago Posts: 157 |
Re: Stupid mistake - brick or recoverable? May 15, 2013 08:13AM |
Registered: 12 years ago Posts: 232 |
Re: Stupid mistake - brick or recoverable? May 15, 2013 08:23AM |
Registered: 13 years ago Posts: 157 |
Re: Stupid mistake - brick or recoverable? May 15, 2013 02:16PM |
Registered: 13 years ago Posts: 157 |
dd if=/dev/mtdx of=nsa320_mtdx.img
flash_eraseall /dev/mtdx nandwrite /dev/mtdx nsa320_mtdx.img
Re: Rescue V2.8.2 : many enhancements + full kernel support for GoFlexNet/Home, Zyxel NSA3x0 and many others July 21, 2013 08:46PM |
Registered: 11 years ago Posts: 8 |