Download  Print this page

Sony XCI-SX1 Technical Manual

Intelligent camera software development kit.
Hide thumbs

Advertisement

SDK Technical Manual
Version 1.0

Advertisement

Table of Contents

   Also See for Sony XCI-SX1

   Related Manuals for Sony XCI-SX1

   Summary of Contents for Sony XCI-SX1

  • Page 1 SDK Technical Manual Version 1.0...
  • Page 2: Table Of Contents

    Table of Contents Overview ----------------------------------------------------------------------------------------------------------- 1 Dependencies ------------------------------------------------------------------------------------------------ 1 SDK Environment ------------------------------------------------------------------------------------------- 2 Environment ------------------------------------------------------------------------------------------------------ 3 Patches to kernel -------------------------------------------------------------------------------------------- 3 2.1.1 BigPhysArea Patch -------------------------------------------------------------------------------------- 3 2.1.2 Network Driver Patch ----------------------------------------------------------------------------------- 3 2.1.3 BootSplash Patch ---------------------------------------------------------------------------------------- 4 2.1.4 Keyboard Patch ------------------------------------------------------------------------------------------ 4 2.1.5 MVL Patches --------------------------------------------------------------------------------------------- 6 Kernel Configuration and Installation ------------------------------------------------------------------- 7...
  • Page 3: Overview

    Overview The Software Development Kit or SDK is provided to give the end users an environment where they can develop their own applications and images. This document is intended as a complete, step-by-step guide to create the SDK environment on the 2GB CF and does not contain instruction on how to create an application using SDK.
  • Page 4: Sdk Environment

    XCI-SX1 SDK / SDK Technical Manual 1.2 SDK Environment This SDK is build with the following environments. • MontaVista Linux 3.0 • Linux Kernel 2.4.18 • gcc (GCC) 3.2.1 20020930 (MontaVista) • glibc 2.2.5 • GNU gdb 5.2.1...
  • Page 5: Environment

    Network Driver Upgrade Patch Application: patch –p1 < [source]/bigphysarea.diff Where: [source] – path where the exploded patch is located cp 8139too.c /usr/src/linux/drivers/net/ NOTE: This command must overwrite the existing 8139too.c in the MVL3.0 kernel tree. XCI-SX1 SDK / SDK Technical Manual...
  • Page 6: Bootsplash Patch

    2.1.3 BootSplash Patch To display a boot logo and progress bar during boot-up, this patch should be applied to the kernel. Applying this patch enables the user to display the desired effect during boot up. Bootsplash Patch Patch Application: cd /usr/src/linux 2.1.4 Keyboard Patch The keyboard patch applied is to adjust the keyboard repeat interval and delay.
  • Page 7 (edit the Config.in file as shown below) bool 'PS/2 keyboard support (Off = EXPERIMENTAL)' CONFIG_PSKEYBOARD $CONFIG_EXPERIMENTAL mainmenu_option next_comment comment 'Mice' tristate 'Bus Mouse Support' CONFIG_BUSMOUSE cd /usr/src/linux/arch/i386/ (edit the defconfig file as shown below) # CONFIG_I2C is not set CONFIG_PSKEYBOARD=y XCI-SX1 SDK / SDK Technical Manual...
  • Page 8: Mvl Patches

    Say Y here if your machine has a bus mouse as opposed to a serial The CONFIG_PSKEYBOARD kernel option should be disabled. cd /usr/src/linux patch -p1 [source]/mvl3.0.patch cd /usr/src/linux patch -p1 < [source]/CAN-2004- 0077.patch cd /usr/src/linux patch -p1 < [source]/CAN-2003- 0985.patch XCI-SX1 SDK / SDK Technical Manual...
  • Page 9: Kernel Configuration And Installation

    CAN-2003-0961 cd /usr/src/linux 2.2 Kernel Configuration and Installation 2.2.1 Kernel Configuration After applying the required patches to the kernel, it is time to set the kernel configurations. configurations are set before building the kernel. Kernel Configurations Kernel Features ext3 file system Minix file system romfs tmpfs...
  • Page 10: Kernel Compilation

    Required support to enable the system to be accessed through NFS mount Used by the camera driver to reserve large memory area at boot time files .config file /usr/src/linux directory /boot XCI-SX1 SDK / SDK Technical Manual stored then proceed make Lastly, run (Refer /boot,...
  • Page 11: Environment System Configurations

    This GRUB configuration file in /boot/grub/grub.conf should contain settings as shown below: ----------------------------------------------------------- default=0 timeout=3 title XCI-SX1 Smart Camera SDK (0.6) root (hd0,0) kernel /boot/k1 rw root=/dev/hda1 bigphysarea=1280 ----------------------------------------------------------- 2.3.3 Required Modules To load the proper modules during start up, the /etc/modules file...
  • Page 12: Network Configuration

    IP address acquisition through DHCP service, add the following lines below to /etc/init.d/networking: Note: It’s not configured by this file on NFS boot, but by the setting on 128MB CF. XCI-SX1 SDK / SDK Technical Manual Comments begin with So unless really required, never...
  • Page 13: Ftp Service

    ----------------------------------------------------------- echo -n "Configuring network interfaces: " /sbin/dhcpcd -t 30 > /dev/null 2>&1 /sbin/ifup -a echo "done." ----------------------------------------------------------- 2.3.5 FTP Service enable /etc/inetd.conf to enable FTP service every time the system starts up. This feature would be very helpful during installations of other files. Please see the setting below.
  • Page 14: Driver Installation

    The user has to enter the password for the root user twice. The system is also required to have at least a single non-root user. The adduser command has been used to add another user. friendlier front end than the useradd command, choosing Debian policy conformant UID and GID values, creating a home directory with skeletal configuration, running a custom script, and other features.
  • Page 15: Camera Driver

    2. ln –s /dev/flash0 /dev/flash - this command is optional; it simply creates a symlink /dev/flash0 to the /dev/flash node driver module module source code directory. If initially not created, do the XCI-SX1 SDK / SDK Technical Manual installed installed Just build make...
  • Page 16: Library Installation

    Just like the camera driver, running modprobe skxflash inserts the module to the kernel. Adding skxflash entry on the /etc/modules file will also enable this module to be loaded at system boot up. The source code /usr/smartcam/src/skxflash directory. Just make skxflash.o.
  • Page 17 Please note that the C locale is the default locale environment and does not need to be created. Locale Requirements Alias ja_JP.UTF-8 ja.SJIS en_US.UTF-8 C.iso88591 Locale ja_JP.eucJP ja_JP.UTF-8 ja_JP.SJIS en_US en_US XCI-SX1 SDK / SDK Technical Manual To test if the mouse is Charmap EUC-JP UTF-8 SHIFT_JIS UTF-8 ISO8859-1...
  • Page 18 The fonts and locale directory is link to ones in the target CF (128MB) system. The .org directory has full content. You can pick some if you need one. • /usr/X11R6/lib/X11/xinit/xinitrc Key repeat rate is set for efficiency of development. XCI-SX1 SDK / SDK Technical Manual directory ja.sjis charmap...
  • Page 19: Fltk

    ----------------------------------------------------------- #!/bin/sh # xinitrc - X11 start-up script - customized for the Sony Smart Camera Project # 10/11/04 update /usr/X11R6/bin/xsetroot -solid smartcolor & /usr/X11R6/bin/xterm -bg black -fg white -cr yellow -geometry 120x45+0+0 -ls -display $DISPLAY & /usr/X11R6/bin/xterm -bg black -fg white -cr yellow -geometry 120x45+50+50 -ls -display $DISPLAY &...
  • Page 20: Libjpeg

    Please refer to steps listed below for the instructions on how to build the Apache Web server and the PHP library. 1. cd /usr/src/apache_1.3.31 - changes directory to source directory of Apache (/usr/src) 2. ./configure - runs configuration script of Apache 3. cd /usr/src/php-4.3.5RC3 XCI-SX1 SDK / SDK Technical Manual...
  • Page 21: Snmp

    The Net-SNMP package is installed in /usr/src directory. The steps below show how to install the said service: 1. ./configure - configures the build options XCI-SX1 SDK / SDK Technical Manual...
  • Page 22 # Third, create a view for us to let the groups have rights to: #---------------------------------------------------------- incl/excl subtree view all included ########################################################### # Finally, grant the 2 groups access to the 1 view with different # write permissions: #---------------------------------------------------------- sec.name local local local smartcam_network smartcam_network smartcam_network XCI-SX1 SDK / SDK Technical Manual mask...
  • Page 23: Pro-ftpd

    "" none access smartcamRWGroup "" none ########################################################### # System contact information #---------------------------------------------------------- sysdescr Sony Smart Camera ########################################################### # Trap destination #---------------------------------------------------------- trapcommunity public trap2sink 127.0.0.1 #-------------------------------------------------------------- --------------------------------------------------------- The provided interface library automatically sets trapcommunity item to coincide with the server’s community name.
  • Page 24: Gkermit

    2.6.4 GKermit G-Kermit is a Unix program for transferring files with the Kermit protocol. G-Kermit is a product of the Kermit Project at Columbia University in New York City. G-Kermit is fast, small, portable, easy to use, interoperable, low-maintenance, stable, and reliable. It features text and binary file transfer on both 7-bit and 8-bit connections.
  • Page 25: Usr/smartcam/lib Directory

    Files contained in this directory include gpiolib.a and gpiolib.o. • flash Files contained in this directory include flash.o. • smartcamlib This directory contains the following libraries: o fparser.o o comlib.o XCI-SX1 SDK / SDK Technical Manual Files provided include gpiolib.h The skxflash.h file is the...
  • Page 26: Usr/smartcam/gui Directory

    2.8.4 /usr/smartcam/gui Directory This directory contains the symbolic-linked files used for the smartcam.gui application. contains all the images for the software keyboard used on the GUI application. It also contains the standard folder which in turn contains the images used for displaying the GUI application. 2.8.5 /usr/smartcam/src Directory This directory contains source code of drivers and libraries.
  • Page 27: Sbin/ Directory

    This application converts ASCII string to its integer value. This application converts a string to uppercase, checks and validates an argument type depending on the options. This application is used to convert hexadecimal value to its integer equivalent. XCI-SX1 SDK / SDK Technical Manual This...
  • Page 28 XCI-SX1 SDK / SDK Technical Manual the third party application on the launcher option and if a third party application is present on the /var/etc/plugins directory, the third party application will be launched. Another configuration customized for this environment is the syslog file.

Comments to this Manuals

Symbols: 0
Latest comments: