Distro PrimeOS Modified 2.1.0 based on @Kamazok

mozixun

Member
VC
92
The @Kamazok PrimeOS 2.1.0 is very nice,but it has s some problems and I fixed it.
The screenshot is below:
IMG_20221006_102638.jpg


The new things I add:
1.NEWEST Gearlock installed **It needs some fixes to work
2.The better ARM Translator(Kamazok's translator cannot open QQ and this could)

But it need install this Magisk module:https://mega.nz/file/Ye4VwR6Y#CFUNKFBSphcgs5JPp3Z2Lesn7lErPdBR3KNaScL8aFk

3.initrd-magisk has been installed(Gearlock couldn't work)
*****WARNING:If you want to let your gearlock work please look at there:https://aopc.dev/t/how-to-use-magisk-delta-instead-of-initrd-magisk-android-11-and-up-only.1458/
I have tested that LSPosed works perfect

4.system.img has been supercharged,so please install to NTFS/Ext partition!

5.Gamecenter(Keymapping) added

I suggest install the Xanmod's 5.10.9 kernel package,it works better:https://github.com/Weeb-Linux/Darkm...9/GoogleLTS_xanmod1._Kernel_5.10.9_pledge.gxp

Also I recommend install this gearlock package:https://mega.nz/file/lSASwJxA#hmr_pcT7EinKZUKjU3Z6b1hsqZoWa5IyBFkSASXQ3og

It could fix some microcode error (the AXON's package)

"""This PrimeOS mod'sdownload link is:https://mega.nz/file/5f42kTrL#-j1KW4LlUSSUII1vPpPPu6Imt6wPfTVVFMHKVKvlS1o

Wish you have a nice experience!


1665039602282.jpeg
 
Last edited:

realik17

New member
VC
16
you could install magisk-delta or directly use initrd-magisk,this operating system has included initrd-magisk
Post automatically merged:


you may need to use data.img instead of live boot
Post automatically merged:


If you really want to use,delete the boot line that in
"xxxxx DATA=",delete the "DATA=",then you could boot
Post automatically merged:


You could use the Kamazok's PrimeOS 2.1.0,than replace the file in my zip,and you could use it
Post automatically merged:


you may need to create data.img
sorry. You mean I downloaded the 7Zs of both you and kamazok. Unzip both, and then copy-paste your content over kamazok's content, overwriting any conflicts?

I have installed kamazok's OS, but his OS has some bugs. Not big bugs, but small bugs. Does your modification fix these errors? I wrote a list of bugs on his thread.
 

TukangM

Member
do you know to fix video can't play? in primeOS-mainline_0.6.1
if you have device using intel igpu pc/laptop... . android maybe need turn on/of some video codec and if on. codec will try find gpu amd. if you have nvidia gpu. not supported cause not opensource driver. if you have all amd or amd apu gpu you be luckly
 

mozixun

Member
VC
92
sorry. You mean I downloaded the 7Zs of both you and kamazok. Unzip both, and then copy-paste your content over kamazok's content, overwriting any conflicts?

I have installed kamazok's OS, but his OS has some bugs. Not big bugs, but small bugs. Does your modification fix these errors? I wrote a list of bugs on his thread.
Yes,just copy-paste
 
@mozixun I want to change kernel but gearlock says it can't mount system.img read/write.. also
houdini works fine.. installed magisk delta instead of intrd according to you but still system not writable
If you installed on ext4 it can be use by this
1.batchapk tool, Android PC Toolbox
2. Unpack system img use 1 tool above
3. Use paragon etxfs or diskgenius to move system unpacked
4. Copy paste system unpacked to your prime folder
Example in x:\primeos\here alongside the kernel etc

Cause gearlock need run at first boot with system sfs to supercharged unpack it to folder in ext4
I didn't use ntfs since i have same problem like you so idk in ntfs , but he say supercharged but can't mount system while install kernel in gearlock, maybe reinstall gearlock in terminal emulator, i didn't test it but maybe later will try
 

asser19

New member
VC
14
If you installed on ext4 it can be use by this
1.batchapk tool, Android PC Toolbox
2. Unpack system img use 1 tool above
3. Use paragon etxfs or diskgenius to move system unpacked
4. Copy paste system unpacked to your prime folder
Example in x:\primeos\here alongside the kernel etc

Cause gearlock need run at first boot with system sfs to supercharged unpack it to folder in ext4
I didn't use ntfs since i have same problem like you so idk in ntfs , but he say supercharged but can't mount system while install kernel in gearlock, maybe reinstall gearlock in terminal emulator, i didn't test it but maybe later will try
Yes on ext4 .. primeos the original had system.sfs but this one had .img - so I deleted the .sfs one 😆 alright I have APT and will try to unpack so it will be a folder called system right? And then I can move out the old packed system.img from the prime partition correct?
Post automatically merged:

If you installed on ext4 it can be use by this
1.batchapk tool, Android PC Toolbox
2. Unpack system img use 1 tool above
3. Use paragon etxfs or diskgenius to move system unpacked
4. Copy paste system unpacked to your prime folder
Example in x:\primeos\here alongside the kernel etc

Cause gearlock need run at first boot with system sfs to supercharged unpack it to folder in ext4
I didn't use ntfs since i have same problem like you so idk in ntfs , but he say supercharged but can't mount system while install kernel in gearlock, maybe reinstall gearlock in terminal emulator, i didn't test it but maybe later will try
I'll try and report back if it fixed the kernel installation .. I searched on how to mount system rw but failed using terminal seems like android 11 problem. If it didn't work I'll try later to reinstall gearlock.
Also through gearlock when I try supercharge it says system is supercharged so IDK .. apparently op was able to install 5.10 kernel with his configuration as he mentioned tho I followed the magisk link he provided and reproduced what he did successfully and yeah gearlock doesn't report issue with sys busy but it just can't install a package
 
Last edited:
Yes on ext4 .. primeos the original had system.sfs but this one had .img - so I deleted the .sfs one 😆 alright I have APT and will try to unpack so it will be a folder called system right? And then I can move out the old packed system.img from the prime partition correct?
Post automatically merged:


I'll try and report back if it fixed the kernel installation .. I searched on how to mount system rw but failed using terminal seems like android 11 problem. If it didn't work I'll try later to reinstall gearlock.
Also through gearlock when I try supercharge it says system is supercharged so IDK .. apparently op was able to install 5.10 kernel with his configuration as he mentioned tho I followed the magisk link he provided and reproduced what he did successfully and yeah gearlock doesn't report issue with sys busy but it just can't install a package
Yes remove system img after replace with unpacked , check gearloc version maybe its old ,i download 7.3.3 seem size smaller than inside the zip one
 

asser19

New member
VC
14
@
Yes remove system img after replace with unpacked , check gearloc version maybe its old ,i download 7.3.3 seem size smaller than inside the zip one
It worked thank you :)
Post automatically merged:

@

It worked thank you :)
Edit : after kernel installed it reboots after gearlock logo lol
Post automatically merged:

@

It worked thank you :)
Post automatically merged:


Edit : after kernel installed it reboots after gearlock logo lol
Well apparently something goes wrong after unpacking the system img gearlock works but even if I skip gearlock .. can't boot properly with the unpacked system img for some reason.
 
Last edited:

compicat

New member
VC
8
@mozixun I want to change kernel but gearlock says it can't mount system.img read/write.. also
houdini works fine.. installed magisk delta instead of intrd according to you but still system not writable
another easier solution is kernelsu from this thread - https://aopc.dev/r/linux-kernel-5-18-0-android-x86_64.141/

----For my case, just adding below code to /system/xbin/su and restarting has allowed new kernel flashing via gearlock.----

- A separate kernel boot image named kernel-su - includes kernel superuser module from WSA-community. Can be useful to root some Android x86 distros that are not rooted, such as Prime OS 2.1.3 or Bliss OS 14.10.

- kernelSU can be used in combination with gearlock (even on android 11/12).

- When running gearlock use command /system/bin/sh /gearlock/bin/g for kernelSU or workaround below

- In case some apps dont detect root with kernelSU, create a file /system/xbin/su with following contents:

Code:

#!/system/bin/sh
exec /system/bin/su "[email protected]"
 

asser19

New member
VC
14
another easier solution is kernelsu from this thread - https://aopc.dev/r/linux-kernel-5-18-0-android-x86_64.141/

----For my case, just adding below code to /system/xbin/su and restarting has allowed new kernel flashing via gearlock.----

- A separate kernel boot image named kernel-su - includes kernel superuser module from WSA-community. Can be useful to root some Android x86 distros that are not rooted, such as Prime OS 2.1.3 or Bliss OS 14.10.

- kernelSU can be used in combination with gearlock (even on android 11/12).

- When running gearlock use command /system/bin/sh /gearlock/bin/g for kernelSU or workaround below

- In case some apps dont detect root with kernelSU, create a file /system/xbin/su with following contents:

Code:

#!/system/bin/sh
exec /system/bin/su "[email protected]"
Aha I see so is this magisk alternative ? so I have to remove magisk first ? or can I have both installed ..
For your case (in bold) you mean you didn't install that kernel and just added the two bash lines to the mentioned directory and that helped ?
Sorry I'm just experimenting atm and haven't tried these before :)
The thing is I tried POS AHS with the kernel baked in this distro (5.15 xanmod) and it was pretty fast in games. But for me POSAHS was so buggy after a reboot and would make everything crash. In contrast this distro was alright not buggy and doesn't crash and actually runs arm64 apps pretty good tested with couple games and the keymapper is there just I thought 5.10.32 would be little faster that's why I wanted to flash it. I'll try your method and report back. Thanks !
Post automatically merged:

I was also trying to repack the system into a .img file after flashing the kernel so it boots (hopefully) kinda was bruteforcing it.. but I failed so.. I need more research but hopefully kernelsu solves it.
 

compicat

New member
VC
8
Aha I see so is this magisk alternative ? so I have to remove magisk first ? or can I have both installed ..
For your case (in bold) you mean you didn't install that kernel and just added the two bash lines to the mentioned directory and that helped ?
Sorry I'm just experimenting atm and haven't tried these before :)
The thing is I tried POS AHS with the kernel baked in this distro (5.15 xanmod) and it was pretty fast in games. But for me POSAHS was so buggy after a reboot and would make everything crash. In contrast this distro was alright not buggy and doesn't crash and actually runs arm64 apps pretty good tested with couple games and the keymapper is there just I thought 5.10.32 would be little faster that's why I wanted to flash it. I'll try your method and report back. Thanks !
Hi,

No not magisk alternative. Actually, my setup was same with you which is magisk-delta over initrd-magisk module according to op's guide. I still can use this prime os without problem in this way. Only thing i ve done is adding that code as i ve explained after setuping magisk delta.

You are very welcome. I hope it will be helpful.

I added those two lines to the point in a text file and then restart. After that gearlock didnt complain about "only read mode root" during kernel flashing.
 

asser19

New member
VC
14
Hi,

No not magisk alternative. Actually, my setup was same with you which is magisk-delta over initrd-magisk module according to op's guide. I still can use this prime os without problem in this way. Only thing i ve done is adding that code as i ve explained after setuping magisk delta.

You are very welcome. I hope it will be helpful.

I added those two lines to the point in a text file and then restart. After that gearlock didnt complain about "only read mode root" during kernel flashing.
Just tried it .. still complains after flashing but do you flash from recovery or you are able to open gearlock on system? Cause I flash with gearlock recovery still same issue.
Can't make that file executable tho it says read-only filesystem on termux
Post automatically merged:

At this point idk, I use grub on ubuntu and add a grub.d entry for prime maybe will try usb installation with read-write enable prompt and try to go from there but in a later time 😅 if you have other suggestions I'll try for sure.
 
Last edited:

compicat

New member
VC
8
Just tried it .. still complains after flashing but do you flash from recovery or you are able to open gearlock on system? Cause I flash with gearlock recovery still same issue.
Can't make that file executable tho it says read-only filesystem on termux
Post automatically merged:

At this point idk, I use grub on ubuntu and add a grub.d entry for prime maybe will try usb installation with read-write enable prompt and try to go from there but in a later time 😅 if you have other suggestions I'll try for sure.
will write back when i reach my system at home.

On the other hand, main problem for me with this release is still mounting ntfs internal drives. I am mounting them, but can't see inside files via any explorer. But i can see them with "LS" command at termux. It is really weird. So, still stuck with old friend DarkMatter 4.6 Beta 2. It is mounting every drive automatically without flow.
 

asser19

New member
VC
14
will write back when i reach my system at home.

On the other hand, main problem for me with this release is still mounting ntfs internal drives. I am mounting them, but can't see inside files via any explorer. But i can see them with "LS" command at termux. It is really weird. So, still stuck with old friend DarkMatter 4.6 Beta 2. It is mounting every drive automatically without flow.
Yeah I noticed that too .. I can mount system fine using termux and copying/mv any data but file manager is blind .. TBH I be worried about my data with x86 that any mounting can reflect any metadata or ruin my filesystem lol cause my windows does that to my linux sometimes .. and they're bit experimental I mount it when I need something urgent otherwise I send my data to Android from Windows/linux into the data.img/folder .. plus I hate when I plug external hdd for ex and it decides to treat it as sdcard and create all the useless folders SMH
 

FalconSN

New member
VC
4
Oh my god I must be dreaming! Finally an OS that can run the game I've been trying in lots of others. Thank you very much!

Also, I forgot to install the magisk module for ARM Translator and I didn't encounter any error since. What exactly is its purpose?
 

Similar threads

Similar threads

Get Connected

Discord Server

New Threads

Top