NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

kern/41215: cannot load miniroot as kmod, kernel heap full



>Number:         41215
>Category:       kern
>Synopsis:       cannot load miniroot as kmod, kernel heap full
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Apr 14 21:50:00 +0000 2009
>Originator:     Lubomir Sedlacik
>Release:        NetBSD 5.99.10
>Organization:
>Environment:
System: NetBSD 5.99.10
Architecture: i386
Machine: i386
>Description:
I got the custom miniroot.kmod built pretty easily but it's failing at boot
with full kernel heap.

(capured in qemu, since it's very hard to stop before it scrolls away on real
hardware)

 (qemu) >> VESA VBE Version 2.0 4096 k

 >> NetBSD/x86 BIOS Boot, Revision 5.3 (from NetBSD 5.99.10)
 >> Memory: 639/130048 k

      1. Boot normally
      2. Boot single user
      3. Disable ACPI
      4. Disable ACPI and SMP
      5. Drop to boot prompt

 Choose an option; RETURN for default; SPACE to stop countdown.
 Option 1 will be chosen in 0
 8509704+406516+538152 [462032+449388]=0x9e473c
 Loading /miniroot.kmod heap full (0x4ae64+32768)
 exit
 exit
 exit
 exit
 exit
 exit
 exit
 exit
 exit
 exit
 exit
 [...]

The boot.cfg is default with added line:

 load=/miniroot.kmod

I've tried GENERIC kernel with both my custom and the default provided
miniroot.kmod from the NetBSD-daily snapshot, both fail in the same fashion.

I found that it was already reported last month:
http://mail-index.netbsd.org/current-users/2008/12/17/msg006699.html

>How-To-Repeat:

# dd if=/dev/zero of=/tmp/disk.img bs=1m count=16
# vnconfig vnd0 /tmp/disk.img
# disklabel vnd0
[...]
 #       size    offset     fstype [fsize bsize cpg/sgs]
 a:     32705        63     4.2BSD      0     0     0  # (Cyl.      0*- 15)
 d:     32768         0     unused      0     0        # (Cyl.      0 - 15)
# fdisk -u vnd0
[...]
# fdisk -a vnd0
[...]
# fdisk vnd0
[...]
Partition table:
0: NetBSD (sysid 169)
    start 63, size 32705 (16 MB, Cyls 0/1/32-15), Active
# installboot -v -o console=com0 /dev/rvnd0a .../usr/mdec/bootxx_ffsv1
# newfs_ffs /dev/rvnd0a
# mount /dev/vnd0a /mnt
# cp .../netbsd /mnt
# cp .../usr/mdec/boot /mnt
# cp -r .../stand /mnt
# cp .../miniroot.kmod /mnt
# cp .../boot.cfg /mnt
# sync
# qemu -hda /dev/vnd0d -boot c -nographic

>Fix:



Home | Main Index | Thread Index | Old Index