aboutsummaryrefslogtreecommitdiff
path: root/mkrootfs.d/02-kernel.sh
blob: be000b621ddb279907a0ebfe695d1a04fe411812 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
# Set up automatic kernel installation an upgrades
echo "Cubietech Cubietruck Plus" > "$ROOTFS/etc/flash-kernel/machine"
echo 'LINUX_KERNEL_CMDLINE="console=ttyS0,115200 hdmi.audio=EDID:0 disp.screen0_output_mode=EDID:1280x1024p60 rootfstype=ext4 root=/dev/mmcblk0p1 rootwait panic=10 ${extra}"' >> "$ROOTFS/etc/default/flash-kernel"

# Enable specific modules at startup
echo "rtc_sunxi" >> "$ROOTFS/etc/initramfs-tools/modules"
echo "mmc_core" >> "$ROOTFS/etc/initramfs-tools/modules"
echo "mmc_block" >> "$ROOTFS/etc/initramfs-tools/modules"
echo "sdhci" >> "$ROOTFS/etc/initramfs-tools/modules"
echo "sdhci-pci" >> "$ROOTFS/etc/initramfs-tools/modules"

chroot_exec flash-kernel