[DEVELOPMENT][STABLE]Linux Kernel 3.0 development for HTC Explorer/Pico

Search This thread

sakindia123

Inactive Recognized Developer
May 6, 2011
4,043
9,548
Noida
Hello.First of all,

THREAD FOR DEVELOPERS ONLY

STATUS

Linux Kernel 3.0.16 for Htc Explorer (Pico)

WORKING
=======

- Touchscreen
- Sound
- Hardware Acceleration
- Brightness / Screen controls
- Accelerometer
- Vibrator
- Ambient light sensor
- RIL
- Camera
- Clock
- Battery
- Phone (Both incoming and outgoing)
- Message service
- Data service
- Capacitive buttons
- GPS
- Stable(No random reboots)
- Storage (Both sdcard and sd-ext works)
- Deep Sleep
- USB
- WiFi
- Hardware Buttons
- Bluetooth
- FM Radio

NOT WORKING
===========

- Nothing much

Question- What advantages will 3.x bring over 2.6.38 kernel?Will it make my porn load faster?
Answer-No,it wont bring any magic,but

Easier updating the kernel to add security and performance boosts from mainline Linux kernels
More support for new versions of Android
Android 4.0 was built upon Linux Kernel 3.0.x and therefore expects kernel 3.0s APIs
Faster, more secure system
Because it's just better

User thread-- http://xdaforums.com/showthread.php?t=2041612

developers--> cuteprince,yannou90,lirokoa,savvas,sakindia123[teamwork]
Source Code--> https://github.com/sakindia123/htc_pico_kernel_3.x
 

Attachments

  • 740945_573060139375128_2106181775_o.jpg
    740945_573060139375128_2106181775_o.jpg
    308.8 KB · Views: 5,071
Last edited:

sakindia123

Inactive Recognized Developer
May 6, 2011
4,043
9,548
Noida
I also tried that but kernel never worked !

Sent from my HTC Explorer A310e using xda premium
I will be uploading sources to my github,hopefully together we can atleast make it boot
Also,what exactly did u change in the source code ? I shall compare it with mine and see if anything important comes out
 
Last edited:

derefas

Senior Member
Dec 21, 2010
719
3,722
Siberia
Good start bro! 3.0 kernel help us to port Sense 4 without masturbating
First of all we can boot it with golf config but we need to change physic offset,gpios and irq's and edit memory bank's, because we have older radio than golf
If it will boot, we can port other stuff from pico kernel, like himax touch screen or bcmdhd, or bt stack
 
Last edited:

sakindia123

Inactive Recognized Developer
May 6, 2011
4,043
9,548
Noida
Good start bro! 3.0 kernel help us to port Sense 4 without masturbating
First of all we can boot it with golf config but we need to change physic offset,gpios and irq's and edit memory bank's, because we have older radio than golf

Thanks,yeah that's what I thought, allocate more memory.
This will help both Sense 4 and cm10 and future android versions, and might even solve the friggin unstable mobile data......
If this works,we can think about caf msm 3.0/4
Lirokoa already kanged lots from golf kernel, its better to use the whole thing

Sent from my GT-I9100
 
Last edited:

cute_prince

Inactive Recognized Developer
May 19, 2012
782
4,300
Trivandrum
AFAIK, msm7k chipset has a hidden UART(serial port) which can be used for early kernel debugging ... However, in order to access this, we need HTC ExtUSB cable. But I cant find one at local shop
 
  • Like
Reactions: bulletproof136

lirokoa

Senior Member
This is a good project, but that won't be easy without access to JTAG hardware (I'm not even sure we can access to the JTAG header on the phone).
Anyway, I think first step is to get USB up and running so we can get adb.
So the best would probably to disable everything we can except usb, and once its up we can move forward and enable driver one by one.
 

DanceOff

Senior Member
Feb 20, 2012
3,832
2,847
26
New Delhi
Hey,i have created a new repository here- https://github.com/sakindia123/htc_pico_kernel_3.x
Happy to see so many developers interested! :)
Kindly fork the above repo and send pull requests to the same!

Will do it.

Sent from my HTC Explorer A310e using xda premium

---------- Post added at 05:18 PM ---------- Previous post was at 05:17 PM ----------

