Commit Graph

44 Commits

Author SHA1 Message Date
9daa796b10 Try to save a gcroot will build dependencies 2024-09-18 11:50:55 +02:00
a397ede43d Switch the default devshell to lagarto-ox-rd 2024-09-12 10:30:56 +02:00
5f90528b51 Add bootrom support 2024-07-08 18:11:11 +02:00
1f0ac64631 Add bitstream to Nix 2024-07-08 13:46:37 +02:00
b49471ba50 Update nixpkgs to nixos-unstable 2024-07-05 16:30:29 +02:00
4461686e80 Add dev shell without rootfs
Makes iteration quicker.
2024-07-03 18:52:51 +02:00
33b227f576 Hangs in swtich_root in stage1 2024-07-01 10:14:39 +02:00
7b9eb7366e Remove unused PMEM regions
Boots until the init, then fails with:

[   42.561840] Freeing unused kernel image (initmem) memory: 2448K
[   42.572360] Run /init as init process
[   42.577400]   with arguments:
[   42.581780]     /init
[   42.584520]   with environment:
[   42.589320]     HOME=/
[   42.592140]     TERM=linux
[   42.637580] init[1]: unhandled signal 4 code 0x1 at 0x0000003f966980d8 in ld-linux-riscv64-lp64d.so.1[3f96683000+23000]
[   42.650580] CPU: 0 PID: 1 Comm: init Not tainted 6.1.62 #1-NixOS
[   42.657720] Hardware name: Barcelona Supercomputing Center - Lagarto Ox (NixOS) (DT)
[   42.666760] epc : 0000003f966980d8 ra : 0000000000000000 sp : 0000003fe5c95db0
[   42.675040]  gp : ffffffff8197ea48 tp : 0000000000000000 t0 : 0000000000000000
[   42.683320]  t1 : 0000000000000000 t2 : 0000000000000000 s0 : 0000000000000000
[   42.691600]  s1 : 0000000000000000 a0 : 0000000000000000 a1 : 0000000000000000
[   42.699880]  a2 : 0000000000000000 a3 : 0000000000000000 a4 : 0000000000000000
[   42.708160]  a5 : 0000000000000000 a6 : 0000000000000000 a7 : 0000000000000000
[   42.716420]  s2 : 0000000000000000 s3 : 0000000000000000 s4 : 0000000000000000
[   42.724700]  s5 : 0000000000000000 s6 : 0000000000000000 s7 : 0000000000000000
[   42.733380]  s8 : 0000000000000000 s9 : 0000000000000000 s10: 0000000000000000
[   42.741660]  s11: 0000000000000000 t3 : 0000000000000000 t4 : 0000000000000000
[   42.749920]  t5 : 0000000000000000 t6 : 0000000000000000
[   42.756440] status: 0000000200004020 badaddr: 0000000000010513 cause: 0000000000000002
[   42.767620] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000004
[   42.775720] CPU: 0 PID: 1 Comm: init Not tainted 6.1.62 #1-NixOS
[   42.782320] Hardware name: Barcelona Supercomputing Center - Lagarto Ox (NixOS) (DT)
[   42.790460] Call Trace:
[   42.793380] [<ffffffff800070c4>] dump_backtrace+0x38/0x48
[   42.799520] [<ffffffff809f063c>] show_stack+0x50/0x68
[   42.805280] [<ffffffff809fd1f8>] dump_stack_lvl+0x60/0x84
[   42.811400] [<ffffffff809fd23c>] dump_stack+0x20/0x30
[   42.817140] [<ffffffff809f0918>] panic+0x160/0x390
[   42.822620] [<ffffffff80020184>] do_exit+0xa70/0xa78
[   42.828260] [<ffffffff800203a4>] do_group_exit+0x44/0xb0
[   42.834240] [<ffffffff80031eec>] get_signal+0x9b4/0xa00
[   42.840140] [<ffffffff80005ca0>] do_work_pending+0x18c/0x610
[   42.846480] [<ffffffff80003880>] resume_userspace_slow+0x10/0x14
[   42.853420] ---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000004 ]---
2024-06-28 15:08:24 +02:00
c8efa952f9 Add configuration for Lagarto Ox 2024-06-25 11:11:05 +02:00
4344f73d87 Dump system information when entering shell 2024-06-05 14:49:51 +02:00
8bd4550bc6 Use remote bscpkgs input for riscv benchmarks 2024-06-05 14:26:12 +02:00
f554a154b7 WIP 2024-05-28 18:12:14 +02:00
f69e04ccbe WIP: Working spec cpu with clang epi 2024-05-13 18:59:00 +02:00
bf767d623b Generate U-Boot commands 2024-03-07 16:49:48 +01:00
94eb71dd80 Add rootfs for lagarto hun 2024-03-07 12:05:10 +01:00
730e342bfe Add scripts to load FPGA system 2024-03-04 18:32:25 +01:00
023ad3de22 Split kernel configuration in files 2024-03-04 14:44:49 +01:00
3b68bfda47 Add Lagarto Hun configuration 2024-03-01 18:33:30 +01:00
483ad2944b Format the qcow2 image with ext4
The image needs to be available to the guest with a partition table and
a partition with a label named "nixos" so the stage1 can mount it. By
enabling the virtualisation.diskImage option we now have a persistent
root filesystem, including /home.
2024-01-25 15:34:59 +01:00
d52db1d97c Correct style type in flake.nix 2024-01-24 13:09:49 +01:00
9653377ba5 Remove unneeded flake dependencies 2024-01-24 12:53:30 +01:00
5b8a51fb19 Add qemu and qemu-nc NixOS configurations 2024-01-24 12:50:41 +01:00
8df89867f3 Switch nixpkgs to a custom repository
There is a problem in the way pkgsStatic is constructed, causing our
-march argument to be missed, leading to binaries that fail to run. This
affects only security wrappers so far (mount, sudo, ...) but it will
likely affect any pkgsStatic binary.
2024-01-24 12:20:27 +01:00
eff49c6ee3 Disable vector extensions in march and mtune 2024-01-24 09:59:44 +01:00
9a475bc1e3 Booting Linux and userspace OK 2024-01-19 12:35:05 +01:00
af26facae4 Use the toplevel from the vm output 2024-01-18 17:58:26 +01:00
2f387d3362 Use custom u-boot build 2024-01-18 17:58:00 +01:00
5dbb297adf Fix qemu without rutabagaSupport 2024-01-18 15:59:51 +01:00
Rodrigo Arias Mallo
7ad1b54572 Try building the system 2024-01-17 18:33:58 +01:00
Rodrigo Arias Mallo
f8b624af67 Boot opensbi without compressed 2024-01-17 18:22:30 +01:00
82b8c03966 Build system without compressed instructions 2024-01-17 15:01:11 +01:00
a6a958a9df Booting 2023-11-29 10:48:59 +01:00
e59cf267a7 WIP2 2023-11-27 11:41:05 +01:00
Robert Hensing
ee4b3c9e33 Add nix run visionFive2_* commands 2023-02-16 13:26:46 +01:00
Robert Hensing
f85cae4a48 Add visionfive2 images 2023-02-16 13:26:46 +01:00
Robert Hensing
4b417999a3 Add VisionFive 2 inputs 2023-02-16 13:26:38 +01:00
matthewcroughan
dd384cd7d7 flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:matthewcroughan/nixpkgs/6fd612ce3a656b1bcf5a1222c63294dcfcbb5361' (2022-07-08)
  → 'github:matthewcroughan/nixpkgs/39a827f18b870afb02f6c0f09151c69f2d8e7a4d' (2022-07-12)
• Updated input 'vendor-kernel':
    'github:starfive-tech/linux/943858df470556d0b7f3b31fcc10931603f0f3cc' (2022-07-05)
  → 'github:starfive-tech/linux/74003f14f92e3c8eb31536b599c1f0c7aba3cdf2' (2022-07-11)
2022-07-13 07:48:50 +01:00
matthewcroughan
7f60d1bdb2 flashOriginal: use shell script instead of bash function 2022-07-11 18:43:27 +01:00
matthewcroughan
d7a0148b4f expect: wait for 'Terminal ready' and instruct to apply power 2022-07-09 17:58:27 +01:00
matthewcroughan
126d8e0bc4 flake: add linuxPackages_visionfive to packages output 2022-07-09 04:38:36 +01:00
matthewcroughan
1aba6fb17a flake: use regexp and flake inputs to automate kernel building 2022-07-09 04:38:33 +01:00
matthewcroughan
c0cbf6cf02 flake: define system as a variable and use it 2022-07-09 04:35:38 +01:00
matthewcroughan
57d029a9a2 inputs: vendor own nixpkgs
Just incase Madouura's branch goes missing
2022-07-09 04:35:38 +01:00
matthewcroughan
6152bd2ba9 init 2022-07-09 04:35:35 +01:00