在OSX上的Raspberry pi上构建Linux ARM

War*_*250 5 linux macos raspberry-pi archlinux-arm

我正在尝试通过执行"安装"下的说明将Arch Linux ARM放到我的RasPi 2上,但命令是Linux命令,我正在尝试使用我的Mac格式化SD,因此我的程序存在差异.我想绕过去.例如sudo fdisk /dev/sdX在linux上会产生交互式提示,在OSX上它是不同的,而我必须做fdisk -ie/dev/sdX来获得交互式提示,然后命令是不同的.

我想在我的Mac上做的是与linux上的这个过程相同的广告:

启动fdisk对SD卡进行分区:fdisk/dev/sdX在fdisk提示符下,删除旧分区并创建一个新分区:

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.
Run Code Online (Sandbox Code Playgroud)

但我不确定如何用OSX的fdisk实现这个目标.

Rnh*_*joj 5

我担心这是不可能的:你必须使用linux来安装tarball,因为你必须创建一个ext分区,OS X不支持它.

我不得不重新安装Arch但我刚刚发现他们不再分发磁盘映像了.本答案中解释了一些可能的解决方案.