LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices



Reply
 
Search this Thread
Old 03-09-2008, 11:34 AM   #1
eddiegi686
LQ Newbie
 
Registered: Feb 2008
Location: United Kingdom
Distribution: Fedora 8
Posts: 4

Rep: Reputation: 0
kernel build fails arm psion pda keyboard.c


Hi,
I'm trying to build a kernel for my Psion 5 PDA, i am well aware of existing kernels but they don't seem to work, i've still got to do some testing there but i need a working build method to give me some choices.

My problem is i'm trying to build kernel 2.4.30 and i'm getting this error from make bzImage. I'm attempting to cross-compile a Linux 2.4.30 kernel for my ARM Psion Windermere Psion 5 PDA which should work perfectly.

I've used make dep ARCH=arm CROSS_COMPILE=arm-unknown-linux-gnu- to successfully make dependencies and make menuconfig is happy.

Code:
keyboard.c: In function `kbd_processkeycode':
keyboard.c:422: error: label at end of compound statement
I've looked in keyboard.c and where its talking about seems to be
Code:
out:
on line 421 of drivers/char/keyboard.c.

keyboard.c is one of the files patched by RMK patches for the ARM architecture... i'm confused about whether this is completely necessary, probably is for all ARMs even though the Windermere has psion_keyboard.c and .h files of its own.

I'm not using the vanilla Linux kernel, i am using the latest kernel sources from
Code:
svn co http://svn.exactcode.de/linux24-psionw/ linux24-psionw
- the openpsion project.

These kernel sources have been patched with rmk patches - not by me but obviously they are able to build because a 2.4.27 kernel has been released built from these sources patched with rmk2 and 5mx2 and possibly other patches.

I don't have the patches specifically available to me.

Does anyone have an ideas why this is failing to build? My toolchain was setup using http://www.schnozzle.org/~coldwell/toolchain/ although i tried GCC-3.4.2 as well with no success.

I'm using crosstool now in the hope that it will find a way to make this work but i'm assuming its a problem with the kernel sources rather than anything else.

Perhaps the RMK patch for ARM on the Linux 2.4.27 kernel is broken, but then how did the openpsion project manage to build successful kernels for the Psion Windermere systems? I'm using their sources. All the keyboard.h files are the same for all the kernel sources they have in their repository so it doesn't seem to be a change between kernel versions in 2.4 and RMK is used to get any of these working at all so i can't see how its a problem with the rmk patches.

I attempted using the 2.4.19 kernel available from https://sourceforge.net/projects/linux-7110/ but it fails to compile no matter what GCC i use, something is wrong with scripts/mkdep in that source as far as i can tell.

This problem is identical to mine: http://www.kwikbyte.com/phpBB2/viewt...e7458895f4b0fd

Should i just attempt to patch a vanilla 2.4 kernel with one of the RMK patches and then see if i can find the 5mx2 patches somewhere to support windermere? I have no idea what may have changed in different kernel versions which might affect 5mx2 patches. Also it seems difficult to find 2.4 changelogs - i might be thinking of 2.2, i'll have another look.

If someone knows where there's a 2.2 kernel source for psions available with a working URL that would help too. I had no success with 2.2 because i could not find a 5mx2 patch to apply (i still can't for any of them!)

Perhaps i should copy the Psion windermere files from the openpsion kernel sources and try adding them to a vanilla 2.4 source tree this would include the psion serial and other windermere drivers for Psion series 5 and 5mx and revo, diamond mako, mc218... Then if i patch that vanilla tree with the RMK patch it might work i guess..

I don't know if i've mentioned before but include/asm-arm/keyboard.h is used somewhere along the line... the psion and standard keyboard.c are in drivers/char

Diffing the openpsion 2.4.19-rmk2-5mx2-something kernel against the current 2.4.30 openpsion sources shows that the psion keyboard driver keyboard_psion.c has not changed at all.

So maybe i'll have some luck if i just take a copy of all the headers and c files and configs and stuff for the psionw MARCH.

Any help as to why keyboard.c is stopping this kernel building would be really useful as its going to take ages to copy everything to a vanilla kernel and patch it and then build it (if it will build)
 
  


Reply

Tags
arm, kernel, linux, pda


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Custom OS design for ARM based devices such as an iPod or PDA vargadanis Linux - Distributions 1 03-19-2007 10:07 AM
Installing linux on an ARM PDA pda_h4x0r Linux - Laptop and Netbook 3 05-18-2006 08:23 PM
Kernel version 2.6.9 fails to build angel_tsankov Linux - Software 1 04-11-2006 05:26 PM
10.1 install kernel and kernel-source different - build fails Feebles Mandriva 2 06-10-2005 07:58 PM
FC3 Kernel build fails at_work_with_jf Fedora 1 12-28-2004 05:54 AM


All times are GMT -5. The time now is 07:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration