* [9fans] fossil+venti install and network?
@ 2006-07-29 21:12 csant
2006-07-30 0:48 ` erik quanstrom
0 siblings, 1 reply; 6+ 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] 6+ messages in thread
* Re: [9fans] fossil+venti install and network?
2006-07-29 21:12 [9fans] fossil+venti install and network? csant
@ 2006-07-30 0:48 ` erik quanstrom
2006-07-30 5:10 ` csant
0 siblings, 1 reply; 6+ 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] 6+ 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; 6+ 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] 6+ messages in thread
* Re: [9fans] fossil+venti install and network?
2006-07-30 5:10 ` csant
@ 2006-07-30 9:08 ` csant
2006-07-30 10:30 ` Eoghan Sherry
0 siblings, 1 reply; 6+ 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] 6+ messages in thread
* Re: Re: [9fans] fossil+venti install and network?
2006-07-30 9:08 ` csant
@ 2006-07-30 10:30 ` Eoghan Sherry
2006-07-30 17:46 ` geoff
0 siblings, 1 reply; 6+ messages in thread
From: Eoghan Sherry @ 2006-07-30 10:30 UTC (permalink / raw)
To: csant, Fans of the OS Plan 9 from Bell Labs
> Why was the test working fine with a fossil only system, but not with
> fossil+venti?
The tests are failing because there is an ip device bound to /net/ipifc/0
before termrc is run. In this case it's a loopback device started by the
kernel for venti to listen on. In a fossil only system the loopback device
is not started and the tests succeed.
eoghan
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Re: [9fans] fossil+venti install and network?
2006-07-30 10:30 ` Eoghan Sherry
@ 2006-07-30 17:46 ` geoff
0 siblings, 0 replies; 6+ messages in thread
From: geoff @ 2006-07-30 17:46 UTC (permalink / raw)
To: 9fans
My cpurc (based on one from the labs) does this:
---
# site-specific startup
if (test -e /rc/bin/cpurc.local)
. /rc/bin/cpurc.local
# [...]
# cpu-specific early startup, notably cron
if (test -e /cfg/$sysname/cpurc)
. /cfg/$sysname/cpurc
# [...]
# start up internet if we don't already have an address
if(! grep u /net/ipselftab | grep -sv 127.0.0.1)
ip/ipconfig
if(! grep -s 127.0.0.1 /net/ipselftab)
ip/ipconfig loopback /dev/null 127.1
---
which should be more robust.
One of my current tasks is to simplify administration. I'll be back
at the labs tomorrow (Monday) and will look into why we don't have
a similar cpurc nor /cfg on sources. At minimum, one wants /cfg/pxe for
pxe booting.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2006-07-30 17:46 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-07-29 21:12 [9fans] fossil+venti install and network? csant
2006-07-30 0:48 ` erik quanstrom
2006-07-30 5:10 ` csant
2006-07-30 9:08 ` csant
2006-07-30 10:30 ` Eoghan Sherry
2006-07-30 17:46 ` geoff
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).