Home
MXM-6410 Linux User`s Manual - Embedian Inc, The leading ARM
Contents
1. f force use create a ubuntulHubuntu 2 E MXM 6410 APC 6410 Linux User s Manual v1 2 3 2 2 Set User Password After create a user you can use passwd command to set the password ubuntulubuntu passwd help passwd options LOGIN report password status on all accounts delete the pa force expire display this swuord for the named account the password for the named account xit keep tokens change password only i 15 inactive INACTIVE Set password inactive 4i lack lock the password of the named account MIN DAYS set minimum number of days before password change to MIN 1475 uiet quiet mode repository REPOSITORY change password in REPOSITORY repository F bog WS report password status on the named account unlock the password of the named account warndays WARN DAYS set expiration warning days to WARN DAYS DAYS set maximim number of days before passworc change to DAYS ubuntuHubuntu 3 Example Below is an example to create a user john with home directory and set his password Li ubuntu ubuntu ubuntuldubuntu ubuntu ubuntu sudo passwd john Enter new UNIX password Retype new UNIX password passwd password updatec ubuntuld ubuntu 6 sudo userdel r john sudo useradd m jo
2. DWORD ninBufferSize LPVOID IpOutBuffer DWORD nOutBufferSize LPDWORD IpBytesReturned LPOVERLAPPED IpOverlapped It decodes the stream in the LINE or RING BUF Parameters hDevice IN HANDLE returned by CreateFile function dwloControlCode IN 4 DEC EXE IOCTL MFC H263 DEC EXE IOCTL MFC H264 DEC EXE IOCTL MFC VC1 DEC EXE lolnBuffer IN Pointer to DEC EXE ARG structure ninBufferSize IN sizeof MFC DEC EXE IpOutBuffer OUT NULL nOutBufferSize OUT 0 loBytesReturned OUT NULL IpOverlapped IN NULL Returns the operation completes successfully the return value 15 nonzero the operation fails or is pending the return value is zero MXM 6410 APC 6410 Linux User s Manual v1 2 IOCTL_MFC_GET_LINE_BUF_ADDR IOCTL_MFC_GET_RING_BUF_ADDR IOCTL_MFC_GET_FRAM_BUF_ADDR BOOL WINAPI DeviceloControl HANDLE hDevice DWORD dwloControlCode LPVOID DWORD ninBufferSize LPVOID IpOutBuffer DWORD nOutBufferSize LPDWORD IpBytesReturned LPOVERLAPPED IpOverlapped Description obtains the address of the LINE BUF RING BUF FRAM_ BUF Parameters hDevice IN HANDLE returned by CreateFile function dwloControlCode IN GET LINE BUF ADDR IOCTL GET RING BUF ADDR IOCTL MFC GET FRAM BUF ADDR lolnBuffer IN Pointer to GET BUF ADDR ARG structure ninBufferSize IN sizeof MF
3. Replace mysql name with actual service name Note It is not recommended to boot into text mode by using update rc d remove and update rc d defaults update rc d foo defaults will not put foo back into its previous start up slot but puts it at 520 by braindead default It s the oldest surviving bug in UNIX history For gdm this can cause real grief because it puts it before processes that should have completed start up before gdm goes about its merry ways 3 13 2 GDM Auto Login To allow Ubuntu GDM Auto Login you need edit gdm conf and add the user you want to auto login Lets assume the user that you would like to auto login is ubuntu ubuntulubuntu sudo vim etc cgcdm cdgqdm contf At line 48 49 AutomaticLodginEnable true AutomaticLodgin ubunt Heboot the device will automatically login into the Ixde desktop 3 13 3 Auto Start a Program under LXDE To auto start a program under LXDE users can edit etc xdg Ixsession LXDE autostart file and add the program that you would like to auto start at the end of this file Let s take the firefox program for example MXM 6410 APC 6410 Linux User s Manual v1 2 dlxpanel profile LEDE lHpcmanfm d Hfirefox width 800 height 460 After reboot you will see the Firefox program auto start at the top of the panel Note If users don t even need LXDE to auto start the program you will need to modify the etc alternatives x session manager to auto start
4. 50000000 Start address is 0 0 Image size of bootloader will be below 0x40000 HEX Note Uboot contains specific hardware information and is well configured by Embedian It is usually no need to modify Unless necessary or you are an experienced engineer it is not recommended to update uboot Wrong operation will cause the system not booting anymore Next example shows how to transfer and write Linux kernel The file name is 21 Again we tftp zimage to DRAM first by the following command tfto 50000000 zimage Temporary address is base address of DRAM 0 50000000 Write the 21 image to the by using write command The same you will need to erase first erase 0x40000 0x1c0000 write OX50000000 0x40000 0 1 0000 Temporary address is base address of DRAM 50000000 Start address is 0x40000 Image size zlmage will be below 0x1c0000 HEX MXM 6410 APC 6410 Linux User s Manual v1 2 After writing u boot and kernel images to NAND flash the last step is to write NAND root file system nand6410 img image Repeat the same steps first we tftp the nand img image to DRAM tftp 50000000 nand6410 img Temporary address is base address of DRAM i e 0 50000000 Write the nand6410 img image to the NAND by using following nand write command You still need to erase first erase 0 200000 0 7 00000 wr
5. 57 3 13 1 Boot Ubuntu 9 04 into text mode instead of graphic mode 57 SE O DM AOLO 58 3 13 3 Auto Start Program under LXDE 58 3AF PAS SU PILE SY IN Pc cm 59 PL NE m 59 Idi LA 1 60 3 14 3 As a small root file system ss 62 516 CROSS TOOL CHAIN 62 LO CUI 63 CHAPTER 4 USE MXM 6410 APC 6410 HARDWARE MFC MULTIMEDIA FUNCTION 65 4 1 MPEG4 DECODER FOR MPLAYER AT DEVICE 65 4 1 1 Mplayer running on top GDM and 555555 55 0 65 4 1 2 Mplayer Running on top of frambuffer directly 67 dO MEC DEVICE DRIVER S AP au a eee E ee Go on co 67 69 CTO COON TT 70 a 71 4 2 4 Control Codes for DeviceloControl cesses eene eene nnns 12 4 2 5 Data Structu
6. MXM 6410 APC 6410 Please press any key to enter uboot command prompt Execute the command printenv You set and add environment parameter of MXM 6410 APC 6410 using setenv saveenv command as below setenv ipaddr XXX XXX XXX XXX setenv serverip XXX XXX XXX XXX saveenv Following shows the example for setting up the parameters EXAMPLE ipaddr 192 168 1 121 serverip 192 168 1 2 Note Make sure that the ipaddr is for MXM 6410 APC 6410 and serverip is for Linux PC are in the same network domain After you configure the network for Host PC and MXM 6410 APC 6410 the LED of the Ethernet jack will be on It shows that the network connection has been successfully done MXM 6410 APC 6410 Linux User s Manual v1 2 A 2 2 4 Transfer and Write Image by write Command After setting up the tftp server and IP address of devices users can start transfer and write images using u boot tftp and write command It is necessary to download to DRAM first before writing to NAND The following command shows how to transfer u boot bin images to DRAM tftp 50000000 u boot bin Temporary address is base address of DRAM i e 0 50000000 Write the u boot bin image to the NAND by using following nand write command You need to erase first nand erase 0x0 0x40000 write 0x50000000 0 0 0 40000 Temporary address is base address of DRAM
7. This filesystem will be automatically 35 mounts or 180 days whichever comes first c or to override rootlapc 7110 4 Mount the partition 1 of the SD card as mnt rootdape7110 mount t ext3 dev mmci mnt 1 110 18 5 Changing directory to rootdape7110 cd mnt 6 Ftp the rootfs tarball into this directory Lets assume that the root file system is located at 192 168 1 10 server root iapc7110 mnt ftp 192 168 1 10 Connected to IS8Z l859 1 1l va FIPA 5 13 5 di eis specify the password Password Login successful Remote system type is UNIX Using binary mode to transfer files ftp get ubuntu 20090701 tar gz 200 PORT command successful Consider using 150 Opening BINARY mode data connection for ubuntu z 240987447 By eS 226 File send OE 7 Extract this tarball You might need to set the system time by date command first roothape ilo tar 8 remove the tarball 0 rm ubuntu 9 cd MXM 6410 APC 6410 Linux User s Manual v1 2 10 umount mnt 11 Reboot 0 mnt amp 0 umount mnt 0 shutdown now E Why You will see the gdm login screen appear on the LCD screen 3 14 3 As a small root file sys
8. icons and fonts used by applications easily Leafpad text editor Xarchiver archiving GPicView image viewer GPicView features lightening fast startup and intuitive interface LXTerminal terminal emulator LXTask task manager system monitor LXNM lightweight network connection helper daemon for LXDE supporting wireless connections Linux only Openbox window manager and obconf LXRandr screen manager manages screen resolution and external monitors LXShortCut an easy way to edit application shortcuts LXMusic minimalist xmms2 based music player LXDE Common the default settings configuration file for integrating the different components of LXDE Common manages the system behavior and functions to integrate icons and artwork GikNetCat Graphic User Interface for netcat provides system functions as a computer networking utility for reading from and writing to network connections on either TCP or UDP Embedian Add on Components MXM 6410 APC 6410 Linux User s Manual v1 2 is the GUI of Mplayer It is integrated by Embedian to support the hardware MFC from CPU Details can be found at section 4 1 Calibrate TouchScreen is a tool to calibrate the touch screen 3 12 Calibration and Touch Screen some applications use touch panel as input device If that is the case users need to install the calibration program that Embedian provided first 3 12 1 Inst
9. single board computers This guide is mainly focus on the topic related to Embedian s products This guide is not an official Ubuntu documentation But still a good reference for those people who are interested in Ubuntu 9 04 3 1 Booting When power on the uboot will initialize the low level hardware and bring the Linux kernel to DDR RAM After that the Linux kernel will take over the system The linuxrc is a program that is started in the start up stage of the kernel prior to the actual boot process This allows you to boot a small modularized kernel and to load the few drivers that are really needed as modules linuxrc assists in loading relevant drivers manually The use of linuxrc provides with the choices to boot into a small root file system in NAND or the Ubuntu 9 04 system in SD card The default is set to boot into SD card with Ubuntu 9 04 Root Filesystem Selection 1 SD Card 2 HAND Please enter your choice The NAND file system is in ext3 format and can be served as a disk based rescue system or for some simpler applications that don t need a SD card at all For more details in regarding to NAND file system users can refer to section 3 14 you have LCD attached users should be able to see the following gdm login screen showing on your LCD MXM 6410 APC 6410 Linux User s Manual v1 2 LI Serres 2 MXM 6410 APC 6410 Linux User s Manual v1 2 3 2 Default root pass and user The default root password is m
10. CEUE armel BOURFCE 2 Version 1 0 1 Qubuntul Replaces Provides quaet Depends libart z 0 2 Z 3 19 0 0 1 20 0 libbonobBoz u 45 2 1 i libbonobouisz 2 15 1 Lines t 2 4 libcalros 1 2 4 Libdbus 3 gt 1 0 2 libdbus glib 1 z 0 78 libfontcontigl gt 2 4 0 libtreety EE fete key 2s 85 13 81 Libugladesz L na eh H 0 16 0 Libngnomed O gt 1 21 libgnomecanvasz gt 2 11 1 libgnomeui Goode Ot librnnomewrss gt outed libmekz 0 LEE 8 2 1 4 0 9 91 libnotirtvili gtkz l10 lib orbit2 1 8 14 101 libp ngai U 0 gt 1 12 01 libpixman i 0 libpnglz gt 1 2 13 31 Libpoped 2 2 1841 libxll 5 libnxcb render acilu D da libxcb renderu IIEWERHI LEE 1 4 Se at LIAE NAE de 2 10 12 Wet 1 10 Conflicts epinhany extension qgwudet lt lt 0 937 11 Filename pool universe g gwagetz cgwget 1 0 1 Oubuntul armel deh Size 2306510 11 0 0 5 5 SH 1 SHAZ56 S43zcrfrbl fd3sdzrfs5f751710zZe451ebdi5cf6d4395703ce8eS8al 733a8di871d259e44 Description GNOME front end for wget Gugqet offers GNOME front end to the popular wget application with enhanced features Such as systray icon multiple do
11. CPU MFC hardware codec into Mplayer and natively supports MPEG4 DivX DX50 and MPEG4 Xvid standard Any video files that generated by a software encoder that supports these standards can be decoded by the hardware decoder supported Mplayer 4 1 1 Mplayer running on top of GDM and LXDE At Start gt Audio amp Video Click Mplayer Rind roots desktop fubuntu 1 1 at E MXM 6410 APC 6410 Linux User s Manual v1 2 Add the file to the play list roots desktop IE tr cun PN Directory tree Files E ffl Xauthority ab Piejie bashrc drmrc gksu lack sudo as successful viminfa xsession errars Selected files gt root d sbin d seliriux FILE B 00 00 00 00 00 00 0 0055 31 0 MPlayer MPlayer Video Playlist MXM 6410 APC 6410 Linux User s Manual v1 2 4 1 2 Mplayer Running on top of frambuffer directly The previous example of Mplayer is running on top of X Mplayer can also be played directly on top of frame buffer If that is the case ubuntulubuntu etc sudo fetc init d gdm stop sudo password for ubuntu stopping GNOME Display Manager mplayer qui
12. Manual v1 2 Appendix MXM 6410 APC 6410 Firmware Update This Chapter details how to update firmware in NAND flash Section include Firmware Architecture e Update Firmware from Uboot MXM 6410 APC 6410 Linux User s Manual v1 2 Appendix MXM 6410 APC 6410 Firmware Update This Chapter details firmware upgrade for MXM 6410 APC 6410 The firmware flash includes uboot kernel zimage and nandfs image 1 Firmware Architecture Figure A 1 shows the firmware architecture of Linux in NAND Ox0 u boot Ox400C0 kernel zim age 0 1 0000 200 00 5 0 40000 1 0276800000 128MB ash Figure 1 Firmware Architecture of Linux The u boot starts from address 0 0 The Linux kernel zlmage starts from NAND address 0x40000 The NAND filesystem is a small file system for rescue purposed and load the minimum set drivers and starts from the NAND address 0x200000 Users need a SD card or hard drive with root file system installed to boot up the complete Ubuntu 9 04 system The will be described at Backup and Restore Root File Systems document Users can update the firmware under u boot The Embedian factory default is fimware pre installed Unless necessary Embedian doesn t recommend you MXM 6410 APC 6410 Linux User s Manual v1 2 update firmware especially uboot since the system might not boot anymore if you did wrong operation If you develop your own u
13. address of devices users can start transfer and write images using u boot tftp write command It is necessary to download to DRAM first before writing to NAND The following command shows how to transfer u boot bin images to DRAM tftp 50000000 u boot bin Temporary address is base address of DRAM i e 0 50000000 Write the u boot bin image to the NAND by using following nand write command You need to erase first nand erase 0x0 0x40000 write 0x50000000 0 0 0 40000 Temporary address is base address of DRAM 50000000 Start address is 0 0 Image size of bootloader will be below 0x40000 HEX Note Uboot contains specific hardware information and is well configured by Embedian It is usually no need to modify Unless necessary or you are an experienced engineer it is not recommended to update uboot Wrong operation will cause the system not booting anymore Next example shows how to transfer and write Linux kernel The file name is zZimage Again we tftp zimage to DRAM first by the following command tfto 50000000 zimage Temporary address is base address of DRAM 0 50000000 Write the zimage image to the by using write command The same you will need to erase first erase 0x40000 0x1c0000 write OX50000000 0 40000 0 1 0000 MXM 6410 APC 6410 Linux User s Manual v1 2 Temporary address is base address
14. boot and kernel you will need to do that Following tells howto update firmware from uboot command prompt A 2 Update Firmware from Uboot You could use u boot tftp command to download u boot Linux kernel and NAND root file system Below we will tell you how to do this under Windows and Linux PC environment First you need to set up a tftp server A 2 1 Windows Environment First up DNW program or Windows Hyperterminal and set up the serial port 115200 8N1 A 2 1 1 Setup TFTP Server Users need to install server on Windows You can download the freeware and install to your Windows PC in the tftpboot directory Copy the uboot bin zimage and nand img into this directory Close your anti virus software like PC cillin Or close port 69 You can set and add the environment parameter of device using setenv saveenv command as below setenv ipaddr XXX XXX XXX XXX setenv serverip XXX XXX XXX XXX saveenv Following figure shows the example for setting up the parameters EXAMPLE 192 168 1 2 Serverip 192 168 1 121 Note MXM 6410 APC 6410 Linux User s Manual v1 2 Make sure that the for MXM 6410 APC 6410 and serverip for Windows PC are in the same network domain After setting up the IP address and wire everything right you could start the download A 2 1 2 Transfer and Write Image by TFTP and nand write Command After setting up the server and IP
15. lt address gt dt adds lt address gt tunnel ne 38521 outtill NN keepalive lt gt hw lt address gt metric lt NN gt mtu lt gt TItrallerz allmulti multicast 1 promisc men Start 2 io addr cHII irg lt NN gt media lt type gt tiqueuelen lt NN gt dynamic up down w s lt interface gt lt AF gt xprefixlen eprefixlen A xHW Hardware Type List of possible hardware types loop Local Loopback slip Serial Line IP cslip Vd Serial Line IP slip5 i6 bit Serial Line IP cslip6 Vd bhit Serial Line IP adaptive Adap strip i Metricom Starmode IP ash Ash ether Ethernet tr 16 4 Mbps Token Ring tr 1674 Mbps Token Ring Mew axz5 25 netrom NET ROM rose ROSE tunnel IPIP Tunnel ppp Point to Point Protocol hdle iCisco HDLC lapb LAPB arcnet ARCnet dlci Frame Relay Trad Frame Relay Access Device sit IPv5 in IPv4 j fddi Fiber Distributed Data Interface hippi irda IrLAEP ec fEConet x25 generic X 22 Generic EUI BO 4 lt iF iddress family Default inet ist of possible address families unix UNIX Domain inet DARPA Internet inet axz5 A X 25 netrom NET ROM rose ROSE ipx Novell IPE ddp ippletalk PDP ec Econet a
16. on top of frame buffer dev fb0 They don t even need X11 running on the device Or some server applications don t need to have a graphic interface at all To boot into text mode or to disable a service such as GDM from being started in a given runlevel e g 2 which is Ubuntu s default runlevel is like so ubuntulhubuntu sudo ete rez d S3 0gdm etec rcez d EY Occdm ubuntuldubuntu 5 sudo shutdown now rE After reboot you will see the text mode booting into the LCD screen You can reverse this file back to boot into graphic mode again If you would like launch the for example mplayer application under the text mode you can ubuntulubuntu mplayer quiet fa wo fhdev And you can write a simple script to let this program to startup automatically at boot If you would like to stop the X11 and X application at runtime you can ubuntulubuntu etc sudo etc init d dgdm stop sudo password for ubuntu ubuntu ubuntu ete make your services startup at boot Ubuntu Linux use update rc d command to install and remove System V style init script links Let us take the mysql service for example Turn on or start service called mysql on boot ubuntulubuntu etc sudo update rc d mysql defaults Remove service called mysql on boot uibuntulubuntu etc sudo update rc d mysql remove MXM 6410 APC 6410 Linux User s Manual v1 2 sudo update rc d mysql remove
17. paths File transfer protocols Serial port setup Modem and dialing Screen and keyboard Save setup as dfl Save setup as Exit Exit from Minicom MXM 6410 APC 6410 Linux User s Manual v1 2 Push Exif key to exit from the setting mode Currently the set points are stored to the file etc minirc dff Figure A 7 Exiting Minicom Setup localhost File Edit View Terminal Go Help configuration Filenames and paths File transfer protocols Serial port setup Modem and dialing Screen and keyboard Save setup dfl Save 5 Exit from Minicom MXM 6410 APC 6410 Linux User s Manual v1 2 To quit from Minicom please press Ctrl A and then Z at last push Q key Then Selecting Yes Minicom is quitted Figure 4 6 Resetting from Minicom roote localhost home test File View Terminal Go Help Welcome to minicom 2 00 0 OPTIONS History Buffer F key Macros Search History Buffer Il n Compiled on Sep 12 2003 17 27 02 Press CTRL A Z for help on special keys Leave without reset Yes No MXM 6410 APC 6410 Linux User s Manual v1 2 A 2 2 2 TFTP server To use tftp server program you have to setup your computer by executing the following command root localhost root setup You can see the Text Mode Setup Utility as shown below Figure A 9 Text Mode Setup Utilities ivl 2 root localho
18. so that you could see the messages from console this section will explain how to setup Minicom Desktop Linux has Minicom program for serial communication It is used for command prompt of u boot bin or shell prompt of embedded Linux set up the values before using Minicom program To execute minicom on setting mode root localhost root minicom s Figure A 2 Minicom Setup cv root localhost File Edit View Terminal Go Help configuration Filenames and paths File transfer protocols Modem and dialing Screen and keyboard Save setup dfl Save setup as Exit Exit from Minicom MXM 6410 APC 6410 Linux User s Manual v1 2 Please select Serial port setup Push A key for setting Serial Device then write serial port which is connected to MXM 6410 APC 6410 If you are using COM write dev ttySO if COM2 write dev ttyS7 Figure 4 3 Serial Port Setup root localhost Edit View Terminal Go Help Serial Device dev ttyso Lockfile Location Callin Frogram Callout Program Bps Par Bits 115200 8 1 Hardware Flow Control No Software Flow Control No Change which setting Screen and keyboard Save setup as dfl Save setup as Exit Exit from Minicom MXM 6410 APC 6410 Linux User s Manual v1 2 Push key for setting up Bps Par Bits Push to set up bps to 115200 Push to set up Data bits to 8 Push W to se
19. the program and comment out the LXDE auto start script 3 14 NAND Root File System The inuxrc file in the NAND flash determines where the root file system should boot into This section mainly introduces the NAND file system 3 14 1 linuxrc The inuxrc is a program that is started in the start up stage of the kernel prior to the actual boot process This allows you to boot a small modularized kernel and to load the few drivers that are really needed as modules inuxrc assists in loading relevant drivers manually The use of inuxrc provides with the choices to boot into a small root file system in NAND or the Ubuntu 9 04 system in SD card If no press anything the default is set to boot into SD card The inuxrc file is located in the NAND flash User can edit it if they purely want to use NAND flash as their main root file system There are two ways to access inuxrc First if user boot into SD Ubuntu file systems the NAND flash will be mounted automatically And user can just access the file that is located at nand directory ubuntudubuntu 5 cd hand HHuntulubuntu nands ls uibuntuldubuntu nands MXM 6410 APC 6410 Linux User s Manual v1 2 second users can boot in NAND flash first by pressing 2 NAND during the booting process The root pass is 7110 by default The inuxrc file is located at directory The NAND file system is also an EXT3 file system Users can edit the file just you do in any Linux PC
20. to let users quickly pick up how to setting up the system Section include System Setup e Jumper Setting e Firmware architecture in NAND flash MXM 6410 APC 6410 Linux User s Manual v1 2 Chapter 2 System Information This Chapter gives an introduction of hardware information so that users can quickly set up the system 2 1 Starting EVKM MXM 6410 Before starting please check the jumper to make sure that the jumper configuration is matching your demand Figure 2 1 shows the steps Figure 2 1 Starting EVKM MXM 6410 Press the 6410 module and screw it tightly Connect the console port UARTO 20 on figure 2 3 to the console cable then to a null modem cable and then connect to your PC Open up the DNW 0 6c Click Connect at Serial Port tab or Hyper Terminal and set the baud rate to 115200 8N1 no hardware flow control Connect the backlight invert board power to Connect the LCD FPC Cable Top Contact or LVDS cable Connect the power cable to power board Boot the device and you should be able to see the Ubuntu gdm login prompt on the LCD screen The default user is ubuntu and password is MXM 6410 APC 6410 Linux User s Manual v1 2 mxm6410 If login from the console the root pass is also mxm6410 2 2 Jumper Setting This section gives details of the hardware features of the EVKM MXM 6410 These include a description of the switches jumper settings connectors and con
21. 6410 APC 6410 Linux User s Manual v1 2 2 3 Connectors Onboard connectors link the EVKM MXM 6410 to external devices such as LCD panel a keyboard an audio headset or SD SDIO and to external communication such as 802 11 USB or Ethernet link The table below lists the function of each of the board s connectors Connector Location Figure 2 3 Connector Location FIM BED T AN com MXM 6410 APC 6410 Linux User s Manual v1 2 List of Connectors Table 2 6 List of Connectors SATAConnector SSS Power Connector LCD Backlight Inverter Connector 0 For more details users can refer to the hardware manual MXM 6410 APC 6410 Linux User s Manual v1 2 Chapter Using Ubuntu Jaunty Jackalope This Chapter details how to use the Ubuntu Linux of MXM 6410 computer on module or APC 6410 single board computer Section include Booting Default root pass and user Network Setting Manually add repositories Install Software Packages FTP Client FTP Server Telnet SSH Server VNC server MXM 6410 APC 6410 Linux User s Manual v1 2 GDM LXDE Calibration and Touch Screen Kiosk Mode NAND Root File System Cross Toolchain MXM 6410 APC 6410 Linux User s Manual v1 2 Chapter 3 Using Ubuntu Jaunty Jackalope This chapter gives an introduction in regarding to use the Ubuntu Linux 9 04 Jaunty Jackalope system on MXM 6410 computer on module or APC 6410
22. C GET BUF ADDR IpOutBuffer OUT NULL nOutBufferSize OUT 0 loBytesReturned OUT NULL IpOverlapped IN NULL Returns If the operation completes successfully the return value is nonzero If the operation fails or is pending the return value is zero MXM 6410 APC 6410 Linux User s Manual v1 2 4 2 5 Data Structure for Passing the IOCTL Arguments 4 2 5 1 MFC_ENC_INIT_ARG int in_ bitrate IN Encoding parameter Bitrate kbps int in_gopNum IN Encoding parameter GOP Number interval of int in_frameRateRes IN Encoding parameter Frame rate Res int in frameRateDiv IN Encoding parameter Frame rate Divider 4 2 5 2 EXE ARG MFC ENC EXE ARG OUT Return code int out encoded size OUT Length of Encoded video stream 4 2 5 3 DEC INIT ARG MFC DEC INIT ARG int ret code OUT Return code intin strmSize IN Size of video stream filled in STRM BUF int out width OUT width of YUV420 frame int out height OUT height of YUVA20 frame 4 2 5 4 MFC DEC EXE ARG MFC DEC EXE ARG Return code IN Size of video stream filled in STRM_BUF MXM 6410 APC 6410 Linux User s Manual v1 2 4 2 5 5 MFC_GET_BUF_ADDR_ARG MFC_DEC_INIT_ARG Return code intin usr data IN User data for translating Kernel mode address to Usermode address int out buf addr OUT Buffer address OUT Size of buffer address MXM 6410 APC 6410 Linux User s
23. MXM 6410 APC 6410 Linux User s Manual v1 2 User s Computer on Module COM Ports Two USB Hosts LCD Ethernet SD MXM 6410 Ubuntu Linux 9 04 Jaunty Jackalope User s Manual v1 2 MXM 6410 APC 6410 Linux User s Manual v1 2 Table of Contents CHAPTER 1 MXM 6410 APC 6410 UBUNTU LINUX JAUNTY JACKALOPE FEATURES 5 el BOARD SUPPORT PACK AGE DS D anna Pala Becr dp a ee detente 5 1 c 5 I S D POT SOFI WARE ARR CENE IUE DU ee ENIM PEN 7 SPECIAL PEATURES T Hm 21 5 4 Eaa 23 2 Je STARTING E V KM MAM 04 ta Rai Boon aepo UN gU 23 PADS Siu CR ODE 24 2 CONNECTOR Girer 29 CHAPTER 3 USING UBUNTU JAUNTY JACKALOPE ecce eee ee eee eee eere noe ee eee eterna 33 OO M 33 SZ DEPAUL ROOF TA FIND USER et ne 35 T 35 WCE ieu D Rue diei 36 DETE O U A 37 UE 37 3 3 1 Configure Network Configuration at Boo
24. S485 half duplex JP3 5 6 RS422 RS485 full duplex Note jumper set to be RS232 the RS232 connector will be CN20 UART1 header If JP3 jumper set to be RS422 and RS485 the connector will be CN22 header User can only choose one RS232 or RS422 or RS485 at the same time S1 Location on Board D6 Table 2 5 Reset Button Table 2 5 Reset Button LE GT Press Button Reset CPU and IO Release Immediately Setting Jumpers You configure your board to match the needs of your application by setting jumpers A jumper is the simplest kind of electric switch It consists of two metal pins and a small metal clip often protected by a plastic cover that slides over the pins to connect them To close a jumper you connect the pins with the clip To open a jumper you remove the clip Sometimes a jumper will have three pins labeled 1 2 and 3 In this case you would connect either pins 1 and 2 or 2 and 3 MXM 6410 APC 6410 Linux User s Manual v1 2 1 2 3 Open Closed Closed 2 3 The jumper settings are schematically depicted in this manual as follows 12 3 2 Closed Closed 2 3 pair of needle nose pliers be helpful when working with jumpers If you have any doubts about the best hardware configuration for your application contact your local distributor or sales representative before you make any change Generally you simply need a standard cable to make most connections MXM
25. all the Calibration Program the tarball ts_upgrade tar gz that Embedian provided with to the device tmp directory and extract it Execute the install sh command tmp ls CS up grade gz tar ts upgrade tar gz embedian mxme dzi l touchscereen cdeb install sh roaot iubuntu tmpis install sh Reading package lists Done Building dependency tree Reading state information Done The following packages will REMOVED xaerver xorg input all xserver xorg input synaprtics upgraded 0 newly installed 2 to remove and 14 not upgraded After this operation z54kB disk space will be freed t Do you want to continue Y n Y The calibration program installation is done now Reboot and you will be asked to calibrate the device first now 3 12 2 Calibration Program The device will only ask you calibrate at first boot After the first calibration the calibration value will be stored And the next boot will check if this value existing or not If yes the device will just use this value To re calibrate the device user can either use the following command MXM 6410 APC 6410 Linux User s Manual v1 2 ts_calibrate Or pending at the touch screen for a while when booting 3 13 Kiosk Mode 3 13 1 Boot Ubuntu 9 04 into text mode instead of graphic mode some users applications are relatively simple and they develop their GUls directly
26. an open MFC s handle IN hDevice HANDLE returned by CreateFile function Returns If the function succeeds the return value is nonzero If the function fails the return value is zero MXM 6410 APC 6410 Linux User s Manual v1 2 4 2 4 Control Codes for DeviceloControl IOCTL MFC MPEG4 DEC INIT IOCTL MFC H263 DEC INIT IOCTL MFC H264 DEC INIT IOCTL MFC VC1 DEC INIT Syntax BOOL WINAPI DeviceloControl HANDLE hDevice DWORD dwloControlCode LPVOID IpinBuffer DWORD ninBufferSize LPVOID IpOutBuffer DWORD nOutBufferSize LPDWORD IpBytesReturned LPOVERLAPPED IpOverlapped It initializes the MFC s instance with the configure stream Parameters hDevice IN HANDLE returned by CreateFile function dwloControlCode IN MPEGA DEC INIT H263 DEC INIT H264 INIT IOCTL MFC VC1 DEC INIT lolnBuffer IN Pointer to DEC INIT ARG structure ninBufferSize IN sizeof MFC DEC INIT ARG IpOutBuffer OUT NULL nOutBufferSize OUT 0 loBytesReturned OUT NULL IpOverlapped IN NULL Returns the operation completes successfully the return value 15 nonzero the operation fails or is pending the return value is zero MXM 6410 APC 6410 Linux User s Manual v1 2 IOCTL_MFC_MPEG4_DEC_EXE IOCTL_MFC_H263_DEC_EXE IOCTL_MFC_H264_DEC_EXE IOCTL MFC VC1 DEC EXE Syntax BOOL WINAPI DeviceloControl HANDLE hDevice DWORD dwloControlCode LPVOID
27. apt get upgrade To simulate an update installation i e to see which software will be updated we type ubuntulubuntu sudo apt get s upgrade MXM 6410 APC 6410 Linux User s Manual v1 2 3 5 10 Smart software update apt get dist upgrade The dist upgrade command has the same effect as the upgrade except that a smart management is used in changes of dependencies in new versions conflict resolution and discarding less important packages for more important ones for example ubuntuldubuntu sudo apt get dist upgrade MXM 6410 APC 6410 Linux User s Manual v1 2 3 6 FTP Client The is default included in the root file system You might use apt get install to use a dedicated ftp client To use the tfo FTP client assuming the remote host IP address is 59 124 115 43 and the user is eric ubuntulubuntu 2 lftp u eric 59 124 115 43 Password lftp 1 59 124 115 43 gt bye ubuntuld ubuntu 6 You can use put lt filename gt to put transmit a file from local device to remote server and get lt filename gt to get a file from remote server to local device and use bye to exit the command mode You can also use wget command to get the file from webserver MXM 6410 APC 6410 Linux User s Manual v1 2 3 7 FTP Server The ftp server is not included in the root file system by default However it is very easy to have one In this section we would like to take the vsftpd server as an examp
28. e eth inet dhcp ace t static 192 158 1 121 dire ER RE ARE T 15 fl 192 168 1 25 4 After modified this you reboot the device or just use the etc init d networking restart command to restart the networking configuration MXM 6410 APC 6410 Linux User s Manual v1 2 ubuntu ubuntui sudo etc init d networking restart Det onfisuring network interfaces Internet Systems Consortium DHCP yright 2004 2008 Internet Consortium 5 reserved For info please visit http z wir isc org sw idhcp Listening LPFf ethO 00 41 33 1f 05 ef Sending on LFPFfethO 00 41 33 1f 05 ef mending Socket fallback Inte met Systems Consortium DHCP Client V3 1 1 ee sht 2004 2008 Internet Systems Consortium 5 reserved For info please visit http uwww isc ors sw dhen L istening on LPF eth 00 pe 05 mending 41 22 1 05 sending on socket fallhae k DHCPDISCON ER eth 200 200 DT inteival D DHCP UFFER of 192 168 1 44 from 192 168 1 254 DHCPREQUEST of 192 169 1 44 on ethO to 222 222 255 455 port DHCPACk of 192 168 1 44 from 192 168 1254 bound to 192 168 26877 penewal in 507534 OF ubuntuliuhuntu You can see the device IP has been assigned as 192 168 1 44 after network restart Note At development stage
29. esources it also saves energy We don t tightly integrate every component of LXDE Instead we try to make all components independent so each of them can be used independently with few dependencies More about LXDE the Ixde org website theL XDE blogs in the LXDE forum LXDE Components PCManFM is a fast and lightweight file manager with features like Drag amp Drop support tabbed browsing Similiar to Firefox Built in file searching utility fast load of large directories File association support Default application Thumbnail for image files Bookmarks support MXM 6410 APC 6410 Linux User s Manual v1 2 correct handling of non UTF 8 encoded filenames and more LXLauncher easy mode application launcher LXPanel desktop panel the panel can generate menu for installed applications automatically from desktop files It can be configured from GUI preference dialog and there is no need to edit config files The component provides a Run dialog with autocompletion LXSession session manager The LXSession manager is used to automatically start a set of applications and set up a working desktop environment Moreover the session manager is able to remember the applications in use when a user logs out and to restart them the next time the user logs in LXSession Edit window manager used LXDE can be changed ability to turn on disabled applications LXAppearance theme switcher You can change the theme
30. et wo fhdev test avi Note quite parameter is highly recommended fs means full screen vo to fodev means to show video on top of frame buffer directly Section 3 13 1 also has an example to demonstrate howto 4 2 MFC Device Driver s API API Functions CreateFile Create the MXM 6410 MFC instance MPEG4 DEC INIT MPEGA4 INIT IOCTL MFC MPEG4 DEC EXE MPEG4 EXE 264 INIT 264 264 DEC EXE DeviceloControl 264 ENC EXE IOCTL 263 IOCTL 263 INIT IOCTL 263 DEC EXE IOCTL 263 EXE VC1 DEC INIT IOCTL MFC VC1 DEC EXE IOCTL MFC GET LINE BUF ADDR IOCTL MFC GET RING BUF ADDR IOCTL MFC GET FRAM BUF ADDR CloseHandle Close the 6410 MFC instance MXM 6410 APC 6410 Linux User s Manual v1 2 MXM 6410 APC 6410 Linux User s Manual v1 2 4 2 1 CreateFile CreateFile Syntax HANDLE WINAPI CreateFile LPCTSTR IpFileName DWORD dwDesiredAccess DWORD dwShareMode LPSECURITY ATTRIBUTES IpSecurityAttributes DWORD dwCreationDisposition DWORD dwFlagsAndaAttributes HANDLE hTemplateFile Description This function creates the 6410 MFC instance Several MFC instance can be made simultaneously This means that CreateFile function can be called several times in a process task Parameters lpFi
31. exercise and for most common situations pre built tool chains already exists Unless you need to build your own or you want to do it anyway to gain a deeper understanding then simply installing and using a suitable ready made tool chain is strongly recommended Please follow the commands below and install the toolchain in the directory mentioned below mkdir p usr local arm tar xvf cross 4 2 2 eabi tar bz2 The above command will generate the 4 2 2 eabi folder under the same directory as you made the commands Move this folder to usr local arm directory mv 4 2 2 eabi usr local arm export PATH PATH usr local arm 4 2 2 eabi bin As of now you have installed the cross toolchain into your Linux PC At your application that you would like to cross complied you need to modify the Makefile and point the CROSS_COMPILE to CROSS COMPILE usr local arm 4 2 2 eabi bin arm linux MXM 6410 APC 6410 Linux User s Manual v1 2 Chapter Use MXM 6410 APC 6410 Hardware MFC Multimedia Function This Chapter gives how to use the hardware MFC multimedia function Section include MPEG4 Decoder for Mplayer at Device MFC Device Driver s API MXM 6410 APC 6410 Linux User s Manual v1 2 Chapter 4 Use MXM 6410 APC 6410 Hardware MFC Multimedia Function This Chapter gives topics related to hardware MFC multimedia function in MXM 6410 APC 6410 4 1 MPEG4 Decoder for Mplayer at Device Embedian integrates the
32. hn MXM 6410 APC 6410 Linux User s Manual v1 2 3 2 3 Delete a User To delete a user you can use userdel command ubuntuldubuntu userdel help Usage userdel options LOGIN Options f force force removal of files h help age and exit remove home directory and mail spool ubuntulBubuntu 2 Example Below is an example to delete a user john with removal of home directory and mail spool ubuntulubuntu sudo userdel r john sudo password for ubuntu ubuntuhlubuntu 3 3 Network Settings The default IP is set static and network configuration is as follows IP address 192 168 1 121 netmask 255 255 255 0 gateway 192 168 1 254 ubuntuliubuntu ifconfig etho etho Link encap iEthernet Hwaddr D041 33 14 05 67 inet addr 1982 159 1 121 Beast 192 1 255 Hask 255 2 UP BROADCAST RUNNING MULTICAST MTU 1500 WMetric l packets 4694 errors 0 dropped 0 overruns frame o0 Packets errors U GEeoppecd 0 overruns 0 carrier collisions 0 txequeuelen 1000 RA bytes 641660 641 6 bytes 1804717 140 4 Interrupt Ye Ba address 0xe300 ubuntulubuntu s3 MXM 6410 APC 6410 Linux User s Manual v1 2 Users can use ifconfig to change the IP address at runtime ubuntulubuntu ifconfig help Usage ifconfig a add lt addres del addres broadcast address gt pointopoint lt address gt netmask
33. ite 0x50000000 0x200000 0 7 00000 Temporary address is base address of DRAM 50000000 Start address is 0x200000 40000 1c0000 Image size of NANDFS will be below Ox7e00000 HEX Note The mobile DDR size is 128MB only If your NANDFS size is big like Embedian default nand6410 img you need to use split command in Linux to split the NANDFS into two smaller files or the uboot will be overwritten in DDR because the execution point of uboot is somewhere in DDR
34. le First we need to apt get install the vsftpd packages ubuntulbubuntu sudo apt get install vsftpd You can use netstat commad to check if the vsftpd has been successfully installed ubuntuflubuntu netstat tul grep ftp IS you saw the ftp has been LISTEN then means the vsftpd is running The default vsftpd is configured only allow the anonymous user to ftp in without password We now need to configure the etc vsftpd conf file ubuntulubuntu sudo vim etce vsftpd conf Below are the common settings for vsftpd For advanced settings users can read the remarks from the same file anonymous enable NO YES means allow the anonymous user to login to ftp NO means not allow anonymous user to login to ftp chroot local user YES Uncomment this to restrict local users to their home directories and cannot change directory to other system directory local 022 Uncomment this will make the privilege of the upload file to 55 If comment out this line the default privilege of upload file is 700 local enable Yes Uncomment this to allow local users to log in write enable YES Uncomment this to enable any form of write command After made the changes we need to restart the vsftpd server by ubuntullubuntu sudo etc init d vsftpd restart 1 serwer waftpad Starting Server vsrtpd ubuntu ubuntu 5 MXM 6410 APC 6410 Linux User
35. leName IN MFC s device driver name L MFC1 dwDesiredAccess IN GENERIC_READ GENERIC_WRITE dwShareMode IN 0 loSecurityAttributes IN NULL dwCreationDisposition IN OPEN EXISTING dwFlagsAndAttributes IN FILE ATTRIBUTE NORMAL hTeplateFile IN NULL Heturns HANDLE of the MFC instance If it fails it returns INVALID HANDLE VALUE MXM 6410 APC 6410 Linux User s Manual v1 2 4 2 2 DeviceloControl DeviceloControl Syntax BOOL WINAPI DeviceloControl HANDLE hDevice DWORD dwloControlCode LPVOID IpinBuffer DWORD ninBufferSize LPVOID IpOutBuffer DWORD nOutBufferSize LPDWORD IpBytesReturned LPOVERLAPPED Description Most of functions are developed in ioctl This system call has many functions which is separated by dwloControlCode Parameters hDevice IN HANDLE returned by CreateFile function dwloControlCode IN The control code for the operation Detailed information will explain below lolnBuffer IN Structure of the argument ninBufferSize IN Size of MFC argument structure IpOutBuffer OUT NULL nOutBufferSize OUT 0 loBytesReturned OUT NULL IpOverlapped IN NULL Returns If the operation completes successfully the return value is nonzero If the operation fails or is pending the return value is zero MXM 6410 APC 6410 Linux User s Manual v1 2 4 2 3 CloseHandle CloseHandle BOOL WINAPI CloseHandle HANDLE hDevice Closes
36. lubuntu 5 lt will create vnc directory under root also will ask you password insert it twice and for the viewing password answer NO Now its time to stop for few more configurations nbuntulubuntu sudo vncserver kill 1 Billing Xtightvnc process ID 4346 qibuntulubuntu 2 and move to the configuration files sudo vim home ubuntu vnc xstartup MXM 6410 APC 6410 Linux User s Manual v1 2 commenting out everything and insert the following two lines openbox amp l xsession And now you can start vncserver again ubuntuldubuntu sudo vnceserver geometry 800x480 TI desktop ubuntu 1 Starting applications specified in home ubuntu vnc x Log file is haome uhbuntu vnc ubuntu i log ubuntulubuntu At the Windows XP client side you can download the free VNC viewer from http www tightvnc com download php Open up the vncviewer program Hew Connection Connection profile C2 Low bandwidth connection gt Default connection options Lancel C2 High speed network Listening mode Click Connect and it will pop out a password authentication window Enter the password MXM 6410 APC 6410 Linux User s Manual v1 2 Standard Authentication gue ge ee ee Host 192 168 1 121 1 User name L VNC Password iia x hind roots X desktop ubuntn 1 Sh 5 gt
37. nector pin outs Jumpers The EVKM MXM 6410 SBC has a number of jumpers that allow you to configure your system to suit your application All use 2mm shorting blocks shunts to select settings Turn off power of the EVKM MXM 6410 before changing the position of a shunt MXM 6410 APC 6410 Linux User s Manual v1 2 Jumper Location Figure 2 2 Jumper Location uss ubipaqua MXM 6410 APC 6410 Linux User s Manual v1 2 List of Jumpers The table below lists the function of various jumpers Table 2 1 Jumpers Table 2 1 JP1 NOR boot or NAND boot Setting and LCD Scan Direction Setting LCD Power Setting 3 3V or 5V for both TTL LVDS RS232 422 485 Setting Reset Button Jumper Settings The following tables describe how the jumper shunts to various configurations JP1 Location on Board D1 Table 2 2 NOR Boot or NAND Boot and LCD Scan Direction Setting JP1 Table 2 2 NOR Boot or NAND Boot and LCD Scan Direction Seiting Setting Function JP2 Location on Board C1 Table 2 3 LCD VCC Power Setting for CN14 and CN15 JP2 from CPU LVDS and TTL Table 2 3 LCD VCC Power Setting for CN14 JP2 from CPU LVDS and TTL Setting Function JP2 1 2 Default MXM 6410 APC 6410 Linux User s Manual v1 2 JP3 Location on Board B6 Table 2 4 RS232 422 485 Mode Setting Table 2 4 RS232 422 485 Setting Setting Function JP3 1 2 Default RS232 JP3 3 4 RS422 R
38. of DRAM 50000000 Start address is 0x40000 Image size of zlmage will be below 000 HEX After writing u boot and kernel images to NAND flash the last step is to write NAND root file system nand6410 img image Repeat the same steps first we tftp the nand img image to DRAM tftp 50000000 nand6410 img Temporary address is base address of DRAM i e 0 50000000 Write the nand6410 img image to the NAND by using following nand write command You still need to erase first erase 0 200000 0 7 00000 write 0x50000000 0x200000 0 7 00000 Temporary address is base address of DRAM 50000000 Start address is 0x200000 40000 1c0000 Image size of NANDFS will be below Ox7e00000 HEX Note The mobile DDR size is 128MB only If your NANDFS size is big like Embedian default nand6410 img you need to use split command in Linux to split the NANDFS into two smaller files or the uboot will be overwritten in DDR because the execution point of uboot is somewhere in DDR MXM 6410 APC 6410 Linux User s Manual v1 2 After done reset MXM 6410 APC 6410 and the firmware will be updated A 2 2 Linux Environment In this section we will detail how to transfer and write firmware under Linux PC First we need to set up minicom so that we could see the message from the console A 2 2 1 Minicom Before transferring images using tftp you should know how to use Minicom
39. pecification with all 9 signals Ethernet 10 100Mbit driver for Davicom DM9000B USB Host 4 Ports supporting mass storage devices USB stick hard disc CD ROM and other devices as keyboard mouse USB hub USB OTG Client TBS 16Bit stereo output up to 48kHz mic input line In supports ALSA standards All 4 wire resistive screens supported Display All types of displays supported Use fbset utility to configure different resolutions and panels SD SDHC Memory cards Wireless LAN Bluetooth GSM GPS CF Memory cards Wireless LAN modem Bluetooth serial card GPS GSM GPIO 12 Configurable GPIO with Sample codes Flash File Ext3 is default supported System 2D Engine CPU 2D acceleration h w supported 3D Engine Support CPU SD h w acceleration Support OpenGLES 1 1 2 0 MXM 6410 APC 6410 Linux User s Manual v1 2 1 3 Default Software Packages Users can use dpkg query W io visualize the list of installed packages or dpkg obtain the description of the set of installed packages User add their application oriented packages from the Ubuntu repository by using apt get install lt Package Name gt as well Table 1 2 Default Software Packages O MXM 6410 APC 6410 Linux User s Manual v1 2 aptop deteci firefox 3 0 3 0 8 nobinonly Qubuntu3 MXM 6410 APC 6410 Linux User s Manual v1 2 MXM 6410 APC 6410 Linux User s Manual v1 2 MXM 6410 APC 6410 Lin
40. re for Passing the Arguments 75 APPENDIX MXM 6410 APC 6410 FIRMWARE UPDATE cccssssssssssssssssssssssssssssssssssssssess 78 SUM ME E LU UNE EP TH LOHN NCN M anne de 78 525 UPDATE FIRMWARE FROMM BOOP osc ee ae eine nee ee men 79 2 1 Windows Environment 95598 donne 79 Add SOU ate ette aie te O 79 A 2 1 2 Transfer and Write Image by TFTP write Command 80 0 LINUX ee 82 a i 82 EE 89 DEURE DOG N 92 A 2 2 4 Transfer and Write Image TFTP write Command 94 MXM 6410 APC 6410 Linux User s Manual v1 2 Chapter 6410 6410 Ubuntu Linux Jaunty Jackalope Features This Chapter gives an introduction to the Ubuntu Linux 9 04 features of MXM 6410 and APC 6410 Section include Board Support Package Drivers Services MXM 6410 APC 6410 Linux User s Manual v1 2 Chapter 1 MXM 6410 APC 6410 Ubuntu Linux Jaunty Jackalope Features Ubuntu 9 04 as known as Jaunty Jackalope is official released on April 23 of 2009 And Embedian is one of the first few companies to support Ubuntu 9 04 for ARM11 processors This Chapter gives an overall pictu
41. re in regarding to the Ubuntu Linux 9 04 features that Embedian provided with for the MXM 6410 computer on module and APC 6410 single board computer 1 1 Board Support Package BSP The Embedian Board Support Package for Ubuntu Linux 9 04 is one of the most advanced BSPs available on the market Beside the standard Ubuntu Linux functionality it also includes a large number of additional drivers as well as optimized versions of standard drivers The Embedian Linux kernel is provided with a source code and binary format This allows customers to customize the external device drivers themselves With Ubuntu support this relieves the application developer from the burden of creating and building the own images Instead the necessary adaptations can be done by using apt get the software packages from the official Ubuntu 9 04 repository to the on board root file system The BSP is available at Embedian FTP site at ftp ttp embedian com pub MXM 641 0 Linux Customers who follow the built instruction in the BSP folder will enable you to build exactly the same Linux kernel zimage as Embedian provides by default 1 2 Drivers The following drivers are integrated in the standard image that comes pre installed with each MXM 6410 module or APC 6410 board MXM 6410 APC 6410 Linux User s Manual v1 2 Table 1 1 Drivers COM4 External UART that supports the full RS232 specification with all 9 signals COM5 External UART that supports the full RS232 s
42. root ape7 110 l ls bin etc linuxre 1 root selinux dey lib lost tfound proc shin sys 151 root ape7110 1 3 14 2 As a rescue file system The NAND file system can play a role of rescue file system especially when the main Ubuntu file system is corrupted or cannot boot into for some reason Here we would like to give you a guide to restore the SD Ubuntu file system from NAND file system 1 Boot into NAND flash first by pressing 2 NAND during booting process and login as root privilege The root pass is apc7110 by default 2 Prepare for a at least 1GB SD SDHC card The SDHC card will have better read write performance but usually the SDHC card is at least 4GB 3 The NAND file system will mount partition 1 of SD card by default The device descriptor of SD device is and the partition 1 of SD card is dev mmc7 Here would like to format the partition 1 of SD card as EXT3 first MXM 6410 APC 6410 Linux User s Manual v1 2 10 mkfs t ext3 dev rimci 21 Mar 2005 Fragment 31 485640 inodes 977263 blocks 48565 blocks 5 00 reserved for the supe First data block 0 30 block groups an 32160 blocks per group 55 fragments per group 162565 inodes per group superblock backups stored on blocks 9623208 L5380480 dada ror SOLE gilgzHiD 004726 Writing inode tables done Creating journal 8192 blocks done Writing superblocks and filesystem accounting information done
43. s Manual v1 2 And now you can use the common FTP client software like Filezilla to FTP files into the user home directory 3 8 Telnet SSH Server The telnet and ssh server are default included in the root file system You can telnet or ssh to the device from a remote telnet ssh client such as putty i PulT Configuration Category Session Basic options for your Pul session Logging Specify the destination you want to connect to Terminal Keyboard Host Mame or IP address Port 192 168 1 121 22 Features Connection type window OBa Telnet Rogn 9 551 C Serial Appearance Behaviour Translation Selection Lolours Default Settings mE Connection Load save or delete stored session Saved Sessions Hlaain H 58H Serial i Close window on exit Always Never gt Only on clean exit MXM 6410 APC 6410 Linux User s Manual v1 2 Click Open to login and you will see the following screen i 192 168 1 121 PuTTY login as ubuntu ubuntulioz2 1658 1 121 s Linux ubuntu 2 5 24 2 66 PREEMPT Mon Jun 29 23 The programs included with the Ubuntu system COT 2008 atmvel the exact distribution terms for each program individual files in usr share doc copyright Ubuntu comes with ABSOLUTELY NO WARRANTY to applicable law official Ubuntu documentation http help ubuntu caom Last logins T e dur ee pr 2009 tea IBS ubuntul
44. sh Ash x25 CCITT 4 25 Example Below is an example to change the IP address to 192 168 1 122 and netmask to 255 255 255 0 at runtime ubuntulubuntu sudo ifconfig ethO 192 158 1 122 netmask 2 ubuntu ubuntu 5 3 3 1 Configure Network Configuration at Boot or Network Restart The ifconfig command only changes the network setting at runtime After reboot or network restart the network configuration will be restored to default values To determine the network configuration at boot or network MXM 6410 APC 6410 Linux User s Manual v1 2 restart users need to modify the etc network interfaces file 3 3 1 1 Static IP To configure the device networking configuration as static IP user need to modify the etc network interfaces file first wim ubuntu ubuntu ubuntu uto iface lo inet loopback auto eth ct UN address Lr Lr Ln netmask e Dj o ID After modified this file you can reboot the device or just use the etc init d networking restart command to restart the networking configuration ubuntuldubuntu sudo reter 1111 97 networking restart RECOnLiguring network interfaces ubuntulubuntu 3 3 1 2 DHCP To configure the device networking configuration as DHCP user need to modify the etc network interfaces as follows utn lo iface lo inet loophack auto ethl ifac
45. st home test File Edit View Terminal Go Help lt Tab gt lt Alt Tab gt between elements Use lt Enter gt to edit a selection Please select System services As shown below MXM 6410 APC 6410 Linux User s Manual v1 2 syslog talk telnet tftp tine Press F1 for more information a service Please select tftp service as shown in above figure and finally click on ok Finally quit setup utility and execute the following command root localhost root xinetd restart Now you can download compiled images to the MXM 6410 APC 6410 by using tftp Before downloading the images connect host PC and 6410 6410 by Ethernet cable you direct link and device please use Ethernet cross cable To download binary image files to MXM 6410 APC 6410 run tftp server service on your computer and put images in tftpboot directory Copy u boot kernel zimage and nand img image to tftpboot directory In Linux PC type root localhost cp uboot bin tftpboot MXM 6410 APC 6410 Linux User s Manual v1 2 root localhost cp zimage tftpboot And root localhost nand6410 img tftpboot MXM 6410 APC 6410 Linux User s Manual v1 2 A 2 2 3 Setting up an IP address Setting up an IP address helps in downloading the compiled images to MXM 6410 APC 6410 Connect host PC and MXM 6410 APC 6410 by Ethernet cable A 2 2 3 1 Setting IP address for host PC On Your Linux Hos
46. t PC run the terminal and execute following commands to set up and address root localhost tftpboot ifconfig ethO down root localhost tftpboot ifconfig ethO 192 168 1 10 netmask 255 255 255 0 up root localhost tftpboot ifconfig Figure A 11 Setting IP address for host PC Jocalhost ttpboot File Edit View Terminal Go Help root localhost tftpboot ifconfig ethO down a root localhost tftpboot ifconfig 192 168 1 10 netmask 255 255 255 0 up root localhost tftpboot ifconfig etho Link encap Ethernet HWaddr 00 03 47 B0 92 7E inet addr 192 168 1 10 192 168 1 255 Mask 255 255 255 0 UP BROADCAST RUNNING MULTICAST MTU 1500 Metric 1 EX packets 1914709 errors 16 dropped 0 overruns 0 frame 16 TX packets 1703888 errors 100 dropped 0 overruns 0 carrier 100 collisions 40165 txqueuelen 1000 RX bytes 312583130 298 1 Mb TX bytes 927285406 884 3 Mb Interrupt 10 Base address 0x2400 Memory 8200000 8200038 Link encap Local Loopback inet addr 127 0 0 1 Mask 255 0 0 0 UP LOOPBACK RUNNING 16436 Metric 1 EX packets 3947 errors 0 dropped 0 overruns 0 frame 0 TX packets 3947 errors 0 dropped 0 overruns 0 carrier 0 collisions 0 txqueuelen 0 RX bytes 3917086 3 7 Mb TX bytes 3917086 3 7 Mb root localhost tftpboot MXM 6410 APC 6410 Linux User s Manual v1 2 A 2 2 3 2 Setting IP address for MXM 6410 APC 6410 Run the Minicom first in your host PC power
47. t or Network Restart 38 34 MANUALLY ADD 41 SO INSTALE SOFTWARE PACKAGES ee eee oem ae anne 42 3 5 1 List of installed software packages 42 3 5 2 Description of installed software packages 42 2 9 LIST Of available SOTtWOFe 42 3 5 4 Searching a software package apt cache search 435 3 5 5 Properties and information of a software apt cache show 44 3 5 6 Installing a software apt get install 45 3 5 7 Removing a software apt get remove isses hehe 45 3 5 6 Updating the software list apt get update 45 3 5 9 Upgrading the software apt get upgrade 45 3 5 10 Smart software update apt get dist upgrade eese nnne eene 46 SO PP OPEN a NECI D bI DID E DUE 47 SERVE a a ee a on OR OR 48 1 BR One do da 49 DPV NG SERV OR a P 51 NEM 54 NES Cb a a a a 54 MXM 6410 APC 6410 Linux User s Manual v1 2 3 12 CALIBRATION AND UMEN 56 3 12 1 Install the Calibration Program 56 2412 2 56 ARO T MODE aaien le
48. t up Stop bits to T and to set up parity to NONE Figure A 4 Serial Port Setup Il localhost Edit View Terminal Go Help Comm Parameters Serial Current 115200 8 1 Lockfile L Callin Speed Parity Callout Bps Par Hardware F Software F 300 None 1200 Even 2400 Odd 4800 600 19200 Stopbits 38400 57 600 115200 230400 Change whic screen Save Save Exit Exit m Choice or Enter to exit MXM 6410 APC 6410 Linux User s Manual v1 2 Push F key for setting up Hardware Flow Control to Push G key for setting up Software Flow Controf to NO The default value is NO Figure A 5 Hardware Software Flow Control Setup Te 5 Edit View Terminal Go Help Serial Device dev ttyso Lockfile Location 111 Callout Bps Par Bits 115200 8 1 Hardware Flow Control No Software Flow Control No Change which setting Screen and keyboard Save setup as dfl setup as Exit Exit from Minicom MXM 6410 APC 6410 Linux User s Manual v1 2 Once setting is over please press Enter key And select Save setup as dff item then press Enter for saving the values Figure A 6 Saving Minicom Setup root localhost File Edit View Terminal Go Help configuration Filenames and
49. tem At development stage it is recommended that user develop their program under SD Ubuntu root file system Users can apt get install gcc and use gcc to do natively make first After development work done you can copy the new binary files to NAND flash and do the test again And then modify the linuxrc to boot into NAND flash only The other alternative is to use the cross compiler to develop your application at PC After you done the development you can ftp the program into the NAND flash and make a test You can also do this way when developing your program at SD Ubuntu file system 3 15 Cross Toolchain For kernel compile since it doesn t rely on any libraries and is totally independent we do suggest use this cross compile tool that could save lots of time and no problem at all for applications For applications we do suggest you switch to native compile mode since the host pc which used to make the s w doesn t know the s w environment of target platform User can get the gcc 4 2 at device from Ubuntu repository by apt get install gcc IF YOU ARE USING UBUNTU ROOTFS WE STRONGLY SUGGEST USE NATIVE COMPILE MODE at least at the final stage of test The crosss toolchain version that we are using is 4 2 2 with EABI supported MXM 6410 APC 6410 Linux User s Manual v1 2 The file name is cross 4 2 2 eabi tar bz2 that can be downloaded from Embedian FTP site 3 15 1 Installing Toolchain Building the tool chain is not a trivial
50. tm vx Audio Video ax Graphics Settings System Tools P Network Accessories Ruin To kill the VNC service ubuntudubuntu sudo vncserver kill 1 Billing Xtightvnc process ID 4346 Ubuntu ubuntu MXM 6410 APC 6410 Linux User s Manual v1 2 3 10 GDM Embedian MXM 6410 uses GDM Gnome Display Manager as the graphical login program GDM is the GNOME Display Manager a graphical login program that uses XWindow GDM provides the equivalent of a login prompt for X displays it pops up a login window and starts an X session It provides all the functionality of including XDMCP support for managing remote displays To stop the gdm service you can use the command etc init d gdm stop You can use gdm to load different desktop environments and Window Mangers Because of the memory limitation the default is using the LXDE system If users would like to consider GNOME the 256MB DDR RAM is the minimum requirement 3 11 LXDE Because of the memory limitation Embedian chooses LXDE as default desktop environment After login into the GDM display manager the GDM will launch LXDE directly by default LXDE Lightweight X11 Desktop Environment is a desktop environment which is lightweight and fast It is designed to be user friendly and slim and keep the resource usage low LXDE uses less RAM and less CPU while being a feature rich operating system Because of the low usage of r
51. try code Example deb_htip gb archive ubuntu com ubuntu jaunty main restricted universe multiverse indicates a repository for Great Britain gb 4 Refresh the packages list from the new repositories ubuntububuntu sudo apt get update MXM 6410 APC 6410 Linux User s Manual v1 2 3 5 Install Software Packages 3 5 1 List of installed software packages To visualize the list of installed packages we use the following command ubuntuldubuntu dpkg query W To visualize an installed package whose name is vim for example we use the previous command and a redirection or pipeline to the grep command Practically we have ubuntulubuntu 5 grep i vim wir O79S Llubuntus Pee O79 LubuntuSs Poe2f 079 LubuntuSs E 1 0 7im runtirme vim tiny ubuntulubuntu 3 5 2 Description of installed software packages The description of the set of installed packages is obtained via the command ubuntullubuntu dpkg 1 3 5 3 List of available software packages The list of available packages is obtained as follows ubuntulubuntu apt cache We clearly see that the list is not in alphabetical order To resolve this issue we redirect and sort the output ubuntu ihubuntu apt cache pkgnames sort MXM 6410 APC 6410 Linux User s Manual v1 2 3 5 4 Searching a software package apt cache search To search a software package we proceed as follows
52. ubuntu 25 168 1 100 MXM 6410 APC 6410 Linux User s Manual v1 2 3 9 VNC Server The VNC server allows users to see the desktop of a MXM 6410 based remote device and control it with your local mouse and keyboard and without attaching an LCD to the device just like you would do it sitting in the front of that MXM 6410 based device First of all you need to install the tightVNC server first ubuntulubuntu sudo apt get install tightwnes Reading package lists Done Building dependency tree Reading state information Done suggested packages tightvnc java The following NEW packages will be installed tightvncserver upgraded 1 newly installed O to remove and 14 not upgraded Need to get 758kB of archives After this operation 1593KB of additional disk space will be used Getil http ports ubuntu com jaunty universe tightvncserver 1 3 9 4 YSGKE Fetched 758kB 45 166 3 selecting previously deselected package tightvnceserver Reading database 34032 files and directories currently installed Unpacking tightwneserver from PEOQHEVNCSEEVEE 1 3 9 4 armel ueb up Baoheyncseryer 15 3 3 41 vbuntul ubuntu 5 Now you can start vncserver to have a new display called 1 ubuntulubuntu sudo vncserver geometry 800x460 d 2 desktop is ubuntu l Starting applications specified in home ubuntu vnc x Log file is haoame uhbuntu vnc ubuntu i laog ubuntu
53. ubuntulHubuntu apt cache search wget the Lite 00 1 1 Miscellaneous add ons etrieves files from the web abcde Bett CD Encoder apt mirror 2 sources mirroring tool dewvascripts scripts to make of a Debian Package maintainer easier for Emacs apt zip Update a non networked computer using apt and removable media light download accelerator console version el 1 4 light download accelerator debugging symbols axel kapt light download accelerator graphical front end piphany extension gquget Gwget extension for Epiphany web browser Multiple files transfer manager quqet GNOME front end for wget mirror keeps FTP archives up to date pui Parallel URL fetcher command line URL grabber an interface for wget on Emacsen t tiny woet like ftp client for uploading files ubuntu This command displays software packages containing the expression wget MXM 6410 APC 6410 Linux User s Manual v1 2 3 5 5 Properties and information of a software apt cache show To display information related to a package for instance the gwget package we proceed as follows ubuntulhubuntu apt cache show Package Priority optional Section universe gnome lnstalled size 1336 Maintainer Ubuntu Developers lt ubuntu motul lists ubuntu com gt Original Maintainer Arnaud Fontaine lt arnaulddebian org gt RECHIC
54. users might take the MXM 6410 module off from the carrier board and replace by the other new module If that is the case Ubuntu will find out the MAC address has been changed and will view the original ethO network device as eth network configuration settings mentioned above will not take effect If users want to change the network configuration setting under this situation you need to modify the etc udev rules d 70 persistent net rules file first time when you replace the CPU module ubuntulubuntu sudo vim etce udev rules d U persistent net And delete the following lines After next reboot or network restart Ubuntu will generate the new settings to this file to fix the network device interface MXM 6410 APC 6410 Linux User s Manual v1 2 3 4 Manually add repositories Do this at your own risk Modify the default Ubuntu sources list only if you understand what you re doing Mixing repositories can break your system For more information see the Ubuntu Command line Repository guide Create a backup of your current list of Sources ubuntudubuntu sudo cp p etc apt sources list etc apt sources list backup ubuntu Note 1 sudo runs the command with root privileges cp copy prompt to overwrite if a file already exists 2 Edit the list of sources The default repositories are 3 To use your local mirror you can add xx before archive ubuntu com where xx your coun
55. ux User s Manual v1 2 0 CES ETES ibjpeg progs MXM 6410 APC 6410 Linux User s Manual v1 2 libparse debianchangelog pe 1 1 1 2ubuntu1 rl MXM 6410 APC 6410 Linux User s Manual v1 2 MXM 6410 APC 6410 Linux User s Manual v1 2 MXM 6410 APC 6410 Linux User s Manual v1 2 MXM 6410 APC 6410 Linux User s Manual v1 2 MXM 6410 APC 6410 Linux User s Manual v1 2 MXM 6410 APC 6410 Linux User s Manual v1 2 MXM 6410 APC 6410 Linux User s Manual v1 2 xserver xorg video siliconmot 1 1 7 0 1 ion MXM 6410 APC 6410 Linux User s Manual v1 2 xulrunner 1 9 1 1 9 1 b4 hg20090330r24021 nobinonly Oub untu1 211019 1 1 2 3 3 dfsg 12ubuntu2 MXM 6410 APC 6410 Linux User s Manual v1 2 1 4 Special Features In addition to the standard Ubuntu Linux functionality Embedian has extended the operating system by following features Table 1 3 Special Features Table 1 3 Special Features Direct SD Boot Boot Directly from SD card It is very useful for LCD Customizer Set all types of LCD resolution parameters by using NAND Flash To recover the firmware in NAND flash from NOR Writer flash or SD card by jumper setting MPlayer Integrate the MFC drivers into Mplayer Calibration Calibration program for touch application Program MXM 6410 APC 6410 Linux User s Manual v1 2 Chapter System Information This Chapter gives an introduction of system information
56. wnloads and a Manager Homepage http gnome org projects gwget Bugs https bugs launchpad net ubuntu filebug Origin Ubuntu ubuntulubuntu Note that the exact name of the package should be entered For example ubuntulubuntu apt cache show flash W Unable to locate package flash packages founc ubuntuli ubuntu 5 does not yield any result since flash is not he name of a package MXM 6410 APC 6410 Linux User s Manual v1 2 3 5 6 Installing a software apt get install Assume we want to install firefox We type ubuntulubuntu sudo apt get install firefox 3 5 7 Removing a software apt get remove To uninstall a package we can proceed in two ways Either 1 we uninstall only the software or 2 the software and its configuration files In the first case assuming we want to uninstall the mplayer software we type ubuntulubuntu 5 sudo apt get remove mplayer In the second case if we want to uninstall both mplayer and its configuration files we type adbuntudubuntu sudo apt get remove purge mplayer 3 5 8 Updating the software list apt get update Updating a list of software is not the same as updating the software per se Only the list is actually updated ubuntulubuntu 2 sudo apt get update 3 5 9 Upgrading the software apt get upgrade The upgrade command installs the most recent versions of all packages on the system ubuntulubuntu 2 sudo
57. xm6410 and default user is ubuntu and the ubuntu user default password is also mxm6410 3 2 1 Create a User To add a user you can use useradd command M nU useradd help useradd options LoGIM Options b base dir BASE DIR hase directory for the new user account home directory comment COMMENT set the GECOS field for the new user account home dir HOME DIE home directory for the new user account j efaults print or save modified default useradd configuration account expiration date to EAPIRE DATE password inactive after expiration INACTIVE GROUP for the new user account of supplementary groups for the new USEE account ct expiredate EXPIRE DATE inactive INACTIVE ct nm nj ct gid GROUP qroups GROUPS n Hn ct ct SEEL DIE Spesifs an alternative kev KEY VALUE overrides do not add the user faillog databases preate hame create home directory for the new user y D ct a 4 ct Le account no user group do not create a group with the same name as the user allow cre with duplicate non unidgqu password PASSWORD USE password for the new user accaunt 11 for the new user account UID for the new user account roup with the same name as the user Create a the lo sin im ct
Download Pdf Manuals
Related Search
Related Contents
Auteur Jean Jeuvrey Date 21/11/2014 Version 1 Thèmes abordés Hasselblad XPan II Instruction Manual OpeRATing insTRuCTiOns eAsysTART seLeCT Sun Enterprise 10000 SSP Administration Commands ENGLISH User's Guide Guide de l'utilisateur • Bedienungsanleitung Manuale Watervue User Manual Dec14.ai BHM100PC 取扱説明書 What`s new in SCI Gateway version 19.0 for End Users Copyright © All rights reserved.
Failed to retrieve file