Skip to content
Snippets Groups Projects
Commit 6be6da8f authored by Bob Mottram's avatar Bob Mottram
Browse files

Consistent addresses

parent 06c3a196
No related branches found
No related tags found
No related merge requests found
......@@ -52,6 +52,8 @@ beaglebone_flash() {
beaglebone_repack_kernel() {
beaglebone_variant="$1"
arm_loadaddr="$2"
arm_initrd_addr="$3"
# process installed kernel to create uImage, uInitrd, dtb
# using flash-kernel would be a good approach, except it fails in the
# cross build environment due to too many environment checks...
......@@ -101,9 +103,9 @@ beaglebone_repack_kernel() {
cp "${bbb_dtb_file}" dtb ; \
cat "$vmlinuz" dtb >> temp-kernel ; \
mkimage -A arm -O linux -T kernel -n "Debian kernel ${version}" \
-C none -a 0x82000000 -e 0x82000000 -d temp-kernel uImage ; \
-C none -a "${arm_loadaddr}" -e "${arm_loadaddr}" -d temp-kernel uImage ; \
rm -f temp-kernel ; \
mkimage -A arm -O linux -T ramdisk -C gzip -a 0x88080000 -e 0x88080000 \
mkimage -A arm -O linux -T ramdisk -C gzip -a "${arm_initrd_addr}" -e "${arm_initrd_addr}" \
-n "Debian ramdisk ${version}" \
-d "$initRd" uInitrd )
}
......@@ -266,7 +268,7 @@ EOF
case "$arm_flash_name" in
"TI "*)
beaglebone_flash "$arm_flash_name"
beaglebone_repack_kernel "${dtb}"
beaglebone_repack_kernel "${dtb}" "$arm_loadaddr" "$arm_initrd_addr"
;;
esac
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment