rootfsinstall.sh: update baytrail target to use mainstream kernel (currently 4.13.12mamba-x86_64)
This commit is contained in:
parent
086d58b0f2
commit
fbd9a84e42
@ -3,6 +3,7 @@
|
|||||||
#
|
#
|
||||||
# Based on rpi-install by: Davide Madrisan
|
# Based on rpi-install by: Davide Madrisan
|
||||||
# Modified by: Silvan Calarco <silvan.calarco@mambasoft.it>
|
# Modified by: Silvan Calarco <silvan.calarco@mambasoft.it>
|
||||||
|
# License: GPL 3.0
|
||||||
#
|
#
|
||||||
|
|
||||||
SYSTEMFSTYPE=ext4
|
SYSTEMFSTYPE=ext4
|
||||||
@ -183,9 +184,7 @@ case $TARGETDEVICE in
|
|||||||
BOOTFSTYPE=fat16
|
BOOTFSTYPE=fat16
|
||||||
BOOTFSSIZE=22M
|
BOOTFSSIZE=22M
|
||||||
BOOTFSSTART=1049k
|
BOOTFSSTART=1049k
|
||||||
KERNELVER="4.9.17-baytrail"
|
INSTALLPACKAGES="kernel-mamba-x86_64 kernel-mamba-x86_64-headers \
|
||||||
KERNELDEST="@BOOT@/vmlinuz-$KERNELVER"
|
|
||||||
INSTALLPACKAGES="kernel-baytrail kernel-baytrail-headers \
|
|
||||||
chipone_ts grub-efi rtl8723bs_bt rtl8723bs axpd acpi_tables_patch $INSTALLPACKAGES"
|
chipone_ts grub-efi rtl8723bs_bt rtl8723bs axpd acpi_tables_patch $INSTALLPACKAGES"
|
||||||
REMOVEPACKAGES=""
|
REMOVEPACKAGES=""
|
||||||
FSTAB_ROOT_DEVICE="/dev/sda2"
|
FSTAB_ROOT_DEVICE="/dev/sda2"
|
||||||
@ -458,13 +457,17 @@ if [ ! "${IMAGEMODE}" ]; then
|
|||||||
if [ "$TARGETDEVICE" = "baytrail" ]; then
|
if [ "$TARGETDEVICE" = "baytrail" ]; then
|
||||||
# create EFI Grub 64 bit image
|
# create EFI Grub 64 bit image
|
||||||
mkdir -p $BOOTMP/EFI/BOOT/
|
mkdir -p $BOOTMP/EFI/BOOT/
|
||||||
grub-mkimage -o $BOOTMP/EFI/BOOT/bootx64.efi -O x86_64-efi -p /efi/boot \
|
chroot $ROOTMP grub-mkimage -o /tmp/bootx64.efi -O x86_64-efi -p /efi/boot \
|
||||||
part_gpt part_msdos ntfs ntfscomp hfsplus fat ext2 normal chain boot linux echo \
|
part_gpt part_msdos ntfs ntfscomp hfsplus fat ext2 normal chain boot linux echo \
|
||||||
help gfxterm gettext png efi_gop efi_uga search search_label search_fs_uuid \
|
help gfxterm gettext png efi_gop efi_uga search search_label search_fs_uuid \
|
||||||
usb_keyboard all_video || {
|
usb_keyboard all_video || {
|
||||||
errorAndExit $"Error: unable to create GRUB x86_64-efi image" &>>$LOGFILE
|
errorAndExit $"Error: unable to create GRUB x86_64-efi image" &>>$LOGFILE
|
||||||
}
|
}
|
||||||
|
mv $ROOTMP/tmp/bootx64.efi $BOOTMP/EFI/BOOT/
|
||||||
|
|
||||||
|
for f in $ROOTMP/lib/modules/*mamba-x86_64; do
|
||||||
|
KERNELVER=`basename $f`
|
||||||
|
done
|
||||||
KERNELDEST="vmlinuz-$KERNELVER"
|
KERNELDEST="vmlinuz-$KERNELVER"
|
||||||
INITRAMFSDEST="initramfs-$KERNELVER.img"
|
INITRAMFSDEST="initramfs-$KERNELVER.img"
|
||||||
chroot $ROOTMP depmod $KERNELVER
|
chroot $ROOTMP depmod $KERNELVER
|
||||||
|
Loading…
Reference in New Issue
Block a user