الفريق العربي للبرمجةأرشيف المنتديات · 2000 – 2023
نسخة أرشيفية للقراءة فقط — التسجيل والمشاركة مغلقان، والمحتوى محفوظ كما كان.

مساعده فى تركيب

بدأه tuolep في 2 نوفمبر 2009 · 11 رد · 1,857 مشاهدة · في نظام تشغيل Unix & Linux
مشاركة: واتساب X فيسبوك تيليجرام
#1 صاحب الموضوع

السلام عليكــم ورحمـة الله وبركاتــه ،،

بعد التحيه العاطره

أود من يساعدنى فى تركيب التعريف للكاميرا من

نوع a4tech

وقد بحثت فى الشبكه وتم الحصول على التعريف

ولكن تم عمل ما هوا مكتوب فى الملف المورفق التيكست

لطريقة التنصيب

ولم يجد ملفات أو يوجد منصات ناقصه لعمل الكومبلين

أنا مش عارف وسوف أرفق ما حدث فى التيرمنال

و ملف التيكست وأرجو من يكون له خبره فى طريقة التثبيت

ينور لنا الطريق

وللعلم النسخه ديبان

5.3

والله الموفق

وأنا حديث فى الينكس للعلم

loleta@debian:~$ Multimedia devices
bash: Multimedia: command not found
loleta@debian:~$ CONFIG_VIDEO_DEV=m
loleta@debian:~$ USB support
bash: USB: command not found
loleta@debian:~$ CONFIG_USB=m
loleta@debian:~$ USB Host Controller Drivers
bash: USB: command not found
loleta@debian:~$ CONFIG_USB_EHCI_HCD=m
loleta@debian:~$ CONFIG_USB_UHCI_HCD=m
loleta@debian:~$ CONFIG_USB_OHCI_HCD=m
loleta@debian:~$ Sound
bash: Sound: command not found
loleta@debian:~$ CONFIG_SOUND=y
loleta@debian:~$  Advanced Linux Sound Architecture
bash: Advanced: command not found
loleta@debian:~$ CONFIG_SND=m
loleta@debian:~$ USB devices
bash: USB: command not found
loleta@debian:~$ CONFIG_SND_USB_AUDIO=m
loleta@debian:~$ CONFIG_SND_USB_AUDIO=m

والملف للتيكست ها هوا

			  ZC0301 and ZC0301P Image Processor and Control Chip
								Driver for Linux
			  ===================================================

							   - Documentation -


Index
=====
1.  Copyright
2.  Disclaimer
3.  License
4.  Overview and features
5.  Driver installation
6.  Module loading
7.  Module parameters
8.  Supported devices
9.  Notes for V4L2 application developers
10. Contact information
11. Credits


1. Copyright
============
Copyright (C) 2006-2007 by Luca Risolia <luca.risolia@studio.unibo.it>


2. Disclaimer
=============
This software is not developed or sponsored by Z-Star Microelectronics Corp.
Trademarks are property of their respective owner.


3. License
==========
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.


4. Overview and features
========================
This driver supports the video interface of the devices mounting the ZC0301 or
ZC0301P Image Processors and Control Chips.

The driver relies on the Video4Linux2 and USB core modules of the official and
stable Linux kernels, version 2.6.19 or greater. It has been designed to run
properly on SMP systems as well.

The latest version of the ZC0301[P] driver can be found at the following URL:
http://www.linux-projects.org/

Some of the features of the driver are:

