hwpack: add tegra124-jetson-tk1, just waiting for 3.15-rc5-armv7-lpae-x2 deb packages

Signed-off-by: Robert Nelson <robertcnelson@gmail.com>
pull/37/head
Robert Nelson 11 years ago
parent 8c78513df9
commit 407901bb25

@ -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."
#

@ -1240,12 +1240,27 @@ populate_boot () {
env import -t \${loadaddr} \${filesize} env import -t \${loadaddr} \${filesize}
run uenvcmd run uenvcmd
__EOF__ __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 cat ${TEMPDIR}/bootscripts/loader.cmd
echo "-----------------------------" 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} 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} cp -v ${TEMPDIR}/disk/${conf_uboot_bootscript} ${TEMPDIR}/disk/backup/${conf_uboot_bootscript}
;; else
esac echo "Error: conf_fdtfile not defined with conf_uboot_bootscript"
exit 1
fi
fi fi
echo "Copying uEnv.txt based boot scripts to Boot Partition" echo "Copying uEnv.txt based boot scripts to Boot Partition"

Loading…
Cancel
Save