linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* MPC5200 LEDs
@ 2004-05-18 15:50 Steve Kaiser
  2004-05-19  9:41 ` Richard Danter
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Steve Kaiser @ 2004-05-18 15:50 UTC (permalink / raw)
  To: linuxppc-embedded


Before I plow into it, I ask for your advice.  What is the best way to turn
on/off the status LEDs on the Motorola Lite5200 ("IceCube") board?

Although experienced with embedded micros & DSPs in general, I am a newbie to
Linux and the MPC5200.
Thanks to Wolfgang for the most excellent U-Boot and ELDK.  With these tools,
I have compiled a 2.4.25 kernel and have it running from either RAM or Flash
in my 5200 IceCube.  I can insmod a simple "hello world" module on my target.
That's where I'm at.  I figure the next exciting step is to turn LEDs on &
off.  Right?  What's the best/correct way in the Linux tradition?  Any tips
are welcome.

Steve Kaiser
Chemistry Electronics Shop
Univ of Calif - Riverside


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

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

* Re: MPC5200 LEDs
  2004-05-18 15:50 MPC5200 LEDs Steve Kaiser
@ 2004-05-19  9:41 ` Richard Danter
  2004-05-19 10:00 ` Wolfgang Grandegger
  2004-05-19 10:59 ` J.D. Bakker
  2 siblings, 0 replies; 4+ messages in thread
From: Richard Danter @ 2004-05-19  9:41 UTC (permalink / raw)
  To: Steve Kaiser; +Cc: linuxppc-embedded


Hi Steve,

On Tue, 2004-05-18 at 16:50, Steve Kaiser wrote:
> Before I plow into it, I ask for your advice.  What is the best way to turn
> on/off the status LEDs on the Motorola Lite5200 ("IceCube") board?

I don't know anything about the 5200 board, but I recently wanted to do
the same thing with the LED's on the Wind River (EST) SBC8260 board.

The LED's on this board are write-only at a specific address. My
solution was to write a simple loadable module (like a device driver,
but not statically linked to the kernel). Once loaded, any application
can write to the LED's by writing to the module in /dev.

I can send you my code as an example if you want it.

Rich


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

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

* Re: MPC5200 LEDs
  2004-05-18 15:50 MPC5200 LEDs Steve Kaiser
  2004-05-19  9:41 ` Richard Danter
@ 2004-05-19 10:00 ` Wolfgang Grandegger
  2004-05-19 10:59 ` J.D. Bakker
  2 siblings, 0 replies; 4+ messages in thread
From: Wolfgang Grandegger @ 2004-05-19 10:00 UTC (permalink / raw)
  To: Steve Kaiser; +Cc: linuxppc-embedded


On 05/18/2004 05:50 PM Steve Kaiser wrote:
> Before I plow into it, I ask for your advice.  What is the best way to turn
> on/off the status LEDs on the Motorola Lite5200 ("IceCube") board?
>
> Although experienced with embedded micros & DSPs in general, I am a newbie to
> Linux and the MPC5200.
> Thanks to Wolfgang for the most excellent U-Boot and ELDK.  With these tools,
> I have compiled a 2.4.25 kernel and have it running from either RAM or Flash
> in my 5200 IceCube.  I can insmod a simple "hello world" module on my target.
> That's where I'm at.  I figure the next exciting step is to turn LEDs on &
> off.  Right?  What's the best/correct way in the Linux tradition?  Any tips
> are welcome.

I have recently started to port/develop a little digital I/O driver for
the Icecube for a Linux driver training course. It allows to configure
some port pins for output and input with interrupts and with a few
jumper cables you can toggle the pins and trigger interrupts. It's still
in a preliminary state. Nevertheless I could send it to you in a private
mail in case you are interested.

Wolfgang.

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

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

* Re: MPC5200 LEDs
  2004-05-18 15:50 MPC5200 LEDs Steve Kaiser
  2004-05-19  9:41 ` Richard Danter
  2004-05-19 10:00 ` Wolfgang Grandegger
@ 2004-05-19 10:59 ` J.D. Bakker
  2 siblings, 0 replies; 4+ messages in thread
From: J.D. Bakker @ 2004-05-19 10:59 UTC (permalink / raw)
  To: Steve Kaiser; +Cc: linuxppc-embedded


At 8:50 -0700 18-05-2004, Steve Kaiser wrote:
>Before I plow into it, I ask for your advice.  What is the best way to turn
>on/off the status LEDs on the Motorola Lite5200 ("IceCube") board?
>
>Although experienced with embedded micros & DSPs in general, I am a newbie to
>Linux and the MPC5200.
>Thanks to Wolfgang for the most excellent U-Boot and ELDK.  With these tools,
>I have compiled a 2.4.25 kernel and have it running from either RAM or Flash
>in my 5200 IceCube.  I can insmod a simple "hello world" module on my target.
>That's where I'm at.  I figure the next exciting step is to turn LEDs on &
>off.  Right?  What's the best/correct way in the Linux tradition?  Any tips
>are welcome.

Do you have working userspace (ie, do you have a ramdisk or the like
loaded, and do you get a prompt where you can execute commands) ? If
so, you can set and read memory locations using a cross-compiled
version of devmem2:

http://www.lart.tudelft.nl/lartware/port/devmem2.c

Just find out the (physical) address of the latch driving the LEDs,
and you can toggle them from the command line.

Regards,

JDB.
--
LART. 250 MIPS under one Watt. Free hardware design files.
http://www.lart.tudelft.nl/

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

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

end of thread, other threads:[~2004-05-19 10:59 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-05-18 15:50 MPC5200 LEDs Steve Kaiser
2004-05-19  9:41 ` Richard Danter
2004-05-19 10:00 ` Wolfgang Grandegger
2004-05-19 10:59 ` J.D. Bakker

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 NNTP newsgroup(s).