Merge lp:~dannf/ubuntu/trusty/flash-kernel/moonshot-updates into lp:ubuntu/trusty/flash-kernel

Proposed by dann frazier
Status: Merged
Merge reported by: Adam Conrad
Merged at revision: not available
Proposed branch: lp:~dannf/ubuntu/trusty/flash-kernel/moonshot-updates
Merge into: lp:ubuntu/trusty/flash-kernel
Diff against target: 171 lines (+72/-5)
10 files modified
README (+14/-0)
bootscript/bootscr.keystone2 (+5/-0)
bootscript/bootscr.xgene (+4/-3)
bootscript/bootscr.xgene-mustang (+1/-0)
db/all.db (+7/-0)
debian/changelog (+12/-0)
debian/control (+1/-1)
debian/dirs (+2/-0)
debian/flash-kernel-installer.isinstallable (+3/-0)
functions (+23/-1)
To merge this branch: bzr merge lp:~dannf/ubuntu/trusty/flash-kernel/moonshot-updates
Reviewer Review Type Date Requested Status
dann frazier Needs Resubmitting
Adam Conrad (community) Needs Fixing
Review via email: mp+224002@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Adam Conrad (adconrad) wrote :

See inline comment, re: bootscr.

review: Needs Fixing
475. By dann frazier

add missing bootscr.keystone2 file

Revision history for this message
dann frazier (dannf) wrote :

Ooops, fixed.

