mirror of https://github.com/hak5/openwrt.git
brcm2708: restore /boot/config.txt before reboot
The Raspberry Pi bootloader reads configuration values from config.txt in the boot partition. This file allows to specify the amount of memory to assign to the GPU, the license keys for hardware MPEG-2 and VC-1 decoding, Device Tree parameters and overlays, and lots of other things. Since sysupgrade only restores the configuration after booting the newly flashed image, these values will not be active, even if sysupgrade would save /boot/config.txt. To solve this, add the file to the files to be backed up, and restore it in platform_copy_config, before reboot. Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>openwrt-18.06
parent
f7a6fd3153
commit
a48e5bea12
|
@ -0,0 +1 @@
|
||||||
|
/boot/config.txt
|
|
@ -27,6 +27,7 @@ platform_copy_config() {
|
||||||
mkdir -p /boot
|
mkdir -p /boot
|
||||||
[ -f /boot/kernel.img ] || mount -t vfat -o rw,noatime /dev/mmcblk0p1 /boot
|
[ -f /boot/kernel.img ] || mount -t vfat -o rw,noatime /dev/mmcblk0p1 /boot
|
||||||
cp -af "$CONF_TAR" /boot/
|
cp -af "$CONF_TAR" /boot/
|
||||||
|
tar --directory / -xvf "$CONF_TAR" boot/config.txt
|
||||||
sync
|
sync
|
||||||
umount /boot
|
umount /boot
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue