9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] building 9load
@ 2003-04-09 23:42 ron minnich
  2003-04-09 23:50 ` Russ Cox
  0 siblings, 1 reply; 9+ messages in thread
From: ron minnich @ 2003-04-09 23:42 UTC (permalink / raw)
  To: 9fans


I last watched Andrey do this on r3, and never did it myself on r3 or r4,
so my ability to build 9load is limited. Is there a HOWTO somewhere?

also 'mk CONF=pcflop' fails due to missing bits and pieces; has anyone
made this go on the vmware image?

thanks

ron



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

* Re: [9fans] building 9load
  2003-04-09 23:42 [9fans] building 9load ron minnich
@ 2003-04-09 23:50 ` Russ Cox
  2003-04-10 15:14   ` ron minnich
  0 siblings, 1 reply; 9+ messages in thread
From: Russ Cox @ 2003-04-09 23:50 UTC (permalink / raw)
  To: 9fans

cd /sys/src/boot/pc; mk
will build 9load.

to build a boot floppy,
cd /sys/lib/dist/pc; mk ndisk

i'm not 100% sure a fresh 9pcflop
kernel works.  you definitely
need to change the

	nobootprompt=local!/bzroot

in the usual plan9.ini to

	nobootprompt=local!/boot/bzroot

due to the great /boot restructuring.
a fresh 9pccd kernel is known to work.



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

* Re: [9fans] building 9load
  2003-04-09 23:50 ` Russ Cox
@ 2003-04-10 15:14   ` ron minnich
  2003-04-10 15:30     ` andrey mirtchovski
  2003-04-10 15:31     ` rsc
  0 siblings, 2 replies; 9+ messages in thread
From: ron minnich @ 2003-04-10 15:14 UTC (permalink / raw)
  To: 9fans

On Wed, 9 Apr 2003, Russ Cox wrote:

> cd /sys/src/boot/pc; mk
> will build 9load.

worked well, thanks.

> to build a boot floppy,
> cd /sys/lib/dist/pc; mk ndisk

this failed due to missing bits and pieces. Anybody done this on the
vmware image, and what did you do to make it work?

I can't get the error messages out to the list yet, sorry.

ron



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

* Re: [9fans] building 9load
  2003-04-10 15:14   ` ron minnich
@ 2003-04-10 15:30     ` andrey mirtchovski
  2003-04-10 15:31     ` rsc
  1 sibling, 0 replies; 9+ messages in thread
From: andrey mirtchovski @ 2003-04-10 15:30 UTC (permalink / raw)
  To: 9fans

On Thu, 10 Apr 2003, ron minnich wrote:

> > to build a boot floppy,
> > cd /sys/lib/dist/pc; mk ndisk
>
> this failed due to missing bits and pieces. Anybody done this on the
> vmware image, and what did you do to make it work?
>

cd /sys/lib/dist/cmd ; mk all; mk install

the missing pieces are bargraph.c, touchfs, bzfs and things like that, located in
the abovementioned directory :)

now mk ndisk will break with:


p9# mk ndisk
cp /386/9loadlite 9load
cp /386/9loadlitedebug 9loaddebug
bflz 697: suicide: sys: trap: fault read addr=0x0 pc=0x0000144e
--rw-rw-r-- M 8 bootes sys 14 Apr 10 03:33 boot.bz2
--rw-rw-r-- M 8 bootes sys 1051 Apr 10 03:33 root.bz2
@{
	cd /sys/src/9/pc
	mk 'CONF=pcflop' 9pcflop.gz
}
../port/mkroot /sys/lib/dist/pc/root.bz2 _sys_lib_dist_pc_root_bz2
mkroot /sys/lib/dist/pc/root.bz2 _sys_lib_dist_pc_root_bz2
cp: can't create _sys_lib_dist_pc_root_bz2.out: name too long
_sys_lib_dist_pc_root_bz2.out: rc (mkroot): can't open: '_sys_lib_dist_pc_root_bz2.out' directory entry not found
mk: ../port/mkroot /sys/lib/dist/pc/root.bz2 _sys_lib_dist_pc_root_bz2  : exit status=rc 737: mkroot 739: no match
mk: @{  cd ...  : exit status=rc 706: rc 708: mk 709: error
p9#

why bzfs dies i don't know, but i'll look at it in a second.

we can probably take this off the list and just submit a patch...

andrey



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

* Re: [9fans] building 9load
  2003-04-10 15:14   ` ron minnich
  2003-04-10 15:30     ` andrey mirtchovski
@ 2003-04-10 15:31     ` rsc
  2003-04-11 13:19       ` paurea
  1 sibling, 1 reply; 9+ messages in thread
From: rsc @ 2003-04-10 15:31 UTC (permalink / raw)
  To: 9fans

> this failed due to missing bits and pieces. Anybody done this on the
> vmware image, and what did you do to make it work?

sorry, forgot about the commands.
from a fresh install:

	cd /sys/lib/dist/cmd
	mk install
	mk clean
	cd /sys/lib/dist/pc
	mk clean
	rm -f boot.raw	# may be necessary if you have a failed build there
	mk ndisk

there is some indication that the resulting
disk will work if you copy plan9.ini.vmware
to the disk as the plan9.ini (by default it is
empty).  that indication is that nobootprompt
is already set to local!/boot/bzroot.  i feel like
i fixed it for someone a few months ago, but
i forget who (steve simon, perhaps).

i'll test it again a bit later.



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

* Re: [9fans] building 9load
  2003-04-10 15:31     ` rsc
@ 2003-04-11 13:19       ` paurea
  2003-04-11 13:27         ` Russ Cox
  0 siblings, 1 reply; 9+ messages in thread
From: paurea @ 2003-04-11 13:19 UTC (permalink / raw)
  To: 9fans

>> this failed due to missing bits and pieces. Anybody done this on the
>> vmware image, and what did you do to make it work?
>
> sorry, forgot about the commands.
> from a fresh install:
>
> 	cd /sys/lib/dist/cmd
> 	mk install
> 	mk clean
> 	cd /sys/lib/dist/pc
> 	mk clean
> 	rm -f boot.raw	# may be necessary if you have a failed build there
> 	mk ndisk
>

I am making a floppy too, so I followed your instructions (though I am
not using a fresh install...) and got:
term% mk ndisk
@{
	cd /sys/src/9/pc
	mk 'CONF=pcflop' 9pcflop.gz
}
mk: don't know how to make '/sys/lib/dist/pc/root.bz2' in directory /sys/src/9/pc
mk: @{  cd ...  : exit status=rc 2179: rc 2181: mk 2182: error


How do I get/generate root.bz2?
THX

							Gorka



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

* Re: [9fans] building 9load
  2003-04-11 13:19       ` paurea
@ 2003-04-11 13:27         ` Russ Cox
  2003-04-11 13:33           ` paurea
  0 siblings, 1 reply; 9+ messages in thread
From: Russ Cox @ 2003-04-11 13:27 UTC (permalink / raw)
  To: 9fans

> I am making a floppy too, so I followed your instructions (though I am
> not using a fresh install...) and got:
> term% mk ndisk
> @{
> 	cd /sys/src/9/pc
> 	mk 'CONF=pcflop' 9pcflop.gz
> }
> mk: don't know how to make '/sys/lib/dist/pc/root.bz2' in directory /sys/src/9/pc
> mk: @{  cd ...  : exit status=rc 2179: rc 2181: mk 2182: error

That's weird.  You ran that in /sys/lib/dist/pc?
The mkfile very clearly states that root.bz2
needs to be built before you run that recipe
for 9pcflop.gz.  You could do it manually:

	cd /sys/lib/dist/pc
	mk root.bz2

but it really shouldn't be necessary.



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

* Re: [9fans] building 9load
  2003-04-11 13:27         ` Russ Cox
@ 2003-04-11 13:33           ` paurea
  0 siblings, 0 replies; 9+ messages in thread
From: paurea @ 2003-04-11 13:33 UTC (permalink / raw)
  To: 9fans


> That's weird.  You ran that in /sys/lib/dist/pc?
> The mkfile very clearly states that root.bz2
> needs to be built before you run that recipe
> for 9pcflop.gz.  You could do it manually:
>
> 	cd /sys/lib/dist/pc
> 	mk root.bz2
>

Got it. There were some permission problems. Thanks.


					Gorka



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

* Re: [9fans] building 9load
       [not found] <1427712808@snellwilcox.com>
@ 2003-04-10 15:29 ` steve.simon
  0 siblings, 0 replies; 9+ messages in thread
From: steve.simon @ 2003-04-10 15:29 UTC (permalink / raw)
  To: 9fans

[-- Attachment #1: Type: text/plain, Size: 159 bytes --]

Hi,

Is /sys/src/boot/bin/386 populated ?

If its empty first do
	 	cd /sys/src/boot/cmd; mk install
then retry
	cd /sys/lib/dist/pc; mk ndisk

-Steve

[-- Attachment #2: Type: message/rfc822, Size: 864 bytes --]

From: 9fans@cse.psu.edu
To: 9fans@cse.psu.edu
Subject: Re: [9fans] building 9load
Date: Thu, 10 Apr 2003 16:14:32 +0100
Message-ID: <1427712808@snellwilcox.com>

On Wed, 9 Apr 2003, Russ Cox wrote:

> cd /sys/src/boot/pc; mk
> will build 9load.

worked well, thanks.

> to build a boot floppy,
> cd /sys/lib/dist/pc; mk ndisk

this failed due to missing bits and pieces. Anybody done this on the 
vmware image, and what did you do to make it work?

I can't get the error messages out to the list yet, sorry. 

ron


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

end of thread, other threads:[~2003-04-11 13:33 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-04-09 23:42 [9fans] building 9load ron minnich
2003-04-09 23:50 ` Russ Cox
2003-04-10 15:14   ` ron minnich
2003-04-10 15:30     ` andrey mirtchovski
2003-04-10 15:31     ` rsc
2003-04-11 13:19       ` paurea
2003-04-11 13:27         ` Russ Cox
2003-04-11 13:33           ` paurea
     [not found] <1427712808@snellwilcox.com>
2003-04-10 15:29 ` steve.simon

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).