Skip to content

Commit e9b4f7b

Browse files
fhunlethmobileoverlord
authored andcommitted
u-boot: bump to 2018.07
This updates U-Boot to 2018.07, applies the SquashFS patch, bb.org patches, and our MMC environment patch. The kernel is still on the FAT filesystem due to the poor Squashfs load performance.
1 parent 3920f56 commit e9b4f7b

10 files changed

+240
-368
lines changed

fwup.conf

+7
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ define(ROOTFS, "${NERVES_SYSTEM}/images/rootfs.squashfs")
4040
# | p0*: Boot A (FAT32) |
4141
# | u-boot.img |
4242
# | uenv.txt (not supported) |
43+
# | zImage |
4344
# +----------------------------+
4445
# | p0*: Boot B (FAT32) |
4546
# +----------------------------+
@@ -106,6 +107,9 @@ file-resource u-boot.img {
106107
file-resource uboot-env.bin {
107108
host-path = "${NERVES_SYSTEM}/images/uboot-env.bin"
108109
}
110+
file-resource zImage {
111+
host-path = "${NERVES_SYSTEM}/images/zImage"
112+
}
109113
file-resource rootfs.img {
110114
host-path = ${ROOTFS}
111115

@@ -198,6 +202,7 @@ task complete {
198202

199203
on-resource MLO { fat_write(${BOOT_A_PART_OFFSET}, "MLO") }
200204
on-resource u-boot.img { fat_write(${BOOT_A_PART_OFFSET}, "u-boot.img") }
205+
on-resource zImage { fat_write(${BOOT_A_PART_OFFSET}, "zImage") }
201206

202207
on-resource rootfs.img {
203208
# write to the first rootfs partition
@@ -251,6 +256,7 @@ task upgrade.a {
251256
# won't hurt anything.
252257
on-resource MLO { fat_write(${BOOT_A_PART_OFFSET}, "MLO") }
253258
on-resource u-boot.img { fat_write(${BOOT_A_PART_OFFSET}, "u-boot.img") }
259+
on-resource zImage { fat_write(${BOOT_A_PART_OFFSET}, "zImage") }
254260
on-resource rootfs.img { raw_write(${ROOTFS_A_PART_OFFSET}) }
255261

256262
on-finish {
@@ -307,6 +313,7 @@ task upgrade.b {
307313
# won't hurt anything.
308314
on-resource MLO { fat_write(${BOOT_B_PART_OFFSET}, "MLO") }
309315
on-resource u-boot.img { fat_write(${BOOT_B_PART_OFFSET}, "u-boot.img") }
316+
on-resource zImage { fat_write(${BOOT_B_PART_OFFSET}, "zImage") }
310317
on-resource rootfs.img { raw_write(${ROOTFS_B_PART_OFFSET}) }
311318

312319
on-finish {

nerves_defconfig

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ BR2_PACKAGE_WPA_SUPPLICANT_DEBUG_SYSLOG=y
4747
BR2_TARGET_UBOOT=y
4848
BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y
4949
BR2_TARGET_UBOOT_CUSTOM_VERSION=y
50-
BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2018.03"
50+
BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2018.07"
5151
BR2_TARGET_UBOOT_PATCH="${NERVES_DEFCONFIG_DIR}/uboot"
5252
BR2_TARGET_UBOOT_USE_CUSTOM_CONFIG=y
5353
BR2_TARGET_UBOOT_CUSTOM_CONFIG_FILE="${NERVES_DEFCONFIG_DIR}/uboot/uboot.defconfig"

post-build.sh

+7
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,10 @@ $HOST_DIR/usr/bin/fwup -c -f $NERVES_DEFCONFIG_DIR/fwup-revert.conf -o $TARGET_D
3737

3838
# Copy the fwup includes to the images dir
3939
cp -rf $NERVES_DEFCONFIG_DIR/fwup_include $BINARIES_DIR
40+
41+
# Since U-Boot's squashfs support is so slow (sadly), store the Linux
42+
# kernel in the FAT filesystem instead of /boot. Everything else can
43+
# go in /boot since it's so small. See the fwup.conf for how the zImage
44+
# is put in the FAT filesystem. Remove zImage from /boot since we can't
45+
# tell Buildroot to just put the .dtb files there.
46+
rm -f $TARGET_DIR/boot/zImage

0 commit comments

Comments
 (0)