yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] ccdreadcc:
its 2.2 or 2.2.x ?
[Android Software/Hacking General [Developers Only]] ranmasaotome510:
i thought it was 2.2.1
[Android Software/Hacking General [Developers Only]] Bytecode:
Interesting :)

Searching the internet for phone specs.
[Android Software/Hacking General [Developers Only]] raenye:
I diff'ed the source against the P500 source.

Practically the only difference is that the P506 has two framebuffer(?) drivers (novatek and hitachi) rather than one (just hitachi), with runtime detection of hw.

Relevant kernel config is CONFIG_FB_MSM_MDDI_NOVATEK_HVGA.

Since /proc/mtd is the same for P500 and P506, I guess roms and recoveries go through with just this display glitch issue, but it'd be great to have a proper one.

Does anyone know whether it is possible to just replace the zImage in CWM/amon_ra, or a compilation is required?
[Android Software/Hacking General [Developers Only]] webosguru:
I have installed a 2.2.1 P500 ROM on my P506 with my stock kernel and I can verify that the color issue is history. We just need devs to port there kernels to the P506 and we can utilize the ROMs for the P500.

Please devs help us Thrive / P506 users out a little! :-)
[Android Software/Hacking General [Developers Only]] ccdreadcc:
Ciaox u use linux?
[Android Software/Hacking General [Developers Only]] webosguru:
Any devs looking into this?
[Android Software/Hacking General [Developers Only]] ccdreadcc:
devs wont be interested, if p506 user base is very low. getting more p506 users to comment here might get devs attention ><
[Android Software/Hacking General [Developers Only]] Bytecode:
Yes I do. Why?

BTW I love AT&T :)
[Android Software/Hacking General [Developers Only]] franciscofranco:
What do you guys need? A kernel? If so get more users to coment this topic and I'll see if its reasonable to release a kernel with the extra framebuffer. But I need to be sure the user base of this phone is high enough, otherwise it's pointless.
[Android Software/Hacking General [Developers Only]] raenye:
We mostly need help with understanding the following:

Will sticking the stock P506 zImage in a cwm/amon_ra recovery, keeping the initrd and everything, just work? e.g., using mkbootimg.sh ?

The diff between P500 and P506 froyo kernels has the following changes. Are they all relevant? were some of these fixed upstream?

Novatek fb driver (and renaming of hitachi fb functions)

ami304 driver changes (support for gyro and pedometer?), including ami306 support(?) EDIT: it's the driver from Optimus V.

some minor added functionality in drivers/input/sensor/kr3dh.c

LG's fix for the touchscreen bug (?) in drivers/input/touchscreen/mcs6000_ts.c

Camera modifications (parameters, added sports scene) in /drivers/media/video/msm/isx005*

MMC changes, incl. not powering down sdcard on suspend

A change of BRCM_WLAN_SLOT to 100 instead of 2 (BCM432X related)

Units change (mul by 10) in drivers/power/msm_battery.c

USB changes in drivers/usb/gadget/msm72k*

added a call to sock_setsockopt in net/socket.c, function kernel_connect()

Would applying the diff to your kernel (or any froyo kernel) would just compile and work (assuming no conflicts)?

Would applying the diff to a gingerbread kernel work, or gingerbread has some major changes?

Is the change (at least the FB one) simple enough to convince you and/or other P500 kernel developers to incorporate it in your builds (so no fork needed)?

Thanks,

R.
[Android Software/Hacking General [Developers Only]] kingv10:
+1 for interest, I've already rooted but when I looked into roms etc. for the P506 I found there weren't any so I'd be glad to test recoveries/roms
[Android Software/Hacking General [Developers Only]] raenye:
OK, I got some answers for my questions, and some new questions.

Swapping p506 zImage for p500 zImage in AmonRa 2.2.1b recovery soft-bricks. Fastboot FTW.

Swapping p506 boot.img in a stock P500h rom boots and works in full color, but the logcat is filled with an AMI304-related error.

E/AmitDaemon( 1289): [AMI304D] AMI304MID_IOCTL_GET_CONTROL error​

