[13:32] hy...I am having troubles building a device driver for an ubuntu/arm platform...can anybody help me? [13:34] juan__: what problem? [13:34] I tried to get the package of the ubuntu headers...but it is not in the repositories... [13:35] then I tried to compile the ubuntu kernel from scratch...but it claims to have many errors.. [13:37] juan__: what are you doing? what commands do you type? [13:37] make dep [13:37] make zImage [13:37] those worked fine [13:37] and then "make modules" [13:38] juan__: maybe you need to use debuild or friends or kernel-package (make-kpkg) [13:38] juan__: What's your kernel tree? [13:39] the latest ubuntu jaunty.. [13:41] juan__: How did you get it? apt-get source? git? [13:41] juan__: For which platform are you building? [13:41] 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:42] 1) git 2)arm-cortexa8 [13:42] I actually don't think you want to make-kpkg [13:42] What's your target board? [13:42] a beagleboard.. [13:42] I don't think the jaunty git tree supports beagleboard [13:43] 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] the system is running indeed... I got it working using a tool called rootfs [13:44] Never heard of that one; so it wasn't "rootstock"? [13:44] juan__: Are you building natively, or cross-compiling? [13:44] sorry...I mixed names...its rootstock..you are right.. [13:45] cross-compiling... [13:45] 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:46] It does support cross-compiling though [13:46] Also, I wouldn't recommend basing of ubuntu-januty.git [13:46] This is old and it's based of torvalds' tree, not linux-omap [13:46] 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] For beagleboard, you can use prebuilt binary kernels which are provided by Robert Nelson IIRC [13:46] Or you can build your own [13:47] You don't need the headers to cross-compile a kernel [13:47] You just need a cross-toolchain and the kernel source [13:47] I know..but I need them to build the device driver [13:48] juan__: Ok; so you have two options: either copy your driver into your kernel tree and built everything in there [13:48] (kernel + modules) [13:48] Or build your own kernel + modules and install the kernel headers, then build your driver against that [13:49] do you think the rest of the system would work fine if i change the kernel? [13:49] 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:50] 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:51] 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] thanks for the help! [14:34] 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} ? [18:27] persia, https://wiki.ubuntu.com/ARM/BuildEABIChroot [18:31] ogra: Thanks. === beckyb_ is now known as beckyb