Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

starfive/visionfive/v1: init #479

Merged
merged 3 commits into from
Oct 9, 2022
Merged

starfive/visionfive/v1: init #479

merged 3 commits into from
Oct 9, 2022

Conversation

Madouura
Copy link
Contributor

@Madouura Madouura commented Oct 8, 2022

Moving from NixOS/nixpkgs#168826.

@Madouura Madouura force-pushed the master branch 2 times, most recently from 070e56c to f2b9108 Compare October 8, 2022 09:25
@Madouura Madouura mentioned this pull request Oct 8, 2022
14 tasks
@Madouura
Copy link
Contributor Author

Madouura commented Oct 8, 2022

To build the SD image: nix-build "<nixpkgs/nixos>" -A config.system.build.sdImage -I nixos-config=iso.nix

iso.nix

{ config, ... }:

{
  imports = [ <nixos-hardware/starfive/visionfive/v1/sd-image-installer.nix> ];
  # or imports = [ "${nixos-hardware-directory}/starfive/visionfive/v1/sd-image-installer.nix" ];

  nixpkgs.crossSystem = {
    config = "riscv64-unknown-linux-gnu";
    system = "riscv64-linux";
  };
}

@Madouura
Copy link
Contributor Author

Madouura commented Oct 8, 2022

@Mic92
Copy link
Member

Mic92 commented Oct 8, 2022

Can you add your last two messages to a README.md in the starfive/visionfive/v1 directory? Than it's easier for the next person to figure out how to use the profile.

@Madouura
Copy link
Contributor Author

Madouura commented Oct 8, 2022

loading module dm_mod...
[    4.770798] device-mapper: core: CONFIG_IMA_DISABLE_HTABLE is disabled. Duplicate IMA measurements will not be recorded in the IMA log.
[    4.783332] device-mapper: uevent: version 1.0.3
[    4.788525] device-mapper: ioctl: 4.47.0-ioctl (2022-07-28) initialised: [email protected]
running udev...
Starting version 250.4
kbd_mode: KDSKBMODE: Inappropriate ioctl for device
starting device mapper and LVM...
[   10.469265] random: crng init done
waiting for device /dev/disk/by-label/NIXOS_SD to appear.......................
Timed out waiting for device /dev/disk/by-label/NIXOS_SD, trying to mount anyway.
mounting /dev/disk/by-label/NIXOS_SD on /...
[   40.484664] /dev/disk/by-label/NIXOS_SD: Can't open blockdev
mount: mounting /dev/disk/by-label/NIXOS_SD on /mnt-root/ failed: No such file or directory

An error occurred in stage 1 of the boot process, which must mount the
root filesystem on `/mnt-root' and then start stage 2.  Press one
of the following keys:

  r) to reboot immediately
  *) to ignore the error and continue

As far as I can tell, this error is likely on nixpkgs' side, but I could be wrong.
I've spent the last 8 hours trying to debug this so if anyone has any better ideas until I figure it out, let me know.

@Mic92
Copy link
Member

Mic92 commented Oct 9, 2022

bors merge

@bors
Copy link
Contributor

bors bot commented Oct 9, 2022

Build succeeded:

  • tests

@bors bors bot merged commit 85ed160 into NixOS:master Oct 9, 2022
mexisme pushed a commit to mexisme/nixos-hardware that referenced this pull request Nov 4, 2022
479: starfive/visionfive/v1: init r=Mic92 a=Madouura



Co-authored-by: Madoura <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants