Arch Linux

Post Reply
j12t
Posts: 8
Joined: Sun Feb 17, 2019 4:57 am
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Arch Linux

Post by j12t »

Trying to get Arch to run on the M1. Anybody else, want to share notes?

So far, I'm having difficulties just to interact with Petitboot ... I'll make a separate post there.

User avatar
tobetter
Posts: 13094
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 996 times
Been thanked: 2275 times
Contact:

Re: Arch Linux

Post by tobetter »

It would be nice if you can share the instruction or the image of Arch.
For Petitboot issue, I can follow up in your another thread.
Thank you.

glenno
Posts: 49
Joined: Sun Nov 23, 2014 8:34 am
languages_spoken: english
ODROIDs: Odroid M1S, M1, XU4, XU, X, SHOW2, Weather, Weather_Zero & about 25 emmc and microSD cards with a stack of different Linux builds and distributions.
Has thanked: 15 times
Been thanked: 11 times
Contact:

Re: Arch Linux

Post by glenno »

Following this. Ive run Arch on my odroid-X and odroid-XU4 for about a decade now.

Ive just booted up on Debian and its working well. Will circle back when there are few steps available.

User avatar
tobetter
Posts: 13094
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 996 times
Been thanked: 2275 times
Contact:

Re: Arch Linux

Post by tobetter »

glenno wrote:
Tue May 03, 2022 3:18 pm
Following this. Ive run Arch on my odroid-X and odroid-XU4 for about a decade now.

Ive just booted up on Debian and its working well. Will circle back when there are few steps available.
I wonder how did you install Debian to ODROID-M1?

profke
Posts: 1
Joined: Tue May 10, 2022 10:25 pm
languages_spoken: english
ODROIDs: M1
Has thanked: 0
Been thanked: 0
Contact:

Re: Arch Linux

Post by profke »

simple: netboot-installer:
http://ppa.linuxfactory.or.kr/installer ... roidm1.cfg => follow the instructions...
just one minor issue: it's Debian 10... (nearly eol)

User avatar
tobetter
Posts: 13094
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 996 times
Been thanked: 2275 times
Contact:

Re: Arch Linux

Post by tobetter »

profke wrote:
Tue May 10, 2022 10:34 pm
simple: netboot-installer:
http://ppa.linuxfactory.or.kr/installer ... roidm1.cfg => follow the instructions...
just one minor issue: it's Debian 10... (nearly eol)
True...Debian 11 or 12 will come with mainline kernel if my plan works.

trap000d
Posts: 4
Joined: Thu Aug 20, 2020 2:04 pm
languages_spoken: english
ODROIDs: ODROID-C2, ODROID-M1
Has thanked: 0
Been thanked: 1 time
Contact:

Re: Arch Linux

Post by trap000d »

Well, after several unsuccessful tries I've managed to run Arch on M1 with stock Ubuntu 20.04 kernel.

Mainline kernel AFAIK isn't ready yet - I gave up after few attempts to adopt Manjaro with 5.18 - no luck with nvme, hdmi and usb

Attempted to build HK kernel 4.19.219 from source (Ubuntu->dl/make arch-install-scripts -> arch-chroot) - compiler has thrown several errors :(
Just in case if you want to give it a chance - here is PKGBUILD (not working yet): https://github.com/trap000d/aur/tree/ma ... -odroid-m1

So the following dirty hack worked for me. I've got nvme SSD for O/S installation (/dev/nvme0n1) and USB stick (/dev/sda)
1. Download HK Ubuntu 20.04 'server' image and dd it to USB
2. Copy the image file to some folder on USB: sudo cp ubuntu-20.04-server-odroidm1-20220531.img /media/trap000d/rootfs/root/
3. Download generic Alarm aarch64 rootfs and copy it to the same location: sudo cp ArchLinuxARM-aarch64-latest.tar.gz /media/trap000d/rootfs/root/
4. Boot Odroid, login (odroid/odroid) , sudo -i
5. Roll out Ubuntu onto SSD: dd ubuntu-20.04-server-odroidm1-20220531.img /dev/nvme0n1
6. REBOOT, boot to SSD, login and reboot (to finalize Ubuntu "installation")
7. Boot again from USB, mount second partition e.g.: mkdir /mnt/p2; mount /dev/nvme0n1p2 /mnt/p2
8. Move all files from /mnt/p2 to some backup directory
9. Unpack Arch rootfs: tar xpvf ArchLinuxARM-aarch64-latest.tar.gz -C/mnt/p2
10. From backup directory (p.8) copy (and replace if necessary) /lib/kernel, /lib/linux-image-4.19.219-odroid-arm64, /lib/modules/4.19.219-odroid-arm64, /lib/modprobe.d to /mnt/p2
11. Edit /mnt/p2/etc/fstab - add both nvme partitions as / and /boot
=== fstab ===
UUID=9ceb92e1-c737-4cfe-8a90-bdad2af420b1 / ext4 defaults 1 1
UUID=e9d5f39f-9f69-449c-b6e6-ca83c1de2c58 /boot ext2 defaults 1 1
===
12. Reboot twice
13. su -
pacman-key --init
pacman-key --populate archlinuxarm
Et Voila!
14. To change boot line (in Petitboot) from "Ubuntu" to "Arch" you'll have to edit and regenerate boot.scr with mkimage (pacman -S uboot-tools, man mkimage blahblah, google stackoverflow)

Relwi
Has thanked: 0
Been thanked: 0

Re: Arch Linux

Post by Relwi »

Is there some recent news of this? I want to install Arch Linux ARM on my Odroid, I checked https://wiki.odroid.com/odroid-m1/softw ... ing_kernel and https://wiki.odroid.com/odroid-m1/softw ... ing_u-boot but don't know what to do, can I create a ISO file from this and mount it to my nvme to boot it from petiboor or what can I do?

glenno
Posts: 49
Joined: Sun Nov 23, 2014 8:34 am
languages_spoken: english
ODROIDs: Odroid M1S, M1, XU4, XU, X, SHOW2, Weather, Weather_Zero & about 25 emmc and microSD cards with a stack of different Linux builds and distributions.
Has thanked: 15 times
Been thanked: 11 times
Contact:

Re: Arch Linux

Post by glenno »

Hey trap000d how are you going with a newer kernel? I checked out your github page https://github.com/trap000d/aur/tree/ma ... id-m1-boot and it looks like you have 6.1 in there.

Just wondering whether its ready for some testing. Im ready to give something newer than Debian 10 a go!

jazzLV
Posts: 12
Joined: Mon Mar 06, 2023 12:29 am
languages_spoken: english, latvian, russian
ODROIDs: Odroid-M1 (8GB)
Has thanked: 1 time
Been thanked: 5 times
Contact:

Re: Arch Linux

Post by jazzLV »

Arch Linux seems very cool. Very similar to debian.
I'm not that advanced to run it in Odroid M1, but I run it someplace else with other hardware and so far it feels that Arch Linux have literally latest versions of almost everything.

For example:
mkvtoolnix on debian 11 - v.52 ; on Arch - v.76.
gcc on debian 11 - v.10.2.1; on Arch - v.13.1.1

And so on literally with every package. And that seems the way it should be.

Also, updating system feels very "debian", just apt replaced with pacman.

User avatar
mctom
Posts: 3992
Joined: Wed Nov 11, 2020 4:44 am
languages_spoken: english, polski
ODROIDs: XU4, M1, H3+, SP3, N2L, M1S, N2
Location: Gdańsk, Poland
Has thanked: 585 times
Been thanked: 783 times
Contact:

Re: Arch Linux

Post by mctom »

Just wait until you discover yay. ;)

