Eponymous
   



About
My Infrequently Updated Blog. The web-based journal of M. Forde, computer nerd, endurance athlete, and DeLorean owner


contact

Subscribe
Subscribe to a syndicated feed of my weblog, brought to you by the wonders of RSS.

Flavors
There's more than one way to view this weblog; try these flavors on for size.

  • index
  • circa 1993
  • Sections

  • main
  • musings
  • running
  • DeLorean
  • code
  • unix
  • album
  • TBM
  • Archives

  • 2022
  • 2021
  • 2020
  • 2019
  • 2018
  • 2017
  • 2016
  • 2015
  • 2014
  • 2013
  • 2012
  • 2011
  • 2010
  • 2009
  • 2008
  • 2007
  • Disclaimers, Copyrights, Privacy, Etc.

  • ToS
  • Copyrights
  • Links

  • olix0r.net
  • netmeister.org
  • Giraffes
  • Eat. Run. Sleep.

  •        
    12 Oct 2013

    Problems with loader.conf

    First the background. The story of how I got into this mess:



    I'm trying to get ACPI working on my laptop under FreeBSD. Specifically, I'm trying to get Resume to work properly. Suspend works, and resume seems to partially work. The fans spin up, the keyboard's backlight comes back on, but no screen. And without video, it's a little hard to figure out what's going on.

    ACPI works great on my server. It's running the same FreeBSD 9.1 x86-64 build that the laptop is, but the biggest difference is that it's an intel motherboard. The laptop is an Alienware, for our purposes, I might as well just call it a Dell.

    I started comparing the ASL output from both machines and noticed some things. First, the Alienware's ACPI implementation looks for the OS to be various forms of Windows or "Linux." The intel ACPI implementation also looks for these Windows variants and "Linux" but it has an additional OS string. It has an entry for "FreeBSD."

    I figured the easiest next step was to use iasl co compile the intel ASL source and load that DSDT onto the laptop.

    I calculated the odds it would work vs the odds I was doing something incredibly stupid... and I went ahead and did it anyway...

    I compiled the asl and I set /boot/loader.conf to override the DSDT with the intel one I had just compiled and I rebooted. At first everything was good. The machine went down, I got the boot loader, and the FreeBSD kernel started to load. Seconds into the kernel load, it rebooted itself. After the second time, I powered off and tried a cold boot. Same problem just as I had feared.

    Now i was in a situation where I couldn't successfully boot because of an error in loader.conf I needed to find a way to edit it.

    And here's the solution:



    The FreeBSD bootloader, like many others, works in stages. At a certain point, it can be interrupted at which point it provides a set of simple yet powerful commands to control various aspects of the loading process. If you still have that default menu at load, I beleive the option to chose is 6. I disable that menu so during a brief countdown I hit escape before the boot loader turns control over to the kernel.

    Once in the boot loader prompt, I entered the following commands:

    unload
    load kernel
    boot
    


    Pretty simple right? The unload command does what it says, it unloads the kernel and any modules loader.conf had pulled into memory. The load kernel command grabs the kernel and loads it into memory... but only the kernel thus ignoring the broken DSDT in loader.conf. And of course boot tells the boot loader to continue booting the system.

    Once booted, I removed the bad DSDT from loader.conf.

    [/unix] [permanent link]


       
    Eponymous
    Eponymous
       



    About
    My Infrequently Updated Blog. The web-based journal of M. Forde, computer nerd, endurance athlete, and DeLorean owner


    contact

    Subscribe
    Subscribe to a syndicated feed of my weblog, brought to you by the wonders of RSS.

    Flavors
    There's more than one way to view this weblog; try these flavors on for size.

  • index
  • circa 1993
  • Sections

  • main
  • musings
  • running
  • DeLorean
  • code
  • unix
  • album
  • TBM
  • Archives

  • 2022
  • 2021
  • 2020
  • 2019
  • 2018
  • 2017
  • 2016
  • 2015
  • 2014
  • 2013
  • 2012
  • 2011
  • 2010
  • 2009
  • 2008
  • 2007
  • Disclaimers, Copyrights, Privacy, Etc.

  • ToS
  • Copyrights
  • Links

  • olix0r.net
  • netmeister.org
  • Giraffes
  • Eat. Run. Sleep.

  •        
    05 Nov 2008

    Running...
    On Saturday I ran in the Beavertown 5K Fall Classic. The run took place in near my home, so I ran the two miles to the registration location. About a half hour after I signed in, the 5K started. Once I finished, I ran the I ran the (roughly) two and a half miles back home.

    I did much better than in my previous 5K runs this year. I took almost 12 and half minutes off my time from the Lincoln Tunnel 5K, and over 4 minutes from my previous best.

    I think a lot of the improvement in the shorter distances can be attributed to the fact that I've been training on longer distances lately. In the past two months I've been running about eight to ten miles each day.

    A few weeks ago I ran my first half marathon distance. About 10 days ago I ran 20 miles, and took 15 minutes off my time in the half marathon. I promptly fell apart after that and my pace slowed dramatically.

    Yesterday I attempted another 20 miles and did not fall apart completely after the first 13. I made it to the 15 mile mark before I had any problems. I managed to finish the run and take a half hour off my previous time.

    [/running] [permanent link]


       
    Eponymous
    Eponymous
       



    About
    My Infrequently Updated Blog. The web-based journal of M. Forde, computer nerd, endurance athlete, and DeLorean owner


    contact

    Subscribe
    Subscribe to a syndicated feed of my weblog, brought to you by the wonders of RSS.

    Flavors
    There's more than one way to view this weblog; try these flavors on for size.

  • index
  • circa 1993
  • Sections

  • main
  • musings
  • running
  • DeLorean
  • code
  • unix
  • album
  • TBM
  • Archives

  • 2022
  • 2021
  • 2020
  • 2019
  • 2018
  • 2017
  • 2016
  • 2015
  • 2014
  • 2013
  • 2012
  • 2011
  • 2010
  • 2009
  • 2008
  • 2007
  • Disclaimers, Copyrights, Privacy, Etc.

  • ToS
  • Copyrights
  • Links

  • olix0r.net
  • netmeister.org
  • Giraffes
  • Eat. Run. Sleep.

  •        
    19 Sep 2011

    Updates!
    I realized I haven't updated this section of my blog (that no one reads anyway) in over a year. A lot has happened since then.

    I sent my DeLorean (#6291) to DMC Houston to have the frame replaced. (A quick note to anyone buying a DeLorean from a private owner: Have a mechanic you trust get the car on a lift before you buy it). The guys at DMC found a lot more wrong with the car that had been covered up. After many conversations with Steve Wynne about the car, I decided to cut my losses and sell it for parts. I tried to live the dream, and it turned into a small nightmare.

    It was then that Steve told me about a DeLorean they had just taken in from an owner in Indiana. This DeLorean was a month older than mine (built in October of 81) and had the grey interior and 5-speed manual transmission just like mine. Everything was in great condition and it only had about 9,900 miles on it. He offered me a trade-in value for my car, far more than I thought it would be given its condition.

    After some deliberation I decided if I didn't take it, I'd never have the car and my childhood dream would be dead. I agreed to the trade-in and then I began working with James Espy about all of the details of the purchase. I continued working with Steve in regard to the work being done on the car.

    They replaced the leather on the seats. While the original leather was not cracked, it was almost 30 years old and a bit dry. They replaced the headliners and the radio, and performed a full maintenance on it. They even took it to some local car shows.

    When I took delivery of the car in early September, it had just over 10,000 miles on it.

    After a year of owning the vehicle, I've put about 1000 miles on it. And I've enjoyed every one of them.

    DMC-12 at DMC Houston DMC-12 door open at 80's Night Party DMC-12 door open night time wooded area
    DMC-12 doors closed night time wooded area DMC-12 doors open front view DMC-12 doors open rear view

    [/dmc] [permanent link]