9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] fossil+venti install and network?
@ 2005-07-22 21:00 rattan
  2005-07-22 23:06 ` Steve Simon
  0 siblings, 1 reply; 9+ messages in thread
From: rattan @ 2005-07-22 21:00 UTC (permalink / raw)
  To: 9fans

I find it strange:
   after setting up /lib/ndb/local and 'ip/ipconfig -g..'
   line in /rc/bin/termrc and reboot

the system on reboot keeps complaining:
    ndb/dns cannot read my ip address

and hence no network. I have compared the above mentioned
files with working fossil only installation..

-ishwar



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

* Re: [9fans] fossil+venti install and network?
  2005-07-22 21:00 [9fans] fossil+venti install and network? rattan
@ 2005-07-22 23:06 ` Steve Simon
  2005-07-22 23:42   ` rattan
  0 siblings, 1 reply; 9+ messages in thread
From: Steve Simon @ 2005-07-22 23:06 UTC (permalink / raw)
  To: 9fans

you need to make sure your ip/ipconfig line is above the

if(test -e /net/ipifc/0/ctl)
	ndb/dns -rf $NDBFILE

entry so dns ios started properly.

alternatively you could add ipconfig to /rc/bin/termrc.local which is
"dotted" (read included) into termrc in an apropriate place.

-Steve


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

* Re: [9fans] fossil+venti install and network?
  2005-07-22 23:06 ` Steve Simon
@ 2005-07-22 23:42   ` rattan
  2005-07-23  1:28     ` Vester Thacker
  0 siblings, 1 reply; 9+ messages in thread
From: rattan @ 2005-07-22 23:42 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs



On Sat, 23 Jul 2005, Steve Simon wrote:

> you need to make sure your ip/ipconfig line is above the
>
> if(test -e /net/ipifc/0/ctl)
> 	ndb/dns -rf $NDBFILE
>
> entry so dns ios started properly.

It is! I will try to redoit the whole installation.


> alternatively you could add ipconfig to /rc/bin/termrc.local which is
> "dotted" (read included) into termrc in an apropriate place.

I did try that too.

Thanks for the response.
-ishwar


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

* Re: [9fans] fossil+venti install and network?
  2005-07-22 23:42   ` rattan
@ 2005-07-23  1:28     ` Vester Thacker
  2005-07-23  1:30       ` Vester Thacker
  0 siblings, 1 reply; 9+ messages in thread
From: Vester Thacker @ 2005-07-23  1:28 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

Iswar,

Depending on your needs, an alternative solution is to add something
similiar to the following in your /rc/bin/cpurc file:

sysname='{cat/dev/sysname}
switch($sysname){
case iswar
     ip/ipconfig -g 192.168.0.1 ether /net/ether0 192.168.1.20 255.255.255.0
     ndb/dns -r
case rattan
     ndb/dns -srn
case *
     ndb/dns -r
}

-vester


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

* Re: [9fans] fossil+venti install and network?
  2005-07-23  1:28     ` Vester Thacker
@ 2005-07-23  1:30       ` Vester Thacker
  0 siblings, 0 replies; 9+ messages in thread
From: Vester Thacker @ 2005-07-23  1:30 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

Ishwar,
I apologize for getting your name wrong in the last reply.

-vester

On 7/23/05, Vester Thacker <vester.thacker@gmail.com> wrote:
> Iswar,
> 
> Depending on your needs, an alternative solution is to add something
> similiar to the following in your /rc/bin/cpurc file:
> 
> sysname='{cat/dev/sysname}
> switch($sysname){
> case iswar
>      ip/ipconfig -g 192.168.0.1 ether /net/ether0 192.168.1.20 255.255.255.0
>      ndb/dns -r
> case rattan
>      ndb/dns -srn
> case *
>      ndb/dns -r
> }
> 
> -vester
>


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

* Re: [9fans] fossil+venti install and network?
  2006-07-30  5:10   ` csant
@ 2006-07-30  9:08     ` csant
  0 siblings, 0 replies; 9+ messages in thread
From: csant @ 2006-07-30  9:08 UTC (permalink / raw)
  To: 9fans

>> i'm not quite sure what your problem is.  but it looks like myipaddr()  
>> is bombing out.
> Any suggestions?

Heia,

thanks to Sascha Retzki for pointing me into the right direction:
In /rc/bin/termrc I had the following:
	if(test -e /net/ipifc/0/ctl)
		ip/ipconfig >/dev/null >[2=1]
and
	if(test -e /net/ipifc/0/ctl)
		ndb/dns -rf $NDBFILE
which caused failure. The tests are there by default. I removed the tests  
and have now only
	ip/ipconfig >/dev/null >[2=1]
	ndb/dns -rf $NDBFILE
and everything works fine.

Why was the test working fine with a fossil only system, but not with  
fossil+venti?
/c


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

* Re: [9fans] fossil+venti install and network?
  2006-07-30  0:48 ` erik quanstrom
@ 2006-07-30  5:10   ` csant
  2006-07-30  9:08     ` csant
  0 siblings, 1 reply; 9+ messages in thread
From: csant @ 2006-07-30  5:10 UTC (permalink / raw)
  To: erik quanstrom, 9fans

> i'm not quite sure what your problem is.  but it looks like myipaddr()
> is bombing out.
> you don't even seem to have a loopback address configured.
>
> what does "ns | grep /net" give you?  you should have at least this:
>
> bind  /net /net
> bind -a '#l' /net
> bind -a '#I' /net
> mount -a '#s/cs' /net

Yessir, I do - exactly that.

> (assuming you have an ethernet card. ;-))

Two of them: one doesn't seem to be recognized, though:
	term% grep '#l' /dev/kmesg
	#l0: rtl8139: 100Mbps port 0xE000 irq 5: 00e07de1148d
	#l1: 83815: 100Mbps port 0xDC00 irq 3: ffffffffffff

	term% ls /net/ | grep ether
	/net/ether0

Here is all my /dev/kmesg:

	Plan 9
	E820: 00000000 0009fc00 memory
	E820: 0009fc00 000a0000 reserved
	E820: 000f0000 00100000 reserved
	E820: 00100000 1fff0000 memory
	E820: 1fff0000 1fff3000 acpi nvs
	E820: 1fff3000 20000000 acpi reclaim
	126 holes free
	00017000 0009f000 557056
	00319000 0ce51000 213090304
	213647360 bytes free
	cpu0: 2405MHz GenuineIntel PentiumIV/Xeon (cpuid: AX 0x0F27 DX 0xBFEBFBFF)
	ELCR: 0A28
	pcirouting: BIOS workaround: PCI.0.2.3 at pin 2 link 2 irq 8 -> 9
	#l0: rtl8139: 100Mbps port 0xE000 irq 5: 00e07de1148d
	ns83815: auto neg timed out
	#l1: 83815: 100Mbps port 0xDC00 irq 3: ffffffffffff
	usbohci: 1039/7001 port 0xe2021000 size 0x1000 irq 9
	usbohci: 1039/7001 port 0xe2022000 size 0x1000 irq 3
	usbohci: 1039/7001 port 0xe2023000 size 0x1000 irq 5
	512M memory: 206M kernel data, 305M user, 930M swap
	root is from (tcp, il, local)[local!#S/sdC1/fossil]:
	user[none]: csant
	time...
	venti...err 2: arena creation time after last write time
	fossil(#S/sdC1/fossil)...version...time...

	init: starting /bin/rc
	ndb/dns: can't read my ip address
	flushthread found nothing to flush - 5 dirty
	flushthread found nothing to flush - 2 dirty
	dossrv: serving #s/dos
	flushthread found nothing to flush - 2 dirty

Any suggestions?


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

* Re: [9fans] fossil+venti install and network?
  2006-07-29 21:12 csant
@ 2006-07-30  0:48 ` erik quanstrom
  2006-07-30  5:10   ` csant
  0 siblings, 1 reply; 9+ messages in thread
From: erik quanstrom @ 2006-07-30  0:48 UTC (permalink / raw)
  To: csant, 9fans

i'm not quite sure what your problem is.  but it looks like myipaddr() is bombing out.
you don't even seem to have a loopback address configured.

what does "ns | grep /net" give you?  you should have at least this:

bind  /net /net
bind -a '#l' /net
bind -a '#I' /net
mount -a '#s/cs' /net

(assuming you have an ethernet card. ;-))

- erik


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

* [9fans] fossil+venti install and network?
@ 2006-07-29 21:12 csant
  2006-07-30  0:48 ` erik quanstrom
  0 siblings, 1 reply; 9+ messages in thread
From: csant @ 2006-07-29 21:12 UTC (permalink / raw)
  To: 9fans

I feel like an echo from the past.

	http://9fans.net/archive/2005/07/308

Same here - I had the network correctly configured on a fossil only
system, I re-installed everything, this time with fossil+venti.
Re-configured everything according to the detailed notes I took, so the
system is configured in the same way. However, I get the same
	ndb/dns cannot read my ip address

The above thread has a few suggestions, but none of them work, and I don't
seem to find a final "yes, it worked" reply. Well, it doesn't, for me. Is
networking done in some different way, when running fossil+venti rather
than just fossil? What am I doing wrong now?

/c :)


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

end of thread, other threads:[~2006-07-30  9:08 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-07-22 21:00 [9fans] fossil+venti install and network? rattan
2005-07-22 23:06 ` Steve Simon
2005-07-22 23:42   ` rattan
2005-07-23  1:28     ` Vester Thacker
2005-07-23  1:30       ` Vester Thacker
2006-07-29 21:12 csant
2006-07-30  0:48 ` erik quanstrom
2006-07-30  5:10   ` csant
2006-07-30  9:08     ` csant

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