ts-7000
[Top] [All Lists]

Re: [ts-7000] Re: Where did I go wrong?

To:
Subject: Re: [ts-7000] Re: Where did I go wrong?
From: wannabeanembeddedexpert wannabeanembeddedexpert <>
Date: Sun, 18 Dec 2005 01:20:45 -0800 (PST)
I understand that I need to map memory into user space but I am not working on TSLinux. I have loaded my binary to the RAM before the ts7200 loads the kernel to the memory. So there must be no mmap issue since there is no running OS. Actually I wanted to access to hardware without any OS dependency and with no OS running on. There must be a way... And thanks for keypad.c example. I will examine it immediately. Thanks & have a good day...

Yan Seiner <> wrote:
--- In wannabeanembeddedexpert
wannabeanembeddedexpert <> wrote:
>
>   
>   "7F454C46...." which is equal to ".ELF....." in ASCII.
>   ELF? Must not it be AXF or something else? The header of the image
on the ftp seems total! ly different by the way. In summary,
>   I could not find where I did wrong... Can anybody?
>

I think you built a program to be executed under a running linux
kernel...  Not one to be run on a bare board....

And, in any case, your code won't work under a kernel because user
space apps cannot read memory directly.

Look at keypad.c  or any of the other examples in the files section (I
think there is an led blinker of some sort)....

You have to map the memory into userspace, and then use it.  It's
pretty straightforward once you get used to it, but the first step is
pretty high and slippery... :-)

Welcome aboard.  May you never look back.

--Yan
                                                         

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

SPONSORED LINKS
Computer internet security Linux os Computer internet business
Computer internet access Computer internet privacy securities Computer internet help


YAHOO! GROUPS LINKS

  •  Visit your group "ts-7000" on the web.
     
  •  To unsubscribe from this group, send an email to:
     =Unsubscribe
     
  •  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



<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