• The download URL for the kernel now points to stable version "3.16".

• Minor formatting changes - the scripts should be more readable this way.
• Minor comment updates.
This commit is contained in:
Ivan Davidov 2014-08-08 02:30:28 +03:00
parent 7a97f7e982
commit aee022b07a
9 changed files with 30 additions and 12 deletions

View File

@ -2,7 +2,7 @@
#
# http://kernel.org
#
KERNEL_SOURCE_URL=https://www.kernel.org/pub/linux/kernel/v3.x/linux-3.15.6.tar.xz
KERNEL_SOURCE_URL=https://www.kernel.org/pub/linux/kernel/v3.x/linux-3.16.tar.xz
# You can find the latest BusyBox source bundles here:
#

View File

@ -19,4 +19,5 @@ mkdir ../work/kernel
# Extract kernel to folder 'kernel'
# Full path will be something like, kernel\linux-3.16
tar -xvf $ARCHIVE_FILE -C ../work/kernel
cd ..

View File

@ -18,4 +18,5 @@ sed -i "s/.*CONFIG_DEFAULT_HOSTNAME.*/CONFIG_DEFAULT_HOSTNAME=\"minimal-linux-li
# Good explanation of the different kernels
# http://unix.stackexchange.com/questions/5518/what-is-the-difference-between-the-following-kernel-makefile-terms-vmlinux-vmlinux
make bzImage
cd ../../..

View File

@ -16,8 +16,8 @@ wget -c $DOWNLOAD_URL
rm -rf ../work/busybox
mkdir ../work/busybox
# Extract kernel to folder 'busybox'
# Extract busybox to folder 'busybox'
# Full path will be something like, busybox\busybox-1.22.1
tar -xvf $ARCHIVE_FILE -C ../work/busybox
cd ..
cd ..

View File

@ -5,7 +5,7 @@ cd work/busybox
# Change to the first directory ls finds, e.g/ busybox-1.22.1
cd $(ls -d *)
# Clean's the source?
# Remove previously generated artefacts
make clean
# Create a default configuration file

View File

@ -1,12 +1,17 @@
#/bin/sh
#!/bin/sh
cd work
rm -rf rootfs
cd busybox
cd $(ls -d *)
cp -R _install ../../rootfs
cd ../../rootfs
rm -f linuxrc
mkdir dev
mkdir etc
mkdir proc
@ -15,7 +20,9 @@ mkdir src
mkdir sys
mkdir tmp
chmod 1777 tmp
cd etc
touch bootscript.sh
echo '#!/bin/sh' >> bootscript.sh
echo 'dmesg -n 1' >> bootscript.sh
@ -24,6 +31,7 @@ echo 'mount -t proc none /proc' >> bootscript.sh
echo 'mount -t sysfs none /sys' >> bootscript.sh
echo >> bootscript.sh
chmod +x bootscript.sh
touch welcome.txt
echo >> welcome.txt
echo ' #####################################' >> welcome.txt
@ -32,6 +40,7 @@ echo ' # Welcome to "Minimal Linux Live" #' >> welcome.txt
echo ' # #' >> welcome.txt
echo ' #####################################' >> welcome.txt
echo >> welcome.txt
touch inittab
echo '::sysinit:/etc/bootscript.sh' >> inittab
echo '::restart:/sbin/init' >> inittab
@ -45,15 +54,18 @@ echo 'tty3::respawn:/bin/sh' >> inittab
echo 'tty4::once:cat /etc/welcome.txt' >> inittab
echo 'tty4::respawn:/bin/sh' >> inittab
echo >> inittab
cd ..
touch init
echo '#!/bin/sh' >> init
echo 'exec /sbin/init' >> init
echo >> init
chmod +x init
cp ../../*.sh src
cp ../../.config src
chmod +r src/*.sh
chmod +r src/.config
cd ../..
cd ../..

View File

@ -1,8 +1,11 @@
#!/bin/sh
cd work
rm -f rootfs.cpio.gz
cd rootfs
find . | cpio -H newc -o | gzip > ../rootfs.cpio.gz
cd ../..
rm -f rootfs.cpio.gz
cd rootfs
find . | cpio -H newc -o | gzip > ../rootfs.cpio.gz
cd ../..

View File

@ -1,9 +1,11 @@
#/bin/sh
rm -f minimal_linux_live.iso
cd work/kernel
cd $(ls -d *)
make isoimage FDINITRD=../../rootfs.cpio.gz
cp arch/x86/boot/image.iso ../../../minimal_linux_live.iso
cd ../../..
cd ../../..

View File

@ -8,4 +8,3 @@
./5_generate_rootfs.sh
./6_pack_rootfs.sh
./7_generate_iso.sh