Browse Source

fix install camera module bug

Bachir Soussi Chiadmi 7 years ago
parent
commit
541ce1af6c
2 changed files with 4 additions and 2 deletions
  1. 1 0
      README.md
  2. 3 2
      rpi/install.sh

+ 1 - 0
README.md

@@ -17,6 +17,7 @@ http://www.lextronic.fr/P34214-platine-shield-3g-umts--gps.html
 Cette platine Shield intègre un module GPS haute performance de type MAX-M8Q-0 (u-blox™) associé à un module haute performance 3G (UMTS) de type SARA-U270-0xS (u-blox™).
 
 connection : https://github.com/embeddedartists/gps_shield
+http://www.lextronic.fr/P34124-cable-downgrade-raspberry-pi-ab2.html
 
 ### Alimentation
 ????

+ 3 - 2
rpi/install.sh

@@ -31,7 +31,8 @@ sudo mkdir /etc/bash_completion.d
 sudo wget -O /etc/bash_completion.d/git-completion.bash https://raw.githubusercontent.com/git/git/master/contrib/completion/git-completion.bash
 
 # yaourt
-sudo pacman -S --needed base-devel
+# only needed for gps with pynmea2 on python
+sudo pacman -S --needed --noconfirm base-devel
 mkdir -p /home/$USER/build-repos
 wget -O /home/$USER/build-repos/package-query.tar.gz https://aur.archlinux.org/cgit/aur.git/snapshot/package-query.tar.gz
 wget -O /home/$USER/build-repos/yaourt.tar.gz https://aur.archlinux.org/cgit/aur.git/snapshot/yaourt.tar.gz
@@ -70,7 +71,7 @@ sudo sed -i.back 's/hosts: files dns myhostname/hosts: files mdns_minimal [NOTFO
 
 # Camera
 echo "Camera Module"
-sudo sed -i.back 's/gpu_mem=.*$/gpu_mem=128\nstart_file=start_x.elf\nfixup_file=fixup_x.dat/' /etc/pacman.conf
+sudo sed -i.back 's/gpu_mem=.*$/gpu_mem=128\nstart_file=start_x.elf\nfixup_file=fixup_x.dat/' /boot/config.txt
 
 
 # gps cli