Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[regression] loader stalls on compressed module

2 views
Skip to first unread message

David Naylor

unread,
Dec 15, 2009, 4:26:08 AM12/15/09
to freebsd...@freebsd.org
Hi,

It appears that recently (~6 months) loader can no longer load compressed
kernel objects (gzipped) . This regression is present on both FreeBSD-8 and -
Current.

This can be reproduced by doing:
# cd /boot/kernel ; gzip -9 unionfs.ko
(Choose option 6 from loader and enter: load unionfs)

I have experienced this on both i386 and amd64. It appears that loader can
handle a compressed generic kernel (and maybe other modules).

Regards

David

signature.asc

John Baldwin

unread,
Dec 15, 2009, 11:44:20 AM12/15/09
to freebsd...@freebsd.org, David Naylor

Does a loader from TOT still exhibit this? If you build the loader w/o GPT
support (LOADER_NO_GPT or some such, it's in sys/boot/i386/loader/Makefile)
does that fix it?

--
John Baldwin
_______________________________________________
freebsd...@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-curre...@freebsd.org"

David Naylor

unread,
Dec 16, 2009, 5:30:47 PM12/16/09
to John Baldwin, freebsd...@freebsd.org
On Tuesday 15 December 2009 16:00:20 John Baldwin wrote:
> On Tuesday 15 December 2009 4:24:54 am David Naylor wrote:
> > Hi,
> >
> > It appears that recently (~6 months) loader can no longer load compressed
> > kernel objects (gzipped) . This regression is present on both FreeBSD-8
> > and
>
> -
>
> > Current.
> >
> > This can be reproduced by doing:
> > # cd /boot/kernel ; gzip -9 unionfs.ko
> > (Choose option 6 from loader and enter: load unionfs)
> >
> > I have experienced this on both i386 and amd64. It appears that loader
> > can handle a compressed generic kernel (and maybe other modules).
>
> Does a loader from TOT still exhibit this? If you build the loader w/o GPT
> support (LOADER_NO_GPT or some such, it's in sys/boot/i386/loader/Makefile)
> does that fix it?

What is TOT?

# make clean depend all install -DLOADER_NO_GPT_SUPPORT -DLOADER_ONLY
=> Stalled


# make clean depend all install -DLOADER_BZIP2_SUPPORT -DLOADER_ONLY
=> (With bzip2 -9 unionfs.ko)
lseek failed

elf64_obj_loadimage: read failed

can't load file '/boot/kernel/unionfs.ko' input/output error


I don't use bzip2 support so I cannot comment on past behaviour. Should I
file a PR about this problem?

signature.asc
0 new messages