[DEV] 3.x.x nAa kernels for SEMC 2011 line - Devs only

Search This thread

nobodyAtall

Recognized Developer
Jan 16, 2008
1,583
19,555
Malaysia, Cheras
Hello community,

First things first...

I'm opening this thread for developer discussion ONLY. There will be a separate thread for releasing this kernel and for user feedback, etc. Please RESPECT that and keep this thread only for developer discussion. This is only for development chat - nothing else.

To report bugs, questions, etc (NON-development stuff) --> http://xdaforums.com/showthread.php?t=2247466

As you might already know, I've been working on getting 3.0 booting for our devices with success. Progress is good, but as expected there are bugs here and there that need to be sorted out.

Current status:

- Some components (e.g. charging and camera) have to come from SEMC .32 sources (which are not bad anyways) - this is ok
- Most other stuff are updated from later sources

3.0.x
- Based this kernel on M7630AABBQMLZA404033I CAF tag. It's the latest tagged release for this arch and is linux 3.0.8.
- Rebased on ics_chocolate branch
- All mogami devices are fixed almost completely. There are bugs here and there as with all software.

3.4.x
- Based this kernel on M7630AABBQMLZA40901040 CAF tag. There is no tagged release for this arch for 3.4. msm7x30 is not officially supported any more.


Goal:
- To stimulate kernel development discussions and get all 2011 devices completely supported.

What's needed:
- Developers to pick up on a device they have (there's no point trying to port a new kernel without having the device, please don't do that) and make the needed changes for fully supporting them.
- Look for bugs and instabilities and fix them
- Propose enhancements and patches

Some rules:
- I will not be accepting patches blindly. They must be tested and verified to work without affecting other devices. Plus, these are stability-targeted kernels
- If porting from .32 is needed (i.e. after evaluating that new CAF drivers don't work) changes should be kept minimal and close to CAF. This will allow for further upgrades ;)
- You can fork as much as you like, but please contribute back so that all devices can benefit! This is open source in action.

Sources:
3.0.x: https://github.com/nobodyAtall/msm7x30-3.0.x-nAa
3.4.x: https://github.com/nobodyAtall/msm7x30-3.4.x-nAa

Want to support?
- Help development
- .

Cheers!
-- nAa
 
Last edited:

nobodyAtall

Recognized Developer
Jan 16, 2008
1,583
19,555
Malaysia, Cheras
3.4.x

What works
- Pretty much everything - major or minor functionality is already implemented in the kernel

What does NOT work
- FM Radio

Status per device

smultron Done (nAa)

3.0.x

What works
- Pretty much everything - major or minor functionality is already implemented in the kernel

What does NOT work
- USB tethering
- FM Radio

Status per device

smultron Done (nAa)
coconut Done (pcfighter)
iyokan Done (M66B)
haida Done (mechmetal, mikeioannina)
hallon Done (mechmetal, mikeioannina)
satsuma Done (mikeioannina)
anzu Done (DooMLoRD)
ayame Done (DooMLoRD)
urushi Done (irii)
mango Done (expeacer)
zeus nothing
phoenix nothing

Legend:
- Done: Device boots the kernel and is usable. Functionality is close to 100%
- Initial support: Some basic bits are in and some stuff are working. Kernel is not usable at this point
- Nothing: either nobody is looking into it or there is little to no work done.

Please let me know if the above lists are wrong or incomplete

NOTE: New wl12xx firmware is needed for compat-drivers: http://xdaforums.com/attachment.php?attachmentid=1911461&stc=1&d=1368826342

NOTE: New wl12xx firmware is needed for compat-wireless: http://xdaforums.com/attachment.php?attachmentid=1969073&d=1368791362
 

Attachments

  • wl127x-fw-5-sr.bin.gz
    197.8 KB · Views: 567
Last edited:

nobodyAtall

Recognized Developer
Jan 16, 2008
1,583
19,555
Malaysia, Cheras
;)


so do we need to rebuild CM for this kernel?

also which android version did u test with? 4.1.x or 4.0.x?

will stock GB/ICS work on this kernel?

Android 4.x should all be compatible. No need to rebuild rom or anything. Just make sure you use a CM ramdisk.

Sent from my Galaxy Nexus using xda app-developers app
 

Vynikal

