Re: boot failed with gzip'ed modules



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 line 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.)

Oh, on an aside. What is the BTX and why is the bootloader i386 even for
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.
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.

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



Relevant Pages

  • Re: boot failed with gziped modules
    ... I have a live CD that has a GENERIC kernel and that loads some modules ... check the commit history (www.freshbsd.org doesn't allow the commit messages ... Is it only sys/boot and lib/libstand that are involved with loader? ... about a month ago the only other change I did was switch from i386 to amd64. ...
    (freebsd-current)
  • Re: boot failed with gziped modules
    ... I have a live CD that has a GENERIC kernel and that loads some modules ... Is it only sys/boot and lib/libstand that are involved with loader? ... about a month ago the only other change I did was switch from i386 to amd64. ... boot loader as a 32-bit app in C rather than assembly. ...
    (freebsd-current)
  • Re: XP Step By Step Boot?
    ... When booting in Safe Mode, for me anyway, the system seems to ... But given time, it loads. ... SO I can not boot with safe mode at all ...
    (microsoft.public.windowsxp.general)
  • amd64/linux/redhat lib memory map for 32 bit apps (task_unmapped_base etc.)
    ... I finally got my hands on an amd64 bit system from redhat. ... region of virtual memory. ... I find that the program loads at the bottom, like before, the dynamic loader, ... 32 bit apps here). ...
    (comp.os.linux.development.system)
  • RE: Dual screen with T42p for projector
    ... I want to dual screen a tv with nvdia geforce 128mb ... dual screen works until booting is over (think it stops when x loads) ...
    (Ubuntu)

Loading