Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 26 Apr 2008 18:40:48 +0200
From:      David Naylor <naylor.b.david@gmail.com>
To:        John Baldwin <jhb@freebsd.org>
Cc:        freebsd-current@freebsd.org
Subject:   Re: boot failed with gzip'ed modules
Message-ID:  <200804261840.52978.naylor.b.david@gmail.com>
In-Reply-To: <200804260822.47763.jhb@freebsd.org>
References:  <200804252320.39121.naylor.b.david@gmail.com> <200804260822.47763.jhb@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
--nextPart1816743.Pd8ge130TP
Content-Type: text/plain;
  charset="iso-8859-15"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

On Saturday 26 April 2008 14:22:47 you wrote:
> On Friday 25 April 2008 05:20:34 pm David Naylor wrote:
> > Hi,
> >
> > I have a live CD that has a GENERIC kernel and that loads some modules
> > before booting.  They have been gzip'ed to save space however suddenly
> > the booting has stopped.   The kernel loads and then after the first li=
ne
> > of the modules to load it stops:
>
> I've seen reports of problems with gzip'd modules on 7.0.  You'll probably
> have to add debugging or look at the diffs between 6.3 and 7.0 of the boot
> code (sys/boot and lib/libstand) to narrow down things to try.  (For
> example, did moving malloc up above 1MB break it somehow.)
I think the break happened to HEAD in the last month, I can easily track do=
wn=20
the problem... Except I do not know any cvs commands (I just use csup, whic=
h=20
I don't think is powerful enough in this case), also is there an easy way t=
o=20
check the commit history (www.freshbsd.org doesn't allow the commit message=
s=20
to be filtered on a subset of the files...)

Is it only sys/boot and lib/libstand that are involved with loader?  If so,=
=20
unless revision 1.13 to lib/libstand/ntp.c broke it, it is probably that=20
sys/boot is the cause.  However sys/boot is rather involved and will take m=
e=20
a bit longer to check the commits using cvsweb...

This is not possibly caused by having an amd64 system?  Other then csup fro=
m=20
about a month ago the only other change I did was switch from i386 to amd64=
=2E =20
Since the boot loader is i386 in any case I do not think it will have an=20
impact. =20

>
> > Oh, on an aside.  What is the BTX and why is the bootloader i386 even f=
or
> > an amd64 system (I suspect it is because there is no need for an amd64
> > bootloader [unless kernels and modules suddenly exceed 4GB 8-/ ])?
>
> 1) BTX is a mini-kernel that the boot code uses.  This lets us write the
> boot loader as a 32-bit app in C rather than assembly.
Nice  :-)

> 2) Yes, the amd64 code uses the i386 bootstrap.  amd64 CPUs start up in
> real mode just like i386 and you can't easily call the BIOS from long mode
> anyway, so a different bootstrap for amd64 would be rather gratuitous.
Thought so...

Is there any plan to add bzip2 to loader (i.e. bzip2 modules and kernel) or=
 to=20
geom_uzip?  If not is there a good reason why it is avoided or just a case =
of=20
lacking developer interest (or time)? =20

Thank you for the quick reply

David


--nextPart1816743.Pd8ge130TP
Content-Type: application/pgp-signature; name=signature.asc 
Content-Description: This is a digitally signed message part.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4 (FreeBSD)

iD8DBQBIE1sUUaaFgP9pFrIRAquYAJ91FHCMJxxSoblT5tqMxAatcrCnZwCffgMS
21bboBqi3sZaGYgrkte+Q68=
=7QPm
-----END PGP SIGNATURE-----

--nextPart1816743.Pd8ge130TP--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200804261840.52978.naylor.b.david>