Digi 9P 9360/9750 manual Installing LxNETES, # ifconfig eth0

Page 25

G e t t i n g S t a r t e d

The target network parameters can be changed in U-Boot using the "setenv" command. You can see the IP address of the target by issuing this command:

#ifconfig eth0

Link encap:Ethernet HWaddr 12:34:56:78:9A:BC

inet addr:192.168.42.10 Bcast:192.168.42.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1

RX packets:3453 errors:0 dropped:0 overruns:0 frame:0 TX packets:62 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000

RX bytes:399740 (390.3 KiB) TX bytes:6726 (6.5 KiB) Interrupt:24 Base address:0xc000

In this example, the target device has been given an IP address of 192.168.42.10. You can test the proper functioning of the network by doing a ping to your host machine (Ctrl+C to stop).

#ping 192.168.42.1

PING 192.168.42.1 (192.168.42.1): 56 data bytes

64

bytes from 192.168.42.1: icmp_seq=0 ttl=64

time=10.6 ms

64

bytes from 192.168.42.1: icmp_seq=1 ttl=64

time=0.8 ms

64

bytes from 192.168.42.1: icmp_seq=2 ttl=64

time=0.8 ms

64

bytes from 192.168.42.1: icmp_seq=3 ttl=64

time=0.9 ms

--- 192.168.42.1 ping statistics ---

 

4 packets transmitted, 4 packets received, 0%

packet loss

round-trip min/avg/max = 0.8/3.2/10.6 ms

 

Installing LxNETES

An installation script on the CD will do the installation automatically. However, there are some things the script cannot do such as setting up your DHCP or NFS server.

To install LxNETES, you must mount the CD. Enter the following:

$ mount /media/cdrom

2 5

Image 25
Contents LxNETES User’s Guide ConnectCore 9P 9360/9750 Page Page Page Contents Building the First Project Interfaces & Devices Appendix B Overview IntroductionCross-development environment Template project Linux kernel sourcesExample applications General features FeaturesWhat’s new in LxNETES 3.2? RTC Gpio This is a tip. It contains useful information about a topic Conventions used in this manualAcronyms and abbreviations System Requirements/Prerequisites RequirementsSystem requirements Optional but recommended components Disk spaceTftp daemon Applications & ServicesNFS server JTAG-Booster N E T E S U s e r ’ s G u i d e Getting Started Connecting host PC with development boardIntroduction Seyon MinicomSeyon Settings Connect powerTest Ethernet configuration # ifconfig eth0 Installing LxNETESGuided Installation Manual Installation N u a l Installation Run configure Building the Default ProjectBuilding the First Project Run make Run make installWriting applications Application DevelopmentAdding your own applications Included example applications Using C++Display Proc/cpuinfo contents Debugging applications Choose the right architecture for your target Shell applications busybox Included pre-built applicationsTelnet daemon utelnetd Web server BoaEmbedded Qt Nano-X/microwindowsMem Useful applicationsKernel Development What is a kernel module?Writing kernel modules Writing your own kernel modulesBuilding and loading of kernel modules Add the module to the build environmentIncluded Kernel modules Minimal Advanced Topics Modifying the default projectD i f y i n g t h e d e Fault p r o j e c t Building a custom project Boot Boot processIntroduction Bank # 0 00000000 32 MB ConnectCore 9P 9360/9750NAND-Flash Linux boot methodsUSB NOR FlashMMU Linux boot processV a n c e d T o p i c s Automating the image download Passing arguments to the kernelUpdating the Flash memory Updating a running system manually Updating a running system the easy wayErase the Flash partition Download the new image file to RAMWrite the image to Flash Kernel BootRoot File System Updating a corrupted system using a debugger Root File System Types Download the kernel to RAM via Tftp Set bootargs to be passed to the kernelLaunch the kernel from RAM JFFS2 Copy the kernel to RAM O t F i l e S y s t e m T y p e s N E T E S U s e r ’ s G u i d e Serial interface Interfaces & DevicesI2C interface USB host interfaceSPI interface LCD interfaceCompact flash interface How to set the initial system date and timeSD card interface Real time clock RTCPCI interface Appendix a CD contentsRelated documentation Readme.txt Install.shRelNotes.txt Docs ImagesConnectCore 9P 9360 CC9P9360 SetupConnectCore 9P 9750 CC9P9750 HardwareFlash memory layout Memory layoutsConnectCore 9P 9360 / ConnectCore 9P Sdram memory layoutTextbase N E T E S U s e r ’ s G u i d e Appendix B Boot command referenceO o t c o m m a n d r e f e r e n c e Skipped CC9C CCXP270 UNC90 Example A9M24x0 User keys