-# $OpenBSD: Makefile,v 1.1 2021/04/10 21:02:36 deraadt Exp $
+# $OpenBSD: Makefile,v 1.2 2021/04/17 21:19:41 sthen Exp $
FS= install${OSrev}.img
FSSIZE= 1032192
XBASE= ${RELXDIR}/xbase${OSrev}.tgz ${RELXDIR}/xfont${OSrev}.tgz \
${RELXDIR}/xshare${OSrev}.tgz ${RELXDIR}/xserv${OSrev}.tgz
+# this offset is required by Rockchip
MSDOSSTART= 32768
-MSDOSSIZE= 8192
+MSDOSSIZE= 16384
FFSSTART!= expr ${MSDOSSTART} + ${MSDOSSIZE}
NEWFS_ARGS_msdos=-L boot -c1 -F16
PIFILES=\
bootcode.bin \
start.elf \
+ start4.elf \
fixup.dat \
+ fixup4.dat \
+ bcm2710-rpi-2-b.dtb \
bcm2710-rpi-3-b.dtb \
bcm2710-rpi-3-b-plus.dtb \
- bcm2710-rpi-cm3.dtb
+ bcm2710-rpi-cm3.dtb \
+ bcm2711-rpi-4-b.dtb \
+ bcm2711-rpi-400.dtb \
+ bcm2711-rpi-cm4.dtb
PIDTBO=\
disable-bt.dtbo
.for FILE in ${PIDTBO}
cp ${PRPI}/overlays/${FILE} ${MOUNT_POINT}/overlays/
.endfor
- cp ${PUBOOT}/rpi_3/u-boot.bin ${MOUNT_POINT}/
+ cp ${PUBOOT}/rpi_arm64/u-boot.bin ${MOUNT_POINT}/u-boot.bin
mkdir -p ${MOUNT_POINT}/efi/boot
cp /usr/mdec/BOOTAA64.EFI ${MOUNT_POINT}/efi/boot/bootaa64.efi
echo bootaa64.efi > ${MOUNT_POINT}/efi/boot/startup.nsh
-# $OpenBSD: Makefile,v 1.21 2021/02/15 07:06:03 semarie Exp $
+# $OpenBSD: Makefile,v 1.22 2021/04/17 21:19:40 sthen Exp $
FS= miniroot${OSrev}.img
-FSSIZE= 67584
-FSDISKTYPE= miniroot
+FSSIZE= 88064
MOUNT_POINT= /mnt
MTREE= ${UTILS}/mtree.conf
RAMDISK= RAMDISK
+# this offset is required by Rockchip
MSDOSSTART= 32768
-MSDOSSIZE= 8192
+MSDOSSIZE= 16384
FFSSTART!= expr ${MSDOSSTART} + ${MSDOSSIZE}
NEWFS_ARGS_msdos=-L boot -c1 -F16
PIFILES=\
bootcode.bin \
start.elf \
+ start4.elf \
fixup.dat \
+ fixup4.dat \
+ bcm2710-rpi-2-b.dtb \
bcm2710-rpi-3-b.dtb \
bcm2710-rpi-3-b-plus.dtb \
- bcm2710-rpi-cm3.dtb
+ bcm2710-rpi-cm3.dtb \
+ bcm2711-rpi-4-b.dtb \
+ bcm2711-rpi-400.dtb \
+ bcm2711-rpi-cm4.dtb
PIDTBO=\
disable-bt.dtbo
${FS}: bsd.rd
dd if=/dev/zero of=${FS} bs=512 count=${FSSIZE}
- vnconfig -v -t ${FSDISKTYPE} ${FS} > vnd
+ vnconfig -v ${FS} > vnd
echo 'u\ne 0\nc\nn\n${MSDOSSTART}\n${MSDOSSIZE}\ne 3\nA6\nn\n${FFSSTART}\n*\nf 0\nw\nq\n' \
| fdisk -e `cat vnd` >/dev/null
echo 'a a\n\n\n\nw\nq\n' | disklabel -E `cat vnd` >/dev/null
.for FILE in ${PIDTBO}
cp ${PRPI}/overlays/${FILE} ${MOUNT_POINT}/overlays/
.endfor
- cp ${PUBOOT}/rpi_3/u-boot.bin ${MOUNT_POINT}/
+ cp ${PUBOOT}/rpi_arm64/u-boot.bin ${MOUNT_POINT}/u-boot.bin
mkdir -p ${MOUNT_POINT}/efi/boot
cp /usr/mdec/BOOTAA64.EFI ${MOUNT_POINT}/efi/boot/bootaa64.efi
echo bootaa64.efi > ${MOUNT_POINT}/efi/boot/startup.nsh
-# $OpenBSD: install.md,v 1.14 2019/11/17 06:03:39 jsg Exp $
+# $OpenBSD: install.md,v 1.15 2021/04/17 21:19:40 sthen Exp $
#
#
# Copyright (c) 1996 The NetBSD Foundation, Inc.
bs=1024 seek=8 >/dev/null 2>&1
;;
rpi)
- cp $_mdec/{bootcode.bin,start.elf,fixup.dat,*.dtb} /mnt/mnt/
+ cp $_mdec/{bootcode.bin,start*.elf,fixup*.dat,*.dtb} /mnt/mnt/
cp $_mdec/u-boot.bin /mnt/mnt/
mkdir -p /mnt/mnt/overlays
cp $_mdec/disable-bt.dtbo /mnt/mnt/overlays
-# $OpenBSD: list,v 1.13 2021/02/15 07:06:03 semarie Exp $
+# $OpenBSD: list,v 1.14 2021/04/17 21:19:40 sthen Exp $
SRCDIRS distrib/special
COPY ${DESTDIR}/etc/firmware/atu-rfmd2958smc-int etc/firmware/atu-rfmd2958smc-int
MKDIR usr/mdec/rpi
+COPY /usr/local/share/raspberrypi-firmware/boot/bcm2710-rpi-2-b.dtb usr/mdec/rpi/bcm2710-rpi-2-b.dtb
COPY /usr/local/share/raspberrypi-firmware/boot/bcm2710-rpi-3-b.dtb usr/mdec/rpi/bcm2710-rpi-3-b.dtb
COPY /usr/local/share/raspberrypi-firmware/boot/bcm2710-rpi-3-b-plus.dtb usr/mdec/rpi/bcm2710-rpi-3-b-plus.dtb
COPY /usr/local/share/raspberrypi-firmware/boot/bcm2710-rpi-cm3.dtb usr/mdec/rpi/bcm2710-rpi-cm3.dtb
+COPY /usr/local/share/raspberrypi-firmware/boot/bcm2711-rpi-4-b.dtb usr/mdec/rpi/bcm2711-rpi-4-b.dtb
+COPY /usr/local/share/raspberrypi-firmware/boot/bcm2711-rpi-400.dtb usr/mdec/rpi/bcm2711-rpi-400.dtb
+COPY /usr/local/share/raspberrypi-firmware/boot/bcm2711-rpi-cm4.dtb usr/mdec/rpi/bcm2711-rpi-cm4.dtb
COPY /usr/local/share/raspberrypi-firmware/boot/bootcode.bin usr/mdec/rpi/bootcode.bin
COPY /usr/local/share/raspberrypi-firmware/boot/start.elf usr/mdec/rpi/start.elf
+COPY /usr/local/share/raspberrypi-firmware/boot/start4.elf usr/mdec/rpi/start4.elf
COPY /usr/local/share/raspberrypi-firmware/boot/fixup.dat usr/mdec/rpi/fixup.dat
+COPY /usr/local/share/raspberrypi-firmware/boot/fixup4.dat usr/mdec/rpi/fixup4.dat
COPY /usr/local/share/raspberrypi-firmware/boot/overlays/disable-bt.dtbo usr/mdec/rpi/disable-bt.dtbo
-COPY /usr/local/share/u-boot/rpi_3/u-boot.bin usr/mdec/rpi/u-boot.bin
+COPY /usr/local/share/u-boot/rpi_arm64/u-boot.bin usr/mdec/rpi/u-boot.bin
MKDIR usr/mdec/pine64
COPY /usr/local/share/u-boot/pine64_plus/u-boot-sunxi-with-spl.bin usr/mdec/pine64/u-boot-sunxi-with-spl.bin
-# $OpenBSD: disktab,v 1.3 2019/06/28 13:28:21 deraadt Exp $
+# $OpenBSD: disktab,v 1.4 2021/04/17 21:19:40 sthen Exp $
# Leave nc=16; adjust size using: ns
rdroot|ramdiskroot|RAM-disk root FS image:\
- :dt=rdroot:se#512:nc#16:nt#2:ns#512:\
- :ta=4.2BSD:oa#0:pa#16384:fa#512:ba#4096:\
- :ob#0:pb#0:oc#0:pc#16384:
+ :dt=rdroot:se#512:nc#16:nt#2:ns#768:\
+ :ta=4.2BSD:oa#0:pa#24576:fa#512:ba#4096:\
+ :ob#0:pb#0:oc#0:pc#24576:
miniroot:\
:dt=rdroot:se#512:nc#33:nt#16:ns#128:\
-# $OpenBSD: RAMDISK,v 1.146 2021/03/08 20:56:10 patrick Exp $
+# $OpenBSD: RAMDISK,v 1.147 2021/04/17 21:19:40 sthen Exp $
#
# GENERIC machine description file
#
option BOOT_CONFIG
option RAMDISK_HOOKS
-option MINIROOTSIZE=16384
+option MINIROOTSIZE=24576
option FFS
option FFS2