diff --git a/mk_mmc.sh b/mk_mmc.sh index efba78b..ca46def 100755 --- a/mk_mmc.sh +++ b/mk_mmc.sh @@ -434,7 +434,7 @@ function boot_uenv_txt_template { fi cat >> ${TEMPDIR}/bootscripts/netinstall.cmd <<-__EOF__ - address_image=IMAGE_ADDR + address_image=kernel_addr address_initrd=INITRD_ADDR console=DICONSOLE @@ -451,7 +451,7 @@ function boot_uenv_txt_template { __EOF__ cat >> ${TEMPDIR}/bootscripts/normal.cmd <<-__EOF__ - address_image=IMAGE_ADDR + address_image=kernel_addr address_initrd=INITRD_ADDR console=SERIAL_CONSOLE @@ -576,7 +576,7 @@ function tweak_boot_scripts { NET="netinstall.cmd" FINAL="normal.cmd" #Set kernel boot address - sed -i -e 's:IMAGE_ADDR:'$IMAGE_ADDR':g' ${TEMPDIR}/bootscripts/${ALL} + sed -i -e 's:kernel_addr:'$kernel_addr':g' ${TEMPDIR}/bootscripts/${ALL} #Set initrd boot address sed -i -e 's:INITRD_ADDR:'$INITRD_ADDR':g' ${TEMPDIR}/bootscripts/${ALL} @@ -1143,6 +1143,18 @@ function populate_boot { cp -v "${DIR}/dl/${DISTARCH}/${ACTUAL_DEB_FILE}" ${TEMPDIR}/disk/ + cat > ${TEMPDIR}/disk/SOC.sh <<-__EOF__ + #!/bin/sh + [socpack] + format=1.0 + board=${BOOTLOADER} + kernel_addr=${kernel_addr} + + __EOF__ + + echo "Debug:" + cat ${TEMPDIR}/disk/SOC.sh + cat > ${TEMPDIR}/readme.txt <