Bootstrapping the PocketBeagle with a 2GB SD card

Hi all,

Just having a crack at getting the PocketBeagle going. If I plug it in
to USB with no SD card attached, I see the blue power LED come on, and
the following kernel messages:

Dec 22 19:59:53 localhost kernel: [1568370.371239] usb 2-1.6: new full-speed USB device number 4 using ehci-pci
Dec 22 19:59:53 localhost kernel: [1568370.449682] usb 2-1.6: not running at top speed; connect to a high speed hub
Dec 22 19:59:53 localhost kernel: [1568370.450552] usb 2-1.6: New USB device found, idVendor=0451, idProduct=6141
Dec 22 19:59:53 localhost kernel: [1568370.450554] usb 2-1.6: New USB device strings: Mfr=33, Product=37, SerialNumber=0
Dec 22 19:59:53 localhost kernel: [1568370.450555] usb 2-1.6: Product: AM335x USB
Dec 22 19:59:53 localhost kernel: [1568370.450556] usb 2-1.6: Manufacturer: Texas Instruments
Dec 22 19:59:53 localhost kernel: [1568370.895843] EXT4-fs (sda7): re-mounted. Opts: data=ordered,commit=600
Dec 22 19:59:55 localhost kernel: [1568372.754859] usbcore: registered new interface driver cdc_ether
Dec 22 19:59:55 localhost kernel: [1568372.797082] rndis_host 2-1.6:1.0 usb0: register 'rndis_host' at usb-0000:00:1d.0-1.6, RNDIS d
evice, aa:b6:7d:f9:4a:34
Dec 22 19:59:55 localhost kernel: [1568372.797118] usbcore: registered new interface driver rndis_host
Dec 22 19:59:55 localhost kernel: [1568372.799387] usbcore: registered new interface driver rndis_wlan
Dec 22 19:59:55 localhost kernel: [1568373.040159] EXT4-fs (sda7): re-mounted. Opts: data=ordered,commit=600
Dec 22 19:59:57 localhost kernel: [1568375.196263] EXT4-fs (sda7): re-mounted. Opts: data=ordered,commit=600
Dec 22 19:59:59 localhost kernel: [1568377.148978] rndis_host 2-1.6:1.0 enp0s29u1u6: renamed from usb0
Dec 22 19:59:59 localhost kernel: [1568377.164979] IPv6: ADDRCONF(NETDEV_UP): enp0s29u1u6: link is not ready
Dec 22 20:00:00 localhost kernel: [1568377.285143] usb 2-1.6: reset full-speed USB device number 4 using ehci-pci
Dec 22 20:00:00 localhost kernel: [1568377.349148] usb 2-1.6: device descriptor read/64, error 16
Dec 22 20:00:00 localhost kernel: [1568377.519163] usb 2-1.6: device descriptor read/64, error 16
Dec 22 20:00:00 localhost kernel: [1568377.687143] usb 2-1.6: reset full-speed USB device number 4 using ehci-pci
Dec 22 20:00:00 localhost kernel: [1568377.751149] usb 2-1.6: device descriptor read/64, error 16
Dec 22 20:00:00 localhost kernel: [1568377.919173] usb 2-1.6: device descriptor read/64, error 16
Dec 22 20:00:00 localhost kernel: [1568378.087166] usb 2-1.6: reset full-speed USB device number 4 using ehci-pci
Dec 22 20:00:00 localhost kernel: [1568378.101994] usb 2-1.6: device descriptor read/8, error -32
Dec 22 20:00:00 localhost kernel: [1568378.219996] usb 2-1.6: device descriptor read/8, error -32
Dec 22 20:00:01 localhost kernel: [1568378.391142] usb 2-1.6: reset full-speed USB device number 4 using ehci-pci
Dec 22 20:00:01 localhost kernel: [1568378.405991] usb 2-1.6: device descriptor read/8, error -32
Dec 22 20:00:01 localhost kernel: [1568378.523994] usb 2-1.6: device descriptor read/8, error -32
Dec 22 20:00:01 localhost kernel: [1568378.631770] usb 2-1.6: USB disconnect, device number 4
Dec 22 20:00:01 localhost kernel: [1568378.631805] rndis_host 2-1.6:1.0 enp0s29u1u6: unregister 'rndis_host' usb-0000:00:1d.0-1.6, RNDIS device
Dec 22 20:00:01 localhost kernel: [1568378.701123] usb 2-1.6: new full-speed USB device number 5 using ehci-pci
Dec 22 20:00:01 localhost kernel: [1568378.765118] usb 2-1.6: device descriptor read/64, error 16
Dec 22 20:00:01 localhost kernel: [1568378.935119] usb 2-1.6: device descriptor read/64, error 16
Dec 22 20:00:01 localhost kernel: [1568379.105124] usb 2-1.6: new full-speed USB device number 6 using ehci-pci
Dec 22 20:00:01 localhost kernel: [1568379.169115] usb 2-1.6: device descriptor read/64, error 16
Dec 22 20:00:02 localhost kernel: [1568379.335119] usb 2-1.6: device descriptor read/64, error 16
Dec 22 20:00:02 localhost kernel: [1568379.503115] usb 2-1.6: new full-speed USB device number 7 using ehci-pci
Dec 22 20:00:02 localhost kernel: [1568379.517977] usb 2-1.6: device descriptor read/8, error -32
Dec 22 20:00:02 localhost kernel: [1568379.635996] usb 2-1.6: device descriptor read/8, error -32
Dec 22 20:00:02 localhost kernel: [1568379.807109] usb 2-1.6: new full-speed USB device number 8 using ehci-pci
Dec 22 20:00:02 localhost kernel: [1568379.822008] usb 2-1.6: device descriptor read/8, error -32
Dec 22 20:00:02 localhost kernel: [1568379.939976] usb 2-1.6: device descriptor read/8, error -32
Dec 22 20:00:02 localhost kernel: [1568380.048232] usb 2-1-port6: unable to enumerate USB device

That to me, suggests *something* is alive. I grabbed a 16GB microSD
card, only to find it was a dud. The ones I have spare are 2GB ones.

Okay, fine, I loop-mounted bone-debian-9.2-iot-armhf-2017-10-10-4gb.img
and had a look at /dev/loop0p1. Sure enough, there's a little over 2GB
spare, so in theory, I should be able to shrink that partition down and
make it fit.

On the image, under /opt/backup/uboot, I found what looked to be the
images needed for the U-Boot bootloader… and over at
https://eewiki.net/display/linuxonarm/PocketBeagle#PocketBeagle-Bootloader:U-Boot
… some notes on how the SD card images are constructed.

Despite carefully preparing the SD card and rsync-ing the root
filesystem across, it seems I get no life out of the PocketBeagle. I
grabbed my 3v3 USB FTDI serial cable out and hooked the RX and 0V wires
to the U0 TX and GND pins on the PocketBeagle and power cycled it. No life.

Has anyone managed to bootstrap one of these with an image of this size?
Unfortunately most shops are winding down for Christmas, and so buying
a new card really isn't an option just now. I'd like to get an image on
there to prove the board fundamentally "works" before I get to setting
things up proper.

Never mind, in amongst the junk pile was a dud camera-cum-bicycle-tail
light that had a 8GB MicroSD card lurking inside.

So I now have my PocketBeagle booted and rooted. Next stop, a visit to
the soldering iron.