Now - over a year later - I think it is time for a "relaunch". I will give armbian a try.
Installation
Before you can install armbian on the board you have to download it from http://www.armbian.com/. At the moment one can choose between an older legacy kernel and an newer vanilla kernel. I took the newer vanilla kernel because I have no need for video acceleration. I want to use my R1 as home server. When the download is finished you can extract the image of the archive:7z e archive.7zNow you have an IMG file. In the next step write the IMG file to the sd card.
dd if=archive.img of=/dev/sdx # replace x by your device numberAfter dd stops, sync the file buffers.
syncNow remove the sd card from your sd card reader and insert it into your R1. Turn it on. If you've done everything right, armbian boots. At the end of the boot process the login prompt is displayed. Log on as root and follow the instruction - you have to change the root password and add a user.
Network
Now you're logged in as root and your network is configured via DHCP. The default configuration prevents network connections between the ports of the switch. I want my R1 to behave like a simple switch. Fortunately the armbian developers already prepared a network configuration file for this purpose. In /etc/network there is a file interfaces.r1switch. It is the base for my configuration. I copied this file to /etc/network/interfaces an added a static IP address.auto loAt his point I discovered a problem with the swconfig tool. The problem and solution are discussed here. After I installed swconfig from the forum thread everything worked fine.
iface lo inet loopback
auto eth0.101
iface eth0.101 inet manual
pre-up swconfig dev eth0 set reset 1
pre-up swconfig dev eth0 set enable_vlan 1
pre-up swconfig dev eth0 vlan 101 set ports '0 1 2 3 4 8t'
pre-up swconfig dev eth0 set apply 1
auto wlan0
iface wlan0 inet manual
auto br0
iface br0 inet static
bridge_ports eth0.101 wlan0
address 192.168.178.2
netmask 255.255.255.0
gateway 192.168.178.1
dns-nameservers 192.168.178.1
Update
Now that we have a network connection it is time to update the os.apt-get update
apt-get upgrade
SATA Disk
Hint:When I installed my SATA drive I was hit by one of the shortcoming of this board. Every time I tried to format the disk the board crashed. First I thought the board is defect but then I found out it was the insufficient power supply of this board. I disconnected the USB keyboard and everything worked fine.
To find out the device name list all block devices:
lsblkOutput looks like this:
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTThen format the disk:
sda 8:0 0 931.5G 0 disk
└─sda1 8:1 0 931.5G 0 part /mnt/data
mmcblk0 179:0 0 28.8G 0 disk
└─mmcblk0p1 179:1 0 28.5G 0 part /
mkfs.ext4 /dev/sda1Now mount the disk:
mkdir /mnt/data
mount /dev/sda1 /mnt/dataAdd an entry to fstab to make the mount persistent:
/dev/sda1 /mnt/data ext4 defaults 0 0
No comments:
Post a Comment