(I also get "battery hot" warnings, but maybe they're unrelated).

Not sure if accelerometer works, had to restore nandroid.

webosguru: do you have this error as well?

I think I saw that some IOCTL codes have changed in the new ami304 driver, so I guess it should be skipped in custom compilation (or fix AmitDaemon, wherever it is).

EDIT: I think this could be also fixed by using system/bin/ami304d from the AT&T rom. I wonder what other native executables I should take from stock AT&T?

I cannot find the 3 buttons required to get to recovery. Power+Home gets to fastboot, with or without VolDown. I have to use adb or rom manager.

Any ideas?

When booting a recovery via fastboot boot recovery.img, keys are not functioning. adb works, so I can flash and/or reboot recovery, but why won't they work?

I tried to grab froyo source via the repo tool, but it seems to download every piece of code ever written and then fail with some missing manifests. Ideas?

Next thing I'll do is probably to deodex and debloat the stock AT&T rom.
[Android Software/Hacking General [Developers Only]] ranmasaotome510:
just happy progress, however small, is being made. Lots of smiles today. :)
[Android Software/Hacking General [Developers Only]] raenye:
Pursuing the deodexed stock AT&T rom path, I found out that my stock backup is (next to) worthless; it didn't include OOB info, and unyaffs fails to extract it.

I used dd if=/dev/mtdX of=/sdcard/mtdX.img instead of nandroid. I wonder if dd'ing it back and then a nandroid backup would work.
[Android Software/Hacking General [Developers Only]] tutor5040:
I have been following this thread. I am new to android but can help with testing out kernels.
[Android Software/Hacking General [Developers Only]] snowman81:
Really would love to see some ROM development happen for the Thrive!
[Android Software/Hacking General [Developers Only]] sd_matto:
How did you do the install without a custom recovery? Or, if you have a custom recovery, which one did you use?

And, +1 re wanting a custom kernel from P506/P505.
[Android Software/Hacking General [Developers Only]] raenye:
Install CWM for Optimus One P500 via Rom Manager.

Recovery shows weird colors, but regular rom uses a different kernel.

Now pick your favorite P500 FroYo rom, replace boot.img with your original boot.img and flash via CWM.

I still do not advise it since the ami304 daemon has problems, btw.
[Android Software/Hacking General [Developers Only]] webosguru:
Raenye: yes after a quick check, I have the same issues occurring as you I observed.
[Android Software/Hacking General [Developers Only]] webosguru:
No new progress, or info on the kernel port. That makes me quite sad actually.
[Android Software/Hacking General [Developers Only]] ranmasaotome510:
im still hopeful. its probably cuz there arent any devs with this phone? but i mean they dont really need it... for them to develop a kernel for it, to work with the existing p500 roms.
[Android Software/Hacking General [Developers Only]] raenye:
My update consists of failing to restore my system.img backup in order to make a deodexed stock rom (I used dd to backup the yaffs2 partitions, and it appears to be a bad thing to do). This included not succeeding to compile nandwrite from mtd-utils.
[Android Software/Hacking General [Developers Only]] webosguru:
Raenye: so what does that mean exactly? Is development over for right now?
[Android Software/Hacking General [Developers Only]] raenye:
Not at all.

I downloaded the android source and managed to build it, but it seems a custom rom is not what we need -- other people do this better. We need a kernel.

The plan now is to build:

1) a stock-like P506 kernel (perhaps with axis inversion fix);

2) a custom recovery (Amon-Ra or CWM) with this kernel;

3) a P506-flavor of franco/mik.os kernel.

Not tomorrow, but I hope some time this week.
[Android Software/Hacking General [Developers Only]] webosguru:
I have some news.. I may be getting the rest of the parts I need for my new pc, so I will be able to start working on some of the to do list. I will message back here tomorrow so I can get organized with raenye so we can make a do list and assign task. Once I have linux mint up running tomorrow o will Be ready to work!
[Android Software/Hacking General [Developers Only]] ranmasaotome510:
i'm super stoked! :cool:
[Android Software/Hacking General [Developers Only]] hegemytouch:
+1...i would love to put a custom rom on the lg thrive...this is just my back up phone but i want to tweak it ;)
[Android Software/Hacking General [Developers Only]] webosguru:
?.)Question for devs, how many people do we need in order for some kernel customization and possibly a new cwm recovery without the bugs that the P500 has when used on the Thrive / P506???
[Android Software/Hacking General [Developers Only]] franciscofranco:
I don't know about a recovery, but send me a PM with all the info that I need to adapt the kernel for your phones. I don't have the phone so I need everything you can give to me about hardware changes etc etc etc. I don't promise anything, but if I have enough information I can give it a go.
[Android Software/Hacking General [Developers Only]] eljefe27:
Recovery well at least it says soon

http://androidforums.com/getitnowmarketing/330813-all-one-recovery-thread.html

I've tried a couple of Franco's. Kernel's for the p500 man the phone flies but I get the crazy colors hope to get a kernel for the p506

