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 RPi4 has a different root device...



details:   https://anonhg.NetBSD.org/src/rev/5baabb82899c
branches:  trunk
changeset: 745152:5baabb82899c
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Sun Feb 23 10:56:03 2020 +0000

description:
RPi4 has a different root device, so use config.txt conditionals to load
an alternate cmdline txt file (cmdline-pi4.txt) on these boards.

diffstat:

 distrib/utils/embedded/conf/arm64.conf |  11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diffs (32 lines):

diff -r 8314e764cae4 -r 5baabb82899c distrib/utils/embedded/conf/arm64.conf
--- a/distrib/utils/embedded/conf/arm64.conf    Sun Feb 23 10:51:12 2020 +0000
+++ b/distrib/utils/embedded/conf/arm64.conf    Sun Feb 23 10:56:03 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: arm64.conf,v 1.8 2019/12/16 11:00:30 skrll Exp $
+# $NetBSD: arm64.conf,v 1.9 2020/02/23 10:56:03 jmcneill Exp $
 # ARM64 customization script used by mkimage
 #
 board=arm64
@@ -73,6 +73,10 @@
 root=ld0a console=${console}
 EOF
 
+       cat > "${mnt}/boot/cmdline-pi4.txt" << EOF
+root=ld1a console=${console}
+EOF
+
        cat > "${mnt}/boot/config.txt" << EOF
 #
 upstream_kernel=1
@@ -82,6 +86,11 @@
 kernel_address=0x200000
 enable_uart=1
 force_turbo=0
+#
+[pi4]
+cmdline=cmdline-pi4.txt
+#
+[all]
 EOF
 
        echo "${bar} installing firmware files ${bar}"



Home | Main Index | Thread Index | Old Index