File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -68,13 +68,6 @@ cleanup() {
6868}
6969trap cleanup EXIT
7070
71- if [ -n " $kernel_tarball " -a " $kernel_tarball " != " -" ]; then
72- echo " Using Kernel from $kernel_tarball ..."
73- tar -C $temp -xJf " $kernel_tarball "
74- kernel=$temp /boot
75- mv $temp /boot/uEnv.txt.in $temp /boot/uEnv.txt
76- fi
77-
7871boot0_position=8 # KiB
7972uboot_position=19096 # KiB
8073part_position=20480 # KiB
@@ -90,7 +83,12 @@ dd if=/dev/zero bs=1M count=${boot_size} of=${out}1
9083mkfs.vfat -n BOOT ${out} 1
9184
9285# Add boot support if there
93- if [ -e " ${kernel} /pine64/Image" -a -e " ${kernel} /pine64/sun50i-a64-pine64-plus.dtb" ]; then
86+ if [ -n " $kernel_tarball " ]; then
87+ echo " Using Kernel from $kernel_tarball ..."
88+ tar -C $temp -xJf " $kernel_tarball "
89+ mv $temp /boot/uEnv.txt.in $temp /boot/uEnv.txt
90+ mcopy -sm -i ${out} 1 ${temp} /boot/* ::
91+ elif [ -e " ${kernel} /pine64/Image" -a -e " ${kernel} /pine64/sun50i-a64-pine64-plus.dtb" ]; then
9492 mcopy -sm -i ${out} 1 ${kernel} /pine64 ::
9593 mcopy -m -i ${out} 1 ${kernel} /initrd.img :: || true
9694 mcopy -m -i ${out} 1 ${kernel} /uEnv.txt :: || true
You can’t perform that action at this time.
0 commit comments