Sent from my LG-P506
[Android Software/Hacking General [Developers Only]] webosguru:
As soon as I deposit my next check you are getting a beer/coffee/ whatever you want from me my friend. Without non selfish people like you bro this world would have ruined itself a long time ago.

Raebye should be pm'ing you all the info you need. He has done a lot of home work already.

Thanks so much!
[Android Software/Hacking General [Developers Only]] webosguru:
Any news on this?
[Android Software/Hacking General [Developers Only]] raenye:
I compiled a P500 stock kernel with the framebuffer changes, and it had no color issues on a P500 rom. I sent the relevant diffs to Franco to include in his kernel.

I did notice that the accelerometer doesn't work with the P500 driver, so we may need to include the changes to the ami304 driver as well.

I'm not sure what is the meaning of this with respect to a unified P500/506 kernel, but perhaps the only required change to P500 roms is to include /system/bin/ami304d from P506.

I also made another attempt at injecting a kernel (my self-compiled one) to both AmonRa and CWM recoveries; none of these boot, and I can't seem to understand how to compile a recovery on my own :(
[Android Software/Hacking General [Developers Only]] webosguru:
Sweet, glad to see some more progress. I really wish I could do more to help but with my limited knowledge of android and no linux box or pc period to play with source I am doing the best I can by rallying support for the thrive/phoenix by pointing users to this thread to try to push for more devs to port over their custom kernels and roms. With raenye compiling a list of changes needed to make the p500 kernel to work with the p506 & compiling some changes to the stock kernel for testing purposes himself, I can't thank him enough. We're getting close!

Good work to all involved. Cheers.
[Android Software/Hacking General [Developers Only]] Bytecode:
Remember: You also need to do some changes in init.thunderg.rc for making sensors work :)
[Android Software/Hacking General [Developers Only]] mik_os:
Thay don't, p500 also have ami304d sensors and service already written there.

@raenye

Try to change sensor drivers to drivers from p500 kernel and to use our /system/lib/hw/sensors.thunderg.so and /system/bin/ami304d
[Android Software/Hacking General [Developers Only]] Bytecode:
Ah yeah,I forgot,I said this because sense wasn't using ami304d drivers :)
[Android Software/Hacking General [Developers Only]] sabrelime:
I'd like to throw my hat in as one of the Phoenix owners that would love to see a ROM adapted to these phones. Stupid AT&T disabled the 2g/3g switch menu on this phone, so I get crap for signal in my house. I've made a thread on it. :( My old blackberry could do it, but it seems like AT&T is hell bent on locking these phones tight.
[Android Software/Hacking General [Developers Only]] raenye:
Thank you two for your suggestions.

I compiled the P500 kernel source with the P500 ami304 driver, and packed the zImage in the P500 boot.img. Sensors were not detected at all, but no logcat errors.

When I previously used the P506 stock boot.img on a P500 rom, I had AmitDaemon errors all over the logcat due to a change in ioctl numbers.

I guess that using the P506 ami304 driver with the correct daemon and lib would work, but I would really like to have a unified kernel.

@ciaox

I couldn't find any init.thunderg.rc in /system/, where should it be?

@mik_os

How are sensors working in CM7? are you using LG's lib and daemon, or is there some open source replacement?

Thanks,

R.
[Android Software/Hacking General [Developers Only]] Bytecode:
You can find init.thunderg.rc in boot.img. Unpack it first with dsixda's Android kitchen / unpack binary ;)
[Android Software/Hacking General [Developers Only]] mik_os:
Both are lg's...
[Android Software/Hacking General [Developers Only]] giandeli:
when will the kernel get released i need it to finnaly fix my phone
[Android Software/Hacking General [Developers Only]] nashi20002003:
I"m a new LG Thrive and would also like to see custom ROM on here.

Thanks for all your help.
[Android Software/Hacking General [Developers Only]] midhun:
I am also waiting for support for LG thrive.

More importantly.... does anybody have the 2.2.2 update file for LG Thrive.

My phone came with 2.2.1 and i cant update through phone because stupid AT&T only allows update through their 3G network. And i am using Simple Mobile. I tried with WIFI also.

Please Help
[Android Software/Hacking General [Developers Only]] midhun:
UPDATE:

I just found that you dont need data plan for updating the phone. Only thing it has to be the ATT simcard (activated) in it. It says "an update is available . You will not be charged for the data"

Cool.......
[Android Software/Hacking General [Developers Only]] raenye:
I'd appreciate it if you could share boot.img and system.img from an 2.2.2 updated thrive.

Thanks!
[Android Software/Hacking General [Developers Only]] midhun:
I will do that. But can you tell me how to get those files from the phone.
[Android Software/Hacking General [Developers Only]] raenye:
First you have to have a custom recovery. There's no proper P506 recovery yet, but the only problem I encountered (at least with CWM) is messed-up colors

while in recovery

.

If you flash a custom rom with a proper kernel, it will work as expected.

So get rooted, install Rom Manager, install the P500 CWM custom recovery, boot to recovery from Rom Manager, make a backup and reboot.

Then find the image files in /sdcard/clockworkmod/backup/<date>.

Your personal data, which I obviously neither need nor want, is in userdata.img; the kernel/rom are in boot.img/system.img.

Thanks again.
[Android Software/Hacking General [Developers Only]] kingv10:
I'd share my boot.img and system.img, but what custom rom works with the thrive?
[Android Software/Hacking General [Developers Only]] :
I'll post the files tonight. It's my kids phone and it is at the house. Already rooted so only need to install CWM and backup.

Hopefully we can get CM7 for that phone.
[Android Software/Hacking General [Developers Only]] raenye:
Great, thanks.

BTW, LG published source for the P505. Only took a brief look into it, but it seems to be identical to P506 one, except it only has Novatek FB drivers, no Hitachi FB ones. Weird.
[Android Software/Hacking General [Developers Only]] :
Sorry, files up tomorrow, system.img is about 160MB so it takes a while to upload.:o

Here is the boot.img

Here is the system.img
[Android Software/Hacking General [Developers Only]] eljefe27:
Edit deleted
[Android Software/Hacking General [Developers Only]] giandeli:
your rom d sosent work on my Phoenix
[Android Software/Hacking General [Developers Only]] eljefe27:
Its for the LG thrive p506

Sent from my LG-P506
[Android Software/Hacking General [Developers Only]] giandeli:
Will it be made for phoenix? Was this made from the source or a hand backup?
[Android Software/Hacking General [Developers Only]] giandeli:
is this for p505 or p506
[Android Software/Hacking General [Developers Only]] :
OMG. Maybe - at least read the big bold title of the thread???
[Android Software/Hacking General [Developers Only]] aat455:
First of all, +1 for the interest...

Secondly and mainly, I did

"rooted, install Rom Manager, install the P500 CWM custom recovery, boot to recovery"

When I booted it got stuck in LG Screen, and

* Back+Vol Up+Power goes to Emergency Mode

* Home+Vol Down +Power goes to

fastboot mode started

udc_start()

I really appreciate Any help on how to proceed?
[Android Software/Hacking General [Developers Only]] eljefe27:
Home volume up and power will get you into recovery

Sent from my LG-P506
[Android Software/Hacking General [Developers Only]] aat455:
Thanks for the suggestion...

Home+Vol.Up+Power doesn't do anything, still stuck at LG startup screen?

Any other suggestion?
[Android Software/Hacking General [Developers Only]] eljefe27:
U are on the p506?

Make sure you are completely powered off no USB cord pull the battery for. Seconds

Press and hold the home key without releasing. It press and hold the volume up key. Now without releasing the volume up key and home button press and hold the power key hold the three buttons for about 5 seconds

Sent from my LG-P506
[Android Software/Hacking General [Developers Only]] giandeli:
I know I must be bugging you but will you make this rom for the p505
[Android Software/Hacking General [Developers Only]] aat455:
Yes, I'm on LG Thrive P506, I did exactly what you suggested, nope its does nothing but the LG Screen.

Actually, after installing Rom Manager, since I couldn't find the "P500 CWM custom recovery" I clicked on the Optimus one, would that messed up anything?

recovery from the clockworkmod has the "recovery-clockwork-3.2.0.1-thunderc.IMG" on SD Card?

any help would be greatly appreciated, thanks....
[Android Software/Hacking General [Developers Only]] :
This is a P506 (Thrive) specific thread. I suggest you either find a Phoenix thread or start one. Just wanted to warn you, that if you continue to post here for another phone, you may be sent some snappy replies.:eek:
[Android Software/Hacking General [Developers Only]] aat455:
btw, I installed Android SDK, and adb, when I executed "adb devices" on the command mode, i get the following:

-----

C:\>adb devices

* daemon not running. starting it now on port 5037 *

* daemon started successfully *

List of devices attached

C:\>

----

it does not find the device, I already installed the USB driver version 4 from google, and LG driver ("LGAndroidDriver_Ver_1.0_All")

I can see Android (with question marks though, seems not completely installed)

under Device Manager...

any help along these lines are also helpful...thanks
[Android Software/Hacking General [Developers Only]] aat455:
Also, I did the fastboot erase recovery from command mode as suggested here

http://xdaforums.com/showthread.php?t=1088046

I get

C:\>fastboot erase recovery

<waiting for device>

and its there forever....
[Android Software/Hacking General [Developers Only]] :
Clearly messed up drivers install or wrong drivers altogether.

Uninstall all the devices from device manager, reboot, reinstall drivers, start over. (DEVMGR_SHOW_NONPRESENT_DEVICES set to 1 and Show hidden devices recommended when cleaning - Google it.)
[Android Software/Hacking General [Developers Only]] aat455:
thanks for the reply,

I uninstalled and restarted the computer, it seems I couldn't find a proper LG driver for LG Thrive, and one more thing, I do not see an USB_driver under Android SDK folder either...

so I followed the steps in http://theunlockr.com/2009/10/06/how-to-set-up-adb-usb-drivers-for-android-devices/

Basically Installing PDANet, and worked around a bit and now I can see ADB Interface in the Device Manager...

I'm not sure did I mess up too much or not... now after turning on thephone it goes to "Fastboot mode started" automatically and

I was able to execute

"fastboot erase recovery" command from command mode...

----

C:\>fastboot erase recovery

erasing 'recovery'...

OKAY [ 0.063s]

finished. total time: 0.063s

C:\>

--------

nothing else works....

Did I mess up or is it a progress?...

any help is appreciated.... thanks...
[Android Software/Hacking General [Developers Only]] raenye:
Booting to recovery can be done in two ways on my Thrive:

1) Boot to recovery command from Rom Manager

