Help How to change OpenGL ES version?

Solution
I will upload it here.
Post automatically merged:


I need OpenGL ES 3.0
Post automatically merged:

Hey I uploaded my ramdisk.img but it got disappeared after I posted it.
Post automatically merged:

..
Post automatically merged:

Will this be okay?
I removed .img and edited it to .zip and uploaded it.
Screenshot_294.png

TakuruKagami

Active member
You should start using linux distro anyway.

I wonder how you make cli programs without linux.
😅 I use Linux too but not as the main OS so it is rarely used.

to make the script I think with cygwin and notepad is also enough although to install the functions of the script must remain on android x86 because cygwin does not have many functions of the linux OS.
 

TakuruKagami

Active member
what can I do to unpack ramdisk.img, edit it and repack it bro?
I am noob on these things.
Can you teach me in a easy way?
Fieldset:
  • Copy ramdisk.img to android data
  • hold alt + f1 and write the script like this:
Code:
ramdisk=ramdisk.img
ramdiskfold=/data/ramdisk
mkdir $ramdiskfold && ( cd $ramdiskfold && zcat /data/$ramdisk | cpio -iud )
  • then you enter the ramdisk folder that has been unpacked /data/ramdisk
  • edit init.android_x86_64.rc with FX edit
add it if it doesn't exist and if it exists then change it:

Fieldset:
expr MESA_GLES_VERSION_OVERRIDE "desired version"

Fieldset:
Available strings are : 2.0 | 3.0 | 3.1
  • save then then repack
Code:
cd $ramdiskfold && find . | cpio -o -H newc | gzip > /data/ramdisk_new.img
  • If it has been repacked, copy ramdisk_new.img to the installed android drive then move the ramdisk img to the backup folder and rename ramdisk_new.img to ramdisk.img

Post automatically merged:

If you want to use AIK then
  • Enter the AIK folder then go to the android_win_tools folder
  • Create a bat file and edit it using notepad then enter :
Code:
mkbootimg --kernel ./files/kernel --ramdisk ./files/ramdisk.img --output ./files/boot.img
then save
  • Create a folder called files inside the android_win_tools folder
  • Then copy the kernel and ramdisk.img to /AIK/android_win_tools/files
  • Then run the bat file earlier and boot.img will appear in the files folder
  • copy to AIK folder and run bat file named unpackimg.bat
  • then go to the unpacked ramdisk folder /AIK/ramdisk
  • edit init.android_x86_64.rc with notepad
add it if it doesn't exist and if it exists then change it:
Fieldset:
expr MESA_GLES_VERSION_OVERRIDE "desired version"

Fieldset:
Available strings are : 2.0 | 3.0 | 3.1
  • Jalankan bat file bernama repackimg.bat
  • If it has been repacked, copy ramdisk-new.cpio.gz to the installed android drive then move the ramdisk img to the backup folder and rename ramdisk-new.cpio.gz to ramdisk.img
 
Last edited:

TakuruKagami

Active member
They can be related. Some kernels are compiled with ramdisk built-in, found at /dev/ramdisk , for example arch linux compiled with empty ramdisk and uses external ramdisk.
Fieldset:
For some reason the ramdisk I unpacked on android is related to the android x86 OS folder maybe that's why the ramdisk doesn't need to compile kernel anymore when doing it on android x86. for example, the vendor on the ramdisk is directly connected to the vendor on the android system.

Android x86​

Screenshot_292.png


AIK
Screenshot_293.png
 
Last edited:

grtstha

Member
As a last way, you can upload your ramdisk.img than anyone here will give you edited one.
I will upload it here.
Post automatically merged:

As a last way, you can upload your ramdisk.img than anyone here will give you edited one.
I need OpenGL ES 3.0
Post automatically merged:

Hey I uploaded my ramdisk.img but it got disappeared after I posted it.
Post automatically merged:

..
Post automatically merged:

Will this be okay?
I removed .img and edited it to .zip and uploaded it.
 

Attachments

  • Screenshot_20211117-002010.jpg
    Screenshot_20211117-002010.jpg
    61.9 KB · Views: 14
  • ramdisk.zip
    1.7 MB · Views: 5
Last edited:

TakuruKagami

Active member
I will upload it here.
Post automatically merged:


I need OpenGL ES 3.0
Post automatically merged:

Hey I uploaded my ramdisk.img but it got disappeared after I posted it.
Post automatically merged:

..
Just compress with zip then upload
Post automatically merged:

I will upload it here.
Post automatically merged:


I need OpenGL ES 3.0
Post automatically merged:

Hey I uploaded my ramdisk.img but it got disappeared after I posted it.
Post automatically merged:

..
Post automatically merged:

Will this be okay?
I removed .img and edited it to .zip and uploaded it.
please with that kernel too cause i'm on windows for now.
 

TakuruKagami

Active member
I will upload it here.
Post automatically merged:


I need OpenGL ES 3.0
Post automatically merged:

Hey I uploaded my ramdisk.img but it got disappeared after I posted it.
Post automatically merged:

..
Post automatically merged:

Will this be okay?
I removed .img and edited it to .zip and uploaded it.
Screenshot_294.png
 

Attachments

  • ramdisk.zip
    1.7 MB · Views: 1
Solution

Similar threads

Similar threads

Get Connected

Discord Server

New Threads

Top