Hello All
I've just received my rpi and I'm trying to get armedslack 13.37 to work on it.
Today I've finaly made it and I've decied to share.
Before starting I just want to da that I can take no responsibility for any damage caused by following this text.
I must admit that I've taken the long way to do this, but at least it's working and it was a way to learn some new stuff.
I've tested the provied image on this thread to test out the rpi and to use it as OS (beying Slackware user for arround 7 years my rpi would defintily be running Slackware) but it seems not to have iptables.
Searching arround here I've found the requirements to add iptablesto the kernel.
- Code: Select all
Networking ---->
Networking options ---->
Network packet filtering framework (Netfilter)--->
Core Netfilter Configuration ---->
<*> Netfilter connection tracking support
<*> Netfilter Xtables support (required for ip_tables)
<*> "NFLOG" target support
<*> "conntrack" connection tracking match support
<*> "state" match support
IP: Netfilter Configuration --->
<*> IPv4 connection tracking support (required for NAT)
<*> IP tables support (required for filtering/masq/NAT)
<*> Packet Filtering
<*> REJECT target support
<*> Full NAT
<*> MASQUERADE target support
<*> Packet mangling
source: viewtopic.php?f=50&t=7293&p=114241&hilit=kernel+iptables#p114241Copy the image on this thread on an SD card and boot it up.
Got the kernel from github (
https://github.com/raspberrypi/linux/) and following the howto at elinux (
http://elinux.org/Rpi_kernel_compilation) copied the config file bcmrpi_cutdown_defconfig (cp arch/arm/configs/bcmrpi_cutdown_defconfig /usr/src/3.1.9/.config) and added the options for iptables.
Compiled the kernel (make) and install the modules (make modules_install). Saved a copy of the installed modules on a usb pen drive for later use. Copy the kernel Image from arch/arm/boot and saved it also on the usb pen drive.
Downloaded a copy of the armedslack 13.37 tree to my server forlocal install.
I have a sata to usb case and an old 160G sata disk which is great for what I want.
Prepare the partitions (sda1 > swap; sda2 > / with ext4).
Mounted /dev/sda2 on /mnt/hd and smbfs share on /mnt/tmp and installed full packages except k, kde and xap (which I do not need) using installpkg (installpkg --root /mnt/hd *.tgz on respective folders). This way all packages are installed on the target drive which is my usb sata drive.
Placed the modules (preivously saved on a usb pen drive) onto the correct folder (my case /mnt/hd/lib/modules)
Created fstab on the target drive (/mnt/hd/etc/) with the following:
- Code: Select all
proc /proc proc defaults 0 0
/dev/mmcblk0p1 /boot vfat defaults 0 0
/dev/sda1 swap swap defaults 0 0
/dev/sda2 / ext4 defaults 1 1
Created rc.keymap (/mnt/hd/etc/rc.d/) for my keyborad layout (PT) with
- Code: Select all
#!/bin/sh
# Load the keyboard map. More maps are in /usr/share/kbd/keymaps.
if [ -x /usr/bin/loadkeys ]; then
/usr/bin/loadkeys pt.map
fi
Edited rc.inet1.conf for DHCP on boot (/mnt/hd/etc/rc.d/rc.inet1.conf)
- Code: Select all
USE_DHCP[0]="yes"
Powered down the raspberry and on another system erased the boot partition on the SD card which had the image of this thread and copied the firmware from git hub (
https://github.com/raspberrypi/firmware ... 53b09/boot).
Added cmdline.txt with
- Code: Select all
dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 root=/dev/sda2 ro rootfstype=ext4 rootwait
The ro next to root=/dev/sda2 is to mount the filesystem as readonly to avoid system error message which pauses the boot until enter is pressed.
An error like
- Code: Select all
> Testing root filesystem status: read-write filesystem
*** ERROR: Root partition has already been mounted read-write. Cannot
check!
For filesystem checking to work properly, your system must initially mount
the root partition as read only. Please modify your kernel with 'rdev' so
that
it does this. If you're booting with LILO, add a line:
read-only
to the Linux section in your /etc/lilo.conf and type 'lilo' to reinstall
it.
If you boot from a kernel on a floppy disk, put it in the drive and type:
rdev -R /dev/fd0 1
If you boot from a bootdisk, or with Loadlin, you can add the 'ro' flag.
This will fix the problem *AND* eliminate this annoying message. :^)
Press ENTER to continue.
Added config.txt with
- Code: Select all
disable_overscan=1
And finally added issue.txt whit
- Code: Select all
RaspberryPi/bcm2708 1.0.0
Inserted the SD card into rpi connected the disk to usb, ethernet cable and power up.
Booted up nicely and it seems to be running pretty good. User root has no password but just login and passwd to create it.
Root partition is arround 5G. I think I'll make an image from this just in case I need to get a clean install.
I'm no expert on linux or slackware and I'm not sure if this is good for installation but it's the way I've managed to install armedslack on a clean drive.
Anyways it was fun, and that's what all about
Many thanks to Raspbery Pi, Slackware and armedSlack team for all. Keep on doing the goodwork.
regards,
hyakutake