KernelSU kernel for Galaxy TAB A7 with Android 14 version S7DXF9
How to apply
mkdir repack
cd repack
magiskboot unpack ../boot.img
cp ../Image-SM-T220_EUR_14-S7DXF9 kernel
magiskboot repack ../boot.img
mv new-boot.img boot.img
tar cf boot.tar boot.img
- At this point, reboot your tablet into Odin:
- Switch it off (by long holding power , Selecting &
confirming Power off)
- If not yet done, connect it with USB cable to PC
- Press and hold Volume Up and Volume Down at once
- When Odin screen shows up, release Volume Up and Volume Down
odin4 -a boot.tar
Needed tools and files can be found here:
A ready-made boot.tar is also available,
but probably will only work with exactly the same Galaxy Tab A7
Lite model as I have.
How to build kernel from source
- Get kernel sources from
Samsung: ,
enter your device (SM-T220) into search box, then download the
version corresponding to your build number (using XXS7DXF9 for
this example)
- Get my patch: SM-T220-KernelSU.diff
- Unpack:
unzip SM-T220_EUR_14_Opensource-S7DXF9.zip
mkdir Kernel
cd Kernel
tar xfzv ../Kernel.tar.gz
- Make it writeable (why is Samsung distribunting read-only source trees?):
chmod -R u+w .
- Apply my patch (because
KPROBES
does not work correctly on this
old kernel):
patch -p1 -s <SM-T220-KernelSU.diff
- Apply KernelSU:
curl -LSs "https://raw.githubusercontent.com/tiann/KernelSU/main/kernel/setup.sh" | bash -s v0.9.5
- Perform the build procedure as described by Samsung's
README_Kernel.txt
:
export ANDROID_MAJOR_VERSION=r
export ARCH=arm64
make -C $(pwd) O=$(pwd)/out KCFLAGS=-w CONFIG_SECTION_MISMATCH_WARN_ONLY=y gta7litewifi_defconfig
make -C $(pwd) O=$(pwd)/out KCFLAGS=-w CONFIG_SECTION_MISMATCH_WARN_ONLY=y
- You will find the kernel
in
out/arch/arm64/boot/Image
. Indeed, you will
have to use the uncompressed version.