Backup and Restore NAND mtds - Pogoplug V4 original MTD partitions July 24, 2014 06:17PM |
Admin Registered: 13 years ago Posts: 19,094 |
cesvcid=V88XBRRLWPC9WYGQxxxxxxxxx
/tmp # ./nanddump -nf usb/mtd0 /dev/mtd0 Block size 131072, page size 2048, OOB size 64 Dumping data starting at 0x00000000 and ending at 0x00200000...
# fw_printenv mtdparts mtdparts=mtdparts=orion_nand:2M(u-boot),3M(uImage),3M(uImage2),8M(failsafe),112M(root)2. Erase mtd0:
#flash_erase /dev/mtd0 0 16 Erase Total 16 Units Performing Flash Erase of length 131072 at offset 0x1e0000 done3. Write mtd0 backup file back to NAND:
# nandwrite -on /dev/mtd0 mtd0 Writing data to block 0 at offset 0x0 Writing data to block 1 at offset 0x20000 Writing data to block 2 at offset 0x40000 Writing data to block 3 at offset 0x60000 Writing data to block 4 at offset 0x80000 Writing data to block 5 at offset 0xa0000 Writing data to block 6 at offset 0xc0000 Writing data to block 7 at offset 0xe0000 Writing data to block 8 at offset 0x100000 Writing data to block 9 at offset 0x120000 Writing data to block 10 at offset 0x140000 Writing data to block 11 at offset 0x160000 Writing data to block 12 at offset 0x180000 Writing data to block 13 at offset 0x1a0000 Writing data to block 14 at offset 0x1c0000 Writing data to block 15 at offset 0x1e0000
nanddump --noecc --omitoob -l 0x80000 -f mtd0 /dev/mtd0
./kwboot -t -B 115200 /dev/ttyUSB0 -b uboot.2016.05-tld-1.pogo_v4.mtd0.kwb -pExpected output
Sending boot message. Please reboot the target...- Sending boot image... 0 % [......................................................................] <snip> 95 % [......................................................................] 97 % [......................................................................] 99 % [....................................] [Type Ctrl-\ + c to quit] U-Boot 2016.05-tld-1 (Jun 12 2016 - 13:41:47 -0700) Pogoplug V4 SoC: Kirkwood 88F6192_A1 DRAM: 128 MiB WARNING: Caches not enabled NAND: 128 MiB MMC: kwsdio: 0 *** Warning - bad CRC, using default environment In: serial Out: serial Err: serial Net: egiga0 Hit any key to stop autoboot: 0
mtdpartsExpected output
device nand0 <orion_nand>, # parts = 5 #: name size offset mask_flags 0: u-boot 0x00200000 0x00000000 0 1: uImage 0x00300000 0x00200000 0 2: uImage2 0x00300000 0x00500000 0 3: failsafe 0x00800000 0x00800000 0 4: root 0x07000000 0x01000000 0 active partition: nand0,2 - (uImage2) 0x00300000 @ 0x00500000 defaults: mtdids : none mtdparts: none
usb startExpected output
starting USB... USB0: USB EHCI 1.00 scanning bus 0 for devices... 2 USB Device(s) found scanning usb for storage devices... 1 Storage Device(s) found
ext2load usb 0:1 0x800000 /mtd0.pogo_v4Expected output
2097152 bytes read in 1318 ms (1.5 MiB/s)
nand erase 0x0 0x200000Expected output
NAND erase: device 0 offset 0x0, size 0x200000 Erasing at 0x1e0000 -- 100% complete. OK
nand write 0x800000 0x0 0x200000Expected output
NAND write: device 0 offset 0x0, size 0x200000 2097152 bytes written: OK
resetExpected output:
Re: Pogoplug V4 original MTD partitions July 24, 2014 11:40PM |
Registered: 11 years ago Posts: 165 |
Re: Pogoplug V4 original MTD partitions July 25, 2014 02:15AM |
Admin Registered: 13 years ago Posts: 19,094 |
Danilo
Re: Pogoplug V4 original MTD partitions May 13, 2015 10:13AM |
Re: Pogoplug V4 original MTD partitions May 13, 2015 04:19PM |
Admin Registered: 13 years ago Posts: 19,094 |
uname -aor post the entire output of:
dmesg
/usr/sbin/cloudengines/bin/blparam
rlimas
Re: Backup and Restore NAND mtds - Pogoplug V4 original MTD partitions October 04, 2015 02:56PM |
[ 0.960000] Scanning device for bad blocks [ 0.990000] Bad eraseblock 495 at 0x000003de0000 [ 0.990000] Bad eraseblock 496 at 0x000003e00000 [ 1.010000] Bad eraseblock 867 at 0x000006c60000 [ 1.030000] Using static partition definition [ 1.030000] Creating 5 MTD partitions on "nand_mtd": [ 1.040000] 0x000000000000-0x000000200000 : "u-boot" [ 1.040000] 0x000000200000-0x000000500000 : "uImage" [ 1.050000] 0x000000500000-0x000000800000 : "uImage2" [ 1.050000] 0x000000800000-0x000001000000 : "failsafe" [ 1.060000] 0x000001000000-0x000008000000 : "root"
Re: Backup and Restore NAND mtds - Pogoplug V4 original MTD partitions October 04, 2015 04:55PM |
Admin Registered: 13 years ago Posts: 19,094 |
Ryan
Re: Backup and Restore NAND mtds - Pogoplug V4 original MTD partitions October 15, 2015 07:28AM |
Ryan
Re: Backup and Restore NAND mtds - Pogoplug V4 original MTD partitions October 15, 2015 08:21AM |
Re: Backup and Restore NAND mtds - Pogoplug V4 original MTD partitions October 15, 2015 02:55PM |
Admin Registered: 13 years ago Posts: 19,094 |
Quote
mtd4: 07000000 00020000 "root"
Ryan
Re: Backup and Restore NAND mtds - Pogoplug V4 original MTD partitions October 15, 2015 09:37PM |
Re: Backup and Restore NAND mtds - Pogoplug V4 original MTD partitions October 15, 2015 11:32PM |
Admin Registered: 13 years ago Posts: 19,094 |
dmesg
Quote
> flash_erase /dev/mtd0 0 4
Quote
> In this topic :flash_erase /dev/mtd0 0 16
Ryan
Re: Backup and Restore NAND mtds - Pogoplug V4 original MTD partitions October 16, 2015 07:37AM |
Ryan
Re: Backup and Restore NAND mtds - Pogoplug V4 original MTD partitions October 16, 2015 11:02PM |
Re: Backup and Restore NAND mtds - Pogoplug V4 original MTD partitions October 17, 2015 01:07AM |
Admin Registered: 13 years ago Posts: 19,094 |
/usr/local/cloudengines/bin/blparam > current_envs.txt
Ryan
Re: Backup and Restore NAND mtds - Pogoplug V4 original MTD partitions October 17, 2015 08:11AM |
Ryan
Re: Backup and Restore NAND mtds - Pogoplug V4 original MTD partitions October 17, 2015 10:23AM |
Re: Backup and Restore NAND mtds - Pogoplug V4 original MTD partitions October 17, 2015 06:17PM |
Admin Registered: 13 years ago Posts: 19,094 |
Re: Backup and Restore NAND mtds - Pogoplug V4 original MTD partitions October 17, 2015 10:56PM |
Admin Registered: 13 years ago Posts: 19,094 |
Ryan
Re: Backup and Restore NAND mtds - Pogoplug V4 original MTD partitions October 18, 2015 05:56AM |
Re: Backup and Restore NAND mtds - Pogoplug V4 original MTD partitions October 18, 2015 01:24PM |
Admin Registered: 13 years ago Posts: 19,094 |
Ryan
Re: Backup and Restore NAND mtds - Pogoplug V4 original MTD partitions October 18, 2015 09:09PM |
Re: Backup and Restore NAND mtds - Pogoplug V4 original MTD partitions October 18, 2015 11:20PM |
Admin Registered: 13 years ago Posts: 19,094 |
Ryan
Re: Backup and Restore NAND mtds - Pogoplug V4 original MTD partitions October 19, 2015 12:18AM |
Re: Backup and Restore NAND mtds - Pogoplug V4 original MTD partitions October 19, 2015 03:19AM |
Admin Registered: 13 years ago Posts: 19,094 |
Quote
How to restore:
Ryan
Re: Backup and Restore NAND mtds - Pogoplug V4 original MTD partitions October 19, 2015 07:19AM |
Re: Backup and Restore NAND mtds - Pogoplug V4 original MTD partitions October 20, 2015 06:49PM |
Admin Registered: 13 years ago Posts: 19,094 |
Ryan
Re: Backup and Restore NAND mtds - Pogoplug V4 original MTD partitions October 28, 2015 07:56AM |
Re: Backup and Restore NAND mtds - Pogoplug V4 original MTD partitions October 28, 2015 12:23PM |
Admin Registered: 13 years ago Posts: 19,094 |
Ryan
Re: Backup and Restore NAND mtds - Pogoplug V4 original MTD partitions October 28, 2015 08:41PM |