|
|
@ -1162,21 +1162,23 @@ function populate_boot {
|
|
|
|
|
|
|
|
|
|
|
|
VMLINUZ="vmlinuz-*"
|
|
|
|
VMLINUZ="vmlinuz-*"
|
|
|
|
UIMAGE="uImage.net"
|
|
|
|
UIMAGE="uImage.net"
|
|
|
|
|
|
|
|
|
|
|
|
if [ -f ${TEMPDIR}/kernel/boot/${VMLINUZ} ] ; then
|
|
|
|
if [ -f ${TEMPDIR}/kernel/boot/${VMLINUZ} ] ; then
|
|
|
|
LINUX_VER=$(ls ${TEMPDIR}/kernel/boot/${VMLINUZ} | awk -F'vmlinuz-' '{print $2}')
|
|
|
|
LINUX_VER=$(ls ${TEMPDIR}/kernel/boot/${VMLINUZ} | awk -F'vmlinuz-' '{print $2}')
|
|
|
|
echo "Using mkimage to create uImage"
|
|
|
|
echo "Using mkimage to create uImage"
|
|
|
|
echo "-----------------------------"
|
|
|
|
echo "-----------------------------"
|
|
|
|
mkimage -A arm -O linux -T kernel -C none -a ${ZRELADD} -e ${ZRELADD} -n ${LINUX_VER} -d ${TEMPDIR}/kernel/boot/${VMLINUZ} ${TEMPDIR}/disk/${UIMAGE}
|
|
|
|
mkimage -A arm -O linux -T kernel -C none -a ${ZRELADD} -e ${ZRELADD} -n ${LINUX_VER} -d ${TEMPDIR}/kernel/boot/${VMLINUZ} ${TEMPDIR}/disk/${UIMAGE}
|
|
|
|
|
|
|
|
echo "Debug: zImage.net for future u-boot bootz support"
|
|
|
|
|
|
|
|
cp -v ${TEMPDIR}/kernel/boot/${VMLINUZ} ${TEMPDIR}/disk/zImage.net
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
INITRD="initrd.mod.gz"
|
|
|
|
INITRD="initrd.mod.gz"
|
|
|
|
UINITRD="uInitrd.net"
|
|
|
|
UINITRD="uInitrd.net"
|
|
|
|
|
|
|
|
|
|
|
|
if [ -f ${TEMPDIR}/${INITRD} ] ; then
|
|
|
|
if [ -f ${TEMPDIR}/${INITRD} ] ; then
|
|
|
|
echo "Using mkimage to create uInitrd"
|
|
|
|
echo "Using mkimage to create uInitrd"
|
|
|
|
echo "-----------------------------"
|
|
|
|
echo "-----------------------------"
|
|
|
|
mkimage -A arm -O linux -T ramdisk -C none -a 0 -e 0 -n initramfs -d ${TEMPDIR}/${INITRD} ${TEMPDIR}/disk/${UINITRD}
|
|
|
|
mkimage -A arm -O linux -T ramdisk -C none -a 0 -e 0 -n initramfs -d ${TEMPDIR}/${INITRD} ${TEMPDIR}/disk/${UINITRD}
|
|
|
|
|
|
|
|
echo "Debug: initrd.net for future u-boot bootz support"
|
|
|
|
|
|
|
|
cp -v ${TEMPDIR}/${INITRD} ${TEMPDIR}/disk/${UINITRD}/initrd.net
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
echo "Copying uEnv.txt based boot scripts to Boot Partition"
|
|
|
|
echo "Copying uEnv.txt based boot scripts to Boot Partition"
|
|
|
|