Commit Graph

359 Commits

Author SHA1 Message Date
8ce6523c07 Install neofetch too 2024-01-24 09:58:57 +01:00
befd6e9e17 Enable autologin 2024-01-24 09:58:41 +01:00
4c413864b3 Add gdb and comment about nscd daemon 2024-01-22 16:05:38 +01:00
85eb9c63e3 Move notes out of readme 2024-01-22 13:42:49 +01:00
6de338a178 Remove old u-boot instructions 2024-01-22 13:42:00 +01:00
f8472b79e6 Disable compressed instructions in QEMU 2024-01-22 13:40:51 +01:00
f63408f361 Disable nsncd daemon for now as it fails to load
It is currently causing a trap, but the reason is not clear:

nsncd[1179]: unhandled signal 7 code 0x1 at 0x00ffffff8184e920 in libc.so.6[ffffff81824000+1aa000]
CPU: 3 PID: 1179 Comm: nsncd Not tainted 6.1.72 #1-NixOS
Hardware name: riscv-virtio,qemu (DT)
epc : 00ffffff8184e920 ra : 00ffffff8184e868 sp : 00ffffffef6ab610
 gp : 00aaaaaac0f07db8 tp : 00ffffff81822780 t0 : 00ffffffef6ab1f0
 t1 : 00aaaaaac0e5283c t2 : 0000000000000b56 s0 : 00ffffffef6ab668
 s1 : 0000000000000001 a0 : 0000000000000001 a1 : 00ffffffef6ab668
 a2 : 00ffffffef6ab678 a3 : 00aaaaaac0f06e40 a4 : 0000000100000000
 a5 : 00aaaaaac0eac296 a6 : 00ffffff819d3048 a7 : 00ffffffef6ab8c0
 s2 : 0000000000000000 s3 : 00aaaaaac0efac40 s4 : 00aaaaaac0e6755a
 s5 : 00ffffffef6ab678 s6 : 00aaaaaac0efac48 s7 : 00ffffff81a2fd58
 s8 : 00ffffff81a30030 s9 : 00ffffffd7386ef0 s10: 0000000000000000
 s11: 0000000000000000 t3 : 00ffffff8184e818 t4 : 0000000000000028
 t5 : 00ffffff81a24380 t6 : 00ffffff81a074c8
status: 0000000200004020 badaddr: 00aaaaaac0eac296 cause: 0000000000000000
2024-01-22 13:37:26 +01:00
3707e5708e Disable EFI in the kernel and use normal stdenv
In order to build the kernel without compressed instructions we need to
disable EFI support. We also need to leave the kernel to figure the
proper -march and -mabi flags, as otherwise it fails to build. Using the
option "CONFIG_RISCV_ISA_C n" disables the use of compressed
instructions.
2024-01-22 13:37:00 +01:00
a333210fdc Only change cross stdenv
Prevents mass rebuilds in x86, where the envvar doesn't have any effect.
2024-01-19 17:10:22 +01:00
635935cd09 Build packages without compressed instructions 2024-01-19 16:35:45 +01:00
98d04ee398 Also build u-boot ELF file for debugging 2024-01-19 16:32:40 +01:00
819c7e6e93 Build u-boot and the kernel without compressed 2024-01-19 16:31:53 +01:00
1acf425974 Add notes about compressed instructions 2024-01-19 16:27:58 +01:00
1fda5d7710 Set the bootcmd in u-boot
In QEMU the kernel is loaded at the ${kernel_addr_r} address and we need
to use booti instead of bootm.
2024-01-19 14:29:23 +01:00
bd80b0fefb Add default user and serial boot parameters 2024-01-19 13:43:32 +01:00
1e054892fc Increase SMP CPUs to 32 2024-01-19 13:43:14 +01:00
9a475bc1e3 Booting Linux and userspace OK 2024-01-19 12:35:05 +01:00
c6a304ca7d Load kernel in 0x84000000 address
Booting the kernel works, but by manually specifying the address.
2024-01-18 18:19:29 +01:00
5e2f6fcd0e Try to load the kernel from u-boot 2024-01-18 17:58:55 +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
0b512ba9d1 Boot linux instead 2024-01-18 14:14:11 +01:00
6f6e735ba7 Fix cross build of systemd 254.6 2024-01-18 14:13:42 +01:00
Rodrigo Arias Mallo
7ad1b54572 Try building the system 2024-01-17 18:33:58 +01:00
Rodrigo Arias Mallo
8cd537665b Update README 2024-01-17 18:24:36 +01:00
Rodrigo Arias Mallo
81fd7f44fd Move script to boot.sh 2024-01-17 18:24:10 +01:00
Rodrigo Arias Mallo
f8b624af67 Boot opensbi without compressed 2024-01-17 18:22:30 +01:00
Rodrigo Arias Mallo
22de6d8297 Remove commented config 2024-01-17 15:18:27 +01:00
82b8c03966 Build system without compressed instructions 2024-01-17 15:01:11 +01:00
a99b3f4189 Disable kernel oprtions 2024-01-17 15:00:51 +01:00
3f8b6388f7 Boot OpenSBI without compressed instructions 2024-01-17 15:00:19 +01:00
a6a958a9df Booting 2023-11-29 10:48:59 +01:00
e59cf267a7 WIP2 2023-11-27 11:41:05 +01:00
b65cc31518 WIP 2023-11-09 12:09:05 +01:00
Matthew Croughan
13d57e18a0
Merge pull request #7 from roberth/visionfive2
Add VisionFive 2
2023-02-17 20:49:54 +00:00
Robert Hensing
1a9dee930f visionfive2: Explain kernel situation 2023-02-16 13:30:40 +01:00
Robert Hensing
77a173f11a README.md: Reference visionfive2 2023-02-16 13:26:46 +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
Robert Hensing
f0d02fc483 configuration.nix: Add boot.shell_on_fail 2023-02-16 11:53:02 +01:00
matthewcroughan
406de9c3bf configuration: more verbose avahi definition 2022-07-13 16:49:27 +01:00
matthewcroughan
89bbcf877b base: update overlays and remove unnecessary patches 2022-07-13 07:48:58 +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
dfd45ccea9 configuration: import cage example by default 2022-07-13 07:45:40 +01:00
matthewcroughan
c58d08725f examples: init 2022-07-13 07:45:04 +01:00
matthewcroughan
d04dbc0feb configuration: add commented out wireless example 2022-07-13 07:43:23 +01:00
matthewcroughan
01b3abaf22 configuration: enable avahi, set hostname, add comments 2022-07-13 07:41:39 +01:00
matthewcroughan
adfd8f4835 base: enable openssh in configuration.nix instead 2022-07-13 07:40:23 +01:00