* [9fans] 9pccpuf freezes (after replica/pull)
@ 2007-10-15 6:18 Antonin Vecera
2007-10-15 7:26 ` Steve Simon
0 siblings, 1 reply; 21+ messages in thread
From: Antonin Vecera @ 2007-10-15 6:18 UTC (permalink / raw)
To: 9fans
Hi all,
I have done "replica/pull -v /dist/replica/network" a few days ago.
After that I made new kernel "9pccpuf" for my file/auth/cpu server.
Since then I can't boot (in Qemu) - my machine starts booting,
prints some lines of dots and then freezes...
(9pcf boots ok)
Any idea?
Antonin
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [9fans] 9pccpuf freezes (after replica/pull)
2007-10-15 6:18 [9fans] 9pccpuf freezes (after replica/pull) Antonin Vecera
@ 2007-10-15 7:26 ` Steve Simon
2007-10-15 8:26 ` Antonin Vecera
2007-10-15 13:59 ` Antonin Vecera
0 siblings, 2 replies; 21+ messages in thread
From: Steve Simon @ 2007-10-15 7:26 UTC (permalink / raw)
To: 9fans
the kernel prints dots at several points during its boot cycle, can you cut and paste
the boot screen from qemu and post the text to the newsgroup?
try adding
flag x +
to the top of /rc/bin/cpurc, which may indicate how far the boot proceedure gets.
-Steve
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [9fans] 9pccpuf freezes (after replica/pull)
2007-10-15 7:26 ` Steve Simon
@ 2007-10-15 8:26 ` Antonin Vecera
2007-10-15 13:59 ` Antonin Vecera
1 sibling, 0 replies; 21+ messages in thread
From: Antonin Vecera @ 2007-10-15 8:26 UTC (permalink / raw)
To: Fans of the OS Plan 9 from Bell Labs
[-- Attachment #1: Type: text/plain, Size: 501 bytes --]
The boot screen after adding flag x to /rc/bin/cpurc (1st line is:
#!/bin/rc -x )
doesn't change.
I attach screen dump from Qemu.
Antonin
On 10/15/07, Steve Simon <steve@quintile.net> wrote:
> the kernel prints dots at several points during its boot cycle, can you cut and paste
> the boot screen from qemu and post the text to the newsgroup?
>
> try adding
> flag x +
> to the top of /rc/bin/cpurc, which may indicate how far the boot proceedure gets.
>
> -Steve
>
[-- Attachment #2: qemu.jpg --]
[-- Type: image/jpeg, Size: 68147 bytes --]
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [9fans] 9pccpuf freezes (after replica/pull)
2007-10-15 7:26 ` Steve Simon
2007-10-15 8:26 ` Antonin Vecera
@ 2007-10-15 13:59 ` Antonin Vecera
2007-10-15 16:07 ` ron minnich
2007-10-15 16:56 ` erik quanstrom
1 sibling, 2 replies; 21+ messages in thread
From: Antonin Vecera @ 2007-10-15 13:59 UTC (permalink / raw)
To: Fans of the OS Plan 9 from Bell Labs
The boot screen after adding flag x to cpurc (1st line of cpurc is:
#!/bin/rc -x ) doesn't change.
I attach rewritten boot screen from Qemu:
==================================================
ata1 master: QEMU CD-ROM ATAPI-4 CD-Rom/DVD-Rom
Booting from Hard Disk...
MBR...PBS1...Plan 9 from Bell Labs
ELCR: 0A00
apm ax=f000 cx=f000 dx=f000 di=fff0 ebx=9e22 esi=-f0010
dev A0 port 1F0 config 0040 capabilities 0B00 mwdma 0007 udma 203F
LLBA sectors 4194304
dev A0 port 170 config 85C0 capabilities 0300 mwdma 0007 udma 203F
using sdC0!9fat!plan9.ini
.
Plan 9 Startup Menu:
===============
1. cpu
2. terminal
Selection[default==1 (15s timeout)]: 1
found 9pccpuf
.997676............................................................................................
.......................................................................+1752328..................
.......................................................................................................
.......................................................................................................
....................................+426124=3176128
entry: 0xf0100020
_
==================================================
Antonin
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [9fans] 9pccpuf freezes (after replica/pull)
2007-10-15 13:59 ` Antonin Vecera
@ 2007-10-15 16:07 ` ron minnich
2007-10-15 17:12 ` Antonin Vecera
2007-10-15 16:56 ` erik quanstrom
1 sibling, 1 reply; 21+ messages in thread
From: ron minnich @ 2007-10-15 16:07 UTC (permalink / raw)
To: Fans of the OS Plan 9 from Bell Labs
I think your kernel is no good.
ron
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [9fans] 9pccpuf freezes (after replica/pull)
2007-10-15 13:59 ` Antonin Vecera
2007-10-15 16:07 ` ron minnich
@ 2007-10-15 16:56 ` erik quanstrom
2007-10-15 17:31 ` Antonin Vecera
1 sibling, 1 reply; 21+ messages in thread
From: erik quanstrom @ 2007-10-15 16:56 UTC (permalink / raw)
To: 9fans
i wonder if the kernel is too big for the 4MB of temporary page
table mappings that l.s sets up. the kernel itself decompresses
to ~3MB and starts at 1MB. there's not much room for the
kernel pagetable..
(i had that problem just over the weekend, but with ken's kernel.
switching to 4MB pages solved the problem.)
- erik
> The boot screen after adding flag x to cpurc (1st line of cpurc is:
> #!/bin/rc -x ) doesn't change.
>
> I attach rewritten boot screen from Qemu:
>
> ==================================================
> ata1 master: QEMU CD-ROM ATAPI-4 CD-Rom/DVD-Rom
>
> Booting from Hard Disk...
> MBR...PBS1...Plan 9 from Bell Labs
> ELCR: 0A00
> apm ax=f000 cx=f000 dx=f000 di=fff0 ebx=9e22 esi=-f0010
> dev A0 port 1F0 config 0040 capabilities 0B00 mwdma 0007 udma 203F
> LLBA sectors 4194304
> dev A0 port 170 config 85C0 capabilities 0300 mwdma 0007 udma 203F
> using sdC0!9fat!plan9.ini
> .
> Plan 9 Startup Menu:
> ===============
> 1. cpu
> 2. terminal
> Selection[default==1 (15s timeout)]: 1
>
> found 9pccpuf
> .997676............................................................................................
> .......................................................................+1752328..................
> .......................................................................................................
> .......................................................................................................
> ....................................+426124=3176128
> entry: 0xf0100020
> _
> ==================================================
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [9fans] 9pccpuf freezes (after replica/pull)
2007-10-15 16:07 ` ron minnich
@ 2007-10-15 17:12 ` Antonin Vecera
2007-10-15 17:32 ` ron minnich
2007-10-15 17:36 ` Steve Simon
0 siblings, 2 replies; 21+ messages in thread
From: Antonin Vecera @ 2007-10-15 17:12 UTC (permalink / raw)
To: Fans of the OS Plan 9 from Bell Labs
On 10/15/07, ron minnich <rminnich@gmail.com> wrote:
> I think your kernel is no good.
>
:-))) Yes, I know...
Where I am wrong?
cd /sys/src/9/pc
mk 'CONF=pc' install
mk 'CONF=pcf' install
mk 'CONF=pccpuf' install
9fat:
cd /386
cp 9load 9pcf 9pccpuf /n/9fat
# reboot
Antonin
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [9fans] 9pccpuf freezes (after replica/pull)
2007-10-15 16:56 ` erik quanstrom
@ 2007-10-15 17:31 ` Antonin Vecera
2007-10-15 17:58 ` erik quanstrom
0 siblings, 1 reply; 21+ messages in thread
From: Antonin Vecera @ 2007-10-15 17:31 UTC (permalink / raw)
To: Fans of the OS Plan 9 from Bell Labs
On 10/15/07, erik quanstrom <quanstro@quanstro.net> wrote:
> i wonder if the kernel is too big for the 4MB of temporary page
> table mappings that l.s sets up. the kernel itself decompresses
> to ~3MB and starts at 1MB. there's not much room for the
> kernel pagetable..
>
> (i had that problem just over the weekend, but with ken's kernel.
> switching to 4MB pages solved the problem.)
>
How to do it?
I compile my kernels exactly according to
http://cm.bell-labs.com/wiki/plan9/Compiling_kernels
Antonin
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [9fans] 9pccpuf freezes (after replica/pull)
2007-10-15 17:12 ` Antonin Vecera
@ 2007-10-15 17:32 ` ron minnich
2007-10-15 17:36 ` Steve Simon
1 sibling, 0 replies; 21+ messages in thread
From: ron minnich @ 2007-10-15 17:32 UTC (permalink / raw)
To: Fans of the OS Plan 9 from Bell Labs
as Erik says, what's the size of 9pccpuf.
ron
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [9fans] 9pccpuf freezes (after replica/pull)
2007-10-15 17:12 ` Antonin Vecera
2007-10-15 17:32 ` ron minnich
@ 2007-10-15 17:36 ` Steve Simon
2007-10-15 17:48 ` erik quanstrom
2007-10-15 18:13 ` Antonin Vecera
1 sibling, 2 replies; 21+ messages in thread
From: Steve Simon @ 2007-10-15 17:36 UTC (permalink / raw)
To: 9fans
> cd /sys/src/9/pc
> mk 'CONF=pc' install
> mk 'CONF=pcf' install
> mk 'CONF=pccpuf' install
> 9fat:
> cd /386
> cp 9load 9pcf 9pccpuf /n/9fat
> # reboot
>
Just a guess,
add a mk clean between each mk of a kernel, the mkfile doesn't always clean up properly.
-Steve
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [9fans] 9pccpuf freezes (after replica/pull)
2007-10-15 17:36 ` Steve Simon
@ 2007-10-15 17:48 ` erik quanstrom
2007-10-15 18:13 ` Antonin Vecera
1 sibling, 0 replies; 21+ messages in thread
From: erik quanstrom @ 2007-10-15 17:48 UTC (permalink / raw)
To: 9fans
> > cd /sys/src/9/pc
> > mk 'CONF=pc' install
> > mk 'CONF=pcf' install
> > mk 'CONF=pccpuf' install
> > 9fat:
> > cd /386
> > cp 9load 9pcf 9pccpuf /n/9fat
> > # reboot
> >
>
> Just a guess,
>
> add a mk clean between each mk of a kernel, the mkfile doesn't always clean up properly.
>
> -Steve
i've never had a problem with that.
- erik
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [9fans] 9pccpuf freezes (after replica/pull)
2007-10-15 17:31 ` Antonin Vecera
@ 2007-10-15 17:58 ` erik quanstrom
2007-10-15 18:20 ` Antonin Vecera
0 siblings, 1 reply; 21+ messages in thread
From: erik quanstrom @ 2007-10-15 17:58 UTC (permalink / raw)
To: 9fans
> On 10/15/07, erik quanstrom <quanstro@quanstro.net> wrote:
> > i wonder if the kernel is too big for the 4MB of temporary page
> > table mappings that l.s sets up. the kernel itself decompresses
> > to ~3MB and starts at 1MB. there's not much room for the
> > kernel pagetable..
> >
> > (i had that problem just over the weekend, but with ken's kernel.
> > switching to 4MB pages solved the problem.)
> >
>
> How to do it?
> I compile my kernels exactly according to
> http://cm.bell-labs.com/wiki/plan9/Compiling_kernels
>
> Antonin
you can make it significantly smaller by editing out stuff you're not
using. typical targets are unused ethernet, video, disk drivers.
if you're not using usb or the bridge device, you can leave 'em out.
if you're not using kfs, you can get rid of that. if you're not booting
from venti, you can get rid of that. in the ip section you can get
rid of gre, rudp and likely ipmux.
i've included the kernel conf i was using for testing booting cpuf
directly from aoe storage. the kernel was "only" 2053582 bytes.
it would be about 1.5MB without the myricom driver. (large
firmware.)
- erik
----
dev
root
cons
arch
pnp pci
env
pipe
proc
mnt
srv
dup
rtc
ssl
tls
bridge log
sdp thwack unthwack
cap
kprof
fs
ether netif
cec
ip arp chandial ip ipv6 ipaux iproute netlog nullmedium pktmedium ptclbsum386 inferno
aoe ip
sd
uart
link
realmode
acpi
ether82563 pci
ether82557 pci
etherigbe pci ethermii
ethersink
ethermedium
loopbackmedium
etherm10g pci
misc
archmp mp apic
uarti8250
uartpci pci
uartaxp pci
sdaoe
sdiahci pci sdscsi
sdata pci sdscsi
ip
il
tcp
udp
ipifc
icmp
icmp6
gre
ipmux
esp
rudp
port
int cpuserver = 1;
boot cpu
local
tcp
il
bootdir
bootaoe.out boot
/386/bin/fossil/fossil fossil
/386/bin/ip/ipconfig ipconfig
/386/bin/auth/factotum
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [9fans] 9pccpuf freezes (after replica/pull)
2007-10-15 17:36 ` Steve Simon
2007-10-15 17:48 ` erik quanstrom
@ 2007-10-15 18:13 ` Antonin Vecera
2007-10-15 18:17 ` ron minnich
2007-10-15 18:57 ` Steve Simon
1 sibling, 2 replies; 21+ messages in thread
From: Antonin Vecera @ 2007-10-15 18:13 UTC (permalink / raw)
To: Fans of the OS Plan 9 from Bell Labs
I have just made new compilation of 9pccpuf with "mk clean" at the beginning.
No success... :-(
ls -l /n/9fat
alrw-rw-rw- M 22 bill trog 330276 Oct 13 2007 /n/9fat/9LOAD
--rw-rw-rw- M 22 bill trog 3179190 Jan 2 04:31 /n/9fat/9pccpuf
--rw-rw-rw- M 22 bill trog 3094042 Oct 13 2007 /n/9fat/9pcf
--rw-rw-rw- M 22 bill trog 275 Oct 13 2007 /n/9fat/plan9.ini
Antonin
On 10/15/07, Steve Simon <steve@quintile.net> wrote:
> > cd /sys/src/9/pc
> > mk 'CONF=pc' install
> > mk 'CONF=pcf' install
> > mk 'CONF=pccpuf' install
> > 9fat:
> > cd /386
> > cp 9load 9pcf 9pccpuf /n/9fat
> > # reboot
> >
>
> Just a guess,
>
> add a mk clean between each mk of a kernel, the mkfile doesn't always clean up properly.
>
> -Steve
>
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [9fans] 9pccpuf freezes (after replica/pull)
2007-10-15 18:13 ` Antonin Vecera
@ 2007-10-15 18:17 ` ron minnich
2007-10-15 18:25 ` erik quanstrom
2007-10-15 18:27 ` Antonin Vecera
2007-10-15 18:57 ` Steve Simon
1 sibling, 2 replies; 21+ messages in thread
From: ron minnich @ 2007-10-15 18:17 UTC (permalink / raw)
To: Fans of the OS Plan 9 from Bell Labs
On 10/15/07, Antonin Vecera <antonin.vecera@gmail.com> wrote:
> I have just made new compilation of 9pccpuf with "mk clean" at the beginning.
> No success... :-(
>
> ls -l /n/9fat
> alrw-rw-rw- M 22 bill trog 330276 Oct 13 2007 /n/9fat/9LOAD
> --rw-rw-rw- M 22 bill trog 3179190 Jan 2 04:31 /n/9fat/9pccpuf
> --rw-rw-rw- M 22 bill trog 3094042 Oct 13 2007 /n/9fat/9pcf
> --rw-rw-rw- M 22 bill trog 275 Oct 13 2007 /n/9fat/plan9.ini
It looks like Erik gets the prize. How did the kernels get to be so big?
ron
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [9fans] 9pccpuf freezes (after replica/pull)
2007-10-15 17:58 ` erik quanstrom
@ 2007-10-15 18:20 ` Antonin Vecera
2007-10-15 18:23 ` erik quanstrom
0 siblings, 1 reply; 21+ messages in thread
From: Antonin Vecera @ 2007-10-15 18:20 UTC (permalink / raw)
To: Fans of the OS Plan 9 from Bell Labs
> you can make it significantly smaller by editing out stuff you're not
> using. typical targets are unused ethernet, video, disk drivers.
> if you're not using usb or the bridge device, you can leave 'em out.
> if you're not using kfs, you can get rid of that. if you're not booting
> from venti, you can get rid of that. in the ip section you can get
> rid of gre, rudp and likely ipmux.
>
Yes, I know I can make a custom kernel.
But I assume that pccpuf config file from the distribution CD will work.
Without any corrections. Custom kernel should be second step.
Antonin
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [9fans] 9pccpuf freezes (after replica/pull)
2007-10-15 18:20 ` Antonin Vecera
@ 2007-10-15 18:23 ` erik quanstrom
0 siblings, 0 replies; 21+ messages in thread
From: erik quanstrom @ 2007-10-15 18:23 UTC (permalink / raw)
To: 9fans
> Yes, I know I can make a custom kernel.
> But I assume that pccpuf config file from the distribution CD will work.
> Without any corrections. Custom kernel should be second step.
regardless of what should be, you have verified that it does not work.
we're officially onto step two.
- erik
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [9fans] 9pccpuf freezes (after replica/pull)
2007-10-15 18:17 ` ron minnich
@ 2007-10-15 18:25 ` erik quanstrom
2007-10-15 18:27 ` Antonin Vecera
1 sibling, 0 replies; 21+ messages in thread
From: erik quanstrom @ 2007-10-15 18:25 UTC (permalink / raw)
To: 9fans
>
> It looks like Erik gets the prize. How did the kernels get to be so big?
venti? (ha!)
- erik
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [9fans] 9pccpuf freezes (after replica/pull)
2007-10-15 18:17 ` ron minnich
2007-10-15 18:25 ` erik quanstrom
@ 2007-10-15 18:27 ` Antonin Vecera
2007-10-15 18:30 ` erik quanstrom
1 sibling, 1 reply; 21+ messages in thread
From: Antonin Vecera @ 2007-10-15 18:27 UTC (permalink / raw)
To: Fans of the OS Plan 9 from Bell Labs
On 10/15/07, ron minnich <rminnich@gmail.com> wrote:
> On 10/15/07, Antonin Vecera <antonin.vecera@gmail.com> wrote:
> > I have just made new compilation of 9pccpuf with "mk clean" at the beginning.
> > No success... :-(
> >
> > ls -l /n/9fat
> > alrw-rw-rw- M 22 bill trog 330276 Oct 13 2007 /n/9fat/9LOAD
> > --rw-rw-rw- M 22 bill trog 3179190 Jan 2 04:31 /n/9fat/9pccpuf
> > --rw-rw-rw- M 22 bill trog 3094042 Oct 13 2007 /n/9fat/9pcf
> > --rw-rw-rw- M 22 bill trog 275 Oct 13 2007 /n/9fat/plan9.ini
>
>
> It looks like Erik gets the prize. How did the kernels get to be so big?
Is the usable size of kernel limited?
I use NOT gziped variation of kernel, just as is written in "Compiling
kernels (Plan 9 wiki)".
Am I wrong?
Antonin
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [9fans] 9pccpuf freezes (after replica/pull)
2007-10-15 18:27 ` Antonin Vecera
@ 2007-10-15 18:30 ` erik quanstrom
2007-10-15 18:44 ` Antonin Vecera
0 siblings, 1 reply; 21+ messages in thread
From: erik quanstrom @ 2007-10-15 18:30 UTC (permalink / raw)
To: 9fans
> Is the usable size of kernel limited?
> I use NOT gziped variation of kernel, just as is written in "Compiling
> kernels (Plan 9 wiki)".
> Am I wrong?
>
> Antonin
yes. l.s sets up a temporary page table with 4MB mapped. the whole
uncompressed kernel plus any memory needed for the kernel page table
plus any data structures needed before the kpt is established must fit in
3MB. remember the bottom MB is basically wasted.
- erik
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [9fans] 9pccpuf freezes (after replica/pull)
2007-10-15 18:30 ` erik quanstrom
@ 2007-10-15 18:44 ` Antonin Vecera
0 siblings, 0 replies; 21+ messages in thread
From: Antonin Vecera @ 2007-10-15 18:44 UTC (permalink / raw)
To: Fans of the OS Plan 9 from Bell Labs
On 10/15/07, erik quanstrom <quanstro@coraid.com> wrote:
> > Is the usable size of kernel limited?
> > I use NOT gziped variation of kernel, just as is written in "Compiling
> > kernels (Plan 9 wiki)".
> > Am I wrong?
> >
> > Antonin
>
> yes. l.s sets up a temporary page table with 4MB mapped. the whole
> uncompressed kernel plus any memory needed for the kernel page table
> plus any data structures needed before the kpt is established must fit in
> 3MB. remember the bottom MB is basically wasted.
>
> - erik
Ok, I will try to make custom kernel with smaller size. But tomorrow.
Now I am sleepy, powering off my pc and going to bed.
Thank you very much!
Antonin
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [9fans] 9pccpuf freezes (after replica/pull)
2007-10-15 18:13 ` Antonin Vecera
2007-10-15 18:17 ` ron minnich
@ 2007-10-15 18:57 ` Steve Simon
1 sibling, 0 replies; 21+ messages in thread
From: Steve Simon @ 2007-10-15 18:57 UTC (permalink / raw)
To: 9fans
Appologies to all for casting aspertions on the kernel's mkfile.
I did have problems in the past but they where probably all of my own making.
-Steve
^ permalink raw reply [flat|nested] 21+ messages in thread
end of thread, other threads:[~2007-10-15 18:57 UTC | newest]
Thread overview: 21+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-10-15 6:18 [9fans] 9pccpuf freezes (after replica/pull) Antonin Vecera
2007-10-15 7:26 ` Steve Simon
2007-10-15 8:26 ` Antonin Vecera
2007-10-15 13:59 ` Antonin Vecera
2007-10-15 16:07 ` ron minnich
2007-10-15 17:12 ` Antonin Vecera
2007-10-15 17:32 ` ron minnich
2007-10-15 17:36 ` Steve Simon
2007-10-15 17:48 ` erik quanstrom
2007-10-15 18:13 ` Antonin Vecera
2007-10-15 18:17 ` ron minnich
2007-10-15 18:25 ` erik quanstrom
2007-10-15 18:27 ` Antonin Vecera
2007-10-15 18:30 ` erik quanstrom
2007-10-15 18:44 ` Antonin Vecera
2007-10-15 18:57 ` Steve Simon
2007-10-15 16:56 ` erik quanstrom
2007-10-15 17:31 ` Antonin Vecera
2007-10-15 17:58 ` erik quanstrom
2007-10-15 18:20 ` Antonin Vecera
2007-10-15 18:23 ` erik quanstrom
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).