Preparing debian and create flasher SD card

168 views
Skip to first unread message

Dries Steenhouwer

unread,
Nov 30, 2016, 8:11:57 AM11/30/16
to BeagleBoard
Hi,

I used the file BBB-eMMC-flasher-debian-7.5-2014-05-14-2gb.img.xz to flash my beaglebone black with debian 7.5.
Everything went fine but now the idea is that I will make changes to this debian and after create a flasher image from it to copy it to my other boards.
I tested it already in the past but didn't work. This is what I tried now to start from scratch but it did not work:

1. flash the BBB-eMMC-flasher-debian-7.5-2014-05-14-2gb.img.xz to the beaglebone
2. Reboot the beaglebone without SD card
3. Debian is booted and I put an empty SD card back
4. I went to the folder /opt/scripts/tools/eMMC and did a git pull
5. launched beaglebone-black-make-microSD-flasher-from-eMMC.sh

Here it went wrong, this is the output of the command:

----------------------------------------
==> Erasing: /dev/mmcblk1
----------------------------------------
108+0 records in
108+0 records out
113246208 bytes (113 MB) copied, 8.81422 s, 12.8 MB/s
----------------------------------------
108+0 records in
108+0 records out
113246208 bytes (113 MB) copied, 6.61329 s, 17.1 MB/s
----------------------------------------
==> Erasing: /dev/mmcblk1 complete
----------------------------------------

!==> Could not find /boot/SOC.sh, no defaults are loaded

----------------------------------------

================================================================================
Writing bootloader to [/dev/mmcblk1]
----------------------------------------
==> Figuring out options for SPL U-Boot copy ...
===> Will use :
==> Figuring out options for U-Boot copy ...
===> Will use :
==> Copying SPL U-Boot with dd if= of=/dev/mmcblk1
------------------------------------------------------------
dd: opening `': No such file or directory
Traceback (last called is first):
     _dd_bootloader() in ./functions.sh:717
     prepare_drive_reverse() in ./functions.sh:1354
     main() in ./beaglebone-black-make-microSD-flasher-from-eMMC.sh:42
The command dd if=${dd_spl_uboot_backup} of=${destination} ${dd_spl_uboot} exited with exit code 1.
================================================================================
Tearing Down script environment
==> Unmounting /tmp
umount: /tmp: not mounted
==> Unmounting /boot
umount: /boot: not mounted
==> Stopping Cylon LEDs ...
==> Setting LEDs to
==> Force writeback of eMMC buffers by Syncing: /dev/mmcblk1
./functions.sh: line 204:  5973 Terminated              cylon_leds
----------------------------------------
100000+0 records in
100000+0 records out
51200000 bytes (51 MB) copied, 2.55928 s, 20.0 MB/s
----------------------------------------
===> Syncing: /dev/mmcblk1 complete
==> This script took 44 seconds to run
================================================================================
==> Setting LEDs to

What am I doing wrong, I see that  /boot/ is almost empty and the desired files are in /boot/uboot/. Do I need to copy them over to /boot/ ?

Thanks for your help!

Kind regards,
Dries
 

Robert Nelson

unread,
Nov 30, 2016, 9:52:02 AM11/30/16
to Beagle Board, steenhou...@gmail.com
Hi Dries,

On Wed, Nov 30, 2016 at 7:11 AM, Dries Steenhouwer
<steenhou...@gmail.com> wrote:
> Hi,
>
> I used the file BBB-eMMC-flasher-debian-7.5-2014-05-14-2gb.img.xz to flash
> my beaglebone black with debian 7.5.
> Everything went fine but now the idea is that I will make changes to this
> debian and after create a flasher image from it to copy it to my other
> boards.
> I tested it already in the past but didn't work. This is what I tried now to
> start from scratch but it did not work:
>
> 1. flash the BBB-eMMC-flasher-debian-7.5-2014-05-14-2gb.img.xz to the
> beaglebone
> 2. Reboot the beaglebone without SD card
> 3. Debian is booted and I put an empty SD card back
> 4. I went to the folder /opt/scripts/tools/eMMC and did a git pull
> 5. launched beaglebone-black-make-microSD-flasher-from-eMMC.sh

This is another regression since the flasher-library rewrite..

checkout out:

d9ac2858e78ef16cd86b5b3610f861ad880b3c00

of /opt/scripts/

should get it working again.

I'll start working on it by flashing 7.5-2014-05-14..

Regards,

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

Robert Nelson

unread,
Nov 30, 2016, 2:35:39 PM11/30/16
to Beagle Board, Dries Steenhouwer
Okay, this should be fixed on git head now..

You'll have to hold the boot button down on startup when flashing a new board..
Reply all
Reply to author
Forward
0 new messages