how to use setup_sdcard.sh and the new oemflasher builds

I’ve read through the posts for the past few weeks, but don’t see this as a topic discussed yet. I downloaded the new oemflasher image I see on rcn-ee.com:

https://rcn-ee.com/rootfs/bb.org/testing/2016-10-31/oemflasher/debian-8.6-oemflasher-armhf-2016-10-31.tar.xz

This is what I tried:

unxz --verbose debian-8.6-oemflasher-armhf-2016-10-31.tar.xz

tar -xf debian-8.6-oemflasher-armhf-2016-10-31.tar

cd debian-8.6-oemflasher-armhf-2016-10-31/

sudo ./setup_sdcard.sh --mmc /dev/sde --bbgw-flasher -dtb bbb-blank-eeprom

Unfortunately, this did not produce a microsd image that works on my BBGW. During the installation, the serial console on my BBGW reported this error:

chroot: failed to run command ‘/usr/bin/bb-wl18xx-wlan0’: No such file or directory
Traceback (last called is first):
_copy_rootfs() in /opt/scripts/tools/eMMC/init-eMMC-flasher-v3-bbgw.sh:98
prepare_drive() in /opt/scripts/tools/eMMC/functions.sh:1034
main() in /opt/scripts/tools/eMMC/init-eMMC-flasher-v3-bbgw.sh:114
The command chroot /tmp/rootfs/ /usr/bin/bb-wl18xx-wlan0 exited with exit code 127.

So, the oemflasher takes a "few" more components:

For example, for Seeed to setup their master microSD to flash a large
number bbgw's they'd run:

wget https://rcn-ee.net/rootfs/bb.org/testing/2016-10-31/oemflasher/debian-8.6-oemflasher-armhf-2016-10-31.tar.xz
tar xf debian-8.6-oemflasher-armhf-2016-10-31.tar.xz
cd ./debian-8.6-oemflasher-armhf-2016-10-31

wget https://rcn-ee.net/rootfs/bb.org/testing/2016-10-20/seeed-gcp-iot/bone-debian-8.6-seeed-gcp-iot-armhf-2016-10-20-4gb.img.xz
unxz bone-debian-8.6-seeed-gcp-iot-armhf-2016-10-20-4gb.img.xz
wget https://rcn-ee.net/rootfs/bb.org/testing/2016-10-20/seeed-gcp-iot/bone-debian-8.6-seeed-gcp-iot-armhf-2016-10-20-4gb.img.xz.job.txt
wget https://raw.githubusercontent.com/RobertCNelson/boot-scripts/master/device/bone/bbgw-eeprom.dump

#eeproms: https://github.com/RobertCNelson/boot-scripts/tree/master/device/bone

sudo ./setup_sdcard.sh --img-8gb master.img \
--dtb beaglebone \
--oem-flasher \
--oem-flasher-script init-eMMC-flasher-from-usb-media-v2-bbgw.sh \
--oem-flasher-img bone-debian-8.6-seeed-gcp-iot-armhf-2016-10-20-4gb.img \
--oem-flasher-eeprom bbgw-eeprom.dump \
--oem-flasher-job
bone-debian-8.6-seeed-gcp-iot-armhf-2016-10-20-4gb.img.xz.job.txt

However for you, just grab:

https://rcn-ee.net/rootfs/bb.org/testing/2016-10-30/seeed-iot/

https://rcn-ee.net/rootfs/bb.org/testing/2016-10-30/seeed-iot/BBGW-blank-debian-8.6-seeed-iot-armhf-2016-10-30-4gb.img.xz

:wink:

Regards,

[...]
However for you, just grab:

https://rcn-ee.net/rootfs/bb.org/testing/2016-10-30/seeed-iot/

https://rcn-ee.net/rootfs/bb.org/testing/2016-10-30/seeed-
iot/BBGW-blank-debian-8.6-seeed-iot-armhf-2016-10-30-4gb.img.xz

Perfect. I had misunderstood the purpose of the flasher image -- I thought
it was the new way to distribute the most recent builds. I'll stick to the
.img.xz images going forward.

Thanks again, Robert.

Stéphane