uuu_scripts: Add scripts to boot a specified kernel version from /boot partition

This allows easy switching between installed kernel packages.
parent e40053a6
Pipeline #54380 passed with stages
in 8 minutes and 23 seconds
uuu_version 1.0.1
# Boot a specified kernel version from the /boot partition
#
# Edit `fk_kvers` variable to choose the kernel version to boot.
# This needs to match the files in /boot directory, so for instance: use "5.3.0-librem5-h1" to boot /boot/vmlinuz-5.3.0-librem5-h1
SDP: boot -f ../files/u-boot-devkit.imx
SDPU: delay 1000
SDPU: write -f ../files/u-boot-devkit.imx -offset 0x57c00
SDPU: jump
SDPV: delay 1000
SDPV: write -f ../files/u-boot-devkit.imx -skipspl
SDPV: jump
SDPS: boot -f ../files/u-boot-devkit.imx
SDPS: delay 1000
FB: ucmd setenv devtype mmc
FB: ucmd setenv devnum 0
FB: ucmd setenv distro_bootpart 1
FB: ucmd setenv partition ${distro_bootpart}
FB: ucmd setenv compressed_kernel_addr_r 0x40000000
# Edit those to suit your needs:
FB: ucmd setenv fk_kvers 5.3.0-librem5-h1
FB: ucmd setenv bootargs console=ttymxc0,115200 quiet fsck.repair=yes security=apparmor splash plymouth.ignore-serial-consoles vt.global_cursor_default=0 root=/dev/mmcblk0p2
FB: ucmd load ${devtype} ${devnum}:${partition} ${compressed_kernel_addr_r} ${prefix}vmlinuz-${fk_kvers}
FB: ucmd unzip ${compressed_kernel_addr_r} ${kernel_addr_r}
FB: ucmd load ${devtype} ${devnum}:${partition} ${fdt_addr_r} ${prefix}dtb-${fk_kvers}
FB: ucmd load ${devtype} ${devnum}:${partition} ${ramdisk_addr_r} ${prefix}initrd.img-${fk_kvers}
FB: ucmd booti ${kernel_addr_r} ${ramdisk_addr_r}:${filesize} ${fdt_addr_r}
FB: Done
uuu_version 1.0.1
# Boot a specified kernel version from the /boot partition
#
# Edit `fk_kvers` variable to choose the kernel version to boot.
# This needs to match the files in /boot directory, so for instance: use "5.3.0-librem5-h1" to boot /boot/vmlinuz-5.3.0-librem5-h1
CFG: FB: -vid 0x316d -pid 0x4c05
CFG: SDP: -chip MX8MQ -compatible MX8MQ -vid 0x316d -pid 0x4c05
SDP: boot -f ../files/u-boot-librem5.imx
SDPU: delay 1000
SDPU: write -f ../files/u-boot-librem5.imx -offset 0x57c00
SDPU: jump
SDPV: delay 1000
SDPV: write -f ../files/u-boot-librem5.imx -skipspl
SDPV: jump
SDPS: boot -f ../files/u-boot-librem5.imx
SDPS: delay 1000
FB: ucmd setenv devtype mmc
FB: ucmd setenv devnum 0
FB: ucmd setenv distro_bootpart 1
FB: ucmd setenv partition ${distro_bootpart}
FB: ucmd setenv compressed_kernel_addr_r 0x40000000
# Edit those to suit your needs:
FB: ucmd setenv fk_kvers 5.3.0-librem5-h1
FB: ucmd setenv bootargs console=ttymxc0,115200 quiet fsck.repair=yes security=apparmor splash plymouth.ignore-serial-consoles vt.global_cursor_default=0 root=/dev/mmcblk0p2
FB: ucmd load ${devtype} ${devnum}:${partition} ${compressed_kernel_addr_r} ${prefix}vmlinuz-${fk_kvers}
FB: ucmd unzip ${compressed_kernel_addr_r} ${kernel_addr_r}
FB: ucmd load ${devtype} ${devnum}:${partition} ${fdt_addr_r} ${prefix}dtb-${fk_kvers}
FB: ucmd load ${devtype} ${devnum}:${partition} ${ramdisk_addr_r} ${prefix}initrd.img-${fk_kvers}
FB: ucmd booti ${kernel_addr_r} ${ramdisk_addr_r}:${filesize} ${fdt_addr_r}
FB: Done
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment