background image

Demonstrations 

 

uClinux NEEK BSP 

Figure 24 : SLS Player Main Menu 

 

 
6.

 

Select 

Start

 button to start logging the dummy data. The graph will be drawn 

as shown in 

Figure 25

 below. 

Figure 25 : Data Logger - Graph Display 

 

 
7.

 

To view the logged data in table view, select 

Table

 option. See 

Figure 26

 

below. 

 

50 

 

System Level Solutions 

Содержание NEEK Board Support Package uClinux

Страница 1: ...Version 1 5 Date September 2008 System Level Solutions Inc USA 14100 Murphy Avenue San Martin CA 95046 408 852 0067 System Level Solutions India Pvt Ltd Plot 32 Zone D 4 Phase 1 G I D C Estate V U Na...

Страница 2: ...s SLS products are protected under numerous U S and foreign patents and pending applications mask working rights and copyrights SLS reserves the right to make changes to any products and services at a...

Страница 3: ...quick reference Added section 5 4 I2S Application Added section 3 1 1 3 1 2 3 2 1 and 3 2 2 1 3 August 2008 Added Frame buffer console section under 8 2 Quick Reference Added the section 4 5 SLS PS 2...

Страница 4: ...Typographic Conventions uClinux NEEK BSP iv System Level Solutions...

Страница 5: ...rier Anything that must be typed exactly as it appears is shown in Courier type For example cd home uClinux uClinux dist 1 2 Numbered steps are used in a list of items when the sequence of items is im...

Страница 6: ...3 Customization of Kernel Settings 13 2 4 4 Building uClinux zImage 14 3 Downloading and Running zImage 15 3 1 Running zImage on Linux 15 3 1 1 Using JTAG UART Console 15 3 1 2 Using Serial UART Conso...

Страница 7: ...k utilities and NFS Client 35 6 1 Configuring DHCP Client 35 6 2 Static IP Allocation 36 6 3 Mounting NFS on NEEK 36 6 3 1 NFS Server Host Set Up 36 6 3 2 NFS Client NEEK Setup 37 6 4 Configuring inet...

Страница 8: ......

Страница 9: ...SD Card Ethernet PS 2 and I2 S IP uClinux is a port of the Linux for MMU less processor So many different architectures are supported by uClinux It has almost all necessary powers as an embedded oper...

Страница 10: ...tribution having good hardware configuration with at least 2 5 GB free space Altera Development Tools 7 2 or above This uClinux BSP is tested on RED Hat Fedora 7 core but it should work on other Linux...

Страница 11: ...ux NEEK BSP Development Environment 4 Apply power to the NEEK board 5 Connect VGA connector of the monitor to the VGA port of NEEK board if you want to see the images on both the VGA screen and LCD Sy...

Страница 12: ......

Страница 13: ...Ethernet MAC PS2 Controller I2S controller SD card controller 1 bit Nios II F Processor NEEK Development Board Developed by SLS 2 2 Development Environment The Nios II embedded development environment...

Страница 14: ...s the components included in the uClinux NEEK BSP Component Description kernel v2 6 27 gcc v3 4 6 Ethernet driver Included serial driver Included ps2 keyboard Included Touch panel controller Included...

Страница 15: ...the Red Hat documentation for Red Hat Fedora 7 0 core installation and host setup information 2 3 1 Downloading and Unpacking uClinux NEEK BSP To download the uClinux NEEK BSP package visit http slsco...

Страница 16: ...txt and boot_msg txt demos Contains SLS uClinux Demo and Format utility for SD card In each subdirectory you will find other necessary information like quick start guide and readme Ref_design Contain...

Страница 17: ...lean make menuconfig You will see the Kernel configuration main menu as shown in Figure 3 Figure 3 Linux Kenrel Configuration Main Menu Use one of the two main kernel configuration methods to start th...

Страница 18: ...ll return to Kernel configuration menu Figure 3 Configuring Kernel Library Defaults Settings 1 Select the option Kernel Library Defaults Selection from the Kernel Configuration Menu Figure 3 You will...

Страница 19: ...gs DO NOT change any other settings until first successful boot 8 You will be backed to Linux Terminal 2 4 2 Set System ptf Generate a system header file with the sls_neek_bsp_hw_sopc ptf This file is...

Страница 20: ...tion 2 Enter the choice 1 It will ask to select a device to execute kernel from See Figure 9 Figure 9 Select a Device to Execute Kernel From 7 To select DDR SDRAM enter Selection 7 8 Now create romfs...

Страница 21: ...type on the terminal make menuconfig Figure 10 Linux Kernel Configuration Window 2 Select Kernel Library Defaults Selection and press Enter You will see the more kernel configuration settings as show...

Страница 22: ...for saving all changed settings Save all the settings and exit 2 4 4 Building uClinux zImage Once you configured the kernel build uClinux Image by issuing following commands make Here you will get zIm...

Страница 23: ...ilities from Nios2 EDS This description is for JTAG UART console only First configure sof nios2 configure sof home uClinux System files sls_neek_bsp_hw sof To download zImage open the terminal nios2 d...

Страница 24: ...onfiguration Window1 2 Select the Serial Device baud rate and other parameters as shown in Figure 13 Here we have selected Serial device as dev ttyS0 but it may differ as per your development machine...

Страница 25: ...configurations 5 Now download sof and zImage from other terminal and you will see booting on Minicom 3 2 Running zImage on windows 3 2 1 Using JTAG UART Console If you have selected JTAG UART as conso...

Страница 26: ...p_hw sof from home uClinux System files into windows directory 1 Open the HyperTerminal with the following configuration Figure 15 COM1 Properties 2 Download sls_neek_bsp_hw sof file into the NEEK eit...

Страница 27: ...ns To know more about peripherals and hardware available on the NEEK kit refer the NEEK Kit Getting Started User Guide located at BSP Installation Path Docs 4 1 Board Selection From the kernel setting...

Страница 28: ...ce in physical memory map 0x8000000 Physical start address of flash mapping NEW 0 Physical length of flash mapping NEW 2 Bank width in octets NEW 4 2 1 JFFS2 File System Configuration JFFS2 is a log s...

Страница 29: ...rs MMC block device driver MMC SD Host Controller Drivers SLS SD card device driver 4 3 1 VFAT Virtual File Allocation Table VFAT is the part of the Windows 95 and later operating system that handles...

Страница 30: ...s support 850 Default codepage for FAT Iso8859 1 Default iocharset for FAT Native Language Support 4 4 SLS Ethernet IP Driver To include the SLS Ethernet IP Driver in compilation the following options...

Страница 31: ...cedure below to configure the NFS File system File systems Network File Systems NFS file system support Provide NFSv3 client support 4 5 SLS VGA IP Driver To include the SLS VGA IP Driver in compilati...

Страница 32: ...following options should be enabled Device Drivers Character devices SLS I2S support 4 9 Serial UART Driver To include the Serial UART Driver in compilation the following options should be enabled Dev...

Страница 33: ...ra uart ports 115200 Default baudrate for Altera UART ports Device Drivers Character devices Serial support Altera JTAG UART support Altera JTAG UART console support Device Drivers Character devices I...

Страница 34: ...as shown below Build the kernel as explained in the section Development Target 5 1 2 Accessing Flash and JFFS2 Applications To access the Flash and JFFS2 in your application use the required commands...

Страница 35: ...irectory Note Erase entire flash before mounting JFFS2 file system mkdir new Creates a new directory cp new dev mtdx Copies a new directory to mtdx e g cp new dev mtd0 lock dev mtdx Locks all sectors...

Страница 36: ...ted on the SD Card which is supported in windows but is not supported in uClinux To solve this problem please download Quick Reference When you extract Quick Reference you will find following files zI...

Страница 37: ...176026 jpg OK 5 3 Touch Panel Controller TPC Application To access the Touch Panel Controller applications select TPC driver as mentioned in section SLS Touch Panel Controller TPC IP Driver Select the...

Страница 38: ...ssue following command cd mnt mnt ls sample mp3 mnt mp3play sample mp3 Connect the headphone with the board and you will hear an mp3 song now You can play any mp3 song with its name as explained above...

Страница 39: ...e Buffer Display Mouse Touch Screen SLS TPC support Keyboard Have File IO Have BMP Support Have GIF Support Have PNM Support Applications NanoWM Settings Screeen PixType Packed 16bit 5 6 5 NanoX Demos...

Страница 40: ...help_words_here This adds the hello menu option to the userland configuration menu 4 Add following lines to the user Makefile to add the hello directory in compilation dir_ CONFIG_USER_HELLO hello 5...

Страница 41: ...nt directory chgrp chgrp GROUP FILE Change the group membership of each FILE to GROUP chmod chmod mode file dir Change file directory mode chown chown group user file dir Change file directory own cmp...

Страница 42: ...tenv printenv Print environment variables pid pid Shows current process ps ps Shows process information pwd pwd Show current dirctory quit quit Quit current process rm rm file Remove file rmdir rmdir...

Страница 43: ...dress of the board dynamically automatically issue the following command on the target dhcpcd 3 To know the IP address received from the above command and to know the Ethernet port configuration Issue...

Страница 44: ...s mentioned in SLS Ethernet IP Driver and NFS Then go to the user application and select the following Now build the kernel Network Applications portmap BusyBox BusyBox Linux System Utilities mount Su...

Страница 45: ...cessful mounting you can access the home nfs directory on the NFS server host PC using mnt directory on the NFS client NEEK board target 6 4 Configuring inetd telnetd ftpd Server To configure inetd te...

Страница 46: ...ictions apply ftp 4 Now connect Telnet client on HOST to the server running on the Board Here Board IP is configured as 192 168 0 14 so issue telnet 192 168 0 14 Target command shell will be opened 6...

Страница 47: ...explained below make menuconfig The menu configuration window opens System Level Solutions 39 Kernel hacking Kernel debugging Compile the kernel with debug info Save exit and build the zImage Followi...

Страница 48: ...x vmlinux elf Wait for few seconds and following window will get opened Figure 17 main C Now you can debug easily with aid of GUI You can set the break point check the content of registers and see th...

Страница 49: ...ATH environmental variable to toolchain with following command PATH PATH home uClinux Bintools opt nios2 bin export PATH 4 Compile the application with debug symbols and no optimization on your host H...

Страница 50: ...ebug via command or through GUI of insight Insight GUI are quite easy to understand If you want to use command then you can use gdb s for single stepping gdb r to run program 7 3 Debugging User applic...

Страница 51: ...flags elf2flt Click Apply c Select Run Debug Settings under Project properties Run Debug settings dialog box opens Click on New button Select Configuration Type dialog box opens Select C C Local appli...

Страница 52: ...P address of the board same as entered in the Eclipse IDE Here IP is 192 168 0 14 ifconfig eth0 192 168 0 14 14 Now issue the command gdbserver localhost 9999 bin Helloworld 15 It will display Process...

Страница 53: ...tion Selector Demos NEEK Application Selector demos are developed using NEEK BSP The demos are located at Demos NEEK_Application_Selector_Demos directory To run the demos the board should be preconfig...

Страница 54: ...touch the SLS_Player to select it 3 Touch the Load button located on the bottom left corner of the Touch Screen to load the SLS Player application You will see Figure 19 Figure 19 Loading SLS Player...

Страница 55: ...s Figure 20 Running the SLS Player Main Menu 5 Change the SD Card mode as mentioned in dialog box and click OK The SLS Player main menu displays 6 Select MPEG to play MPEG clips See Figure 21 below Fi...

Страница 56: ...owToRun txt located at Demo NEEK_Application_Selector_Demos Multiple_Processing Follow the steps mentioned below to run the SLS uClinux demo 1 Power on the board by pressing the switch SW1 You will se...

Страница 57: ...EK BSP Debugging Kernel and User Applications Figure 23 Running the SLS uClinux Demo Main Menu 5 Select Start Experiment option You will see a blank graph window as shown in Figure 24 System Level Sol...

Страница 58: ...in Menu 6 Select Start button to start logging the dummy data The graph will be drawn as shown in Figure 25 below Figure 25 Data Logger Graph Display 7 To view the logged data in table view select Tab...

Страница 59: ...Kernel and User Applications Figure 26 Logged Data in Table View 8 To change sampling frequency click on Settings button Enter the desired frequency See Figure 27 below Figure 27 Data Logger Settings...

Страница 60: ...d zImgae You will get console on serial UART When the zImage is up and running plug the SD card into the socket NEEK board Issue the following command to format the SD card mkdosfs I F 16 dev hda Othe...

Страница 61: ...d running plug PS 2 keyboard in PS 2 port Now execute the shell command as usual You can execute all shell commands offered by shell and can run various programs and utilities available in the zImage...

Страница 62: ...Demonstrations uClinux NEEK BSP Figure 29 Framebuffer Console View 2 54 System Level Solutions...

Отзывы: