Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 3 Feb 1997 12:35:25 +0100
From:      dirk@hal.IN-Berlin.DE (Dirk Froemberg)
To:        hackers@freebsd.org
Subject:   Booting FreeBSD from solid-state-disk
Message-ID:  <Mutt.19970203123525.dirk@hal.IN-Berlin.DE>

next in thread | raw e-mail | index | archive | help
Dear hackers!

I'm trying to boot FreeBSD from a solid-state-disk.

The first 4K of the card is a bios extension mapping access to drive 80 (C:)
via the bios to the memory on the card.

My first approach

	cat bios-extension rawboot kernel-with-mfs-in-it > "/dev/card"	.

was successfull on the first shot... 8) Unfortunally the mfs within the
kernel lacks of the kernel itself, unless one doesn't want to duplicate
it. So ps, netstat, ... are useless.

Another idea was to put a real filesystem with boot1, boot2, partition-table,
disklabel, ... on the disk and mount the memory of the card similar to a mfs
(card is jumpered to D000:0000, 1020 * 1024 is the size of the filesystem):

*** /sys/ufs/mfs/mfs_vfsops.c.dist	Fri Dec 27 20:44:10 1996
--- /sys/ufs/mfs/mfs_vfsops.c	Sun Feb  2 17:32:29 1997
***************
*** 107,114 ****
--- 107,119 ----
  
  #ifdef MFS_ROOT
  
+ u_char *mfs_root = 0xd0000 + 0x1000;
+ u_char *end_mfs_root = 0xd0000 + 0x1000 + 1020 * 1024;
+ 
+ #if 0
  static u_char mfs_root[MFS_ROOT*1024] = "MFS Filesystem goes here";
  static u_char end_mfs_root[] = "MFS Filesystem had better STOP here";
+ #endif
  
  #ifdef MFS_AUTOLOAD
  /*

The kernel-config-file has "options MFS; options MFS_ROOT=0" in it.
The kernel boots up still fine but when mounting the root-filesystem
a panic occurs:

Fatal trap 12: page fault while in kernel mode
fault virtual address	= 0xd355c
fault code		= supervisor read, page not present
instruction pointer	= 0x8:0xf01469b3
stack pointer		= 0x10:0xefbffecc
frame pointer		= 0x10:0xefbfff50
code segment		= base 0x0, limit 0xfffff, type 0x1b
			= DPL 0, pres 1, def32 1, gran 1
processor eflags	= interrupt enabled, resume, IOPL = 0
current process		= 0 (swapper)
interrupt mask		=
panic: page fault


Any ideas?

	Best regards Dirk

-- 
e-mail: dirk@hal.in-berlin.de		PGP-Public-Key available

"Arbeiten ist nicht vergasen - erschiessen - haengen - irgendwie
toeten!"
		-- Klaus Scheurenberg, "Ich will leben"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Mutt.19970203123525.dirk>