How to install Slackware ARM on a Raspberry Pi

A few days ago I got my Raspberry Pi and I had to decide which OS I install. I like Slackware and decided to give Slackware ARM (formerly ArmedSlack) a try. It was surprisingly easy to install it.
The first step was to download the Slackware ARM installer and copy it to the SD card.
Download installer:

$ wget

Write the installer to SD card:

$ xz -dc raspi-slack-installer_01Aug12.img.xz | dd of=[device] bs=65536

In my case I had to replace [device] with /dev/sdb. The next step is to put the SD card in the Raspberry Pi and plug in the power cord. Follow the installer instructions (select keyboard map, etc.) and login as root. Next we have to do is to set the date and time. You can use NTP or the date command (date MMDDHHMMYYYY), e.g. 10:15 05/20/2013:

$ date 052010152013

I used a 16GB SD card but the installer is made for a 2GB SD card, so I had to reconfigure the partition table. I used

$ cfdisk /dev/mmcblk0

for this purpose. The SD card is identified as /dev/mmcblk0. You only have to modify /dev/mmcblk0p3 because the other partitions are needed for the boot process. Modify this partition so it satisfies your claims and don’t forget to write the partition table. Make also sure that the boot flag is set to mmcblk0p1.
The next step is to install Slackware, run

$ setup

to start the Slackware installer. Add the Swap partition and choose your root partition “/”. Don’t be afraid, the disk formatting process will take some time. The installer will detect a “FAT or NTFS partition”. I added this partition (/dev/mmcblk0p1) to the fstab, but only the user root has read and write access to it. The mount point of this partition is /boot.
The next step is to select the source of the Slackware files. I installed Slackware from a FTP server, so I changed the SOURCE to “Install from FTP/HTTP server”. You can find some FTP servers here.
The next step is to select the packages which should be installed. I deselected the x, kde, kdei, and g series, because I don’t need neither an X-Server nor Emacs. Select all the packages you need/want and start the installation (the installation process will takes some time).
After the installation set up your hostname, network configuration, etc. but DO NOT REBOOT. Exit the setup to go back to the terminal.
I removed some packages which are not needed:

$ ROOT=/mnt removepkg kernel_kirkwood kernel-modules-kirkwood \
kernel_tegra kernel-modules-tegra \
kernel_versatile kernel-modules-versatile

To free a bit of disk space I removed the initrd.gz, because it is not needed anymore and wastes disk space:

$ rm /boot/initrd.gz

The next step is to mount the boot partition of the SD card and install the Raspberry Pi firmware:

$ mount -t vfat /dev/mmcblk0p1 /mnt/boot
$ ROOT=/mnt installpkg /raspi-extra/kernel* /raspi-extra/raspi*

Now you can reboot the Raspberry Pi. If the reboot was successful, you’ll have to login as root. I noticed that the memory was set to 218 MB, because the Raspberry Pi shares the memory with the GPU. But my Raspberry Pi has 512MB RAM and I don’t need much GPU memory, because it is not connected to a monitor. I added the option for the gpu memory split to the /boot/config.txt:


and rebooted the Raspberry Pi. But it didn’t work. The problem was the old firmware, so I updated the firmware. For this purpose I downloaded and installed rpi-update:

$ wget -O /usr/bin/rpi-update && chmod +x /usr/bin/rpi-update

The next step is to run rpi-update:

$ rpi-update

After a successfully installing of the new firmware, I rebooted the Raspberry Pi and then the memory split did work:

$ cat /proc/meminfo | grep Mem

I got this output:

MemTotal: 497544 kB
MemFree: 379896 kB

Now the installation of Slackware ARM is complete and you can install and configure further packages and services.



Posted on May 23, 2013, in Command-Line, Configure, Install and tagged , , , . Bookmark the permalink. 4 Comments.

  1. Hi, I have follow your article but it seems I’ve got a problem.
    I have downloaded the image and wrote it to SD Card. But the Raspberry Pi won’t boot the SD Card, my screen is blank. I only got this when using Slackware ARM, especially this image. The other distro works well, before and after using this image.
    Did I miss something?

    • This method worked for me at the first time. It’s strange that it doesn’t work for you with Slackware but with other distros (this implies, that you used the correct device to write the image).
      Have you look at the sd card on the host system after you wrote the image, just to make sure there is something on the sd card?

      • Well, I have mounted the SD card and I’m very sure that the data has been written there.

      • Sorry for the late answer. I can’t figure out, why it does not work for you, I’m sorry for that. Have you verified the downloaded file? Within the images folder are a sha1 file and an asc file. Maybe the downloaded file is not 100% correct.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: