aboutsummaryrefslogtreecommitdiff
path: root/nix
diff options
context:
space:
mode:
Diffstat (limited to 'nix')
-rw-r--r--nix/linux_config12
-rw-r--r--nix/rootfs.nix8
2 files changed, 16 insertions, 4 deletions
diff --git a/nix/linux_config b/nix/linux_config
index aa9d8d8..951358e 100644
--- a/nix/linux_config
+++ b/nix/linux_config
@@ -3405,7 +3405,7 @@ CONFIG_DRM_PANEL=y
# end of Drivers for system framebuffers
# CONFIG_DRM_APPLETBDRM is not set
-# CONFIG_DRM_BOCHS is not set
+CONFIG_DRM_BOCHS=y
# CONFIG_DRM_CIRRUS_QEMU is not set
# CONFIG_DRM_GM12U320 is not set
# CONFIG_DRM_UDL is not set
@@ -5471,3 +5471,13 @@ CONFIG_ARCH_USE_MEMTEST=y
CONFIG_IO_URING_ZCRX=y
CONFIG_IO_URING_BPF=y
+
+CONFIG_FB=y
+CONFIG_FB_SIMPLE=y
+CONFIG_FRAMEBUFFER_CONSOLE=y
+CONFIG_DRM=y
+CONFIG_DRM_SIMPLEDRM=y
+CONFIG_VT=y
+CONFIG_VT_CONSOLE=y
+CONFIG_DEVTMPFS=y
+CONFIG_DEVTMPFS_MOUNT=y
diff --git a/nix/rootfs.nix b/nix/rootfs.nix
index fc5d321..d463af7 100644
--- a/nix/rootfs.nix
+++ b/nix/rootfs.nix
@@ -1,15 +1,17 @@
-{ stdenv, fetchgit, busybox, squashfsTools }:
+{ stdenv, fetchgit, busybox, squashfsTools, linuxHeaders }:
stdenv.mkDerivation {
name = "rootfs-yerba";
src = ./.;
buildInputs = [ squashfsTools ];
- nativeBuildInputs = [ squashfsTools ];
+ nativeBuildInputs = [ squashfsTools linuxHeaders ];
buildPhase = ''
mkdir -p rootfs
mkdir -p rootfs/{bin,sbin,etc,proc,sys,dev,home,var,usr,root,mnt,tmp}
cp -a ${busybox}/_install/. rootfs/
- # this says permission denied, cant be bothered to debug, let's just hope we can chroot to /sbin/init in the initramfs and it works?
+ chmod -R u+w rootfs
+ ln -sf bin/busybox rootfs/init
+ ln -sf bin/busybox rootfs/sbin/init
# ln -sf sbin/init rootfs/init
echo "proc /proc proc defaults 0 0" > rootfs/etc/fstab
echo "sysfs /sys sysfs defaults 0 0" >> rootfs/etc/fstab