Inhaltszusammenfassung zur Seite Nr. 1
SDK Technical Manual
Version 1.0
Inhaltszusammenfassung zur Seite Nr. 2
XCI-SX1 SDK / SDK Technical Manual Table of Contents 1 Overview ----------------------------------------------------------------------------------------------------------- 1 1.1 Dependencies ------------------------------------------------------------------------------------------------ 1 1.2 SDK Environment ------------------------------------------------------------------------------------------- 2 2 Environment -----------------------------------------------------------------------
Inhaltszusammenfassung zur Seite Nr. 3
XCI-SX1 SDK / SDK Technical Manual 1 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. Please note that the SDK is also referred to as development environment in this document. Please also refer
Inhaltszusammenfassung zur Seite Nr. 4
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 2
Inhaltszusammenfassung zur Seite Nr. 5
XCI-SX1 SDK / SDK Technical Manual 2 Environment This chapter explains kernels, programs, settings and so on. The contents of this chapter have been applied to SDK. 2.1 Patches to kernel Before kernel compilation, patches are first applied to the kernel. The following sections lists the patches applied to the kernel. Note: All patches have already been applied to /usr/src/linux on SDK. The patch files are stored on /buildtree/src/kernel/patches. 2.1.1 BigPhysArea Patch Appl
Inhaltszusammenfassung zur Seite Nr. 6
XCI-SX1 SDK / SDK Technical Manual 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 cd /usr/src/linux Patch Application: patch -p1 < [source]/bootsplash-3.0.7- 2.4.18-vanilla.diff Where: [source] – path where the exploded patch is located 2.1.4 Keyboard Patch The keyboard patch applied is
Inhaltszusammenfassung zur Seite Nr. 7
XCI-SX1 SDK / SDK Technical Manual #include #include #include #ifndef CONFIG_PSKEYBOARD #define kbd_controller_present() 0 #endif #define KEYBOARD_IRQ 1 #define DISABLE_KBD_DURING_INTERRUPTS 0 . . . /* How to access the keyboard macros on this platform. */ +#ifdef CONFIG_PSKEYBOARD #define kbd_read_input() inb(KBD_DATA_REG) #define kbd_read_status() inb(KBD_STATUS_REG) #define kbd_write_output(val) outb(v
Inhaltszusammenfassung zur Seite Nr. 8
XCI-SX1 SDK / SDK Technical Manual # # Mice # cd /usr/src/linux/Documentations (edit the Configure.help file as shown below) it as a module, say M here and read . The module will be called i2c-proc.o. PS/2 keyboard support CONFIG_PSKEYBOARD PS/2 keyboard support is optional and can be omitted on some systems, for example, some IA32 systems which use IrDA keyboards. If unsure, say Y. Bus Mouse Support CONFIG_BUSMOUSE S
Inhaltszusammenfassung zur Seite Nr. 9
XCI-SX1 SDK / SDK Technical Manual cd /usr/src/linux CAN-2003-0961 patch -p1 < [source]/CAN-2003- 0961.patch Where: [source] – location of the exploded patch 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. Please make sure that the following configurations are set before building the kernel. Kernel Configurations Kernel Features Remarks ext3 file s
Inhaltszusammenfassung zur Seite Nr. 10
XCI-SX1 SDK / SDK Technical Manual MSDOS Required file system support for mass storage devices SCSI support Required support for mass storage devices NFS support Required support to enable the system to be accessed through NFS mount Big Physical Area support Used by the camera driver to reserve large memory area at boot time To apply the following configurations, go to /usr/src/linux and run make menuconfig and start going through the options. After all the configurations are s
Inhaltszusammenfassung zur Seite Nr. 11
XCI-SX1 SDK / SDK Technical Manual And finally, run make modules_install to copy all build modules to /lib/modules/2.4.18_mvl30-pc_target/ directory. Please copy this directory to the target system directory. 2.3 Environment System Configurations The SDK is installed some software and applied some settings. 2.3.1 Kernel Files The target file system needs to be configured due to the kernel updates made. To be sure, copy the following files to its proper destination. bzImag
Inhaltszusammenfassung zur Seite Nr. 12
XCI-SX1 SDK / SDK Technical Manual ----------------------------------------------------------- # /etc/modules: kernel modules to load at boot time. # # This file should contain the names of kernel modules that are # to be loaded at boot time, one per line. Comments begin with # a `#', and everything on the line after them are ignored. usbcore usb-ohci hid input keybdev mousedev 8139too # For NFS sunrpc lockd # Enable USB mass storage support (requires USB core support) s
Inhaltszusammenfassung zur Seite Nr. 13
XCI-SX1 SDK / SDK Technical Manual ----------------------------------------------------------- . . . echo -n "Configuring network interfaces: " /sbin/dhcpcd -t 30 > /dev/null 2>&1 /sbin/ifup -a echo "done." . . . ----------------------------------------------------------- 2.3.5 FTP Service To enable file transfer from and to the system, edit the /etc/inetd.conf to enable FTP service every time the system starts up. This feature would be very helpful during inst
Inhaltszusammenfassung zur Seite Nr. 14
XCI-SX1 SDK / SDK Technical Manual 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. This is 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. adduser admin where: admin – is the new username Thi
Inhaltszusammenfassung zur Seite Nr. 15
XCI-SX1 SDK / SDK Technical Manual 2.4.2 Camera Driver The camera driver (smartcam.o) can now be added to the system. The camera driver module is installed in /lib/modules/2.4.18_mvl30- pc_target/kernel/driver/smartcam directory. Before using the camera driver, make sure to invoke the following commands first: 1. mknod /dev/video0 c 81 0 - creates the special file node used by the camera driver 2. ln –s /dev/video0 /dev/video - this command is optional; it simply creates a symb
Inhaltszusammenfassung zur Seite Nr. 16
XCI-SX1 SDK / SDK Technical Manual 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 of the flash driver is also installed in /usr/smartcam/src/skxflash directory. Just make to build skxflash.o. 2.5 Library Installation 2.5.1 XFree86 XFree86 is an open source X11-based desktop infrastructure that provides a clie
Inhaltszusammenfassung zur Seite Nr. 17
XCI-SX1 SDK / SDK Technical Manual Edit the /etc/ld.so.conf file and make sure the following lines exist and run ‘ldconfig’ command afterwards: • /lib • /usr/local/lib • /usr/X11R6/lib • /usr/src/linux/lib Make sure that the /dev/mouse node exists. If the said node does not exist, invoke mknod /dev/mouse c 13 63 Running ‘startx’ should be successful. To test if the mouse is properly working on X11 environment, run ‘xev’ command. Please note that the development environment has
Inhaltszusammenfassung zur Seite Nr. 18
XCI-SX1 SDK / SDK Technical Manual Make sure that all the locale requirements are present in /usr/share/i18n/locales directory and the charmap requirements are in /usr/share/i18n/charmaps directory. The created locale environments are created stored in /usr/lib/locale directory. Sometimes, this directory still needs to be created. One way to verify the support for locale environment is through the xterm command. Running the LC_CTYPE=[locale env] exterm command on the X11’s termina
Inhaltszusammenfassung zur Seite Nr. 19
XCI-SX1 SDK / SDK Technical Manual ----------------------------------------------------------- #!/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 & /etc/init.d/launch_it launche
Inhaltszusammenfassung zur Seite Nr. 20
XCI-SX1 SDK / SDK Technical Manual - runs configuration scripts with generation of shared libraries enabled 2. make clean - automatically runs configure with the default (no) options and then removes all the binary objects. 3. make - compiles the FLTK library 4. make install - copies the required files to where they should be located (to /usr/local/lib) 2.5.3 LibJPEG The JPEG library is used for converting raw images generated by the camera into jpeg format. This functional