how to use setup_sdcard.sh and the new oemflasher builds

187 views
Skip to first unread message

Stephane Charette

unread,
Nov 3, 2016, 5:22:40 PM11/3/16
to BeagleBoard
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:


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.
================================================================================
Tearing Down script environment
==> Unmounting /tmp
umount: /tmp: target is busy

Anyone know the correct parameters so the new setup_sdcard.sh script creates a BBGW image?

Stéphane

Robert Nelson

unread,
Nov 3, 2016, 5:29:19 PM11/3/16
to Beagle Board, Stephane Charette
On Thu, Nov 3, 2016 at 4:22 PM, Stephane Charette
<stephane...@gmail.com> wrote:
> 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:

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

;)

Regards,


--
Robert Nelson
https://rcn-ee.com/

Stéphane Charette

unread,
Nov 3, 2016, 6:12:54 PM11/3/16
to Robert Nelson, Beagle Board
[...]


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
Reply all
Reply to author
Forward
0 new messages