Upgrade older PogoPlug Mobile flash to newer? March 21, 2014 05:05PM |
Registered: 11 years ago Posts: 12 |
Hit any key to stop autoboot: 0 Unknown command 'if' - try 'help' Unknown command 'then' - try 'help' This command can be used only if enaMonExt is set!A version which works is:
U-Boot 1.1.4 (Oct 1 2011 - 12:21:35) Cloud Engines 1.1.2 (3.4.27)A version which doesn't have conditionals is:
U-Boot 1.1.4 (Jul 16 2009 - 21:02:16) Cloud Engines (3.4.16)Could someone tell me the simplest way to make a backup copy of the newer flash and write it to the flash of an older Mobile, either in GNU/Linux or via u-boot using tftp?
Re: Upgrade older PogoPlug Mobile flash to newer? March 21, 2014 05:31PM |
Admin Registered: 13 years ago Posts: 19,192 |
/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… /tmp # ./nanddump -nf usb/mtd1 /dev/mtd1 Block size 131072, page size 2048, OOB size 64 Dumping data starting at 0x00000000 and ending at 0x00300000... /tmp # ./nanddump -nf usb/mtd2 /dev/mtd2 Block size 131072, page size 2048, OOB size 64 Dumping data starting at 0x00000000 and ending at 0x00300000... /tmp # ./nanddump -nf usb/mtd3 /dev/mtd3 Block size 131072, page size 2048, OOB size 64 Dumping data starting at 0x00000000 and ending at 0x00800000... /tmp # ./nanddump -nf usb/mtd4 /dev/mtd4 Block size 131072, page size 2048, OOB size 64 Dumping data starting at 0x00000000 and ending at 0x07000000...
Re: Upgrade older PogoPlug Mobile flash to newer? March 21, 2014 06:17PM |
Registered: 10 years ago Posts: 21 |
Re: Upgrade older PogoPlug Mobile flash to newer? March 21, 2014 09:04PM |
Registered: 11 years ago Posts: 12 |
setenv ipaddr 10.12.26.88 setenv serverip 10.12.26.55 tftp 0x800000 mtd0_r nand erase 0x0 0x8000000 nand write.e 0x800000 0x0 0x200000 tftp 0x800000 mtd1_r nand write.e 0x800000 0x200000 0x300000 tftp 0x800000 mtd2_r nand write.e 0x800000 0x500000 0x300000 tftp 0x800000 mtd3_r nand write.e 0x800000 0x800000 0x800000 tftp 0x800000 mtd4_r nand write.e 0x800000 0x1000000 0x7000000I did the tftp before the erase in case networking wasn't working, of course. I dumped them from within GNU/Linux without the OOB data onto a USB stick (for mtd0 through mtd4):
./nanddump -nf /tmp/.cemnt/mnt_sdb1/mtd0_r /dev/mtd0The only thing that stands out is that I have no idea where the environment variables get stored. Do they get stored in OOB sectors in the flash? I noticed that they got set to some factory default or something like that and I had to reset several in order to boot as I prefer:
setenv init_mmc 'mw f1010004 11113311; mw f1010008 551111' setenv boot_bsd 'run init_mmc; nand read.e 0x800000 0x800000 0x500000; bootm 0x800000' setenv bootcmd 'if ping 192.168.58.254; then run boot_nand; fi; run boot_bsd' setenv ipaddr 192.168.58.233 setenv serverip 192.168.58.188 saveenvebbes: Thank you. I'd love to hear any feedback you have. The serial port issue, by the way, was one of the first things I ran across when I first tried NetBSD, too, but the fix is in the tree, so you can build a kernel from -current and it shouldn't give any problems.
Re: Upgrade older PogoPlug Mobile flash to newer? March 21, 2014 10:21PM |
Admin Registered: 13 years ago Posts: 19,192 |
Re: Upgrade older PogoPlug Mobile flash to newer? March 22, 2014 12:45PM |
Registered: 10 years ago Posts: 21 |
Re: Upgrade older PogoPlug Mobile flash to newer? March 22, 2014 06:50PM |
Registered: 11 years ago Posts: 12 |
Re: Upgrade older PogoPlug Mobile flash to newer? March 22, 2014 06:53PM |
Registered: 11 years ago Posts: 12 |
Re: Upgrade older PogoPlug Mobile flash to newer? March 22, 2014 07:27PM |
Admin Registered: 13 years ago Posts: 19,192 |
Re: Upgrade older PogoPlug Mobile flash to newer? March 24, 2014 08:48AM |
Registered: 12 years ago Posts: 232 |
Re: Upgrade older PogoPlug Mobile flash to newer? March 24, 2014 04:31PM |
Admin Registered: 13 years ago Posts: 19,192 |
Re: Upgrade older PogoPlug Mobile flash to newer? March 25, 2014 09:14AM |
Registered: 12 years ago Posts: 232 |
Re: Upgrade older PogoPlug Mobile flash to newer? March 25, 2014 04:50PM |
Admin Registered: 13 years ago Posts: 19,192 |
Re: Upgrade older PogoPlug Mobile flash to newer? March 26, 2014 12:06PM |
Registered: 12 years ago Posts: 232 |
Re: Upgrade older PogoPlug Mobile flash to newer? March 27, 2014 06:18AM |
Registered: 10 years ago Posts: 21 |
Re: Upgrade older PogoPlug Mobile flash to newer? April 03, 2014 01:45PM |
Registered: 11 years ago Posts: 12 |
Re: Upgrade older PogoPlug Mobile flash to newer? April 05, 2014 03:28PM |
Admin Registered: 13 years ago Posts: 19,192 |