physwizz F41 S kernel version 2
VERSION 3.1 IN POST#3
For OneUI 4
( also works for GSIs)
Samsung securities disabled
More CPU governors
Conservative, On-demand, Userspace, powersave, performance, energy_step, shedutil
Optimised for performance
Overclocked for performance
Underclocked for battery
CPU:
Big 728MHz - ?MHz
Little 403MHz - ?MHz
lz4 default compression added to zram
Installation
Post #2
Kernel
physwizz - Repositories
physwizz has 172 repositories available. Follow their code on GitHub.
github.com
@physwizz
Installing physwizz custom kernels
INSTALL AT YOUR OWN RISK
I AM NOT RESPONSIBLE FOR ANY BRICKED PHONES
But I will help any well-mannered person to recover.
A. Preparation
1. Root the phone
2. Compress your patched boot.img to make boot.tar
3. Copy boot.tar to PC
B. Installation
Method 1
Install from twrp
Reboot to recovery
Backup boot and dtbo
Install kernel zip
Reboot
Method 2
Install kernel from terminal.
1. Download magisk module (magic-flash.zip) from https://github.com/Magisk-Modules-Alt-Repo/magic-flash
2. Install module and reboot.
3. Open terminal.
4. Navigate to folder containing kernel.zip.
Use
ls to list contents
and
cd to change directories
5. Type su
6. Type flash kernel_name.zip
7. Reboot
Method 3
Using ADB
Install adb tools on pc
Connect to PC
Copy zip file to adb folder on pc
Open terminal on pc
Navigate to adb folder
Type
adb sideload file-name.zip
Method 4
Using boot.img
Install AIK Mobile from magisk modules
Use rootexplorer to access
/data/local/AIK-MOBILE
Add patched boot.img and tap unpackimg.sh
Exit the folder and return to see the files.
Edit the files (eg to add a new Image
rename Image to boot.img-zImage and insert in split-image folder)
Tap repackimg.sh
Rename new_image.img to boot.img
Compress boot.img to boot.tar
Copy boot.tar to PC
Reboot phone to download mode
Install boot.tar from odin
AIKLink
Physwizz Collection
Install from magisk modules Use rootexplorer to access /data/local/AIK-MOBILE Add boot.img or recovery.img and tap unpackimg.sh Exit the folder and return to see the files. Edit the files (eg to add a new Image rename Image to boot.img-zImage and insert in split-image folder) Tap repackimg.sh
t.me
C. Removal
Method 1
Reboot to recovery
Restore boot and dtbo
Reboot
Method 2.
Reboot phone to download mode
Install patched boot.tar from odin
@physwizz
physwizz F415f S kernel version 3.1
For OneUI 4
( also works for GSIs)
Samsung securities disabled
More CPU governors
Conservative, On-demand, Userspace, powersave, performance, energy_step, shedutil
Optimised for performance
CPU:
Big 936 MHz - 2314MHz
Little 403MHz - 2054MHz
lz4 default compression added to zram
Installation
Post #2
Kernel
physwizz - Repositories
physwizz has 172 repositories available. Follow their code on GitHub.
github.com
@physwizz
Related
What you need:
1) Download file in attachment
2) Have a working adb-(windows|mac|linux)
3) A linux os (i used debian!)
I take some scripts (like H-repack and H-unpak from http://wiki.cyanogenmod.com)
I get arm compiler from google git
Let's start!
BUILD KERNEL
1) Download from here http://developer.htc.com/ legend's kernel source
2) Decompress, modify and configure it! (you could use the default .config i extracted from my running kernel)
3) Copy boot.img into the AndroidKernelBuilder folder
4) Enter in AndroidKernelBuilder and run my script
./compiler.sh /path/of/the/kernel/source/
5) wait
Now you have your own kernel repacked and ready to be flashed!
INSTALL
1) copy boot_repacked.img to /sdcard/
2) reboot in recovery
3) adb-linux shell
(from now inside the shell)
# mount /sdcard/
# cat /dev/zero > /dev/mtd/mtd2
# flash_image boot /sdcard/boot_repacked.img
# reboot
Now keep all the fingers you can crossed! (and sorry for all the errors i may have done)
http://www.4shared.com/file/dKJH5kJP/AndroidKernelBuildertar.html
You are the man!
In the week end i'll try to compile by myself.
Preliminary requirements:
1. Phone rooted.
2. CWM recovery installed.
3. Full backup created using CWM.
Actions:
1. Download the mkbootimg tools.
2. Get the current boot.img by using:
adb pull sdcard/clockworkmod/backup/xxx/boot.img
if sdcard symlink does not exist grab it from: /data/media/0/clockworkmod/backup/xxx/boot.img
3. use umkbootimg to extract boot.img:
./umkbootimg boot.img
you suppose to get two files:
1. zImage - kernel
2. initramfs.cpio.gz - ramdisk filesystem
4. build samsung kernel with dtb support:
4.1. Download kernel version from samsung website.
4.2 Do make exynos5422-k3g_00_defconfig
4.3 manually edit the .config created by adding the following lines:
CONFIG_BUILD_ARM_APPENDED_DTB_IMAGE=y
CONFIG_BUILD_ARM_APPENDED_DTB_IMAGE_NAMES="exynos5422-k3g_eur_open_10"
CONFIG_ARM_APPENDED_DTB=y
CONFIG_ARM_ATAG_DTB_COMPAT=y
CONFIG_ARM_ATAG_DTB_COMPAT_CMDLINE_FROM_BOOTLOADER=y
4.4 run: make -j8
5. Take the build product from:
arch/arm/boot/zImage-dtb and copy it to the folder where you extracted the boot.img
6. Run the following to create a new boot.img:
./mkbootimg --kernel zImage-dtb --ramdisk initramfs.cpio.gz -o new_boot.img
7. Push the new_boot.img to the sdcard:
adb push new_boot.img sdcard/
8. Get into adb shell and run from there:
su -c dd if=/sdcard/new_boot.img of=/dev/block/platform/12200000.dwmmc0/by-name/BOOT
9. Get out of adb shell, and run adb reboot.
10. Wait for the phone to upload.. And you've get your own kenrel running on Samsung galaxy s5 sm-g900h!!
I am trying to do some customization on S21 Ultra 5G SM-G998B
The source code is obtained from Samsung open source (SM-G998B_RR_Opensource.zip - G998BXXS2AUBB)
Firmware G998BXXS2AUBB_G998BOXM2AUBB_.zip is downloaded from sammobile
Step 1) Extract boot.img from firmware
The boot.img is extracted from the firmware's AP_G998BXXS2AUBB_CL20701476_QB38432109_REV01_user_low_ship_MULTI_CERT_meta_OS11.tar (using 7-zip and unpack with lz4)
The boot.img is then unpacked as follows:
$ ./unpack_bootimg.py --boot_img ./sambootimg/boot.img --out ./out
boot_magic: ANDROID!
kernel_size: 28807680
ramdisk size: 697174
os version: 11.0.0
os patch level: 2021-03
boot image header version: 3
command line args: androidboot.selinux=permissive
This step will output the following files: kernel, ramdisk and mkbootimg_args.json
Step 2) Building kernel
After building the samsung open source kernel (no changes have been made to Kernel code), the Image is obtained at arch/arm64/boot
I understand that Android 11 is based on ver 3 header. The boot.img only consists of Kernel and ramdisk
Step 3) Make boot.img
This kernel image (Image) together with ramdisk is created as follows:
$ ./mkbootimg.py --kernel ./myBootimg/Image --ramdisk ./out/ramdisk --header_version 3 --os_version 11.0.0 --os_patch_level 2021-03 --cmdline androidboot.selinux=permissive --out ./myBootimg/boot.img
$ tar -cvf boot.img.tar boot.img
This created boot.img.tar
Step 4) Magisk patch
After tar, this boot.img.tar is patched according to the magisk procedure which gives magisk_patched-22006_CjCUM.tar
The patched download to phone via the Odin utility successfully
After phone restart, it hang at Samsung screen (with the Android robot)
May I checked if I missed out any other steps?
mhc009 said:
I am trying to do some customization on S21 Ultra 5G SM-G998B
The source code is obtained from Samsung open source (SM-G998B_RR_Opensource.zip - G998BXXS2AUBB)
Firmware G998BXXS2AUBB_G998BOXM2AUBB_.zip is downloaded from sammobile
Step 1) Extract boot.img from firmware
The boot.img is extracted from the firmware's AP_G998BXXS2AUBB_CL20701476_QB38432109_REV01_user_low_ship_MULTI_CERT_meta_OS11.tar (using 7-zip and unpack with lz4)
The boot.img is then unpacked as follows:
$ ./unpack_bootimg.py --boot_img ./sambootimg/boot.img --out ./out
boot_magic: ANDROID!
kernel_size: 28807680
ramdisk size: 697174
os version: 11.0.0
os patch level: 2021-03
boot image header version: 3
command line args: androidboot.selinux=permissive
This step will output the following files: kernel, ramdisk and mkbootimg_args.json
Step 2) Building kernel
After building the samsung open source kernel (no changes have been made to Kernel code), the Image is obtained at arch/arm64/boot
I understand that Android 11 is based on ver 3 header. The boot.img only consists of Kernel and ramdisk
Step 3) Make boot.img
This kernel image (Image) together with ramdisk is created as follows:
$ ./mkbootimg.py --kernel ./myBootimg/Image --ramdisk ./out/ramdisk --header_version 3 --os_version 11.0.0 --os_patch_level 2021-03 --cmdline androidboot.selinux=permissive --out ./myBootimg/boot.img
$ tar -cvf boot.img.tar boot.img
This created boot.img.tar
Step 4) Magisk patch
After tar, this boot.img.tar is patched according to the magisk procedure which gives magisk_patched-22006_CjCUM.tar
The patched download to phone via the Odin utility successfully
After phone restart, it hang at Samsung screen (with the Android robot)
May I checked if I missed out any other steps?
Click to expand...
Click to collapse
Hmm... Maybe you have to do a factory reset / wipe data in recovery.
Just guessing ...
Hi to all, this is my script to have a running magisk on a linux pc!
- https://github.com/daboynb/magisk_for_linux
!Before run make sure you have usb debug enabled and you have trusted the computer.
This run only on debian based.
Apt commands.
You can replace them with your distro package manager!
1 - Allow to be executed -->> chmod +x magisk.sh
2 - Run the script -->> ./magisk.sh
3 - When it ask for device connect it
4 - Insert the path to the stock boot.img
5 - Wait and when completed your file will be on /home/$USER/Magisk/pc_magisk
Since this script patch only the boot.img, there's a vbmeta.img with disabled verified boot.
Made with avbtool.
Command --> avbtool make_vbmeta_image --flags 2 --padding_size 4096 --output vbmeta_disabled.img
Based on the things discovered by: https://dev.sect0uch.world/SecT0uch/Magisk_boot_flasher#run-patch-boot-locally
Great job on this my friend, thank you
Revive your laptop Esprimo Mobile V5535 in 2023 by installing Lubuntu Linux distro with custom kernel.
Fastest custom kernel world-wide with lots of innovative features!
Linux kernel 4.14.x (custom A2N kernel optimized for this device)
Tested to work very well on Lubuntu 20.04.4 LTS 64-bit
Supports full 2D hardware acceleration with proper 1280x800 resolution having smooth scrolling!
Note: kernel is optimized to work well with Intel(R) Core(TM)2 Duo CPU T7300 @ 2.00GHz.
If you have a different CPU, then you may need to adapt some drivers in kernel (CPU governor "ondemand" and DVFS driver for proper thermal throttling and performance), that means you need to download kernel source code, edit, build and install kernel.
If you need help, just ask in this thread how to adapt for your CPU.
In addition you may need to adapt attached scripts to your needs and to the used CPU.
KERNEL SPECIAL FEATURE
custom DVFS thermal driver with adjustable CPU throttling temp 55-100°C, developed by me.
By default it's set to 75°C, but you can change it in /etc/init.d/user.sh (script is in optimizations.tar.gz)
INSTALLATION
1. Download lubuntu-20.04.5-desktop-amd64.iso and copy the iso-image to any USB-thumb or burn it to a DVD-R
2. Boot from DVD or USB medium (press F2 after you power on) and Install Lubuntu to your V5535 like any other OS.
3. install a2n kernel, sis_m672 display driver and optimizations by simply running the installations-script inside the folder.
E.g. open terminal emulator in a2n_kernel_V5535 folder and install the a2n kernel by issuing cmd:
Code:
./install_a2n_kernel.sh
cd ..
cd sis_672_driver
./install_sis_driver.sh
cd ..
cd optimizations
./install_optimizations.sh
4. reboot
5. Update system packages (sudo apt-get update && sudo apt-get upgrade), but make sure to not override A2N kernel with stock generic kernel.
If this accidentally happens, no problem, just re-install A2N kernel and reboot and choose to boot with "4.14.x-a2n-g..."
6. Additional optimizations (highly recommended)
Code:
sudo nano /etc/initramfs-tools/initramfs.conf
add the following lines to the bottom of your /etc/initramfs-tools/initramfs.conf file:
Code:
# read_ahead_kb
echo 1024 > /sys/block/sr0/queue/read_ahead_kb
echo 1024 > /sys/block/sda/queue/read_ahead_kb
and make sure that you have: "COMPRESS=lz4" in this file, save and exit.
7. Edit grub boot-loader
Code:
sudo nano /etc/default/grub
and make sure that you have the following config:
Code:
GRUB_DEFAULT=saved
GRUB_SAVEDEFAULT=true
#GRUB_TIMEOUT_STYLE=hidden
GRUB_TIMEOUT=3
...
# very important for smooth scrolling!!!
GRUB_TERMINAL=console
...
# this is the best resolution supported by VGA BIOS in case the X11-video driver fails to load, so as fallback!!
GRUB_GFXMODE=1024x768
...
GRUB_DISABLE_LINUX_UUID=true
finally, save and exit.
8. Update initramfs, grub and reboot:
Code:
sudo update-initramfs -u -k all
sudo update-grub
systemctl reboot
Donations
This kernel is for free, but if you like my work, you can offer me a coffee.
Source Code
a2n kernel
Xorg SiS M672
CREDITS
Linus Torvalds - for Linux kernel
Lubuntu - for a perfect Linux distro