1. Modernize the boot parameters uboot passes to the kernel
2. Correct the volume keys. Upstream DTS actually sends F7 and F8 for these
keys, which is the behavior from stock. Using hwdb to correct the keys
allows us to drop the relevant DTS patch from linux-postmarketos-omap.
Additionally add the hwdb database into initramfs to ensure the keys
also work during system initialization
3. Disable OMAP 3430 OFF mode early in the initramfs. This is currently
broken and causes system instability. We previously used a DTS patch to
do this, but using an initramfs hook allows us to reduce the amount of
kernel patches we maintain
Signed-off-By: Sicelo A. Mhlongo <absicsz@gmail.com>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8472>
15 lines
347 B
Batchfile
15 lines
347 B
Batchfile
setenv mmcnum 0
|
|
setenv mmcpart 1
|
|
setenv mmctype ext2
|
|
setenv setup_omap_atag 1
|
|
setenv bootargs init=/init.sh rw console=tty0 pmos.force-partition-resize splash
|
|
setenv mmckernfile /uImage
|
|
setenv mmcinitrdfile /uInitrd
|
|
setenv mmcscriptfile
|
|
echo Loading initramfs
|
|
run initrdload
|
|
echo Loading kernel
|
|
run kernload
|
|
echo Booting kernel
|
|
run kerninitrdboot
|