I wouldn't say that Arch resembles Debian, not more than almost all Linuxes share in common.
Punk ain't no religious cult, punk means thinking for yourself!
OpenUPS
PiStackMon

User avatar
rooted
Posts: 10615
Joined: Fri Dec 19, 2014 9:12 am
languages_spoken: english
Location: Gulf of Mexico, US
Has thanked: 821 times
Been thanked: 733 times
Contact:

Re: Arch Linux

Post by rooted »

Really what makes a distribution truly different from the next is package management in my opinion.

Arch is very different from all the apt based distributions, much like portage makes gentoo very different or rpm for redhat.

cx71
Posts: 1
Joined: Mon May 15, 2023 2:10 am
languages_spoken: english, polish
ODROIDs: Odroid M1
Has thanked: 0
Been thanked: 1 time
Contact:

Re: Arch Linux

Post by cx71 »

Hi. What is the status of this topic? It would be a really big deal to use Arch Linux on M1. Can I use Arch Linux on mainline kernel with M1 without any problems?
These users thanked the author cx71 for the post:
jazzLV (Wed May 17, 2023 3:09 am)

InFerNo
Posts: 37
Joined: Mon Dec 22, 2014 9:40 pm
languages_spoken: english, dutch
ODROIDs: ODROID-C1, ODROID-C4
Has thanked: 0
Been thanked: 1 time
Contact:

Re: Arch Linux

Post by InFerNo »

I'm interested in buying the M1S but it hinges on the availability of Arch Linux ARM.

Does anyone have a status on this?

hominoid
Posts: 934
Joined: Tue Feb 28, 2017 3:55 am
languages_spoken: english
ODROIDs: C2, C4, XU4, MC1, N1, N2, N2L, N2+, HC4, M1, H2, H3+
Location: Lake Superior Basin, USA
Has thanked: 144 times
Been thanked: 443 times
Contact:

Re: Arch Linux

Post by hominoid »

InFerNo wrote:
Mon Mar 25, 2024 4:54 am
I'm interested in buying the M1S but it hinges on the availability of Arch Linux ARM.

Does anyone have a status on this?
I have been running a M1S headless on Arch since the beginning of the year based on HK's legacy u-boot and 5.10.y kernel. I haven't had a chance to try mainline u-boot or the mainline kernel yet but I read somewhere that the M1S is now in mainline u-boot, so I believe it maybe possible to build.
    Screenshot_2024-03-25_12-07-14.png
    Screenshot_2024-03-25_12-07-14.png (70.9 KiB) Viewed 152 times
    These users thanked the author hominoid for the post:
    glenno (Thu Mar 28, 2024 8:19 am)

    glenno
    Posts: 49
    Joined: Sun Nov 23, 2014 8:34 am
    languages_spoken: english
    ODROIDs: Odroid M1S, M1, XU4, XU, X, SHOW2, Weather, Weather_Zero & about 25 emmc and microSD cards with a stack of different Linux builds and distributions.
    Has thanked: 15 times
    Been thanked: 11 times
    Contact:

    Re: Arch Linux

    Post by glenno »

    hominoid wrote:
    Tue Mar 26, 2024 1:49 am
    I have been running a M1S headless on Arch since the beginning of the year based on HK's legacy u-boot and 5.10.y kernel. I haven't had a chance to try mainline u-boot or the mainline kernel yet but I read somewhere that the M1S is now in mainline u-boot, so I believe it maybe possible to build.
    That is awesome. I love the rolling release style of Arch, its served me well on my old Xu4. Please keep us posted how you go with the mainline kernel!

    Post Reply

    Return to “Other OS”

    Who is online

    Users browsing this forum: Google [Bot] and 1 guest