Try putting CentOS 8 on Raspberry Pi 3
I decided to play with CentOS at home, so I will leave the result of giving up because the initial setting of CentOS 8 ~ ~ installation ~ ~ on Raspberry Pi 3 did not work. ..
–Working place: Mac
–Raspberry Pi I tried to put on: 3B, 3B + (both failed)
Write CentOS to SD card
It’s almost as described on the reference site, but for the time being.
SD card is formatted with FAT_32.
Index of / pub / linux / centos-altarch / 8 / isos / armhfp Bring the image of the OS from.
The file downloaded at this time is CentOS-Userland-8-armv7hl-generic-Minimal-1911-sda.raw.xz
.
Check the SD card path with diskutil list
(at this time it was / dev / disk2
).
Execute the following in the location where the downloaded file is located.
Change the file name and path in each environment.
sudo xzcat CentOS-Userland-8-armv7hl-generic-Minimal-1911-sda.raw.xz | sudo dd of=/dev/disk2 bs=8192
If you do the xzcat --dd
on the wiki exactly as it is on your Mac,
status=progress
→dd: unknown operand status
bs=4M
→dd: bs: illegal numeric value
I’m angry that I don’t know or change it to a number, so remove the status and change 4M to a number.
After running, wait until it comes back.
If you don’t want to come back, you can check the progress by hitting Ctrl + t
once in a while.
When it comes back, execute sync
to complete the writing.
Remove the SD card, insert it in the Raspberry Pi, and start it.
Initial setting on Raspberry Pi
Turn on the power and start it.
The default login username and password is root
/ centos
.
After logging in, let’s expand the area first.
It seems that only about 2GB can be used as it is, so as written on the official wiki,
/usr/bin/rootfs-expand
And extend it to the maximum.
Next, if you are using a Japanese keyboard, change the layout.
localectl set-keymap jp106
localectl set-keymap jp-OADG109A
localectl set-locale LANG=ja_JP.utf8
After the change, check the contents with localectl
.
After that, disable kernel’s update before disabling SELinux or updating the package.
If you run the package update as it is, the kernel will also be updated, and for some reason ʻeth0 will disappear and you will not be able to connect to the network.
lspci` is not included by default, and even if it is included, it does not recognize anything, so it gets stuck.
If this is x86, I’m not sure what to say.
So I will exclude it.
Specifying the option every time will definitely cause omissions, so write it in dnf.conf
.
Add a line to /etc/dnf/dnf.conf
.
excludepkgs=kernel*
With this, it is safe and secure even if you dnf update
.
After that, let’s play with it as you like.
What I thought
–If you see kernel-core-4.19.104-300.el8.armv7hl.rpm
, calmly exclude it
–Few people are trying to put CentOS 8 in pi3