Help how to change kernel and mesa without gearlock ?

NotSnail

Active member
I cannot run primeos because k4.19 is not compatible with my pc . So is there a way to change mesa and kernel without gearlock . It would be very helpful .
 

Xtr

Active member
I cannot run primeos because k4.19 is not compatible with my pc . So is there a way to change mesa and kernel without gearlock . It would be very helpful .
To change kernel without gearlock and pre install it to the ISO, follow the steps carefully.
First boot to gearlock recovery mode in any Android x86 with installed newer kernel and open virtual terminal.
Then from virtual terminal use uname -a command to verify its a newer kernel.
1. Mount the drive on which Prime OS iso is present.
x=partition number
mkdir /tmp/c
mount /dev/sdax /tmp/c
Or for NTFS partition-
mount.ntfs /dev/sdax /tmp/c
2. change directory to the folder in which Prime OS ISO image is present
cd /tmp/c/Users/<your name>/Downloads
3. Loop mount the ISO and next the sfs and get the system.img
mkdir /tmp/iso
mount -o loop prime*.iso /tmp/iso
mount /tmp/iso/system.sfs /tmp/iso
now let's make a copy of the system.img to your main disk to change kernel
pv /tmp/system.img > /tmp/c/system.img
wait for it to complete; then
loop mount the system.img
mkdir /tmp/system
mount /tmp/c/system.img /tmp/system
There are three things that should be replaced to change the kernel.
Delete old kernel modules to save space in system image.
rm -rf /tmp/system/lib/firmware/* && rm -rf /tmp/system/lib/modules/*
copy kernel modules and firmware from your booted android x86 to the prime OS system image
gclone is a gearlock specific command, equivalent to running rsync -ah --info=progress2
you can substitute cp -r for that as well.
gclone /system/lib/modules/ /tmp/system/lib/modules/
gclone /system/lib/firmware/ /tmp/system/lib/firmware/

Now lets copy the kernel image from booted android x86 to your main drive
cp /gearlock/gearroot/$SRC/kernel /tmp/c/
Safely unmount the system.img.
umount /tmp/c/system.img
Now type exit and enter, then boot to windows.
Download a mksquashfs.exe, then use it to pack the system.img to system.sfs.
Then put the system.sfs and new kernel image back to the iso (I use ultra ISO for this) and install Prime OS, you will get the new Kernel.
 
Last edited:
I cannot run primeos because k4.19 is not compatible with my pc . So is there a way to change mesa and kernel without gearlock . It would be very helpful .
install kernel then ask someone who have gearlock installed on prime os to give ramdisk.img and initrd.img and gearlock file then install mesa from recovery
Post automatically merged:

install kernel then ask someone who have gearlock installed on prime os to give ramdisk.img and initrd.img and gearlock file then install mesa from recovery
also after installing kernel can u give me system.img and those above mentioned files ?
 

NotSnail

Active member
install kernel then ask someone who have gearlock installed on prime os to give ramdisk.img and initrd.img and gearlock file then install mesa from recovery
Post automatically merged:


also after installing kernel can u give me system.img and those above mentioned files ?
My 10th boards are just a week far . I will probably do it after the exams . So you will have to wait till then .
 

Similar threads

Similar threads

Get Connected

Discord Server

New Threads

Top