**** BEGIN LOGGING AT Mon Aug 30 02:59:57 2010 Aug 30 18:49:44 Hi I was trying to complie kernel image for Zire 31, but errors occured http://pastebin.ca/1929288 any ideas how to fix it? Aug 30 18:58:55 sed -i "s/ACBIAS/BIAS/" arch/arm/mach-pxa/palmz31.c Aug 30 18:58:59 J__: ^ Aug 30 18:59:12 someone should mainline PalmZ31 support too :/ Aug 30 18:59:44 GPIO77_LCD_ACBIAS <--- this was renamed to GPIO77_LCD_BIAS Aug 30 19:00:48 ok Aug 30 19:03:45 It worked but now I got, make[2]: *** [kernel/time/clocksource.o] Chyba 1 Aug 30 19:06:00 I had this same error when I was trying it about half year ago I was googleing for weeks, couldn't solve. Aug 30 19:19:36 J__: pastebin Aug 30 19:20:07 J__: the problem might simply be the kernel source being too outdated ... I think it might be easy to bring it mainline though Aug 30 19:20:16 J__: do you want to hack on it ? Aug 30 19:21:30 Marex: sure I want to hack on it :-) http://pastebin.ca/1929309 Aug 30 19:23:13 J__: what compiler do yo use ? Aug 30 19:23:22 J__: or rather ... what version of gcc that is Aug 30 19:24:05 Marex: yes gcc is bit out dated it's 3.3.2 Aug 30 19:24:39 J__: you need at least 4.2.4 Aug 30 19:25:00 where the heck did you get such an ancient version ... Aug 30 19:25:51 I don't really remember :-D Aug 30 19:26:57 well update your thing Aug 30 19:27:00 http://git.kernel.org/?p=linux/kernel/git/marex/pxa-linux-2.6.git;a=blob;f=arch/arm/mach-pxa/palmte2.c;h=93c11a0438d5ac5b04705e67a1a0d5919854c0b4;hb=refs/heads/work Aug 30 19:27:10 ^ this should give you an idea how to port it to mainline kernel then Aug 30 19:27:26 it's palmte2 port that's been mainlined some time ago Aug 30 19:27:58 J__: how good with C you are ? Aug 30 19:29:30 Marex: actually really bad, I'm a beginner in programming Aug 30 19:30:01 J__: that's what I was ... many years ago Aug 30 19:30:20 J__: I learnt a lot while hacking on kernel Aug 30 19:30:47 you just need a tremendous amount of will to overcome obstacles Aug 30 19:32:46 thanks for the advice I appreciate it, I hope I'll learn as much as I can Aug 30 19:33:19 J__: I'm willing to guide you, but everyone who told me something similar ran away Aug 30 19:34:07 J__: what distro do you run btw ? Aug 30 19:34:15 and what version of it too Aug 30 19:34:50 Marex: Ubuntu Lucid Lynx Aug 30 19:35:24 J__: and where did you get such an old compiler in ubuntu ? Aug 30 19:37:05 J__: I use these on debian http://www.emdebian.org/crosstools.html Aug 30 19:37:09 well I never compiled anything with gcc before and I couldn't get the compiler that was there running so I installed this 3.3.2 one :-D Aug 30 19:37:40 J__: you are aware that you need crosscompiler to produce code that can run on ARM architecture, right ? Aug 30 19:37:49 yes Aug 30 19:40:11 J__: try this repository "deb http://www.emdebian.org/emdebian-tools/ testing main" Aug 30 19:40:14 it might work Aug 30 19:40:35 you will need this one too "deb http://buildd.emdebian.org/debian/ testing main" Aug 30 19:40:41 Marex: oki I'll try it and I know that you are czech so would you mind going to hackndev-cz (I am Slovak) Aug 30 19:41:24 hackndev-cz's been cut off Aug 30 19:42:10 oki, I didn't know that Aug 30 19:42:33 J__: btw http://wiki.debian.org/EmdebianToolchain <--- this link was just sent to me from my emdebian friend, that I should forward this to you :) Aug 30 19:45:21 J__: http://people.canonical.com/~hrw/ubuntu-maverick-armel-cross-compilers/ <--- this might be even better ... Aug 30 19:45:37 hi Aug 30 19:46:06 J__: zumbi_ is the guy you'll like to talk about when it comes to debian crosscompilers :) Aug 30 19:46:16 zumbi_: thanks Aug 30 19:47:11 Marex: great :) Aug 30 19:47:20 hi J__ Aug 30 19:47:38 hi zumbi_ Aug 30 19:47:41 I have to go cooking ASAP, but please let me know what you need? Aug 30 19:48:09 J__: http://wiki.debian.org/EmdebianToolchain has some useful notes Aug 30 19:48:35 I have just added latest debs on squeeze and unstable (those should be synced now) Aug 30 19:49:09 zumbi_: it should be ok if he adds this line "deb http://people.canonical.com/~hrw/ubuntu-maverick-armel-cross-compilers/ ./" to /etc/apt/sources.list, right ? Aug 30 19:49:23 J__: cross tools are independent from native packages, so you could use emdebian (stable,testing,unstable) repo without any problem on ubuntu Aug 30 19:49:42 zumbi_: then apt-get update ... apt-get install gcc-4.4-arm-linux-gnueabi Aug 30 19:50:18 What Marex points out is hrw builds, but i am not sure how he handles them, but those are specific for ubuntu, so it might work as well Aug 30 19:50:43 Marex: yeap and linux-libc-dev-armel-cross Aug 30 19:51:00 zumbi_: back to taylor's series ;D Aug 30 19:51:19 hey! :) Aug 30 19:52:17 at hrw site, there is only armel support, while at emdebian we aim to add all official arches (as we did for lenny) Aug 30 19:57:35 i belive i have broken emdebian repo in some way Aug 30 19:57:51 i'll need to test and fix sometime soon Aug 30 20:05:05 really? so that's why I can't install gcc-4.4-arm-linux-gnueabi :) Aug 30 20:05:27 J__: from emdebian or hrw's repo ? what problem do you get ? Aug 30 20:08:12 Marex: from emdebian, when I try apt-get install it gives me http://pastebin.ca/1929347 Aug 30 20:10:13 J__: you're installing from testing or what ? Aug 30 20:10:36 try ... apt-get -t testing install {gcc,cpp}-4.4-arm-linux-gnueabi Aug 30 20:13:08 Marex: It gives me the same thing cpp-4.4-arm-linux-gnueabi: Závisí na: libmpfr4 ale sa nedá nainštalovať Aug 30 20:14:26 try 4.3 or 4,2 Aug 30 20:15:21 4.3 works Aug 30 20:18:23 J__: stick with that one then Aug 30 20:18:35 you don't want 4.5 yet ... and 4.3 is fine Aug 30 20:19:46 ok Aug 30 20:20:23 J__: well ... to compile the kernel ... Aug 30 20:20:36 make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- menuconfig Aug 30 20:20:42 make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- -j 3 Aug 30 20:20:53 that should produce arch/arm/boot/zImage Aug 30 20:21:09 make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- INSTALL_MOD_PATH=/some/where modules_install Aug 30 20:21:15 will install modules into /some/where Aug 30 20:22:21 oki what should I do in menuconfig except enabling Zire31? Aug 30 20:22:55 maybe you should run the following command prior to running menuconfig ... Aug 30 20:23:03 make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- palmz31_defconfig Aug 30 20:23:14 then run menuconfig etc. ... . Aug 30 20:24:59 well there is no palmz31_defconfig Aug 30 20:25:19 is there palmte2_defconfig ? Aug 30 20:25:22 errr ... Aug 30 20:25:27 maybe try palmz31_config Aug 30 20:27:19 I've got palmte, palmtt, z71, z72 Aug 30 20:28:38 palmte should be close Aug 30 20:28:53 hey Aug 30 20:28:59 there IS palmz31_defconfig Aug 30 20:29:19 arch/arm/configs/palmz31_defconfig Aug 30 20:29:39 J__: are you sure ... make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- palmz31_config ... does not work ? Aug 30 20:29:42 does it complain ? Aug 30 20:31:09 http://pastebin.ca/1929361 Aug 30 20:32:21 J__: where did you get that kernel source from ? Aug 30 20:33:35 Marex:kernel.org Aug 30 20:34:12 I tought it doesn't matter where the kernel comes from. Aug 30 20:34:17 J__: there's no support for palmz31 there Aug 30 20:34:29 no, palmz31 was never pushed mainline Aug 30 20:34:39 it was in the hackndev kernel tree and never anywhere else Aug 30 20:37:13 heh I tought all I need is a patch, ok I'll download the kernel from hackndev Aug 30 20:39:29 git is down, Farcaller moved the servers ... FTTB, use this http://www.angstrom-distribution.org/unstable/sources/git_git.hackndev.com.hackndev.linux-hnd.git_8f62c3b8a7e7de042846211f387a867f6703f272.tar.gz Aug 30 20:48:20 oki now I have the correct kernel so I'm going to try make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- palmz31_defconfig Aug 30 20:49:22 hey it worked :D Aug 30 20:57:21 I tried make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- -j 3 and I got http://pastebin.ca/1929379 Aug 30 20:58:59 I think asm/arch/pxapwm-bl.h is wierd I haven't seen anything like folder asm and I couldn't find pxapwm-bl.h Aug 30 20:59:02 J__: hang on Aug 30 21:03:40 J__: edit arch/arm/mach-pxa/palmz31/palmz31.c and remove "#include " Aug 30 21:03:43 should be fine Aug 30 21:08:32 J__: fixed ? Aug 30 21:08:45 yes Aug 30 21:09:19 few warnings but, Kernel: arch/arm/boot/zImage is ready :D Aug 30 21:09:37 J__: try booting it ... http://marex.hackndev.com/cocoboot.prc might or might not work Aug 30 21:14:10 I don't need anything else just zImage? I read something about initramfs Aug 30 21:16:59 J__: nope ... zImage should be ok Aug 30 21:17:18 initramfs is integrated into kernel, initrd is not ... but you don't need either for now Aug 30 21:17:50 ok Aug 30 21:19:44 J__: i believe you should be able to install gcc-4.4 now :) Aug 30 21:21:11 zumbi_: oki thanks for the information Aug 30 21:21:54 Zire was discharged have to charge it up :( Aug 30 21:42:41 Oki I'll charge Zire31 over night and come back here tomorow to tell you if the image is working, I really appreciate your help guys. **** ENDING LOGGING AT Tue Aug 31 02:59:57 2010