Deutsch (English below) ======================= Anleitung zum Verwenden der VM-006 bzw. VM-008, im PD20.1.0 phyCORE-i.MX6 Nunki Board ===================================================================================== Voraussetzung: - PD20.1.x, i.MX6 (phyBOARD Nunki) - min. 1GB RAM - freie microSD-CARD min. 2GB (oder SD-CARD mit Adapter auf microSD) - VM-006 Kameraboard bzw. VM-008 Konverter (phyCAM-P Kabel z.B. WF043) - HDMI Monitor oder Display - Host PC, im nachfolgenden wurde ein Windowsrechner mit den Programmen: "Putty", "WinSCP" und "Win32DiskImager" verwendet. Allgemein: Damit Sie eine VM-006/VM-008 mit einem Nunki Board verwenden können, benötigen Sie ein BSP in dem der entsprechende Kameratreiber enthalten ist. Dazu gibt es folgende Möglichkeiten: A) Generieren Sie ein eigenes Image auf Basis unseres BSPs und dem zusätzlichen Patch B) Nutzen Sie unser fertig compiliertes Nunki SDCARD Image mit VM-006/VM-008 Treiber (In diesem Fall starten Sie bei Punkt 5b) Schritte: 1) BSP vom PHYTEC Server auschecken 2) VM-006/VM-008 Patch anwenden 3) VM-006/VM-008 Maschine auswählen 4) Compiliere das BSP mit den VM-006/VM-008 Patches 5) Spiele das Image auf eine microSD-Karte 6) Starte die Beispielscripte Schritt 1) Auschecken des Linux BSP =================================== - Vorgehen entsprechend L-813e Yocto Reference Manual (www.phytec.de) - verwende das phyCORE-i.MX6 Nunki BSP PD20.1.0, phyboard-nunki-imx6-1 (phytec-vision-image) Schritt 2) VM-006/VM-008 Patch anwenden ======================================= - wechsle in den folgenden Pfad: "...\\sources\meta-phytec" - kopiere folgenden Patch in das Verzeichnis "...\\sources\meta-phytec" * 0001-linux-mainline-imx6-Add-VM-006-VM-008-on-Mira-and-Nu.patch - type "git am 0001-linux-mainline-imx6-Add-VM-006-VM-008-on-Mira-and-Nu.patch" (die Whitespace-Warnings ignorieren) Schritt 3) VM-006 / VM-008 Maschine auswählen ============================================= öffne Datei ...\build\conf\local.conf Eintrag bearbeiten: - MACHINE ?= "phyboard-nunki-imx6-1" Ändern in: - MACHINE ?= "phyboard-nunki-imx6-vm-006" # activate VM-006 at phyCAM-P (parallel) CSI0@0x5D oder - MACHINE ?= "phyboard-nunki-imx6-vm-008" # activate VM-008 at phyCAM-P (parallel) CSI0@0x45 Schritt 4) Compilieren ====================== - wechsle in den folgenden Pfad: "...\\build" - type "bitbake phytec-vision-image" Hinweis: Soll nur ein neuer devicetree für VM-006 oder VM-008 generiert werden, dann müssen folgende Schritte durchgeführt werden: - Maschine auswählen, siehe Schritt 3 - type "bitbake linux-mainline" - den neu generierten oftree auf der microSD-CARD austauschen Schritt 5a) Selbst compiliertes Image verwenden =============================================== - Selbst compiliertes Image auf microSD-Card spielen (z.B. mittels "Win32 Disk Imager") - microSD-Card einstecken und von SD booten (S2 Pos1 = on) - nach dem durchbooten als root anmelden, type "root" (z.B. mittels "Putty") - schalten Sie X11 und QT mittels "../gstreamer-examples/remove_qt_demo.sh" ab - Netzwerkeinstellungen konfigurieren (../lib/systemd/network/10-eth0.network) - type "reboot" (neustart) und erneut anmelden - Datei "vm-006_vm-008_examples.tar" in den Ordner "../home/root/" spielen. (z.B. via Netzwerk mittels "WinSCP") - Attribute setzen und auspacken: type "chmod 755 vm-006_vm-008_examples.tar" type "tar -xvf vm-006_vm-008_examples.tar -C /" - type "reboot" (neustart) Schritt 5b) Vorkompiliertes Image vom FTP verwenden =================================================== - Image downloaden ftp://ftp.phytec.de/pub/ImageProcessing/phyBOARD-Nunki-i.MX6_linux_PD20.1.x/Software/VM-006_VM-008_cameras/SD-CARD_Image/ - Image auf microSD-Card spielen (z.B. mittels "Win32 Disk Imager") - microSD-Card einstecken und von SD booten (S2 Pos1 = on) - Netzwerkeinstellungen konfigurieren (../lib/systemd/network/10-eth0.network) - type "reboot" (neustart) Schritt 6) Starten der Beispiel-Scripte ======================================= Voraussetzung: a) das von Ihnen erstellte BSP mit der VM-006/VM-008 befindet sich auf einer microSD-CARD (Schritt 6a) b) oder Sie verwenden das bereitgestellte Image (Schritt 6b), welches Sie auf eine microSD-CARD spielen (z.B. via Netzwerk mittels "WinSCP") - starten Sie das System und melden sich an, type "root" (z.B. mittels "Putty") - gehen Sie in das Verzeichnis ../gstreamer_examples/ - Testen Sie die Kamera mittels der Beispielen: * VM-006 im Verzeichnis "../gstreamer_examples/more_mt9m001_scripts/" * VM-008 im Verzeichnis "../gstreamer_examples/more_tw9910_scripts/" - Weiter Beispiele finden sie im Verzeichnis: .../v4l2_c-examples/" Starten Sie die Beispiele in Abhängigkeit ob Sie eine Farb- oder Monochrome Kamera angeschlossen und angemeldet haben. --------------------------------------------------------------------------------------------------------------------- English ======= How to install and start VM-006/VM-008 camera series on a PHYTEC Nunki i.MX6 board with PD20.1.0 ================================================================================================ Requirements: - PD20.1.x, i.MX6 (phyBOARD Nunki) - minimum. 1GB RAM - empty microSD-CARD min. 2GB (or SD-CARD with adapter to microSD) - VM-006 camera board or VM-008 NTSC/PAL converter (phyCAM-P cable e.g. WF043) - HDMI monitor or display - Host PC, in the following a Windows computer with the programs: "Putty", "WinSCP" and "Win32DiskImager" was used General: This tutorial shows you the following ways to work with VM-006/VM-008 on the Nunki Board: A) Generate your own image based on our BSP with the additional patches B) Use the ready compiled Nunki SDCARD image with VM-006/008 driver (In these case starts at Point 5b) Steps: 1) Check out the BSP from PHYTEC server 2) Apply VM-006/VM-008 patch 3) Choose VM-006/VM008 machine 4) Build the image with VM-006/VM-008 patches 5) Move the image on a microSD-Card 6) Start VM-006/VM-008 example scripts Step 1) checkout linux BSP ========================== - please read L-813e Yocto Reference Manual (www.phytec.de) - use phyCORE-i.MX6 Nunki BSP PD20.1.0, phyboard-nunki-imx6-1 (phytec-vision-image) Step 2) apply VM-006/VM-008 patch ================================= - change to path ...\\sources\meta-phytec - copy the followung patch into the directory "... \ \ sources \ meta-phytec" * 0001-linux-mainline-imx6-Add-VM-006-VM-008-on-Mira-and-Nu.patch - type "git am 0001-linux-mainline-imx6-Add-VM-006-VM-008-on-Mira-and-Nu.patch" (ignore the whitespace warnings) Step 3) choose VM-006/VM-008 machine ==================================== open file ...\build\conf\local.conf change line: - MACHINE ?= "phyboard-nunki-imx6-1" change in: - MACHINE ?= "phyboard-nunki-imx6-vm-006" # activate VM-006 at phyCAM-P (parallel) CSI0@0x5D or - MACHINE ?= "phyboard-nunki-imx6-vm-008" # activate VM-008 at phyCAM-P (parallel) CSI0@0x45 Step 4) build the Image ======================= - change to the path "...\\build" - type "bitbake phytec-vision-image" Note: If only a new device tree is to be generated for VM-006 or VM-008, the following steps must be carried out: - select the machine, see step 3 - type "bitbake linux-mainline" - exchange the newly generated oftree on the microSD-CARD Step 5a) move your self compiled image on microSD-Card ====================================================== - move your self compiled image on microSD-Card (e.g. via "Win32 Disk Imager") - put the microSD-Card into Nunki board and boot from microSD (S2 pos1 = on) - turn on the system and authorized you, type "root", (eg via "Putty") - disable X11 and QT demo with "../gstreamer-examples/remove_qt_demo.sh" - set network access (../lib/systemd/network/10-eth0.network) - type "reboot" (restart) and authorized you new - move file "vm-006_vm-008_examples.tar" into the path ../home/root/ (eg via network with "WinSCP") - set attributes and extract files: type "chmod 755 vm-006_vm-008_examples.tar.tar" type "tar -xvf vm-006_vm-008_examples.tar -C /" - type "reboot" (restart) Step 5b) move the precompiled image from FTP on microSD-Card ============================================================ - download image ftp://ftp.phytec.de/pub/ImageProcessing/phyBOARD-Nunki-i.MX6_linux_PD20.1.x/Software/VM-006_VM-008_cameras/SD-CARD_Image/ - move the image on microSD-Card (e.g. via "Win32 Disk Imager") - put the microSD-Card into Nunki board and boot from SD (S2 pos1 = on) - set network access (../lib/systemd/network/10-eth0.network) - type "reboot" (restart) Step 6) Start example scripts ============================= Requirements: a) the self compiled image with VM-006/VM-008 driver on a microSD-Card (step 6a) b) or you have written the precompiled image from PHYTEC (step 6b), on microSD-CARD (e.g. via network with "WinSCP") - turn on the system and authorized you, type "root", (eg via "Putty") - change into path ../gstreamer_examples/ - Test the camera using the examples: * VM-006 in the directory "../gstreamer_examples/more_mt9m001_scripts/" * VM-008 in the directory "../gstreamer_examples/more_tw9910_scripts/" - You can find further examples in the directory: "../v4l2_c-examples/" - start the examples depend on a color or a monochrome camera is connected and registered