12.07.2015 Views

ARM DS-5 Using the Debug Hardware Configuration Utilities

ARM DS-5 Using the Debug Hardware Configuration Utilities

ARM DS-5 Using the Debug Hardware Configuration Utilities

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Configuring debug hardware for GDB9.13 Connections to a target OS using NFS (GDB-NFS)This is useful for developing software on deeply embedded systems, and also for debuggingbrand new targets where only <strong>the</strong> CPU and RAM are initially known to work. Connections ofthis type are referred to as GDB-NFS connections. The following figure shows <strong>the</strong> GDB-NFSconnection method:<strong>Debug</strong> hosttelnetrviload<strong>Debug</strong> unit<strong>Configuration</strong>MechanismTargetOSfilesystemtelnetGDB5000, 5001,...Bridged E<strong>the</strong>rnetVirtualE<strong>the</strong>rnetDCC(IP over DCC)ApplicationFigure 9-5 GDB-NFS connectionsFor example, <strong>the</strong> minimum I/O support that Linux requires is a system console and a root filesystem. You can connect <strong>the</strong> console to a GDB command-line console and, with <strong>the</strong> appropriatedriver, you can mount <strong>the</strong> root file system over NFS with debug hardware acting as a bridge.Alternatively, you might have a file system and kernel loaded into memory and booted, and anNFS file system mounted to be shared later.NoteThis network connection is not as fast as an office LAN, because of <strong>the</strong> limited bandwidth ofDCC.9.13.1 ProcedureIf your target has a complete operating system, you can mount a file system over NFS. In thiscase, debug hardware acts as a bridge.To debug a target using a GDB-NFS connection:1. Power-up your target hardware and debug hardware unit.2. Load <strong>the</strong> Linux kernel and uBoot image using rviload. For example:./rviload --host=rvi5 -j1000000 -mVEC -a0 7fc0:uImage 1000000:u-boot.binPress Return. Messages appear showing u-boot loading and running <strong>the</strong> Linux kernel.NoteThis is similar for rviload.exe for MSDOS users.3. Mount <strong>the</strong> directory exported by NFS using <strong>the</strong> following command:~ # mount -t nfs -n client_IP_address:/exported_directory /mnt9.13.2 See alsoTasks• Connections to a target without built-in GDB support (RVI-GDB) on page 9-11• Connections to a target with a GDB stub (Target-GDB) on page 9-13<strong>ARM</strong> DUI 0498F Copyright © 2010-2012 <strong>ARM</strong>. All rights reserved. 9-19ID021112Non-Confidential

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!