Hello,
I have a question about the use of setup_sdcard.sh when producing 1GB
images on the local filesystem and sourcing pre-built bootloader files for
this image.
When used in a fashion such as this:
setup_sdcard.sh --dtb beaglebone --boot_label BEAGLEBONE --rootfs_label
THIS_LABEL --bbb-flasher --img-1gb omap-minimal-armhf.img --spl custom_MLO
--bootloader custom_u-boot-am335x_evm.img
we get an error when dd is called about here:
+ case "${bootloader_location}" in
+ echo 'Using dd to place bootloader on drive'
Using dd to place bootloader on drive
+ echo -----------------------------
-----------------------------
+ '[' x = xenable ']'
+ '[' x = xenable ']'
+ dd_spl_uboot_boot
+ unset dd_spl_uboot
+ '[' '!' x2 = x ']'
+ dd_spl_uboot='count=2 '
+ '[' '!' x1 = x ']'
+ dd_spl_uboot='count=2 seek=1 '
+ '[' xenable = xenable ']'
+ dd_spl_uboot='count=2 seek=1 conv=notrunc '
+ '[' '!' x128k = x ']'
+ dd_spl_uboot='count=2 seek=1 conv=notrunc bs=128k'
+ '[' xenable = xenable ']'
+ spl_uboot_blob=
+ echo 'MLO: dd if= of=omap-minimal-armhf.img count=2 seek=1 conv=notrunc
bs=128k'
MLO: dd if= of=omap-minimal-armhf.img count=2 seek=1 conv=notrunc bs=128k
+ echo -----------------------------
-----------------------------
+ dd if=/tmp/tmp.DLk52EpElz/dl/ of=omap-minimal-armhf.img count=2 seek=1
conv=notrunc bs=128k
dd: error reading '/tmp/tmp.DLk52EpElz/dl/': Is a directory
0+0 records in
0+0 records out
0 bytes copied, 0.000236716 s, 0.0 kB/s
So in order for this to work as instantiated above and have the variables
populated for dd at this point, I have to make these modifications to the
script:
diff --git a/omap-image-builder/tools/setup_sdcard.sh
b/omap-image-builder/tools/setup_sdcard.sh
index a86e700e..80355850 100755
--- a/omap-image-builder/tools/setup_sdcard.sh
+++ b/omap-image-builder/tools/setup_sdcard.sh
@@ -1936,11 +1936,15 @@ while [ ! -z "$1" ] ; do
--spl)
checkparm $2
LOCAL_SPL="$2"
+ SPL="${LOCAL_SPL##*/}"
+ blank_SPL="${SPL}"
USE_LOCAL_BOOT=1
;;
--bootloader)
checkparm $2
LOCAL_BOOTLOADER="$2"
+ UBOOT="${LOCAL_BOOTLOADER##*/}"
+ blank_UBOOT="${UBOOT}"
USE_LOCAL_BOOT=1
;;
--use-beta-bootloader)
--
2.17.1
Should I be using this script differently in order to source external
pre-built bootloader files? Perhaps this is a not-so-common use case?
Thanks,
Art
--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/beagleboard/63d876c3-0bfb-46b9-b6d0-4eb16168ddac%40googlegroups.com.