New bootloader!

From: Scott Long (scott_long_at_btc.adaptec.com)
Date: 05/26/03

  • Next message: Alexey Dokuchaev: "Re: scheduler determination"
    Date: Sun, 25 May 2003 22:15:20 -0600
    To: arch@freebsd.org
    
    

    All,

    I've written a nice little bootloader front-end script that allows one
    to enable/disable acpi, boot single users, etc. My primary motivation
    was to allow users to easily disable ACPI, since so many problems are
    popping up these days with it. Making the disabling of ACPI sticky is
    not that hard to do, probably a few lines of sh scripts in rcNG, but I
    haven't gotten to it yet. To use the new loader, grab it from

    http://people.freebsd.org/~scottl/beastie.4th

    and place it in /boot. Then copy frames.4th and screen.4th from
    /usr/share/examples/bootforth into /boot. Then edit /boot/loader.rc
    with the following diff. WARNING: if any mistakes are made and the
    script cannot start, it might leave your loader unable to load the
    kernel. In case of problems, either keep a fixit floppy handy, or
    recompile your kernel with embedded hints (so that things like the
    console will work) and load it from the boot1 loader.

    I'm really hoping to have this be on at least the i386 bootcd for 5.1,
    so any feedback is appreciated.

    Scott

    --- loader.rc.orig Sun May 25 22:10:03 2003
    +++ loader.rc Sun May 25 22:10:47 2003
    @@ -12,3 +12,14 @@

      \ Unless set otherwise, autoboot is automatic at this point

    +\ Load our little menu
    +s" /boot/beastie.4th" O_RDONLY fopen dup fload fclose
    +
    +\ Initialize loader.4th stuff
    +
    +\ cr cr .( Initializing loader.4th...)
    +initialize drop
    +
    +\ Show the menu
    +\ cr
    +beastie-start

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


  • Next message: Alexey Dokuchaev: "Re: scheduler determination"

    Relevant Pages

    • Re: suspend to ram, inspiron 9300
      ... > Hmmm, I'm no acpi expert, but it seems you have the suspend and resume ... > actions in the one script. ... Some ACPI action ... CPU speed change event and I prefer not bind any action to these. ...
      (comp.os.linux.misc)
    • Re: acpi not accepting command
      ... > chvt $oldvt ... > The script is run when I close the lid. ... > It seems like I'm missing the proper ACPI support in the kernel, ... I have a HT CPU so I'm using the smp that needs ACPI and it ...
      (Fedora)
    • Setting ACPI power options.
      ... I want to configure the ACPI power options, either as a setting in TD ... or via script in a new image. ... those values and import them later to see if they restore my desired ...
      (microsoft.public.windowsxp.embedded)
    • Re: Whats the story with acpi_fakekey?
      ... Since the upgrade to drapper no suspend, no hibernate, no lock screen ... In the script where it was getting used, it gets used after running another script. ... somewhere I read that acpi will check to see if gpowermanager or kbatterymonitor are running. ... But, if nothing else, running dapper with all updates applied DOES make my x40 both suspend and hibernate. ...
      (Ubuntu)