1. "Porteus Kernel Builder" was updated to mkKernel-19.05.26-noarch-1.xzm
Please refer to
Porteus Kernel Builder (Post by neko #52232)
mkKernel-19.05.26-noarch-1.xzm (5.3 M)
http://simosnet.com/livecd/isobuilder/k ... arch-1.xzm
md5sum: 8e43570be5d119ee570826b7fe102840 mkKernel-19.05.26-noarch-1.xzm
=== AUFS patch applying process was changed from all applying to only core patch applying. ===
(1) all applying (OLD: example 5.2-rc)
Create all patch. (aufs.patch)
/usr/local/share/mkKernel/lib/v5.2-rc/full.get.aufs.patch
Code: Select all
#!/bin/sh
mkdir auf
cd auf
git clone https://github.com/sfjro/aufs5-standalone.git aufs5-standalone.git
cd aufs5-standalone.git
if ! ( git checkout origin/aufs5.2 )
then
echo "get aufs5.x-rcN"
git checkout origin/aufs5.x-rcN
fi
mkdir ../a ../b
cp -r {Documentation,fs,include} ../b
rm ../b/include/uapi/linux/Kbuild 2>/dev/null || rm ../b/include/linux/Kbuild
cd ..
diff -rupN a/ b/ > ../aufs.patch
cat aufs5-standalone.git/*.patch >> ../aufs.patch
cd ../
rm -r auf
Then apply aufs.patch to source files.
(2) core patch applying (NEW: example 5.2-rc)
Get "AUFS-git"
/usr/local/share/mkKernel/lib/v5.2-rc/get.aufs.patch
Code: Select all
#!/bin/sh
mkdir auf
cd auf
git clone https://github.com/sfjro/aufs5-standalone.git aufs5-standalone.git
cd aufs5-standalone.git
if ! ( git checkout origin/aufs5.2 )
then
echo "get aufs5.x-rcN"
git checkout origin/aufs5.x-rcN
fi
Then apply core patches to source files.
/usr/local/share/mkKernel/lib/v5.2-rc/ownPatch.sh
Code: Select all
PATCHDIR=../../auf/aufs5-standalone.git
# [auf/aufs5-standalone.git/README]
#- copy ./{Documentation,fs,include/uapi/linux/aufs_type.h} files to your
# kernel source tree. Never copy $PWD/include/uapi/linux/Kbuild.
cp -r "$PATCHDIR"/fs ./
cp -r "$PATCHDIR"/Documentation ./
cp "$PATCHDIR"/include/uapi/linux/aufs_type.h ./include/uapi/linux
#- apply ./aufs5-kbuild.patch to your kernel source files.
echo '-------------------aufs5-kbuild'
cat "$PATCHDIR"/aufs5-kbuild.patch | patch -p1
#- apply ./aufs5-base.patch too.
echo '-------------------aufs5-base'
cat "$PATCHDIR"/aufs5-base.patch | patch -p1
#- apply ./aufs5-mmap.patch too.
echo '-------------------aufs5-mmap'
cat "$PATCHDIR"/aufs5-mmap.patch | patch -p1
#- apply ./aufs5-standalone.patch too, if you have a plan to set
# CONFIG_AUFS_FS=m. otherwise you don't need ./aufs5-standalone.patch.
#
# % grep CONFIG_AUFS_FS v5.2-rc/*.config
#v5.2-rc/32bit.config:CONFIG_AUFS_FS=y
#v5.2-rc/64bit.config:CONFIG_AUFS_FS=y
#
#- enable CONFIG_AUFS_FS, you can select either
# =m or =y.
#There several other patches in aufs5-standalone.git. They are all
#optional. When you meet some problems, they will help you.
#- aufs5-loopback.patch
# Supports a nested loopback mount in a branch-fs. This patch is
# unnecessary until aufs produces a message like "you may want to try
# another patch for loopback file".
#- vfs-ino.patch
# Modifies a system global kernel internal function get_next_ino() in
# order to stop assigning 0 for an inode-number. Not directly related to
# aufs, but recommended generally.
#- tmpfs-idr.patch
# Keeps the tmpfs inode number as the lowest value. Effective to reduce
# the size of aufs XINO files for tmpfs branch. Also it prevents the
# duplication of inode number, which is important for backup tools and
# other utilities. When you find aufs XINO files for tmpfs branch
# growing too much, try this patch.
#- lockdep-debug.patch
# Because aufs is not only an ordinary filesystem (callee of VFS), but
# also a caller of VFS functions for branch filesystems, subclassing of
# the internal locks for LOCKDEP is necessary. LOCKDEP is a debugging
# feature of linux kernel. If you enable CONFIG_LOCKDEP, then you will
# need to apply this debug patch to expand several constant values.
# If don't know what LOCKDEP, then you don't have apply this patch.
For each kernel version 3.18, 4.14, 4.19, 4.4, 4.9, 5.0, 5.1, 5.2-rc,
this change was done.
Note 1: For kernel version 5.2-rc line, after AUFS patch applying, owen patch is applied.
Code: Select all
for SRC in fs+aufs+hfsnotify.c
do
src=`echo $SRC|tr '+' '/'`
#====<loop>====#
if [ ! -f $KDIR/v$KVER/$COMPARCH/linux-${KVER}/${src} ]
then
echo "There is not $src"
exit 1
fi
if [ ! -f /usr/local/share/mkKernel/lib/v${V3_4}.${SUB}/auf.patch.${SRC} ]
then
echo "There is not Own Patch."
exit 1
fi
DIFF=`diff $KDIR/v$KVER/$COMPARCH/linux-${KVER}/${src} /usr/local/share/mkKernel/lib/v${V3_4}.${SUB}/auf.patch.${SRC}`
if [ -n "$DIFF" ]
then
echo "Own Patch is mismatch !!"
exit 1
fi
cp /usr/local/share/mkKernel/lib/v${V3_4}.${SUB}/own.patch.${SRC} $KDIR/v$KVER/$COMPARCH/linux-${KVER}/${src}
#====<loop>====#
done
exit 0
Note 2:
This core patches applying is introduced by @Kriss's help.
@Kriss! Thank you very much.
2. current kernel version
[from
https://www.kernel.org/finger_banner]
The latest stable version of the Linux kernel is: 5.1.5
The latest mainline version of the Linux kernel is: 5.2-rc1
The latest stable 5.1 version of the Linux kernel is:
5.1.5 <---
NEW
The latest stable 5.0 version of the Linux kernel is:
5.0.19 <---
NEW
The latest longterm 4.19 version of the Linux kernel is: 4.19.46 <---NEW
The latest longterm 4.14 version of the Linux kernel is: 4.14.122 <---NEW
The latest longterm 4.9 version of the Linux kernel is: 4.9.179 <---NEW
The latest longterm 4.4 version of the Linux kernel is: 4.4.180
The latest longterm 3.18 version of the Linux kernel is: 3.18.140 (EOL)
The latest linux-next version of the Linux kernel is: next-20190524
3.
NEW Example of updated kernel that was built by "Porteus Kernel builder" was updated.
"copy firmwares from firmware packages" function was used when build kernel.
=== Simple package (vmlinuz, 000-kernel.xzm, 06-crippled_sources-NNN-XXbit.xzm) ===
[
5.1.5]
32bit-kernel5.1.5.tar (85 M)
http://www.mediafire.com/file/ca4qtqt3o ... l5.1.5.tar
md5sum: 682ccded8144fe8f2544bc99ee39dd12 32bit-kernel5.1.5.tar
64bit-kernel5.1.5.tar (90 M)
http://www.mediafire.com/file/cl07i2ctw ... l5.1.5.tar
md5sum: db8cf1cb50321cbd641d43f6781375ed 64bit-kernel5.1.5.tar
[
5.0.19]
32bit-kernel5.0.19.tar (87 M)
http://www.mediafire.com/file/2a3k3p28t ... 5.0.19.tar
md5sum: 0b0b6a1858685bc319d1f4ac5ca8a6a7 32bit-kernel5.0.19.tar
64bit-kernel5.0.19.tar (92 M)
http://www.mediafire.com/file/nu2c3ns6c ... 5.0.19.tar
md5sum: 500e01fb96a9739cb56d032e04b77f43 64bit-kernel5.0.19.tar
Note 1: Compiler
Compiled by gcc-
8.3.0-x86_64-1
Note 2: AUFS patch
Kernel 5.1.5 was patched with AUFS_VERSION AUFS_VERSION "5.1-20190520".
Kernel 5.0.19 was patched with AUFS_VERSION AUFS_VERSION "5.0-20190311".
Thanks.