[2024-feb-29] Sad news: Eric Layton aka Nocturnal Slacker aka vtel57 passed away on Feb 26th, shortly after hospitalization. He was one of our Wiki's most prominent admins. He will be missed.
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
howtos:hardware:arm:raspberrypi3 [2017/12/19 22:46 (UTC)] – updated URL for SARPi exaga | howtos:hardware:arm:raspberrypi3 [2019/08/23 05:02 (UTC)] – [Manual install method without a Raspbian image] add the Bluetooth subsection, add the Keyboard subsection, add the Memory subsection, add the UART subsection, add a recommendation for the the ''/etc/HOSTNAME'' file, put a space between values and units, yugiohjcj | ||
---|---|---|---|
Line 12: | Line 12: | ||
^ Site ^ Slackware versions ^ Using official Slackware packages ^ Installation methods ^ Notes ^ | ^ Site ^ Slackware versions ^ Using official Slackware packages ^ Installation methods ^ Notes ^ | ||
- | | [[http:// | + | | [[http:// |
- | As long you use the most recent raspbian image and firmware the [[howtos: | + | ==== AArch64 ARM64 [Experimental], Slackware ARM -current ==== |
- | ==== Manual install method without a Raspbian image ==== | + | Experimental, |
- | This method is for installing Slackware ARM 14.2 on a Raspberry Pi 3 Model B without a Raspbian image. | + | ^ Site ^ Slackware versions ^ Using official Slackware packages ^ Installation methods ^ Notes ^ |
+ | | [[http:// | ||
+ | |||
+ | |||
+ | ==== Manual install method ==== | ||
+ | |||
+ | This method is for installing Slackware ARM 14.2 on a Raspberry Pi 3 Model B. | ||
However, it should work for other Slackware ARM and Raspberry Pi versions. | However, it should work for other Slackware ARM and Raspberry Pi versions. | ||
Line 41: | Line 47: | ||
Remarks: | Remarks: | ||
- | * I use a 32GB SD Card | + | * I use a 32 GB SD Card |
- | * I choose | + | * I choose |
* I let the empty space left for the second partition | * I let the empty space left for the second partition | ||
Line 75: | Line 81: | ||
Remarks: | Remarks: | ||
- | * I set "password" | + | * I set '' |
- | * I set DHCP on the "eth1" | + | * I set DHCP on the '' |
- | * I allow the "root" | + | * I allow the '' |
=== 4. Insert the SD Card in the Raspberry Pi === | === 4. Insert the SD Card in the Raspberry Pi === | ||
Line 83: | Line 89: | ||
Your SD Card is ready so you can insert it in the Raspberry Pi and boot. | Your SD Card is ready so you can insert it in the Raspberry Pi and boot. | ||
- | You can connect remotely to your Raspberry Pi as "root" | + | You can connect remotely to your Raspberry Pi as '' |
< | < | ||
$ ssh root@raspberrypi | $ ssh root@raspberrypi | ||
Line 96: | Line 102: | ||
Remarks: | Remarks: | ||
- | * I consider that the Raspberry Pi hostname is "raspberrypi" | + | * I consider that the Raspberry Pi hostname is '' |
- | * I recommend to add a normal user and use this user instead of "root" | + | * I recommend to add a normal user by using the '' |
- | * I recommend to change the "root" | + | * I recommend to change the '' |
- | * I recommend to disallow the "root" | + | * I recommend to disallow the '' |
* I recommend to [[https:// | * I recommend to [[https:// | ||
+ | * I recommend to change the '' | ||
=== 5. Tips and tricks === | === 5. Tips and tricks === | ||
- | == 5.1. Processor | + | == 5.1. Bluetooth |
- | The Raspberry Pi processor can reach 1.2GHz. | + | The Raspberry Pi has a Broadcom chip providing Bluetooth. |
- | However, by default, it is stuck to 600MHz | + | However, the required firmware is not installed on Slackware ARM. |
+ | It means that you need to download and install it: | ||
+ | < | ||
+ | $ git clone https:// | ||
+ | $ mkdir -pv / | ||
+ | $ cp -v misc-firmware/ | ||
+ | </ | ||
+ | Then build your own Slackware ARM '' | ||
+ | |||
+ | In order to enable Bluetooth you need to add the Bluetooth module, run the Bluetooth daemon, attach the device then open and initialize the device. | ||
+ | Add the following lines to the end of the ''/ | ||
+ | < | ||
+ | if ps axc | grep -q bluetoothd; then | ||
+ | killall bluetoothd | ||
+ | fi | ||
+ | if ps axc | grep -q hciattach; then | ||
+ | killall hciattach | ||
+ | fi | ||
+ | if lsmod | grep -q hci_uart; then | ||
+ | rmmod hci_uart | ||
+ | fi | ||
+ | if lsmod | grep -q btbcm; then | ||
+ | rmmod btbcm | ||
+ | fi | ||
+ | modprobe btbcm | ||
+ | bluetoothd & | ||
+ | while ! hciattach / | ||
+ | echo " | ||
+ | done | ||
+ | hciconfig hci0 up | ||
+ | </ | ||
+ | Remark: Sometimes there is a failure with the '' | ||
+ | |||
+ | You can check that Bluetooth is working by typing: | ||
+ | < | ||
+ | $ hcitool dev | ||
+ | $ hcitool scan | ||
+ | $ sudo bluetoothctl | ||
+ | </ | ||
+ | Now, the Bluetooth is correctly set. | ||
+ | |||
+ | == 5.2. Keyboard == | ||
+ | |||
+ | The default keyboard map on Slackware ARM is the one of United Kingdom. | ||
+ | If you want to load an other keyboard map, edit the ''/ | ||
+ | |||
+ | If you want to change the keyboard layout for X11, you need to copy the X11 configuration file then edit it: | ||
+ | < | ||
+ | Now, the keyboard is correctly set. | ||
+ | |||
+ | == 5.3. Memory == | ||
+ | |||
+ | Unfortunately, | ||
+ | It means that you will eventually not be able to run some applications requiring more memory. | ||
+ | However, you can extend your memory by creating a temporary 4 GB swap partition: | ||
+ | < | ||
+ | $ dd if=/ | ||
+ | $ mkswap /tmp/swap | ||
+ | $ sudo swapon /tmp/swap | ||
+ | </ | ||
+ | |||
+ | You can check the current memory by typing: | ||
+ | < | ||
+ | Now, the memory is correctly set. | ||
+ | |||
+ | == 5.4. Processor == | ||
+ | |||
+ | The Raspberry Pi processor can reach 1.2 GHz. | ||
+ | However, by default, it is stuck to 600 MHz even if it is used at 100%. | ||
You can check the current frequency of the processor by typing: | You can check the current frequency of the processor by typing: | ||
< | < | ||
- | In order to reach 1.2GHz when the processor is used at 100% (i.e., use the frequency scaling), you need to change the default governors. | + | In order to reach 1.2 GHz when the processor is used at 100% (i.e., use the frequency scaling), you need to change the default governors. |
Add the following line to the end of the ''/ | Add the following line to the end of the ''/ | ||
< | < | ||
Now, the processor is correctly set. | Now, the processor is correctly set. | ||
- | == 5.2. Time == | + | == 5.5. Time == |
Unfortunately, | Unfortunately, | ||
Line 126: | Line 201: | ||
Now, the time is correctly set. | Now, the time is correctly set. | ||
- | == 5.3. Video == | + | == 5.6. Video == |
- | Unfortunately, | + | Unfortunately, |
It means that, by default, each application requiring OpenGL will be slow. | It means that, by default, each application requiring OpenGL will be slow. | ||
However, you can reach 60 FPS with OpenGL applications on the Raspberry Pi by using the correct driver. | However, you can reach 60 FPS with OpenGL applications on the Raspberry Pi by using the correct driver. | ||
- | Firstly, you need to build Mesa (>= 17.0.4) with the VC4 DRI driver: | + | Firstly, you need to build Mesa (>= 17.1.10) with the VC4 DRI driver: |
< | < | ||
$ CFLAGS=" | $ CFLAGS=" | ||
Line 145: | Line 220: | ||
$ make install DESTDIR=/ | $ make install DESTDIR=/ | ||
</ | </ | ||
- | Then build your own Slackware ARM Mesa package and install it. | + | Then build your own Slackware ARM '' |
Secondly, add the following line to the end of the ''/ | Secondly, add the following line to the end of the ''/ | ||
Line 151: | Line 226: | ||
Then reboot the Raspberry Pi. | Then reboot the Raspberry Pi. | ||
- | You can check that you are able to get 60 FPS with OpenGL applications on the Raspberry Pi by typing the following command in an X terminal: | + | You can check that you are able to get 60 FPS with OpenGL applications on the Raspberry Pi by typing the following command in an X11 terminal: |
< | < | ||
+ | An other problem with the video is that the default resolution is 1824x984. | ||
+ | It means that you can see black borders around your 1920x1080 screen. | ||
+ | In order to fix that, add the following line to the end of the ''/ | ||
+ | < | ||
+ | Then reboot the Raspberry Pi. | ||
+ | |||
+ | You can check that you are using a 1920x1080 resolution on the Raspberry Pi by typing the following command in an X11 terminal: | ||
+ | < | ||
Now, the video is correctly set. | Now, the video is correctly set. | ||
+ | |||
+ | == 5.7. UART == | ||
+ | |||
+ | In the ''/ | ||
+ | Consequently, | ||
+ | < | ||
+ | |||
+ | An easy fix is to edit the ''/ | ||
+ | < | ||
+ | with this one: | ||
+ | < | ||
+ | Then reboot the Raspberry Pi. | ||
+ | Now, the UART is correctly set. | ||
===== Sources ===== | ===== Sources ===== | ||