flash-images: copy kernel and initrd first

there is a u-boot bug that not find all files if the directory entries
was splittet to more sectors so copy the important files first.

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
This commit is contained in:
Arne Fitzenreiter
2016-03-05 17:07:23 +01:00
parent 4a6cfe51a1
commit 4f472f86f8

View File

@@ -121,9 +121,14 @@ ifeq "$(MACHINE_TYPE)" "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