-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
balena-image-flasher: Added beagleplay support.
Updated the balena-image-flasher and associated dependent recipes to support building a balena-image-flasher image for the beagleplay device. Changelog-entry: Add beagleplay support Signed-off-by: Sidd Gupta <[email protected]>
- Loading branch information
1 parent
b0560b8
commit 7df302a
Showing
4 changed files
with
40 additions
and
1 deletion.
There are no files selected for viewing
2 changes: 2 additions & 0 deletions
2
layers/meta-balena-beaglebone/recipes-core/images/balena-image-flasher.bbappend
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
include balena-image.inc | ||
|
||
BALENA_BOOT_PARTITION_FILES:append:beaglebone = " uEnv.txt_internal:" | ||
|
||
IMAGE_INSTALL:append:beaglebone = " bb-org-overlays" | ||
IMAGE_INSTALL:append:beaglebone-ai64 = " mmc-utils vxd-dec-fw" | ||
IMAGE_INSTALL:append:beagleplay = " mmc-utils" |
31 changes: 31 additions & 0 deletions
31
...lena-beaglebone/recipes-support/hostapp-update-hooks/files/99-flash-bootloader-beagleplay
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#!/bin/sh | ||
|
||
# | ||
# Script used by hostapps updater to flash bootloader onto internal media. | ||
# | ||
|
||
set -o errexit | ||
|
||
# The following lines of code are copied from | ||
# https://openbeagle.org/beagleboard/repos-arm64/-/blob/main/bb-u-boot-beagleplay-debian-12/suite/bookworm/debian/install-emmc.sh?ref_type=heads | ||
|
||
if [ -b /dev/mmcblk0 ] ; then | ||
#mmc extcsd read /dev/mmcblk0 | ||
mmc bootpart enable 1 2 /dev/mmcblk0 | ||
mmc bootbus set single_backward x1 x8 /dev/mmcblk0 | ||
mmc hwreset enable /dev/mmcblk0 | true | ||
|
||
echo "Clearing eMMC boot0" | ||
|
||
echo '0' >> /sys/class/block/mmcblk0boot0/force_ro | ||
|
||
echo "dd if=/dev/zero of=/dev/mmcblk0boot0 count=32 bs=128k" | ||
dd if=/dev/zero of=/dev/mmcblk0boot0 count=32 bs=128k | ||
|
||
echo "dd if=/resin-boot/tiboot3.bin of=/dev/mmcblk0boot0 bs=128k" | ||
dd if=/resin-boot/tiboot3.bin of=/dev/mmcblk0boot0 bs=128k | ||
fi | ||
|
||
sync | ||
|
||
echo 1 > /sys/block/mmcblk0boot0/force_ro |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters