|
Rescue System v2 February 17, 2011 10:09AM |
Admin Registered: 13 years ago Posts: 304 |
cd /tmp wget http://jeff.doozan.com/debian/rescue/install_rescue.sh chmod +x install_rescue.sh ./install_rescue.sh
cd /usr/src wget http://buildroot.uclibc.org/downloads/buildroot-2010.08.tar.gz tar -xzvf buildroot-2010.08.tar.gz cd buildroot-2010.08 git clone https://github.com/doozan/RescueSystem.git custom 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 System v2 February 17, 2011 10:32AM |
Admin Registered: 13 years ago Posts: 304 |
|
Johannes
Re: Rescue System v2 February 20, 2011 12:25PM |
patch -p1 -i custom/buildroot-patch
mkimage -A arm -O linux -T ramdisk -C bzip2 -a 0 -e 0 -n RescueSystem -d output/images/rootfs.cpio.bz2 output/images/uInitrd
|
Re: Rescue System v2 May 12, 2011 03:46AM |
Registered: 13 years ago Posts: 136 |
|
Re: Rescue System v2 May 13, 2011 01:42PM |
Registered: 12 years ago Posts: 2 |
|
Re: Rescue System v2 May 13, 2011 02:00PM |
Registered: 13 years ago Posts: 136 |
|
Re: Rescue System v2 May 13, 2011 02:11PM |
Registered: 12 years ago Posts: 2 |
|
Re: Rescue System v2 June 18, 2011 11:46AM |
Registered: 13 years ago Posts: 136 |
fw_setenv rescue_bootcmd 'if test $rescue_installed -eq 1; then run rescue_set_bootargs; nand read.e 0x500000 0x100000 0x400000; bootm 0x500000; else run pogo_bootcmd; fi'
|
ratskcod
Re: Rescue System v2 June 25, 2011 04:36PM |
|
willi
Rescue System v2 DHCP August 17, 2011 05:31PM |
|
Re: Rescue System v2 September 19, 2011 05:14AM |
Registered: 12 years ago Posts: 19 |
rescue:~# xfs_check /bin/xfs_check: line 25: getopts: not found Usage: xfs_check [-fsvV] [-l logdev] [-i ino]... [-b bno]... special rescue:~# xfs_check /dev/sda2 /bin/xfs_check: line 25: getopts: not found xfs_db: can't load library 'libxfs.so.0' rescue:~#
|
Re: Rescue System v2 DHCP February 13, 2012 07:52PM |
Registered: 12 years ago Posts: 4 |
|
maurer
Re: Rescue System v2 March 08, 2012 07:43AM |
./blparam "bootcmd=nand read.e 0x800000 0x100000 0x80000; go 0x800000" flash_eraseall /dev/mtd1 nandwrite /dev/mtd1 openwrt-kirkwood-dockstar-uboot-uImage.bin flash_eraseall /dev/mtd2 nandwrite /dev/mtd2 openwrt-kirkwood-Dockstar-jffs2-128k.img
|
wxtofly
Re: Rescue System v2: Should Optware work w/kernel 2.6.32.18 April 05, 2012 01:01PM |
|
Re: Rescue System v2: Should Optware work w/kernel 2.6.32.18 May 09, 2012 11:17PM |
Registered: 12 years ago Posts: 501 |
Jeff Doozan's
Dockstar/Pogoplug Recovery System
rescue login: root
Password:
rescue:~# uname -a
Linux rescue 3.3.2-kirkwide #1 Wed May 9 20:31:03 CDT 2012 armv5tel GNU/Linux
rescue:~# ping yahoo.com
PING yahoo.com (98.139.183.24): 56 data bytes
64 bytes from 98.139.183.24: seq=0 ttl=55 time=94.938 ms
ntpd: bad address 'pool.ntp.org' run-parts: /etc/network/if-up.d/ntpd exited with code 1 Starting Network Interface Plugging Daemon: eth0. Starting sshd: OK Starting heartbeat LED... /etc/init.d/S99LED: line 22: can't create /sys/class/
|
Rescue V2.1 : correct kernel support for GoFlexNet/Home & Zyxel NSA3x0 May 10, 2012 10:43PM |
Registered: 12 years ago Posts: 501 |
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
|
Re: Rescue V2.1 : correct kernel support for GoFlexNet/Home & Zyxel NSA3x0 May 11, 2012 08:53AM |
Registered: 12 years ago Posts: 2 |
GoFlexNet> tftpboot 0x500000 uImage-mtd1.img
Using egiga0 device
TFTP from server 192.168.1.10; our IP address is 192.168.1.100
Filename 'uImage-mtd1.img'.
Load address: 0x500000
Loading: #################################################################
#################################################################
#################################################################
########################################################
done
Bytes transferred = 3670016 (380000 hex)
GoFlexNet> tftpboot 0xe00000 rootfs-mtd2.img
Using egiga0 device
TFTP from server 192.168.1.10; our IP address is 192.168.1.100
Filename 'rootfs-mtd2.img'.
Load address: 0xe00000
Loading: #################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
################################################################
done
Bytes transferred = 27656192 (1a60000 hex)
GoFlexNet> bootm 0x500000 0xe00000
## Booting kernel from Legacy Image at 00500000 ...
Image Name: Linux-3.3.2-kirkwide
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 3546296 Bytes = 3.4 MiB
Load Address: 00008000
Entry Point: 00008000
Verifying Checksum ... OK
Wrong Ramdisk Image Format
Ramdisk image is corrupt or invalid
|
Re: Rescue V2.1 : correct kernel support for GoFlexNet/Home & Zyxel NSA3x0 May 11, 2012 03:23PM |
Registered: 12 years ago Posts: 501 |
|
Re: Rescue System v2 May 12, 2012 10:41AM |
Registered: 12 years ago Posts: 2 |
|
Re: Rescue System v2 May 12, 2012 10:50AM |
Registered: 12 years ago Posts: 501 |
|
starbuck
Re: Rescue System v2 May 14, 2012 03:14PM |
Quote
you should back up your mtd1 & mtd2 before doing this
|
Re: Rescue System v2 July 27, 2012 06:10PM |
Registered: 11 years ago Posts: 1 |
U-Boot 2011.12 (Feb 12 2012 - 21:33:07)
Seagate FreeAgent DockStar
arm-none-linux-gnueabi-gcc (Sourcery G++ Lite 2009q3-67) 4.4.1
GNU ld (Sourcery G++ Lite 2009q3-67) 2.19.51.20090709
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-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 error: vtbl_check: volume table check failed: record 0, error 9
UBI error: ubi_init: cannot attach mtd1
UBI error: ubi_init: UBI error: cannot initialize UBI, error -22
UBI init error 22
** 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..
NAND read: device 0 offset 0x100000, size 0x400000
NAND read from offset 100000 failed -74
0 bytes read: ERROR
## Booting kernel from Legacy Image at 00800000 ...
Bad Header Checksum
ERROR: can't get kernel image!
### JFFS2 loading 'uboot-original-mtd0.kwb' to 0x800000
Scanning JFFS2 FS: done.
find_inode failed for name=uboot-original-mtd0.kwb
load: Failed to find inode
### JFFS2 LOAD ERROR<0> for uboot-original-mtd0.kwb!
resetting ...
|
Re: Rescue System v2 July 31, 2012 11:22AM |
Registered: 13 years ago Posts: 132 |
|
Re: Rescue System v2 December 02, 2012 03:56PM |
Registered: 11 years ago Posts: 25 |
|
Re: Rescue System v2 March 16, 2013 10:02PM |
Registered: 13 years ago Posts: 406 |
|
Re: Rescue System v2 March 30, 2015 04:26AM |
Registered: 9 years ago Posts: 2 |
|
Re: Rescue System v2 March 30, 2015 04:52AM |
Admin Registered: 13 years ago Posts: 18,591 |
e2fsck /dev/sdb1 sync sync
/boot/uImage
|
Re: Rescue System v2 March 30, 2015 04:58AM |
Admin Registered: 13 years ago Posts: 18,591 |
|
Re: Rescue System v2 March 30, 2015 12:59PM |
Registered: 13 years ago Posts: 264 |
> e2fsck /media/sdb1 > sync > sync >
|
Re: Rescue System v2 March 30, 2015 01:16PM |
Registered: 13 years ago Posts: 406 |