mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-28 03:33:25 +02:00
u-boot: update to 2018.03
todo: check wandboard version. there are internal changes to merge the different wandboard images to one and u-boot.imx is not build anymore. Which file is needed to boot on wandboard? Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
This commit is contained in:
103
lfs/u-boot
103
lfs/u-boot
@@ -24,13 +24,13 @@
|
||||
|
||||
include Config
|
||||
|
||||
VER = 2014.04
|
||||
VER = 2018.03
|
||||
|
||||
THISAPP = u-boot-$(VER)
|
||||
DL_FILE = $(THISAPP).tar.bz2
|
||||
DL_FROM = $(URL_IPFIRE)
|
||||
DIR_APP = $(DIR_SRC)/$(THISAPP)
|
||||
TARGET = $(DIR_INFO)/$(THISAPP)
|
||||
TARGET = $(DIR_INFO)/$(THISAPP)-$(MKIMAGE)
|
||||
SUP_ARCH = armv5tel
|
||||
|
||||
###############################################################################
|
||||
@@ -41,7 +41,7 @@ objects = $(DL_FILE)
|
||||
|
||||
$(DL_FILE) = $(DL_FROM)/$(DL_FILE)
|
||||
|
||||
$(DL_FILE)_MD5 = 6d2116d1385a66e9a59742caa9d62a54
|
||||
$(DL_FILE)_MD5 = 02922bdf0ee003fe25bfc32749ffdeab
|
||||
|
||||
install : $(TARGET)
|
||||
|
||||
@@ -75,15 +75,11 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
|
||||
@$(PREBUILD)
|
||||
@rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar axf $(DIR_DL)/$(DL_FILE)
|
||||
|
||||
cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/U-Boot-v2-fs-fat-read-fix-fat16-ls-read-issue.patch
|
||||
cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/u-boot-support-gcc-6.patch
|
||||
cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/u-boot-c99-inline-fix.patch
|
||||
|
||||
cd $(DIR_APP)/include/linux && ln -s compiler-gcc6.h compiler-gcc7.h
|
||||
|
||||
ifneq "$(MKIMAGE)" "1"
|
||||
# Pandaboard
|
||||
-mkdir -pv /usr/share/u-boot/pandaboard
|
||||
cd $(DIR_APP) && make CROSS_COMPILE="" omap4_panda_config
|
||||
cd $(DIR_APP) && sed -i -e 's!^CONFIG_IDENT_STRING=.*!CONFIG_IDENT_STRING=" IPFire.org"!' .config
|
||||
cd $(DIR_APP) && make CROSS_COMPILE="" HOSTCC="gcc $(CFLAGS)"
|
||||
cd $(DIR_APP) && install -v -m 644 MLO u-boot.img \
|
||||
/usr/share/u-boot/pandaboard
|
||||
@@ -92,48 +88,83 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
|
||||
cd $(DIR_APP) && install u-boot.img /boot/
|
||||
cd $(DIR_APP) && make distclean
|
||||
|
||||
# Wandboard Quad
|
||||
-mkdir -pv /usr/share/u-boot/wandboard_quad
|
||||
cd $(DIR_APP) && make CROSS_COMPILE="" wandboard_quad_config
|
||||
cd $(DIR_APP) && make CROSS_COMPILE="" HOSTCC="gcc $(CFLAGS)"
|
||||
cd $(DIR_APP) && install -v -m 644 u-boot.imx \
|
||||
/usr/share/u-boot/wandboard_quad
|
||||
cd $(DIR_APP) && make distclean
|
||||
# Wandboard
|
||||
# -mkdir -pv /usr/share/u-boot/wandboard
|
||||
# cd $(DIR_APP) && make CROSS_COMPILE="" wandboard_config
|
||||
# cd $(DIR_APP) && make CROSS_COMPILE="" HOSTCC="gcc $(CFLAGS)"
|
||||
# cd $(DIR_APP) && install -v -m 644 u-boot.imx \
|
||||
# /usr/share/u-boot/wandboard
|
||||
# cd $(DIR_APP) && make distclean
|
||||
|
||||
# Wandboard Dual
|
||||
-mkdir -pv /usr/share/u-boot/wandboard_dl
|
||||
cd $(DIR_APP) && make CROSS_COMPILE="" wandboard_dl_config
|
||||
# Raspberry Pi
|
||||
-mkdir -pv /usr/share/u-boot/rpi
|
||||
cd $(DIR_APP) && make CROSS_COMPILE="" rpi_config
|
||||
cd $(DIR_APP) && sed -i -e 's!^CONFIG_IDENT_STRING=.*!CONFIG_IDENT_STRING=" IPFire.org"!' .config
|
||||
cd $(DIR_APP) && make CROSS_COMPILE="" HOSTCC="gcc $(CFLAGS)"
|
||||
cd $(DIR_APP) && install -v -m 644 u-boot.imx \
|
||||
/usr/share/u-boot/wandboard_dl
|
||||
cd $(DIR_APP) && make distclean
|
||||
cd $(DIR_APP) && install -v -m 644 u-boot.bin \
|
||||
/usr/share/u-boot/rpi/kernel.img
|
||||
# Install rpi u-boot as default rpi kernel
|
||||
cd $(DIR_APP) && install u-boot.bin /boot/kernel.img
|
||||
|
||||
# Wandboard Solo
|
||||
-mkdir -pv /usr/share/u-boot/wandboard_solo
|
||||
cd $(DIR_APP) && make CROSS_COMPILE="" wandboard_solo_config
|
||||
# Raspberry Pi 2
|
||||
-mkdir -pv /usr/share/u-boot/rpi2
|
||||
cd $(DIR_APP) && make CROSS_COMPILE="" rpi_2_config
|
||||
cd $(DIR_APP) && sed -i -e 's!^CONFIG_IDENT_STRING=.*!CONFIG_IDENT_STRING=" IPFire.org"!' .config
|
||||
cd $(DIR_APP) && make CROSS_COMPILE="" HOSTCC="gcc $(CFLAGS)"
|
||||
cd $(DIR_APP) && install -v -m 644 u-boot.imx \
|
||||
/usr/share/u-boot/wandboard_solo
|
||||
cd $(DIR_APP) && make distclean
|
||||
cd $(DIR_APP) && install -v -m 644 u-boot.bin \
|
||||
/usr/share/u-boot/rpi2/kernel7.img
|
||||
# Install rpi2 u-boot as default rpi kernel7
|
||||
cd $(DIR_APP) && install u-boot.bin /boot/kernel7.img
|
||||
|
||||
# Raspberry Pi 3
|
||||
-mkdir -pv /usr/share/u-boot/rpi3
|
||||
cd $(DIR_APP) && make CROSS_COMPILE="" rpi_3_32b_config
|
||||
cd $(DIR_APP) && sed -i -e 's!^CONFIG_IDENT_STRING=.*!CONFIG_IDENT_STRING=" IPFire.org"!' .config
|
||||
cd $(DIR_APP) && make CROSS_COMPILE="" HOSTCC="gcc $(CFLAGS)"
|
||||
cd $(DIR_APP) && install -v -m 644 u-boot.bin \
|
||||
/usr/share/u-boot/rpi3/kernel8-32.img
|
||||
# Install rpi2 u-boot as default rpi kernel8-32
|
||||
cd $(DIR_APP) && install u-boot.bin /boot/kernel8-32.img
|
||||
|
||||
# Orange Pi Zero
|
||||
-mkdir -pv /usr/share/u-boot/orangepi_zero
|
||||
cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/u-boot/sunxi/orangepi-zero-add-macs.diff
|
||||
cd $(DIR_APP) && make CROSS_COMPILE="" orangepi_zero_config
|
||||
cd $(DIR_APP) && sed -i -e 's!^CONFIG_IDENT_STRING=.*!CONFIG_IDENT_STRING=" IPFire.org"!' .config
|
||||
cd $(DIR_APP) && make CROSS_COMPILE="" HOSTCC="gcc $(CFLAGS)"
|
||||
cd $(DIR_APP) && install -v -m 644 u-boot-sunxi-with-spl.bin \
|
||||
/usr/share/u-boot/orangepi_zero
|
||||
|
||||
# Orange Pi PC
|
||||
-mkdir -pv /usr/share/u-boot/orangepi_pc
|
||||
cd $(DIR_APP) && make CROSS_COMPILE="" orangepi_pc_config
|
||||
cd $(DIR_APP) && sed -i -e 's!^CONFIG_IDENT_STRING=.*!CONFIG_IDENT_STRING=" IPFire.org"!' .config
|
||||
cd $(DIR_APP) && make CROSS_COMPILE="" HOSTCC="gcc $(CFLAGS)"
|
||||
cd $(DIR_APP) && install -v -m 644 u-boot-sunxi-with-spl.bin \
|
||||
/usr/share/u-boot/orangepi_pc
|
||||
|
||||
# LeMaker Banana Pi
|
||||
-mkdir -pv /usr/share/u-boot/banana_pi
|
||||
cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/u-boot/sunxi/001-uboot-sunxi-509d96d4f1f602d62d36db660973249e16f9d088.patch
|
||||
cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/u-boot/sunxi/002-uboot-jwrdegoede-psci-support.patch
|
||||
cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/u-boot/sunxi/003-uboot-fix-gmac-not-working-reliable-on-bananapi.patch
|
||||
cd $(DIR_APP) && make CROSS_COMPILE="" Bananapi_config
|
||||
cd $(DIR_APP) && sed -i -e 's!^CONFIG_IDENT_STRING=.*!CONFIG_IDENT_STRING=" IPFire.org"!' .config
|
||||
cd $(DIR_APP) && make CROSS_COMPILE="" HOSTCC="gcc $(CFLAGS)"
|
||||
cd $(DIR_APP) && install -v -m 644 u-boot-sunxi-with-spl.bin \
|
||||
/usr/share/u-boot/banana_pi
|
||||
|
||||
# mkimage
|
||||
cd $(DIR_APP) && make CROSS_COMPILE="" HOSTCC="gcc $(CFLAGS)" tools
|
||||
cd $(DIR_APP) && install -v -m 755 tools/mkimage /usr/bin
|
||||
|
||||
# config (uEnv.txt)
|
||||
# create an empty 128 KB File for the u-boot env
|
||||
dd if=/dev/zero of=/boot/uboot.env bs=1K count=128
|
||||
|
||||
# config (uEnv.txt and boot.*)
|
||||
cp -vf $(DIR_SRC)/config/u-boot/* /boot/
|
||||
# patch real Kernel version to uEnv.txt
|
||||
sed -e "s/xxxKVERxxx/$(KVER)/g" -i /boot/uEnv.txt
|
||||
|
||||
else
|
||||
# mkimage
|
||||
cd $(DIR_APP) && make CROSS_COMPILE="" omap4_panda_config
|
||||
cd $(DIR_APP) && make CROSS_COMPILE="" HOSTCC="gcc $(CFLAGS)" tools
|
||||
cd $(DIR_APP) && install -v -m 755 tools/mkimage /usr/bin
|
||||
endif
|
||||
|
||||
@rm -rf $(DIR_APP)
|
||||
@$(POSTBUILD)
|
||||
|
||||
Reference in New Issue
Block a user