I will be uploading sources to my github,hopefully together we can atleast make it boot(inspired by the Galaxy S Plus' Caf-ics-3.x port).
Also,what exactly did u change in the source code ? I shall compare it with mine and see if anything important comes out

It was a mess, leave it.

Sent from my HTC Explorer A310e using xda premium
 

Adi_Pat

Senior Member
Dec 19, 2011
1,210
3,566
Mumbai
Our school has alot of books on it...
Those languages are pretty simple... If you know VB completely then C wont be tough. And yes! You should know real nos.,integers etc really well!

Dude seriously? We are taking about porting Linux Kernel to a board here.And you are taking about numbers and integers here. -_- FYI no language is simple to master. AND C ISNT.

@Sarthak forking the repo, will help with whatever coding I can. Just to improve my programming skills more.
Did you guys give a thought about kexec? You could possibly boot a live kernel over your booted one (Google for it) I couldn't due to some **** with the bootloader on my OMAP. But give it a try on ur msm7k till you guys can get UART.


Sent from my GT-I9003 using xda premium
 
  • Like
Reactions: bulletproof136

hell_lock

Inactive Recognized Developer
Jan 20, 2012
5,970
5,173
27
New Delhi
Hey op.. What exactly did u do to combine 2 sources together? Maybe u missed some file?

Sent from my GT-S5360 using XDA
 

Adi_Pat

Senior Member
Dec 19, 2011
1,210
3,566
Mumbai
Sent you another pull request, somehow trying to get rid of that **** error (Which should be a warning!) Defined but unused function. Will try to make it compile properly today. But rest is upto you :) i.e testing and debugging.. can help fix up stuff though
 

cute_prince

Inactive Recognized Developer
May 19, 2012
782
4,300
Trivandrum
The 'defined but unused function' errors are created by 'Wundef' and 'Werror' gcc flags in the kernel Makefile :) . To get rid of this remove '-Wundef' and '-Werror' options from KBUILD_CFLAGS (on line 373 of kernel Makefile)

Sent from my HTC Explorer A310e using xda premium
 

Adi_Pat

Senior Member
Dec 19, 2011
1,210
3,566
Mumbai
The 'defined but unused function' errors are created by 'Wundef' and 'Werror' gcc flags in the kernel Makefile :) . To get rid of this remove '-Wundef' and '-Werror' options from KBUILD_CFLAGS (on line 373 of kernel Makefile)

Sent from my HTC Explorer A310e using xda premium

Have u tried it?

I tried removing -Wundef , didn't work. -Werror was set for implicit function declaration.. which was correct. I compared the Makefile with another Source(3.0.y, and I don't get error for unused functions in it) the flags were same. So I don't know why I get a fatal warning in this source.

Sent from my GT-I9003 using xda premium
 

