X-Git-Url: http://git.ipfire.org/?p=ipfire-2.x.git;a=blobdiff_plain;f=lfs%2Fflash-images;h=a553ad023564be2dff87c8b4d1ba1ef4fee7224b;hp=996109ce44ae4822df5d39a3df3365b2d834fe7a;hb=0a21d63f26ca67161b2b09289fd9fefbc7547e00;hpb=97e4adb8fd8c1631ee42af5129a3e07175ff4995 diff --git a/lfs/flash-images b/lfs/flash-images index 996109ce44..a553ad0235 100644 --- a/lfs/flash-images +++ b/lfs/flash-images @@ -1,7 +1,7 @@ ############################################################################### # # # IPFire.org - A linux based firewall # -# Copyright (C) 2007-2017 IPFire Team # +# Copyright (C) 2007-2018 IPFire Team # # # # This program is free software: you can redistribute it and/or modify # # it under the terms of the GNU General Public License as published by # @@ -74,9 +74,9 @@ else PART_TYPE = L endif -# /boot: 64MB - OFFSET +# /boot: 100MB - OFFSET # / : 1200 MB -S_BOOT := $(shell echo $$(( 131072 - $(S_OFFSET) ))) +S_BOOT := $(shell echo $$(( 204800 - $(S_OFFSET) ))) S_ROOT := 2477600 PADDING = 100 # MB @@ -121,15 +121,6 @@ endif ifeq "$(BUILD_PLATFORM)" "arm" cp -v /boot/MLO $(MNThdd)/boot/ cp -v /boot/u-boot.img $(MNThdd)/boot/ - cp -v /boot/zImage-ipfire-multi $(MNThdd)/boot/ - cp -v /boot/uInit-ipfire-multi $(MNThdd)/boot/ - cp -v /boot/uImage-ipfire-kirkwood $(MNThdd)/boot/ - cp -v /boot/uInit-ipfire-kirkwood $(MNThdd)/boot/ - cp -v /boot/uEnv.txt $(MNThdd)/boot/ - # work around a u-boot bug not find the folders sometimes - mkdir -pv $(MNThdd)/boot/dtb-$(KVER)-ipfire-multi - mkdir -pv $(MNThdd)/boot/dtb-$(KVER)-ipfire-kirkwood - sync umount $(MNThdd)/boot mount $(PART_BOOT) $(MNThdd)/boot @@ -146,18 +137,20 @@ endif echo "THEME=ipfire" >> $(MNThdd)/var/ipfire/main/settings ifeq "$(SCON)" "1" - # Enable serial console - sed -i -e "s|1:2345:respawn:|#1:2345:respawn:|g" $(MNThdd)/etc/inittab + # Disable console on tty2-6 sed -i -e "s|2:2345:respawn:|#2:2345:respawn:|g" $(MNThdd)/etc/inittab sed -i -e "s|3:2345:respawn:|#3:2345:respawn:|g" $(MNThdd)/etc/inittab sed -i -e "s|4:2345:respawn:|#4:2345:respawn:|g" $(MNThdd)/etc/inittab sed -i -e "s|5:2345:respawn:|#5:2345:respawn:|g" $(MNThdd)/etc/inittab sed -i -e "s|6:2345:respawn:|#6:2345:respawn:|g" $(MNThdd)/etc/inittab - sed -i -e "s|#7:2345:respawn:|7:2345:respawn:|g" $(MNThdd)/etc/inittab ifeq "$(BUILD_PLATFORM)" "arm" - sed -i -e "s| console=tty1 | console=ttyAMA0,115200n8 |g" $(MNThdd)/boot/cmdline.txt - sed -i -e "s| console=tty1 | console=ttyO2,115200n8 |g" $(MNThdd)/boot/uEnv.txt + sed -i -e "s|SERIAL-CONSOLE=OFF|SERIAL-CONSOLE=ON|g" $(MNThdd)/boot/uEnv.txt + sed -i -e "s|xxxDTBSUNXIxxx|sun8i-h2-plus-ipfire-nano.dtb|" $(MNThdd)/boot/uEnv.txt +endif +else +ifeq "$(BUILD_PLATFORM)" "arm" + sed -i -e "s|xxxDTBSUNXIxxx|sun7i-a20-bananapi.dtb|" $(MNThdd)/boot/uEnv.txt endif endif @@ -230,8 +223,13 @@ endif dd if=/dev/zero bs=1M count=$(PADDING) >> $(IMG) ifeq "$(BUILD_PLATFORM)" "arm" +ifeq "$(SCON)" "1" + # Install u-boot for Orangepi Zero/Nanopi DUO into image 8KB + dd if=/usr/share/u-boot/orangepi_zero/u-boot-sunxi-with-spl.bin of=$(IMG) bs=1K seek=8 conv=notrunc +else # Install u-boot for LeMaker Banana Pi into image 8KB dd if=/usr/share/u-boot/banana_pi/u-boot-sunxi-with-spl.bin of=$(IMG) bs=1K seek=8 conv=notrunc +endif endif # Compress Image