NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: kern/58088: Kernel loading is interrupted.



Yes, the zfsroot ramdisk doesn't have the firmware that nouveau(4)
needs, and I guess we don't have a mechanism for getting it out of
another file system like the one the ramdisk was found on.  Annoying!

It is possible to build the zfsroot ramdisk with firmware.  I have the
attached patch in my netbsd-9 tree, which I had forgotten about.  The
patch does it for cgdroot (which I also locally patched to do zfs on
cgd as well) but it should be straightforward to adapt to zfsroot.
From 11474e14cc9008441daa1d443a3bbb1c214b3f09 Mon Sep 17 00:00:00 2001
From: Taylor R Campbell <riastradh%NetBSD.org@localhost>
Date: Fri, 9 Jul 2021 10:45:24 +0000
Subject: [PATCH] WIP: Include firmware in ramdisk.

---
 distrib/amd64/ramdisks/ramdisk-cgdroot/Makefile | 2 +-
 distrib/common/list.cgdroot                     | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/distrib/amd64/ramdisks/ramdisk-cgdroot/Makefile b/distrib/amd64/ramdisks/ramdisk-cgdroot/Makefile
index cb211dda391f..046eadd02b4c 100644
--- a/distrib/amd64/ramdisks/ramdisk-cgdroot/Makefile
+++ b/distrib/amd64/ramdisks/ramdisk-cgdroot/Makefile
@@ -1,7 +1,7 @@
 #	$NetBSD: Makefile,v 1.1 2013/07/15 00:22:10 khorben Exp $
 
 IMAGE=		ramdisk-cgdroot.fs
-IMAGESIZE=	5000k
+IMAGESIZE=	30000k
 IMAGEDEPENDS= 	
 MAKEDEVTARGETS=	all
 CRUNCHENV=	INIT_CHROOT=1
diff --git a/distrib/common/list.cgdroot b/distrib/common/list.cgdroot
index 2cf0a9c4adeb..1e2ab48b50ff 100644
--- a/distrib/common/list.cgdroot
+++ b/distrib/common/list.cgdroot
@@ -33,4 +33,5 @@ LIBS	-lpthread
 COPY	${NETBSDSRCDIR}/distrib/common/cgdroot.rc etc/rc
 
 # Make firmware images available.
+COPYDIR	${DESTDIR}/libdata altroot/libdata
 SYMLINK	altroot/libdata libdata


Home | Main Index | Thread Index | Old Index