Forums

Urgent Query

Started by soumendra satapathy December 2, 2009
Dear All,

i have an urgent query. I have to write some drivers in linux for a ARM11
target.

Which book should i start off with :

ARM System Developers Guide - Andrew Sloss

or
ARM system-on-chip architecture - Steve Furber

I dont have time for both ... please suggest which one is the best
considering my requirement...

regards,
som
soumendra satapathy schrieb:

> Which book should i start off with :
>
> ARM System Developers Guide - Andrew Sloss
>
> or
> ARM system-on-chip architecture - Steve Furber
>
> I dont have time for both ... please suggest which one is the best
> considering my requirement...

Anyway, get both and read cross not word by word.

--
42Bastian
------------------
Parts of this email are written with invisible ink.

Note: SPAM-only account, direct mail to bs42@...
first you study the datasheet of which processor you used
next you gonna ARM System Developers Guide - Andrew Sloss
is my suggestion
thank
karthik.s

kaarthiik.s

> To: A...
> From: d...@sciopta.com
> Date: Wed, 2 Dec 2009 06:07:14 +0100
> Subject: Re: [AT91SAM] Urgent Query
>
> soumendra satapathy schrieb:
>
> > Which book should i start off with :
> >
> > ARM System Developers Guide - Andrew Sloss
> >
> > or
> > ARM system-on-chip architecture - Steve Furber
> >
> > I dont have time for both ... please suggest which one is the best
> > considering my requirement...
>
> Anyway, get both and read cross not word by word.
>
> --
> 42Bastian
> ------------------
> Parts of this email are written with invisible ink.
>
> Note: SPAM-only account, direct mail to bs42@...
>
>
> Yahoo! Groups Links
>
first u read the datasheet on the which ARM processor

next gonna ARM System Developers Guide - Andrew Sloss
To: A...
From: s...@gmail.com
Date: Wed, 2 Dec 2009 10:29:10 +0530
Subject: [AT91SAM] Urgent Query

Dear All,

i have an urgent query. I have to write some drivers in linux for a ARM11 target.

Which book should i start off with :

ARM System Developers Guide - Andrew Sloss

or

ARM system-on-chip architecture - Steve Furber

I dont have time for both ... please suggest which one is the best considering my requirement...

regards,
som
On Wednesday 02 December 2009 06:59:10 soumendra satapathy wrote:
> Dear All,
>
> i have an urgent query. I have to write some drivers in linux for a ARM11
> target.
>
> Which book should i start off with :
>
> ARM System Developer’s Guide - Andrew Sloss
>
> or
> ARM system-on-chip architecture - Steve Furber
>
> I dont have time for both ... please suggest which one is the best
> considering my requirement...
>

Those 2 books will not give you much about Linux drivers, at least not
directly. Moreoever, unless your hardware is not supported by Linux currently,
you do not need to learn ARM specific details for Linux drivers.

I suggest checking if your ARM11 SOC is supported by any Linux tree out there
and then reading Linux device drivers at [1].

Regards,
Caglar

[1] http://lwn.net/Kernel/LDD3/
Hi,

You need "Linux device drivers" book instead of the books you have
mentioned.But sloss is the best book to start off on ARM.

Regards
TVRPrasad
On 12/2/09, soumendra satapathy wrote:
>
> Dear All,
>
> i have an urgent query. I have to write some drivers in linux for a ARM11
> target.
>
> Which book should i start off with :
>
> ARM System Developers Guide - Andrew Sloss
>
> or
> ARM system-on-chip architecture - Steve Furber
>
> I dont have time for both ... please suggest which one is the best
> considering my requirement...
>
> regards,
> som
>
A big thanks to all and everyone ... Vishnu Thanks a lot ...

rgds,
som

On Wed, Dec 2, 2009 at 8:22 PM, vishnu Tadepalli > wrote:

> Hi,
>
> You need "Linux device drivers" book instead of the books you have
> mentioned.But sloss is the best book to start off on ARM.
>
> Regards
> TVRPrasad
> On 12/2/09, soumendra satapathy wrote:
>>
>> Dear All,
>>
>> i have an urgent query. I have to write some drivers in linux for a ARM11
>> target.
>>
>> Which book should i start off with :
>>
>> ARM System Developers Guide - Andrew Sloss
>>
>> or
>> ARM system-on-chip architecture - Steve Furber
>>
>> I dont have time for both ... please suggest which one is the best
>> considering my requirement...
>>
>> regards,
>> som
>
>
When I read the original post, I felt the same way as Caglar points out :

Can it be assumed that you're proficient with Linux driver design ?
In case that's not so, I think the ARM is the least of your problems :-)
Do not underestimate the scope of Linux's subtleties when it comes to
proper driver
implementation, especially kernel wise.
A learner myself, I've found user space to be a bit less overwhelming :-)

Oh well, as usual, there's pros and cons either way...

B rgds
Kris

On Wed, 2 Dec 2009 09:07:33 +0200, Caglar Akyuz
wrote:
> On Wednesday 02 December 2009 06:59:10 soumendra satapathy wrote:
>> Dear All,
>>
>> i have an urgent query. I have to write some drivers in linux for a
ARM11
>> target.
>>
>> Which book should i start off with :
>>
>> ARM System Developer’s Guide - Andrew Sloss
>>
>> or
>> ARM system-on-chip architecture - Steve Furber
>>
>> I dont have time for both ... please suggest which one is the best
>> considering my requirement...
>> Those 2 books will not give you much about Linux drivers, at least not
> directly. Moreoever, unless your hardware is not supported by Linux
> currently,
> you do not need to learn ARM specific details for Linux drivers.
>
> I suggest checking if your ARM11 SOC is supported by any Linux tree out
> there
> and then reading Linux device drivers at [1].
>
> Regards,
> Caglar
>
> [1] http://lwn.net/Kernel/LDD3/
I am really overwhelmed with the responses ... all i can say is a THANK U all
..

Now most of my above mentioned doubts are resolved.. i have some more :)

We have an arm tool chain installed in the linux machine.

in the /usr/local/arm-xxxx-linux-gnueabi/cross/devel/bin folder

Now i am trying to assemble simple assembly file first.s

$arm-xxxx-linux-gnueabi-dev-as *first.s*

but i get a lot of errors !! i know the tool chain is fine as well as the
program as it is copied from a book ...
-------
*PROGRAM*

;Add two (32-Bit) numbers

TTL Ch4Ex3 - add
AREA Program, CODE, READONLY
ENTRY

Main
LDR R1, Value1 ; Load the first number
LDR R2, Value2 ; Load the second number
ADD R1, R1, R2 ; ADD them together into R1 (x = x + y)
STR R1, Result ; Store the result
SWI &11

Value1 DCD &37E3C123 ; First value to be added
Value2 DCD &367402AA ; Second value to be added
Result DCD 0 ; Storage for result

END
-------
*
*
*RESULT*
*
*
first.s: Assembler messages:
first.s:1: Error: ARM register expected -- `add two(32-Bit)numbers'
first.s:3: Error: bad instruction `ttl Ch4Ex3-add'
first.s:4: Error: bad instruction `area Program,CODE,READONLY'
first.s:5: Error: bad instruction `entry'
first.s:7: Error: bad instruction `main'
first.s:8: Error: bad instruction `load the first number'
first.s:9: Error: bad instruction `load the second number'
first.s:10: Error: ARM register expected -- `add them together into
R1(x=x+y)'
first.s:11: Error: bad instruction `store the result'
first.s:14: Error: bad instruction `value1 DCD&37E3C123'
first.s:14: Error: bad instruction `first value to be added'
first.s:15: Error: bad instruction `value2 DCD&367402AA'
first.s:15: Error: bad instruction `second value to be added'
first.s:16: Error: bad instruction `result DCD 0'
first.s:16: Error: bad instruction `storage for result'
first.s:18: Error: bad instruction `end'

Can someone tell me what is going wrong ... ideally i should debug this ...
as i am completely new ... i need some help .. I am also trying ..

regards,
som

On Thu, Dec 3, 2009 at 12:52 AM, wrote:

> When I read the original post, I felt the same way as Caglar points out :
>
> Can it be assumed that you're proficient with Linux driver design ?
> In case that's not so, I think the ARM is the least of your problems :-)
> Do not underestimate the scope of Linux's subtleties when it comes to
> proper driver
> implementation, especially kernel wise.
> A learner myself, I've found user space to be a bit less overwhelming :-)
>
> Oh well, as usual, there's pros and cons either way...
>
> B rgds
> Kris
> On Wed, 2 Dec 2009 09:07:33 +0200, Caglar Akyuz
> > wrote:
> > On Wednesday 02 December 2009 06:59:10 soumendra satapathy wrote:
> >> Dear All,
> >>
> >> i have an urgent query. I have to write some drivers in linux for a
> ARM11
> >> target.
> >>
> >> Which book should i start off with :
> >>
> >> ARM System Developers Guide - Andrew Sloss
> >>
> >> or
> >> ARM system-on-chip architecture - Steve Furber
> >>
> >> I dont have time for both ... please suggest which one is the best
> >> considering my requirement...
> >>
> >
> > Those 2 books will not give you much about Linux drivers, at least not
> > directly. Moreoever, unless your hardware is not supported by Linux
> > currently,
> > you do not need to learn ARM specific details for Linux drivers.
> >
> > I suggest checking if your ARM11 SOC is supported by any Linux tree out
> > there
> > and then reading Linux device drivers at [1].
> >
> > Regards,
> > Caglar
> >
> > [1] http://lwn.net/Kernel/LDD3/
>
>
>
>>"Can someone tell me what is going wrong ... ideally i should debug this
... as i am completely new ... i need some help .. I am also trying ..

Look at the error messages. Notice that every comment in your code has
generated an 'Error: bad instruction' message from the assembler. Your first
step should be to find out what the correct source code format is and how
you denote comments. Once the assembler ignores comments you need to check
the other errors. For example is "result" actually a valid op-code?

Mark

On Thu, Dec 3, 2009 at 11:55 PM, soumendra satapathy <
s...@gmail.com> wrote:

> I am really overwhelmed with the responses ... all i can say is a THANK U
> all ..
>
> Now most of my above mentioned doubts are resolved.. i have some more :)
>
> We have an arm tool chain installed in the linux machine.
>
> in the /usr/local/arm-xxxx-linux-gnueabi/cross/devel/bin folder
>
> Now i am trying to assemble simple assembly file first.s
>
> $arm-xxxx-linux-gnueabi-dev-as *first.s*
>
> but i get a lot of errors !! i know the tool chain is fine as well as the
> program as it is copied from a book ...
>
> -------
> *PROGRAM*
>
> ;Add two (32-Bit) numbers
>
> TTL Ch4Ex3 - add
> AREA Program, CODE, READONLY
> ENTRY
>
> Main
> LDR R1, Value1 ; Load the first number
> LDR R2, Value2 ; Load the second number
> ADD R1, R1, R2 ; ADD them together into R1 (x = x + y)
> STR R1, Result ; Store the result
> SWI &11
>
> Value1 DCD &37E3C123 ; First value to be added
> Value2 DCD &367402AA ; Second value to be added
> Result DCD 0 ; Storage for result
>
> END
>
> -------
> *
> *
> *RESULT*
> *
> *
> first.s: Assembler messages:
> first.s:1: Error: ARM register expected -- `add two(32-Bit)numbers'
> first.s:3: Error: bad instruction `ttl Ch4Ex3-add'
> first.s:4: Error: bad instruction `area Program,CODE,READONLY'
> first.s:5: Error: bad instruction `entry'
> first.s:7: Error: bad instruction `main'
> first.s:8: Error: bad instruction `load the first number'
> first.s:9: Error: bad instruction `load the second number'
> first.s:10: Error: ARM register expected -- `add them together into
> R1(x=x+y)'
> first.s:11: Error: bad instruction `store the result'
> first.s:14: Error: bad instruction `value1 DCD&37E3C123'
> first.s:14: Error: bad instruction `first value to be added'
> first.s:15: Error: bad instruction `value2 DCD&367402AA'
> first.s:15: Error: bad instruction `second value to be added'
> first.s:16: Error: bad instruction `result DCD 0'
> first.s:16: Error: bad instruction `storage for result'
> first.s:18: Error: bad instruction `end'
>
> Can someone tell me what is going wrong ... ideally i should debug this ...
> as i am completely new ... i need some help .. I am also trying ..
>
> regards,
> som
> On Thu, Dec 3, 2009 at 12:52 AM, wrote:
>
>> When I read the original post, I felt the same way as Caglar points out :
>>
>> Can it be assumed that you're proficient with Linux driver design ?
>> In case that's not so, I think the ARM is the least of your problems :-)
>> Do not underestimate the scope of Linux's subtleties when it comes to
>> proper driver
>> implementation, especially kernel wise.
>> A learner myself, I've found user space to be a bit less overwhelming :-)
>>
>> Oh well, as usual, there's pros and cons either way...
>>
>> B rgds
>> Kris
>> On Wed, 2 Dec 2009 09:07:33 +0200, Caglar Akyuz
>> > wrote:
>> > On Wednesday 02 December 2009 06:59:10 soumendra satapathy wrote:
>> >> Dear All,
>> >>
>> >> i have an urgent query. I have to write some drivers in linux for a
>> ARM11
>> >> target.
>> >>
>> >> Which book should i start off with :
>> >>
>> >> ARM System Developers Guide - Andrew Sloss
>> >>
>> >> or
>> >> ARM system-on-chip architecture - Steve Furber
>> >>
>> >> I dont have time for both ... please suggest which one is the best
>> >> considering my requirement...
>> >>
>> >
>> > Those 2 books will not give you much about Linux drivers, at least not
>> > directly. Moreoever, unless your hardware is not supported by Linux
>> > currently,
>> > you do not need to learn ARM specific details for Linux drivers.
>> >
>> > I suggest checking if your ARM11 SOC is supported by any Linux tree out
>> > there
>> > and then reading Linux device drivers at [1].
>> >
>> > Regards,
>> > Caglar
>> >
>> > [1] http://lwn.net/Kernel/LDD3/
>>
>