S3c2410-linux realizes network video monitoring function

Source: Internet
Author: User
Tags parse error
S3c2410-linux to achieve network video monitoring functions-Linux Enterprise Application-Linux server application information, the following is read details. I have been working on a network video monitoring project for the past two days. I implemented it on the X86 platform two days ago. I have been thinking about how to port it to the s3c2410 Development Board since yesterday. Because all the information on this board is lost, it would be troublesome to port all the stuff such as u-boot and kernel from the beginning. Finally, I would like to find a simple method: the kernel version on the board is 2.4.18-rmk7-pxa1, I went online to a 2.4.18 kernel and a for arm patch, by compiling the kernel to generate your own camera driver module, copy the driver module to the Development Board and load the module.

Load camera driver

Download kernel patch and camera driver patch http://ftp.linux.org.uk/pub/linu... tch-2.4.18-rmk7.bz2 (kernel patch) http://mxhaard.free.fr/spca50x/e... 31LE06.patch.tar.gz (camera driver spca5xx patch)

Modify the kernel patch version to open the patch-2.4.18-rmk7 file

+ EXTRAVERSION =-rmk7

Change

+ EXTRAVERSION =-rmk7-pxa1

We have already said that the kernel version number on the board is-rmk7-pxa1, so we need to change it here, otherwise the kernel version number is inconsistent when loading the module

Linux Kernel Patch cd linux-2.4.18

Patch-p1 <../patch-2.4.18-rmk7


Camera driver patch cd linux-2.4.18/drivers/usb

Patch-p1 <.../usb-2.4.31.patch

Two errors will occur here. The solution is as follows:

Subdir-$ (CONFIG_USB_SPCA5XX) + = spca5xx

Ifeq ($ (CONFIG_USB_SPCA5XX), y)

Obj-y + = spca5xx/spca5xx. o

Endif

Add to Makefile

In the Config. in. rej file

Dep_tristate 'usb SPCA5XX Sunplus Vimicro Sonix Cameras 'CONFIG_USB_SPCA5XX $ CONFIG_USB $ CONFIG_VIDEO_DEV

Add to the Config. in File


Compile the kernel, open the Makefile file

ARCH: = $ (shell uname-m | sed-e s/I .86/i386/-e s/sun4u/sparc64/-e s/arm. */arm/-e s/sa110/arm /)

CROSS_COMPILE =

Change

ARCH: = arm

CROSS_COMPILE =/usr/local/arm/2.95.3/bin/arm-linux-

Only version 2.95.3 can be used here.

"Arm-linux-ld: arch/arm/kernel/vmlinux. lds: 799: parse error

Make: *** [. tmp_vmlinux1]"

Error

Kernel configuration

Make menuconfig

You only need to select two places here:

Multimedia device --->

Video for linux

USB support --->

Support for USB

--- USB Multimedia devices

USB SPCA5XX Sunplus Vimicro Sonix Cameras

These options must be M

Then make dep & make modules. Because we don't need the kernel image file, we just need to save make zIamge.


The required node o files may need four node o files: spca5xx. o, spca_core.o, spcadecoder. o, and videodev. o.

Linux-2.4.18/driver/usb/spca5xx files are: spca5xx. o, spca_core.o, spcadecoder. o

Linux-2.4.18/driver/media/video files are: videodev. o

There are four methods to copy files to the Development Board:

1) use USB flash drives and other mobile devices

2) use the NFS service

3) use FTP service

4) use Apache + wget


Loading module insod videodev. o

A video0 device file is generated in the/dev directory.

Insod spca5xx. o

If the following information is displayed, the operation is successful:

Usb. c: registered new driver spca5xx

Spca_core.c: spca5xx driver 00.57.06LE registered
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.