Commit Graph

352 Commits

Author SHA1 Message Date
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
matthewcroughan
9f153f5b6a base: add default user to wheel 2022-07-13 07:39:45 +01:00
matthewcroughan
7f60d1bdb2 flashOriginal: use shell script instead of bash function 2022-07-11 18:43:27 +01:00
matthewcroughan
ee7641c770 README: init 2022-07-10 08:42:14 +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