Download SnapGear Linux for LEON

Transcript
LINUX-SNAPGEAR
2
Table of Contents
1
1.1
1.2
1.3
1.4
1.5
1.6
1.7
INTRODUCTION..............................................................................................................................5
LEON Linux.......................................................................................................................................5
SnapGear Linux..................................................................................................................................5
Boot loader for LEON Linux.............................................................................................................5
LEON simulator to speed up the development process.....................................................................6
Obtaining the software.......................................................................................................................6
Supported hardware............................................................................................................................6
Support...............................................................................................................................................6
2
2.1
2.2
2.3
2.4
INSTALLING GNU TOOLCHAIN AND LEON LINUX...............................................................7
Selecting Toolchain............................................................................................................................7
Installing the toolchain.......................................................................................................................7
Installing SnapGear for LEON Linux 2.0..........................................................................................8
Installing SnapGear for LEON Linux 2.6..........................................................................................8
3
3.1
3.2
3.2.1
3.2.2
3.2.3
3.3
3.4
3.4.1
3.5
3.5.1
3.5.2
3.5.3
3.5.4
3.5.5
3.5.6
3.5.7
3.5.8
3.5.9
3.5.10
3.5.11
3.5.12
3.5.13
3.5.14
3.5.15
3.5.16
3.6
3.6.1
3.6.2
3.6.3
3.6.4
3.6.5
3.6.6
3.6.7
3.6.8
3.7
3.8
CONFIGURING LINUX...................................................................................................................9
Processor type and MMU...................................................................................................................9
C library............................................................................................................................................10
Static vs Dynamic linking................................................................................................................10
Toolchains for Linux 2.6..................................................................................................................10
Toolchains for Linux 2.0..................................................................................................................10
Kernel version..................................................................................................................................10
Configuring the boot loader.............................................................................................................11
Symmetric multi-processing............................................................................................................13
Configuring the 2.6.x kernel............................................................................................................13
LEON processor type.......................................................................................................................13
Symmetric multi-processing support...............................................................................................13
Gaisler AMBA Plug&Play procfs support.......................................................................................14
GRLib APBUART (LEON3)...........................................................................................................14
LEON Serial (LEON2).....................................................................................................................14
GRLib GRETH 10/100/1000...........................................................................................................14
GRLib OpenCores Ethernet MAC...................................................................................................14
SMC 91x Ethernet MAC..................................................................................................................15
GRLib GRETH 10/100/1000 over PCI............................................................................................15
GRLib OpenCores I2C-master.........................................................................................................15
GRLib PCI support...........................................................................................................................15
GRLib GRPS2..................................................................................................................................15
GRLib SPICTRL..............................................................................................................................15
GRLib GRUSBHC...........................................................................................................................16
GRLib GRVGA................................................................................................................................16
GRLib ATA Controller....................................................................................................................17
Configuring the 2.0.x kernel............................................................................................................18
LEON processor type.......................................................................................................................18
GRLib APBUART (LEON3)...........................................................................................................18
LEON Serial (LEON2).....................................................................................................................19
GRLib GRETH 10/100 Ethernet MAC............................................................................................19
GRLib OpenCores 10/100 Ethernet MAC.......................................................................................19
SMC 91C111 10/100 Ethernet MAC...............................................................................................19
GRLib VGA text frame buffer support............................................................................................19
GRLib GRPS2 PS/2 interface/keyboard..........................................................................................20
Applications included in ROMFS....................................................................................................20
Template configurations...................................................................................................................21
4
BUILDING SNAPGEAR................................................................................................................23
5
ADDING CUSTOM APPLICATIONS...........................................................................................24