Deutsch (English below) ======================= Anleitung zum Verwenden aller VM-017 Varianten im 4-lane Betrieb, im PD20.1.0 auf dem PHYTEC Nunki i.MX6 Board ============================================================================================================== Voraussetzung: - PD20.1.0, i.MX6 (phyBOARD Nunki) - min. 1GB 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" verwendet. 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 ein eigenes 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 Patchs 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 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-017 Patches anwenden ================================== - wechsle in den folgenden Pfad: "...\\sources\meta-phytec" - kopiere folgenden Patch in das Verzeichnis "...\\sources\meta-phytec": * 0001-add_vm017.patch - type "git apply 0001-add_vm017.patch" (die Whitespace-Warnings ignorieren) - type "bitbake virtual/bootloader -c devshell" mit verlassen - wechsle in den folgenden Pfad: "\build\tmp\work\phyboard_nunki_imx6_1-phytec-linux-gnueabi\barebox\2019.11.0-phy2-r7.0\git" - kopiere folgenden Patch in das Verzeichnis "\build\tmp\work\phyboard_nunki_imx6_1-phytec-linux-gnueabi\barebox\2019.11.0-phy2-r7.0\git": * 0001-Add_VM-017_in_bootloader.patch - type "git apply 0001-Add_VM-017_in_bootloader.patch" Schritt 3) VM-017 aktivieren ============================ - wechsle in den folgenden Pfad: "...\\build" - 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 Images =============================== - wechsle in den folgenden Pfad: "...\\build" - type "bitbake phytec-vision-image" Schritt 5a) Selbst compiliertes Image verwenden =============================================== - Selbst compiliertes Image auf eine microSD-Card spielen (z.B. mittels "Win32 Disk Imager") - microSD-Card einstecken und von SD booten (S2 = on) - starten Sie das System und gehe in den bootloader (z.B. mittels "Putty" duch drücken der Leertaste) - Kamera im Bootloader anmelden (siehe Dokument "phyCAM_with_phyBOARD-Nunki-iMX6_Getting_Started_Ax", ftp://ftp.phytec.de/pub/ImageProcessing/phyBOARD-Nunki-i.MX6_linux_PD20.1.x/Dokumentation/) "of_camera_selection -a 0x36 -b phyCAM-M VM-017 -A 0x36" - 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 - Netzwerkverbindung herstellen (.../lib/systemd/network/10-eth0.network) - type "reboot" (neustart) - Datei "vm-017_examples.tar" in den Ordner .../home/root/ spielen (z.B. via Netzwerk mittels "WinSCP") - Attribute setzen und auspacken: type "chmod 755 vm-017_examples.tar" type "tar -xvf vm-017_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-017_cameras/SD-CARD_Image/ - Image auf SD-Card spielen (z.B. mittels "Win32 Disk Imager") - microSD-Card einstecken und von SD booten (S2 = on) - starten Sie das System und melden sich an, type "root" (z.B. mittels "Putty") - Netzwerkeinstellungen konfigurieren (.../lib/systemd/network/10-eth0.network) - type "reboot" (neustart) Schritt 6) Starten der Scripte ============================== Voraussetzung: a) das von Ihnen erstellte BSP mit der VM-017 befindet sich auf einer microSD-Card (Schritt 5a) b) oder Sie verwenden das bereitgestellte Image (Schritt 5b), welches Sie auf eine microSD-Catd spielen (z.B. mittels "Win32DiskImager") - VM-017 Kamera an phyCAM-M Port anstecken - starten Sie das System und melden sich an, type "root" (z.B. mittels "Putty") - 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 Beispiele 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 with PD20.1.0 ======================================================================================================== Requirements: - PD20.1.0, i.MX6 (phyBOARD Nunki) - minimum. 1GB RAM - free 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 camera 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 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-017 patches ============================ - change to path ...\\sources\meta-phytec - copy the following patches into the directory "... \\sources\meta-phytec" * 0001-add_vm017.patch - type "git apply 0001-add_vm017.patch" (ignore the whitespace warnings) - type "bitbake virtual/bootloader -c devshell" and leave it with - change to the path: "\build\tmp\work\phyboard_nunki_imx6_1-phytec-linux-gnueabi\barebox\2019.11.0-phy2-r7.0\git" - copy the following patch into the directory "\build\tmp\work\phyboard_nunki_imx6_1-phytec-linux-gnueabi\barebox\2019.11.0-phy2-r7.0\git": * 0001-Add_VM-017_in_bootloader.patch - type "git apply 0001-Add_VM-017_in_bootloader.patch" Step 3) activate VM-017 ======================= - change to path ...\\build - 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 path ...\\build - 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 SD (S2 = on) - turn on the system up to the bootloader, break the bootsequence with (e.g. via "putty") - 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_PD20.1.x/Dokumentation/) "of_camera_selection -a 0x36 -b phyCAM-M VM-017 -A 0x36" - turn on the system and authorized you "root" - disable QT via "../gstreamer-examples/remove_qt_demo.sh" - set network access (../lib/systemd/network/10-eth0.network) - type "reboot" (restart) - Move file "vm-017_examples.tar" into the path ../home/root/ (eg via network and "WinSCP" program) - set attributes and extract files: type "chmod 755 vm-017_examples.tar" type "tar -xvf vm-017_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-017_cameras/SD-CARD_Image/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 = on) - turn on the system and authorized you "root" (e.g. via "Putty") - set network access (../lib/systemd/network/10-eth0.network) - type "reboot" (restart) Step 6) start the demo scripts ============================== Requirements: a) the self compiled image with VM-017 driver on a microSD-Card (step 5a) b) or you have written the precompiled image (step 5b) from PHYTEC on microSD-Card (e.g. via "WinSCP"). - put the camera VM-017 at phyCAM-M port - 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