Skip to content

Commit a4e27c3

Browse files
committed
HBSD: Fetch binary blobs for SMP on RPI3
Signed-off-by: Shawn Webb <shawn.webb@hardenedbsd.org>
1 parent 0e59d6b commit a4e27c3

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

board/RaspberryPi3/setup.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ TARGET_ARCH=aarch64
77
TARGET=aarch64
88
DTB_REPO="https://github.com/raspberrypi/firmware/blob/master/boot/"
99

10+
NEW_UBOOT="https://hardenedbsd.org/~shawn/rpi3/smp"
11+
1012
# Not used - just in case someone wants to use a manual ubldr. Obtained
1113
# from 'printenv' in boot0: kernel_addr_r=0x42000000
1214
#UBLDR_LOADADDR=0x42000000
@@ -42,12 +44,16 @@ raspberry_pi_populate_boot_partition ( ) {
4244
cp ${UBOOT_PATH}/start_x.elf .
4345
cp ${UBOOT_PATH}/u-boot.bin .
4446

47+
# Copy new u-boot for SMP
48+
fetch ${NEW_UBOOT}/u-boot.bin
49+
fetch ${NEW_UBOOT}/armstub8.bin
50+
4551
# Populate config.txt
4652
echo "arm_control=0x200" > config.txt
4753
echo "dtparam=audio=on,i2c_arm=on,spi=on" >> config.txt
4854
echo "dtoverlay=mmc" >> config.txt
4955
echo "dtoverlay=pi3-disable-bt" >> config.txt
50-
echo "device_tree_address=0x100" >> config.txt
56+
echo "device_tree_address=0x4000" >> config.txt
5157
echo "kernel=u-boot.bin" >> config.txt
5258

5359
# Fetch the dtb

0 commit comments

Comments
 (0)