Author Topic: [ROM] LegacyROM 1.0 GPD Q9 (Also compatible with new Q9PSV batch)  (Read 27144 times)

skelton (OP)

  • *****
  • Posts: 6743
There is  a new version for this rom.

http://boards.dingoonity.org/gpd-devices/(rom)-legacyrom-2-0-for-q9-and-q9psv/






INTRODUCTION:


The main purpose of this new fimware is to provide a clean firmware without apps or emus, just a firmware as close to AOSP as possible. In this sense there are no apps installed, no emus, no happy chicks warez apps and no metro UI launcher. So if you like the stock apps or emus that come with the device this firmware is not for you. Also, installing this firmware will erase your current data. I haven't got the time I used to have, so this firmware is a very simplistic one, and was not even in my plans. Stock firmware is good enough for 90 percent of people I guess so probably it's not so necessary as in other devices. Anyway, in case someone wants to change at any time, I provide this alternative.

Rom is compatible with standard and new Q9PSV batch, just download the package according to your model

SCREENSHOT: Though screenshot is in spanish, the language is US English by default








FEATURES:

 Compiled from scratch using latest RK KK SDK. This is not based on any stock firmware. However, it includes some stock stuff like the stock mapper or the possibilty to swap internal and external memory.
 Rooted with latest superSU and updated busybox and other binaries.
 Google Play better compatibility (though in stock is quite good in my opinion)
 Init.d support for manual scripts (you can add scripts that you want to be run in init)
 Stock launchers removed and replaced by Apex Launcher
 No bloatware or chinese applications or emus.

CUSTOM KERNEL:
 NFS/CIFS added to kernel (this is untested)
 Remove 1,4 ghz limitation imposed by GPD in latest firnwares. Now you can select 1,6 ghz max (though kernel report 1,8 but 1,6 ghz is max speed, like in old stock firmwares).
 Added new CPU Governor: Ragingmolasses. It is a very conserative one, not for intensive gaming but a battery governor.
 Compiled using several flags for more optimization.


INSTALLATION:


In order to install the firmware you need RK Batch Tool in your PC included in the rar package. Rockchip drivers are also included in case you don't have them.


 Open Batch tool and select the Legacy_XX image file (.img).
 With GPD power off, just connect it via USB Cable to PC. Then just press and Hold Volume + button and Press Power. RK Batch Tool will detect device, and you'll see the number 1 with a green box. If you see with a pink box, just select Switch Button until you see it in green. If the system ask you for some drivers, then just use the one included in the Batch Tool (or using driverInstaller package to install rockchip USB drivers). It's not mandatory but recommended to install with full battery.
 Once device is detected with a green BOX, just select Restore and wait patiently while firmware is written.
 Device will auto reboot to recovery and format your partitions. Just wait patiently until all process is done, since it's a long process and first boot can take several minutes, so just wait until it finishes and you see the home Android launcher.


GENERAL TIPS and CONSIDERATIONS:


 Default CPU governor (interactive) and I/O Scheduler are pretty conservative. For very demanding applications like PPSSPP or Reicast I suggest using ondemand CPU governor and deadline I/O scheduler. You can control this by using a CPU app like SETCPU, NoFrillsCPU, CPU tuner, etc...

 If something (an app or game) is not working, send me a logcat to see what's going on. All complaints just saying ?This app game doesn't work? without a logcat will be ignored. And of course apps should be legally obtained. If your get an game or app from unofficial sources and does not work, then buy it and try again.

 If you want to make your microSD as primary sdcard, just go to settings/storage and select micro SD as primary sdcard. This will swap internal and external memory. Then power off and next boot memories will be swapped.

 Don't ask me for updates. This ROM was not in my planning, so no idea if I will ever update this or not.

 For other devs, don't use this firmware or kernel as a base for other works. Please use stock or ask GPD for some code. GPD provides code to devs interested. So anyone is free to compile their own stuff from 0.

THANKS:

 To GPD for their support and collaboration

Download of the ROM:

Q9 Standard:

https://mega.co.nz/#!R4ByRIhA!og0nc5eOpuJI-AqHrTJ61sZpf92rI3wo3LPSvmjnAEs

Mirror: https://drive.google.com/file/d/0B6JKf-QJv2KAU0UwdFAwdGdJMXc/view?usp=sharing



Q9PSV Batch:

https://drive.google.com/file/d/0B6JKf-QJv2KAWmNUQUdRcGRrQVE/view?usp=sharing
« Last Edit: May 09, 2016, 12:01:46 pm by skelton »
Retired

fetarius

  • *
  • Posts: 41
Re: [ROM] LegacyROM 1.0 GPD Q9
« Reply #1 on: July 09, 2015, 12:37:50 pm »
Awesome, thanks for this.  It looks a lot like what I'm running on my Q9 now, except for your custom kernel.  I noticed after bumping to 2.1.0 my Q9 is running at 1.6GHz (via CPUZ for Android). I'm starting to think that the drop to 1.4GHz may have been a bug or to temporarily work around one.

skelton (OP)

  • *****
  • Posts: 6743
