Linux Kernel version

This forum is for users of Microchip MPUs and who are interested in using Linux OS.

Moderator: nferre

desmond_009
Posts: 4
Joined: Tue Jan 02, 2007 4:09 pm

Linux Kernel version

Tue Jan 02, 2007 4:16 pm

hi
i have successfully built the toolchain for arm archtecture using gcc-3.4.4
i wish to make a kernel to run on the at91rm9200dk

how to i go about this..

i have tried with linux 2.6.10 and linux2.6.14 patchin them from maxim.org for teh at91rm9200 but get errors when i make zImage such as

include/linux/jiffies.h:397:6: division by zero in #if
include/linux/jiffies.h:397:6: division by zero in #if
include/linux/jiffies.h:397:6: division by zero in #if
include/linux/jiffies.h:397:6: division by zero in #if
include/linux/jiffies.h:397:6: division by zero in #if
In file included from include/linux/mm.h:36,
from arch/arm/kernel/asm-offsets.c:14:
include/asm/pgtable.h:15:30: asm/arch/vmalloc.h: No such file or directory
In file included from include/linux/mm.h:36,
from arch/arm/kernel/asm-offsets.c:14:
include/asm/pgtable.h: In function `pmd_page_kernel':
include/asm/pgtable.h:336: error: `PHYS_OFFSET' undeclared (first use in this function)
In file included from arch/arm/kernel/asm-offsets.c:14:
include/linux/mm.h: In function `lowmem_page_address':
include/linux/mm.h:414: error: `PHYS_OFFSET' undeclared (first use in this function)
make[1]: *** [arch/arm/kernel/asm-offsets.s] Error 1
make: *** [arch/arm/kernel/asm-offsets.s] Error 2

---this is when i used 2.6.10

n when i used linux-2.6.14

arch/arm/kernel/asm-offsets.c:68: error: structure has no member named `ARM_r1'
arch/arm/kernel/asm-offsets.c:69: error: structure has no member named `ARM_r2'
arch/arm/kernel/asm-offsets.c:70: error: structure has no member named `ARM_r3'
arch/arm/kernel/asm-offsets.c:71: error: structure has no member named `ARM_r4'
arch/arm/kernel/asm-offsets.c:72: error: structure has no member named `ARM_r5'
arch/arm/kernel/asm-offsets.c:73: error: structure has no member named `ARM_r6'
arch/arm/kernel/asm-offsets.c:74: error: structure has no member named `ARM_r7'
arch/arm/kernel/asm-offsets.c:75: error: structure has no member named `ARM_r8'
arch/arm/kernel/asm-offsets.c:76: error: structure has no member named `ARM_r9'
arch/arm/kernel/asm-offsets.c:77: error: structure has no member named `ARM_r10'
arch/arm/kernel/asm-offsets.c:78: error: structure has no member named `ARM_fp'
arch/arm/kernel/asm-offsets.c:79: error: structure has no member named `ARM_ip'
arch/arm/kernel/asm-offsets.c:80: error: structure has no member named `ARM_sp'
arch/arm/kernel/asm-offsets.c:81: error: structure has no member named `ARM_lr'
arch/arm/kernel/asm-offsets.c:82: error: structure has no member named `ARM_pc'
arch/arm/kernel/asm-offsets.c:83: error: structure has no member named `ARM_cpsr '
arch/arm/kernel/asm-offsets.c:84: error: structure has no member named `ARM_ORIG _r0'
arch/arm/kernel/asm-offsets.c:101: error: invalid application of `sizeof' to inc omplete type `machine_desc'
make[1]: *** [arch/arm/kernel/asm-offsets.s] Error 1
make: *** [prepare0] Error 2

Could some one please gimme the detailed procedurewith the kernel version n patches i need to download and the commands too..thanks in advance
ulf
Location: Sweden
Posts: 134
Joined: Wed Feb 18, 2004 5:53 pm

Wed Jan 03, 2007 12:49 am

You can download my buildroot from
ftp://at91dist:distrib@81.80.104.162/

-> Third party Linux Support -> Linux Host -> buildroot.


This will make
Linux
U-boot
Dataflashboot.bin
Linux file system

For an AT91RM9200 running on dataflash.
Best Regards
Ulf Samuelsson
sci3d
Contact:
Posts: 18
Joined: Tue Dec 12, 2006 2:35 pm

Sat Jan 06, 2007 5:25 am

ฺำI think, this kernel version is not compatible with gcc-3.4.x, please try linux 2.4.x. or use gcc-4.1.1.
Microcontroller Programming:
http://mcu-programming.blogspot.com
uC - News, Resources and Tutorials

Return to “LINUX”

Who is online

Users browsing this forum: Bing [Bot] and 3 guests