Rescue V2.8.2 : many enhancements + full kernel support for GoFlexNet/Home, Zyxel NSA3x0 and many others May 12, 2012 10:35AM |
Registered: 13 years ago Posts: 501 |
# make sure your **arcNumber** is correctly set, and check your console/netconsole connectivity in case of problems # Pogoplug E02 3542 if you have a kernel that supports it, or you can use 2097 (sheevaplug) if you have a truly vanilla mainline kernel that has no PogoE02-specific support in it # # Dockstar and PogoplugV1/E01 2998 # # GoFlex Net and GoFlex Home 3089 if you have a kernel that supports it, or you can use 2678 (sheevaplug-eSATA) if you have a vanilla mainline kernel (but you'll likely experience the bad-blocks-NAND-mtd problem) # [ ! yes, you can use the same arcNumber for both of these GoFlex devices ! ] # boot into Debian or something _other_ than the "rescue system" # download it to your Kirkwood device/Dockstar/Pogoplug/GoFlex # untar it after downloading tar zxvf RescueV2.8.1-05282012.tar.gz # using tools from mtd-utils flash_eraseall /dev/mtd1 nandwrite /dev/mtd1 uImage-mtd1.img flash_eraseall /dev/mtd2 ubiformat /dev/mtd2 -s 512 -f rootfs-mtd2.img -y fw_setenv set_bootargs_rescue 'setenv bootargs console=$console ubi.mtd=2 root=ubi0:rootfs ro rootfstype=ubifs $mtdparts' fw_setenv bootcmd_rescue 'run set_bootargs_rescue; nand read.e 0x800000 0x100000 0x400000; bootm 0x800000' fw_setenv bootcmd_pogo 'run bootcmd_rescue' fw_setenv rescue_installed 1
# make sure your arcNumber is correctly set, and check your console/netconsole connectivity in case of problems # Zyxel NSA320 3956 for arcNumber # boot into Debian or something _other_ than the "rescue system" # download it to your Zyxel NSA320 # untar it after downloading tar zxvf RescueRescueV2.8.1-05282012.tar.gz # using tools from mtd-utils flash_eraseall /dev/mtd7 nandwrite /dev/mtd7 uImage-mtd1.img flash_eraseall /dev/mtd8 ubiformat /dev/mtd8 -s 512 -f rootfs-mtd2.img -y fw_setenv bootcmd_rescue 'run set_bootargs_rescue; nand read.e 0x800000 0x4640000 0xa00000; bootm 0x800000' fw_setenv set_bootargs_rescue 'setenv bootargs console=$console ubi.mtd=8 root=ubi0:rootfs ro rootfstype=ubifs $mtdparts'
run bootcmd_rescue
ssh root@rescue.localThis should work on any Bonjour/Zeroconf/Avahi-enabled machine, and perhaps on some others.
mount -o remount,rw / # make whatever changes you want to, such as adding modprobe commands to /etc/init.d/rcS # then revert to ro mount -o remount,ro /One important change to consider is to set your own password!
#hardware monitoring on the Zyxel NSA320: modprobe nsa3xx-hwmon
mkdir rescuebuilddir cd rescuebuilddir wget http://buildroot.uclibc.org/downloads/buildroot-2010.08.tar.gz tar zxf buildroot-2010.08.tar.gz wget http://dl.dropbox.com/u/1015928/Kirkwood/rescue/rescue-V2.8-applyto-buildroot2010.08.patch cd buildroot-2010.08 patch -p1 < ../rescue-V2.8-applyto-buildroot2010.08.patch wget http://dl.dropbox.com/u/1015928/Kirkwood/rescue/custom-RescueV2.8.1.tar.gz tar zxf custom-RescueV2.8.tar.gz cp custom/buildroot-config .config make
cd output/images cat <<END >rootfs.cfg [ubifs] mode=ubi image=rootfs.ubifs vol_id=0 vol_type=dynamic vol_name=rootfs vol_flags=autoresize END ubinize -o rootfs-mtd2.img -m 2048 -p 128KiB -s 512 rootfs.cfg dd if=uImage of=uImage-mtd1.img bs=512K conv=sync
Re: Rescue V2.1 : some enhancements + full kernel support for GoFlexNet/Home, Zyxel NSA3x0 and many others May 13, 2012 05:30PM |
Registered: 14 years ago Posts: 136 |
Quote
[ 158.330214] usb 1-1: new high-speed USB device number 2 using orion-ehci
[ 158.486007] usb 1-1: New USB device found, idVendor=0718, idProduct=04a2
[ 158.492760] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 158.499932] usb 1-1: Product: Nano
[ 158.503366] usb 1-1: Manufacturer: Imation
[ 158.507483] usb 1-1: SerialNumber: 07A11E03C895CE92
[ 158.518073] scsi0 : usb-storage 1-1:1.0
[ 159.551098] scsi 0:0:0:0: Direct-Access Imation Nano PMAP PQ: 0 ANSI: 0 CCS
Re: Rescue V2.1 : some enhancements + full kernel support for GoFlexNet/Home, Zyxel NSA3x0 and many others May 13, 2012 06:43PM |
Registered: 13 years ago Posts: 501 |
root@GoFlexHome:~# fw_printenv arcNumber arcNumber=3089
Re: Rescue V2.1 : some enhancements + full kernel support for GoFlexNet/Home, Zyxel NSA3x0 and many others May 13, 2012 06:46PM |
Registered: 13 years ago Posts: 501 |
Re: Rescue V2.1 : some enhancements + full kernel support for GoFlexNet/Home, Zyxel NSA3x0 and many others May 13, 2012 09:16PM |
Registered: 13 years ago Posts: 501 |
mount /dev/sda1 /mnt
davygravy@bitbaker64:~$ ssh root@rescue.local Warning: the RSA host key for 'rescue.local' differs from the key for the IP address '192.168.11.173' Offending key for IP in /home/davygravy/.ssh/known_hosts:71 Matching host key in /home/davygravy/.ssh/known_hosts:75 root@rescue.local's password: rescue:~# mount /dev/sda1 /mnt rescue:~# lsmod Module Size Used by Not tainted sd_mod 32868 2 crc_t10dif 1110 1 sd_mod rescue:~# mount rootfs on / type rootfs (rw) ubi0:rootfs on / type ubifs (rw,noatime) proc on /proc type proc (rw,relatime) devpts on /dev/pts type devpts (rw,relatime,gid=5,mode=620,ptmxmode=000) tmpfs on /tmp type tmpfs (rw,relatime) sysfs on /sys type sysfs (rw,relatime) /dev/sda1 on /mnt type ext3 (rw,relatime,errors=continue,barrier=1,data=ordered) rescue:~#
7.538935] VFS: Mounted root (ubifs filesystem) readonly on device 0:15. [ 7.546251] Freeing init memory: 160K [ 7.610506] usb 1-1: new high-speed USB device number 2 using orion-ehci [ 7.774709] usb 1-1: New USB device found, idVendor=0930, idProduct=6545 [ 7.781483] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 7.788652] usb 1-1: Product: DataTraveler 109 [ 7.793135] usb 1-1: Manufacturer: Kingston [ 7.797337] usb 1-1: SerialNumber: 0060E049DF77EBB0B00002F2 [ 7.823449] scsi0 : usb-storage 1-1:1.0 [ 8.822404] scsi 0:0:0:0: Direct-Access Kingston DataTraveler 109 PMAP PQ: 0 ANSI: 0 CCS [ 10.109787] mv643xx_eth_port mv643xx_eth_port.0: eth0: link up, 1000 Mb/s, full duplex, flow control disabled [ 47.370238] sd 0:0:0:0: [sda] 15240576 512-byte logical blocks: (7.80 GB/7.26 GiB) [ 47.381350] sd 0:0:0:0: [sda] Write Protect is off [ 47.386167] sd 0:0:0:0: [sda] Mode Sense: 23 00 00 00 [ 47.386581] sd 0:0:0:0: [sda] No Caching mode page present [ 47.392118] sd 0:0:0:0: [sda] Assuming drive cache: write through [ 47.402342] sd 0:0:0:0: [sda] No Caching mode page present [ 47.407861] sd 0:0:0:0: [sda] Assuming drive cache: write through [ 47.415468] sda: sda1 [ 47.423220] sd 0:0:0:0: [sda] No Caching mode page present [ 47.428736] sd 0:0:0:0: [sda] Assuming drive cache: write through [ 47.434889] sd 0:0:0:0: [sda] Attached SCSI removable disk [ 47.448169] kjournald starting. Commit interval 5 seconds [ 47.456358] EXT3-fs (sda1): using internal journal [ 47.461201] EXT3-fs (sda1): mounted filesystem with ordered data mode
Re: Rescue V2.1 : some enhancements + full kernel support for GoFlexNet/Home, Zyxel NSA3x0 and many others May 14, 2012 01:13AM |
Registered: 14 years ago Posts: 136 |
[ 27.430261] usb 1-1: new high-speed USB device number 2 using orion-ehci [ 27.586122] usb 1-1: New USB device found, idVendor=0718, idProduct=04a2 [ 27.592879] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 27.600051] usb 1-1: Product: Nano [ 27.603485] usb 1-1: Manufacturer: Imation [ 27.607602] usb 1-1: SerialNumber: 07A11E03C895CE92 [ 27.618528] scsi0 : usb-storage 1-1:1.0 [ 28.651213] scsi 0:0:0:0: Direct-Access Imation Nano PMAP PQ: 0 ANSI: 0 CCS [ 40.398285] sd 0:0:0:0: [sda] 7827456 512-byte logical blocks: (4.00 GB/3.73 GiB) [ 40.406524] sd 0:0:0:0: [sda] Write Protect is off [ 40.411369] sd 0:0:0:0: [sda] Mode Sense: 23 00 00 00 [ 40.412020] sd 0:0:0:0: [sda] No Caching mode page present [ 40.417536] sd 0:0:0:0: [sda] Assuming drive cache: write through [ 40.427770] sd 0:0:0:0: [sda] No Caching mode page present [ 40.433310] sd 0:0:0:0: [sda] Assuming drive cache: write through [ 40.461775] sda: sda1 sda2 [ 40.471655] sd 0:0:0:0: [sda] No Caching mode page present [ 40.477172] sd 0:0:0:0: [sda] Assuming drive cache: write through [ 40.483323] sd 0:0:0:0: [sda] Attached SCSI removable disk [ 40.500470] kjournald starting. Commit interval 5 seconds [ 41.438809] EXT3-fs (sda1): using internal journal [ 41.443655] EXT3-fs (sda1): mounted filesystem with ordered data mode
Re: Rescue V2.1 : some enhancements + full kernel support for GoFlexNet/Home, Zyxel NSA3x0 and many others May 14, 2012 06:07AM |
Registered: 13 years ago Posts: 501 |
Re: Rescue V2.1 : some enhancements + full kernel support for GoFlexNet/Home, Zyxel NSA3x0 and many others May 14, 2012 10:35PM |
Registered: 13 years ago Posts: 501 |
Re: Rescue V2.1 : some enhancements + full kernel support for GoFlexNet/Home, Zyxel NSA3x0 and many others May 15, 2012 05:41PM |
Registered: 13 years ago Posts: 501 |
Goetz
Sources/Patches for Rescue V2.1 May 19, 2012 03:56PM |
Re: Rescue V2.1 : some enhancements + full kernel support for GoFlexNet/Home, Zyxel NSA3x0 and many others May 20, 2012 03:05AM |
Registered: 12 years ago Posts: 5 |
Re: Rescue V2.1 : some enhancements + full kernel support for GoFlexNet/Home, Zyxel NSA3x0 and many others May 20, 2012 04:48AM |
Registered: 12 years ago Posts: 5 |
bash-3.2# flash_eraseall /dev/mtd2 Erasing 128 Kibyte @ f900000 -- 100 % complete.
Re: Rescue V2.1 : some enhancements + full kernel support for GoFlexNet/Home, Zyxel NSA3x0 and many others May 20, 2012 04:52AM |
Registered: 12 years ago Posts: 5 |
Re: Rescue V2.1 : some enhancements + full kernel support for GoFlexNet/Home, Zyxel NSA3x0 and many others May 20, 2012 11:27AM |
Registered: 13 years ago Posts: 501 |
[ 36.236036] r8712u: module is from the staging directory, the quality is unknown, you have been warned. [ 36.396952] r8712u: DriverVersion: v7_0.20100831 [ 36.406415] r8712u: register rtl8712_netdev_ops to netdev_ops [ 36.412892] r8712u: USB_SPEED_HIGH with 4 endpoints [ 36.418906] r8712u: Boot from EFUSE: Autoload OK [ 37.161814] r8712u: CustomerID = 0x0010 [ 37.165671] r8712u: MAC Address from efuse = 54:04:a6:9f:bc:ce [ 37.173630] usbcore: registered new interface driver r8712u [ 37.726086] EXT3-fs (sda1): using internal journal [ 40.488571] NET: Registered protocol family 10 [ 41.221441] r8712u: 1 RCR=0x153f00e [ 41.225687] r8712u: 2 RCR=0x553f00e [ 41.343807] ADDRCONF(NETDEV_UP): eth0: link is not ready [ 41.349864] ADDRCONF(NETDEV_UP): wlan0: link is not ready
Re: Rescue V2.1 : some enhancements + full kernel support for GoFlexNet/Home, Zyxel NSA3x0 and many others May 20, 2012 03:48PM |
Registered: 12 years ago Posts: 5 |
Re: Rescue V2.1 : some enhancements + full kernel support for GoFlexNet/Home, Zyxel NSA3x0 and many others May 20, 2012 08:50PM |
Registered: 13 years ago Posts: 501 |
Re: Sources/Patches for Rescue V2.1 May 20, 2012 09:13PM |
Registered: 13 years ago Posts: 501 |
Re: (Testing) Rescue V2.1 : some enhancements + full kernel support for GoFlexNet/Home, Zyxel NSA3x0 and many others May 21, 2012 06:31PM |
Registered: 14 years ago Posts: 136 |
Re: (Testing) Rescue V2.1 : some enhancements + full kernel support for GoFlexNet/Home, Zyxel NSA3x0 and many others May 21, 2012 07:36PM |
Registered: 13 years ago Posts: 501 |
rescue:/# cat config | grep EHCI CONFIG_USB_ARCH_HAS_EHCI=y CONFIG_USB_EHCI_HCD=y CONFIG_USB_EHCI_ROOT_HUB_TT=y CONFIG_USB_EHCI_TT_NEWSCHED=y # CONFIG_USB_EHCI_MV is not set rescue:/#
davygravy@bitbaker64:~/RescueV2.1-redux/buildroot-2010.08/output/build/linux-2.6.32.18$ cat .config | grep EHCI CONFIG_USB_ARCH_HAS_EHCI=y CONFIG_USB_EHCI_HCD=y CONFIG_USB_EHCI_ROOT_HUB_TT=y CONFIG_USB_EHCI_TT_NEWSCHED=yThe option CONFIG_USB_EHCI_MV didn't exist in older kernels, it appears.
Jeff Doozan's Dockstar/Pogoplug Recovery System rescue login: root Password: May 22 03:41:52 login[134]: root login on 'ttyS0' rescue:~# lsmod Module Size Used by Not tainted rescue:~# [ 44.002889] usb 1-1.1: new full-speed USB device number 3 using orion-ehci [ 44.114488] usb 1-1.1: New USB device found, idVendor=05e3, idProduct=0606 [ 44.121396] usb 1-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=0 [ 44.128750] usb 1-1.1: Product: USB Hub 2.0 [ 44.132977] usb 1-1.1: Manufacturer: ALCOR [ 44.139496] hub 1-1.1:1.0: USB hub found [ 44.153213] hub 1-1.1:1.0: 4 ports detected [ 44.442768] usb 1-1.1.2: new full-speed USB device number 4 using orion-ehci [ 44.562988] usb 1-1.1.2: not running at top speed; connect to a high speed hub [ 44.572744] usb 1-1.1.2: New USB device found, idVendor=0781, idProduct=5530 [ 44.579825] usb 1-1.1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 44.587354] usb 1-1.1.2: Product: Cruzer [ 44.591289] usb 1-1.1.2: Manufacturer: SanDisk [ 44.595784] usb 1-1.1.2: SerialNumber: 20060775101D8B336814 [ 44.612616] scsi0 : usb-storage 1-1.1.2:1.0 [ 44.692774] usb 1-1.1.4: new full-speed USB device number 5 using orion-ehci [ 44.743993] usbcore: registered new interface driver uas [ 44.822989] usb 1-1.1.4: not running at top speed; connect to a high speed hub [ 44.831737] usb 1-1.1.4: New USB device found, idVendor=0846, idProduct=9030 [ 44.838831] usb 1-1.1.4: New USB device strings: Mfr=16, Product=32, SerialNumber=48 [ 44.846636] usb 1-1.1.4: Product: WNA1100 [ 44.850665] usb 1-1.1.4: Manufacturer: NETGEAR WNA [ 44.855489] usb 1-1.1.4: SerialNumber: 12345 [ 45.037078] cfg80211: Calling CRDA to update world regulatory domain [ 45.614085] scsi 0:0:0:0: Direct-Access SanDisk Cruzer 1.26 PQ: 0 ANSI: 5 [ 45.654669] sd 0:0:0:0: [sda] 15633408 512-byte logical blocks: (8.00 GB/7.45 GiB) [ 45.664795] sd 0:0:0:0: [sda] Write Protect is off [ 45.670517] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA [ 45.701519] sda: sda1 sda2 sda3 [ 45.710636] sd 0:0:0:0: [sda] Attached SCSI removable disk rescue:~# lsmod Module Size Used by Not tainted sd_mod 32868 0 crc_t10dif 1110 1 sd_mod ath9k_htc 67430 1 mac80211 329588 1 ath9k_htc ath9k_common 1938 1 ath9k_htc ath9k_hw 345253 2 ath9k_htc,ath9k_common ath 14177 3 ath9k_htc,ath9k_common,ath9k_hw cfg80211 158416 3 ath9k_htc,mac80211,ath rfkill 14649 1 cfg80211 uas 6619 0 rescue:~#
Re: (Testing) Rescue V2.6 : more enhancements + full kernel support for GoFlexNet/Home, Zyxel NSA3x0 and many others May 22, 2012 11:51AM |
Registered: 14 years ago Posts: 136 |
Re: (Testing) Rescue V2.7 : more enhancements + full kernel support for GoFlexNet/Home, Zyxel NSA3x0 and many others May 22, 2012 10:09PM |
Registered: 13 years ago Posts: 501 |
Re: Rescue V2.8 : many enhancements + full kernel support for GoFlexNet/Home, Zyxel NSA3x0 and many others May 27, 2012 10:12AM |
Registered: 13 years ago Posts: 78 |
Re: Rescue V2.8 : many enhancements + full kernel support for GoFlexNet/Home, Zyxel NSA3x0 and many others May 27, 2012 11:23AM |
Registered: 13 years ago Posts: 501 |
Marvell DB-88F6281-BP Development Board Marvell RD-88F6192-NAS Reference Board Marvell RD-88F6281 Reference Board Marvell 88F6281 GTW GE Board Marvell SheevaPlug Reference Board Marvell eSATA SheevaPlug Reference Board Marvell GuruPlug Reference Board QNAP TS-110, TS-119, TS-119P+, TS-210, TS-219, TS-219P and TS-219P+ Turbo NAS QNAP TS-410, TS-410U, TS-419P, TS-419P+ and TS-419U Turbo NAS Seagate FreeAgent DockStar Seagate GoFlex Net/Home (using the same arcNumber/machid) Marvell OpenRD Base Board Marvell OpenRD Client Board Marvell OpenRD Ultimate Board LaCie Network Space v2 NAS Board LaCie Internet Space v2 NAS Board LaCie Network Space Max v2 NAS Board LaCie d2 Network v2 NAS Board LaCie 2Big Network v2 NAS Board LaCie 5Big Network v2 NAS Board HP t5325 Thin Client ZyXEL NSA310 1-Bay Power Media Server ZyXEL NSA320 2-Bay Power Media Server
CloudEngines PogoplugE01/V1 CloudEngines PogoplugE02/V2
Re: Rescue V2.8 : many enhancements + full kernel support for GoFlexNet/Home, Zyxel NSA3x0 and many others May 28, 2012 02:30AM |
Registered: 13 years ago Posts: 78 |
Re: Rescue V2.8 : many enhancements + full kernel support for GoFlexNet/Home, Zyxel NSA3x0 and many others May 28, 2012 11:12AM |
Registered: 13 years ago Posts: 501 |
Re: Rescue V2.8 : many enhancements + full kernel support for GoFlexNet/Home, Zyxel NSA3x0 and many others May 29, 2012 07:06PM |
Registered: 12 years ago Posts: 52 |
Re: Rescue V2.8 : many enhancements + full kernel support for GoFlexNet/Home, Zyxel NSA3x0 and many others June 05, 2012 05:08PM |
Registered: 13 years ago Posts: 501 |
Re: Rescue V2.8 : many enhancements + full kernel support for GoFlexNet/Home, Zyxel NSA3x0 and many others August 07, 2012 05:51AM |
Registered: 12 years ago Posts: 2 |
Re: Rescue V2.8 : many enhancements + full kernel support for GoFlexNet/Home, Zyxel NSA3x0 and many others August 07, 2012 06:18PM |
Registered: 14 years ago Posts: 78 |
If so then it's ok to continue to follow the remaining instructions.Quote
NAND erase: device 0 offset 0x0, size 0x80000
Erasing at 0x60000 -- 100% complete.
OK
Marvell>> nand write.e 0x800000 0x0 0x80000
nand write.e 0x800000 0x0 0x80000
NAND write: device 0 offset 0x0, size 0x80000
524288 bytes written: OK
Re: Rescue V2.8 : many enhancements + full kernel support for GoFlexNet/Home, Zyxel NSA3x0 and many others August 08, 2012 01:47AM |
Registered: 12 years ago Posts: 2 |
> If so then it's ok to continue to follow theQuote
NAND erase: device 0 offset 0x0, size
> 0x80000
> Erasing at 0x60000 -- 100% complete.
> OK
> Marvell>> nand write.e 0x800000 0x0 0x80000
> nand write.e 0x800000 0x0 0x80000
>
> NAND write: device 0 offset 0x0, size 0x80000
> 524288 bytes written: OK