Re: [ROM] LegacyROM 1.0 GPD Q9
« Reply #2 on: July 09, 2015, 12:53:18 pm »
Awesome, thanks for this.  It looks a lot like what I'm running on my Q9 now, except for your custom kernel.  I noticed after bumping to 2.1.0 my Q9 is running at 1.6GHz (via CPUZ for Android). I'm starting to think that the drop to 1.4GHz may have been a bug or to temporarily work around one.

CPU-Z report 1,6 ghz because is set in kernel, but max speed should be 1,4 ghz in 2.1.0 too. Or at least my device didn't allow me to go over 1,4 ghz using setcpu in 2.1.0. In fact I didn't notice difference between 2.1.0 or 1.1.3 for example.
GPD hardcoded DVFS values so that device won't go far from 1,4 ghz even though kernel report a higher value. No big difference between running at 1,4 or 1,6 ghz though. My kernel reports 1,8 ghz, but I am using a limitation to 1.6 ghz, because more than that my device was not stable even with highest voltages.
Retired

HobbsWon

  • Posts: 3
Re: [ROM] LegacyROM 1.0 GPD Q9
« Reply #3 on: July 10, 2015, 04:21:24 am »
Do you think the ragingmolasses governor is sufficient enough for regular emu use? For example, the most intensive game I'd be playing is possibly Gran Turismo for epsxe. (Even though Gran Turismo juiced every last drop of processing power from the PSX)..


skelton (OP)

  • *****
  • Posts: 6743
Re: [ROM] LegacyROM 1.0 GPD Q9
« Reply #4 on: July 10, 2015, 08:32:19 am »
Do you think the ragingmolasses governor is sufficient enough for regular emu use? For example, the most intensive game I'd be playing is possibly Gran Turismo for epsxe. (Even though Gran Turismo juiced every last drop of processing power from the PSX)..

I use it just for 8 and 16 bit. With epsxe seemed good enough in the games I played, but I have never tried Gran Turismo.

Anyhow, ragingmolasses is just another governor, if it's not fast enough, you can select interactive or ondemand. The other governors are also present. Interactive is the defaukt one like in stock firmware.
Retired

lobski

  • *
  • Posts: 24
Re: [ROM] LegacyROM 1.0 GPD Q9
« Reply #5 on: July 14, 2015, 08:07:11 am »
Is this based on the Q9 Official Firmware v2.1.0? Should I stick with this or the official? I am a power user.

skelton (OP)

  • *****
  • Posts: 6743
Re: [ROM] LegacyROM 1.0 GPD Q9
« Reply #6 on: July 14, 2015, 08:13:01 am »
No, it's built from source. About which one to use, both firmware are ok. It depends on your needs.
Retired

sirp0p0

  • **
  • Posts: 597
Re: [ROM] LegacyROM 1.0 GPD Q9
« Reply #7 on: July 17, 2015, 08:05:17 pm »
I CLICKED RESTORE AND THE FLASH FAILED WITH "LOWERFORMAT FAILED" AND I DIED A LITTLE.

Clicking restore again did actually work. I was heartbroken thinking I'd bricked my new toy. Any idea why this happened?

DON'T PANIC is a very important mantra to have.

Here's the log if its of any use:
Code: [Select]
14:43:17 637 Rockchip Batch Tool v1.7.1.1 start run
14:53:55 771 **********Restore Start Total<1>**********
14:53:55 774 <Layer 2-7> Test Device Start
14:53:55 778 <Layer 2-7> Test Device Success
14:53:55 780 <Layer 2-7> Lowerformat Device Start
14:54:04 783 Error:RKU_Read-->ReadFile failed,bRet=1,err=0,size=13,read=0
14:54:09 983 Error:RKU_ClearBuffer-->totalRead=0
14:54:14 984 Error:RKU_Write-->WriteFile failed,bRet=1,err=0,size=31,write=0
14:54:20 185 Error:RKU_ClearBuffer-->totalRead=0
14:54:20 185 <LAYER 2-7> ERROR:LowerFormatDevice-->RKU_TestDeviceReady failed,subCode(0x0),RetCode(-3)
14:54:20 189 <Layer 2-7> Lowerformat Device Fail
14:54:20 191 **********Restore Done Success<0> Fail<1> Time<24414>ms**********
14:56:31 771 **********Restore Start Total<1>**********
14:56:31 775 <Layer 2-7> Test Device Start
14:56:31 778 <Layer 2-7> Test Device Success
14:56:31 781 <Layer 2-7> Lowerformat Device Start
14:56:45 787 <Layer 2-7> Lowerformat Device Success
14:56:45 790 <Layer 2-7> Test Device Start
14:56:45 793 <Layer 2-7> Test Device Success
14:56:45 796 <Layer 2-7> Check Chip Start
14:56:45 799 <Layer 2-7> Check Chip Success
14:56:45 803 <Layer 2-7> Get FlashInfo Start
14:56:45 805 <LAYER 2-7> INFO:FlashInfo: 0 0 9 1 0 20 20 28 20 2 3
14:56:45 808 <Layer 2-7> Get FlashInfo Success
14:56:45 813 <Layer 2-7> Prepare IDB Start
14:56:45 814 <LAYER 2-7> INFO:CS(1) (8480MB) (HYNIX)
14:56:45 815 <LAYER 2-7> INFO:CS(2) (8480MB) (HYNIX)
14:56:45 826 <Layer 2-7> Prepare IDB Success
14:56:45 831 <Layer 2-7> Download IDB Start
14:56:47 996 <Layer 2-7> Download IDB Success
14:56:48 001 <Layer 2-7> Reset Device Start
14:56:49 006 <Layer 2-7> Reset Device Success
14:56:49 010 <Layer 2-7> Wait For Loader Start
14:56:50 299 <Layer 2-7> Wait For Loader Success
14:56:50 306 <Layer 2-7> Test Device Start
14:56:50 311 <Layer 2-7> Test Device Success
14:56:50 317 <Layer 2-7> Download Firmware Start
14:58:39 066 <Layer 2-7> Download Firmware Success
14:58:39 103 <Layer 2-7> Reset Device Start
14:58:40 108 <Layer 2-7> Reset Device Success
14:58:40 112 **********Restore Done Success<1> Fail<0> Time<128342>ms**********
« Last Edit: July 17, 2015, 08:10:10 pm by sirp0p0 »

