f7d743a213
- re-enable console suspend, which seems to be broken with elogind when suspending (kernel gets hung up indefinitely in vt_waitactive) - add a suspend hook to work around the musb driver not allowing the device to suspend Based on my testing, this option seems to prevent suspending via elogind (using `loginctl suspend`). When console suspend is disabled, the kernel gets hung up in the call to vt_waitactive, and elogind times out trying to suspend.
34 lines
868 B
Batchfile
34 lines
868 B
Batchfile
gpio set 98
|
|
gpio set 114
|
|
|
|
if test ${mmc_bootdev} -eq 0 ; then
|
|
echo "Booting from SD";
|
|
setenv bootdev 0;
|
|
else
|
|
echo "Booting from eMMC";
|
|
setenv bootdev 2;
|
|
fi;
|
|
|
|
setenv bootargs init=/init.sh rw console=tty0 console=ttyS0,115200 earlycon=uart,mmio32,0x01c28000 panic=10 consoleblank=0 loglevel=1 cma=256M PMOS_NO_OUTPUT_REDIRECT PMOS_FORCE_PARTITION_RESIZE pmos_boot=/dev/mmcblk${bootdev}p1 pmos_root=/dev/mmcblk${bootdev}p2
|
|
|
|
printenv
|
|
|
|
echo Loading DTB
|
|
load mmc ${mmc_bootdev}:1 ${fdt_addr_r} ${fdtfile}
|
|
|
|
echo Loading Initramfs
|
|
load mmc ${mmc_bootdev}:1 ${ramdisk_addr_r} uInitrd-postmarketos-allwinner
|
|
|
|
echo Loading Kernel
|
|
load mmc ${mmc_bootdev}:1 ${kernel_addr_r} vmlinuz-postmarketos-allwinner
|
|
|
|
gpio set 115
|
|
|
|
echo Resizing FDT
|
|
fdt addr ${fdt_addr_r}
|
|
fdt resize
|
|
|
|
echo Booting kernel
|
|
gpio set 116
|
|
gpio clear 98
|
|
booti ${kernel_addr_r} ${ramdisk_addr_r} ${fdt_addr_r}
|