ICS/JB Kernel Port Project [Discussion]

Search This thread

MrEddy69

Member
Sep 22, 2011
21
3
I'm a self-taught developer. I started as a kid with ZX Spectrum and Basic. Then it was PC with Pascal, C, Asm. I was even studying computer engineering so i'm not that off of this field of science. But i've never went professional. I'm doing this for fun and knowledge. I just like to know stuff in all fields. But i'm too lazy to do most of learning it requires :D:D:D

This project gets more and more interesting every day :) I really thought skills needed for such project could only be found in professional worker :) There are miracles on our Earth :)
 
  • Like
Reactions: ubunthero

Matada02

Senior Member
Sep 7, 2011
217
53
logout.hu
I'm a self-taught developer. I started as a kid with ZX Spectrum and Basic. Then it was PC with Pascal, C, Asm. I was even studying computer engineering so i'm not that off of this field of science. But i've never went professional. I'm doing this for fun and knowledge. I just like to know stuff in all fields. But i'm too lazy to do most of learning it requires :D:D:D

1 word: WOW :fingers-crossed:

I think we are getting closer to the public alpha test :D I can't wait for it
 
Last edited:

Zeljko1234

Senior Member
May 7, 2010
5,898
2,766
Stockholm
ZX Spectrum was my first computer
wub.gif
and I learned Assembler for Z80. So great CPU for this time. I think is even used right now in embedded systems.

It was long time ago:
LD HL,16384
LD DE,16385
LD BC,6144
LD (HL),0
LDIR

Krystian will know what this program do in just 15 bytes (if I counted right):)
 
Last edited:

lionhart_1912

Member
Oct 7, 2012
27
6
For now i have all the info i need. More tests will be needed when we get those drivers to work, to confirm they work as they should.


My mom is former teacher and i spent dozens of hours on her lessons as a kid (she tought in the same school i was attending to). Maybe this experience made me so patient ;) Sometimes i tutor friends and familly (math, phisics, computers) and i have thought about becoming teacher but it's a long road and teaching someone who doesn't give a crap is not really my dream come true. For now i'm a photographer by day, and zombie-kernel-hacker by night :D (not to mention being father and husband) and that is more than enough :D

I'm a self-taught developer. I started as a kid with ZX Spectrum and Basic. Then it was PC with Pascal, C, Asm. I was even studying computer engineering so i'm not that off of this field of science. But i've never went professional. I'm doing this for fun and knowledge. I just like to know stuff in all fields. But i'm too lazy to do most of learning it requires :D:D:D

is nice to know that Neo really exists
Thanks for your hard work :good:
 

Tohic

Member
Feb 22, 2013
7
2
Kramatorsk
vk.com
for now i have all the info i need. More tests will be needed when we get those drivers to work, to confirm they work as they should.


My mom is former teacher and i spent dozens of hours on her lessons as a kid (she tought in the same school i was attending to). Maybe this experience made me so patient ;) sometimes i tutor friends and familly (math, phisics, computers) and i have thought about becoming teacher but it's a long road and teaching someone who doesn't give a crap is not really my dream come true. For now i'm a photographer by day, and zombie-kernel-hacker by night :d (not to mention being father and husband) and that is more than enough :d

Кристиан, а ваша жена нормально относиться к данному проекту ?: D
Как считаете,много вам осталось работы до выпуска первого тестового рома?
 

krystianp

Senior Member
May 14, 2012
705
11,807
Rzeszow
Кристиан, а ваша жена нормально относиться к данному проекту ?: D
Как считаете,много вам осталось работы до выпуска первого тестового рома?

My wife... this is tough question :D:D You know how it is, you have to constantly bribe her with dinner, flowers, new purse or shoes :D:D But i'm doing my best ;) I think after we get modem or wlan working we gonna prepare first alpha version. We are working on wlan, so if it goes smoothly we should have it ready soon (maybe next week or so). But can't promise anything.

P.S. Please use english (at least from translator) on public forum. PM me if you want to write in russian.
 

Hai_Duong

Senior Member
Feb 20, 2011
851
393
Göppingen
My wife... this is tough question :D:D You know how it is, you have to constantly bribe her with dinner, flowers, new purse or shoes :D:D But i'm doing my best ;) I think after we get modem or wlan working we gonna prepare first alpha version. We are working on wlan, so if it goes smoothly we should have it ready soon (maybe next week or so). But can't promise anything.

P.S. Please use english (at least from translator) on public forum. PM me if you want to write in russian.

