Wissensdatenbank
Buehl, Kevin
28 Oktober 2016
2.508

Wissensdatenbank

pi3g lcd display

Inhaltsverzeichnis
wget -O /etc/apt/sources.list.d/repository.pi3g.com.list http://repository.pi3g.com/sources.list
wget -O - http://repository.pi3g.com/pubkey | sudo apt-key add -
apt update
apt -y upgrade


apt-cache search linux-image
linux-image-3.10-3-lcd - Linux 3.10 for RaspberryPI with support for the pi3g GPIO LCD Display
linux-image-3.12-1-lcd - Linux 3.12 for RaspberryPI with support for the pi3g GPIO LCD Display
linux-image-3.18.10-lcd - Linux 3.18 for RaspberryPI with support for the pi3g GPIO LCD Display
linux-image-4.1.12-lcd - Linux 4.1 for RaspberryPI with support for the pi3g GPIO LCD Display
linux-image-4.4.8-lcd - Linux 4.4 for RaspberryPI with support for the pi3g GPIO LCD Display


apt install linux-image-3.18.10-lcd
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
firmware-linux-free
Suggested packages:
linux-doc-3.18 debian-kernel-handbook fdutils linux-headers-3.18.10-lcd linux-source-3.18.10-lcd
The following NEW packages will be installed:
firmware-linux-free linux-image-3.18.10-lcd
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 24.8 MB of archives.
After this operation, 90.1 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://repository.pi3g.com/debian/ wheezy/main linux-image-3.18.10-lcd armhf 3.18.10-1+rpi1+lcd1 [24.8 MB]
Get:2 http://mirrordirector.raspbian.org/raspbian/ jessie/main firmware-linux-free all 3.3 [19.1 kB]
Fetched 24.8 MB in 12s (1,984 kB/s)
Selecting previously unselected package linux-image-3.18.10-lcd.
(Reading database ... 31219 files and directories currently installed.)
Preparing to unpack .../linux-image-3.18.10-lcd_3.18.10-1+rpi1+lcd1_armhf.deb ...
Unpacking linux-image-3.18.10-lcd (3.18.10-1+rpi1+lcd1) ...
Selecting previously unselected package firmware-linux-free.
Preparing to unpack .../firmware-linux-free_3.3_all.deb ...
Unpacking firmware-linux-free (3.3) ...
Setting up linux-image-3.18.10-lcd (3.18.10-1+rpi1+lcd1) ...
Setting up firmware-linux-free (3.3) ...
update-initramfs: deferring update (trigger activated)
Processing triggers for initramfs-tools (0.120+deb8u2) ...


Probleme mit 4er Kernel

Die Kernel ab Version 4 können leider nicht bei einem Rasperry Pi B (2) verwendet werden.
apt install linux-image-4.4.8-lcd
apt install linux-image-4.4.8-lcd
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
linux-doc debian-kernel-handbook fdutils
The following NEW packages will be installed:
linux-image-4.4.8-lcd
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 29.6 MB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 http://repository.pi3g.com/debian/ jessie/main linux-image-4.4.8-lcd armhf 4.4.8-lcd1 [29.6 MB]
Fetched 29.6 MB in 14s (2,051 kB/s)
(Reading database ... 31216 files and directories currently installed.)
Preparing to unpack .../linux-image-4.4.8-lcd_4.4.8-lcd1_armhf.deb ...
Adding 'diversion of /boot/bcm2708-rpi-b-plus.dtb to /usr/share/raspberrypi-bootloader/bcm2708-rpi-b-plus.dtb by linux-image-4.4.8-lcd'
Adding 'diversion of /boot/bcm2708-rpi-b.dtb to /usr/share/raspberrypi-bootloader/bcm2708-rpi-b.dtb by linux-image-4.4.8-lcd'
Adding 'diversion of /boot/bcm2708-rpi-cm.dtb to /usr/share/raspberrypi-bootloader/bcm2708-rpi-cm.dtb by linux-image-4.4.8-lcd'
Adding 'diversion of /boot/bcm2709-rpi-2-b.dtb to /usr/share/raspberrypi-bootloader/bcm2709-rpi-2-b.dtb by linux-image-4.4.8-lcd'
Adding 'diversion of /boot/bcm2710-rpi-3-b.dtb to /usr/share/raspberrypi-bootloader/bcm2710-rpi-3-b.dtb by linux-image-4.4.8-lcd'
Adding 'diversion of /boot/kernel.img to /usr/share/raspberrypi-bootloader/kernel.img by linux-image-4.4.8-lcd'
Adding 'diversion of /boot/kernel7.img to /usr/share/raspberrypi-bootloader/kernel7.img by linux-image-4.4.8-lcd'
Adding 'diversion of /boot/overlays/README to /usr/share/raspberrypi-bootloader/overlays/README by linux-image-4.4.8-lcd'
Unpacking linux-image-4.4.8-lcd (4.4.8-lcd1) ...
dpkg: error processing archive /var/cache/apt/archives/linux-image-4.4.8-lcd_4.4.8-lcd1_armhf.deb (--unpack):
trying to overwrite '/boot/overlays/hifiberry-dac.dtbo', which is also in package raspberrypi-kernel 1.20160921-1
Removing 'diversion of /boot/bcm2708-rpi-b-plus.dtb to /usr/share/raspberrypi-bootloader/bcm2708-rpi-b-plus.dtb by linux-image-4.4.8-lcd'
Removing 'diversion of /boot/bcm2708-rpi-b.dtb to /usr/share/raspberrypi-bootloader/bcm2708-rpi-b.dtb by linux-image-4.4.8-lcd'
Removing 'diversion of /boot/bcm2708-rpi-cm.dtb to /usr/share/raspberrypi-bootloader/bcm2708-rpi-cm.dtb by linux-image-4.4.8-lcd'
Removing 'diversion of /boot/bcm2709-rpi-2-b.dtb to /usr/share/raspberrypi-bootloader/bcm2709-rpi-2-b.dtb by linux-image-4.4.8-lcd'
Removing 'diversion of /boot/bcm2710-rpi-3-b.dtb to /usr/share/raspberrypi-bootloader/bcm2710-rpi-3-b.dtb by linux-image-4.4.8-lcd'
Removing 'diversion of /boot/kernel.img to /usr/share/raspberrypi-bootloader/kernel.img by linux-image-4.4.8-lcd'
Removing 'diversion of /boot/kernel7.img to /usr/share/raspberrypi-bootloader/kernel7.img by linux-image-4.4.8-lcd'
Removing 'diversion of /boot/overlays/README to /usr/share/raspberrypi-bootloader/overlays/README by linux-image-4.4.8-lcd'
Errors were encountered while processing:
/var/cache/apt/archives/linux-image-4.4.8-lcd_4.4.8-lcd1_armhf.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)



console auf lcd ausgeben
nano /boot/cmdline.txt
fbcon=map:1


xinit auf lcd ausgbeen
nano /usr/share/X11/xorg.conf.d/99-fbdev.conf
Section "Device"  
Identifier "myfb"
Driver "fbdev"
Option "fbdev" "/dev/fb1"
EndSection