Merge lp:~manjo/ubuntu/trusty/flash-kernel/HPm800Server into lp:ubuntu/trusty/flash-kernel

Proposed by Manoj Iyer
Status: Merged
Merge reported by: Martin Pitt
Merged at revision: not available
Proposed branch: lp:~manjo/ubuntu/trusty/flash-kernel/HPm800Server
Merge into: lp:ubuntu/trusty/flash-kernel
Diff against target: 144 lines (+82/-1)
7 files modified
bootscript/bootscr.keystone2 (+31/-0)
db/all.db (+11/-0)
debian/changelog (+7/-0)
debian/dirs (+1/-0)
debian/flash-kernel.install (+1/-0)
functions (+30/-1)
ubootenv.d/default.conf (+1/-0)
To merge this branch: bzr merge lp:~manjo/ubuntu/trusty/flash-kernel/HPm800Server
Reviewer Review Type Date Requested Status
Martin Pitt Approve
Review via email: mp+217152@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Brian Murray (brian-murray) wrote :

If you want this SRU'd to Trusty you'll need a corresponding SRU bug.

Revision history for this message
Martin Pitt (pitti) wrote :

Uploaded to utopic for now.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== added file 'bootscript/bootscr.keystone2'
--- bootscript/bootscr.keystone2 1970-01-01 00:00:00 +0000
+++ bootscript/bootscr.keystone2 2014-04-24 22:37:12 +0000
@@ -0,0 +1,31 @@
1setenv interface scsi
2echo Starting Ubuntu...
3if test -n ${fs} && test -n ${interface} && test -n ${device} && test -n ${prefix}; then
4 ${fs}load ${interface} ${device} ${kernel_addr_r} ${prefix}uImage
5 ${fs}load ${interface} ${device} ${ramdisk_addr_r} ${prefix}uInitrd
6 setenv bootargs ro quiet ${args_vendor} $rootfs
7 bootm ${kernel_addr_r} ${ramdisk_addr_r} ${fdt_addr_r}
8else
9 echo boot information not recieved from u-boot, scanning for startup device
10
11 for i in ext2 ext4; do
12 for j in 0 1; do
13 for k in / /boot/; do
14 setenv fs $i;
15 setenv device $j;
16 setenv prefix $k;
17
18 echo Scanning ${fs} ${interface} ${device} on prefix ${prefix} ...;
19
20 if ${fs}load ${interface} ${device} ${script_addr_r} ${prefix}boot.scr; then
21 if iminfo ${script_addr_r}; then
22 echo boot.scr found! Executing ...;
23 source ${script_addr_r};
24 fi;
25 fi;
26 done;
27 done;
28 done;
29fi;
30
31echo No boot device found.;
032
=== modified file 'db/all.db'
--- db/all.db 2014-04-10 04:15:37 +0000
+++ db/all.db 2014-04-24 22:37:12 +0000
@@ -142,6 +142,17 @@
142Boot-Initrd-Path: /boot/uInitrd142Boot-Initrd-Path: /boot/uInitrd
143Boot-Script-Path: /boot/boot.scr143Boot-Script-Path: /boot/boot.scr
144144
145Machine: HP ProLiant m800 Server Cartridge
146Kernel-Flavors: keystone
147U-Boot-Kernel-Address: 0x80008000
148U-Boot-Initrd-Address: 0x0
149U-Boot-Script-Address: 0x0
150U-Boot-Script-Name: bootscr.keystone2
151Required-Packages: u-boot-tools
152Boot-Kernel-Path: /boot/uImage
153Boot-Initrd-Path: /boot/uInitrd
154Boot-Script-Path: /boot/boot.scr
155
145Machine: HP t5325 Thin Client156Machine: HP t5325 Thin Client
146Kernel-Flavors: kirkwood157Kernel-Flavors: kirkwood
147Machine-Id: 2846158Machine-Id: 2846
148159
=== modified file 'debian/changelog'
--- debian/changelog 2014-04-10 04:15:37 +0000
+++ debian/changelog 2014-04-24 22:37:12 +0000
@@ -1,3 +1,10 @@
1flash-kernel (3.0~rc.4ubuntu50) trusty; urgency=medium
2
3 * Added support for user defined uboot environment variables
4 * Added support for HP ProLiant m800 Server Cartridge
5
6 -- Manoj Iyer <manoj.iyer@canonical.com> Thu, 24 Apr 2014 17:34:28 -0500
7
1flash-kernel (3.0~rc.4ubuntu49) trusty; urgency=medium8flash-kernel (3.0~rc.4ubuntu49) trusty; urgency=medium
29
3 * db/all.db: add dummy entries as noops when running on VMs (LP: #1298070)10 * db/all.db: add dummy entries as noops when running on VMs (LP: #1298070)
411
=== modified file 'debian/dirs'
--- debian/dirs 2006-09-25 18:06:07 +0000
+++ debian/dirs 2014-04-24 22:37:12 +0000
@@ -1,1 +1,2 @@
1usr/sbin1usr/sbin
2etc/flash-kernel/ubootenv.d
23
=== modified file 'debian/flash-kernel.install'
--- debian/flash-kernel.install 2012-03-11 14:51:15 +0000
+++ debian/flash-kernel.install 2014-04-24 22:37:12 +0000
@@ -6,3 +6,4 @@
6bootscript usr/share/flash-kernel6bootscript usr/share/flash-kernel
7db usr/share/flash-kernel7db usr/share/flash-kernel
8functions usr/share/flash-kernel8functions usr/share/flash-kernel
9ubootenv.d usr/share/flash-kernel
910
=== modified file 'functions'
--- functions 2013-12-23 14:51:32 +0000
+++ functions 2014-04-24 22:37:12 +0000
@@ -187,6 +187,34 @@
187 } >"$output"187 } >"$output"
188}188}
189189
190append_ubootvars() {
191 local input="$1"
192 local output="$2"
193 local default_conf_file="/usr/share/flash-kernel/ubootenv.d/default.conf"
194 local user_conf_file="/etc/flash-kernel/ubootenv.d/"
195 local tmp_conf_file="$(dirname "$2")/tmp_conf_file"
196
197 if [ -r "$default_conf_file" ]; then
198 sed -e "/^#/d" < "$default_conf_file" > "$output"
199
200 for files in "$(find $user_conf_file -type f)"; do
201 if [ -r "$files" ]; then
202 sed -e "/^#/d" -e "/^$/d" < "$files" >> "$tmp_conf_file"
203 fi
204 done
205
206 if [ -s "$tmp_conf_file" ]; then
207 while read -r line ; do
208 uservar="$(echo $line | awk '{print $2}')"
209 sed -i "/.*$uservar.*/c$line" "$output"
210 grep -q "$uservar" "$output" || echo "$line" >> "$output"
211 done < "$tmp_conf_file"
212 fi
213 fi
214 cat "$input" >> "$output"
215}
216
217
190append_dtb() {218append_dtb() {
191 local kernel="$1"219 local kernel="$1"
192 local dtb="$2"220 local dtb="$2"
@@ -574,7 +602,8 @@
574 case $usname in602 case $usname in
575 bootscr*)603 bootscr*)
576 boot_script_path="$boot_mnt_dir/$boot_script_path"604 boot_script_path="$boot_mnt_dir/$boot_script_path"
577 boot_script="$BOOTSCRIPTS_DIR/$usname"605 append_ubootvars "$BOOTSCRIPTS_DIR/$usname" "$tmpdir/bootscript"
606 boot_script="$tmpdir/bootscript"
578 mkimage_script "$usaddr" "boot script" "$boot_script" \607 mkimage_script "$usaddr" "boot script" "$boot_script" \
579 "$tmpdir/boot.scr"608 "$tmpdir/boot.scr"
580 boot_script="$tmpdir/boot.scr"609 boot_script="$tmpdir/boot.scr"
581610
=== added directory 'ubootenv.d'
=== added file 'ubootenv.d/default.conf'
--- ubootenv.d/default.conf 1970-01-01 00:00:00 +0000
+++ ubootenv.d/default.conf 2014-04-24 22:37:12 +0000
@@ -0,0 +1,1 @@
1# Enter default uboot environment variables here

Subscribers

People subscribed via source and target branches

to all changes: