public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] Reg- One wire driver in Redboot
       [not found] <1180414215.10739.ezmlm@ecos.sourceware.org>
@ 2007-05-29  7:00 ` R.J.Sivakumar
  2007-05-29  7:34   ` Sergei Gavrikov
  0 siblings, 1 reply; 4+ messages in thread
From: R.J.Sivakumar @ 2007-05-29  7:00 UTC (permalink / raw)
  To: ecos-discuss

Dear all.
      As we are working in ARM11 board which has ECOS and redboot as the 
bootloader in the BSP, we have to monitor the battery through one wire device 
protocol in the redboot.Can u please help me, how to program the ECOS for the 
one wire protocol to access the battery EEPROM.Also as iam a newbie for ECOS 
and redboot,please show me some link or documentation where i can start to 
achieve this.

Thanks in Advance

-- 
Best regards,
Sivakumar.R.J

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [ECOS] Reg- One wire driver in Redboot
  2007-05-29  7:00 ` [ECOS] Reg- One wire driver in Redboot R.J.Sivakumar
@ 2007-05-29  7:34   ` Sergei Gavrikov
  2007-05-29 12:02     ` R.J.Sivakumar
  0 siblings, 1 reply; 4+ messages in thread
From: Sergei Gavrikov @ 2007-05-29  7:34 UTC (permalink / raw)
  To: R.J.Sivakumar; +Cc: ecos-discuss

29/05/2007 в 10:39 +0530, R.J.Sivakumar wrote:
> Dear all.
>       As we are working in ARM11 board which has ECOS and redboot as the 
> bootloader in the BSP, we have to monitor the battery through one wire device 
> protocol in the redboot.Can u please help me, how to program the ECOS for the 
> one wire protocol to access the battery EEPROM.Also as iam a newbie for ECOS 
> and redboot,please show me some link or documentation where i can start to 
> achieve this.

If you desire to contribute the common one-wire device for eCos, I would
refer you to

http://ecos.sourceware.org/docs-latest/ref/ecos-ref.html
http://ecos.sourceware.org/docs-latest/ref/io.html

If you already did implement the same primitives, for example, as
described here http://www.maxim-ic.com/appnotes.cfm/appnote_number/126 ,
you can easy add new polled device (your 1-wire device) for RedBoot
using the RedBoor_idle() register, for example

RedBoot_idle (read_ow_device, RedBoot_IDLE_AFTER_NETIO);

void
read_ow_device (bool is_idle)
{
    if (!is_idle)
        return;

    // call your procedure
    ...
}

I did play with that maxim source 'as is', just defined those A-J values
for my target. It did work fine (one my eCos thread measured a
temperature arround the board).

And the last note: please, don't use interrupt driven 1-wire read in
RedBoot.


-- Sergei


> 
> Thanks in Advance
> 
> -- 
> Best regards,
> Sivakumar.R.J
> 


-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [ECOS] Reg- One wire driver in Redboot
  2007-05-29  7:34   ` Sergei Gavrikov
@ 2007-05-29 12:02     ` R.J.Sivakumar
  2007-05-29 17:15       ` Sergei Gavrikov
  0 siblings, 1 reply; 4+ messages in thread
From: R.J.Sivakumar @ 2007-05-29 12:02 UTC (permalink / raw)
  To: ecos-discuss

Dear Sergei
      Really thanks for your immediate response,
 As this is the first attempt in ECOS, can you please give the details of how 
and where to program and cross compile the bootloader for the ARM11 board, 
regarding the driver ,where i have to add the register address of the one 
wire protocol of ARM11 processor, we are waiting for your suggestions

Thanks once again
-- 
Best regards,
Sivakumar.R.J

On Tuesday 29 May 2007 12:30 pm, you wrote:
> 29/05/2007 в 10:39 +0530, R.J.Sivakumar wrote:
> > Dear all.
> >       As we are working in ARM11 board which has ECOS and redboot as the
> > bootloader in the BSP, we have to monitor the battery through one wire
> > device protocol in the redboot.Can u please help me, how to program the
> > ECOS for the one wire protocol to access the battery EEPROM.Also as iam a
> > newbie for ECOS and redboot,please show me some link or documentation
> > where i can start to achieve this.
>



> If you desire to contribute the common one-wire device for eCos, I would
> refer you to
>
> http://ecos.sourceware.org/docs-latest/ref/ecos-ref.html
> http://ecos.sourceware.org/docs-latest/ref/io.html
>
> If you already did implement the same primitives, for example, as
> described here http://www.maxim-ic.com/appnotes.cfm/appnote_number/126 ,
> you can easy add new polled device (your 1-wire device) for RedBoot
> using the RedBoor_idle() register, for example
>
> RedBoot_idle (read_ow_device, RedBoot_IDLE_AFTER_NETIO);
>
> void
> read_ow_device (bool is_idle)
> {
>     if (!is_idle)
>         return;
>
>     // call your procedure
>     ...
> }
>
> I did play with that maxim source 'as is', just defined those A-J values
> for my target. It did work fine (one my eCos thread measured a
> temperature arround the board).
>
> And the last note: please, don't use interrupt driven 1-wire read in
> RedBoot.
>
>
> -- Sergei
>
> > Thanks in Advance
> >
> > --
> > Best regards,
> > Sivakumar.R.J


--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [ECOS] Reg- One wire driver in Redboot
  2007-05-29 12:02     ` R.J.Sivakumar
@ 2007-05-29 17:15       ` Sergei Gavrikov
  0 siblings, 0 replies; 4+ messages in thread
From: Sergei Gavrikov @ 2007-05-29 17:15 UTC (permalink / raw)
  To: R.J.Sivakumar; +Cc: ecos-discuss

On Tue, May 29, 2007 at 03:28:58PM +0530, R.J.Sivakumar wrote:
>  As this is the first attempt in ECOS, can you please give the details
>  of how and where to program and cross compile the bootloader for the
>  ARM11 board, regarding the driver ,where i have to add the register
>  address of the one wire protocol of ARM11 processor, we are waiting
>  for your suggestions

Sorry, I know about your target nothing. Did a supplier give you any
sources? Certainly, you need in the toolchain and sources to release own
RedBoot. I just did tell you how to organize a polling in RedBoot (that
was a common question, i.e. the question wasn't the target specific
thing). 


-- Sergei

P.S.

Please, don't use top-post for the threads (the bottom- or inline-
styles are preffered here).

http://www.catb.org/~esr/jargon/html/T/top-post.html
http://en.wikipedia.org/wiki/Top-posting

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-05-29 17:11 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <1180414215.10739.ezmlm@ecos.sourceware.org>
2007-05-29  7:00 ` [ECOS] Reg- One wire driver in Redboot R.J.Sivakumar
2007-05-29  7:34   ` Sergei Gavrikov
2007-05-29 12:02     ` R.J.Sivakumar
2007-05-29 17:15       ` Sergei Gavrikov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).