beautification of README.md

This commit is contained in:
stephan 2022-08-21 12:40:12 +02:00
parent de1baf1653
commit 9496e138d9

View File

@ -7,64 +7,64 @@ Updated code from admatec GmbH so it will compile with newer gcc-versions
## Dependencies: ## Dependencies:
### Raspberry Pi Userland: https://github.com/raspberrypi/userland ### Raspberry Pi Userland: https://github.com/raspberrypi/userland
$ sudo apt install build-essential pkg-config cmake $ sudo apt install build-essential pkg-config cmake
$ mkdir /tmp/ramdisk $ mkdir /tmp/ramdisk
$ sudo mount -t tmpfs -o size=128M tmpfs /tmp/ramdisk $ sudo mount -t tmpfs -o size=128M tmpfs /tmp/ramdisk
$ cd /tmp/ramdisk $ cd /tmp/ramdisk
$ git clone https://github.com/raspberrypi/userland $ git clone https://github.com/raspberrypi/userland
$ cd userland $ cd userland
$ ./buildme $ ./buildme
Add login username to /etc/group for audio, video: Add login username to /etc/group for audio, video:
... ...
audio:x:29:username audio:x:29:username
video:x:44:username video:x:44:username
... ...
Create '/etc/udev/rules.d/10-local-rpi.rules', to set VC device group and permissions: Create '/etc/udev/rules.d/10-local-rpi.rules', to set VC device group and permissions:
SUBSYSTEM=="vchiq", GROUP="video", MODE="0660" SUBSYSTEM=="vchiq", GROUP="video", MODE="0660"
SUBSYSTEM=="vc-sm", GROUP="video", MODE="0660" SUBSYSTEM=="vc-sm", GROUP="video", MODE="0660"
SUBSYSTEM=="bcm2708_vcio", GROUP="video", MODE="0660" SUBSYSTEM=="bcm2708_vcio", GROUP="video", MODE="0660"
Then reboot: Then reboot:
$ sudo reboot $ sudo reboot
Testing (shows a rotating tiger): Testing (shows a rotating tiger):
$ sudo apt install libfreetype6-dev $ sudo apt install libfreetype6-dev
$ cd /opt/vc/src/hello_pi $ cd /opt/vc/src/hello_pi
$ sudo sh rebuild.sh $ sudo sh rebuild.sh
$ export LD_LIBRARY_PATH=/opt/vc/lib $ export LD_LIBRARY_PATH=/opt/vc/lib
$ ./hello_tiger/hello_tiger.bin $ ./hello_tiger/hello_tiger.bin
### BCM2835 c library for Raspberry Pi: ### BCM2835 c library for Raspberry Pi:
Look for the latest version (http://www.airspayce.com/mikem/bcm2835/) Look for the latest version (http://www.airspayce.com/mikem/bcm2835/)
$ wget http://www.airspayce.com/mikem/bcm2835/bcm2835-$VERSION.tar.gz $ wget http://www.airspayce.com/mikem/bcm2835/bcm2835-$VERSION.tar.gz
$ tar zxvf bcm2835-$VERSION.tar.gz $ tar zxvf bcm2835-$VERSION.tar.gz
$ cd bcm2835-1.36 $ cd bcm2835-1.36
$ ./configure $ ./configure
$ make $ make
$ sudo make check $ sudo make check
$ sudo make install $ sudo make install
## Compile ## Compile
* Complie tft_test and fb2cberry with "make" * Complie tft_test and fb2cberry with "make"
* Go to the root folder * Go to the root folder
$ cd SW/tft_test $ cd SW/tft_test
$ make $ make
$ sudo ./tft_test # shows some test pictures and waits for touch input (if availabe) $ sudo ./tft_test # shows some test pictures and waits for touch input (if availabe)
$ cd SW/fb2cberry $ cd SW/fb2cberry
$ make $ make
$ sudo ./fb2cberry & # copys the HDMI output to the framebuffer (around 2% cpu usage), very slow and runs in the background (because of "&") $ sudo ./fb2cberry & # copys the HDMI output to the framebuffer (around 2% cpu usage), very slow and runs in the background (because of "&")