2) The following sequence:

- Boot to fastboot via Home+Power (VolDown seems unnecessary)

- fastboot boot cwm-recovery.img (this recovery seems to be non-functional (keys not working)

- adb shell

- reboot recovery (this boots from the recovery partition)

If you erased recovery partition, flash it again using fastboot flash recovery cwm-recovery.img.
[Android Software/Hacking General [Developers Only]] raenye:
OK, here's a CWM 3.1.0.0 recovery with the p506 stock kernel.

It works without color issues on my father's Thrive.

Anyone knows how to get this into the official Rom Manager repository?

Usage

:

extract CWM3100-p506-recovery.img from the archive.

get to fastboot mode.

fastboot flash recovery CWM3100-p506-recovery.img

fastboot reboot

Reboot to recovery from Rom Manager.

Note: I deliberately put an img file and not a flashable zip, since I only want people who can use fastboot to test it.

Issues

: [all of which also exist in the original Optimus One CWM recovery]

1) Rom Manager cannot pass commands to the recovery (e.g., "do backup") but rather boots to recovery and then you can manually do it;

2) Power+Home boots to fastboot mode and there's AFAIK no 2/3-button method to get to recovery.

Thanks to drellisdee, whose advice convinced me I actually got it right in the first attempt, but couldn't realize it at that time :D
[Android Software/Hacking General [Developers Only]] kalel90:
Question. I have a lg thrive that's stuck in emergency mode is there anything at all i can do besides wait for lg to release the kdz for it?
[Android Software/Hacking General [Developers Only]] aat455:
Thanks for the files, raenye...
[Android Software/Hacking General [Developers Only]] raenye:
I'm not counting on LG publishing a kdz any time soon.

Can you get to fastboot mode? (I'm not sure what's the difference between this and emergency mode)
[Android Software/Hacking General [Developers Only]] aat455:
Take the battery out and remove from the computer if connected...

Try to do

Home+Vol Down+Power it might take you to something like...

fastboot mode started

udc_start()

------

btw, did the phone get into emergency mode by itself or happened while you were trying to root or install a ROM etc...

mine once went into emergency mode by itself, I did the recovery I guess by Home+Vol.up+Power...
[Android Software/Hacking General [Developers Only]] kalel90:
Actually i tried to flash a kdz that i thought was stock 2.2.1 for the thrive but it turns out it wasn't and now it wont let me into anything but emergency mode lol. I wish lg would just post all the kdz like Samsung posts all the stock roms for their phones.
[Android Software/Hacking General [Developers Only]] aat455:
Feeling is mutual...
[Android Software/Hacking General [Developers Only]] eljefe27:
Edit deleted

Sent from my Desire HD