Deutsch (English below) ======================= Anleitung zum Verwenden aller VM-017 Varianten im 4-lane Betrieb auf dem PHYTEC Polaris i.MX8 M Board. ====================================================================================================== Voraussetzung: - PD19.1.x, i.MX6 (phyBOARD Polaris) - min. 2GB RAM - freie microSD-CARD min. 2GB (oder SD-CARD mit Adapter auf microSD) - VM-017 Kameraboard (phyCAM-M Kabel z.B. WF271) - HDMI Monitor oder Display - Host PC, im nachfolgenden wurde ein Windowsrechner mit den Programmen: "Putty", "WinSCP" und "Win32DiskImager" verwendert. Allgemein: Damit Sie eine VM-017 auf einem Polaris 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 Polaris SDCARD 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 Patch für 4-lane Betrieb anwenden 4) Compiliere das BSP mit den VM-017 Rezepten 5) Spiele das Image auf eine microSD-Karte und starte 6) Starte die Beispielscripte Schritt 1) Auschecken des BSP PD19.1.0 für phyCORE-i.MX8 M (vision image) linux (see YOCTO BSP i.MX8 manual) ========== wechsle in folgenden Pfad: "...\\sources\meta-phytec" Schritt 2) VM-017 patch anwenden ========== kopiere den Patch "0001-add-vm-017-recipe.patch" in das Verzeichnis "...\\sources\meta-phytec" type "git apply 0001-add-vm-017-recipe.patch" (die Whitespace-Warnings ignorieren) type "bitbake virtual/kernel -c menuconfig" wähle: Device Drivers -> Multimedia support -> I2C encoders, decoder... -> OnSemi camera sensors -> <*> AR052x speichern und verlassen Schritt 3) VM-017 4-lane Patch anwenden ========== Wechsle in den Pfad "...\\sources\meta-phytec\recipes-kernel\linux\linux-imx\" kopiere den Patch "0001-change-vm-017-to-4-lane.patch" in das Verzeichnis "...\\sources\meta-phytec\recipes-kernel\linux\linux-imx\" type "chmod 755 0001-change-vm-017-to-4-lane.patch" Wechsle in den Pfad "...\sources\meta-phytec\recipes-kernel\linux" Ergänze in der Datei "linux-imx_4.14.98-phy4.bb" folgenden Eintag: "file://0001-change-vm-017-to-4-lane.patch \ " ... SRC_URI += "\ file://0001-onsemi-ar052x.patch \ file://0001-add-vm-017-support.patch \ file://0001-change-vm-017-to-4-lane.patch \ " ... Schritt 4) Erstellen des Image ========== Wechsle in den Pfad "...\\sources\meta-phytec\" type "bitbake phytec-vision-image" 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 (S1 Pos1 = on) - 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 /" - QT demo abschalten "systemctl disable phytec-qtdemo" - schalten Sie Wayland und 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-Polaris-i.MX8M_linux_PD19.1.0/Software/VM-017_cameras/SD-CARD_Image/ - Image auf microSD-Card spielen (z.B. mittels "Win32 Disk Imager") - microSD-Card einstecken und von SD booten (S1 Pos1 = 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 microSD-CARD b) oder Sie verwenden das bereitgestellte Image, welches Sie auf eine microSD-CARD 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/colcam-fbdev_1280x720.sh" * VM-017-BW-M im Verzeichnis "../gstreamer_examples/bwcam-fbdev_1280x720.sh" - Weiter Beispile finden sie im Verzeichnis: .../gstreamer_examples/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 Polaris i.MX8 M board. =============================================================================================== Requirements: - PD19.1.x, i.MX6 (phyBOARD Polaris) - minimum. 2GB RAM - empty microSD-CARD min. 2GB (or SD-CARD with adapter to microSD) - VM-017 camera board (phyCAM-M cable e.g. WF271) - 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-017 on the Polaris Board. A) Generate your own image based on our BSP and the additional recipes B) Use the ready compiled Polaris SDCARD 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 patch 3) Apply VM-017 for 4-lane oparation patch 4) Build the image with VM-017 recipes 5) Move the image on a microSD-Card and start 6) Start VM-017 demos Step 1) checkout BSP PD19.1.0 for phyCORE-i.MX8 linux (vision image) into your - path (see YOCTO BSP i.MX6 manual) ======= change to path ...\\sources\meta-phytec Step 2) apply VM-017 patch ======= copy the patch "0001-add-vm-017-recipe.patch" into the directory "... \ \ sources \ meta-phytec" type "git apply 0001-add-vm-017-recipe.patch" (ignore the whitespace warnings) type "bitbake virtual / kernel -c menuconfig" choose: Device Drivers -> Multimedia support -> I2C encoders, decoders ... -> OnSemi camera sensors -> <*> AR052x save and exit Step 3) apply VM-017 for 4-lane oparation patch ======= Change to the path "... \ \ sources \ meta-phytec \ recipes-kernel \ linux \ linux-imx \" copy the patch "0001-change-vm-017-to-4-lane.patch" into the directory "... \ \ sources \ meta-phytec \ recipes-kernel \ linux \ linux-imx \" type "chmod 755 0001-change-vm-017-to-4-lane.patch" Change to the path "... \ sources \ meta-phytec \ recipes-kernel \ linux" In the file "linux-imx_4.14.98-phy4.bb" add the following entry: "file: //0001-change-vm-017-to-4-lane.patch \" ... SRC_URI += "\ file://0001-onsemi-ar052x.patch \ file://0001-add-vm-017-support.patch \ file://0001-change-vm-017-to-4-lane.patch \ " ... Step 4) build the Image ======= Change to the path "... \ \ sources \ meta-phytec \" type "bitbake phytec-vision-image" 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 (S1 pos1 = on) - 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 demo "systemctl disable phytec-qtdemo" - disable Wayland "../gstreamer-examples/remove_qt_demo.sh" type "reboot" (restart) Step 5b) move the precompiled image from FTP ======== - download image ftp://ftp.phytec.de/pub/ImageProcessing/phyBOARD-Polaris-i.MX8M_linux_PD19.1.0/Software/VM-017_cameras/SD-CARD_Image/ - move the image on microSD-Card (e.g. via "Win32 Disk Imager") - put the microSD-Card into Polaris board and boot from SD (S1 pos1 = 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 microSD-Card b) or you have written the precompiled image from PHYTEC on microSD-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/colcam-fbdev_1280x720.sh" * VM-017-BW-M in the directory "../gstreamer_examples/bwcam-fbdev_1280x720.sh" - You can find further examples in the directory: ... / gstreamer_examples / more_ar052x_scripts / "and" ../v4l2_c-examples/ " - start the examples depend on a color or a monochrome camera is connected and registered