forked from anduril/jetpack-nixos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
flash-tools.patch
36 lines (32 loc) · 1.39 KB
/
flash-tools.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
diff -Naur bsp-5.1.1/bootloader/l4t_bup_gen.func bsp-5.1.1-new/bootloader/l4t_bup_gen.func
--- bsp-5.1.1/bootloader/l4t_bup_gen.func 1969-12-31 16:00:01.000000000 -0800
+++ bsp-5.1.1-new/bootloader/l4t_bup_gen.func 2023-04-27 15:38:42.531828490 -0700
@@ -23,7 +23,6 @@
declare -A ENTRY_LIST
ENTRY_LIST[bl]=""
-ENTRY_LIST[kernel]=""
PART_NAME=""
IMAGE_SIGNED=0
diff -Naur bsp-5.1.1/bootloader/tegraflash_impl_t234.py bsp-5.1.1-new/bootloader/tegraflash_impl_t234.py
--- bsp-5.1.1/bootloader/tegraflash_impl_t234.py 1969-12-31 16:00:01.000000000 -0800
+++ bsp-5.1.1-new/bootloader/tegraflash_impl_t234.py 2023-05-08 10:58:50.257272841 -0700
@@ -1853,7 +1853,7 @@
xml_tree = ElementTree.parse(file)
mode = xml_tree.getroot().get('mode')
- for file_nodes in xml_tree.getiterator('file'):
+ for file_nodes in xml_tree.iter('file'):
filename = file_nodes.get('name')
if 'dce' in filename:
continue
diff -Naur bsp-5.1.1/flash.sh bsp-5.1.1-new/flash.sh
--- bsp-5.1.1/flash.sh 1969-12-31 16:00:01.000000000 -0800
+++ bsp-5.1.1-new/flash.sh 2023-04-27 15:36:47.766684941 -0700
@@ -2431,6 +2431,9 @@
cmdline+="${string} ";
fi
done
+
+ # Just use the cmdline as-is, needed for RCM-boot in jetpack-nixos
+ cmdline="${CMDLINE}"
fi;
##########################################################################