树莓派上安装ArchLinux系统
现在居于Linux 内核的系统很多,五花八门,各有侧重。我挑了一种还算比较流行,精简的Linux: ArchLinux ARM版本
下载地址:http://archlinuxarm.org/os/ArchLinuxARM-rpi-2-latest.tar.gz
安装说明:http://archlinuxarm.org/platforms/armv7/broadcom/raspberry-pi-2
我把这2个打包放在: http://yunpan.cn/cVNnEqCA6EFft访问密码 83d8
一般的树莓派系统都提供的是一个img文件(系统镜像文件),然后用Win32DiskImager软件烧录到TF卡上,再插到树莓派上,即可上电运行!
但是这个ArchLinuxARM-rpi-2-latest.tar.gz不是镜像文件,而是一个目录树的压缩包,
安装说明是在Linux环境下进行的(TF卡的制作步骤):
SD Card Creation
Replace sdX in the following instructions with the device name for the SD card as it appears on your computer.
Start fdisk to partition the SD card:
fdisk /dev/sdX
At the fdisk prompt, delete old partitions and create a new one:
Type o. This will clear out any partitions on the drive.
Type p to list partitions. There should be no partitions left.
Type n, then p for primary, 1 for the first partition on the drive, press ENTER to accept the default first sector, then type +100M for the last sector.
Type t, then c to set the first partition to type W95 FAT32 (LBA).
Type n, then p for primary, 2 for the second partition on the drive, and then press ENTER twice to accept the default first and last sector.
Write the partition table and exit by typing w.
Create and mount the FAT filesystem:
mkfs.vfat /dev/sdX1 mkdir boot mount /dev/sdX1 boot
Create and mount the ext4 filesystem:
mkfs.ext4 /dev/sdX2 mkdir root mount /dev/sdX2 root
Download and extract the root filesystem (as root, not via sudo):
wget http://archlinuxarm.org/os/ArchLinuxARM-rpi-2-latest.tar.gz bsdtar -xpf ArchLinuxARM-rpi-2-latest.tar.gz -C root sync
Move boot files to the first partition:
mv root/boot/* boot
Unmount the two partitions:
umount boot root
Insert the SD card into the Raspberry Pi, connect ethernet, and apply 5V power.
Use the serial console or SSH to the IP address given to the board by your router. The default root password is 'root'.
装完以后的系统的用户名、密码都是:root
上电运行:
上电以后最好接上 HDMI,就可以直接看到显示了。
没有HDMI接口的,可以通过AV接口,需要买一根AV复合线(3.5mm)
上电以后接上网线,如果局域网内有DHCP服务器,树莓派会自动获取一个IP地址。
如果没有显示,不知道IP地址,可以在其他电脑上用PortScan软件扫描一下,计算机名:alarmpi 就树莓派!
知道了树莓派的IP地址,就可以用连接它了。
我习惯使用SecureCRT:
转载自新浪博客。
页:
[1]