skelton (OP)

  • *****
  • Posts: 6743
Re: [ROM] LegacyROM 1.0 GPD Q9
« Reply #8 on: July 17, 2015, 09:04:10 pm »
Probably a bad connection with the cable. Sometimes the cable that comes with the device is not of very good quality.
Retired

procyon

  • *
  • Posts: 182
Re: [ROM] LegacyROM 1.0 GPD Q9
« Reply #9 on: July 27, 2015, 03:39:02 pm »
I just wanted to write to thank you very much for this work Skelton.  I went from 1.07 stock firmware to this, and I'm very happy with it.

Just a note to others who may install this so that you don't repeat my mistake; I backed up everything with Titanium Backup, but I saved those backups to internal.  So when I installed the firmware, I wiped my backups :(  It's my own fault, I should have known better, I just didn't think it through.  Make sure you back up to external SD before you attempt to install this firmware.  It's definitely worth it.

skelton (OP)

  • *****
  • Posts: 6743
Re: [ROM] LegacyROM 1.0 GPD Q9
« Reply #10 on: July 28, 2015, 08:49:23 am »
I have been playing a little bit with kernel, and after adjusting voltage and playing with dvfs I got 1,8 ghz stable. At least is stable on my unit.



However, in my opinion it's not worth to overclock like that. Difference in performance is quite minimal (Rk3288 cpu is not very powerful) and battery drains a bit faster. Also, have in mind that RK3288 has a cpu temp flag that reduce speed to 1,4 ghz if device gets over 80 Celsius to avoid overheating.

Anyhow, if someone wants a version of the rom with 1,8 ghz unlocked let me know and I can upload them,
I hope I can get the same thing with GPD XD, if GPD wants to collaborate with me of course.....
Retired

Mokura

  • Posts: 4
Re: [ROM] LegacyROM 1.0 GPD Q9
« Reply #11 on: August 27, 2015, 07:19:36 pm »
Having some strange issues with the analog sticks.  On a brand new install of LegacyROM, Game Controller Test (https://play.google.com/store/apps/details?id=com.catalyst06.gamecontrollerverifier) as well as other emulation apps are reporting the following:

PlayStation 3 controller:
Left stick up -> left
Left stick down -> right
Left stick left -> up
Left stick right -> down

Right stick up -> down
Right stick down -> up
Right stick left and right function normally.  All other buttons function normally.

It might have something to do with the key mapping files in /system/usr directory, I can give it a look and see if there's anything I can do about the PS3 controller entry.

skelton (OP)

  • *****
  • Posts: 6743
Re: [ROM] LegacyROM 1.0 GPD Q9
« Reply #12 on: August 27, 2015, 07:29:49 pm »
Most probably is a hardware issue in your device. I tested that app just on mine and it's ok. Analog works ok in mine.

Also, all emus and android games are fine with analogs in my device.

Try it with stock firmware, but it shouldn't make any difference, because joystick driver is the same in all firmwares.

My guess is that the analogs of your device don't work as they should, because as I say, testing it in my device it works ok in all directions.
« Last Edit: August 27, 2015, 07:33:31 pm by skelton »
Retired

Mokura

  • Posts: 4
Re: [ROM] LegacyROM 1.0 GPD Q9
« Reply #13 on: August 27, 2015, 07:35:30 pm »
I tried installing the official firmware 2.1.0 and had the same issue, actually.

skelton (OP)

  • *****
  • Posts: 6743
Re: [ROM] LegacyROM 1.0 GPD Q9
« Reply #14 on: August 27, 2015, 07:37:34 pm »
I tried installing the official firmware 2.1.0 and had the same issue, actually.

Then it's defintely a hardware issue. Try to contact your seller for an exchange, because it's clearly defective.
Retired