- full compliance with the Video4Linux2 API (see also "Notes for V4L2
  application developers" paragraph);
- available mmap or read/poll methods for video streaming through isochronous
  data transfers;
- automatic detection of image sensor;
- video format is standard JPEG;
- dynamic driver control thanks to various module parameters (see "Module
  parameters" paragraph);
- up to 64 cameras can be handled at the same time; they can be connected and
  disconnected from the host many times without turning off the computer, if
  the system supports hotplugging;


5. Driver installation
======================
As noted above, kernel 2.6.19 is the minimum for this driver; for it to work
properly, the driver needs kernel support for Video4Linux and USB.

The following options of the kernel configuration file must be enabled and
corresponding modules must be compiled:

	# Multimedia devices
	#
	CONFIG_VIDEO_DEV=m

	# USB support
	#
	CONFIG_USB=m

In addition, depending on the hardware being used, the modules below are
necessary:

	# USB Host Controller Drivers
	#
	CONFIG_USB_EHCI_HCD=m
	CONFIG_USB_UHCI_HCD=m
	CONFIG_USB_OHCI_HCD=m

The ZC0301 controller also provides a built-in microphone interface. It is
supported by the USB Audio driver thanks to the ALSA API:

	# Sound
	#
	CONFIG_SOUND=y

	# Advanced Linux Sound Architecture
	#
	CONFIG_SND=m

	# USB devices
	#
	CONFIG_SND_USB_AUDIO=m

Moving along to the ZC0301 driver: after having downloaded the package,
decompress and compile:

	[user@localhost home]$ tar xvzf zc0301-x.x.tar.gz
	[user@localhost home]$ cd zc0301-x.x

(where "x.x" has to be substituted with the right version of the module just
downloaded)

It is necessary to properly configure your particular kernel source tree before
compiling the driver. The modular building process is used; therefore you must
have read and write access to your kernel source tree. If not, log in as root
before running the following commands:

	[user@localhost zc0301-x.x]$ make clean
	[user@localhost zc0301-x.x]$ make modules

If the commands fail, control the Makefile and change the path to the kernel
source tree or to any other files, according to your system configuration;
then run the previous commands again.

If everything went well, the ZC0301 driver can be used either immediatly
(skip to the next paragraph) or be installed.

The driver will not be installed in the default directory reserved for modules
being built outside the kernel. This means that the possible version of the
driver present in the official Linux kernel tree might be overwritten during
the installation process.

To install the driver, run as root:

	[root@localhost zc0301-x.x]# make modules_install


6. Module loading
=================
To use the driver, it is necessary to load the "zc0301" module into memory
after every other module required: "videodev", "v4l2_common", "compat_ioctl32",
"usbcore" and, depending on the USB host controller you have, "ehci-hcd",
"uhci-hcd" or "ohci-hcd".

Loading can be done as shown below.

If the ZC0301 driver has been installed as shown in the previous
paragraph:

	[root@localhost home]# modprobe zc0301

otherwise, if you have not installed the driver, but have just compiled it,
run "insmod" indicating the path to the module; for example:

	[root@localhost zc0301-x.x]# insmod ./zc0301.ko

At this point the devices should be recognized. You can invoke "dmesg" to
analyze kernel messages and verify that the loading process has gone well:

	[user@localhost home]$ dmesg

أرجو المساعده فى تشغيل الكاميرا

حيث أنها لا يتعرف عليها البرامج

المساعده

#2

الذي فهمته هو أنك بعد أن تفك الضغط الملف ، ادخل عليه بسطر الأوامر ونفذ هذه الاوامر بالترتيب وأنت جذر :

make clean

make modules

make modules_install

بعد ذلك حمل الموديل بواسطة هذا الأمر

modprobe zc0301

إذا عمل كل شي ، اضف هذا الموديل حتى يتم تحميله كل مرة بواسطة تحرير هذا الملف :

/etc/modules

افتحه وأضف إليه هذه :

zc0301

طبعا ستحتاج أن تكون لديك الصلاحية أي أن تكون جذر

عسى أن تكون هذه المعلومات مفيدة.

#3
OMLX كتب:
الذي فهمته هو أنك بعد أن تفك الضغط الملف ، ادخل عليه بسطر الأوامر ونفذ هذه الاوامر بالترتيب وأنت جذر :

make clean

make modules

make modules_install

بعد ذلك حمل الموديل بواسطة هذا الأمر

modprobe zc0301

إذا عمل كل شي ، اضف هذا الموديل حتى يتم تحميله كل مرة بواسطة تحرير هذا الملف :

/etc/modules

افتحه وأضف إليه هذه :

zc0301

طبعا ستحتاج أن تكون لديك الصلاحية أي أن تكون جذر

عسى أن تكون هذه المعلومات مفيدة.

يا سيدى

أنا فعلاً تعبت وهذا بعد التنفيذ

وأرجو الأفاده عن الخطء

أو الأخطاء


zc0301-1.10/zc0301_pb0330.c
zc0301-1.10/zc0301_pas202bcb.c
zc0301-1.10/zc0301_core.c
zc0301-1.10/zc0301.h
zc0301-1.10/LICENSE
zc0301-1.10/Kbuild
zc0301-1.10/zc0301.txt
zc0301-1.10/Makefile
zc0301-1.10/zc0301_sensor.h
debian:/home/loleta# cd zc0301-1.10
debian:/home/loleta/zc0301-1.10# make clean
make -C /lib/modules/`uname -r`/build M=/home/loleta/zc0301-1.10 clean
make: *** /lib/modules/2.6.26-2-vserver-amd64/build: No such file or directory. Stop.
make: *** [clean] Error 2
debian:/home/loleta/zc0301-1.10# make modules
**************************************************************************
* Building Video4Linux2 driver for *
* ZC0301 and ZC0301P Image Processor and Control Chip... *
* Official Linux 2.6.19 is the minimum version for this driver. *
* Read the documentation "zc0301.txt" for more informations. *
* Type "make help" for a list of available targets. *
**************************************************************************

make -C /lib/modules/`uname -r`/build M=/home/loleta/zc0301-1.10 modules
make: *** /lib/modules/2.6.26-2-vserver-amd64/build: No such file or directory. Stop.
make: *** [modules] Error 2
debian:/home/loleta/zc0301-1.10# make modules_install
make -C /lib/modules/`uname -r`/build M=/home/loleta/zc0301-1.10 INSTALL_MOD_DIR=kernel/drivers/media/video/zc0301/ modules_install
make: *** /lib/modules/2.6.26-2-vserver-amd64/build: No such file or directory. Stop.
make: *** [modules_install] Error 2
debian:/home/loleta/zc0301-1.10# modprobe zc0301
debian:/home/loleta/zc0301-1.10# /etc/modules
bash: /etc/modules: Permission denied
debian:/home/loleta/zc0301-1.10#
debian:/home/loleta# tar xvzf zc0301-1.10.tar.gz

#4

فيما يبدو أنك لم تقم بتحميل حزمة التطويرية الخاصة بالكرنل التي تستخدمه ، ثبت حزمة kernel header الخاصة بك ثم نفذ الأوامر

#5
OMLX كتب:
فيما يبدو أنك لم تقم بتحميل حزمة التطويرية الخاصة بالكرنل التي تستخدمه ، ثبت حزمة kernel header الخاصة بك ثم نفذ الأوامر

كلامك مظبوط

ولكن برمسيون دانى

Permission denied

وهذا ما تم بعد تركيب اليبررى للكرنل


zc0301-1.10/zc0301_pb0330.c
zc0301-1.10/zc0301_pas202bcb.c
zc0301-1.10/zc0301_core.c
zc0301-1.10/zc0301.h
zc0301-1.10/LICENSE
zc0301-1.10/Kbuild
zc0301-1.10/zc0301.txt
zc0301-1.10/Makefile
zc0301-1.10/zc0301_sensor.h
loleta@debian:~$ make clean
make: *** No rule to make target `clean'. Stop.
loleta@debian:~$ tar xvzf zc0301-1.10.tar.gz
zc0301-1.10/zc0301_pb0330.c
zc0301-1.10/zc0301_pas202bcb.c
zc0301-1.10/zc0301_core.c
zc0301-1.10/zc0301.h
zc0301-1.10/LICENSE
zc0301-1.10/Kbuild
zc0301-1.10/zc0301.txt
zc0301-1.10/Makefile
zc0301-1.10/zc0301_sensor.h
loleta@debian:~$ cd zc0301-1.10
loleta@debian:~/zc0301-1.10$ make clean
make -C /lib/modules/`uname -r`/build M=/home/loleta/zc0301-1.10 clean
make[1]: Entering directory `/usr/src/linux-headers-2.6.26-2-vserver-amd64'
make[1]: Leaving directory `/usr/src/linux-headers-2.6.26-2-vserver-amd64'
rm -rf Module.symvers
loleta@debian:~/zc0301-1.10$ make modules
**************************************************************************
* Building Video4Linux2 driver for *
* ZC0301 and ZC0301P Image Processor and Control Chip... *
* Official Linux 2.6.19 is the minimum version for this driver. *
* Read the documentation "zc0301.txt" for more informations. *
* Type "make help" for a list of available targets. *
**************************************************************************

make -C /lib/modules/`uname -r`/build M=/home/loleta/zc0301-1.10 modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.26-2-vserver-amd64'
CC [M] /home/loleta/zc0301-1.10/zc0301_core.o
/home/loleta/zc0301-1.10/zc0301_core.c: In function ‘zc0301_usb_probe’:
/home/loleta/zc0301-1.10/zc0301_core.c:1989: error: ‘struct video_device’ has no member named ‘hardware’
make[2]: *** [/home/loleta/zc0301-1.10/zc0301_core.o] Error 1
make[1]: *** [_module_/home/loleta/zc0301-1.10] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.26-2-vserver-amd64'
make: *** [modules] Error 2
loleta@debian:~/zc0301-1.10$ make modules_install
make -C /lib/modules/`uname -r`/build M=/home/loleta/zc0301-1.10 INSTALL_MOD_DIR=kernel/drivers/media/video/zc0301/ modules_install
make[1]: Entering directory `/usr/src/linux-headers-2.6.26-2-vserver-amd64'
DEPMOD 2.6.26-2-vserver-amd64
make[1]: Leaving directory `/usr/src/linux-headers-2.6.26-2-vserver-amd64'
loleta@debian:~/zc0301-1.10$ /etc/modules
bash: /etc/modules: Permission denied
loleta@debian:~/zc0301-1.10$ su
Password:
debian:/home/loleta/zc0301-1.10# /etc/modules
bash: /etc/modules: Permission denied
debian:/home/loleta/zc0301-1.10#
loleta@debian:~$ tar xvzf zc0301-1.10.tar.gz

وشكراً للمرور الكريم

ونرجو لو فى حل أخر

أو من يعرف شىء عن الموضوع

لأنى جديد وفى نفس الوقت

لسه تعريف البرينتر

فأرجو المساعده

#6

استخدم أبونتو أفضل لأنه يوجد دعم لها أكبر ،،

#7
OMLX كتب:
استخدم أبونتو أفضل لأنه يوجد دعم لها أكبر ،،

سيدى الفاضل

المشرف العزيز

لماذا نحن الأوائل فى التخلف

لأننا لا نحاول كسر الغير معروف

ومن يحاول فلا نحمسه أو أقل شىء ألا

تكسر عزيمته

وهذا قيل لى فى الويندوز

عندما حاولت السؤال عن مدا أمكنية عمل ويندوز بدون برامج

فقيل لى هذا أصعب شىء وعيوبه كثيره

والعرب وتحطيم النفس

وقد تم والحمد الله عملتو وكان أول شرح لعربى

لطريقة صنع ويندوز بدون برامج

وعلى هذا أطلب من كل من يحاول المساعده

أن لا يثنينى عن ماأريد

فهذا أقل دعم ممكن

وأنا أبحث فى المنتديات الأجنبيه

والعربيه

وأحاول ومن وجهة نظرى

أن الديبان هيا أقوا توزيعات لينكس

وأتأسف أذا كان ردى لا يعجب البعض

وأتمنا من كل من يجيد الأنجليزيه خيراً منى

البحث معى وهذا ليس لشخصى ولكن

لكل من يجد الصعوبه وهوا يحاول لعل وعسا أن يكون هذا الموضوع مرجعاً

لعدم أثنائه عن موراده

وأتمنا العلاا للعرب

تم تعديل هذه المشاركة بواسطة tuolep في 9 نوفمبر 2009 في 20:08

#8

يا أخي الUbuntu في النهاية نسخة محسنة من Debian للاستخدام المنزلي أو على الأجهزة المحمولة و توفر الكثير من التعريفات التي تواجه مشاكلها على Debian حالياً

و ملحوظة جانبية, يبدو أن لديك مشكلة مع الألف المقصورة فأنت تكتب كلمات مثل

أقوا و صحيحها "أقوى"

عسا و صحيحها "عسى"

أتمنا و صحيحها "أتمنى"

بالاضافة الى اخطاء اكبر مثل

امكنية و صحيحها "إمكانية"

عملتو و صحيحها "عملته"

هوا و صحيحها "هو"

موراده و صحيحها "مُراده"

كما أن التوزيعة اسمها ديبيان Debian و ليس ديبان

تم تعديل هذه المشاركة بواسطة motamayez في 9 نوفمبر 2009 في 20:34

مصري في بلاد الفرنجة.

قريباً اقرأ مقالاتي على It-scoop

#9

أخي العزيز الذي أعرفه شاركتك به ، ولا أملك الجهاز الذي عندك حتى اعطيك التفاصيل ، أنا فقط أخبر بالخطوات المكتوبة ، وانت بعدك مبتدئ في عالم اللينكس ما تفرق بين الأوامر وتبي شرح مفصل.

صدقني لو عندي الحل كان خبرتك من فترة ولن يبخل عليك أحد ، ولكن أنت تستخدم توزيعة دبيان و الدعم الفني العربي قليل عليها ، وبما أنك عندك اللغة الانجليزية فادخل على قنوات الدعم المباشر IRC لتوزيعة دبيان وبيجاوبك بسرعة كبيرة.

#10

ماهي ال permission للمجلد /etc/modules ؟

ls -lh /etc | grep modules

قد يكون هناك تعديل على المجلد حتى root ليس لديه صلاحيات ال execution ..

عموما لتقطع الشك باليقين إذهب وإكتب الأمر :

chomd 777 -R /etc/modules

وجرب تنفيذ السكربت من جديد .

*إضافة: يبدو أنه ملف وليس مجلد , المهم نفذ ال chmod وجرب

banner_60_468.gif

NOTHING IS IMPOSSIBLE

#11
HGB كتب:
ماهي ال permission للمجلد /etc/modules ؟

ls -lh /etc | grep modules

قد يكون هناك تعديل على المجلد حتى root ليس لديه صلاحيات ال execution ..

عموما لتقطع الشك باليقين إذهب وإكتب الأمر :

chomd 777 -R /etc/modules

وجرب تنفيذ السكربت من جديد .

*إضافة: يبدو أنه ملف وليس مجلد , المهم نفذ ال chmod وجرب

سيدى الفاضل مشكور

وسوف أقوم بلتجربه

ولكنى سوف أتغيب بعض الوقت

وأرجع لأضيف الرد

لينفع من بعدى

وقد قمت

بتركيب المكتبات v4l

وقد وصلت ألى مراحل جيده ولكن

لم أوفق حتى اﻷن

#12
OMLX كتب:

أخي العزيز الذي أعرفه شاركتك به ، ولا أملك الجهاز الذي عندك حتى اعطيك التفاصيل ، أنا فقط أخبر بالخطوات المكتوبة ، وانت بعدك مبتدئ في عالم اللينكس ما تفرق بين الأوامر وتبي شرح مفصل.

صدقني لو عندي الحل كان خبرتك من فترة ولن يبخل عليك أحد ، ولكن أنت تستخدم توزيعة دبيان و الدعم الفني العربي قليل عليها ، وبما أنك عندك اللغة الانجليزية فادخل على قنوات الدعم المباشر IRC لتوزيعة دبيان وبيجاوبك بسرعة كبيرة.

أولاً

مشكور لسعة صدركم والموشاركه البنائه

والتعاون المستحب بين الأخوه وعلى رأسهم المشرف العزيز

بعد التجارب والأنقطاع والبحث

فهذا ما تم

تركيب جميع المكتبات الأتيه

config

kernel header

modul

ومككتبات كثيره

وبعد كله ما تم تم التعرف

على الكاميرا أتوماتيك

بدون أى تعريف

وفعلاً debian

هيا أفضل شىء

ولكن بلعزم والجديه لن ترا مثلها

فأنا أوصى بها لكل من يريد أن يرا الثبات والقوه

مواضيع مشابهة