good to hear that the development goes up little by little =) of course privat life is first priority then after that maybe smartphone xDD alpha builds are very nice with some working functions but i can already see some post like:

-why is my mobile data not working.
-i get reboots.
-omg its not booting.Help.
-why should i use the kernel when the wifi radio mobile data isnt working.

There are always such post so maybe u should choose some ROM developer and let them test them First. i dont like to hear complaining about a alpha kernel because they cant read the word ALPHA BUILD.
 

samcripp

Retired Recognized Developer
May 20, 2010
1,048
1,774
Sanford
My wife... this is tough question :D:D You know how it is, you have to constantly bribe her with dinner, flowers, new purse or shoes :D:D But i'm doing my best ;) I think after we get modem or wlan working we gonna prepare first alpha version. We are working on wlan, so if it goes smoothly we should have it ready soon (maybe next week or so). But can't promise anything.

P.S. Please use english (at least from translator) on public forum. PM me if you want to write in russian.

Lol. The life of a Dev. I had so much time when I lived in PR and my gf in the states. Now I sit to program anything and she begins to bug me until I'm off the PC. I'm not complaining. But I do wish I could get work done :(

Sent from my Galaxy Nexus using XDA Premium HD app
 
  • Like
Reactions: jhonnyx

Tohic

Member
Feb 22, 2013
7
2
Kramatorsk
vk.com
My wife... this is tough question :D:D You know how it is, you have to constantly bribe her with dinner, flowers, new purse or shoes :D:D But i'm doing my best ;) I think after we get modem or wlan working we gonna prepare first alpha version. We are working on wlan, so if it goes smoothly we should have it ready soon (maybe next week or so). But can't promise anything.

P.S. Please use english (at least from translator) on public forum. PM me if you want to write in russian.
Ок,:) thanks for the answer
 

Zn7mkUKzN1r8aCIV

Senior Member
Mar 20, 2013
250
1,470
Help needed to compile the kernel

As a new comer, I do compile roms myself to include PDroid 2.0/OpenPdroid, I built them with latest CM sources with epinter & ETC patches

At present

have private 4.1.2 rom with leaked kernel, almost everything working (no flash on camera, inverted front camera, no webtop, no fingerprint, gyroscrope sleeps during phone call, can't not hang) ,

After compiling your kernel, I gather alll .ko made, but some are missing comparing to the leaked rom

They are the rmnet*.ko & evfwd.ko

I knew rmnet*.ko are not needed anymore :), but how can I build evfwd.ko Thx.
 

attrixnor

Senior Member
Oct 23, 2012
133
53
krystian ; I think after we get modem or wlan working we gonna prepare first alpha version. We are working on wlan, so if it goes smoothly we should have it ready soon (maybe next week or so). But can't promise anything.
Great !!

Else, about the GSM modem , what is the status , i suppose that this is the most complicated part to do ?
thanks
 

ivanpu

Member
Feb 1, 2013
41
11
Как считаете,много вам осталось работы до выпуска первого тестового рома?
(with google translate)
...
Do you think that a lot of you have left to work before the release of the first test rom?

"How many work do you think is left until the release of first testing ROM?"

Here, human translation is the best.
Robots are still failing at it :D

Sent from my MB860 using xda app-developers app
 
Last edited:

Zn7mkUKzN1r8aCIV

Senior Member
Mar 20, 2013
250
1,470
Just tested it in 4.1.2, some findings:

The whole screen seem to shrink a liitle, leaving a blank strip at the bottom (sth worng with the scaling???)

Can run some 2d games if don't break with no sound, like Cogs :)

Free memory just 589M, instead of 778M in leaked rom after ramfix

after turning off sounds in Settings, UI is generally smooth :), but still don't feel 3d HW acceleration yet.

Gyroscope sensors, camera, sound not working at all
 

