From 407901bb25294011f46129bfcfa3f9a2e4c6b595 Mon Sep 17 00:00:00 2001 From: Robert Nelson Date: Wed, 14 May 2014 12:44:49 -0500 Subject: [PATCH] hwpack: add tegra124-jetson-tk1, just waiting for 3.15-rc5-armv7-lpae-x2 deb packages Signed-off-by: Robert Nelson --- hwpack/tegra124-jetson-tk1.conf | 56 +++++++++++++++++++++++++++++++++ mk_mmc.sh | 19 +++++++++-- 2 files changed, 73 insertions(+), 2 deletions(-) create mode 100644 hwpack/tegra124-jetson-tk1.conf diff --git a/hwpack/tegra124-jetson-tk1.conf b/hwpack/tegra124-jetson-tk1.conf new file mode 100644 index 0000000..b6aad09 --- /dev/null +++ b/hwpack/tegra124-jetson-tk1.conf @@ -0,0 +1,56 @@ +#!/bin/bash +# --dtb tegra124-jetson-tk1 (NVIDIA Jetson TK1:supported) + +conf_board="tegra124-jetson-tk1" + +#Bootloader: +conf_bootloader_in_flash="1" + +#Bootloader Partition: +conf_boot_fstype="ext2" + +#Bootloader: u-boot features: + +#CONFIG_CMD_BOOTZ +#bootz & zImage +conf_uboot_CONFIG_CMD_BOOTZ=1 + +#CONFIG_SUPPORT_RAW_INITRD +#allows booting un-mkimage wrapped initrds +conf_uboot_CONFIG_SUPPORT_RAW_INITRD=1 + +#CONFIG_CMD_FS_GENERIC +#allows using "load" over "fatload"/"ext2load" +conf_uboot_CONFIG_CMD_FS_GENERIC=1 + +#uenvcmd avaiable? +conf_uboot_use_uenvcmd=1 +#conf_uboot_no_uenvcmd="loaduimage" + +#can the bootloader auto detect the device: (*.dtb)? +#uboot_fdt_auto_detection=1 + +conf_uboot_bootscript="boot.scr" + +#Kernel: +#https://rcn-ee.net/deb/wheezy-armhf/LATEST-armv7-lpae +kernel_subarch="armv7-lpae" +kernel_repo="STABLE" +#kernel_repo="TESTING" + +usbnet_mem= + +#Kernel: Bootloader Settings: +conf_zreladdr="0x81000000" +conf_loadaddr="0x80408000" +conf_fdtaddr="0x82000000" +conf_initrdaddr="0x82100000" +conf_fdtfile="tegra124-jetson-tk1.dtb" + +SERIAL="ttyS1" +SERIAL_CONSOLE="${SERIAL},115200" + +SERIAL_MODE=1 + +conf_note="Required: https://github.com/NVIDIA/tegra-uboot-flasher-scripts." +# diff --git a/mk_mmc.sh b/mk_mmc.sh index bd0e4b9..86f2042 100755 --- a/mk_mmc.sh +++ b/mk_mmc.sh @@ -1240,12 +1240,27 @@ populate_boot () { env import -t \${loadaddr} \${filesize} run uenvcmd __EOF__ + ;; + tegra124-jetson-tk1.dtb) + cat > ${TEMPDIR}/bootscripts/loader.cmd <<-__EOF__ + echo "${conf_uboot_bootscript} -> uEnv.txt wrapper..." + setenv mmcdev \$devnum + setenv mmcpart \$rootpart + ${conf_fileload} mmc \${mmcdev}:\${mmcpart} \${loadaddr} uEnv.txt + env import -t \${loadaddr} \${filesize} + run uenvcmd + __EOF__ + ;; + esac + if [ -f ${TEMPDIR}/bootscripts/loader.cmd ] ; then cat ${TEMPDIR}/bootscripts/loader.cmd echo "-----------------------------" mkimage -A arm -O linux -T script -C none -a 0 -e 0 -n "wrapper" -d ${TEMPDIR}/bootscripts/loader.cmd ${TEMPDIR}/disk/${conf_uboot_bootscript} cp -v ${TEMPDIR}/disk/${conf_uboot_bootscript} ${TEMPDIR}/disk/backup/${conf_uboot_bootscript} - ;; - esac + else + echo "Error: conf_fdtfile not defined with conf_uboot_bootscript" + exit 1 + fi fi echo "Copying uEnv.txt based boot scripts to Boot Partition"