MPC5200 LEDs
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/
Hi Steve,
Quoted 2 lines · Steve Kaiser
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/
Quoted 11 lines · Steve Kaiser
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/
Quoted 11 lines · Steve Kaiser
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/