MPC5200 LEDs

J.D. Bakker bakker at thorgal.et.tudelft.nl
Wed May 19 20:59:55 EST 2004


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/





More information about the Linuxppc-embedded mailing list