Top Liked Posts

  • There are no posts matching your filters.
  • 119
    Download CM9 here: http://xdaforums.com/showthread.php?t=2286515

    Download CM10.1 here: http://xdaforums.com/showthread.php?t=2060064


    [Script] Build ICS/JB Kernel


    Vote for main thread to be on Portal HERE

    Post off-topic and discussion posts about the kernel here so they will not be removed by a moderator. Ask questions. This will save the main thread.

    Follow progress here: https://github.com/CyanogenMod-Atrix

    Kernel Changelog: https://github.com/CyanogenMod-Atrix/android_kernel_motorola_olympus/commits/

    Kernel Issues: https://code.google.com/p/kernel-olympus/issues/list

    Vote for the kernel name here: http://xdaforums.com/showthread.php?t=2168842 (Vote Phoenix)

    Team structure:
    Project manager: jjwatmyself
    Development: krystianp, lehjr, Epinter, and mmontuori.
    Testing: zeljko1234, Hai_Duong, upndwn4par, Cocolopes, firecode95, Matada02, IM_back!, sidVici0us, and Grey.Mouser.


    What team have done/working on:

    • Logs via JTAG [complete]
    • Boot Kernel on Olympus [complete]
    • USB Drivers [complete]
    • Boot Android GUI [complete]
    • Audio drivers [complete]
    • Headphone Jack [complete]
    • Accelerometer [complete]
    • Touchscreen [complete]
    • Buttons Backlight [complete]
    • Hardware/3d acceleration [complete]
    • Buttons volume up+down and power [complete]
    • Wi-Fi Driver [complete]
    • Bluetooth Driver [complete]
    • HDMI [post-poned]
    • Modem Driver [complete]
    • Fingerprint Kernel Driver [complete]
    • Fingerprint ROM Libs+Framework [work in progress]
    • Proximity Sensor Driver [complete]
    • Light Sensor Driver [complete]
    • Compass Driver [complete]
    • GPS [complete]
    • Sleep/Wake-up [complete]
    • A/C Charging [complete]
    • USB Charging [complete]
    • Camera/Video Camera [complete]
    • Front Camera/Front Video Camera [complete]
    • Flash [work in progress]
    • ROM Assembly [complete]
    • Mobile / Cellular voice calling [complete]


    DONATE HERE
    80
    Odp: ICS/JB Kernel Port Project [Discussion]

    I was testing yesterday pre alpha jelly bean that Michael build. It worked pretty well for something so immature. I'm preparing environment for building rom also, but since it's taking so much space, it took me two days just to prepare enough space and download all the need files.
    75
    To give you idea with what we have to deal trying to get something out of reversed code, here's something i'm working on currently...
    Code:
    c03e040c: 	e92d41f0 	push	{r4, r5, r6, r7, r8, lr}
    c03e0410: 	e5903008 	ldr	r3, [r0, #8]	;r3 = rtf = substream->private_data;
    c03e0414: 	e1a07001 	mov	r7, r1		;r7 = *params = struct snd_pcm_hw_params 
    c03e0418: 	e59f0110 	ldr	r0, [pc, #272]	; c03e0530: (c06c00b0)  **"<6>ALSA MOTSND:%s: entered"-><6>ALSA 
    c03e041c: 	e59f1110 	ldr	r1, [pc, #272]	; c03e0534: (c05781e8)  **"motsnd_hw_params"->__func__.28516
    c03e0420: 	e5932188 	ldr	r2, [r3, #392]  ; 
    c03e0424: 	e5934190 	ldr	r4, [r3, #400]  ;
    c03e0428: 	e5935194 	ldr	r5, [r3, #404]  ;
    c03e042c: 	e5923034 	ldr	r3, [r2, #52]   ;
    c03e0430: 	e5936160 	ldr	r6, [r3, #352]  ;
    c03e0434:	eb04e3a9	bl	<printk>	
    c03e0438: 	e5971128 	ldr	r1, [r7, #296]  ; 
    c03e043c: 	e59f30f4 	ldr	r3, [pc, #244]	; c03e0538: (00015888) r3 = 88200
    c03e0440: 	e1510003 	cmp	r1, r3		; if (r1==88200) 
    c03e0444: 	0a000005 	beq	loc_c03e0460	; jump label2
    loc_c03e0448 (label1):
    c03e0448: 	e59f30ec 	ldr	r3, [pc, #236]	; c03e053c: (00017700) r3 = 96000
    c03e044c: 	e1510003 	cmp	r1, r3		; if (r1==96000)
    c03e0450: 	0a000002 	beq	loc_c03e0460	; jump label2
    c03e0454: 	e3510cfa 	cmp	r1, #64000	; if (r1!=64000) {
    c03e0458: 	11a02401 	lslne	r2, r1, #8	; r2 = r1 << 8 = 
    c03e045c: 	1a000003 	bne	loc_c03e0470	; jump label4}
    loc_c03e0460 (label2): ; 2 refs
    c03e0460: 	e1a02381 	lsl	r2, r1, #7	; r2 = r1 << 7 = 
    c03e0464: 	ea000001 	b	loc_c03e0470	;
    loc_c03e0468 (label3):
    c03e0468: 	e1a02082 	lsl	r2, r2, #1
    c03e046c: 	ea000000 	b	loc_c03e0474
    loc_c03e0470 (label4): ; 2 refs
    c03e0470: 	e59f30c8 	ldr	r3, [pc, #200]	; c03e0540: (005b8d7f) r3 = 5999999
    loc_c03e0474 (label5):
    c03e0474: 	e1520003 	cmp	r2, r3		; 
    c03e0478: 	dafffffa 	ble	loc_c03e0468	;
    c03e047c: 	e3560000 	cmp	r6, #0	; 0x0
    c03e0480: 	0a000005 	beq	loc_c03e049c
    c03e0484: 	e1a00006 	mov	r0, r6
    c03e0488:	ebfffb35	bl	<tegra_asoc_utils_set_rate>

    This equals more or less to:
    Code:
    static int motsnd_hw_params(struct snd_pcm_substream *substream, 	//verified??
    			    struct snd_pcm_hw_params *params)
    {
    	struct snd_soc_pcm_runtime *rtd = substream->private_data;
    	struct snd_soc_dai *codec_dai = rtd->codec_dai;
    	struct snd_soc_dai *cpu_dai = rtd->cpu_dai;
    	struct snd_soc_codec *codec = rtd->codec;
    	struct snd_soc_card *card = codec->card;
    	struct tegra_olympus *card_data = snd_soc_card_get_drvdata(card);
    	int srate, mclk;
    	int err, ret;
    
    	MOTSND_DEBUG_LOG("%s: entered\n", __func__);
    
    	if (card_data==NULL) {
    		dev_err(card->dev, "card_data is NULL\n");
    		return -1;
    	}
    
    	/* Set codec clock configuration */
    	//srate = params_rate(params);
    	//mclk = 128 * srate;
    
    	printk("%s: mclk (%d) = 128 * srate (%d);\n", __func__, mclk, srate);
    
    	err = tegra_asoc_utils_set_rate(&card_data->util_data, srate, mclk);

    Code:
    c03e0420: 	e5932188 	ldr	r2, [r3, #392]  ; <-- here we have some field of struct snd_soc_pcm_runtime at offset 392

    This struct has
    Code:
    struct device * 	dev
    struct snd_soc_card * 	card
    struct snd_soc_dai_link * 	dai_link
    struct mutex 	pcm_mutex
    enum snd_soc_pcm_subclass 	pcm_subclass
    struct snd_pcm_ops 	ops
    unsigned int 	complete:1
    unsigned int 	dev_registered:1
    long 	pmdown_time
    struct snd_pcm * 	pcm
    struct snd_soc_codec * 	codec
    struct snd_soc_platform * 	platform
    struct snd_soc_dai * 	codec_dai
    struct snd_soc_dai * 	cpu_dai
    struct delayed_work 	delayed_work
    fields. To get this particular piece of data (at that offset) we would have to get all stucts (not pointers) which are used in snd_soc_pcm_runtime until we reach the deepest level and then count each field size, then if we didn't make any mistake we would get the field we need. So as you can see it's not that quick to get anything out of it. But following my intuition i assumed some things:
    1. Last fields of this struct are:
    Code:
    struct snd_soc_codec * 	codec <----- 4bytes
    struct snd_soc_platform * 	platform <----- 4bytes
    struct snd_soc_dai * 	codec_dai <----- 4bytes
    struct snd_soc_dai * 	cpu_dai <----- 4bytes
    struct delayed_work 	delayed_work <----- maybe some more bytes
    Looking at omap code we have:
    Code:
    	struct snd_soc_dai *codec_dai = rtd->codec_dai;
    	struct snd_soc_dai *cpu_dai = rtd->cpu_dai;
    	struct snd_soc_codec *codec = rtd->codec;
    And on disassembled file:
    Code:
    c03e0420: 	e5932188 	ldr	r2, [r3, #392]  ; 
    c03e0424: 	e5934190 	ldr	r4, [r3, #400]  ;
    c03e0428: 	e5935194 	ldr	r5, [r3, #404]  ;
    As you can see we have here offsets: x (#392), x+8 (#400), x+12(#404), which resembles fields: codec (x), codec_dai (x+8), cpu_dai(x+12). So assuming that my assumption was correct we can assume that we know now what is loaded to r2, r4 and r5. And another 3 lines of dissassembled file are reversed. The end ;)
    69
    Update

    We understand that you guys are getting excited about the new kernel. However, for now, in order to better focus, we are going to stop answering questions, and only provide updates as things move along. Thanks for your patient and understanding...