Outils pour utilisateurs

Outils du site


nvidia_jetson_nano

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
nvidia_jetson_nano [2019/06/24 19:25] – [Yolo V3 Darknet] sergenvidia_jetson_nano [2020/12/27 15:14] (Version actuelle) serge
Ligne 1: Ligne 1:
 ====== Nvidia Jetson Nano ====== ====== Nvidia Jetson Nano ======
-=====Ce qui ne marche pas===== +<WRAP center round box 60% centeralign> 
-====Problèmes==== +**{{tagpage>ia|Intelligence Artificielle}}**     **[[http://translate.google.com/translate?hl=&sl=auto&tl=en&u=https%3A%2F%2Fressources.labomedia.org%2Fnvidia_jetson_nano|English Version]]** 
-  Impossible d'installer opencv avec pip +</WRAP> 
-  Avec python3-opencv des dépôts, conflit GTK3 et GTK2 avec darknet +<WRAP center round box 60% centeralign> 
-====Ressources==== +**[[les_pages_intelligence_artificielle_en_details|Les Pages Intelligence Artificielle en détails]]** 
-  https://www.pyimagesearch.com/2018/05/28/ubuntu-18-04-how-to-install-opencv/ +</WRAP>
-  * https://github.com/opencv/opencv_contrib/commit/db51dca45ca381878e202108a272f7a85bd17667 +
-  https://github.com/milq/milq/blob/master/scripts/bash/install-opencv.sh +
-  * https://www.pyimagesearch.com/2018/09/19/pip-install-opencv/+
  
 +<WRAP group>
 +<WRAP half column>
 +{{ media_07:jetson_nano_getting_started_board.jpg?300 |}}
 +</WRAP>
 +<WRAP half column>
 +  * [[https://www.developer.nvidia.com/embedded-computing|NVIDIA Jetson Nano]]
 +  * ubuntu   18.04
 +  * Ram      3.9 GiB
 +  * Proc     ARMv8 Processor rev 1 (v8l) × 4
 +  * Graphics NVIDIA Tegra X1 (nvgpu)/integrated
 +  * OS type  64 bits
 +  * Disk     41.0 GB
 +</WRAP>
 +</WRAP>
 +
 +=====Problèmes rencontrés=====
 +  * Impossible d'installer opencv avec pip et libopencv-dev
 +  * Avec python3-opencv des dépôts, conflit GTK3 et GTK2 avec darknet
  
 =====Installation sur SD Card===== =====Installation sur SD Card=====
Ligne 23: Ligne 38:
   * License   * License
   * Sélection du clavier français   * Sélection du clavier français
-  * user/mot de pass +  * user/mot de passe 
-  * Annule les mises à jour: elles ne se font pas --> bug !!!+  * Annuler les mises à jour: elles ne se font pas --> bug !!!
  
 =====Installation sur disque externe===== =====Installation sur disque externe=====
-  *  **[[https://www.jetsonhacks.com/2019/04/25/jetson-nano-run-on-usb-drive/|Run on usb drive]]**+====Avantages==== 
 +  - Ca va plus vite 
 +  - Il y a plus de place 
 +  - Ajout d'une swap 
 +  - On peut tout recommencer sur le disque externe, sans avoir à recommencer la copie de l'image sur le SD Card 
 + 
 +====Création du disque externe==== 
 +  *  Ressource: **[[https://www.jetsonhacks.com/2019/04/25/jetson-nano-run-on-usb-drive/|Run on usb drive]]**  Des scripts de développeurs non associés à Nvidia.
  
   git clone https://github.com/JetsonHacksNano/rootOnUSB   git clone https://github.com/JetsonHacksNano/rootOnUSB
   cd rootOnUSB   cd rootOnUSB
   ./buildKernel.sh   ./buildKernel.sh
-Copie:+Copie: Avec gparted, mettre un Label sur la partition destination, remplacer <Volume Label> par votre label
   ./copyRootToUSB.sh -v <Volume Label>   ./copyRootToUSB.sh -v <Volume Label>
-ou 
-  ./copyRootToUSB.sh -d <Directory Path> 
      
 +====Menu de boot au démarrage====
 +Pour pouvoir booter sur la SD Card ou le disk externe.
 +
 +<WRAP center round alert 60%>
 +**Pas de menu, recherche en cours !**\\
 +Si le disk externe est absent, et qu'il est en Primary, ça ne démarre pas !\\
 +Il faudrait avoir le menu avec la SD Card en Primary !
 +</WRAP>
 +
 Modification de /boot/extlinux/extlinux.conf Modification de /boot/extlinux/extlinux.conf
   cp /boot/extlinux/extlinux.conf /boot/extlinux/extlinux_old.conf   cp /boot/extlinux/extlinux.conf /boot/extlinux/extlinux_old.conf
-  sudo apt install nano +  sudo apt install syslinux-common
   sudo gedit /boot/extlinux/extlinux.conf   sudo gedit /boot/extlinux/extlinux.conf
  
-Remplacer le code de ce fichier (en adaptant à vos disk) par: +Remplacer le code de ce fichier (en adaptant à vos disques) par: 
 <code> <code>
 TIMEOUT 30 TIMEOUT 30
 DEFAULT primary DEFAULT primary
- 
 MENU TITLE p3450-porg eMMC boot options MENU TITLE p3450-porg eMMC boot options
  
 LABEL primary LABEL primary
-      MENU LABEL primary kernel 
-      LINUX /boot/Image 
-      INITRD /boot/initrd 
-      APPEND ${cbootargs} rootfstype=ext4 root=/dev/sda1 rw rootwait 
- 
-LABEL emmc 
       MENU LABEL primary kernel       MENU LABEL primary kernel
       LINUX /boot/Image       LINUX /boot/Image
       INITRD /boot/initrd       INITRD /boot/initrd
       APPEND ${cbootargs} rootfstype=ext4 root=/dev/mmcblk0p1 rw rootwait       APPEND ${cbootargs} rootfstype=ext4 root=/dev/mmcblk0p1 rw rootwait
 +      #APPEND ${cbootargs} rootfstype=ext4 root=/dev/sda1 rw rootwait
 </code> </code>
 +Commenter l'une des 2 lignes APPEND ${cbootargs}, mais si ça ne démarre pas il faut modifier le fichier sur un autre PC!
  
 +====Boot avec mode graphique====
 +https://devtalk.nvidia.com/default/topic/1050739/jetson-nano/how-to-boot-jetson-nano-in-text-mode-/
 +====Swap====
 +Dans le fichier /etc/fstab, ajouter:
 +  # swap
 +  UUID=7d8d120d-9a76-4768-bd5d-904edb68b3fe  none  swap  sw  0  0
 +Adapter l'UUID à votre cas en la trouvant avec gparted.
 +
 +Redémarrer.
 +=====Opencv 3=====
 +Une **[[https://github.com/skvark/opencv-python/issues/83|explication]]** des difficultés avec l'installation de opencv et opencv-dev. 
 +<WRAP center round info 60%>
 +**Pour l'utilisation de pip, voir l'excellent article de\\ [[http://sametmax.com/lancer-correctement-python-et-ses-commandes-cousines/|Sam et Max]]** 8-)
 +</WRAP>
 +
 +Dans synaptic, désinstaller complètement **python3-pip**, puis le réinstaller.\\
 +Désinstaller aussi tous les paquets opencv, puis:
 +  python3.6 -m pip install opencv-python --user
 +  sudo apt-get install cmake clang libopencv-dev libopencv-core-dev libopencv-highgui-dev libopencv-flann-dev libopencv-photo-dev libopencv-video-dev python3.6-dev
 +  
 +Liste des paquets opencv installés: à faire
 =====Yolo V3 Darknet===== =====Yolo V3 Darknet=====
-Voir [[https://ressources.labomedia.org/y/yolo_darknet_sur_un_portable_optimus|Yolo Darknet sur un portable Optimus]] 
  
-===Bidouille 1===  +  python3.6 -m pip install numpy --user 
-  /bin/sh: 1: nvcc: not found +  python3.6 -m pip install scikit-image --user 
-  Makefile:152: recipe for target 'obj/convolutional_kernels.o' failed +   
-  make: *** [obj/convolutional_kernels.o] Error 127 +Voir [[yolo_darknet_sur_un_portable_optimus|Yolo Darknet sur un portable Optimus]] pour la modification du Makefile. 
-  make: *** Waiting for unfinished jobs.... + 
-[[https://github.com/opencv/opencv_contrib/commit/db51dca45ca381878e202108a272f7a85bd17667|Le patch]] pour: +Ne jamais oublier la commande magique
-  sudo gedit cudacodec/perf/perf_video.cpp+  export PATH=/usr/local/cuda-10.0/bin${PATH:+:${PATH}} 
 +puis 
 +  make -j4
  
-pb j'ai pas ce fichier !!+=====Reconnaissance du sémaphore===== 
 +**[[yolo_darknet_avec_un_vrai_semaphore|Avec un vrai sémaphore]]**
  
 +{{ media_12:semaphore_jetson_nano_2.jpg?400 |}}
  
 {{tag>ia sb}} {{tag>ia sb}}
nvidia_jetson_nano.1561404325.txt.gz · Dernière modification : 2019/06/24 19:25 de serge