**** BEGIN LOGGING AT Wed Feb 03 02:59:56 2010
Feb 03 13:32:26 hy...I am having troubles building a device driver for an ubuntu/arm platform...can anybody help me?
Feb 03 13:34:06 juan__: what problem?
Feb 03 13:34:47 I tried to get the package of the ubuntu headers...but it is not in the repositories...
Feb 03 13:35:41 then I tried to compile the ubuntu kernel from scratch...but it claims to have many errors..
Feb 03 13:37:03 juan__: what are you doing? what commands do you type?
Feb 03 13:37:23 make dep
Feb 03 13:37:28 make zImage
Feb 03 13:37:32 those worked fine
Feb 03 13:37:56 and then "make modules"
Feb 03 13:38:16 juan__: maybe you need to use debuild or friends or kernel-package (make-kpkg)
Feb 03 13:38:56 juan__: What's your kernel tree?
Feb 03 13:39:40 the latest ubuntu jaunty..
Feb 03 13:41:06 juan__: How did you get it? apt-get source? git?
Feb 03 13:41:18 juan__: For which platform are you building?
Feb 03 13:41:29 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)
Feb 03 13:42:09 1) git 2)arm-cortexa8
Feb 03 13:42:13 I actually don't think you want to make-kpkg
Feb 03 13:42:19 What's your target board?
Feb 03 13:42:31 a beagleboard..
Feb 03 13:42:47 I don't think the jaunty git tree supports beagleboard
Feb 03 13:43:22 Recent upstream git trees have basic support for beagleboard (I'm told) but I only ever build working kernels from upstream linux-omap tree
Feb 03 13:43:33 the system is running indeed... I got it working using a tool called rootfs
Feb 03 13:44:12 Never heard of that one; so it wasn't "rootstock"?
Feb 03 13:44:35 juan__: Are you building natively, or cross-compiling?
Feb 03 13:44:47 sorry...I mixed names...its rootstock..you are right..
Feb 03 13:45:00 cross-compiling...
Feb 03 13:45:56 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.
Feb 03 13:46:03 It does support cross-compiling though
Feb 03 13:46:14 Also, I wouldn't recommend basing of ubuntu-januty.git
Feb 03 13:46:30 This is old and it's based of torvalds' tree, not linux-omap
Feb 03 13:46:38 I already have a compiler setup in the beagleboard...however I decided to go for cross-compiling because I just couldnt get the headers
Feb 03 13:46:49 For beagleboard, you can use prebuilt binary kernels which are provided by Robert Nelson IIRC
Feb 03 13:46:53 Or you can build your own
Feb 03 13:47:05 You don't need the headers to cross-compile a kernel
Feb 03 13:47:27 You just need a cross-toolchain and the kernel source
Feb 03 13:47:39 I know..but I need them to build the device driver
Feb 03 13:48:31 juan__: Ok; so you have two options: either copy your driver into your kernel tree and built everything in there
Feb 03 13:48:37 (kernel + modules)
Feb 03 13:48:58 Or build your own kernel + modules and install the kernel headers, then build your driver against that
Feb 03 13:49:28 do you think the rest of the system would work fine if i change the kernel?
Feb 03 13:49:58 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
Feb 03 13:50:20 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...
Feb 03 13:51:15 ok, I will change the kernel to see what happens and if its ok I will build the device driver for that kernel
Feb 03 13:51:22 thanks for the help!
Feb 03 14:34:18 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} ?
Feb 03 18:27:31 persia, https://wiki.ubuntu.com/ARM/BuildEABIChroot
Feb 03 18:31:40 ogra: Thanks.
**** ENDING LOGGING AT Thu Feb 04 02:59:57 2010