Download Linux Cortex-M User`s Manual

Transcript
Emcraft Systems
o
LPC17xx = 0x0
o
SmartFusion and SmartFusion2 = 0x0
o
Kinetis = 0x0
As an example, the following command performs the U-boot self-upgrade on
SmartFusion:
A2F-LNX-EVB> cptf 0x0 ${loadaddr} ${filesize} 1
cptf: Updating eNVM. Please wait ...
U-Boot 2010.03 (Dec 06 2013 - 20:15:52)
CPU: SmartFusion FPGA (Cortex-M3 Hard IP)
Board: A2F-LNX-EVB Rev 2.A, www.emcraft.com
...
A2F-LNX-EVB>
Note: Be extra-careful when performing the cptf command specified above. In case you
program an incorrect U-Boot image to the eNVM, this will render the board non-bootable.
The only resort in this scenario is to program the U-boot image to the board over the JTAG
port.
6. Sample Development Session
6.1. Sample Session Outline
This sample session illustrates a possible software development cycle in Linux Cortex-M.
We will do the following:
1. Create a new project by cloning it off of the developer demo project.
2. Modify the new project to automatically NFS-mount a development tree from the Linux
host where we have installed Linux Cortex-M.
3. Program the new project image into Flash so that it autoboots on the target on each
power-up / reset.
4. Develop a new custom application and a kernel module and debug them from the NFSmounted host directory, without having to even reboot the target.
6.2. Create a New Project
This section creates a new project as a clone of the existing project and makes sure the new
project builds:
1. Start off of the developer project and create a clone called my_developer:
-bash-3.2$ pwd
/home/vlad/test/linux-cortexm-1.12.0/projects/developer
-bash-3.2$ make clone new=my_developer
New project created in /home/vlad/test/linux-cortexm-1.12.0/projects/my_developer
-bash-3.2$
2. Go to the new project directory, build it and copy the downloadable Linux image to the
TFTP server directory:
-bash-3.2$ cd ../my_developer/
-bash-3.2$ make
...
Image arch/arm/boot/uImage is ready
...
-bash-3.2$ cp my_developer.uImage /tftpboot/vlad/v
Linux Cortex-M User's Manual
16/21
Release 1.12.0