[maemo-developers] [maemo-developers] Re: backlight

From: Frantisek Dufka dufkaf at seznam.cz
Date: Sun Jan 29 18:41:38 EET 2006
See this http://maemo.org/maemowiki/HowTo_KernelCompilation .

If you don't want to do it in scratchbox target see also this 
http://www.gossamer-threads.com/lists/maemo/developers/3436 .

On x86 debian it is a matter of installing just the kernel sources via 
dpkg -i file.deb. It puts archive of n770 kernel source to /usr/src/ and 
then you can continue like with any other linux kernel. On non-debian 
linux you can extract the deb via 'ar xv file.deb data.tar.gz' and 'tar 
xvf data.tar.gz' commands. Just don't forget to prepend arm cross 
compiler to the path before compiling the kernel. This one 
http://scratchbox.org/download/files/sbox-releases/0.9.8/tarball/scratchbox-toolchain-arm-gcc3.4.cs-glibc-0.9.8.5.tar.gz 
   should do the trick (extracted to /). Just do a make n770_defconfig ; 
make menuconfig ; make. It should find the cross compiler 
(arm-linux-gcc) and do the right thing. Image is in arch/arm/boot/zImage 
and can be flashed directly with 'flasher -k zImage -f -R'

As for the changes - I only modified file 
drivers/video/omap/lcd_lph8923.c I don't have original now, see modified 
version here http://fanoush.webpark.cz/maemo/lcd_lph8923.c

Frantisek


Brad Midgley wrote:
> Frantisek
> 
> Nice work.
> 
> Can you put a unified diff on your page or post it here (I realize it's
> a work in progress, but I'd like to see where it all applies)
> 
> What is the process for patching and building the kernel .deb?
> 
> Brad
> 

More information about the maemo-developers mailing list