Now for restore my Pogoplug i have four files
http://ppl.ug/zLDCi49oaTo/stage1.wrapped 7 kbt
u-boot.wrapped 109 kbt
uImage 2,2 kbt
rootfs.bin 116 736 kbt
Script for run flash
$this->bbcode_second_pass_code('', '
#!/bin/sh
echo 255 > /sys/class/leds/status\:health\:green/brightness
echo "Erase the mtd"
flash_eraseall /dev/mtd0
sleep 1
echo "Flash the stage1"
flash_erase /dev/mtd1 0x00 2
nandbd -s /file/original/stage1.wrapped /dev/mtd1
sleep 1
echo "Flash the u-boot"
flash_erase /dev/mtd1 0x40000 3
nandwrite -p -s 0x40000 /dev/mtd1 /file/original/u-boot.wrapped
flash_erase /dev/mtd1 0x100000 3
nandwrite -p -s 0x100000 /dev/mtd1 /file/original/u-boot.wrapped
sleep 1
echo "Flash the uImage"
flash_erase /dev/mtd1 0x200000 24
nandwrite -p -s 0x200000 /dev/mtd1 /file/original/uImage
flash_erase /dev/mtd1 0x800000 24
nandwrite -p -s 0x800000 /dev/mtd1 /file/original/uImage
sleep 1
echo "Flash the rootfs"
flash_erase /dev/mtd2 0 0
nandwrite -p -s 0xe00000 /dev/mtd2 /file/original/rootfs.bin
sleep 1
echo 0 > /sys/class/leds/status\:health\:green/brightness
echo 255 > /sys/class/leds/status\:fault\:orange/brightness
echo "Waiting..."
sleep 1
echo ".№лјЧряѕкўпбмЙ±оЈ¬гКЅ«POGOµГтґ№ь±уЈ¬SATAсІелсКPOGOжВ°Е¶оїЄЈ¬жьпбїЄ»ЗјґїиїЄйјпбµдбціл..."
echo "...пбоµміµд№эюМIPнЄб·сифВ·жеДЈ¬гКµЅб·сифВDHCPап±МІИур..."')
I see partitions NAND
$this->bbcode_second_pass_code('', '[ 8.080000] ONFI flash detected
[ 8.090000] NAND device: Manufacturer ID: 0xad, Chip ID: 0xf1 (Hynix NAND 128 MiB 3,3V 8-bit)
[ 8.100000] Scanning device for bad blocks
[ 8.250000] Creating 9 MTD partitions on "NAND 128MiB 3,3V 8-bit":
[ 8.250000] 0x000000000000-0x000000040000 : "stage1"
[ 8.260000] 0x000000040000-0x0000001a0000 : "u-boot"
[ 8.270000] 0x0000001a0000-0x0000001e0000 : "u-boot-env"
[ 8.280000] 0x000000000000-0x000002000000 : "boot"
[ 8.280000] 0x0000001e0000-0x000000200000 : "factory"
[ 8.290000] 0x000000200000-0x000000c00000 : "kernel"
[ 8.300000] 0x000000e00000-0x000008000000 : "rootfs"
[ 8.310000] split_squashfs: no squashfs found in "NAND 128MiB 3,3V 8-bit"
[ 8.310000] 0x000000200000-0x000008000000 : "firmware"
[ 8.320000] 0x000000000000-0x000008000000 : "fullflash"
[ 8.330000] UBI: attaching mtd6 to ubi0
[ 8.340000] UBI: physical eraseblock size: 131072 bytes (128 KiB)
[ 8.340000] UBI: logical eraseblock size: 129024 bytes
[ 8.350000] UBI: smallest flash I/O unit: 2048
[ 8.350000] UBI: sub-page size: 512
[ 8.360000] UBI: VID header offset: 512 (aligned 512)
[ 8.360000] UBI: data offset: 2048
[ 8.550000] ata1: SATA link down (SStatus 0 SControl 300)
[ 8.760000] UBI: max. sequence number: 758
[ 8.790000] UBI: attached mtd6 to ubi0
[ 8.800000] UBI: MTD device name: "rootfs"
[ 8.800000] UBI: MTD device size: 114 MiB')
For rootfs have 114 mbt, but need 116
When i run from HDD with ArchiLinux have another partition
$this->bbcode_second_pass_code('', '
[ 1.940000] Creating 3 MTD partitions on "NAND 128MiB 3,3V 8-bit":
[ 1.940000] 0x000000000000-0x000008000000 : "NAND 128MiB 3,3V 8-bit"
[ 1.950000] 0x000000000000-0x000000e00000 : "boot"
[ 1.960000] 0x000000e00000-0x000008000000 : "rootfs"
[ 1.970000] mtd: partition "rootfs" set to be root filesystem
[ 1.970000] split_squashfs: no squashfs found in "NAND 128MiB 3,3V 8-bit"')
What daelt? How to repartition NAND ?