ts-7000
[Top] [All Lists]

Re: [ts-7000] Re: How to compile C codes in Debian OS?

To:
Subject: Re: [ts-7000] Re: How to compile C codes in Debian OS?
From: Jim Jackson <>
Date: Wed, 27 Aug 2008 16:31:24 +0100 (BST)


On Tue, 26 Aug 2008, Yuping Dong wrote:

> Thanks for your help, Jim!
> I tried list all directories under / , and I cd to "lib" "mnt" and "dev".
> There are libgcc_s.so and libgcc_s.so.1 in "lib".
> In "mnt", there is only "cf", and nothing in "cf".
> In "dev", there are a lot of stuffs, most are tty ports. And there is one
> called "usb" in "dev", but there's nothing in it...
> I don't know why there are so many ttys, and I still did not find gcc...
>
> btw, I did all these cd and ls in the Debian OS which is loaded from the USB
> stick.

type the command:

   which gcc

it will tell you where it is. Or just invoke it...

   gcc -v

happy hacking
Jim
>
> Thanks,
> Yuping
>
> On Tue, Aug 26, 2008 at 3:56 PM, Jim Jackson <> wrote:
>
>>
>>
>> On Tue, 26 Aug 2008, Yuping Dong wrote:
>>
>>> Thank you very much for your help!
>>> What I did is, I first logged in to the TS-Linux which is installed in
>> the
>>> on-board flash memory. Then I plugged in the USB stick which is shipped
>> as a
>>> component of the development kit, and run the scripts
>>> "/usr/bin/loadUSBModules.sh" and "/usr/bin/loadUSB.sh" and I was able to
>>> work with the Debian OS. I typed "help" to see what commands are
>> available,
>>> but it turns out that no "gcc" or "g++", even no "apt-get" available
>> there.
>>>
>>> I think the best way is to use a cross compiler...
>>
>> Ok. I sort of guessed that was what you had done.
>>
>> gcc and the rest are there.
>>
>> I'm not exactly sure where those scripts mount the USB flash stick.
>> But if they mount it in, for instance, /mnt/usbstick ,
>> then try this...
>>
>> login as usual, then try
>>
>> chroot /mnt/usbstick
>>
>> this will give you a shell where it thinks that /mnt/usbstick is '/' or
>> your file system root. Now you should be able to check what is there.
>>
>> which gcc
>>
>> should tell you where gcc is, and it should be executable.
>>
>> cheers
>> Jim
>>
>>
>

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

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