$ uname -ar
Linux alarm 6.6.31-1-rpi #1 SMP PREEMPT Mon May 20 15:32:09 MDT 2024 aarch64 GNU/Linux
起動の様子は
pimoroniのnvmeアダプターにとりつけたnvmeにインストールされたubuntuで
SDカードへのarch導入作業をしました
https://kiljan.org/2023/11/24/arch-linux-arm-on-a-raspberry-pi-5-model-b/
の 一ヶ所を変えただけのものです
arch-2.bat として
##Run as root:
export SDDEV=/dev/mmcblk0
export SDPARTBOOT=/dev/mmcblk0p1
export SDPARTROOT=/dev/mmcblk0p2
export SDMOUNT=/mnt/sd
export DOWNLOADDIR=/tmp/pi
export DISTURL="http://os.archlinuxarm.org/os/ArchLinuxARM-rpi-aarch64-latest.tar.gz"
mkdir -p $DOWNLOADDIR
(
cd $DOWNLOADDIR && \
curl -JLO $DISTURL
)
sfdisk --quiet --wipe always $SDDEV << EOF
,256M,0c,
,,,
EOF
mkfs.vfat -F 32 $SDPARTBOOT
mkfs.ext4 -E lazy_itable_init=0,lazy_journal_init=0 -F $SDPARTROOT
mkdir -p $SDMOUNT
mount $SDPARTROOT $SDMOUNT
mkdir -p ${SDMOUNT}/boot
mount $SDPARTBOOT ${SDMOUNT}/boot
bsdtar -xpf ${DOWNLOADDIR}/ArchLinuxARM-rpi-aarch64-latest.tar.gz -C $SDMOUNT
rm -rf ${SDMOUNT}/boot/*
mkdir -p ${DOWNLOADDIR}/linux-rpi
pushd ${DOWNLOADDIR}/linux-rpi
curl -JLO http://mirror.archlinuxarm.org/aarch64/core/linux-rpi-6.6.31-1-aarch64.pkg.tar.xz
tar xf *
cp -rf boot/* ${SDMOUNT}/boot/
popd
sync && umount -R $SDMOUNT
をすると マイクロSDカードに archlinux が入ります
alarmのパスワードは alarm |
---|
su つまり rootは root です |
x86な manjaro linux マシンから
このarmなSDカードに入り 以下をします
##################
#pacman-key --init
#pacman-key --populate archlinuxarm
#pacman -R linux-aarch64 uboot-raspberrypi
#pacman -Syu --overwrite "/boot/*" linux-rpi
但し
ここから
####################
When Arch Linux ARM starts supporting the Pi 5,
the Pi Foundation’s kernel can be replaced with the mainline kernel by running:
#pacman -Syu linux-aarch64 uboot-raspberrypi
There will be warning that those packages conflict with package linux-rpi
and
whether you want it replaced.
If you do, linux-rpi will be removed before installing the new #packages.
After that, your Arch Linux ARM installation should be the same as the official Arch Linux ARM Raspberry Pi image that supports the Pi 5.
ここまでは わけありなので今はしてません、
この結果は 以下です
# fdisk -l /dev/mmcblk0
Disk /dev/mmcblk0: 29.12 GiB, 31270109184 bytes, 61074432 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x444986e6
Device Boot Start End Sectors Size Id Type
/dev/mmcblk0p1 2048 526335 524288 256M c W95 FAT32 (LBA)
/dev/mmcblk0p2 526336 61074431 60548096 28.9G 83 Linux
ーーー
# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/root 29622764 1695640 26397040 7% /
devtmpfs 3898716 0 3898716 0% /dev
tmpfs 4065084 0 4065084 0% /dev/shm
tmpfs 1626036 748 1625288 1% /run
tmpfs 4065084 4 4065080 1% /tmp
/dev/mmcblk0p1 258095 1803 256293 1% /boot
tmpfs 813016 0 813016 0% /run/user/1000
ーーー
# cat /boot/cmdline.txt
root=/dev/mmcblk0p2 rw rootwait console=serial0,115200 console=tty1 fsck.repair=yes
ーーー
# cat /etc/fstab
# Static information about the filesystems.
# See fstab(5) for details.
# <file system> <dir> <type> <options> <dump> <pass>
/dev/mmcblk0p1 /boot vfat defaults 0 0
次に
1)x86なLINUXマシンで SDカードを USBメモリに ddし gpartedでUSBメモリを拡張します
2)その後 USBメモリの
/boot/cmdline.txt を
root=/dev/sda2 rw rootwait console=serial0,115200 console=tty1 fsck.repair=yes
/etc/fstab を
/dev/sda1 /boot vfat defaults 0 0
とするとUSBメモリから起動できます
3)ln -sf /usr/share/zoneinfo/Japan /etc/localtime で日本時間になります
いよいよ GUIへ 突入していきます
AIをそのまま信じちゃいけないよ
ウブな私でも〜
GUIでなんど AIにすかされたことか~
4)pacman -Sy xfce4
pacman -Sy otf-ipafont fcitx-im fcitx-configtool fcitx-mozc cups ghostscript evince poppler-data noto-fonts-cjk make patch net-tools
$ ./comment-out.bat .xprofile
export XMODIFIERS=@im=fcitx
export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
$ ./comment-out.bat .xinitrc
exec startxfce4
5)しかしこれで起動してもGUI立ち上がりません
6)それで gdm をインストール
なるほどここgdmに xorg-server でてますね
7)しかし xfce4の画面じゃない
あれれ、gnomeだ~~~
8)しからば
pacman -Rsc xfce4
pacman -S gnome
pacman -Rsc fcitx-mozc (不安定故のけました)
pacman -S ibus-anthy
$ cat .bashrc
#
# ~/.bashrc
#
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
alias ls='ls --color=auto'
alias grep='grep --color=auto'
PS1='[\u@\h \W]\$ '
export XMODIFIERS=@im=ibus
export GTK_IM_MODULE=ibus
export QT_IM_MODULE=ibus