[2025-jun-17] The SlackDocs mailing lists at https://lists.alienbase.nl/mailman/listinfo have been retired. No one has been using these lists for years and it's time to say goodbye. The list archives remain available at https://scalzi.slackware.nl/mailman/listinfo/slackdocs
[2025-jun-17] The SlackDocs Wiki has moved to a new server, in order to make it more performant.
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| howtos:hardware:arm:raspberrypi2 [2017/12/26 19:47 (UTC)] – updated notes for SARPi URL exaga | howtos:hardware:arm:raspberrypi2 [2024/04/09 16:51 (UTC)] (current) – mozes | ||
|---|---|---|---|
| Line 13: | Line 13: | ||
| ^ Site ^ Slackware versions ^ Using official Slackware packages ^ Installation methods ^ Notes ^ | ^ Site ^ Slackware versions ^ Using official Slackware packages ^ Installation methods ^ Notes ^ | ||
| - | | [[http://sarpi.co.uk/|SARPi Project]] | 14.2, -current | + | | [[https://sarpi.penthux.net/|SARPi Project]] | 14.2 | Yes | Slackware installer | An end-to-end HOW TO tutorial taking you through the installation and setup process. | |
| - | As long you use recent raspbian image the [[howtos: | + | ==== Manual |
| + | As long you use the most recent release of firmware [i.e. post-June 2019] and the latest Raspbian Buster image the [[howtos: | ||
| + | |||
| + | This method is for installing Slackware ARM 14.2 on a Raspberry Pi 2 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 === | ||
| + | |||
| + | < | ||
| + | $ sudo fdisk -l / | ||
| + | |||
| + | Disk / | ||
| + | 4 heads, 16 sectors/ | ||
| + | Units = sectors of 1 * 512 = 512 bytes | ||
| + | Sector size (logical/ | ||
| + | I/O size (minimum/ | ||
| + | Disk identifier: 0x00000000 | ||
| + | |||
| + | Device Boot Start | ||
| + | / | ||
| + | / | ||
| + | $ sudo mkfs.vfat / | ||
| + | $ sudo mkfs.ext4 / | ||
| + | </ | ||
| + | |||
| + | Remarks: | ||
| + | * I use a 32GB SD Card | ||
| + | * I choose 32MB for the size of the first partition | ||
| + | * I let the empty space left for the second partition | ||
| + | |||
| + | === 2. Put the Raspberry Pi firmware in the SD Card === | ||
| + | |||
| + | < | ||
| + | $ git clone https:// | ||
| + | $ sudo mount / | ||
| + | $ sudo cp -r firmware/ | ||
| + | $ sudo umount ~/mnt | ||
| + | $ sudo mount / | ||
| + | $ sudo mkdir -p ~/ | ||
| + | $ sudo cp -r firmware/ | ||
| + | $ sudo umount ~/mnt | ||
| + | </ | ||
| + | |||
| + | === 3. Put the Slackware ARM mini root file system in the SD Card === | ||
| + | |||
| + | < | ||
| + | $ wget -c ftp:// | ||
| + | $ sudo mount / | ||
| + | $ sudo tar -C ~/mnt -xf slack-14.2-miniroot_01Jul16.tar.xz | ||
| + | $ echo "/ | ||
| + | $ echo "/ | ||
| + | $ echo " | ||
| + | $ PASSWD=$(openssl passwd -1 -salt cetkq/ | ||
| + | $ sudo sed -i " | ||
| + | $ sudo sed -i ' | ||
| + | $ echo " | ||
| + | $ sudo umount ~/mnt | ||
| + | </ | ||
| + | |||
| + | Remarks: | ||
| + | * I set " | ||
| + | * I set DHCP on the " | ||
| + | * I allow the " | ||
| + | |||
| + | === 4. Insert the SD Card in the Raspberry Pi === | ||
| + | |||
| + | 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 " | ||
| + | < | ||
| + | $ ssh root@raspberrypi | ||
| + | </ | ||
| + | |||
| + | As soon as you are logged, you might want to install additional Slackware ARM packages: | ||
| + | < | ||
| + | $ wget --mirror ftp:// | ||
| + | $ upgradepkg --install-new ftp.arm.slackware.com/ | ||
| + | $ removepkg ftp.arm.slackware.com/ | ||
| + | </ | ||
| + | |||
| + | Remarks: | ||
| + | * I consider that the Raspberry Pi hostname is " | ||
| + | * I recommend to add a normal user and use this user instead of " | ||
| + | * I recommend to change the " | ||
| + | * I recommend to disallow the " | ||
| + | * I recommend to [[https:// | ||
| + | |||
| + | === 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: | ||
| + | < | ||
| + | |||
| + | 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 ''/ | ||
| + | < | ||
| + | Now, the processor is correctly set. | ||
| + | |||
| + | == 5.2. Time == | ||
| + | |||
| + | Unfortunately, | ||
| + | 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 ''/ | ||
| + | < | ||
| + | Now, the time is correctly set. | ||
| + | |||
| + | == 5.3. Video == | ||
| + | |||
| + | Unfortunately, | ||
| + | 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: | ||
| + | < | ||
| + | $ CFLAGS=" | ||
| + | CXXFLAGS=" | ||
| + | ./ | ||
| + | --prefix=/ | ||
| + | --sysconfdir=/ | ||
| + | --with-dri-driverdir=/ | ||
| + | --with-egl-platforms=x11, | ||
| + | --with-gallium-drivers=vc4 | ||
| + | $ make -j4 | ||
| + | $ make install DESTDIR=/ | ||
| + | </ | ||
| + | Then build your own Slackware ARM Mesa package and install it. | ||
| + | |||
| + | Secondly, add the following line to the end of the ''/ | ||
| + | < | ||
| + | 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: | ||
| + | < | ||
| + | |||
| + | Now, the video is correctly set. | ||
| ===== Sources ===== | ===== Sources ===== | ||
| * Originally written by [[wiki: | * Originally written by [[wiki: | ||
| + | * Contributions by [[wiki: | ||