Is there a guide to port ArchLinuxARM to new board/chipset ?

Guides written by the community, for the community, and only guides!

Is there a guide to port ArchLinuxARM to new board/chipset ?

Postby pacman » Tue Jun 09, 2015 3:29 pm

Hi,

I'm looking for a guide, how to, pointers, and any sort of help :) to port ArchLinuxARM to another board/chipset.
To illustrate it let's use an example and two short questions:
- let's say there's a board called "apple pie" and I have access to one.
- let's say I have a Linux kernel and drivers for it and I have booted it.
- then:
a) what would be the steps I would need to take to port ArchLinuxARM?
b) what would be the steps I would need to follow to create a "full image" (ie: kernel+archlinuxarm rootfs) so that other people can use it?

(I suppose that what I'm looking for is how to do to create a ArchLinuxARM port similar to the one used by the Raspberry Pi 2)

Any help will be greatly appreciated! :)

Thanks!

[edit: subjet made as question]
pacman
 
Posts: 2
Joined: Tue Jun 09, 2015 3:13 pm

Re: Is there a guide to port ArchLinuxARM to new board/chips

Postby WarheadsSE » Tue Jun 09, 2015 6:08 pm

pacstrap.

There is no "porting", it is called "board support"
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6730
Joined: Mon Oct 18, 2010 2:12 pm

Re: Is there a guide to port ArchLinuxARM to new board/chips

Postby pacman » Wed Jun 10, 2015 3:24 pm

Hi,

Thanks for your reply.

I read more about pacstrap as you mentioned, and if I understood correctly, it is supposed to be a BASH script that when run on an already running Linux system (not sure if it has to be on a host -x86- or target -arm-), will setup an ArchLinuxARM rootfs (not sure if it compiles or downloads binaries).
However, when reading this:

https://wiki.archlinux.org/index.php/In ... ting_Linux

it appears that something else must be done in order for pacstrap to run, which makes me think that my understanding (above) may be incorrect (see further below for my tests)

I also found this:

https://github.com/archlinuxarm/PKGBUILDs/issues/716

which is similar to my original post, but does not seem to have any useful answer.

Anyway, I attempted something but it did not work, here's what I did:

Code: Select all
[x86-host] $ git clone https://github.com/falconindy/arch-install-scripts.git
[x86-host] $ cd arch-install-scripts/
[x86-host] $ make
[arm-target] # cd /somewhere/arch-install-scripts/
[arm-target] # ./pacstrap -di /somewhere/rootfs
(...snip...)
==> Installing packages to /somewhere/rootfs
./pacstrap: line 369: pacman: command not found
==> ERROR: Failed to install packages to new root


NOTE: I had to modify a little bit the pacstrap script because it did not work out of the box on my BusyBox-based shell.

1) Where can I get the "pacman" code? is that a script or a binary?
2) Are there any additional steps to setup "pacman"? I believe I have to setup a mirror by editing /etc/pacman.d/mirrorlist and add a mirror from http://archlinuxarm.org/about/mirrors as
Code: Select all
Server = http://fr.mirror.archlinuxarm.org/archlinux/$repo/os/$arch

would that be correct?

Thanks in advance!
pacman
 
Posts: 2
Joined: Tue Jun 09, 2015 3:13 pm


Return to Community Guides

Who is online

Users browsing this forum: No registered users and 2 guests