Digi 9P 9360/9750 manual Skipped

Page 73

Each of these commands has additional help available, which can be viewed by entering help <command>.

All numeric values, which are needed for different commands, are interpreted as HEX values. Entering 30100000 means 0x30100000.To speed up programming, the real size of the image files can be used. In the commands above we have used the maximum size of the partition instead of the actual size of the image files (0x180000 words = 3 Mb)

The following table explains some of the more often used commands:

bootm ADDR ARG

boots image from ADDR passing arguments ARG. ARG is the

address of the initrd image

 

 

 

boot, bootd

boots image via running default bootcmd

 

 

nand bad

prints a list of bad blocks on the current device

 

 

nand erase OFF SIZE

erase SIZE bytes from OFF

 

 

nand erase clean

erase entire NAND Flash

WARNING: after this command, U-Boot has to be reprogrammed

 

 

 

nand read ADDR OFF SIZE

read SIZE bytes from OFF in NAND flash to ADDR. If there are

bad blocks the command stops with an error.

 

 

 

nand read.jffs2s ADDR OFF SIZE

read SIZE bytes from OFF in NAND flash to ADDR. Bad blocks are

skipped.

 

 

 

nand write ADDR OFF SIZE

write SIZE bytes from ADDR to OFF in NAND flash. If there are

bad blocks or writing fails the command stops with an error.

 

 

 

nand write.jffs2 ADDR OFF SIZE

write SIZE bytes from ADDR to OFF in NAND flash. Bad blocks

are skipped.

 

 

 

printenv

prints the environment variables

 

 

saveenv

stores the changed environment variables persistently

 

 

 

sets the environment variable VARIABLE to the given value

setenv VARIABLE VALUE

VALUE. If a semicolon is used, to set different variables, it has to

 

be masked with “\”

 

 

run VARIABLE

executes the commands of VARIABLE like a script

 

 

tftp ADDR image

loads image to ADDR via network using TFTP and the environment

variables “ipaddr” and “serverip”

 

 

 

usb reset

enables and resets the USB interface

 

 

usb scan

scans the bus for attached USB storage devices

 

 

usb tree

shows the connected devices

 

 

7 3

Image 73
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