Pogoplug Mobile - Booting default Pogoplug OS in NAND July 16, 2014 01:11PM |
Registered: 11 years ago Posts: 165 |
Quote
The installer saves a copy of the pogoplug uboot image to the root directory of the pogoplug environment (mtd2). When the new uBoot runs, it tries to boot from the USB devices, but if they're not found or unbootable, it will load the old uBoot image and let that run to boot into the original Pogoplug installation.
pogo_bootcmd=if fsload uboot-original-mtd0.kwb; then go 0x800200; fi
nanddump --noecc --omitoob -l 0x80000 -f /uboot-original-mtd0_2.kwb /dev/mtd0
# dump the first 512k of mtd0 to /tmp $NANDDUMP --noecc --omitoob -l 0x80000 -f /tmp/uboot-mtd0-dump /dev/mtd0
Re: Pogoplug Mobile - Booting default Pogoplug OS in NAND July 16, 2014 02:21PM |
Admin Registered: 13 years ago Posts: 19,225 |
Re: Pogoplug Mobile - Booting default Pogoplug OS in NAND July 16, 2014 05:39PM |
Registered: 11 years ago Posts: 165 |
Re: Pogoplug Mobile - Booting default Pogoplug OS in NAND July 16, 2014 07:15PM |
Admin Registered: 13 years ago Posts: 19,225 |
Quote
The problem with trying to load and run stock u-boot from a much newer u-boot (ie. davygravy's image) in NAND is most likely it won't work or works inconsistently. The binaries are too different in structure.
Re: Pogoplug Mobile - Booting default Pogoplug OS in NAND July 16, 2014 09:10PM |
Registered: 11 years ago Posts: 165 |
Preacher
Re: Pogoplug Mobile - Booting default Pogoplug OS in NAND October 24, 2016 06:24PM |
/tmp/fw_setenv bootcmd_pogo 'if ubi part root 2048 && ubifsmount ubi:rootfs && ubifsload 0x800000 uboot.mtd0.dockstar.original.kwb ; then go 0x800200; fi'which works for Pofo v4 and mobile but is not found by uboot
pogo_bootcmd=if fsload uboot-original-mtd0.kwb; then go 0x800200; fiproduces nc output:
U-Boot 2016.05-tld-1 (Jun 12 2016 - 13:23:43 -0700) Pogo E02 gcc (Debian 4.9.2-10) 4.9.2 GNU ld (GNU Binutils for Debian) 2.25 Hit any key to stop autoboot: 0 starting USB... USB0: USB EHCI 1.00 scanning bus 0 for devices... 2 USB Device(s) found scanning usb for storage devices... 0 Storage Device(s) found Unknown command 'ide' - try 'help' Unknown command 'mmc' - try 'help' no USB devices available Unknown command 'ide' - try 'help' Unknown command 'mmc' - try 'help' running scan_disk ... Scan device usb device usb 0:1 ** Bad device usb 0 ** device usb 1:1 ** Bad device usb 1 ** device usb 2:1 ** Bad device usb 2 ** device usb 3:1 ** Bad device usb 3 ** Scan device ide Unknown command 'ide' - try 'help' device ide 0:1 ** Bad device ide 0 ** device ide 1:1 ** Bad device ide 1 ** device ide 2:1 ** Bad device ide 2 ** device ide 3:1 ** Bad device ide 3 ** Scan device mmc Unknown command 'mmc' - try 'help' device mmc 0:1 ** Bad device mmc 0 ** device mmc 1:1 ** Bad device mmc 1 ** device mmc 2:1 ** Bad device mmc 2 ** device mmc 3:1 ** Bad device mmc 3 ** loading uImage ... ** Bad device usb 0 ** loading uInitrd ... ** Bad device usb 0 ** loading DTB ... ** Bad device usb 0 ** Wrong Image Format for bootm command 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! ## Starting application at 0x00800200 ...LED keeps blinking orange and unit doesn't boot. So I'm stuck at this point, don't know what I did wrong. Do I need another kwb?
Re: Pogoplug Mobile - Booting default Pogoplug OS in NAND October 24, 2016 06:59PM |
Admin Registered: 13 years ago Posts: 19,225 |
Preacher
Re: Pogoplug Mobile - Booting default Pogoplug OS in NAND October 25, 2016 04:52AM |
Re: Pogoplug Mobile - Booting default Pogoplug OS in NAND October 25, 2016 01:54PM |
Admin Registered: 13 years ago Posts: 19,225 |
dmesg | grep -i bad
Preacher
Re: Pogoplug Mobile - Booting default Pogoplug OS in NAND October 26, 2016 05:41PM |
Re: Pogoplug Mobile - Booting default Pogoplug OS in NAND October 26, 2016 06:11PM |
Admin Registered: 13 years ago Posts: 19,225 |
Preacher
Re: Pogoplug Mobile - Booting default Pogoplug OS in NAND November 01, 2016 05:11PM |
Re: Pogoplug Mobile - Booting default Pogoplug OS in NAND November 01, 2016 08:43PM |
Admin Registered: 13 years ago Posts: 19,225 |
lsblk
Preacher
Re: Pogoplug Mobile - Booting default Pogoplug OS in NAND November 01, 2016 09:22PM |
root@DebiPlug:~# lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 1 3,8G 0 disk └─sda1 8:1 1 3,8G 0 part / root@DebiPlug:~# uname -a Linux DebiPlug 3.18.5-kirkwood-tld-1 #1 PREEMPT Thu Feb 5 17:58:07 PST 2015 armv5tel GNU/Linux mtd-utils is already the newest version (1:1.5.2-1).
Re: Pogoplug Mobile - Booting default Pogoplug OS in NAND November 02, 2016 12:50AM |
Admin Registered: 13 years ago Posts: 19,225 |
cat /proc/cmdline fw_printenv
modprobe mtdblockBTW, kernel 3.18.5 is a little bit old. So mtdblock was a module, unlike the latest kernel it is built into the kernel.
Preacher
Re: Pogoplug Mobile - Booting default Pogoplug OS in NAND November 02, 2016 08:18AM |
Re: Pogoplug Mobile - Booting default Pogoplug OS in NAND November 02, 2016 03:35PM |
Admin Registered: 13 years ago Posts: 19,225 |