Top Liked Posts

  • There are no posts matching your filters.
  • 92
    Hello.First of all,

    THREAD FOR DEVELOPERS ONLY

    STATUS

    Linux Kernel 3.0.16 for Htc Explorer (Pico)

    WORKING
    =======

    - Touchscreen
    - Sound
    - Hardware Acceleration
    - Brightness / Screen controls
    - Accelerometer
    - Vibrator
    - Ambient light sensor
    - RIL
    - Camera
    - Clock
    - Battery
    - Phone (Both incoming and outgoing)
    - Message service
    - Data service
    - Capacitive buttons
    - GPS
    - Stable(No random reboots)
    - Storage (Both sdcard and sd-ext works)
    - Deep Sleep
    - USB
    - WiFi
    - Hardware Buttons
    - Bluetooth
    - FM Radio

    NOT WORKING
    ===========

    - Nothing much

    Question- What advantages will 3.x bring over 2.6.38 kernel?Will it make my porn load faster?
    Answer-No,it wont bring any magic,but

    Easier updating the kernel to add security and performance boosts from mainline Linux kernels
    More support for new versions of Android
    Android 4.0 was built upon Linux Kernel 3.0.x and therefore expects kernel 3.0s APIs
    Faster, more secure system
    Because it's just better

    User thread-- http://xdaforums.com/showthread.php?t=2041612

    developers--> cuteprince,yannou90,lirokoa,savvas,sakindia123[teamwork]
    Source Code--> https://github.com/sakindia123/htc_pico_kernel_3.x
    46
    [UPDATE]

    Good news guys, I fixed the partition mounting problem :)

    The problem was missing NAND Controller driver.

    Now the most exciting part is that kernel got past HTC splash screen and I can see the AOKP bootanimation :cool: ... But just before showing the home screen, phone restarts ..

    Well, guys we are very close to getting a working 3.x kernel :)
    33
    Yohoooo !!!!... Hey fellas got real overclockinggggggggg

    Proof:

    Code:
    <6>[    0.060913] CPU: Testing write buffer coherency: ok
    <6>[    0.063476] print_constraints: dummy: 
    <3>[    0.063537] rdev_init_debugfs: Error-Bad Function Input
    <6>[    0.063690] NET: Registered protocol family 16
    <6>[    0.064849] acpuclk_7201_init()
    <6>[    0.064880] Shared PLL control available.
    <6>[    0.065032] L val: PLL0: 50, PLL1: 12, PLL2: 62
    <6>[    0.065063] Turbo mode supported but not enabled.
    [COLOR="Red"]<6>[    6.575622] ACPU running at 796800 KHz
    <6>[    6.575622] Id CPU-KHz PLL DIV AHB-KHz ADIV AXI-KHz D0 D1 D2 D4 U0 U1 U2 U4
    <6>[    6.575653]  0   19200  -1   1    2400    4   30720 -1 -1 -1 -1  4  3  5  6
    <6>[    6.575683]  1   61440   1  12    7680    4   61440 -1 -1 -1 -1  4  3  5  6
    <6>[    6.575744]  2  122880   1   6   15360    4   61440 -1  1 -1 -1  7  3  5  6
    <6>[    6.575775]  3  245760   1   3   30720    4   61440 -1  1 -1 -1  7 -1  5  6
    <6>[    6.575805]  4  320000   0   3   40000    4  122880 -1  1 -1 -1  7 -1  5  6
    <6>[    6.575836]  5  398400   2   4   49800    4  150000  4  1 -1 -1  7 -1  8  6
    <6>[    6.575866]  6  400000   4   2   50000    4  122880  4  1  5 -1  7 -1  8 -1
    <6>[    6.575897]  7  480000   0   2   60000    4  122880  4  2  5  6 -1 -1  8 -1
    <6>[    6.575927]  8  796800   2   2   99600    4  200000  7 -1  5  6 -1 -1 -1 -1
    <6>[    6.575927] 6 scaling frequencies supported.[/COLOR]
    <6>[    6.575958] pico_init() revision = 0x80
    <6>[    6.575958] pico_init_mmc
    <6>[    6.576293] BD_ADDRESS=18:87:96:4a:d9:37
    <6>[    6.576293] [HS_BOARD] (headset_init) system_rev = 128
    <6>[    6.576385] [HS_BOARD] (headset_init) Enable Beats support
    <6>[    6.576568] [K] ram_console: got buffer at 2fd00000, size e0000
    <6>[    6.576843] [K] ram_console: uncorrectable error in header
    <6>[    6.576873] [K] ram_console: no valid data in buffer (sig = 0xffffffdb)
    <6>[    6.596954] console [ram0] enabled
    <6>[    6.598724] [DISP] panel_type= 0x940034
    <6>[    6.598907] [DISP] pico_init_panel: mipi_novatek
    <6>[    6.599365] [DISP] panel ID= 0x940034
    <6>[    6.599731] No Cypress chip!
    <6>[    6.600097] pico_wifi_init: start

    Currently I overclocked it to 796Mhz :) ..

    Thanks to the XDA developer 'zeroprobe' for providing overclocked acpuclock-7201.c file for Desire C. I ported it to work with our Explorer :)
    33
    [kernel 3.0.16 booted successfully]

    Hey guyz, This is the moment we have all been waiting for .. I present you kernel 3.0.16 completely booting and stable (no random restart or whatever) for our beloved Explorer :cool::cool:

    WORKING
    ========

    - Touchscreen
    - Camera (Not included in this boot.img.. Test with latest boot.img uploaded by sakindia123)
    - Sound ( Volume is a bit low)
    - Hardware Acceleration
    - Brightness / Screen controls
    - Accelerometer
    - Vibrator
    - RIL
    - Clock
    - Battery
    - Phone (Both incoming and outgoing)
    - Message service
    - Data service
    - Capacitive buttons
    - GPS
    - Storage ( Both sdcard and sd-ext works)

    NOT WORKING
    === ========

    - USB (completely broken)
    - Bluetooth
    - Hardware Buttons (Power button and Vol + button doesnt works but Vol - button works )
    - WiFi

    Here I am attaching the boot.img file :) Enjoy :highfive:
    30
    [Bluetooth Fixed]

    haha :laugh: ..Bluetooth fixed :cool: ..f*ck yeah !!!