ts-7000
[Top] [All Lists]

[ts-7000] Re: codesourcery 2.6 and NAND flash

To:
Subject: [ts-7000] Re: codesourcery 2.6 and NAND flash
From: "j.chitte" <>
Date: Thu, 29 May 2008 00:28:35 -0000
--- In  Triffid Hunter <> 
wrote:
>
> > Hi again.
> >
> > I did not get far with crossdev (looks like a project in itself to
> > get the magic numbers right) so I went with codesourcery 2008q1 
and
> > got a hello.c example compiled with all lib paths etc. so looks 
like
> > a working eabi toolchain.
> >
> > However I can't enable ARM on gentoo-sources 2.6.25 or 2.6.21 (BTW
> > the patch you linked applies cleanly on both).
> >
> > Neither the arch nor the cpu are there. :?
> >
> > CC="arm-none-linux-gnueabi-gcc" CFLAGS="-march=armv4 -
mtune=arm9tdmi"
> > LDFLAGS=" -Wl,-rpath=/cstools/lib:/cstools/usr/lib -Wl,--dynamic-
> > linker=/cstools/lib/ld-linux.so.3"  make menuconfig
> >
> > that's full command but that lack of ARM is the same if I just run
> > make with the native compiler
> >
> >
> > If I try your config I get these warnings amongst others:
> >
> > .config:165:warning: trying to assign nonexistent symbol CPU_32
> > .config:166:warning: trying to assign nonexistent symbol 
CPU_ARM920T
> > .config:167:warning: trying to assign nonexistent symbol CPU_32v4T
> > .config:168:warning: trying to assign nonexistent symbol 
CPU_ABRT_EV4T
> > .config:169:warning: trying to assign nonexistent symbol
> > CPU_CACHE_V4WT
> > .config:170:warning: trying to assign nonexistent symbol
> > CPU_CACHE_VIVT
> > .config:171:warning: trying to assign nonexistent symbol 
CPU_COPY_V4WB
> > .config:172:warning: trying to assign nonexistent symbol 
CPU_TLB_V4WBI
> > .config:173:warning: trying to assign nonexistent symbol CPU_CP15
> > .config:174:warning: trying to assign nonexistent symbol 
CPU_CP15_MMU
> > .config:179:warning: trying to assign nonexistent symbol ARM_THUMB
> >
> >
> > It seems there's some other patches I need to apply , unless I'm 
just
> > missing something obvious.
> >
> > Can you see what I'm missing?
> 
> ARCH="arm"
> 
> you may also want INSTALL_MOD_PATH=/cstools, and 
> CROSS_COMPILE="arm-none-linux-gnueabi-" instead of CC= so it can 
figure 
> out that HOSTCC != CC
> 
> I use make CROSS_COMPILE='arm-none-linux-gnueabi-" ARCH="arm" 
> INSTALL_MOD_PATH="/my/arm/root" menuconfig
> 
> http://gentoo-wiki.com/HARDWARE_TS72xx_Single_Board_Computer is a 
good 
> reference :)
>

Duh, thanks. That's got me rolling.

I ran patch-ker.sh from yaffs-utils and that correctly installed the 
source into the kernel tree.

However, there's a small change in the kernel that removed read_inode

http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-
2.6.git;a=commit;h=12debc4248a4a7f1873e47cda2cdd7faca80b099

I'll see if I can't create a patch if no-one's done it , Looks fairly 
simple.

Now bed.

Thanks for the help.




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

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