M
M
Mars362021-08-19 22:22:41
linux
Mars36, 2021-08-19 22:22:41

How to run arch linux on beaglebone black?

I'm trying to run arch on the above device, I'm doing everything according to the instructions ( https://archlinuxarm.org/platforms/armv7/ti/beagle... ), but BBB does not see the card, I tried to make a separate section for the bootloader and format it in vfat , then the bootloader starts, but he swears that he could not find the kernel, respectively. Maybe I'm missing something from the instructions?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
X
xotkot, 2021-08-21
@Mars36

#!/usr/bin/env bash

set -o xtrace
set -o errexit

MicroSD="/dev/sdX"
DIR="/tmp/bbb"
MNT="$DIR/mnt"

rm -rf $DIR
mkdir -p "$MNT"

dd if=/dev/zero of=$MicroSD bs=2M count=1 conv=fsync oflag=direct status=progress
echo -e "label:dos\nstart=2M" | sfdisk $MicroSD
yes | mkfs.ext4 -O '^metadata_csum,^64bit' -m1 ${MicroSD}1
mount ${MicroSD}1 "$MNT"

am33x=ArchLinuxARM-am33x-latest.tar.gz
curl -L -o $DIR/$am33x "http://os.archlinuxarm.org/os/$am33x"
bsdtar -xpf "$DIR/$am33x" -C "$MNT" && sync

dd if=$MNT/boot/MLO of=$MicroSD bs=128k count=1 seek=1 conv=notrunc,fsync oflag=direct status=progress
dd if=$MNT/boot/u-boot.img of=$MicroSD bs=384k count=2 seek=1 conv=notrunc,fsync oflag=direct status=progress

umount "$MNT"
exit

R
res2001, 2021-08-20
@res2001

BBB does not see the card

The link describes the raw option for loading from a memory card.
There is also an option to boot from a bootable FAT/FAT32 partition. But, perhaps it needs to be turned on by some switches on the board.
There you simply place the bootloader and kernel files in the root of the partition.
In general, Texas Instruments has its own assembly of Linux. Use it, not arch. There you can also find a description of creating bootable media for Linux (of course, in relation to your distro). They have a good dock.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question