> On 10/15/07, erik quanstrom <[EMAIL PROTECTED]> 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

Reply via email to