Hey Alex,
I can't do much to help you debug your issues in booting from a USB
drive, but I want to reiterate what I have learned are the necessary
conditions for good performing floating point emulation-
1. An EABI kernel. So far as I understand, this is mutually exclusive
with a 2.4 kernel. The 2.6.21 kernel from TS should work.
2. A root file system that is compatible with the 2.6 kernel. This
file system does not necessarily have to be EABI, but the TS-Linux
file system that comes with the TS-7260 is not compatible with the 2.6
kernel. As I understand it, the main difference in the root file
system is that it needs to provide udev to dynamically create the
device nodes. An EABI based file system is not compatible with an
OABI kernel, and even if it were, would not be sufficient for good
floating point emulation without the EABI kernel.
3. An EABI compatible compiler. This can either be one of the cross
compilers from TS, such as the 2005q3, or a native compiler on a board
running an EABI root file system.
4. EABI userland, or equivalent. There are three ways to get this-
4.1 Have an EABI root file system, such as the EABI Debian Etch distro
(not to be confused with the OABI Debian Etch distro!)
4.2 Place the EABI shared libraries on your OABI root file system, and
compile your application with -Wl,-rpath /yourpath so it can find them.
4.3 Statically compile your application so it doesn't need to find any
shared libraries on the root file system.
Piece of cake, eh?
In my experience with the 7260, I built the tskernel-2.6.21 from
source, setup the debian-sarge-udev file system over NFS, and used the
TS bootload utility to try to run the 2.6 kernel. With a fair amount
of work, I got it to boot without warnings and give me a command
prompt, but it would freeze there. I feel like I wasn't so far from
getting it to work, but I really wanted a board which would run from
the 32 MB on board flash, which is way too small for any of the TS
Debian distros (all 150 MB plus.)
Instead of trying to roll my own udev Busybox root file system, I
decided to save myself the grief and upgrade to the 7800. It wasn't
all straightforward from there, but it is working now :)
Other folks have gotten the 2.6 kernel and Debian working on the 7260,
so if you can work with the USB drive, then you've got some options,
if you're ready to keep digging!
-mike
--- In "alexanchoragealaska" <> wrote:
>
> OK, I tried several different things, and I got quite confused. I
> will appreciate help with any questions listed below.
>
> 1) As Andy suggested, I boot TS-7260 into Debian Linux following
> instructions from "Linux for Arm On TS-72xx" and USB flash that came
> with TS-Arm Development kit . In other words, I boot TS-7260 with
> TS-Linux, and then ran scripts: /usr/bin/loadUSBModules.sh and
> /usr/bin/loadUSB.sh. I assume that I am running Debian OS now. I
> tried to use ldd command, but I am still getting "-sh: ldd: not found"
> error. (I also tried to configure network settings, but there is no
> /etc/network/ directory available). Does it mean that I don't have
> full version of Debian installed? (I am using COM1 for communication,
> when I type in uname -arv, I am getting response Linux ts-7200
> 2.4.26-t11 ....) How can I install full Debian Linux on TS-7260 to be
> able to use native compilers and the rest of tools?
>
> 2) "Technologic Systems" provided answer to floating point performance
> (EABI / use static libraries) for TS-7800 using EABI crosstool. Is
> there similar EABI cross-tool available for TS-7260?
>
> 3) I tried to use -static option for regular cross-tool (hoping to get
> better performance), but it looks like the compiler can't find static
> libraries for math.h. The error I am getting is: "undefined reference
> to 'log10' ". If I use shared libraries, I don't have this error. Are
> the static libraries available for math.h and how can I show the
> cross-tool the location for these libraries?
>
> 4) Cirrus has a post with some info on the hardware coprocessor for
> floating point operation (aka "crunch") on EP93xx
> (http://arm.cirrus.com/files/linux/crunch/docs/crunch_user_guide.text).
> The embeddedarm ftp web-site has a directory called "crunch" with
> tool-chain (ftp://oz.embeddedarm.com/crunch/toolchain/). Does anybody
> has experience with this tool-chain? Is it taking advantage of
> coprocessor on EP-93xx for floating point calculations? If "yes", any
> examples how to use it?
>
> I know that I probably should start separate message threads for these
> questions, but it sounds like a lot of users who are starting with
> TS-7xxx will benefit from step-by-step instructions or an example
> showing how to correctly compile applications without floating
> performance issue on the TS-Arm boards.
>
>
> --- In "Andy Mercier" <andynmercier@> wrote:
> >
> >
> > --- In "alexanchoragealaska" <alex@> wrote:
> > >
> > > I tried to use ldd on Cygwin (desktop) and on the TS-Linux
(TS-7260).
> > > In both cases I am getting: command not found. I believe I
have full
> > > installation of Cygwin, so is their something I need to add to the
> > > PATH n order to be able to use LDD?
> > >
> > > -- In "Andy Mercier" andynmercier@ wrote:
> > > >
> > > > --- In "alexanchoragealaska" <alex@>
wrote:
> > > > >
> > > > > Hi all,
> > > > >
> > > > > I have similar problem with TS-7260. It's extremely slow doing
> > > > > floating point calculations (log(), sqrt() function).
> > > > >
> > > > > I am wondering if I have the same issue on TS-7260 as Mike
had on
> > > > > TS-7800. How can I figure out what libraries are called by
cross
> > > > > compiled executable?
> > > > >
> > > > > I started with Linux and TS-7260 few months ago. So, I don't
have
> > much
> > > > > experience with cross compiling and gcc.
> > > > >
> > > > > I am running TS-Linux, cygwin-gcc-3.3.2-glibc-2.3.3
toolchain and
> > I am
> > > > > using next compile option:
> > > > > arm-unknown-linux-gnu-cc -lm -Wall -O2 -o Executable MyProgram.c
> > > > >
> > > > > Thanks in advance,
> > > > >
> > > > > - Alex
> > > >
> > > > Alex,
> > > > Use the ldd command on your executable since it looks like you're
> > > > compiling with shared libraries. Any questions about ldd just use
> > man
> > > > ldd on Debian or Google "man ldd".
> > > >
> > > > ----
> > > > Andy
> > > >
> > >
> >
> > --- In "alexanchoragealaska" <alex@> wrote:
> > >
> > > I tried to use ldd on Cygwin (desktop) and on the TS-Linux
(TS-7260).
> > > In both cases I am getting: command not found. I believe I have
> > > full installation of Cygwin, so is their something I need to add to
> > > the PATH n order to be able to use LDD?
> > >
> > > -- In "Andy Mercier" <andynmercier@> wrote:
> > > >
> > > > --- In "alexanchoragealaska" <alex@>
wrote:
> > > > >
> > > > > Hi all,
> > > > >
> > > > > I have similar problem with TS-7260. It's extremely slow doing
> > > > > floating point calculations (log(), sqrt() function).
> > > > >
> > > > > I am wondering if I have the same issue on TS-7260 as Mike
had on
> > > > > TS-7800. How can I figure out what libraries are called by
cross
> > > > > compiled executable?
> > > > >
> > > > > I started with Linux and TS-7260 few months ago. So, I don't
have
> > much
> > > > > experience with cross compiling and gcc.
> > > > >
> > > > > I am running TS-Linux, cygwin-gcc-3.3.2-glibc-2.3.3
toolchain and
> > I am
> > > > > using next compile option:
> > > > > arm-unknown-linux-gnu-cc -lm -Wall -O2 -o Executable MyProgram.c
> > > > >
> > > > > Thanks in advance,
> > > > >
> > > > > - Alex
> > > >
> > > > Alex,
> > > > Use the ldd command on your executable since it looks like you're
> > > > compiling with shared libraries. Any questions about ldd just use
> > man
> > > > ldd on Debian or Google "man ldd".
> > > >
> > > > ----
> > > > Andy
> > > >
> > >
> > Alex,
> >
> > Let me clarify. Debian on your TS-7260 is what you need -OR-
> > cross-compiling and other development on a Linux installation, say in
> > QEmu or native (i.e. an installation) will avoid issues like
this... You
> > need better tools.
> >
> > Now that the floating point question has been answered by
Technologic...
> > this is way OT and I've modified the "Subject:" to reflect that, a
> > little.
> >
> > I don't have a TS-7260 but I do have Debian on a TS-7250, TS-7300 and
> > TS-7400 and it helps... a lot. You can get it onto your TS-7260
with an
> > SD Card or a USB flash drive but it depends on how you ordered your
> > board (Standard order is XDIO unless you specify and pay for SD card),
> > in either configuration a USB flash drive should work.
> >
> > Anyway, I learned something... ldd isn't in Cygwin! I checked
> > http://www.cygwin.com/packages/ which provides a search of all the
files
> > and it doesn't appear where it should (the hits that come up
aren't the
> > ldd we need - We need the one that's part of the library tools.)
> >
> > You have reached the limits of what you can do with Cygwin when
> > cross-compiling because it doesn't have the ARM loader which is
used by
> > ldd which is a script. The script won't work with Busybox unless
> > something's modified - BusyBox or the script.
> >
> > Good luck.
> >
> > ----
> > Andy
> >
>
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/
|