lkml.org 
[lkml]   [2005]   [Sep]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    Subject[i386 BOOT CODE] kernel bootable again
    From
    Hello,

    Please find attached a patch to build i386/x86_64 kernel directly
    bootable. It may be usefull for rescue floppies and installation
    floppies.

    System sector count is updated by tools/bluid.c at offset 495. The
    system could be up to 32 Mb long.

    -- support any drive geometry --

    Disk geometry detection assumes that no error raises on first track.
    First track is read sector by sector and the first error determinates
    the sectors per track count. Next, reads are performed track by track.
    Tested on floppy H2/S18 and harddisk H16/S63. Should work on
    every exotic drive supporting Int13h CHS.

    -- cmdline support --

    If ram_size (offset 504) bit 13 is set, the kernel cmdline
    is load from the sector following the kernel image.

    If Ctrl, Alt, Shift or CapsLock is pressed the kernel cmdline is
    prompted until Enter key. BackSpace is supported.

    Regards,

    -pascal
    [unhandled content-type:application/defanged-1]
    \
     
     \ /
      Last update: 2005-09-13 15:49    [W:2.608 / U:0.296 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site