1. Download our Official Android App: Forums for Android!

Unlocked bootload and CM10

Discussion in 'Android Devices' started by Neph81, Dec 27, 2012.

  1. PlayfulGod

    PlayfulGod Extreme Android User
    Rank:
    None
    Points:
    353
    Posts:
    8,103
    Joined:
    Jan 28, 2011

    Jan 28, 2011
    8,103
    4,933
    353
    Male
    Web Design and Hosting/PC Repair
    NW Georgia
    the readme included with the src should say. I think it was 4.3.3 I used, may have been 4.6 included with CM10, dont recall atm, I got something to compile with 4.6 tho. lol
     

    Advertisement

  2. Neph81

    Neph81 Android Expert
    Thread Starter
    Rank:
    None
    Points:
    213
    Posts:
    1,399
    Joined:
    Mar 3, 2012

    Mar 3, 2012
    1,399
    823
    213
    Male
    Wisconsin
    Latest response I received from them. The readme says 4.4.3.

    [FONT=&quot][/FONT][FONT=&quot]We will deliver your request to our dev. team to check it.[/FONT]
    [FONT=&quot]As we know, we use GCC 4.3 or 4.4 not 4.7.[/FONT]
    [FONT=&quot]We will check GCC version again.[/FONT]
    [FONT=&quot] [/FONT]
    [FONT=&quot]Please wait for some times to receive result from dev. team.[/FONT]

    I linked them to the Iproj kernel and told them point blank that the source I have boots the lucid, but is missing the display drivers. I guess it's back to playing the waiting game and seeing what else I can find out there for possible kernels to steal a display driver from.
     
  3. PlayfulGod

    PlayfulGod Extreme Android User
    Rank:
    None
    Points:
    353
    Posts:
    8,103
    Joined:
    Jan 28, 2011

    Jan 28, 2011
    8,103
    4,933
    353
    Male
    Web Design and Hosting/PC Repair
    NW Georgia
    the kernel src for the lucid should have em if not for all 3 840's. They are also prolly in the lge dir in the root of the src dir just copy of the cayman shyt and and look at the make & kconfig files for what lines might be need to be added to the same file in the iproj src. Might be some defines in the board file needed too along with other places too.

    I am working on adding em for the connect but not got it to compile yet.
     
  4. Neph81

    Neph81 Android Expert
    Thread Starter
    Rank:
    None
    Points:
    213
    Posts:
    1,399
    Joined:
    Mar 3, 2012

    Mar 3, 2012
    1,399
    823
    213
    Male
    Wisconsin
    I was able to compile it with that method after about 20 builds, but you end up changing files in the LGE board setup, display drivers, backlight drivers, and a few other areas. I still could not get it to boot either. On a weirder note, LG is still chatting with me and now wants to know the exact steps I'm doing to compile the code and how I'm installing it once I have the boot.img. I'll keep everyone updated in case I do get something positive out of it.
     
  5. PlayfulGod

    PlayfulGod Extreme Android User
    Rank:
    None
    Points:
    353
    Posts:
    8,103
    Joined:
    Jan 28, 2011

    Jan 28, 2011
    8,103
    4,933
    353
    Male
    Web Design and Hosting/PC Repair
    NW Georgia
    they are prolly taking notes with the intentions of figuring out how to make it even harder lol
     
  6. dspl1236

    dspl1236 Well-Known Member
    Rank:
    None
    Points:
    63
    Posts:
    231
    Joined:
    Apr 19, 2012

    Apr 19, 2012
    231
    36
    63
    Male
    Field Engineer

    or they dont even know what they are doing yet... ;)
     
  7. Neph81

    Neph81 Android Expert
    Thread Starter
    Rank:
    None
    Points:
    213
    Posts:
    1,399
    Joined:
    Mar 3, 2012

    Mar 3, 2012
    1,399
    823
    213
    Male
    Wisconsin
    And with this, I will never be buying another LG phone. This is now considered dead in the water. I may pick up a lucid this summer to play around with if I find a cheap one on ebay or swappa just because I'm stubborn like that.

    "[FONT=굴림][FONT=맑은 고딕]Thank you for your interest about our mobile phone. [/FONT][/FONT]

    [FONT=굴림][FONT=맑은 고딕]“[/FONT][FONT=맑은 고딕]We received your request on LG Open Source Code Distribution site([/FONT][FONT=맑은 고딕]http://opensource.lge.com[/FONT][FONT=맑은 고딕]). [/FONT][/FONT]
    [FONT=굴림][FONT=맑은 고딕]This site is just for providing source codes of FOSS(Free and Open Source Software) we have used in our product.[/FONT][FONT=맑은 고딕]”[/FONT][/FONT]

    [FONT=굴림][FONT=맑은 고딕]We received response from Open Source department.[/FONT][/FONT]
    [FONT=굴림][FONT=맑은 고딕]They said that GPL doesn’t have terms which are guaranting boot with different bootloader.[/FONT][/FONT]

    [FONT=굴림][FONT=맑은 고딕]It is very hard to support multiple bootloader with the same kernel source code.[/FONT][/FONT]
    [FONT=굴림][FONT=맑은 고딕]And we don’t miss any source codes while we upload the newest kernel we used.[/FONT][/FONT]
    [FONT=굴림][FONT=맑은 고딕]Please consider this situation.[/FONT][/FONT]

    [FONT=굴림][FONT=맑은 고딕]We hope this information will help you. [/FONT][/FONT]

    [FONT=굴림][FONT=맑은 고딕]Thank you.[/FONT][/FONT]
    [FONT=굴림][FONT=맑은 고딕]Sincerely yours,[/FONT][/FONT]

    [FONT=굴림][FONT=맑은 고딕]LGE MC Company Open Source Code Distribution Center"[/FONT][/FONT]
     
  8. Connorh333

    Connorh333 Well-Known Member
    Rank:
    None
    Points:
    38
    Posts:
    149
    Joined:
    Dec 25, 2012

    Dec 25, 2012
    149
    11
    38
    Male
    Locked Bootloaders :(
     
  9. sammyz

    sammyz LG Whiz Kid
    Rank:
     #54
    Points:
    423
    Posts:
    8,840
    Joined:
    Jun 3, 2011

    Jun 3, 2011
    8,840
    2,500
    423
    Male
    Video Production
    Sunrise, Fl
    Will be the reason LG will fail until further notice. :p
     
  10. Connorh333

    Connorh333 Well-Known Member
    Rank:
    None
    Points:
    38
    Posts:
    149
    Joined:
    Dec 25, 2012

    Dec 25, 2012
    149
    11
    38
    Male
    How could this Bootloader be unlocked? If it does get unlocked there would be a possibility of CM9 or other vanilla 4.0.4 based roms. Does anyone know how the spectrum, Optimus G or any other LG ICS bootloader?
     
  11. saxydroid

    saxydroid Newbie
    Rank:
    None
    Points:
    18
    Posts:
    41
    Joined:
    Apr 23, 2012

    Apr 23, 2012
    41
    16
    18
    Hillsborough, New Jersey

    The boot loader wasn't the problem (because the gingerbread boot loader was unlocked), the device would boot cm10 but the video drivers were for the spectrum, which has a larger HD display. The video drivers supplied by lg for the lucid won't work with the source for the cm kernel either, so someone is going to have to create or modify the driver to support the lucid s display.
     
  12. stcarlso

    stcarlso Well-Known Member
    Rank:
    None
    Points:
    53
    Posts:
    222
    Joined:
    Feb 26, 2013

    Feb 26, 2013
    222
    90
    53
    Hello all, I have been lurking this thread for a few weeks, and have made an account in the hopes of contributing. I have a lucid for testing and have enough C experience (but no kernel experience at this time) to give this kernel a shot.

    I was able to download and build the LG ZV7 kernel, but how can one turn the zImage into a flashable ZIP file for recovery? Also, which kernel source is the code that builds but produces no video, and which exact ROM boots the lucid? Sorry if I'm asking stupid questions, but I want to be doubly sure, as this lucid is a replacement for the one that died last week during an OTA and I will have a tough time getting it fixed if it breaks.
     
  13. Neph81

    Neph81 Android Expert
    Thread Starter
    Rank:
    None
    Points:
    213
    Posts:
    1,399
    Joined:
    Mar 3, 2012

    Mar 3, 2012
    1,399
    823
    213
    Male
    Wisconsin
    https://github.com/spectrumhackers/lge-kernel-iproj

    spectrum-defconfig

    It boots, but no video on any Rom I've injected the zImage into. This includes a stock ICS rip and a CM10 rom we have on the Spectrum. Inserting the video drivers, and needed dependencies, from the v7 source into this causes it to no longer boot, which means either the video drivers are bad, or I'm missing something that needs to be merged.
     
  14. stcarlso

    stcarlso Well-Known Member
    Rank:
    None
    Points:
    53
    Posts:
    222
    Joined:
    Feb 26, 2013

    Feb 26, 2013
    222
    90
    53
    So, to confirm, I should compile the "lge-kernel-iproj" kernel with

    [HIGH]make spectrum-defconfig ARCH=arm ...[/HIGH]

    and put the zImage thus generated into the Quattrimus kernel link you posted (the CM10 version?).

    Does this involve using "split_bootimg" and "mkbootimg" to simply swap out the zImage inside the "boot.img" in that ROM, or is there more work (signing? "--base 0x..."?) to be done? I'll give it a try by the weekend if all goes well.
     
  15. Neph81

    Neph81 Android Expert
    Thread Starter
    Rank:
    None
    Points:
    213
    Posts:
    1,399
    Joined:
    Mar 3, 2012

    Mar 3, 2012
    1,399
    823
    213
    Male
    Wisconsin
    Correct, your build setup should provide you with a functional zImage and .ko files.

    This source is what is currently in the CM10 (aka beta 4) posted in this thread. The easiest way to insert the zImage is with abootimg . The replace kernel option works just fine. This alone will not fix what we need as the video drivers do not work. If you manage to merge some different source codes together and get this working, I would love to hear about it.
     
  16. stcarlso

    stcarlso Well-Known Member
    Rank:
    None
    Points:
    53
    Posts:
    222
    Joined:
    Feb 26, 2013

    Feb 26, 2013
    222
    90
    53
    I was able to compile and link a test kernel using gcc 4.4.3, but the kernel no longer fits with the Quattrimus boot.img configuration in the "i_vzw" (is this the right one?) folder:

    [HIGH]/opt/android/image$ abootimg -u boot.img -k zImage
    reading kernel from zImage
    boot.img: updated is too big for the Boot Image (8368128 vs 8237056 bytes)
    [/HIGH]

    Can I go into the config and safely increase

    [HIGH]bootsize = 0x800000[/HIGH]

    or will this cause a brick when it is flashed? Likewise, if the ramdisk gets bigger when the new modules are inserted, will this cause issues?
     
  17. Neph81

    Neph81 Android Expert
    Thread Starter
    Rank:
    None
    Points:
    213
    Posts:
    1,399
    Joined:
    Mar 3, 2012

    Mar 3, 2012
    1,399
    823
    213
    Male
    Wisconsin
    You can fix the bootsize without any known issues. What I ended up doing was taking dd image from flashing the base boot.img to my phone. That gives you a solid 16MB file to work with and you never need to worry about zeroing the partition as it fills it exactly full.
     
  18. stcarlso

    stcarlso Well-Known Member
    Rank:
    None
    Points:
    53
    Posts:
    222
    Joined:
    Feb 26, 2013

    Feb 26, 2013
    222
    90
    53
    After flashing the Quattrimus ROM, both with the kernel it ships with and the kernel I tried to build, the phone is responding to power button, keys, etc. but the screen is black as before. What did you do to get access with android screen cast to find out how far the phone got into the boot? The phone is not currently being detected by either a Linux or Windows computer.
     
  19. Neph81

    Neph81 Android Expert
    Thread Starter
    Rank:
    None
    Points:
    213
    Posts:
    1,399
    Joined:
    Mar 3, 2012

    Mar 3, 2012
    1,399
    823
    213
    Male
    Wisconsin
    Follow the instructions in this post and it should enable ADB for you.
    http://androidforums.com/spectrum-a...quattrimus-jb-cm10-aokp41-27.html#post5468360
     
  20. stcarlso

    stcarlso Well-Known Member
    Rank:
    None
    Points:
    53
    Posts:
    222
    Joined:
    Feb 26, 2013

    Feb 26, 2013
    222
    90
    53
    While I still have no screen, I have found out the following:

    • Stock kernel rips from the phone with ICS running do not boot.
    • Using the open source Lucid kernel and modules does not bring up the screen.
    • The iproj kernel and the Quattrimus CM10 kernel bring up the phone with no screen, but the screen cast works, and data is connecting with 4G indicated. WiFi is operational, have not tested Bluetooth or GPS yet.
    • The digitizer driver needs to be adjusted, as the bottom-most 1/2" or so of the screen is unaddressable, along with about 1/8" on the right. I cannot get past the CM10 intro screen as the OK button on the bottom is not touchable.
     
  21. stcarlso

    stcarlso Well-Known Member
    Rank:
    None
    Points:
    53
    Posts:
    222
    Joined:
    Feb 26, 2013

    Feb 26, 2013
    222
    90
    53
    After hours of merging, I got a combination to compile with a screen! (Took parts of the LG ics kernel and merged into thebigq's android-msm-3.0-jb kernel)

    [​IMG]
    (link if image does not show)

    Backlight is working (can adjust brightness, auto-dims). Bluetooth enumerated other devices, so that looks good. Haven't had a chance to try GPS. Sound and vibrator are good to go. Wireless charging cover (which I do not own) will not work as I have not yet merged the rt9524 drivers.

    The following issues are still noted:
    • Touch coordinates are still not right
    • Icons/text are too big (the ROM seems to be still wanting the higher resolution). Is this a theming issue? Or is there something in the kernel I need to set?
    • Charger might not be displaying the right power level (no way to verify for sure at this point)
    • Neither front nor rear camera driver is working (merged, but cannot connect)
     
    microbot118, Shockey62, jhcii and 9 others like this.
  22. Neph81

    Neph81 Android Expert
    Thread Starter
    Rank:
    None
    Points:
    213
    Posts:
    1,399
    Joined:
    Mar 3, 2012

    Mar 3, 2012
    1,399
    823
    213
    Male
    Wisconsin
    Damn... you've gotten a lot done in a very short time period.

    Edited:
    I re-read your post and saw that you found all the differences already. Damn nice work. When you get a fully functional kernel, please let me know and we can work on the unlock program.
     
  23. Connorh333

    Connorh333 Well-Known Member
    Rank:
    None
    Points:
    38
    Posts:
    149
    Joined:
    Dec 25, 2012

    Dec 25, 2012
    149
    11
    38
    Male
    Only 6 posts...
    Already a legend haha.
    Very Nice work though!!!
     
  24. stcarlso

    stcarlso Well-Known Member
    Rank:
    None
    Points:
    53
    Posts:
    222
    Joined:
    Feb 26, 2013

    Feb 26, 2013
    222
    90
    53
    As of now, I have fixed the touch screen problem, so the phone is halfway usable. I have now found out that the "search" button does not work and the backlight does not turn off properly, so those are the next two things to fix, followed by the cameras. The phone also charges very very slowly, so I need to look into that.

    Is there anyone else who might be an expert on these particular issues (especially power) so that they can be resolved quicker?
     
    jhcii likes this.
  25. Neph81

    Neph81 Android Expert
    Thread Starter
    Rank:
    None
    Points:
    213
    Posts:
    1,399
    Joined:
    Mar 3, 2012

    Mar 3, 2012
    1,399
    823
    213
    Male
    Wisconsin
    Yes, contact TDM Android Forums - View Profile: tdm and let him know what you are working on. He's done a majority of the work on getting the spectrum fully functional so he knows the kernel inside and out.
     
    stcarlso likes this.

Share This Page

Loading...