[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.

Welcome to the Slackware Documentation Project

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
howtos:hardware:arm:raspberrypi3 [2017/06/08 05:02 (UTC)] – [Manual install method without a Raspbian image] yugiohjcjhowtos:hardware:arm:raspberrypi3 [2017/06/14 15:47 (UTC)] – [Manual install method without a Raspbian image] replace "are" by "is" yugiohjcj
Line 18: Line 18:
 ==== Manual install method without a Raspbian image ==== ==== Manual install method without a Raspbian image ====
  
-Table of contents +This method is for installing Slackware ARM 14.2 on a Raspberry Pi 3 Model B without a Raspbian image. 
-  - Partition and format the SD Card +However, it should work for other Slackware ARM and Raspberry Pi versions.
-  - Put the Raspberry Pi firmware in the SD Card +
-  - Put the Slackware ARM mini root file system in the SD Card +
-  - Insert the SD Card in the Raspberry Pi +
- +
-Remarks: +
-  * This method is for installing Slackware ARM 14.2 on a Raspberry Pi 3 Model B without a Raspbian image +
-  However, it should work for other Slackware ARM and Raspberry Pi versions+
  
 === 1. Partition and format the SD Card === === 1. Partition and format the SD Card ===
Line 108: Line 101:
   * I recommend to disallow the "root" user to connect through SSH   * I recommend to disallow the "root" user to connect through SSH
   * I recommend to [[https://www.raspberrypi.org/documentation/linux/kernel/building.md|build your own Linux kernel]] packages because the kernel you are running does not match with the installed Slackware ARM packages   * I recommend to [[https://www.raspberrypi.org/documentation/linux/kernel/building.md|build your own Linux kernel]] packages because the kernel you are running does not match with the installed Slackware ARM packages
-  * I recommend to [[https://dri.freedesktop.org/wiki/VC4/|build your own Mesa]] package to get 60 FPS with the "glxgears" command ([[https://github.com/anholt/mesa/issues/73|here]] is how I did)+ 
 +=== 5. Tips and tricks === 
 + 
 +== 5.1. Processor == 
 + 
 +The Raspberry Pi processor can reach 1.2GHz. 
 +However, by default, it is stuck to 600MHz even if it is used at 100%. 
 +You can check the current frequency of the processor by typing: 
 +<code>$ cpufreq-info</code> 
 + 
 +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. 
 +Add the following line to the end of the ''/etc/rc.d/rc.local'' file: 
 +<code>echo ondemand | sudo tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor</code> 
 +Now, the processor is correctly set. 
 + 
 +== 5.2. Time == 
 + 
 +Unfortunately, the Raspberry Pi does not provide a Real-Time Clock (RTC). 
 +That is why there is no battery included with the board. 
 +It means that each time you shutdown the Raspberry Pi, the time is reset! 
 +However, if you have internet access, you can update the time during the Slackware ARM boot. 
 +Add the following line to the end of the ''/etc/rc.d/rc.local'' file: 
 +<code>ntpdate pool.ntp.org</code> 
 +Now, the time is correctly set. 
 + 
 +== 5.3. Video == 
 + 
 +Unfortunately, the Raspberry Pi is not compatible with OpenGL (it is compatible OpenGL ES that is a subset of OpenGL). 
 +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. 
 + 
 +Firstly, you need to build Mesa (>= 17.0.4) with the VC4 DRI driver: 
 +<code> 
 +$ CFLAGS="-O2 -march=armv8-a -mtune=cortex-a53 -mfloat-abi=softfp -mfpu=neon-vfpv4"
 + CXXFLAGS="-O2 -march=armv8-a -mtune=cortex-a53 -mfloat-abi=softfp -mfpu=neon-vfpv4"
 + ./configure \ 
 + --prefix=/usr \ 
 + --sysconfdir=/etc \ 
 + --with-dri-driverdir=/usr/lib/xorg/modules/dri \ 
 + --with-egl-platforms=x11,drm \ 
 + --with-gallium-drivers=vc4 
 +$ make -j4 
 +$ make install DESTDIR=/where/you/want/to/install 
 +</code> 
 +Then build your own Slackware ARM Mesa package and install it. 
 + 
 +Secondly, add the following line to the end of the ''/boot/config.txt'' file: 
 +<code>dtoverlay=vc4-fkms-v3d</code> 
 +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: 
 +<code>$ glxgears</code> 
 + 
 +Now, the video is correctly set.
 ===== Sources ===== ===== Sources =====
  
 howtos:hardware:arm:raspberrypi3 ()