[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:raspberrypi [2015/12/12 19:38 (UTC)] – [Slackware ARM on the Raspberry Pi] louigi600 | howtos:hardware:arm:raspberrypi [2017/04/26 22:01 (UTC)] – [Slackware ARM on the Raspberry Pi 1] mozes | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Slackware ARM on the Raspberry Pi ====== | + | |
+ | ====== Slackware ARM on the Raspberry Pi 1 ====== | ||
Since there are so many ARM devices coming on to the market, it is not possible | Since there are so many ARM devices coming on to the market, it is not possible | ||
Line 7: | Line 8: | ||
- | === Slackware releases 13.37, 14.0 & 14.1 === | + | === Slackware releases 13.37, 14.0, 14.2 === |
Since the release of Slackware ARM 14.0, there have been a number of community | Since the release of Slackware ARM 14.0, there have been a number of community | ||
efforts to bring Slackware to the device: | efforts to bring Slackware to the device: | ||
+ | |||
+ | Slackware ARM 14.2 is the only available version of Slackware that is officially supported/ | ||
You should follow one of the links in the table below. | You should follow one of the links in the table below. | ||
^ Site ^ Slackware versions ^ Using official Slackware packages ^ Installation methods ^ Notes ^ | ^ Site ^ Slackware versions ^ Using official Slackware packages ^ Installation methods ^ Notes ^ | ||
- | | [[http://rpi.fatdog.eu/|fatdog]] | 14.0, 14.1 | Yes | Slackware installer | An end-to-end HOW TO guiding you through the installation and setup process. | | + | | [[http://sarpi.fatdog.nl/|FatDog]] | 14.2 | Yes | Slackware installer | An end-to-end HOW TO guiding you through the installation and setup process. | |
| [[http:// | | [[http:// | ||
| [[http:// | | [[http:// | ||
Line 29: | Line 32: | ||
Unzip it and mount the partitions therein via loopback and then put all that is needed in a tarball for later use: | Unzip it and mount the partitions therein via loopback and then put all that is needed in a tarball for later use: | ||
- | root@darkstar:/ | + | root@darkstar:/ |
| | ||
- | Disk 2013-09-10-wheezy-raspbian.img: 1939 MB, 1939865600 | + | Disk 2016-05-10-raspbian-jessie-lite.img: 1.3 GiB, 1386217472 |
- | 255 heads, 63 sectors/ | + | Units: sectors of 1 * 512 = 512 bytes |
- | Units = sectors of 1 * 512 = 512 bytes | + | |
Sector size (logical/ | Sector size (logical/ | ||
I/O size (minimum/ | I/O size (minimum/ | ||
- | Disk identifier: | + | |
+ | | ||
+ | |||
+ | Device | ||
+ | 2016-05-10-raspbian-jessie-lite.img1 | ||
+ | 2016-05-10-raspbian-jessie-lite.img2 | ||
| | ||
- | | + | root@darkstar:/ |
- | 2013-09-10-wheezy-raspbian.img1 | + | root@darkstar:/ |
- | 2013-09-10-wheezy-raspbian.img2 | + | |
- | | + | |
- | root@darkstar:/ | + | |
root@darkstar:/ | root@darkstar:/ | ||
root@darkstar:/ | root@darkstar:/ | ||
Line 48: | Line 52: | ||
root@darkstar:/ | root@darkstar:/ | ||
- | Please note the sectors of the beginning of the partitions: 8192 and 122880. We need to multiply these by 512 to get the byte offset for the loop device setup. This is done by < | + | Please note the sectors of the beginning of the partitions: 8192 and 137216. We need to multiply these by 512 to get the byte offset for the loop device setup. This is done by < |
Now partition and format an SD like this: (NB the "fdisk -l" is just to show how I partitioned my SD) | Now partition and format an SD like this: (NB the "fdisk -l" is just to show how I partitioned my SD) | ||
Line 69: | Line 73: | ||
root@darkstar: | root@darkstar: | ||
| | ||
+ | It's not a typo I got a bad headache figuring out why it did not work: the boot partition is to me made with id " | ||
+ | |||
Now you can extract the Slackware ARM miniroot and then the raspbian_boot_stuff.tgz in / | Now you can extract the Slackware ARM miniroot and then the raspbian_boot_stuff.tgz in / | ||
Edit the / | Edit the / | ||
Line 82: | Line 88: | ||
I generally add whatever else I need by simply using wget to pull down slackpkg, installing manually the downloaded slackpkg, editing the mirrors file and then install the rest that's needed with slackpkg itself (internet connection is required for this).\\ | I generally add whatever else I need by simply using wget to pull down slackpkg, installing manually the downloaded slackpkg, editing the mirrors file and then install the rest that's needed with slackpkg itself (internet connection is required for this).\\ | ||
You might want to edit or comment the serial console in inittab to suppress the " | You might want to edit or comment the serial console in inittab to suppress the " | ||
+ | |||
+ | Incidentally if you download a recent version of raspbian this procedure will create bootable images for the RPi, RPi 2, RPi 3, and RPi Zero. | ||
+ | |||
+ | ====== Slackware ARM 14.2 on the Raspberry Pi 3 Model B ====== | ||
+ | |||
+ | Table of contents | ||
+ | - Partition and format the SD Card | ||
+ | - 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 | ||
+ | * 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:// | ||
+ | * I recommend to [[https:// | ||
===== Sources ===== | ===== Sources ===== | ||