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: Mon, 26 May 2008 10:28:21 -0000
--- In  "j.chitte" <> wrote:
>
> --- In  Triffid Hunter <triffid_hunter@> 
> wrote:
> >
> > On Sun, 25 May 2008, j.chitte wrote:
> > 

> > I posted the config and patchset:
> > http://triffid.funkmunch.net/console-tools/ts7250-linux-config-
> 2.6.21
> > http://triffid.funkmunch.net/console-tools/ts7250-2.6.21-
> gentoo.patch
> > 
> > patch is against gentoo-sources-2.6.21 I believe, although it 
> should patch 
> > against vanilla sources too. As far as I know, it's essentially 
one 
> of the 
> > patches posted by other members of the group with some offsets 
> tweaked so 
> > check this group's file section if it doesn't look good to you.
> > 
> > Not sure if it includes yaffs, but I always add yaffs support to 
my 
> > kernels as my ts7250 had a yaffs rootfs when I got it.
> > 
> > Note that since I sorted all that stuff out, I've lost the drive 
it 
> was on 
> > so I don't have the exact setup and toolchain anymore. I do 
> remember that 
> > I generated it with gentoo's crossdev tool, and it was oabi since 
I 
> can't 
> > get any kernels made with eabi toolchains to actually run. They 
> finish 
> > unpacking and then stop telling me anything, appariently locked.
> > 
> > Running 'strings' against the binaries on the filesystem reveal 
gcc-
> 4.1.2 
> > and GLIBC-2.4.
> > 
> > I would love a definitive guide on creating a {gnu,uclibc}eabi 
> toolchain, 
> > but am yet to find one that gives me a working result.
> >
> 
> Thanks for your help.
> 
> That should at least give me a staring point. I have crossdev so 
I'll 
> give it a try.
> 
> codesourcery provides a working toolchain that claims to work with 
> EABI and requires >=2.6.19 so that would be worth a try as well, 
> although they say it cant do hard-float. Still EABI would be a 
great 
> first step.
> 
> Looks like all this is finally coming together. 
> 
> Here goes... 
> 
> thanks again.
>

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?

TIA



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

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