RCU2 Software Development Firmware: Difference between revisions
From ift
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
== Programming == | == Programming == | ||
A FlashPro project including a STAPL programming file with firmware and u-boot images can be found [http://tidsreise.com/rcu/rcu2_linux_fw.zip here]. | A FlashPro project including a STAPL programming file with firmware and u-boot images can be found [http://tidsreise.com/rcu/rcu2_linux_fw.zip here]<ref>[http://tidsreise.com/rcu/rcu2_linux_fw.zip Firmware]</ref>. | ||
The firmware is compiled for the SmartFusion2 Starter Kit. | The firmware is compiled for the SmartFusion2 Starter Kit. | ||
Usage: | Usage: | ||
# Open FlashPro software | # Open FlashPro software | ||
Line 7: | Line 8: | ||
# Make sure the FlashPro programmer is inserted and that it has been selected by pressing ''View Programmers''. If necessary, hit ''Refresh/Rescan for Programmers'' | # Make sure the FlashPro programmer is inserted and that it has been selected by pressing ''View Programmers''. If necessary, hit ''Refresh/Rescan for Programmers'' | ||
# Now hit ''PROGRAM'', wait for it to finish and then power cycle the board. | # Now hit ''PROGRAM'', wait for it to finish and then power cycle the board. | ||
For more information on FlashPro, check the user guide<ref>[http://www.microsemi.com/document-portal/doc_download/130809-flashpro-for-software-v11-0-user FlashPro User Guide]</ref>. | |||
== Set Up the SF2 Target == | |||
== Boot Linux Image == | |||
The Linux image is fetched from a network and can be booted directly from the network as well as loaded into the external Flash memory on the board. | |||
This requires a TFTP server to host the Linux image. | |||
=== Setup U-Boot enviroment === | |||
For now, the U-Boot enviroment has to be set manually. | |||
* Log in to the board through serial, baud rate 115200, 1 stop bit, no parity | |||
* Reset board and hit a key to stop boot sequence | |||
* Define the IP addresses for the target board and the TFTP server, as well as the name for the boot image. | |||
setenv ipaddr 123.234.345.29 | |||
setenv serverip 123.234.345.12 | |||
setenv image rcu2linux.uImage | |||
saveenv | |||
To run the image over the network, reset the board and stop the autoboot sequence, then type | |||
run netboot | |||
To load the image into the Flash, type | |||
run update | |||
<references /> |
Revision as of 09:52, 28 November 2013
Programming
A FlashPro project including a STAPL programming file with firmware and u-boot images can be found here[1]. The firmware is compiled for the SmartFusion2 Starter Kit.
Usage:
- Open FlashPro software
- Select Open Project and find the file rcu2_linux_fw.pro
- Make sure the FlashPro programmer is inserted and that it has been selected by pressing View Programmers. If necessary, hit Refresh/Rescan for Programmers
- Now hit PROGRAM, wait for it to finish and then power cycle the board.
For more information on FlashPro, check the user guide[2].
Set Up the SF2 Target
Boot Linux Image
The Linux image is fetched from a network and can be booted directly from the network as well as loaded into the external Flash memory on the board. This requires a TFTP server to host the Linux image.
Setup U-Boot enviroment
For now, the U-Boot enviroment has to be set manually.
- Log in to the board through serial, baud rate 115200, 1 stop bit, no parity
- Reset board and hit a key to stop boot sequence
- Define the IP addresses for the target board and the TFTP server, as well as the name for the boot image.
setenv ipaddr 123.234.345.29 setenv serverip 123.234.345.12 setenv image rcu2linux.uImage saveenv
To run the image over the network, reset the board and stop the autoboot sequence, then type
run netboot
To load the image into the Flash, type
run update