u-boot: update to 2014.4. and add BPi support.

This commit is contained in:
Arne Fitzenreiter
2014-12-19 07:12:40 +01:00
parent 9894fb91f1
commit 56e211f66e
11 changed files with 11551 additions and 22 deletions

View File

@@ -116,7 +116,7 @@ endif
mkdir -pv $(MNThdd)/boot
mount $(PART_BOOT) $(MNThdd)/boot
# Install MLO and uboot first
# Install Pandaboard MLO and uboot first
ifeq "$(MACHINE_TYPE)" "arm"
cp -v /boot/MLO $(MNThdd)/boot/
cp -v /boot/u-boot.img $(MNThdd)/boot/
@@ -148,8 +148,7 @@ ifeq "$(SCON)" "1"
ifeq "$(MACHINE_TYPE)" "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/boot.script
cd $(MNThdd)/boot && ./convert_bootscript
sed -i -e "s| console=tty1 | console=ttyO2,115200n8 |g" $(MNThdd)/boot/uEnv.txt
endif
endif
@@ -216,6 +215,11 @@ endif
# not copied to a block device)
dd if=/dev/zero bs=1M count=$(PADDING) >> $(IMG)
ifeq "$(MACHINE_TYPE)" "arm"
# 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
# Compress Image
pigz -f9 < $(IMG) > $(IMAGE_FILE)
rm -rf $(IMG) $(MNThdd)