To: | |
---|---|
Subject: | [ts-7000] Rebuilding a kernel |
From: | "Anouk Ahamitet" <> |
Date: | Thu, 05 Feb 2009 14:02:57 -0000 |
We asked Technologic for instructions when we wanted to change the timer resolution from 10ms to 1ms (by changing CONFIG_HZ from 100 to 1000 in the kernel build settings). I thought that others in this group would be interested in the steps for rebuilding the kernel that we got from Technologic: In order to build a TS-7800 Kernel: In order to ensure that I didn't have any extras to mess things up, I installed a fresh, clean Ubuntu 8.10 system where I would perform the steps above. I made sure that it had all of the current updates. I did all of the steps under my non-root account (I asked and was assured that despite the indication that root was running the make commands in the instructions, I didn't need to be root to build
t
heir kernel). In between steps 4 and 5, I edited arch/arm/config/ts7800_defconfig and arch/arm/config/ts7800full_defconfig to change CONFIG_HZ=100 to CONFIG_HZ=1000 in both (since I wasn't positive which would be used).1) Download the Kernel: ftp://oz.embeddedarm.com/ts-arm-sbc/ts-7800-linux/sources/linux-2.6.21-ts-src-latest.tar.gz 2) Download the Crosstool: ftp://oz.embeddedarm.com/ts-arm-sbc/ts-7800-linux/cross-toolchains/ts7800-crosstool-linux-gnueabi-2005q3-2.tar.gz 3) Install/Extract both on a Linux X86 box 4) Adjust the Makefile of the Kernel to use the right CROSSTOOL 5) Compile the kernel: # make ts7800_defconfig # make 6) The new kernel will show up at arch/arm/boot/Image The first make ran fine, with just a few warnings. But the second make fails with this output: scripts/kconfig/conf -s arch/arm/Kconfig drivers/crypto/cesa/Kconfig:16:warning: type of 'MV_CESA_TEST' redefined from 'tristate' to 'boolean' CHK include/linux/version.h SYMLINK include/asm-arm/arch -> include/asm-arm/arch-mv88fxx81 make[1]: `include/asm-arm/mach-types.h' is up to date. CHK include/linux/utsrelease.h HOSTCC scripts/mod/sumversion.o scripts/mod/sumversion.c: In function `get_src_version': scripts/mod/sumversion.c:384: error: `PATH_MAX' undeclared (first use in this function) scripts/mod/sumversion.c:384: error: (Each undeclared identifier is reported only once scripts/mod/sumversion.c:384: error: for each function it appears in.) scripts/mod/sumversion.c:384: warning: unused variable `filelist' make[2]: *** [scripts/mod/sumversion.o] Error 1 make[1]: *** [scripts/mod] Error 2 make: *** [scripts] Error 2 I found a simple patch at (a required header was not included) and now the kernel builds. HOWEVER... The fact that the source Technologic told me to download from their site < i>did not build makes me wonder if the source contains all of the other adjustments they've make (which include several things for the 7800), since they obviously have never actually used the source that they make available for download. If they had, they'd know that it doesn't compile as-is. When I reporting the bug, the fix and asked my contact at Technologic about this, he told me that I probably needed to run make menuconfig to change a setting (but he didn't say which one that might be) so that the broken file is not included. If that is true, then it concerns me even more than the bug, because I wanted to start with exactly the same settings as Technologic so that the kernel we built as just like theirs except for the things we specifically wanted to change. Perhaps these things don't bother the linux gurus among Technologic's customers, but they concern me. Hopefully, this will at least provid e a starting point to anyone else who needs (or wants) to rebuild the kernel for their Technologic board. __._,_.___
Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required) Change settings via email: =Email Delivery: Digest | m("yahoogroups.com?subject","ts-7000-fullfeatured");=Change Delivery Format: Fully Featured">Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | =Unsubscribe __,_._,___ |
<Prev in Thread] | Current Thread | [Next in Thread> |
---|---|---|
|
Previous by Date: | [ts-7000] Re: TS7200 COM2 - ttyAM1 Issues, bonjelo2000 |
---|---|
Next by Date: | [ts-7000] Re: TS7200 COM2 - ttyAM1 Issues, bonjelo2000 |
Previous by Thread: | [ts-7000] TS7200 - Compact flash Problem, Abas Javadtalab |
Next by Thread: | [ts-7000] Re: Rebuilding a kernel, j.chitte |
Indexes: | [Date] [Thread] [Top] [All Lists] |
Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU