LINUX.ORG.RU

Ошибка при старте linux на beagle bone black

 


0

1

Подготавливаю карту с помощью такого скрипта

#!/usr/bin/env bash

set -o xtrace
set -o errexit

MicroSD="/dev/sdc"
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

При старте системы получаю такой вывод:

[ 4.972322] mmcblk1rpmb: mmc1:0001 M62704 partition 3 512 KiB, chardev (245:0)
:: running early hook [udev]
Starting version 248.3-2-arch
:: running hook [udev]
:: Triggering uevents...
:: performing fsck on '/dev/mmcblk0p1'
/dev/mmcblk0p1: recovering journal
/dev/mmcblk0p1: clean, 32641/1954064 files, 382106/7814656 blocks
:: mounting '/dev/mmcblk0p1' on real root
[ 8.156349] EXT4-fs (mmcblk0p1): mounted filesystem with ordered data mode. Opts: (null). Quota mode: none.
:: running cleanup hook [udev]
[ 8.404050] request_module: kmod_concurrent_max (0) close to 0 (max_modprobes: 50), for module binfmt-0000, throttling...
switch_root: [ 13.539880] request_module: modprobe binfmt-0000 cannot be processed, kmod busy with 50 threads for more than 5 seconds now
[ 13.557130] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00007e00
[ 13.577022] CPU: 0 PID: 1 Comm: switch_root Not tainted 5.11.2-1-ARCH #1
[ 13.583772] Hardware name: Generic AM33XX (Flattened Device Tree)
[ 13.589904] Backtrace:
[ 13.592378] [<c0e7a210>] (dump_backtrace) from [<c0e7a5bc>] (show_stack+0x20/0x24)
[ 13.600035] r7:ffffe000 r6:c10ed750 r5:00000000 r4:c10fd388
[ 13.605728] [<c0e7a59c>] (show_stack) from [<c0e83a0c>] (dump_stack+0x2c/0x30)
[ 13.613010] [<c0e839e0>] (dump_stack) from [<c0e7ab74>] (panic+0x124/0x340)
[ 13.620026] r5:00000000 r4:c15ab598
[ 13.623623] [<c0e7aa50>] (panic) from [<c0131d14>] (do_exit+0xaf4/0xb6c)
[ 13.630390] r3:00000001 r2:c194e2c4 r1:00007e00 r0:c10ed750
[ 13.636083] r7:ffffe000
[ 13.638631] [<c0131220>] (do_exit) from [<c0131e28>] (do_group_exit+0x50/0xec)
[ 13.645912] r7:000000f8
[ 13.648460] [<c0131dd8>] (do_group_exit) from [<c0131ee4>] (__wake_up_parent+0x0/0x30)
[ 13.656444] r7:000000f8 r6:00000000 r5:b6ed024c r4:00000001
[ 13.662136] [<c0131ec4>] (sys_exit_group) from [<c0100060>] (ret_fast_syscall+0x0/0x58)
[ 13.670203] Exception stack(0xc194dfa8 to 0xc194dff0)
[ 13.675294] dfa0: 00000001 b6ed024c 0000007e 00000000 0000007e 1e724f00
[ 13.683529] dfc0: 00000001 b6ed024c 00000000 000000f8 b6ed0500 00000000 00000002 b6ecee20
[ 13.691761] dfe0: 00000000 bed8cd1c b6db2484 b6e24254
[ 13.696867] —-[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x00007e00 ]---
failed to execute /sbin/init: Exec format error
Посмотрел fstab и в нем кроме комментариев ничего нет, по идее монтирование должен выполнять /boot/boot.scr и возможно проблема не должна быть в этом. В чем может быть проблема?

P.S. Я знаю о существовании других дистрибутивов под эту железку, но в данном случае нужен именно этот.