Senior Member
Sep 29, 2012
1,021
765
Will you do it for the iyokan too ?
I'm asking since anzu and iyokan are pretty similar :)

Sorry if this is considered as spam, I couldn't resist :D

Sent from my Sony Xperia Pro using Tapatalk 2
All 2011 HDPI are very similar (except zeus). DooMLoRD has taken these two, because he own them.
 

pcfighter

Inactive Recognized Developer
Mar 22, 2013
306
805
WiFi on coconut not working, iw said that "wlan0 no such device". Strange ...
 

pcfighter

Inactive Recognized Developer
Mar 22, 2013
306
805
@n1kolla

"no such device". Now I noticed that modules wlcore_sdio.ko is nor loaded at boot, I added but now logcat says about wpa_supplicant, that it not running. some time ago I have to use TI ver of wpa_supplicant, maybe now I can revert ...
 

Top Liked Posts

  • There are no posts matching your filters.
  • 249
    Hello community,

    First things first...

    I'm opening this thread for developer discussion ONLY. There will be a separate thread for releasing this kernel and for user feedback, etc. Please RESPECT that and keep this thread only for developer discussion. This is only for development chat - nothing else.

    To report bugs, questions, etc (NON-development stuff) --> http://xdaforums.com/showthread.php?t=2247466

    As you might already know, I've been working on getting 3.0 booting for our devices with success. Progress is good, but as expected there are bugs here and there that need to be sorted out.

    Current status:

    - Some components (e.g. charging and camera) have to come from SEMC .32 sources (which are not bad anyways) - this is ok
    - Most other stuff are updated from later sources

    3.0.x
    - Based this kernel on M7630AABBQMLZA404033I CAF tag. It's the latest tagged release for this arch and is linux 3.0.8.
    - Rebased on ics_chocolate branch
    - All mogami devices are fixed almost completely. There are bugs here and there as with all software.

    3.4.x
    - Based this kernel on M7630AABBQMLZA40901040 CAF tag. There is no tagged release for this arch for 3.4. msm7x30 is not officially supported any more.


    Goal:
    - To stimulate kernel development discussions and get all 2011 devices completely supported.

    What's needed:
    - Developers to pick up on a device they have (there's no point trying to port a new kernel without having the device, please don't do that) and make the needed changes for fully supporting them.
    - Look for bugs and instabilities and fix them
    - Propose enhancements and patches

    Some rules:
    - I will not be accepting patches blindly. They must be tested and verified to work without affecting other devices. Plus, these are stability-targeted kernels
    - If porting from .32 is needed (i.e. after evaluating that new CAF drivers don't work) changes should be kept minimal and close to CAF. This will allow for further upgrades ;)
    - You can fork as much as you like, but please contribute back so that all devices can benefit! This is open source in action.

    Sources:
    3.0.x: https://github.com/nobodyAtall/msm7x30-3.0.x-nAa
    3.4.x: https://github.com/nobodyAtall/msm7x30-3.4.x-nAa

    Want to support?
    - Help development
    - .

    Cheers!
    -- nAa
    114
    3.4.x

    What works
    - Pretty much everything - major or minor functionality is already implemented in the kernel

    What does NOT work
    - FM Radio

    Status per device

    smultron Done (nAa)

    3.0.x

    What works
    - Pretty much everything - major or minor functionality is already implemented in the kernel

    What does NOT work
    - USB tethering
    - FM Radio

    Status per device

    smultron Done (nAa)
    coconut Done (pcfighter)
    iyokan Done (M66B)
    haida Done (mechmetal, mikeioannina)
    hallon Done (mechmetal, mikeioannina)
    satsuma Done (mikeioannina)
    anzu Done (DooMLoRD)
    ayame Done (DooMLoRD)
    urushi Done (irii)
    mango Done (expeacer)
    zeus nothing
    phoenix nothing

    Legend:
    - Done: Device boots the kernel and is usable. Functionality is close to 100%
    - Initial support: Some basic bits are in and some stuff are working. Kernel is not usable at this point
    - Nothing: either nobody is looking into it or there is little to no work done.

    Please let me know if the above lists are wrong or incomplete

    NOTE: New wl12xx firmware is needed for compat-drivers: http://xdaforums.com/attachment.php?attachmentid=1911461&stc=1&d=1368826342

    NOTE: New wl12xx firmware is needed for compat-wireless: http://xdaforums.com/attachment.php?attachmentid=1969073&d=1368791362
    76
    I will take up porting for ARC (anzu), PLAY (zeus)...

    Started work on the Xperia ARC




    sources are uploaded at the following repos:

    ARC/ARC S: [anzu]
    Sources on GITHUB

    Progress so far:
    Changelog | Posts [1] [2]




    PLAY: [zeus]
    Sources on GITHUB
    65
    Video / audio recording fixed.

    Fm also works but you have to kill the app the first time. When relaunching it seems to connect to the chip.
    47
    clean up board file...

    Hey great news everyone!

    I got some sparetime the last days and started to take an intense look at the board file (board-semc_mogami.c) of the latest kernel source (https://github.com/nobodyAtall/msm7x30-3.4.x-nAa)
    In fact i took this branch: https://github.com/LegacyXperia/msm7x30-3.4.x-nAa
    Beeing fed up with people reporting reboots, device not going to sleep, bad battery... etc., i started a big clean up of unrelated stuff from the QC evalboards as well as wipe some unused builtin drivers and other stuff.

    I really took care of not breaking anything and verified especially some GPIO settings with schematics and kept track of the old 2.6.32 board file as well.
    Anyway, consider this as a starter for little code cleanup and a proper base implementation of basic stuff.
    It's even not finished yet but i was able to wipe out ~30K of code which got barely used or even needed.

    History:
    - removed some unused header files
    - changed/removed some PM8xxx GPIO defines and enumeration according to schematics
    - removed code snippets related to FFA, SURF and FLUID QCT-eval-boards not required for mogami
    - changed gpio macros for mi2s initialization
    - removed some unused code for bahama BT/FM chip, on mogami we got TI WL/BT/FM chipset
    (WCN2243, code name bahama, refer to this https://www.codeaurora.org/cgit/qui.../?id=31b2fd9ccd06f593ddd987dd13b29e42cebcf93a)
    - removed EBI parallel bus devices (FPGA, smsc911x) actually not used on mogami
    - removed initialization for unsed peripherals (optnav, isa1200 and tsc2007)
    - removed ADV7520 initialzation and HDMI power functions not implemented on mogami
    - removed ADV7520/BMA150 I2C tweak
    - miscellaneous small tweaks :eek:

    The effect is a more proper file than before... though there might be some errors as well.
    It may also be that some of the master developers do not agree with my changes... things could be reverted partially with ease :angel:

    I did a test build for iyokan these days and the kernel is working very nice.
    I'm using the CM10.1 from mikeioannina repository and just replaced the board file itself (board-semc_mogami.c).
    Fortunately i have to prepare for holiday :D, so unfortunately there's no time left to make some builds for other devices and do extensive tests.

    So far i can tell it the kernel is very stable and got excellent battery life (no problem with deep sleep encountered yet).
    Also no reboots on my side, but consider that i am using a virgin ROM at the moment.

    Another thing to notice is, that i did not fix any of the known bugs, because i only removed unused stuff.
    There'd been some wrong setups at some parts in code though, which i tried to fix by my best knowledge.

    O.k. guys, i know that you don't like posting single source files but as i got no github account setup right now, take it as it is. I will create a repo when i'm back form holiday, to make it more convenient.

    How to proceed:
    Set up a build environment using mikeioannina repos (https://github.com/LegacyXperia) and replace the file in the kernel directory.
    Keep the original file, don't call repo sync again and run the build.
    If you don't know how, follow M66B's path... (thanks btw).

    For the brave one:
    If you got Xperia Pro using latest CM10.1 from shufuking you may flash the boot-iyokan.img you'll find attached.
    This is just an ordinary zip file. So please unzip and use fastboot to flash the kernel.

    EDIT:
    Just a short side note... we still have no working sound from TI FM subset.
    The TI app included in the latest CM10.1 builds uses V4L2 for the sound, so i guess we'll need to have a closer look at the routing of marimba codec to the FM subset.
    Maybe some parts are still missing here...

    That's it by now. Please help testing!
    Any comments are appreciated:D

    Credits:
    nobodyAtall
    mikeioannina
    shufuking
    DooMLorD
    M66B
    ... many more!

    TBC

    Cheers,

    scholbert