Welcome! Log In Create A New Profile

Advanced

Simple way to boot SD card on PogoPlug Mobile?

Posted by johnklos 
Simple way to boot SD card on PogoPlug Mobile?
December 22, 2013 02:52PM
Hi,

After going around in loops many times trying to find u-boot images I can test via tftp (since picocom doesn't ever download anything), I'd like to ask for help. Neither of these will work on a PogoPlug Mobile using tftp:

uboot.nandpogoV4-MMC-mtdparts-noSATA.kwb
uboot.uartpogoMobile-MMC-mtdparts-NoUSB.kwb

I'm not going to write anything to flash until I see something that works, particularly since the most common thread about SD booting says, in bold, " Don't use on a Pogoplug Mobile".

ALARM from Arch doesn't boot from SD, either, so that was a dead end.

Does anyone know where I can get a u-boot image that definitely works with the PogoPlug Mobile and can boot off of SD?

Thanks,
John Klos
Re: Simple way to boot SD card on PogoPlug Mobile?
December 22, 2013 03:11PM
Re: Simple way to boot SD card on PogoPlug Mobile?
December 24, 2013 02:08PM
For now I did this:
tftp 0x800000 netbsd.ub
nand erase 0x7800000 0x800000
nand write.e 0x800000 0x7800000 0x800000
bootcmd='nand read.e 0x800000 0x7800000 0x800000; bootm 0x800000'
saveenv
That works to get an auto-booting system now, but makes updating the kernel in the future a pain (we don't have a proper NAND driver in NetBSD yet). I have three more PogoPlug Mobiles coming in the mail, so I'll try what you suggest on one of them.

Thanks!
Re: Simple way to boot SD card on PogoPlug Mobile?
December 28, 2013 05:51PM
Hi, bohdi,

I tried following the directions in that thread. However, it simply hangs on boot, whether from MMC, USB, tftp, manually or automatically. Precisely the same boot sequence on an original PogoPlug Mobile worked just fine (setenv ipaddr 10.8.16.11; setenv server ip 10.8.16.1; tftp 0x800000 netbsd.ub; bootm 0x800000).
(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... 1 Storage Device(s) found
Loading file "/rescueme" from usb device 0:1 (usbda1)
** File not found /rescueme
reading /rescueme.txt

** Unable to read "/rescueme.txt" from usb 0:1 **
incorrect device type in data
Partition data not found!
Loading file "/boot/uImage" from usb device 0:1 (usbda1)
1 bytes read
Found bootable drive on usb 0:1
Loading file "/boot/uImage" from usb device 0:1 (usbda1)
4846400 bytes read
Loading file "/boot/uInitrd" from usb device 0:1 (usbda1)
** File not found /boot/uInitrd
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   NetBSD/sheevaplug 6.99.28
   Image Type:   ARM NetBSD Kernel Image (uncompressed)
   Data Size:    4846336 Bytes = 4.6 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK
## Transferring control to NetBSD stage-2 loader (at address 00008000) ...
(I renamed the NetBSD kernel to /boot/uImage)

Not sure what to do from here, but I'm wondering whether there's an 8 meg area in NAND I can use that will leave the Pogo GNU/Linux filesystem intact. The directions above mention an mtd section referred to as 8M(failsafe). Is this part of the original Pogo GNU/Linux, or part of the new map after all the changes?

Also, how does one use this u-boot to boot the Pogo GNU/Linux?

Thanks!
Re: Simple way to boot SD card on PogoPlug Mobile?
January 04, 2014 03:50AM
johnklos,

The mtd parts are the same as stock Pogo OS. So the only change is mtd0 where uBoot is. This is so that if you want to restore to stock, only mtd0 is needed to be restored. And the new uBoot should boot stock Pogo OS with correct uBoot envs.

Not sure what can you do since I'm not familiar with NetBSD. To verify that the new uBoot works OK, you can use this rootfs on a USB or Sd card to boot Debian:
http://forum.doozan.com/read.php?2,12096

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: