juan__ | hy...I am having troubles building a device driver for an ubuntu/arm platform...can anybody help me? | 13:32 |
---|---|---|
zumbi | juan__: what problem? | 13:34 |
juan__ | I tried to get the package of the ubuntu headers...but it is not in the repositories... | 13:34 |
juan__ | then I tried to compile the ubuntu kernel from scratch...but it claims to have many errors.. | 13:35 |
zumbi | juan__: what are you doing? what commands do you type? | 13:37 |
juan__ | make dep | 13:37 |
juan__ | make zImage | 13:37 |
juan__ | those worked fine | 13:37 |
juan__ | and then "make modules" | 13:37 |
zumbi | juan__: maybe you need to use debuild or friends or kernel-package (make-kpkg) | 13:38 |
lool | juan__: What's your kernel tree? | 13:38 |
juan__ | the latest ubuntu jaunty.. | 13:39 |
lool | juan__: How did you get it? apt-get source? git? | 13:41 |
lool | juan__: For which platform are you building? | 13:41 |
juan__ | i am trying the make-kpkg...but it is asking the same questions that the "make oldconfig" (I forgot to say I used that before the other commands) | 13:41 |
juan__ | 1) git 2)arm-cortexa8 | 13:42 |
lool | I actually don't think you want to make-kpkg | 13:42 |
lool | What's your target board? | 13:42 |
juan__ | a beagleboard.. | 13:42 |
lool | I don't think the jaunty git tree supports beagleboard | 13:42 |
lool | Recent upstream git trees have basic support for beagleboard (I'm told) but I only ever build working kernels from upstream linux-omap tree | 13:43 |
juan__ | the system is running indeed... I got it working using a tool called rootfs | 13:43 |
lool | Never heard of that one; so it wasn't "rootstock"? | 13:44 |
lool | juan__: Are you building natively, or cross-compiling? | 13:44 |
juan__ | sorry...I mixed names...its rootstock..you are right.. | 13:44 |
juan__ | cross-compiling... | 13:45 |
lool | juan__: So I wouldn't recommend make-kpkg, nor using Ubuntu git trees for the task you're trying to achieve: the Ubuntu kernel tree has special expectations such as ABI files, udebs, specific common config helpers etc. | 13:45 |
lool | It does support cross-compiling though | 13:46 |
lool | Also, I wouldn't recommend basing of ubuntu-januty.git | 13:46 |
lool | This is old and it's based of torvalds' tree, not linux-omap | 13:46 |
juan__ | I already have a compiler setup in the beagleboard...however I decided to go for cross-compiling because I just couldnt get the headers | 13:46 |
lool | For beagleboard, you can use prebuilt binary kernels which are provided by Robert Nelson IIRC | 13:46 |
lool | Or you can build your own | 13:46 |
lool | You don't need the headers to cross-compile a kernel | 13:47 |
lool | You just need a cross-toolchain and the kernel source | 13:47 |
juan__ | I know..but I need them to build the device driver | 13:47 |
lool | juan__: Ok; so you have two options: either copy your driver into your kernel tree and built everything in there | 13:48 |
lool | (kernel + modules) | 13:48 |
lool | Or build your own kernel + modules and install the kernel headers, then build your driver against that | 13:48 |
juan__ | do you think the rest of the system would work fine if i change the kernel? | 13:49 |
lool | I don't know which kernel you use; I got most of the devices working with a linux-omap git tree, so I guess it would | 13:49 |
lool | It is however unlikely you will get your modules to work if you build them against a different kernel than the one you're currently running... | 13:50 |
juan__ | ok, I will change the kernel to see what happens and if its ok I will build the device driver for that kernel | 13:51 |
juan__ | thanks for the help! | 13:51 |
xranby | quick porting question if i have ASM code like ldmia sp!,{r0,r1,r2,r3,lr,pc} that fails to compile using lucid thumb2 can this be simply replaced with pop {r0,r1,r2,r3,lr,pc} ? | 14:34 |
ogra | persia, https://wiki.ubuntu.com/ARM/BuildEABIChroot | 18:27 |
persia | ogra: Thanks. | 18:31 |
=== beckyb_ is now known as beckyb |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!