树莓派论坛

 找回密码
 立即注册

树莓派上安装ArchLinux系统

树老大 发表于 2016-3-11 10:46:36 | 显示全部楼层 |阅读模式
现在居于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:
  1. 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:
  1. mkfs.vfat /dev/sdX1 mkdir boot mount /dev/sdX1 boot
复制代码

Create and mount the ext4 filesystem:
  1. mkfs.ext4 /dev/sdX2 mkdir root mount /dev/sdX2 root
复制代码

Download and extract the root filesystem (as root, not via sudo):
  1. 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:
  1. mv root/boot/* boot
复制代码

Unmount the two partitions:
  1. 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

上电运行:
001wKsmwgy6RJZbTUv37d&690.jpg

上电以后最好接上 HDMI,就可以直接看到显示了。

没有HDMI接口的,可以通过AV接口,需要买一根AV复合线(3.5mm)
上电以后接上网线,如果局域网内有DHCP服务器,树莓派会自动获取一个IP地址。
如果没有显示,不知道IP地址,可以在其他电脑上用PortScan软件扫描一下,计算机名:alarmpi 就树莓派!

知道了树莓派的IP地址,就可以用连接它了。
我习惯使用SecureCRT:
001wKsmwgy6RK2SP7tqc4&690.jpg

转载自新浪博客。
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版 | Archiver | 树莓派论坛 ( 粤ICP备15075382号-1 )