Merge ~waveform/ubuntu/+source/flash-kernel:rpi-boot into ubuntu/+source/flash-kernel:ubuntu/devel

Proposed by Dave Jones
Status: Needs review
Proposed branch: ~waveform/ubuntu/+source/flash-kernel:rpi-boot
Merge into: ubuntu/+source/flash-kernel:ubuntu/devel
Diff against target: 214 lines (+66/-38)
5 files modified
bootscript/all/bootscr.rpi (+52/-0)
db/all.db (+5/-5)
debian/changelog (+9/-0)
dev/null (+0/-9)
functions (+0/-24)
Reviewer Review Type Date Requested Status
Łukasz Zemczak (community) Approve
Review via email: mp+368844@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Dave Jones (waveform) wrote :

Built packages available from https://launchpad.net/~waveform/+archive/ubuntu/fk (the later version number in the PPA is because I had a couple of revisions fixing up things; the commit to merge is the squashed rebase).

Revision history for this message
Łukasz Zemczak (sil2100) wrote :

This looks good! Let me sponsor it.

review: Approve

Unmerged commits

87c294c... by Dave Jones

Use 1 bootscript for all RPis

Remove the special-case of the RPi2 uboot.env script, and use a single
script that will support uncompressed, self-extracting, or externally
compressed kernels on both armhf and arm64.

4e29f52... by Dave Jones

Import patches-unapplied version 3.98ubuntu1 to ubuntu/eoan-proposed

Imported using git-ubuntu import.

Changelog parent: bfb8d10c74b23e912d7d760ac9f1e8eb9b5beb35

