9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] a kernel compile problem.
@ 2003-09-13 21:11 Faried Nawaz
  2003-09-13 21:58 ` Russ Cox
  0 siblings, 1 reply; 3+ messages in thread
From: Faried Nawaz @ 2003-09-13 21:11 UTC (permalink / raw)
  To: 9fans


Hello,

I've tried a few things, but I can't seem to compile a kernel that will use
/dev/sdD0/fossil instead of /dev/sdC0/fossil.

I installed off a snapshot cd from late July; I didn't want to go through
the process of converting from kfs to fossil.  To compile the new kernel, I
did this:

- copy /sys/src/9/pc/pcf to /sys/src/9/pc/pcf2
- change the boot section: "boot boot #S/sdC0/" to "boot boot #S/sdD0/"
- change the bootdir section: "bootpcf.out boot" to "bootpcf2.out boot"
- copy all of /sys/lib/sysconfig/fl to /sys/lib/sysconfig/f2, and edit to
  change sdC0 to sdD0
- add /sys/lib/sysconfig/f2/boot, flproto, venti.conf to the bootdir section

mk 'CONF=pcf2' && mk 'CONF=pcf2' install
9fat:
cp pcf2.gz /n/9fat/

- edited plan9.ini to add

bootfile=sdD0!9fat!9pcf2.gz
bootargs=local!#S/sdD0/fossil
bootdisk=local!#S/sdD0/fossil

On boot, I get this:

root is from (il, tcp, local)[local!#S/sdD0/fossil]:
user[none]:faried
kfs...version...File system main inconsistent
Would you like to ream it (y/n0? bad nvram key
bad authentication id
bad authentication domain
        tag = Tnone; expected Tdir; addr = 2
kfs init 7: FID1 attach to root
kfs 7: suicide: sys: trap: fault read addr=0x0 pc=0x0001d649
boot: can't init 9P: EOF receiving fversion reply
panic: boot process died: unknown
cpu0: exiting

What am I missing here?


Faried.
--
^self



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [9fans] a kernel compile problem.
  2003-09-13 21:11 [9fans] a kernel compile problem Faried Nawaz
@ 2003-09-13 21:58 ` Russ Cox
  2003-09-13 22:28   ` [9fans] " Faried Nawaz
  0 siblings, 1 reply; 3+ messages in thread
From: Russ Cox @ 2003-09-13 21:58 UTC (permalink / raw)
  To: 9fans

Unfortunately the documentation is out of date.
In order to use 9pcf, you need to put your fossil
configuration (flproto) on the fossil disk itself
using fossil/conf.  Similarly the venti configuration
should be written using venti/conf.

Then you can use the stock pcf kernel.

Russ


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [9fans] Re: a kernel compile problem.
  2003-09-13 21:58 ` Russ Cox
@ 2003-09-13 22:28   ` Faried Nawaz
  0 siblings, 0 replies; 3+ messages in thread
From: Faried Nawaz @ 2003-09-13 22:28 UTC (permalink / raw)
  To: 9fans

"Russ Cox" <rsc@mit.edu> writes:

  In order to use 9pcf, you need to put your fossil
  configuration (flproto) on the fossil disk itself
  using fossil/conf.  Similarly the venti configuration
  should be written using venti/conf.

That worked perfectly.  Thanks!


Faried.
--
^self



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-09-13 22:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-09-13 21:11 [9fans] a kernel compile problem Faried Nawaz
2003-09-13 21:58 ` Russ Cox
2003-09-13 22:28   ` [9fans] " Faried Nawaz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).