Re: configurable device (and other) tables in the kernel ?




On Thu, 1 Feb 2007, Luigi Rizzo wrote:

Look at the firmware routines. However, they won't work until / is mounted, which is after all the device probing happens.

unfortunately firmare images are embedded in .ko files, so the loading is done elsewhere - but ok, i can spend some time figuring out what LINKER_LOAD_FILE() does and whether it is just plain loading of the file in memory or more than that, whether it can be made to work even with an unstructured file, and so on.

Re. the availability of / - one of the requirements i had written was the ability to preload the table at compile time - that's the easy part, in the end it is just some macro/scripting magic to embed the initial table in the object. Short of putting into the table some hooks to give control to the console and ask the user to manually type in the 'alias ID' you were referring to (in the good old times maybe someone would have even conceived a 'please type the full driver image in hex')

Surely it requires some form of rebuild of the kernel but there doesn't seem to be any other way to possibly solve the problem...

The preferred way to make configuration frobs available during early boot is via the hints mechanism, which supports both loading data via the loader, compiling it into the kernel, and updating it using kenv(8). I'd really like us avoid adding yet more file access dependencies in the kernel. These tend to be fragile, can only run in certain contexts, run into issues with changing roots, etc. Could we add /boot/deviceids.hints to match /boot/device.hints?

Robert N M Watson
Computer Laboratory
University of Cambridge
_______________________________________________
freebsd-arch@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-arch
To unsubscribe, send any mail to "freebsd-arch-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: configurable device (and other) tables in the kernel ?
    ... I have looked at the kernel side of execve and kldload, ... unfortunately firmare images are embedded in .ko files, ... what LINKER_LOAD_FILEdoes and whether it is just plain loading ...
    (freebsd-arch)
  • problems with PC crashing; help/insight requested
    ... Mini Kernel Dump File: Only registers and stack trace are available ... Win32 error 2 ... Loading Kernel Symbols ... Will force reload symbols with known size. ...
    (microsoft.public.windowsxp.general)
  • Windows 2003 crashes after successful VPN connection
    ... I have a windows 2003 server, which is also a VPN server. ... Kernel Summary Dump File: Only kernel address space is available ... Loading Kernel Symbols ... If kernel debugger is available get stack backtrace. ...
    (microsoft.public.windows.server.general)
  • Slow Soft-RAID 5 performance
    ... The Kernel boot log is attached as boot.msg ... MEM window: disabled. ... registered new interface driver usbfs ... Loading ide-core ...
    (Linux-Kernel)
  • RE: Bluescreen bei verschiedenen Spielen
    ... Keine Fehler der Rammodule. ... Loading Kernel Symbols ...
    (microsoft.public.de.german.windowsxp.sonstiges)