KOH_LAPIS_camera

Installing Video Camera Drivers for LAPIS1 Semiconductor* ML7213 Board

Note: These steps should be done BEFORE installing Intel® EMGD or anything else.

1. These instructions assume that you have a fresh install of the MeeGo 1.2 IVI release set up on your system. If that is not the case, you can download the MeeGo 1.2 IVI installer from

https://meego.com/downloads/releases/1.2/meego-v1.2-in-vehicle-infotainment-ivi

Installation instructions are available from the site.

If the GUI install mode does not work, try using text install mode instead.

2. If you are getting a blank screen upon boot, press CTRL-ALT-F1 to access a terminal. You will need to modify your xorg.conf file to suit your display settings.

If you are using a 13-inch LVDS panel, use the following workaround:

Log in as root. Default password is meego.

mv /etc/X11/xorg.conf /etc/X11/xorg.conf.bac

mv /usr/share/doc/emgd-bin/emgd-cb.conf /etc/X11/xorg.conf

reboot

3. Make sure your system time is set correctly in the BIOS.

4. Open a terminal (home menu, tools, others, terminal) and su to root. Default password is meego.

5. Download the kernel source file kernel-adaptation-intel-automotive-2.6.37.6-10.5.src.rpm from
http://repo.meego.com/MeeGo/releases/1.2.0/repos/oss/source/

6. Install it with the command:

rpm -Uvh kernel-adaptation-intel-automotive-2.6.37.6-10.5.src.rpm

7. Go to the folder /root/rpmbuild/SPECS.

8. Install the following tools:

zypper in rpmdevtools make linux-firmware elfutils-libelf-devel binutils-devel newt-devel ncurses-devel libtool

9. Build the spec file:

rpmbuild -bp kernel-adaptation-intel-automotive.spec

10. Go to the folder
/root/rpmbuild/BUILD/kernel-adaptation-intel-automotive-2.6.37.6/linux-2.6.37

11. Install gcc:

zypper in gcc

Note: Do not install gcc before step 7 (rpmbuild), or rpmbuild will fail with an error message regarding NETFILTER.

12. Configure the kernel:

make menuconfig

13. In the menu selection program, select the camera module you want to support:

a. Go to the menu Device Drivers -> Multimedia Support -> Video Capture Adapters -> Select IOH VIDEO IN Device

b. Select the correct camera device for your system. If you are unsure, select OV7620.

c. Exit and save the configuration.

14. Build the kernel:

make

make modules

make modules_install

make install

15. Reboot

16. Install the EMGD drivers, libva, and GStreamer (see Installation and Installing MPlayer)

Note: You may use the LAPIS camera drivers (Lin_Camera_EMGD_1.10, obtainable from your Intel representative, or the QUAD system) or use the generic v4l2src drivers. The following instructions presume use of the LAPIS proprietary drivers.

17. Uncompress the file:

tar xvf Lin_Camera_EMGD_1.18

18. Change directories to IEMGD_LIN_CPlugin\camera\eci

19. Build and install the eci driver

chmod +x autogen.sh

./autogen.sh

./configure --prefix=/usr CFLAGS=-O2 Note: O2 = letter “O”2, not zero

make

make install

20. Change directories to IEMGD_LIN_CPlugin\camera\gst_egd_camera_src.

21. Build and install the gstreamer egdcamsrc module.

chmod +x autogen.sh

./autogen.sh

./configure --prefix=/usr CFLAGS=-O2 Note: O2 = letter “O”2, not zero

make

make install

22. Enable Video In in the BIOS:

a. Reboot.

b. Press F2 to enter the CMOS Setup page.

c. Go to Advanced, IVI IOH Options and set Digital Video Input Configuration to Enabled.

23. Encode with the following command from terminal:

gst-launch-0.10 egdcamsrc num-buffers=1800 ! video/x-raw-yuv,width=640,height=480,format=\(fourcc\)UYVY ! ffmpegcolorspace ! MixVideoEncoderH264 bit-rate=2000000 rate-control=CBR need-display=1 name=enc ! queue ! qtmux ! filesink location=~/test.H264 enc. ! vaimagesink sync=false




  1. Formerly OKI Semiconductor.



*Other names and brands may be claimed as the property of others.
Revised April 2013