Download SnapGear Linux for LEON

Transcript
LINUX-SNAPGEAR
3
5.1
5.2
5.3
Creating an application.....................................................................................................................24
Setting up compilation directives.....................................................................................................24
Including application to file system.................................................................................................24
6
6.1
6.2
6.2.1
6.2.2
6.2.3
6.3
6.3.1
6.3.2
6.3.3
6.3.4
6.3.5
6.3.6
6.3.7
6.4
6.5
6.5.1
6.5.2
DEBUGGING LINUX-2.6 AND APPLICATIONS.......................................................................25
Debugging symbols..........................................................................................................................25
Debugging the kernel.......................................................................................................................25
Configuring GRLIB for kernel debugging.......................................................................................26
Using GRMON.................................................................................................................................26
GRMON Example: debugging the Linux kernel.............................................................................26
Debugging userspace applications...................................................................................................29
Setting up a debugging environment................................................................................................30
GDB introduction.............................................................................................................................30
Starting GDB server on target..........................................................................................................30
Connecting with GDB to gdbserver.................................................................................................31
GDB example usage.........................................................................................................................31
DDD and GDB.................................................................................................................................34
Insight...............................................................................................................................................34
Using NFS to simplify application updates.....................................................................................34
Console output when debugging......................................................................................................35
Redirecting output to NFS share......................................................................................................35
TELNET over TCP/IP network........................................................................................................35
7
7.1
7.2
7.3
7.4
7.5
7.6
7.7
7.8
PS/2 KEYBOARD AND VGA CONSOLE....................................................................................36
Hardware configuration....................................................................................................................36
Configuring the boot loader and main SnapGear options................................................................36
Configuring the Linux kernel...........................................................................................................36
Configuring SnapGear Applications................................................................................................37
Building the kernel and applications................................................................................................37
Setting up /etc/inittab........................................................................................................................37
Building again with inittab and rc.sh...............................................................................................38
Running on hardware.......................................................................................................................38
8
8.1
8.2
8.3
8.4
8.5
ROOT FILE SYSTEM OVER ETHERNET USING NFS.............................................................39
Setting up NFS server on PC............................................................................................................39
Configuring the boot loader and main SnapGear options................................................................39
Configuring the Linux kernel...........................................................................................................40
Building kernel and boot loader.......................................................................................................40
Running on hardware.......................................................................................................................41
9
9.1
9.2
9.3
9.4
9.5
9.6
ROOT FILE SYSTEM OVER ETHERNET USING ATA OVER ETHERNET...........................42
Setting up ATAoE Server................................................................................................................42
Configuring the boot loader and main SnapGear options................................................................42
Configuring the Linux kernel...........................................................................................................43
Configuring the vendor/user applications .......................................................................................44
Building kernel, boot loader, and kinit.............................................................................................44
Running on hardware.......................................................................................................................45
10
10.1
10.2
10.3
RUNNING GRLINUX/SPLACK FROM AN ATA HARD DISK.................................................46
Installing the kernel onto flash.........................................................................................................46
Preparing the hard drive...................................................................................................................46
Running splack.................................................................................................................................47
11
INSTALLING DEBIAN 3.1 ON LEON LINUX............................................................................48