Added basic framebuffer/graphics support (with default Tux logo) which works fine in QEMU and VirtualBox. Tested on x86, not tested on x86_64.

This commit is contained in:
Ivan Davidov 2016-05-10 00:46:51 +03:00
parent de5376295f
commit a9b550a4a1
4 changed files with 16 additions and 10 deletions

View File

@ -6,27 +6,27 @@
# You can find the latest Linux kernel source bundles here:
#
# http://kernel.org
# http://kernel.org
#
KERNEL_SOURCE_URL=http://kernel.org/pub/linux/kernel/v4.x/linux-4.5.3.tar.xz
# You can find the latest GNU libc source bundles here:
#
# http://gnu.org/software/libc
# http://gnu.org/software/libc
#
GLIBC_SOURCE_URL=http://ftp.gnu.org/gnu/glibc/glibc-2.23.tar.bz2
# You can find the latest BusyBox source bundles here:
#
# http://busybox.net
# http://busybox.net
#
BUSYBOX_SOURCE_URL=http://busybox.net/downloads/busybox-1.24.2.tar.bz2
# You can find the latest Syslinux source bundles here:
#
# http://syslinux.org (official website)
# http://syslinux.org (official website)
#
# http://kernel.org/pub/linux/utils/boot/syslinux
# http://kernel.org/pub/linux/utils/boot/syslinux
#
SYSLINUX_SOURCE_URL=http://kernel.org/pub/linux/utils/boot/syslinux/syslinux-6.03.tar.xz
@ -40,7 +40,7 @@ SYSLINUX_SOURCE_URL=http://kernel.org/pub/linux/utils/boot/syslinux/syslinux-6.0
# You can find the latest Links source bundles here:
#
# http://links.twibright.com
# http://links.twibright.com
#
LINKS_SOURCE_URL=http://links.twibright.com/download/links-2.12.tar.bz2
@ -77,7 +77,7 @@ USE_PREDEFINED_BUSYBOX_CONFIG=false
# '/minimal.img/work' or '/minimal/work'. This folder is used by the overlay
# driver to store modifications related to the read only storage. If the overlay
# media is writeable, then all changes on the root filesystem are automatically
#persisted and preserved on reboot.
# persisted and preserved on reboot.
#
# sparse - use sparse file 'minimal.img' with hardcoded maximal size of 1MB (see
# xx_generate_iso.sh). The generated ISO image is larger because the
@ -116,5 +116,5 @@ COPY_SOURCE_ISO=true
# requires more than 1MB free space. The solution is to use folder overlay or to
# edit the script 'xx_generate_iso.sh' and set it to create sparse image file
# with bigger size.
BUILD_OVERLAY_SOFTWARE=false
BUILD_OVERLAY_SOFTWARE=true

View File

@ -41,6 +41,11 @@ else
# Step 2 - enable the 'xz' compression option.
sed -i "s/.*CONFIG_KERNEL_XZ.*/CONFIG_KERNEL_XZ=y/" .config
#sed -i "s/.*CONFIG_DRM_CIRRUS_QEMU.*/CONFIG_DRM_CIRRUS_QEMU=y/" .config
#sed -i "s/.*CONFIG_DRM_BOCHS.*/CONFIG_DRM_BOCHS=y/" .config
#sed -i "s/.*CONFIG_FB_CIRRUS.*/CONFIG_FB_CIRRUS=y/" .config
sed -i "s/.*CONFIG_FB_VESA.*/CONFIG_FB_VESA=y/" .config
fi
# Compile the kernel with optimization for 'parallel jobs' = 'number of processors'.

View File

@ -122,7 +122,8 @@ else
fi
# Create ISOLINUX configuration file.
echo 'default kernel.xz initrd=rootfs.xz' > ./isolinux.cfg
#echo 'default kernel.xz initrd=rootfs.xz vga=769' > ./isolinux.cfg
echo 'default kernel.xz initrd=rootfs.xz vga=ask' > ./isolinux.cfg
# Now we generate the ISO image file.
genisoimage \

View File

@ -12,6 +12,6 @@ if [ "$1" = "-hdd" -o "$1" = "-h" ] ; then
qemu-system-i386 -m 64M -cdrom minimal_linux_live.iso -hda hdd.img -boot d
else
echo "Starting QEMU with attached ISO image and no hard disk."
qemu-system-i386 -m 64M -cdrom minimal_linux_live.iso -boot d
qemu-system-i386 -m 64M -cdrom minimal_linux_live.iso -boot d -vga std
fi