mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-27 19:23:24 +02:00
u-boot: update to 2014.4. and add BPi support.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user