maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia 770 (https://talk.maemo.org/forumdisplay.php?f=24)
-   -   Kernel source for 2008HE (https://talk.maemo.org/showthread.php?t=31402)

fanoush 2009-09-09 07:13

Re: Kernel source for 2008HE
 
Quote:

Originally Posted by ddalex (Post 324126)
IDo you have a link to where I can download the version you used for this binary ?

I'm not sure, but hopefully it is one of those two scratchbox-toolchain-arm-gcc3.4.cs-uclibc-* in http://scratchbox.org/download/files...0.9.8/tarball/ . EDIT: it is the non-sf one.

In scratchbox when installed it appears in /scratchbox/compilers/arm-linux-gcc3.4.cs-uclibc0.9.27 and in scratchbox target info I also see name arm-linux-gcc3.4.cs-uclibc0.9.27. I have extracted the tar.gz version into my regular 1.0.x scratchbox, created new scratchbox target with this compiler via sb-menu and it works.

It could be interesting to check System.map vmlinux etc. from both compilers and see where in the code is the difference. Could be compiler bug but in theory it could be also faulty RAM in your device. You may be just lucky to have kernel with specific 'correct' bits in specific location.

ddalex 2009-09-09 09:20

Re: Kernel source for 2008HE
 
I don't think I have the patience to disassemble both kernels and check differences; this would be the starting point to hunt a gcc bug.

Quote:

Originally Posted by fanoush (Post 324142)
Could be compiler bug but in theory it could be also faulty RAM in your device. You may be just lucky to have kernel with specific 'correct' bits in specific location.

Very good point ! How do I test that ? Did you find anything in the initfs that would allow RAM testing in factory tests ?

I'm thinking compiling a kernel with just enough features to boot the device, run the FB and modify the initfs to run as init a modified memtest to output to framebuffer should yield some results. If I can find some spare hours tonight I'll try it, but otherwise it will have to wait until next week.

fanoush 2009-09-09 10:43

Re: Kernel source for 2008HE
 
Quote:

Originally Posted by ddalex (Post 324171)
How do I test that ?

It is quite unlikely so maybe first lets change something harmless like patching with just rotation patch or slightly change kernel configuration (like disabling Magic SysRq key in Kernel hacking section) and see if the stability is gone. if not then add various combinations of other patches. Either it remains stable (compiler bug or faulty ram in not changed code) or specific patch breaks it (code bug) it or it will be random (faulty RAM somewhere in changed code?).
[/QUOTE]
Quote:

Originally Posted by ddalex (Post 324171)
Did you find anything in the initfs that would allow RAM testing in factory tests ?

No. Some memtester that could be run from userspace is mentioned in the wifi memory corruption bug page. However if faulty bit(s) is only in the place where kernel code resides one would need to boot custom code to test it or maybe hack the kernel to uncompress itself into different RAM space and then test it from userspace.

ddalex 2009-09-18 17:10

Re: Kernel source for 2008HE
 
Hi,

I just build the gcc 4.4.1 targeted to ARM, and the vanilla kernel using the gcc 4.4.1.

I got it out at
1262256 Sep 18 20:06 arch/arm/boot/zImage

I'll test it later tonight, and if stable I'll throw in the MMC patches for 48, 24, 12 MHz.

If those are stable as well, I'll release new kernel images.

svs57 2009-10-23 14:55

Re: Kernel source for 2008HE
 
Quote:

Originally Posted by ddalex (Post 329325)
Hi,

I just build the gcc 4.4.1 targeted to ARM, and the vanilla kernel using the gcc 4.4.1.

I got it out at
1262256 Sep 18 20:06 arch/arm/boot/zImage

I'll test it later tonight, and if stable I'll throw in the MMC patches for 48, 24, 12 MHz.

If those are stable as well, I'll release new kernel images.

Can you share gcc 4.4.1 packages for armel?


All times are GMT. The time now is 14:44.

vBulletin® Version 3.8.8