Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/distrib/utils/embedded Make armv7.img boot on the DE0 Nano S...
details: https://anonhg.NetBSD.org/src/rev/a22e71881927
branches: trunk
changeset: 994804:a22e71881927
user: aymeric <aymeric%NetBSD.org@localhost>
date: Thu Nov 22 21:11:37 2018 +0000
description:
Make armv7.img boot on the DE0 Nano SoC. Requires u-boot from -current pkgsrc.
diffstat:
distrib/utils/embedded/conf/armv7.conf | 9 +++++++--
distrib/utils/embedded/files/armv7_boot.cmd | 7 +++++++
2 files changed, 14 insertions(+), 2 deletions(-)
diffs (54 lines):
diff -r 57dfe75d2073 -r a22e71881927 distrib/utils/embedded/conf/armv7.conf
--- a/distrib/utils/embedded/conf/armv7.conf Thu Nov 22 21:08:19 2018 +0000
+++ b/distrib/utils/embedded/conf/armv7.conf Thu Nov 22 21:11:37 2018 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: armv7.conf,v 1.26 2018/11/01 11:05:24 skrll Exp $
+# $NetBSD: armv7.conf,v 1.27 2018/11/22 21:11:37 aymeric Exp $
# ARMv7 customization script used by mkimage
#
board=armv7
@@ -7,7 +7,7 @@
. ${DIR}/conf/evbarm.conf
-# exynos, sunxi, tegra
+# altera, exynos, sunxi, tegra
kernels_generic="GENERIC"
# non-FDTised / special kernels
kernels_amlogic="ODROID-C1"
@@ -90,6 +90,10 @@
>> "$tmp/selected_sets"
}
+populate_altera() {
+ :
+}
+
populate_amlogic() {
odroidc1_kernelimg=netbsd-ODROID-C1.ub
@@ -153,6 +157,7 @@
done
# board specific configuration
+ populate_altera
populate_amlogic
populate_beagle
populate_rpi
diff -r 57dfe75d2073 -r a22e71881927 distrib/utils/embedded/files/armv7_boot.cmd
--- a/distrib/utils/embedded/files/armv7_boot.cmd Thu Nov 22 21:08:19 2018 +0000
+++ b/distrib/utils/embedded/files/armv7_boot.cmd Thu Nov 22 21:11:37 2018 +0000
@@ -3,6 +3,13 @@
setenv mmcpart 0:1
setenv bootargs root=ld0a
fi
+if test "${board}" = "de0-nano-soc" ; then
+ setenv kernel netbsd-GENERIC.ub
+ setenv bootargs 'root=ld0a'
+ setenv mmcpart 0:1
+ setenv use_fdt 1
+ setenv fdtfile socfpga_cyclone5_de0_sockit.dtb
+fi
if test "${soc}" = "exynos" ; then
setenv kernel netbsd-GENERIC.ub
setenv bootargs 'root=ld1a'
Home |
Main Index |
Thread Index |
Old Index