mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 18:45:54 +02:00
u-boot: add Raspberry Pi 3 Model B+
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
This commit is contained in:
@@ -34,10 +34,14 @@ fi;
|
||||
if test "${SERIAL-CONSOLE}" = "ON"; then
|
||||
if test ${console} = ""; then
|
||||
if test "${board}" = "rpi"; then
|
||||
if test "${fdtfile}" = "bcm2837-rpi-3-b.dtb"; then
|
||||
if test "${fdtfile}" = "bcm2837-rpi-3-b-plus.dtb"; then
|
||||
setenv console ttyS1,115200n8;
|
||||
else
|
||||
setenv console ttyAMA0,115200n8;
|
||||
if test "${fdtfile}" = "bcm2837-rpi-3-b.dtb"; then
|
||||
setenv console ttyS1,115200n8;
|
||||
else
|
||||
setenv console ttyAMA0,115200n8;
|
||||
fi;
|
||||
fi;
|
||||
else
|
||||
setenv console ttyS0,115200n8;
|
||||
|
||||
Binary file not shown.
@@ -123,6 +123,7 @@ ifneq "$(MKIMAGE)" "1"
|
||||
|
||||
# Raspberry Pi 3
|
||||
-mkdir -pv /usr/share/u-boot/rpi3
|
||||
cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/u-boot/rpi/u-boot-2018.03_add_rpi3-b-plus.patch
|
||||
cd $(DIR_APP) && make CROSS_COMPILE="" rpi_3_32b_config
|
||||
cd $(DIR_APP) && sed -i -e 's!^CONFIG_IDENT_STRING=.*!CONFIG_IDENT_STRING=" RPi3 - IPFire.org"!' .config
|
||||
cd $(DIR_APP) && make CROSS_COMPILE="" HOSTCC="gcc $(CFLAGS)"
|
||||
|
||||
15
src/patches/u-boot/rpi/u-boot-2018.03_add_rpi3-b-plus.patch
Normal file
15
src/patches/u-boot/rpi/u-boot-2018.03_add_rpi3-b-plus.patch
Normal file
@@ -0,0 +1,15 @@
|
||||
diff -Naur u-boot-2018.03.org/board/raspberrypi/rpi/rpi.c u-boot-2018.03/board/raspberrypi/rpi/rpi.c
|
||||
--- u-boot-2018.03.org/board/raspberrypi/rpi/rpi.c 2018-03-13 13:02:19.000000000 +0100
|
||||
+++ u-boot-2018.03/board/raspberrypi/rpi/rpi.c 2018-05-14 13:40:38.418660145 +0200
|
||||
@@ -111,6 +111,11 @@
|
||||
DTB_DIR "bcm2835-rpi-zero-w.dtb",
|
||||
false,
|
||||
},
|
||||
+ [0xD] = {
|
||||
+ "3 Model B+",
|
||||
+ DTB_DIR "bcm2837-rpi-3-b-plus.dtb",
|
||||
+ true,
|
||||
+ },
|
||||
};
|
||||
|
||||
static const struct rpi_model rpi_models_old_scheme[] = {
|
||||
Reference in New Issue
Block a user