Digi 9P 9360/9750 manual Building a custom project

Page 43

A d v a n c e d T o p i c s

Building a custom project

To create a custom project, that is a project for your custom hardware, first configure the default project. Follow the steps described in "Building the Default Project" up to running configure. Then run:

$ ~/LxNETES-3.2/build$bin/add_platform –b cc9p9360dev custom

$ checking whether make sets $(MAKE)... yes

$ ...

In this example, ConnectCore 9P 9360 dev module (cc9p9360dev)was used as the template project. Substitute the platform that is most similar to the platform you intend to create.

Then create a new build directory and configure for your custom platform:

~/LxNETES-3.2/build$ cd ..

~/LxNETES-3.2$mkdir build_custom

~/LxNETES-3.2$ cd build_custom

~/LxNETES-3.2/build_custom$ ../configure –-enable-platform=custom

...

Check the detected settings are correct in the new run of configure.

Now you can reconfigure your custom kernel by running:

~/LxNETES-3.2/build_custom$ make xconfig

You need QT installed to run make xconfig (Debian package libqt3-mt-dev). If you don't have it, use menuconfig (requiring ncurses, Debian package libncurses5-dev).

You have to run make xconfig in the build directory. Running in other directories (e.g. ~/LxNETES-3.2/build_custom, ~/LxNETES-3.2/build_custom/linux, or ~/LxNETES-3.2/ linux) will fail.

You can build and install the project for the default platform after the previous steps are complete.

4 3

Image 43
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 Web server Boa Included pre-built applicationsShell applications busybox Telnet daemon utelnetdEmbedded Qt Nano-X/microwindowsMem Useful applicationsWriting your own kernel modules What is a kernel module?Kernel Development Writing 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 & DevicesLCD interface USB host interfaceI2C interface SPI interfaceReal time clock RTC How to set the initial system date and timeCompact flash interface SD card interfacePCI interface Appendix a CD contentsRelated documentation Docs Images Install.shReadme.txt RelNotes.txtHardware SetupConnectCore 9P 9360 CC9P9360 ConnectCore 9P 9750 CC9P9750Sdram memory layout Memory layoutsFlash memory layout ConnectCore 9P 9360 / ConnectCore 9PTextbase 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