Deutsch (English below) ======================= Anleitung zum Verwenden aller VM-017 Varianten im 4-lane Betrieb auf dem PHYTEC Nunki i.MX6 Board ================================================================================================= Voraussetzung: - PD18.1.2, i.MX6 (phyBOARD Nunki) - min. 2GB RAM - SD-Card min. 2GB - VM-017 Kameraboard (phyCAM-M Kabel z.B. WF271) Allgemein: Damit Sie eine VM-017 auf einem Nunki Board verwenden können, benötigen Sie ein BSP in dem der Kameratreiber für die VM-017-Serie enthalten ist. Dazu gibt es folgende Möglichkeiten. A) Generieren Sie eine eigenen Image auf Basis unseres BSPs und den zusätzlichen Patches B) Nutzen Sie unser fertig compiliertes Nunki SD-Card Image mit VM-017 Treiber (In diesem Fall starten Sie bei Punkt 5b) Schritte: 1) BSP vom PHYTEC Server auschecken 2) VM-017 Patch anwenden 3) VM-017 aktivieren 4) Compiliere das BSP mit den VM-017 Rezepten 5) Spiele das Image auf eine SD-Karte 6) Starte die Beispielscripte Schritt 1) Auschecken des BSP PD18.1.2 für phyCORE-i.MX6 Nunki (vision image) linux (see YOCTO BSP i.MX8 manual) ========== wechsle in folgenden Pfad: "...\\sources\meta-yogurt" Schritt 2) VM-017 patches anwenden ========== kopiere folgende Patches in das Verzeichnis "...\\sources\meta-yogurt" * 0001-add-vm016-recipes.patch * 0002-vm016-linux-add-vm017-patch.patch * 0003-vm016-barebox-add-vm017-support.patch type "git apply 0001-add-vm016-recipes.patch" (die Whitespace-Warnings ignorieren) type "git apply 0002-vm016-linux-add-vm017-patch.patch" (die Whitespace-Warnings ignorieren) type "git apply 0003-vm016-barebox-add-vm017-support.patch" (die Whitespace-Warnings ignorieren) Schritt 3) VM-017 aktivieren ========== type "bitbake virtual/kernel -c menuconfig" wähle: Device Drivers -> Multimedia support -> I2C encoders, decoder... -> OnSemi camera sensors -> AR052x speichern und verlassen Schritt 4) Erstellen des Image ========== Wechsle in den Pfad "...\\sources\meta-yogurt\" type "bitbake phytec-vision-image" Schritt 5a) Selbst compiliertes Image verwenden =========== - Selbst compiliertes Image auf SD-Card spielen (z.B. mittels "Win32 Disk Imager") - SD-Card einstecken und von SD booten (S2 = on) - Kamera anmelden (siehe Dokument "phyCAM_with_phyBOARD-Nunki-iMX6_Getting_Started_Ax", ftp://ftp.phytec.de/pub/ImageProcessing/phyBOARD-Nunki-i.MX6_linux_PD18.1.x/Dokumentation/) "of_camera_selection -a 0x36 -b phyCAM-M VM-017 -A 0x36" - Netzwerkverbindung herstellen (../lib/systemd/network/...) - Datei "vm-017_examples.tar" in den Ordner ../home/root/ spielen. - Attribute setzen und auspacken: type "chmod 755 vm-017_examples.tar" type "tar -xvf vm-017_examples.tar -C /" - schalten Sie QT mittels "../gstreamer-examples/remove_qt_demo.sh" ab (systemctl disable phytec-qtdemo) type "reboot" (neustart) Schritt 5b) Vorkompiliertes Image vom FTP verwenden. =========== - Image downloaden ftp://ftp.phytec.de/pub/ImageProcessing/phyBOARD-Nunki-i.MX6_linux_PD18.1.x/Software/VM-017_cameras/SD-CARD_Image/ - Image auf SD-Card spielen (z.B. mittels "Win32 Disk Imager") - SD-Card einstecken und von SD booten (S2 = on) - Netzwerkverbindung herstellen (../lib/systemd/network/...) Schritt 6) Starten der Scripte ========== Voraussetzung: a) das von Ihnen erstellte BSP mit der VM-017 befindet sich auf einer SD Karte b) oder Sie verwenden das bereitgestellte Image, welches Sie auf eine SD Karte spielen (z.B. mittels WinSCP) - starten Sie das System und melden sich an ("root") - gehen Sie in das Verzeichnis ../gstreamer_examples/ - Aktivieren Sie die Defectpixelkorrektur, type "./enable_defect_pixel_correction.sh" - Testen Sie die Kamera mittels den Beispielen: * VM-017-COL-M im Verzeichnis "../gstreamer_examples/phycam-m_mipi_csi-2/colcam-fbdev_1280x720.sh" * VM-017-BW-M im Verzeichnis "../gstreamer_examples/phycam-m_mipi_csi-2/bwcam-fbdev_1280x720.sh" - Weiter Beispile finden sie im Verzeichnis: .../gstreamer_examples/phycam-m_mipi_csi-2/more_ar052x_scripts/" und "../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-017 camera series in 4-lane mode on a PHYTEC Nunki i.MX6 board. =========================================================================================== Requirements: - PD18.1.2, i.MX6 (phyBOARD Nunki) - minimum. 2GB RAM - SD card min. 2GB - VM-017 camera board (phyCAM-M cable e.g. WF271) General: This tutorial shows you the following ways to work with VM-017 on the Nunki Board. A) Generate your own image based on our BSP and the additional recipes B) Use the ready compiled Nunki SD-Card image with VM-017 driver (In these case starts at Point 5b) -------------------------------------------- Steps: 1) Check out the BSP from PHYTEC server 2) Apply VM-017 patches 3) Activate VM-017 4) Build the image with VM-017 recipes 5) Move the image on a SD-Card 6) Start VM-017 sample scripts Step 1) checkout BSP PD18.1.2 for phyCORE-i.i.MX6 Nunki (vision image) linux into your - path (see YOCTO BSP i.MX6 manual) ======= change to path ...\\sources\meta-phytec Step 2) apply VM-017 patches ======= copy the following patches into the directory "... \ \ sources \ meta-yogurt" * 0001-add-vm016-recipes.patch * 0002-vm016-linux-add-vm017-patch.patch * 0003-vm016-barebox-add-vm017-support.patch type "git apply 0001-add-vm016-recipes.patch" (ignore the whitespace warnings) type "git apply 0002-vm016-linux-add-vm017-patch.patch" (ignore the whitespace warnings) type "git apply 0003-vm016-barebox-add-vm017-support.patch" (ignore the whitespace warnings) Step 3) activate VM-017 ======= type "bitbake virtual / kernel -c menuconfig" choose: Device Drivers -> Multimedia support -> I2C encoders, decoders ... -> OnSemi camera sensors -> AR052x save and exit Step 4) build the Image ======= Change to the path "... \ \ sources \ meta-yogurt \" type "bitbake phytec-vision-image" Step 5a) move your self compiled image on SD-Card ======== - move your self compiled image on SD-Card (e.g. via "Win32 Disk Imager") - put the SD-Card into Nunki board and boot from SD (S2 = on) - select the right camera (see document "phyCAM_with_phyBOARD-Nunki-iMX6_Getting_Started_Ax", ftp://ftp.phytec.de/pub/ImageProcessing/phyBOARD-Nunki-i.MX6_linux_PD18.1.x/Dokumentation/) "of_camera_selection -a 0x36 -b phyCAM-M VM-017 -A 0x36" - set network access (../lib/systemd/network/...) - Move file "vm-017_examples.tar" into the path ../home/root/ - set attributes and extract files: type "chmod 755 vm-017_examples.tar" type "tar -xvf vm-017_examples.tar -C /" - disable QT via "../gstreamer-examples/remove_qt_demo.sh" type "reboot" (restart) Step 5b) move the precompiled image from FTP on SD-CARD ======== - download image ftp://ftp.phytec.de/pub/ImageProcessing/phyBOARD-Nunki-i.MX6_linux_PD18.1.x/Software/VM-017_cameras/SD-CARD_Image/SD-CARD_Image/ - move the image on SD-Card (e.g. via "Win32 Disk Imager") - put the SD-Card into Nunki board and boot from SD (S2 = on) - set network access (../lib/systemd/network/...) Step 6) start the demo scripts ======= Requirements: a) the self compiled image with VM-017 driver on a SD-Card b) or you have written the precompiled image from PHYTEC on SD-CARD (eg via WinSCP). - turn on the system and authorized you ("root") - change into path ../gstreamer_examples/ - Activate the defect pixel correction, type "enable_defect_pixel_correction.sh" - Test the camera using the examples: * VM-017-COL-M in the directory "../gstreamer_examples/phycam-m_mipi_csi-2/colcam-fbdev_1280x720.sh" * VM-017-BW-M in the directory "../gstreamer_examples/phycam-m_mipi_csi-2/bwcam-fbdev_1280x720.sh" - You can find further examples in the directory: ... /gstreamer_examples/phycam-m_mipi_csi-2/more_ar052x_scripts / "and" ../v4l2_c-examples/ " - start the examples depend on a color or a monochrome camera is connected and registered