Commit 6f4d9895 authored by Anton Midyukov's avatar Anton Midyukov

arm-rpi4: use mode nouboot for rpi kernel only

parent edd7cced
...@@ -21,6 +21,8 @@ use/arm-rpi4/x11: use/arm-rpi4 ...@@ -21,6 +21,8 @@ use/arm-rpi4/x11: use/arm-rpi4
@$(call add,DEFAULT_SERVICES_ENABLE,bluetoothd hciuart) @$(call add,DEFAULT_SERVICES_ENABLE,bluetoothd hciuart)
use/arm-rpi4/kernel: use/arm-rpi4 use/arm-rpi4/kernel: use/arm-rpi4
@$(call set,RPI_NOUBOOT,yes)
@$(call xport,RPI_NOUBOOT)
ifeq (aarch64,$(ARCH)) ifeq (aarch64,$(ARCH))
@$(call set,KFLAVOURS,rpi-un rpi-def) @$(call set,KFLAVOURS,rpi-un rpi-def)
else else
......
...@@ -28,11 +28,11 @@ hdmi_ignore_edid_audio=1 ...@@ -28,11 +28,11 @@ hdmi_ignore_edid_audio=1
[pi3] [pi3]
kernel=uboot-rpi_3.bin kernel=uboot-rpi_3.bin
dtoverlay=vc4-fkms-v3d #dtoverlay=vc4-fkms-v3d
[pi4] [pi4]
kernel=uboot-rpi_4.bin kernel=uboot-rpi_4.bin
dtoverlay=vc4-fkms-v3d #dtoverlay=vc4-fkms-v3d
[all] [all]
EOF EOF
...@@ -40,11 +40,10 @@ EOF ...@@ -40,11 +40,10 @@ EOF
[ "$GLOBAL_ARCH" = armh ] && \ [ "$GLOBAL_ARCH" = armh ] && \
sed -i 's/.bin/_32b.bin/g' /boot/efi/config.txt sed -i 's/.bin/_32b.bin/g' /boot/efi/config.txt
# framebuffer not working with dtoverlay=vc4-fkms-v3d on RPi3 aarch64
[ "$GLOBAL_ARCH" = armh ] && \
sed -i '/#dtoverlay=vc4-fkms-v3d/s/#//' /boot/efi/config.txt
# Enable bootloading without u-boot # Enable bootloading without u-boot
sh -x rpi4-boot-nouboot $kflavour if [ -n "${GLOBAL_RPI_NOUBOOT-}" ]; then
rpi4-boot-nouboot $kflavour
sed -i '/#dtoverlay=vc4-fkms-v3d/s/#//' /boot/efi/config.txt
fi
exit 0 exit 0
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment