Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/distrib/utils/embedded/conf add JETSONTK1 to armv7.img
details: https://anonhg.NetBSD.org/src/rev/ec5de1c69394
branches: trunk
changeset: 338405:ec5de1c69394
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Fri May 22 01:18:22 2015 +0000
description:
add JETSONTK1 to armv7.img
diffstat:
distrib/utils/embedded/conf/armv7.conf | 18 ++++++++++++++++--
1 files changed, 16 insertions(+), 2 deletions(-)
diffs (48 lines):
diff -r a21b10499580 -r ec5de1c69394 distrib/utils/embedded/conf/armv7.conf
--- a/distrib/utils/embedded/conf/armv7.conf Fri May 22 01:18:05 2015 +0000
+++ b/distrib/utils/embedded/conf/armv7.conf Fri May 22 01:18:22 2015 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: armv7.conf,v 1.2 2015/04/19 18:28:31 hubertf Exp $
+# $NetBSD: armv7.conf,v 1.3 2015/05/22 01:18:22 jmcneill Exp $
# ARMv7 customization script used by mkimage
#
board=armv7
@@ -10,6 +10,7 @@
kernels_awin="BPI CUBIEBOARD CUBIETRUCK HUMMINGBIRD_A31"
kernels_rpi="RPI2"
kernels_amlogic="ODROID-C1"
+kernels_tegra="JETSONTK1"
make_label() {
make_label_evbarm
@@ -86,11 +87,23 @@
EOF
}
+populate_tegra() {
+ jetsontk1_kernelimg=netbsd-JETSONTK1.ub
+
+ # Create a boot.scr for Jetson TK1 U-Boot
+ cat > ${mnt}/boot/boot-JETSONTK1.txt << EOF
+setenv bootargs root=ld1a
+fatload mmc 1:1 0x90000000 ${jetsontk1_kernelimg}
+bootm 0x90000000
+EOF
+ ${MKUBOOTIMAGE} -A arm -C none -O netbsd -T script -a 0 -n "NetBSD/tegra boot" ${mnt}/boot/boot-JETSONTK1.txt ${mnt}/boot/boot-JETSONTK1.scr
+}
+
populate() {
echo "${bar} looking for kernels in ${kernel} ${bar}"
kernels=""
# .ub kernels
- for k in $kernels_beagle $kernels_awin $kernels_amlogic; do
+ for k in $kernels_beagle $kernels_awin $kernels_amlogic $kernels_tegra; do
f="${kernel}/netbsd-${k}.ub.gz"
test -f "${f}" && kernels="${kernels} ${f}"
done
@@ -119,4 +132,5 @@
populate_awin
populate_rpi
populate_amlogic
+ populate_tegra
}
Home |
Main Index |
Thread Index |
Old Index