Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/evbarm/compile Add a 'DDTK' tag so that the RPI fir...



details:   https://anonhg.NetBSD.org/src/rev/7ab28138efb7
branches:  trunk
changeset: 1000217:7ab28138efb7
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Sun Jul 14 20:12:22 2019 +0000

description:
Add a 'DDTK' tag so that the RPI firmware will load device tree overlays.
Based on a patch I got from Nick Hudson ages ago.

diffstat:

 sys/arch/evbarm/compile/rpi-mkknlimg.sh |  13 ++++++++-----
 1 files changed, 8 insertions(+), 5 deletions(-)

diffs (37 lines):

diff -r e9a319509b61 -r 7ab28138efb7 sys/arch/evbarm/compile/rpi-mkknlimg.sh
--- a/sys/arch/evbarm/compile/rpi-mkknlimg.sh   Sun Jul 14 18:50:58 2019 +0000
+++ b/sys/arch/evbarm/compile/rpi-mkknlimg.sh   Sun Jul 14 20:12:22 2019 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-# $NetBSD: rpi-mkknlimg.sh,v 1.1 2017/12/10 21:38:26 skrll Exp $
+# $NetBSD: rpi-mkknlimg.sh,v 1.2 2019/07/14 20:12:22 thorpej Exp $
 #
 # Tag an RPI kernel so the firmware will load device tree
 
@@ -8,8 +8,8 @@
 
 magic_rptl=1280594002          # 'RPTL'
 magic_283x=2016622642          # '283x'
-magic_ddtk=
-magic_dtok=1263490116
+magic_ddtk=1263813700          # 'DDTK'
+magic_dtok=1263490116          # 'DTOK'
 magic_kver=
 
 if [ $# -ne 2 ] ; then
@@ -48,9 +48,12 @@
        le32enc 1
        le32enc 4
        le32enc $magic_dtok
+       le32enc 1
+       le32enc 4
+       le32enc $magic_ddtk
 
-       # length ( 9 * 4 + 8)
-       le32enc 44
+       # length ( 11 * 4 + 12)
+       le32enc 56
        le32enc 4
        le32enc $magic_rptl
 } > ${output}



Home | Main Index | Thread Index | Old Index