review: Needs Resubmitting

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'README'
2--- README 2013-12-23 14:51:32 +0000
3+++ README 2014-07-22 21:12:58 +0000
4@@ -134,3 +134,17 @@
5 * DTB-Kernel-Version: (optional) minimal kernel version for DTB concatenation
6
7 * DTB-Id: (optional) specifies the name of the DTB file for this device
8+
9+
10+Adding U-Boot Commands for Pre-Boot Execution
11+- - - - - - - - - - - - - - - - - - - - - - -
12+
13+Packages can drop in files containing U-Boot commands to be executed by a
14+platform's bootscript before starting the OS. These files should be
15+dropped in /usr/share/flash-kernel/ubootenv.d. Users can add additional
16+stubs, or override stubs provided by packages, by adding files to
17+/etc/flash-kernel/ubootenv.d. Files in the /etc path that have the same
18+name as files in the /usr path will override the /usr counterparts.
19+
20+Platform bootscripts must contain the @@UBOOT_ENV_EXTRA@@ macro for the
21+contents of these stubs to be incorporated.
22
23=== added file 'bootscript/bootscr.keystone2'
24--- bootscript/bootscr.keystone2 1970-01-01 00:00:00 +0000
25+++ bootscript/bootscr.keystone2 2014-07-22 21:12:58 +0000
26@@ -0,0 +1,5 @@
27+setenv bootargs 'console=ttyS0,9600n8r ro'
28+@@UBOOT_ENV_EXTRA@@
29+load scsi 0 ${kernel_addr_r} vmlinuz
30+load scsi 0 ${ramdisk_addr_r} initrd.img
31+bootz ${kernel_addr_r} ${ramdisk_addr_r}:${filesize} ${fdt_addr_r}
32
33=== modified file 'bootscript/bootscr.xgene'
34--- bootscript/bootscr.xgene 2013-12-23 14:51:32 +0000
35+++ bootscript/bootscr.xgene 2014-07-22 21:12:58 +0000
36@@ -1,4 +1,5 @@
37-setenv bootargs 'console=ttyS0,115200n8 ro'
38-ext4load scsi 0 ${kernel_addr_r} uImage
39-ext4load scsi 0 ${ramdisk_addr_r} uInitrd
40+setenv bootargs 'console=ttyS0,9600n8r ro'
41+@@UBOOT_ENV_EXTRA@@
42+load scsi 0 ${kernel_addr_r} uImage
43+load scsi 0 ${ramdisk_addr_r} uInitrd
44 bootm ${kernel_addr_r} ${ramdisk_addr_r} ${fdt_addr_r}
45
46=== modified file 'bootscript/bootscr.xgene-mustang'
47--- bootscript/bootscr.xgene-mustang 2014-03-18 16:31:38 +0000
48+++ bootscript/bootscr.xgene-mustang 2014-07-22 21:12:58 +0000
49@@ -1,4 +1,5 @@
50 setenv bootargs 'console=ttyS0,115200n8 ro'
51+@@UBOOT_ENV_EXTRA@@
52 ext4load scsi 0 ${kernel_addr_r} uImage
53 ext4load scsi 0 ${ramdisk_addr_r} uInitrd
54 ext4load scsi 0 ${fdt_addr_r} apm-mustang.dtb
55
56=== modified file 'db/all.db'
57--- db/all.db 2014-04-10 04:15:37 +0000
58+++ db/all.db 2014-07-22 21:12:58 +0000
59@@ -142,6 +142,13 @@
60 Boot-Initrd-Path: /boot/uInitrd
61 Boot-Script-Path: /boot/boot.scr
62
63+Machine: HP ProLiant m800 Server Cartridge
64+Kernel-Flavors: keystone
65+U-Boot-Script-Address: 0x0
66+U-Boot-Script-Name: bootscr.keystone2
67+Required-Packages: u-boot-tools
68+Boot-Script-Path: /boot/boot.scr
69+
70 Machine: HP t5325 Thin Client
71 Kernel-Flavors: kirkwood
72 Machine-Id: 2846
73
74=== modified file 'debian/changelog'
75--- debian/changelog 2014-04-10 04:15:37 +0000
76+++ debian/changelog 2014-07-22 21:12:58 +0000
77@@ -1,3 +1,15 @@
78+flash-kernel (3.0~rc.4ubuntu49.1) UNRELEASED; urgency=medium
79+
80+ * Add U-Boot environment configuration support (LP: #1328597)
81+ * Explicitly lower the console speed for HP ProLiant m400 cartridges to 9600
82+ and enable hardware flow control as required by the HP moonshot chassis
83+ (LP: #1328280)
84+ * Enable U-Boot environment support for X-Gene platforms
85+ * Use filesystem agnostic "load" command instead of assuming ext4
86+ * Add support for HP ProLiant m800 cartridges (LP: #1326437)
87+
88+ -- dann frazier <dann.frazier@canonical.com> Fri, 20 Jun 2014 17:09:02 -0600
89+
90 flash-kernel (3.0~rc.4ubuntu49) trusty; urgency=medium
91
92 * db/all.db: add dummy entries as noops when running on VMs (LP: #1298070)
93
94=== modified file 'debian/control'
95--- debian/control 2013-12-23 14:51:32 +0000
96+++ debian/control 2014-07-22 21:12:58 +0000
97@@ -30,7 +30,7 @@
98 Priority: standard
99 XC-Package-Type: udeb
100 Architecture: arm armel armeb armhf arm64
101-XB-Subarchitecture: armadaxp exynos5 generic-lpae generic iop32x ixp4xx kirkwood orion5x s3c24xx mx5 omap omap4 xgene
102+XB-Subarchitecture: armadaxp exynos5 generic-lpae generic iop32x ixp4xx keystone kirkwood orion5x s3c24xx mx5 omap omap4 xgene
103 Provides: bootable-system
104 Depends: cdebconf-udeb, installed-base
105 XB-Installer-Menu-Item: 7300
106
107=== modified file 'debian/dirs'
108--- debian/dirs 2006-09-25 18:06:07 +0000
109+++ debian/dirs 2014-07-22 21:12:58 +0000
110@@ -1,1 +1,3 @@
111+etc/flash-kernel/ubootenv.d
112 usr/sbin
113+usr/share/flash-kernel/ubootenv.d
114
115=== modified file 'debian/flash-kernel-installer.isinstallable'
116--- debian/flash-kernel-installer.isinstallable 2013-12-23 14:51:32 +0000
117+++ debian/flash-kernel-installer.isinstallable 2014-07-22 21:12:58 +0000
118@@ -20,6 +20,9 @@
119 arm*/ixp4xx)
120 exit 0
121 ;;
122+ arm*/keystone)
123+ exit 0
124+ ;;
125 arm*/kirkwood)
126 exit 0
127 ;;
128
129=== modified file 'functions'
130--- functions 2013-12-23 14:51:32 +0000
131+++ functions 2014-07-22 21:12:58 +0000
132@@ -187,6 +187,19 @@
133 } >"$output"
134 }
135
136+gen_ubootenv() {
137+ ENVSTUBDIRS="/etc/flash-kernel/ubootenv.d /usr/share/flash-kernel/ubootenv.d"
138+ ENVSTUBS="$(find $ENVSTUBDIRS -type f -regex '.*/[0-9a-zA-Z_-]+' -printf '%f\n' | LC_ALL=C sort -u)"
139+ for file in $ENVSTUBS; do
140+ for dir in $ENVSTUBDIRS; do
141+ if [ -f $dir/$file ]; then
142+ cat $dir/$file
143+ break
144+ fi
145+ done
146+ done
147+}
148+
149 append_dtb() {
150 local kernel="$1"
151 local dtb="$2"
152@@ -252,10 +265,19 @@
153 local sdesc="$2"
154 local sdata="$3"
155 local script="$4"
156+ local tdata="$tmpdir/$(basename $sdata)"
157+
158+ local ubootenv="$(mktemp --tmpdir=$tmpdir)"
159+ gen_ubootenv > $ubootenv
160
161 printf "Generating boot script u-boot image... " >&2
162+ sed -e "/@@UBOOT_ENV_EXTRA@@/{
163+ s/@@UBOOT_ENV_EXTRA@@//g
164+ r $ubootenv
165+ }" < $sdata > $tdata
166+
167 mkimage -A arm -O linux -T script -C none -a "$saddr" -e "$saddr" \
168- -n "$sdesc" -d "$sdata" "$script" >&2 1>/dev/null
169+ -n "$sdesc" -d "$tdata" "$script" >&2 1>/dev/null
170 echo "done." >&2
171 }
172

Subscribers

People subscribed via source and target branches

to all changes: