Subject: Re: booting NetBSD - multi OS laptop
To: None <>
From: Chavdar Ivanov <>
List: current-users
Date: 02/26/2006 20:24:41
On 26/02/06, Jukka Salmi <> wrote:
> Chavdar Ivanov --> current-users (2006-02-24 15:48:47 +0000):
> > 2. Did you rerun grub-install after 'make replace' of grub?
> Indeed, that's it! Thanks...
> Booting /netbsd with GRUB works fine now, except that the aperture lkm
> fails to load:
> xf86.o: /dev/ksyms: file not recognized: File format not recognized
> modload: can't prelink `/usr/pkg/lkm/xf86.o' creating `/usr/pkg/lkm/xf86'
> When chainloading the NetBSD bootblocks from GRUB this lkm loads fine.
> What's the problem here?


I didn't have aperture installed before on this laptop (and I have to
admit I do not understand well the reasons to use it, even after a
glance to the manual pages...). Anyway, I tried it and it seems to be
working well, even when being loaded via grub directly (not
# modstat
Type    Id   Offset Loadaddr Size Info     Rev Module Name
DEV       0  -1/174 cb980000 0008 cb9816c0   2 xf86
# pkg_info aperture
Information for aperture-2.0nb6:

XFree86 Framebuffer "aperture" driver for NetBSD/i386

# uname -a
NetBSD 3.99.15 NetBSD 3.99.15 (MAGGIESPLASH) #3: Wed
Feb 22 16:44:26 GMT 2006=20 i386

# cat /grub/menu.lst
splashimage /grub/os-boot.xpm
foreground  =3D 5381a1
background  =3D e0e0e0
color light-gray/blue black/light-gray
default 2
timeout 10

title W2K
rootnoverify (hd0,1)
chainloader +1

title NetBSD-chain
root (hd0,2,a)       # NetBSD on 3rd MBR partition of 1st IDE disk
chainloader +1

title NetBSD
root (hd0,2,a)
kernel /netbsd console=3Dpc root=3Dwd0a

title NetBSD-single
root (hd0,2,a)
kernel /netbsd -s console=3Dpc root=3Dwd0a

title NetBSD-conf
root (hd0,2,a)
kernel /netbsd -c console=3Dpc root=3Dwd0a

title NetBSD-old
root (hd0,2,a)
kernel /onetbsd -c console=3Dpc root=3Dwd0a

title Setup GRUB
root (hd0,0)
setup (hd0)

# xf86test

NOTICE: BIOS mapped [0xa0000 ,size=3D4096) to addr=3D0xbbb1a000...
DONE displaying memory contents (80 bytes)
UNMAPPING [0xa0000 ,size=3D4096) to addr=3D0xbbb1a000... and closing...DONE=