Building alphaOS from source

Programming issues and discussion
Aspi
Advanced
Posts: 40
Joined: 21 Apr 2014, 11:32

Building alphaOS from source

Postby Aspi » 04 May 2014, 21:32

Requesting some guidance on building alphaOS from source.

I know the files are at github, and I've been investigating, but I'd be glad if someone who knows the build process could just outline the very base steps.

Eg.: (not by any means right, just trying to explain what level of doc I request)
  • Get build tools from *
  • Fetch sources from * into build dir
  • Build initrfs.img (by chrooting?)
  • Build vmlinuz (have no idea how) / Take vanilla kernel and build squashfs and aufs modules
  • Build the .sb's

And please, note if any of the steps depend on any earlier.

I ask both because I like to know how my system works (this is Arch, after all), and because I and prolly others would like to mod the base files as well.

Thanks a lot in advance! :D

john3voltas
Expert
Posts: 266
Joined: 19 May 2013, 21:53

Re: Building alphaOS from source

Postby john3voltas » 06 May 2014, 20:07

I would also like to learn (baby steps) on how to do it.
Maybe some day I can start helping up ;)

simargl
Site Admin
Posts: 466
Joined: 16 May 2013, 10:54
Contact:

Re: Building alphaOS from source

Postby simargl » 10 May 2014, 11:50

Here is the tutorial viewtopic.php?f=14&t=1099.

Basically arch packages are converted to spkg format, that is tar bzip archive with included database information for pacman, so pacman knows what is installed. Because of that every package is assumed from pacman as explicitely installed. Compiling alphaos specific spkg packages is done inside chroot. Later you put manually those packages to spicified folder and just use scripts to make sb bundles and iso automatically.

Aspi
Advanced
Posts: 40
Joined: 21 Apr 2014, 11:32

Re: Building alphaOS from source

Postby Aspi » 11 May 2014, 13:41

Thanks a ton, Sim! Very appreciated.
I'll prolly quirk around later on, if motivation suggests it.

john3voltas
Expert
Posts: 266
Joined: 19 May 2013, 21:53

Re: Building alphaOS from source

Postby john3voltas » 19 May 2014, 07:19

Thanks a bunch, Sim.
Maybe one of these days I'll try it myself. Then I may get a better understanding on how alpha works ;)
Cheers

smil99
Proficient
Posts: 73
Joined: 14 Sep 2013, 13:37

Re: Building alphaOS from source

Postby smil99 » 01 Jun 2014, 17:58

Hi sim,
I am trying to build alphaos as per your instructions. However, I think synchronizing paka's repository base should rather be invoked with:
CODE: SELECT ALL

Code: Select all

paka -Sy

and not

Code: Select all

paka -Syu

as the latter does nothing. Probably a typo.
Cheers.

simargl
Site Admin
Posts: 466
Joined: 16 May 2013, 10:54
Contact:

Re: Building alphaOS from source

Postby simargl » 02 Jun 2014, 14:45

Yes, that was mistake, thanks. I'll fix it now.

smil99
Proficient
Posts: 73
Joined: 14 Sep 2013, 13:37

Re: Building alphaOS from source

Postby smil99 » 02 Jun 2014, 23:40

Hi again sim,
I seem to be making the wrong moves somewhere in my attempt to build alphaos as per your instructions. So far, I am at Phase 2.2. By chroot, I suppose you mean the folder

Code: Select all

/mnt/home/data/spkg/packages/install
right? Well, I executed

Code: Select all

dhcpcd
while in that folder and everything seem ok. However, the next instruction:
Start compiling packages from 04_devel group
CODE: SELECT ALL
spkg -c linux-api-headers
gave:

Code: Select all

Package NaME Is Not Valid

I tried

Code: Select all

spkg -c linux-api-headers-3.14.1-1-x86_64.pkg.tar.xz
after searching with

Code: Select all

paka -Ss linux-api-headers
but still get

Code: Select all

Package NaME Is Not Valid
. Apparently, I might not be calling this command from the right folder, or ...?.
Any assistance will be greatly appreciated.
Cheers.

simargl
Site Admin
Posts: 466
Joined: 16 May 2013, 10:54
Contact:

Re: Building alphaOS from source

Postby simargl » 03 Jun 2014, 14:38

That is true /mnt/home/data/spkg/packages/install becomes new root (/) after you run chroot_build script. Now in there you need to copy linux-api-headers and other build scripts from cloned github repository (def-scripts directory) for packages from linux, core and devel groups. whole path should be /mnt/home/data/spkg/packages/install/mnt/home/data/spkg/def-scripts/linux-api-headers. that part is complicated with manually copying packages and directories, when you finish compiling packages later is all automatic.

smil99
Proficient
Posts: 73
Joined: 14 Sep 2013, 13:37

Re: Building alphaOS from source

Postby smil99 » 04 Jun 2014, 14:24

Hi Sim,
Thanks for the further explanation. However, I still can't figure out how and where to execute the following command in order to compile linux-api-headers:

Code: Select all

spkg -c linux-api-headers
:(
In

Code: Select all

/mnt/home/data/spkg/packages/install/mnt/home/data/spkg/def-scripts/04_devel
folder, there is a "linux-api-headers" which contains a "def" file and I get

Code: Select all

Package NaME Is Not Valid
when I try to compile. Can you please point out to me in which folder I have to excute the compile command?
Thanks.


Return to “Scripting and Programming”

Who is online

Users browsing this forum: No registered users and 15 guests

cron