patches and low-level development discussion
 help / color / mirror / code / Atom feed
* Cross-compilation support - call for test / nix-help
@ 2022-06-30 11:42 Ville Ilvonen
  2022-07-12 18:15 ` Alyssa Ross
  0 siblings, 1 reply; 4+ messages in thread
From: Ville Ilvonen @ 2022-06-30 11:42 UTC (permalink / raw)
  To: devel

Hi all,

As Ivan (@jonne) updated earlier this week on #spectrum, we've got initial cross-compilation support for aarch64 available in Spectrum development fork. It still needs some TLC before Spectrum PRs but is a great step forward. Our current ref. board is NXP i.MX8 but rootfs build should be fairly easy to modify for RPi4 configs already in nixpkgs for anyone who cares to try.

Quick how-to for non-nixos host like Ubuntu:
git clone -b aarch64-imx8-crosscompile https://github.com/tiiuae/nixpkgs-spectrum.git
git clone -b aarch64-imx8-crosscompile https://github.com/tiiuae/spectrum.git
cd spectrum/host/rootfs
nix-build -I nixpkgs=../../../nixpkgs-spectrum

Know issue:
- crossSystem from https://github.com/tiiuae/spectrum/commit/aad5f90cf2ec931f2af5c8d5111a9fac11686f8b#diff-5e4605b8d5634dcdcce8f0963ac46b90dc052b9a6de153cbd8e625f105c9be9aR6 is ignored on NixOS host but not on Ubuntu - maybe someone can point us why.

Thanks, 

-Ville


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Cross-compilation support - call for test / nix-help
  2022-06-30 11:42 Cross-compilation support - call for test / nix-help Ville Ilvonen
@ 2022-07-12 18:15 ` Alyssa Ross
  2022-07-13  9:36   ` Ville Ilvonen
  0 siblings, 1 reply; 4+ messages in thread
From: Alyssa Ross @ 2022-07-12 18:15 UTC (permalink / raw)
  To: Ville Ilvonen; +Cc: devel

[-- Attachment #1: Type: text/plain, Size: 388 bytes --]

On Thu, Jun 30, 2022 at 11:42:49AM -0000, Ville Ilvonen wrote:
> Know issue:
> - crossSystem from https://github.com/tiiuae/spectrum/commit/aad5f90cf2ec931f2af5c8d5111a9fac11686f8b#diff-5e4605b8d5634dcdcce8f0963ac46b90dc052b9a6de153cbd8e625f105c9be9aR6 is ignored on NixOS host but not on Ubuntu - maybe someone can point us why.

Just checking — did you find a solution for this?

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Cross-compilation support - call for test / nix-help
  2022-07-12 18:15 ` Alyssa Ross
@ 2022-07-13  9:36   ` Ville Ilvonen
  2022-07-13  9:54     ` Alyssa Ross
  0 siblings, 1 reply; 4+ messages in thread
From: Ville Ilvonen @ 2022-07-13  9:36 UTC (permalink / raw)
  To: Alyssa Ross; +Cc: devel

On Tue, Jul 12, 2022 at 9:15 PM Alyssa Ross <hi@alyssa.is> wrote:
>
> On Thu, Jun 30, 2022 at 11:42:49AM -0000, Ville Ilvonen wrote:
> > Know issue:
> > - crossSystem from https://github.com/tiiuae/spectrum/commit/aad5f90cf2ec931f2af5c8d5111a9fac11686f8b#diff-5e4605b8d5634dcdcce8f0963ac46b90dc052b9a6de153cbd8e625f105c9be9aR6 is ignored on NixOS host but not on Ubuntu - maybe someone can point us why.
>
> Just checking — did you find a solution for this?

Not really. I heard from Tervis he had no issues with NixOS so I have to retest.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Cross-compilation support - call for test / nix-help
  2022-07-13  9:36   ` Ville Ilvonen
@ 2022-07-13  9:54     ` Alyssa Ross
  0 siblings, 0 replies; 4+ messages in thread
From: Alyssa Ross @ 2022-07-13  9:54 UTC (permalink / raw)
  To: Ville Ilvonen; +Cc: devel

[-- Attachment #1: Type: text/plain, Size: 701 bytes --]

On Wed, Jul 13, 2022 at 12:36:44PM +0300, Ville Ilvonen wrote:
> On Tue, Jul 12, 2022 at 9:15 PM Alyssa Ross <hi@alyssa.is> wrote:
> >
> > On Thu, Jun 30, 2022 at 11:42:49AM -0000, Ville Ilvonen wrote:
> > > Know issue:
> > > - crossSystem from https://github.com/tiiuae/spectrum/commit/aad5f90cf2ec931f2af5c8d5111a9fac11686f8b#diff-5e4605b8d5634dcdcce8f0963ac46b90dc052b9a6de153cbd8e625f105c9be9aR6 is ignored on NixOS host but not on Ubuntu - maybe someone can point us why.
> >
> > Just checking — did you find a solution for this?
>
> Not really. I heard from Tervis he had no issues with NixOS so I have to retest.

Gotcha.  Feel free to reach out again here if you're still stuck.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-07-13  9:54 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-30 11:42 Cross-compilation support - call for test / nix-help Ville Ilvonen
2022-07-12 18:15 ` Alyssa Ross
2022-07-13  9:36   ` Ville Ilvonen
2022-07-13  9:54     ` Alyssa Ross

Code repositories for project(s) associated with this public inbox

	https://spectrum-os.org/git/crosvm
	https://spectrum-os.org/git/doc
	https://spectrum-os.org/git/mktuntap
	https://spectrum-os.org/git/nixpkgs
	https://spectrum-os.org/git/spectrum
	https://spectrum-os.org/git/ucspi-vsock
	https://spectrum-os.org/git/www

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).