A short how to install archlinux from scratch using arch-install-scripts. I started using the provided root filesystem from a uSD-Card.
1. Create partitions and format the internal eMMC using the fdisk commands from the archlinux arm installation instructions
2. Copy the Bootloader
$this->bbcode_second_pass_code('', 'mount /dev/mmcblk0p1 /mnt
mkdir /mnt-boot
mount /dev/mmcblk1p1 /mnt-boot
cp /mnt/* /mnt-boot
umount /mnt
umount /mnt-boot
')
3. Install prequisits
$this->bbcode_second_pass_code('', 'pacman -S arch-install-scripts')
4. Create a file system and mount the partition
$this->bbcode_second_pass_code('', 'mkfs.ext4 /dev/mmcblk1p2
mount /dev/mmcblk1p2 /mnt')
5. Install the base system
$this->bbcode_second_pass_code('', 'pacstrap /mnt base')
6. Chroot into it
$this->bbcode_second_pass_code('', 'arch-chroot /mnt')
7. Remove default kernel and install the BeagleBone kernel
$this->bbcode_second_pass_code('', 'pacman -R linux-armv7
pacman -S linux-am33x')
8. Enable DHCP service (optional)
$this->bbcode_second_pass_code('', '
systemctl enable dhcpcd@eth0
')
This is it, after reboot you should have your new installation of archlinux.
Question: Wouldn't it be more the arch way to provide this as installation instruction for the BeagleBone Black?