New changelog entries:
  * Merge with Debian unstable. Remaining changes:
    - add "quiet splash" as default options to omap bootscr
    - re-add support for the FLASH_KERNEL_SKIP env variable, so the image
      build infrastructure has a chance to skip the automated flash-kernel run
      during image builds.
    - Also check for FLASH_KERNEL_SKIP to avoid setting up the root parameter
      in case flash-kernel will not be used
    - make the package postinst respect FLASH_KERNEL_SKIP
    - make sure that if we dont want to override the bootloader root=
      option by setting "Bootloader-sets-root: yes", we actually dont do it
    - use umount -l in the cleanup function, else we fail while finishing up
      with the script
    - add a diversion for update-initramfs to live-installers
      post-base-installer.d to avoid update-initramfs runs before flash-kernel
      is configured
    - add a check for the diverted update-initramfs to flash-kernel-installer,
      so it gets reverted before we try to call update-initramfs
    - make post-base-installer.d/01flash-kernel-diversion actually an
      executable shell script
    - enable UUID detection of the currently used root device
    - if uEnv.txt is defined in the db for an arch, generate preEnv.txt from
      UBOOT_DEFAULTS and UUID detection data
    - make sure blkid only gives us the UUID and not any other metadata like
      labels or filesystem
    - hide the boot device from udisk's automounting after installation on all
      systems using uEnv.txt to configure u-boot
    - make sure we only rename the bootrom partition so udisks hides it,
      when using mkdosfs for setting the label like we did in jasper (where
      we cached the contents before doing this) MLO and u-boot.bin are gone
    - make sure that /dev is bind mounted in /target when running
      update-initramfs from flash-kernel-installer, else we do not find the
      boot media (this is only a workaround, actual fixing of the netinst
      environment is needed to fix this properly)
    - drop the "|| true" from the initramfs building code, if we fail here we
      actually dont want to attempt to flash that
    - Do not run flash-kernel inside an LXC container
    - Call systemd-detect-virt instead of the Ubuntu specific
      running-in-container wrapper.
    - Add generic-lpae to the XB-Subarchitecture list in debian/control
    - debian/flash-kernel-installer.isinstallable: add arm*/generic-lpae
    - Fix typo in dtb_kver test that made it break all non-dtb platforms.
    - Apply patch from Paolo Pisati for appended DTB support
    - Filter the selection of 'latest' usable kernel through the whitelist.
    - Do not fail if there are no specified Kernel-Flavors for this machine.
    - Allow us to find DTBs in both the old flat layout and the new vendor
      subdirectory layout, so we keep backward compatibility
    - Add support for installing dtb files in boot partition
    - Add support for gzip-compressed kernel images
    - db/all.db: add dummy entries as noops when running on VMs
    - Add support for Calxeda Highbank
      - Add support for Calxeda Highbank (with bootscr.highbank different from
        Debian's version)
      - bootscr.highbank: allow more space to load larger kernels
    - Add support for Marvell ArmadaXP
      - Re-add support for Marvell ArmadaXP
      - Fix armadaxp kernel load address
    - Add support for OMAP3 and OMAP4 boards
      - add DB entry for "OMAP3 Beagle Board" (funnily thats missing)
      - add Panda to the list of supported board in the README file
      - debian/control: Re-add omap and omap4 to the flash-kernel-installer
        XB-Subarchitecture field. These appear to have been lost somewhere
        along the way.
      - Also add omap and omap4 to flash-kernel-installer.isinstallable.
      - switch omap3 and omap4 to uEnv.txt/preEnv.txt (the former holds all
        active boot commands, the latter holds the kernel commandline only)
      - switch omap3 and omap4 from Bootloader-sets-root: no to yes, we now
        generate a root=UUID= line on the fly for arches using
        uEnv.txt/preEnv.txt
      - introduce bootscript/uEnvtxt.omap
      - do not move the original uEnvtxt.omap to the target, use a copy
        instead
    - Add support for grouper boards
      - add support for the grouper architecture
    - Add support for Samsung Exynos 5440 platforms
      - Add support for EXYNOS5440-based platforms
    - Add support for HP ProLiant m400 and m800 cartridges
      - Added support for HP ProLiant m800 Server Cartridge
      - Add support for HP ProLiant m800 cartridges
      - Set required boot arguments for HP ProLiant m800 cartridges
      - Add support for HP ProLiant m400 Server Cartridges
      - HP Moonshot Cartridges: Use $baudrate from u-boot environment as
        serial console speed
      - HP Moonshot Cartridges: Enable hardware flow control as required by
        the HP moonshot chassis
      - Enable U-Boot environment support for X-Gene platforms
      - Use filesystem agnostic "load" command instead of assuming ext4
      - Add a bootscript specific to X-Gene Mustang boards since they need to
        pull their dtb from the OS.
    - Add support for Wandboard Quad
      - Wandboard: Use /dev/disk/by-path/platform-2198000.usdhc-part1
        instead of the hardcoded mmcblk1p1, this should make things work on
        boards with just a single microSD card in.
      - Add basic support for WandBoard Quad.
    - Add support for Raspberry Pi 2, 3, 3+, CM3, and CM3+
      - Extend support for the RPi2 to actually install the kernel/initramfs
        on the fat partition, and provide a uboot boot script based on the one
        used for Snappy images.
      - Extend functions to support generating uboot.env images, as an
        alternative to boot.scr and uEnv.txt, and use this for RPi2 as well.
      - Adjust the uboot.env.rpi2 to use the one Paolo Pisati has tested,
        instead of trying to base on the Snappy one, which is failing to boot.
      - Adjust the size of uboot.env based on empirical results on the rpi2.
      - Adjust rpi2/3 dtb address from 0x100 to 0x02000000
      - Support Raspberry Pi 2 Model B Rev 1.2
      - Add Raspberry Pi 3 Model B+ to the db.
      - Modify the Pi 3 boot.scr addresses to fit a bigger kernel, prepare
        separate versions for armhf and arm64.
      - Add Raspberry Pi Compute Module 3 and 3+ to the db.
    - Add support for Nexus 4 (Mako)
      - Enabling support for mako (Nexus 4)
    - Add support for QCT APQ8064 CDP
      - Add support for QCT APQ8064 CDP; thanks Alfonso Sanchez-Beato.
    - Migrate default /etc/default/flash-kernel content to new default without
      asking via debconf
    - Update tests with new fields: Android-Skip-Initrd, Bootloader-sets-root,
      DTB-Kernel-Version
    - Look for dtbs in /lib/firmware/$kvers/device-tree/ in find_dtb_file()
    - Add Bootloader-sets-root to Toshiba AC100 [previously undocumented]
    - Install all potential uboot scripts [previously undocumented]
    - initramfs-hook/flash-kernel: Pretend we're running from the kernel's
      postinst to activate the same guard against mismatched kernel versions.
    - flash-kernel/functions: Stop attempting to install the latest kernel
      if we request an older version, just refuse to act without --force.
  * Dropped changes merged in Debian:
    - Remove commit-tmp cruft [previously undocumented]
  * Dropped obsolete changes:
    - Add archs (why?) and duplicate generic (why?!) in d/control [previously
      undocumented]

bfb8d10... by Holger Wansing

Import patches-unapplied version 3.98 to debian/sid

Imported using git-ubuntu import.

Changelog parent: aed362d004d66d498ab7db1eee8f791877f32994

New changelog entries:
  [ Vagrant Cascadian ]
  * Add machine db entry for Rock64 (Closes: #906696). Thanks to Josua
    Mayer.
  * Add machine db entry for Banana Pi M2 Berry (Closes: #923483). Thanks
    to Lucas Nussbaum.
  [ Cyril Brulebois ]
  * Drop support for arm*/ixp4xx and arm*/iop32x; support for those
    platforms was removed from the Linux kernel and therefore d-i.
  [ Heinrich Schuchardt ]
  * Provide db entry for the Pine A64 LTS board (Closes: #923655).
  [ Jonas Smedegaard ]
  * Add an entry for Olimex A64 Teres-I (Closes: #926071).
  [ Vagrant Cascadian ]
  * Add entries for Raspberry Pi 1, Pi Zero and Pi 3 Compute Module
    (Closes: #921518). Thanks to Alexandre GRIVEAUX.
  [ Updated translations ]
  * Indonesian (id.po) by Muhammad Rifqi Priyo Susanto
  * Vietnamese (vi.po) by Trần Ngọc Quân

aed362d... by Karsten Merker <email address hidden>

Import patches-unapplied version 3.97 to debian/sid

Imported using git-ubuntu import.

Changelog parent: ef8eb6d85907489e8f339730fd9051933213a819

New changelog entries:
  [ Vagrant Cascadian ]
  * Add machine db entry for Odroid HC1 (Closes: #916980). Thanks to
    Benjamin Drung.
  [ Karsten Merker ]
  * Apply a patch from Hajo Noerenberg adding a machine db entry for
    the Seagate Blackarmor NAS220 (Closes: #918193).

ef8eb6d... by Karsten Merker <email address hidden>

Import patches-unapplied version 3.96 to debian/sid

Imported using git-ubuntu import.

Changelog parent: 59c26ef64541b0596a234ecb1fe88ba00e3fd13f

New changelog entries:
  [ Helmut Grohne ]
  * Support DEB_BUILD_OPTIONS=nocheck (Closes: #908355)
  [ Karsten Merker ]
  * Add a machine db entry for the Helios-4 NAS system,
    provided by Josua Mayer. (Closes: #914016)

59c26ef... by Karsten Merker <email address hidden>

Import patches-unapplied version 3.95 to debian/sid

Imported using git-ubuntu import.

Changelog parent: 3ae7f0db7c3af8a33360beecbc2d5d937998d819

New changelog entries:
  [ Heinrich Schuchardt ]
  * Add a machine db entry for the Rockchip RK3288 Tinker Board.
    (Closes: #895934)
  [ Cyril Brulebois ]
  * Update Vcs-{Browser,Git} to point to salsa (alioth's replacement).
  [ Heinrich Schuchardt ]
  * Update Firefly-RK3399 Board (Closes: #899091).
  * Rockchip RK3399 Evaluation Board (Closes: #899090).
  * Update entry for Marvell 8040 MACCHIATOBin (Closes: #899092):
    - Add new Machine name.
    - Update DTB path.
  * Update Pine64+ (Closes: #899093).
  * Update Raspberry Pi 3 Model B (Closes: #899096).
  [ Josua Mayer ]
  * Clearfog Pro: correct DTB name (Closes: #902432).
  * Add missing entries for HummingBoard variants (Closes: #905962).
  [ Vagrant Cascadian ]
  * Add entries for additional Cubox-i models:
    - SolidRun Cubox-i Dual/Quad (1.5som)
    - SolidRun Cubox-i Dual/Quad (1.5som+emmc)
  * Add entry for Raspberry PI 3 B+ (Closes: #905002).
    Thanks to Johannes Keyser.

3ae7f0d... by Christian Perrier

Import patches-unapplied version 3.94 to debian/sid

Imported using git-ubuntu import.

Changelog parent: 5dbb740572bc498da768c8cb26ec06d4b91f992a

New changelog entries:
  [ Vagrant Cascadian ]
  * Fix typos in imx-base boot script.
  [ Uwe Kleine-König ]
  * Add Boot-DTB-Path-Version similar to Boot-Kernel-Path-Version.

5dbb740... by Christian Perrier

Import patches-unapplied version 3.93 to debian/sid

Imported using git-ubuntu import.

Changelog parent: 5216bef5ae8388f98379648a6233abca9e048d91

New changelog entries:
  [ Vagrant Cascadian ]
  * Add support for Theobroma Systems RK3399-Q7 SoM.

5216bef... by Christian Perrier

Import patches-unapplied version 3.92 to debian/sid

Imported using git-ubuntu import.

Changelog parent: 3535f4c4b64d201039492b0bebf2f1363671089d

New changelog entries:
  [ Updated translations ]
  * Hebrew (he.po) by Yaron Shahrabani

3535f4c... by Christian Perrier

Import patches-unapplied version 3.91 to debian/sid

Imported using git-ubuntu import.

Changelog parent: 3f073eaa9a74f0f680c712364e802fe784c429fb

New changelog entries:
  [ Vagrant Cascadian ]
  * Make ubootenv.d work on CuBox-i. Thanks to Rainer Dorsch.
  * Do not install flash-kernel.in.
  [ Heinrich Schuchardt ]
  * flash-kernel: Provide hook to start EFI application (Closes: #873390).
  [ Vagrant Cascadian ]
  * Add support for SolidRun Clearfog Boards (Closes: #839595). Thanks to
    Christoph Egger and Joshua Mayer.
  * Add support for SolidRun CuBox (dove) (Closes: #876773). Thanks to
    Josua Mayer.
  * Fix when no Kernel-Flavors are defined (Closes: #887803).
  * Add Boot-Kernel-Path-Version and Boot-Initrd-Path-Version to be used
    to append the version to the generated kernel/initrd images.
  * debian/control: Set Rules-Requires-Root: no.
  [ Heinrich Schuchardt ]
  * flash-kernel: support relative paths for DTB-Id (Closes: #860304).
  [ Vagrant Cascadian ]
  * Add compatibility symlink to dtb in vendor sub-directory.
  * Add support for root device specified by PARTLABEL.
  [ Andre Heider ]
  * Add support for multiple scripts sources
  [ Vagrant Cascadian ]
  * Convert Wandboard and CuBox-i to use a shared imx-base plus
    uboot-generic boot script.
  * Adjust sunxi boot script to prefer prefix variable if defined to set
    the locations to search for boot files.
  [ Updated translations ]
  * Tajik (tg.po) by Victor Ibragimov

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/bootscript/all/bootscr.rpi b/bootscript/all/bootscr.rpi
2new file mode 100644
3index 0000000..03986e6
4--- /dev/null
5+++ b/bootscript/all/bootscr.rpi
6@@ -0,0 +1,52 @@
7+# Ubuntu Classic RPi U-Boot script (for armhf and arm64)
8+
9+# These values *must* be set in the global environment, not the hush
10+# interpreter's environment (they're already in the global environment
11+# which oddly takes precedence over hush vars)
12+setenv fdt_addr_r 0x03000000
13+setenv kernel_addr_r 0x01000000
14+setenv ramdisk_addr_r 0x03100000
15+
16+# Load the flattened device tree and extract the bootargs from the /chosen
17+# path into the ${bootargs} variable
18+fdt addr ${fdt_addr_r}
19+fdt get value bootargs /chosen bootargs
20+
21+# Store the gzip header (1f 8b) in the kernel area for comparison to the
22+# header of the image we load. Load "vmlinuz" into the portion of memory for
23+# the RAM disk (because we want to uncompress to the kernel area if it's
24+# compressed) and compare the word at the start
25+mw.w ${kernel_addr_r} 0x8b1f # little endian
26+load ${devtype} ${devnum}:${distro_bootpart} ${ramdisk_addr_r} vmlinuz
27+kernel_size=${filesize}
28+if cmp.w ${kernel_addr_r} ${ramdisk_addr_r} 1; then
29+ # It's a gzip compressed image (NOTE: *not* a self-extracting gzip
30+ # compressed kernel, just a kernel image that has been gzip'd). This is
31+ # how all kernels *should* be shipped on Ubuntu for RPi in future,
32+ # regardless of architecture.
33+ #
34+ # Decompress the image into the kernel area, and set us up to use booti
35+ # to launch it
36+ echo "Decompressing kernel..."
37+ unzip ${ramdisk_addr_r} ${kernel_addr_r}
38+ kernel_size=${filesize}
39+ try_boot="booti"
40+else
41+ # The kernel *might* be a self-extracting image (former case on armhf) or
42+ # an uncompressed image (former case on arm64). Copy the data into the
43+ # kernel area then attempt to launch first with "bootz" (will fail on arm64
44+ # with an unknown command, on armhf with compressed image will succeed)
45+ # then "booti" (will succeed with uncompressed image)
46+ echo "Copying kernel..."
47+ cp.b ${ramdisk_addr_r} ${kernel_addr_r} ${kernel_size}
48+ try_boot="bootz booti"
49+fi
50+
51+# Load the initramfs into the initramfs area, storing the filesize in the
52+# variable expected by $boot_ubuntu
53+load mmc 0:1 ${ramdisk_addr_r} initrd.img
54+ramdisk_size=${filesize}
55+for cmd in ${try_boot}; do
56+ echo "Trying boot command: ${cmd}..."
57+ ${cmd} ${kernel_addr_r} ${ramdisk_addr_r}:${ramdisk_size} ${fdt_addr_r}
58+done
59diff --git a/bootscript/all/uboot.env.rpi2 b/bootscript/all/uboot.env.rpi2
60deleted file mode 100644
61index 73deb6a..0000000
62--- a/bootscript/all/uboot.env.rpi2
63+++ /dev/null
64@@ -1,8 +0,0 @@
65-bootcmd=run boot_ubuntu
66-boot_ubuntu=run setup; run loadkernel; run loadinitrd; bootz ${kernel_addr_r} ${ramdisk_addr_r}:${initrdsize} ${fdt_addr_r}
67-setup=fdt addr ${fdt_addr_r}; fdt get value bootargs /chosen bootargs
68-loadkernel=fatload mmc 0:1 ${kernel_addr_r} vmlinuz
69-loadinitrd=fatload mmc 0:1 ${ramdisk_addr_r} initrd.img; setenv initrdsize $filesize
70-fdt_addr_r=0x02000000
71-kernel_addr_r=0x01000000
72-ramdisk_addr_r=0x02100000
73diff --git a/bootscript/arm64/bootscr.rpi3 b/bootscript/arm64/bootscr.rpi3
74deleted file mode 100644
75index 8d24fc6..0000000
76--- a/bootscript/arm64/bootscr.rpi3
77+++ /dev/null
78@@ -1,9 +0,0 @@
79-setenv fdt_addr_r 0x03000000
80-fdt addr ${fdt_addr_r}
81-fdt get value bootargs /chosen bootargs
82-setenv kernel_addr_r 0x01000000
83-setenv ramdisk_addr_r 0x03100000
84-fatload mmc 0:1 ${kernel_addr_r} vmlinuz
85-fatload mmc 0:1 ${ramdisk_addr_r} initrd.img
86-setenv initrdsize $filesize
87-booti ${kernel_addr_r} ${ramdisk_addr_r}:${initrdsize} ${fdt_addr_r}
88diff --git a/bootscript/armhf/bootscr.rpi3 b/bootscript/armhf/bootscr.rpi3
89deleted file mode 100644
90index a60edda..0000000
91--- a/bootscript/armhf/bootscr.rpi3
92+++ /dev/null
93@@ -1,9 +0,0 @@
94-setenv fdt_addr_r 0x03000000
95-fdt addr ${fdt_addr_r}
96-fdt get value bootargs /chosen bootargs
97-setenv kernel_addr_r 0x01000000
98-setenv ramdisk_addr_r 0x03100000
99-fatload mmc 0:1 ${kernel_addr_r} vmlinuz
100-fatload mmc 0:1 ${ramdisk_addr_r} initrd.img
101-setenv initrdsize $filesize
102-bootz ${kernel_addr_r} ${ramdisk_addr_r}:${initrdsize} ${fdt_addr_r}
103diff --git a/db/all.db b/db/all.db
104index 6d33391..7ccdd5a 100644
105--- a/db/all.db
106+++ b/db/all.db
107@@ -1608,12 +1608,12 @@ Machine: Raspberry Pi 2 Model B
108 Machine: Raspberry Pi 2 Model B Rev 1.1
109 Machine: Raspberry Pi 2 Model B Rev 1.2
110 DTB-Id: bcm2709-rpi-2-b.dtb
111-U-Boot-Script-Name: uboot.env.rpi2
112+U-Boot-Script-Name: bootscr.rpi
113 Required-Packages: u-boot-tools
114 Boot-DTB-Path: /boot/firmware/bcm2709-rpi-2-b.dtb
115 Boot-Kernel-Path: /boot/firmware/vmlinuz
116 Boot-Initrd-Path: /boot/firmware/initrd.img
117-Boot-Script-Path: /boot/firmware/uboot.env
118+Boot-Script-Path: /boot/firmware/boot.scr
119 # XXX we should copy the entire overlay dtbs dir too
120
121 # Raspberry Pi 3 (BCM2710)
122@@ -1621,7 +1621,7 @@ Machine: BCM2710
123 Machine: Raspberry Pi 3 Model B
124 Machine: Raspberry Pi 3 Model B Rev 1.2
125 DTB-Id: bcm2710-rpi-3-b.dtb
126-U-Boot-Script-Name: bootscr.rpi3
127+U-Boot-Script-Name: bootscr.rpi
128 Required-Packages: u-boot-tools
129 Boot-DTB-Path: /boot/firmware/bcm2710-rpi-3-b.dtb
130 Boot-Kernel-Path: /boot/firmware/vmlinuz
131@@ -1634,7 +1634,7 @@ Machine: Raspberry Pi 3 Model B+
132 Machine: Raspberry Pi 3 Model B Plus
133 Machine: Raspberry Pi 3 Model B Plus Rev 1.3
134 DTB-Id: bcm2710-rpi-3-b-plus.dtb
135-U-Boot-Script-Name: bootscr.rpi3
136+U-Boot-Script-Name: bootscr.rpi
137 Required-Packages: u-boot-tools
138 Boot-DTB-Path: /boot/firmware/bcm2710-rpi-3-b-plus.dtb
139 Boot-Kernel-Path: /boot/firmware/vmlinuz
140@@ -1646,7 +1646,7 @@ Boot-Script-Path: /boot/firmware/boot.scr
141 Machine: Raspberry Pi Compute Module 3 Rev 1.0
142 Machine: Raspberry Pi Compute Module 3 Plus Rev 1.0
143 DTB-Id: bcm2710-rpi-cm3.dtb
144-U-Boot-Script-Name: bootscr.rpi3
145+U-Boot-Script-Name: bootscr.rpi
146 Required-Packages: u-boot-tools
147 Boot-DTB-Path: /boot/firmware/bcm2710-rpi-cm3.dtb
148 Boot-Kernel-Path: /boot/firmware/vmlinuz
149diff --git a/debian/changelog b/debian/changelog
150index 507f35d..b342968 100644
151--- a/debian/changelog
152+++ b/debian/changelog
153@@ -1,3 +1,12 @@
154+flash-kernel (3.98ubuntu2) eoan; urgency=medium
155+
156+ * Merge all RPi bootscripts into one unified bootscript which handles all Pi
157+ architectures
158+ * Remove uboot.env case which was only used for RPi2 (now supported by the
159+ unified RPi bootscript)
160+
161+ -- Dave Jones <dave.jones@canonical.com> Tue, 11 Jun 2019 13:43:21 +0000
162+
163 flash-kernel (3.98ubuntu1) eoan; urgency=medium
164
165 * Merge with Debian unstable. Remaining changes:
166diff --git a/functions b/functions
167index f1894ad..b34d3ac 100644
168--- a/functions
169+++ b/functions
170@@ -525,19 +525,6 @@ mkimage_multi() {
171 echo "done." >&2
172 }
173
174-mkimage_env() {
175- local esize="$1"
176- local edata="$2"
177- local escript="$3"
178-
179- # FIXME: should leverage gen_ubootenv
180- printf "Generating u-boot environment image... " >&2
181- mkenvimage -r -s "$esize" -o "$escript" "$edata"
182- echo "done." >&2
183-
184-
185-}
186-
187 # Return a nonempty string *unless* NO_CREATE_DOT_BAK_FILES is set.
188 get_dot_bak_preference() {
189 . /etc/default/flash-kernel
190@@ -878,9 +865,6 @@ uiaddr="$(get_machine_field "$machine" "U-Boot-Initrd-Address")" || :
191 umaddr="$(get_machine_field "$machine" "U-Boot-Multi-Address")" || :
192 usaddr="$(get_machine_field "$machine" "U-Boot-Script-Address")" || :
193 usname="$(get_machine_field "$machine" "U-Boot-Script-Name")" || :
194-# FIXME: currently hard coded because only RPi2 uses this; let's not define
195-# new fields without consulting with Debian.
196-ussize=16384
197 boot_device="$(get_machine_field "$machine" "Boot-Device")" || :
198 boot_kernel_path="$(get_machine_field "$machine" "Boot-Kernel-Path")" || :
199 boot_initrd_path="$(get_machine_field "$machine" "Boot-Initrd-Path")" || :
200@@ -1078,14 +1062,6 @@ case "$method" in
201 boot_script="$tmpdir/boot.scr"
202 backup_and_install "$boot_script" "$boot_script_path"
203 ;;
204- uboot.env*)
205- boot_script_path="$boot_mnt_dir/$boot_script_path"
206- boot_script="$BOOTSCRIPTS_DIR/$usname"
207- mkimage_env "$ussize" "$boot_script" \
208- "$tmpdir/uboot.env"
209- boot_script="$tmpdir/uboot.env"
210- backup_and_install "$boot_script" "$boot_script_path"
211- ;;
212 uEnvtxt*)
213 VOLID=${VOLID:-"$(get_root_uuid)"}
214 boot_script_in="$BOOTSCRIPTS_DIR/$usname"

Subscribers

People subscribed via source and target branches