[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

Next revision
Previous revision
Last revisionBoth sides next revision
howtos:hardware:arm:raspberrypi3_network [2018/08/26 09:42 (UTC)] – created bifferoshowtos:hardware:arm:raspberrypi3_network [2018/08/26 23:55 (UTC)] – [Sources] bifferos
Line 1: Line 1:
-====== Network Install on Raspberry Pi 3 ======+====== Slackware Network Install on Raspberry Pi 3 ======
  
-This is an abridged version of the SARPi installation guide dealing with the 'headless' install case.  There is nothing wrong with the original guide, it is *very* complete, but it will be somewhat wordy for people with prior Slackware installation experience, includes many screenshots familiar to users of Slackware and I found myself wanting to see just the differences between Intel and RPi install instead of the whole shebang.+===== Introduction =====
  
 +This is an abridged version of the SARPi (http://sarpi.co.uk/) installation guide dealing with the 'headless' install case for installing Slackware 14.2.  There is nothing wrong with the original guide, it is **very** complete, but it will be somewhat wordy for people with prior Slackware installation experience, includes many screenshots familiar to users of Slackware and I found myself wanting to see just the differences between Intel and RPi install instead of the whole shebang.
  
-====== Sources ======+===== Requirements =====
  
-<!-- Authors are allowed to give credit to themselves! --> +  * uSD card at least 16GB in size 
-<!-- * Originally written by [[wiki:user:bifferos | User bifferos]] -->+  * Card reader for your PC 
 +  * The RPi 3 itself 
 +  * A power supply for the Pi 
 +  * Ethernet cable 
 + 
 +===== SD card preparation ===== 
 + 
 +(On your desktop machine) Assuming your SD device is /dev/sdc 
 + 
 +<code># wget http://sarpi.co.uk/files/rpi3/142/img/sarpi3-installer_slack14.2_20Jul18_sp1.img.xz 
 +# xz -dc sarpi3-installer_slack14.2_20Jul18_sp1.img.xz | dd of=/dev/sdc bs=65536 
 +# mount /dev/sdc1 /mnt/hd 
 +# vim /mnt/hd/cmndline.txt</code> 
 + 
 +Add the following text to the end of the line with the boot parameters: 
 + 
 +<code>kbd=us nic=auto:eth0:dhcp</code> 
 + 
 +===== Booting the installer ===== 
 + 
 +Put the uSD card back in the Pi, and boot it.  It will boot into a ramdisk which is running the installer.  Boot the Pi while running tcpdump on your desktop to figure out what IP address it takes, you will see a line printed like this: 
 + 
 +<code>16:27:19.173035 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from b8:27:eb:fe:b8:53 (oui Unknown), length 361 
 +16:27:19.401973 ARP, Request who-has 172.17.0.71 tell 172.17.0.71, length 46</code> 
 + 
 +In this case the IP address of the Pi is 172.17.0.71. 
 + 
 +ssh into the Pi as root: 
 + 
 +<code># ssh root@172.17.0.71</code> 
 + 
 +Press <enter> for password. 
 + 
 +Set the date: 
 + 
 +<code># ntpdate 0.pool.ntp.org</code> 
 + 
 +Set the terminal to something that will allow the dialog program to work properly if you don't want setup screens to look like garbage: 
 + 
 +<code># export TERM=vt320</code> 
 + 
 +Using fdisk (or your favourite Slackware partition editor), update the partition table on the /dev/mmcblk0 device to reflect how you want your system.   
 + 
 +<code># fdisk /dev/mmcblk0</code> 
 + 
 +The dd command when preparing the uSD will have already given you a 'boot' partition (/dev/mmcblk0p1), leave that alone and only add partitions to leave something like this: 
 + 
 +<code>Device         Boot   Start       End   Sectors   Size Id Type 
 +/dev/mmcblk0p1 *         32    205055    205024 100.1M  c W95 FAT32 (LBA) 
 +/dev/mmcblk0p2       206848   2303999   2097152     1G 82 Linux swap 
 +/dev/mmcblk0p3      2304000 124735487 122431488  58.4G 83 Linux</code> 
 + 
 +Swap is of course optional. 
 + 
 +===== Running setup ===== 
 + 
 +Setup is now much the same as for Intel.  Remap keyboard, format partitions etc..  There will be a warning about the lack of RTC when choosing EXT4 FS, just do as it suggests. 
 + 
 +Choose HTTP install, and set the location as: 
 + 
 +<code>http://ftp.arm.slackware.com</code> 
 + 
 +Set the source directory as: 
 + 
 +<code>/slackwarearm/slackwarearm-14.2</code> 
 + 
 +The source directory is the one that contains PACKAGES.TXT. 
 + 
 +Run the install as normal. 
 + 
 +===== Booting from the Linux partition ===== 
 + 
 +You've now installed the necessary packages, but your system will still boot the installer ramdisk image from the FAT partition until you change some things. 
 + 
 +If you didn't during setup make the partition /dev/mmcblk0p1 visible to your Linux system just mount it now, e.g.: 
 + 
 +<code># mount /dev/mmcblk0p1 /mnt/boot</code> 
 + 
 +To free up some space, remove the ramdisk image: 
 + 
 +<code># rm /mnt/boot/initrd.gz </code> 
 + 
 +Now, assuming your rootfs is mounted at /mnt, and boot partion at /mnt/boot install extra packages: 
 + 
 +<code># ROOT=/mnt installpkg /rpi-extra/kernel* /rpi-extra/sarpi*</code> 
 + 
 +===== Final configuration ===== 
 + 
 +You can also, during setup or at a later stage make the following change if no RTC has been installed: 
 + 
 +edit /etc/ntpd.conf and comment-in these lines: 
 + 
 +<code>server 0.pool.ntp.org iburst 
 +server 1.pool.ntp.org iburst 
 +server 2.pool.ntp.org iburst 
 +server 3.pool.ntp.org iburst</code> 
 + 
 +<code># chmod 755 /etc/rc.d/rc.ntpd 
 +# /etc/rc.d/rc.ntpd start</code> 
 + 
 +Note that the RPi ssh identity has now changed from the one used for the installer, so when you ssh to your newly installed Slackware box you will have to remove the entry from .ssh/known_hosts on your ssh client. 
 +====== Sources ====== 
 +  * Much information taken from the [[http://sarpi.co.uk | SARPi website]] 
 +  * Page written by [[wiki:user:bifferos | User bifferos]]
  
-<!-- Please do not modify anything below, except adding new tags.--> +{{tag>howtos RPi raspberry arm author_bifferos}}
-<!-- You must remove the tag-word "template" below before saving your new page --> +
-{{tag>howtos raspberry}}+
 howtos:hardware:arm:raspberrypi3_network ()