ts-7000
[Top] [All Lists]

[ts-7000] 7250- building kernel(ts7250) with cross compilation

To:
Subject: [ts-7000] 7250- building kernel(ts7250) with cross compilation
From: "Abid Rashid" <>
Date: Sat, 17 Jan 2009 16:28:02 -0000
All,

I am trying to build a kernel for 7250 on a linux host running with
debian distribution using gcc-2.95 and cross compiled ARM binaries. 

I edited make files to set up proper compilers.
I tried following steps

Executed 

make menuconfig
make dep
make clean
make bzImage

First three makes execute without any error.

But 'make bzImage' fails while compiling first file in the build
init/main.c,
The error I get is 

../sys-include/asm/arch/memory.h:44:2: #error "Undefined footbridge mode"
There are many errors some of which I have posted at the end. 
 
I wonder to know 
DO I have some problems in setting up tools ?. Is that gcc-2.95 right
compiler for linux-ts8.

Do I have some problems in setting up 'config' file. I am not sure
which config files I might use ?

Is there any patches to apply to 'linux24-ts8', the kernel which I am
trying to build for 7250 board?


I am posting some of the initial  messages here......

/usr/src/crosstool/gcc-3.3-glibc-2.2.5/arm-9tdmi-linux-gnu/arm-9tdmi-linux-gnu/sys-include/asm/arch/memory.h:44:2:
#error "Undefined footbridge mode"
/usr/src/crosstool/gcc-3.3-glibc-2.2.5/arm-9tdmi-linux-gnu/arm-9tdmi-linux-gnu/sys-include/asm/arch/memory.h:62:2:
#error "Undefined footbridge architecture"
In file included from /usr/src/linux24_ts8/include/asm/page.h:98,
                 from /usr/src/linux24_ts8/include/asm/user.h:4,
                 from /usr/src/linux24_ts8/include/asm/elf.h:9,
                 from /usr/src/linux24_ts8/include/asm/processor.h:46,
                 from /usr/src/linux24_ts8/include/linux/prefetch.h:13,
                 from /usr/src/linux24_ts8/include/linux/list.h:6,
                 from /usr/src/linux24_ts8/include/linux/wait.h:14,
                 from /usr/src/linux24_ts8/include/linux/fs.h:12,
                 from /usr/src/linux24_ts8/include/linux/capability.h:17,
                 from /usr/src/linux24_ts8/include/linux/binfmts.h:5,
                 from /usr/src/linux24_ts8/include/linux/sched.h:9,
                 from /usr/src/linux24_ts8/include/linux/mm.h:4,
                 from /usr/src/linux24_ts8/include/linux/slab.h:14,
                 from /usr/src/linux24_ts8/include/linux/proc_fs.h:5,
                 from init/main.c:15:
/usr/src/linux24_ts8/include/asm/memory.h: In function `virt_to_phys':
/usr/src/linux24_ts8/include/asm/memory.h:33: error: `PAGE_OFFSET'
undeclared (first use in this function)
/usr/src/linux24_ts8/include/asm/memory.h:33: error: (Each undeclared
identifier is reported only once
/usr/src/linux24_ts8/include/asm/memory.h:33: error: for each function
it appears in.)
/usr/src/linux24_ts8/include/asm/memory.h: In function `phys_to_virt':
/usr/src/linux24_ts8/include/asm/memory.h:38: error: `PAGE_OFFSET'
undeclared (first use in this function)
In file included from /usr/src/linux24_ts8/include/asm/pgtable.h:137,
                 from /usr/src/linux24_ts8/include/linux/mm.h:26,
                 from /usr/src/linux24_ts8/include/linux/slab.h:14,
                 from /usr/src/linux24_ts8/include/linux/proc_fs.h:5,
                 from init/main.c:15:
/usr/src/crosstool/gcc-3.3-glibc-2.2.5/arm-9tdmi-linux-gnu/arm-9tdmi-linux-gnu/sys-include/asm/proc/pgtable.h:
In function `__mk_pmd':
/usr/src/crosstool/gcc-3.3-glibc-2.2.5/arm-9tdmi-linux-gnu/arm-9tdmi-linux-gnu/sys-include/asm/proc/pgtable.h:62:
error: `PAGE_OFFSET' undeclared (first use inthis function)
/usr/src/crosstool/gcc-3.3-glibc-2.2.5/arm-9tdmi-linux-gnu/arm-9tdmi-linux-gnu/sys-include/asm/proc/pgtable.h:
In function `pmd_page':
/usr/src/crosstool/gcc-3.3-glibc-2.2.5/arm-9tdmi-linux-gnu/arm-9tdmi-linux-gnu/sys-include/asm/proc/pgtable.h:75:
error: `PAGE_OFFSET' undeclared (first use inthis function)
In file included from /usr/src/linux24_ts8/include/asm/io.h:28,
                 from /usr/src/linux24_ts8/include/linux/blkdev.h:11,
                 from /usr/src/linux24_ts8/include/linux/blk.h:4,
                 from init/main.c:25:
/usr/src/crosstool/gcc-3.3-glibc-2.2.5/arm-9tdmi-linux-gnu/arm-9tdmi-linux-gnu/sys-include/asm/arch/hardware.h:81:2:
#error "Undefined footbridge architecture"In file included from
/usr/src/linux24_ts8/include/linux/blkdev.h:11,
                 from /usr/src/linux24_ts8/include/linux/blk.h:4,
                 from init/main.c:25:
/usr/src/linux24_ts8/include/asm/io.h: In function `isa_check_signature':
/usr/src/linux24_ts8/include/asm/io.h:263: error: `PCIMEM_BASE'
undeclared (first use in this function)
In file included from /usr/src/linux24_ts8/include/asm/pgalloc.h:20,
                 from /usr/src/linux24_ts8/include/linux/highmem.h:5,
                 from /usr/src/linux24_ts8/include/linux/pagemap.h:16,
                 from /usr/src/linux24_ts8/include/linux/locks.h:8,
                 from /usr/src/linux24_ts8/include/linux/blk.h:5,
                 from init/main.c:25:
/usr/src/crosstool/gcc-3.3-glibc-2.2.5/arm-9tdmi-linux-gnu/arm-9tdmi-linux-gnu/sys-include/asm/proc/cache.h:
In function `flush_page_to_ram':
/usr/src/crosstool/gcc-3.3-glibc-2.2.5/arm-9tdmi-linux-gnu/arm-9tdmi-linux-gnu/sys-include/asm/proc/cache.h:95:
error: `PAGE_OFFSET' undeclared (first use in this function)
/usr/src/crosstool/gcc-3.3-glibc-2.2.5/arm-9tdmi-linux-gnu/arm-9tdmi-linux-gnu/sys-include/asm/proc/cache.h:
In function `flush_dcache_page':
/usr/src/crosstool/gcc-3.3-glibc-2.2.5/arm-9tdmi-linux-gnu/arm-9tdmi-linux-gnu/sys-include/asm/proc/cache.h:126:
error: `PAGE_OFFSET' undeclared (first use in t his function)
In file included from /usr/src/linux24_ts8/include/linux/pagemap.h:16,
                 from /usr/src/linux24_ts8/include/linux/locks.h:8,
                 from /usr/src/linux24_ts8/include/linux/blk.h:5,
                 from init/main.c:25:
/usr/src/linux24_ts8/include/linux/highmem.h: In function `kmap':
/usr/src/linux24_ts8/include/linux/highmem.h:68: error: `PAGE_OFFSET'
undeclared (first use in this function)
init/main.c: In function `start_kernel':
init/main.c:393: error: `PAGE_OFFSET' undeclared (first use in this
function)
make: *** [init/main.o] Error 1

..............................................................
..............................................................

Please help.
Thanks in anticipation.

Best Regards
Abid





 


------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/ts-7000/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/ts-7000/join
    (Yahoo! ID required)

<*> To change settings via email:
     
    

<*> To unsubscribe from this group, send an email to:
    

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

<Prev in Thread] Current Thread [Next in Thread>
Admin

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