Page 15 of 17 FirstFirst ... 51314151617 LastLast
Results 141 to 150 of 167

Thread: HOWTO: Flash BIOS, The Ubuntu Way

  1. #141
    Join Date
    Jun 2006
    Beans
    2,310
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: HOWTO: Flash BIOS, The Ubuntu Way

    Quote Originally Posted by wayward4now View Post
    I'm trying to use your CD method, but when I try to copy the new rom image and the exe file to install it,
    wayward4now@iam:~/Downloads/tmp$ sudo cp k8u939.f5 /tmp/cdr
    cp: writing `/tmp/cdr/k8u939.f5': No space left on device

    I can't imagine not having enough space? Please help. Ric

    The FreeDOS image is 1.44MB so if it's mounted to the /tmp/cdr directory, then that's the amount of space you have to work with on /tmp/cdr. You can try a larger image size as listed under 'size contraints' on the first page or another method (also listed there). Here's a direct link to the 2.88MB image:
    Code:
    wget http://www.fdos.org/bootdisks/autogen/FDSTD.288.gz
    To be clear, the files you are trying to copy over exceed 1.44MB, which is the amount of space you are working with, not the size of a 650+ MB CD (that's just the max size/medium you are using to store it). Remember, with this method, you are constrained to the size of the FreeDOS image so your files must come in under this limit (or 2.88 MB provided above) or you must use another method like using GRUB. Your other option would be to use flashrom.

  2. #142
    Join Date
    Jun 2010
    Beans
    5

    Smile Re: HOWTO: Flash BIOS, The Ubuntu Way

    When you got a 5273 KB file to flash , this method fails , because , floppy disk are limit to 1.44 (or 2.88 ).
    So , I will share the solution that I used ...
    with a pen USB , format pen usb let say /dev/sdb with a simple mkfs.vfat /dev/sb1 and use qemu.
    boot floppy FDOEM.144
    qemu -hda /dev/sdb -fda FDOEM.144 -boot a
    in qemu do:
    sys.com c:
    you also may need do:
    fdisk /mbr 1 (for this use odin ( http://odin.fdos.org/odin2005/odin1440.img ) instead FDOEM.144 )
    copy command.com, autoexec.bat and config.sys from FDOEM.144 to C:
    and now you have a usb stick bootable with freedos and without space limit.
    Now you may leave qemu.
    mount yours pen and copy yours files for bios update, shutdown linux and boot with usb pen.
    At the end, you can check if everything is fine without reboot , using:
    qemu -hda /dev/sdb -boot c
    Check if pen usb boots !
    that's all .
    Last edited by sergiomb; June 28th, 2010 at 11:42 AM. Reason: add final check

  3. #143
    Join Date
    Sep 2008
    Location
    Rīga, Latvija
    Beans
    126
    Distro
    Xubuntu 10.04 Lucid Lynx

    Re: There is a MUCH easier way.

    For me didnt work.
    i read manual from http://www.gigabyte.de/Support/Mothe...flashBIOS.aspx
    my motherboard exe file is from http://www.gigabyte.com/products/pro...1415&dl=1#bios
    i just copied all commands and executed them in terminal
    Code:
    wget http://www.fdos.org/bootdisks/autogen/FDOEM.144.gz
    gunzip FDOEM.144.gz
    mkdir /tmp/floppy
    sudo mount -t vfat -o loop,quiet,umask=000 FDOEM.144 /tmp/floppy
    unzip newBIOS.zip -d /tmp/floppy
    sudo umount /tmp/floppy
    rmdir /tmp/floppy
    sudo mv FDOEM.144 /boot/biosupdate.img
    sudo apt-get install syslinux
    sudo cp /usr/lib/syslinux/memdisk /boot/
    
    sudo mousepad /boot/grub/menu.lst
    
    *and there it was empty file so copied there
    
    title       BIOS upgrade
    kernel      /boot/memdisk
    initrd      /boot/biosupdate.img
    and after restart i didnt had any new grub options.
    i have xubuntu 10.10 so theres latest grub

    but also where to put motherboard_bios_6vx7_4x_f45.exe
    ?
    its an self-extracting file i extracted it with wine and in it theres
    autoexec.bat
    flash855.exe
    6VX7-4X.F45
    Last edited by Kangarooo; July 20th, 2010 at 10:19 PM.

  4. #144
    Join Date
    Jun 2010
    Beans
    5

    Wink Re: There is a MUCH easier way.

    Quote Originally Posted by Kangarooo View Post
    For me didnt work.
    i read manual from http://www.gigabyte.de/Support/Mothe...flashBIOS.aspx
    my motherboard exe file is from http://www.gigabyte.com/products/pro...1415&dl=1#bios
    is easier because yours flash bios are less than 1.44 , if not yours method doesn't work, and don't try enlarger a floppy disk , because is not possible .
    Last edited by sergiomb; July 22nd, 2010 at 10:03 PM. Reason: typo

  5. #145
    Join Date
    Jul 2009
    Location
    Brodnax VA.
    Beans
    27
    Distro
    Kubuntu 10.04 Lucid Lynx

    Re: There is a MUCH easier way.

    Quote Originally Posted by sergiomb View Post
    is easier because yours flash bios are less than 1.44 , if not yours method doesn't work, and don't try enlarger a floppy disk , because is not possible .
    I finaiily used a 2.8 meg dos image as that gave me enough space for the exe file and the flash file. I held my breath and it worked! Thanks, Ric

  6. #146
    Join Date
    Oct 2007
    Beans
    10

    Re: HOWTO: Flash BIOS, The Ubuntu Way

    Quote Originally Posted by ciscosurfer View Post
    HOW TO FLASH YOUR BIOS

    M2: CD
    [/B]Unpack FreeDOS image → create temp dir → mount FreeDOS image to /tmp/cdr → copy flashing tool and new BIOS image to /tmp/cdr (see footnotes below) → unmount image → install mkisofs → create ISO → burn ISO to disc → reboot following vendor instructions

    Note: "NewBiosFiles" listed below is pseudocode for the extracted location of the new BIOS image + related files that you just downloaded
    Code:
    wget http://www.fdos.org/bootdisks/autogen/FDOEM.144.gz
    gunzip FDOEM.144.gz
    mkdir /tmp/cdr
    sudo mount -t vfat -o loop FDOEM.144 /tmp/cdr
    sudo cp ~/NewBiosFiles/* /tmp/cdr
    sudo umount /tmp/cdr
    sudo apt-get install mkisofs
    mkisofs -o newBIOS.iso -b FDOEM.144 FDOEM.144
    cdrecord -v newBIOS.iso
    [note: in later releases, /usr/bin/mkisofs symlinks to /usr/bin/genisoimage]
    [note: in later releases, /usr/bin/cdrecord symlinks to /usr/bin/wodim]

    Reboot from the CD and flash your BIOS with the commands provided by the BIOS vendor. Check the README file for exact syntax.
    END OF METHOD

    I have tried the CD method on my laptop, Acer Aspire 5315-2582. First,
    Code:
    sudo cp ~/NewBiosFiles/* /tmp/cdr
    didn't work: I got a "no space on device" message. However, I copied the BIOS files on a flash card, and the DOS was able to find that.

    Second, the Acer flash executable refused to run under DOS. Fortunately, I had an old Windows repair disk. I was able to boot from that and get to the Windows command prompt (you say that you want to repair your computer, then cancel, and that gets you to a menu that has a command prompt option). Starting the flash executable from the Windows command prompt didn't give the "unable to run in DOS mode" error.

    Third, the flash executable still couldn't run because it was missing oledlg.dll. Downloading it from http://www.dll-files.com/dllindex/dl...s.shtml?oledlg and putting it in the same folder as the BIOS files fixed that issue.

  7. #147
    Join Date
    Sep 2006
    Beans
    4

    USB Stick Bios Flash with Grub2 + Grub4Dos + FreeDos + FlashBios File ISO injection

    Hi,

    the following short guide / script can be used to boot the Free Dos ISO image from USB Stick and update your Motherboard Bios.

    You have to install Grub2 and Grub4Dos to your USB Stick.
    Download and copy the FreeDos Iso image fdbasecd.iso to <YOUR-MOUNTED-USB-DEVICE>/
    Copy the Script to <YOUR-MOUNTED-USB-DEVICE>/boot
    Copy your Bios files to <YOUR-MOUNTED-USB-DEVICE>/boot/bios
    And finaly run the AddBiosFlashFiles.sh to update the FreeDos ISO image with your Bios files.

    Optional copy linux iso files to <YOUR-MOUNTED-USB-DEVICE>/boot/iso
    and boot it with Grub2.

    @ciscosurfer: please add the instructions to your first post

    Detailed instructions as comments in the script...

    Code:
    #!/bin/sh
    #
    #        AddBiosFlashFiles.sh --- The Flash Bios Integrator by Muschl
    #       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    # 
    # 1. Install Grub2 to your USB Stick
    #	grub-install --no-floppy --root-directory=/mnt/<YOUR-MOUNTED-USB-DEVICE> 
    #
    # 2. Install Grub4Dos to your USB Stick 
    #	wget http://downloads.sourceforge.net/project/grub4dos/GRUB4DOS/grub4dos%200.4.4/grub4dos-0.4.4.zip
    #	unzip grub4dos-0.4.4.zip
    #	cp ./grub4dos-0.4.4/* /mnt/<YOUR-MOUNTED-USB-DEVICE>/boot/grub
    #
    # 3. Change Grub2 Configuration, Add Menue Entry
    #	vi /mnt/<YOUR-MOUNTED-USB-DEVICE>/boot/grub/grub.cfg	
    #
    #	menuentry "Switch to Grub4Dos" {
    #	linux16 /boot/grub/grub.exe
    #	}
    #
    #	menuentry "Ubuntu 10.04 Netbook Edition" {
    #	loopback loop /boot/iso/ubuntu-10.04-netbook-i386.iso
    #	linux (loop)/casper/vmlinuz boot=casper iso-scan/filename=/boot/iso/ubuntu-10.04-netbook-i386.iso noeject noprompt --
    #
    # 4. Change Grub4Dos Configuration, Add Menue Entry
    #	vi /mnt/<YOUR-MOUNTED-USB-DEVICE>/boot/grub/menu.lst
    #
    #	title FlashDos (cp Bios files to /boot/bios & run AddBiosFlashFiles.sh)
    #	find --set-root /fdbasecd.iso
    #	map /fdbasecd.iso (0xFF)
    #	map --hook
    #	root (0xFF)
    #	kernel /isolinux/data/memdisk
    #	initrd /isolinux/data/fdboot.img
    #
    # 5. Download FreeDos
    #	wget http://www.ibiblio.org/pub/micro/pc-stuff/freedos/files/distributions/1.0/fdbasecd.iso
    #	mv ./fdbasecd.iso /mnt/<YOUR-MOUNTED-USB-DEVICE>
    #	
    # 6. Install ISO Update Script for Flash Bios Files
    #	mkdir -p /mnt/<YOUR-MOUNTED-USB-DEVICE>/boot/iso
    #	mkdir -p /mnt/<YOUR-MOUNTED-USB-DEVICE>/boot/bios
    #	cp ./AddBiosFlashFiles.sh /mnt/<YOUR-MOUNTED-USB-DEVICE>/boot
    #
    # 7. Create Directory for the Motherboard Bios (like: /boot/bios/msi-k9a)
    # 8. Copy your bios flash files into the created Motherboard Bios directory
    # 9. Run this Script with sudo to integrate the bios flash files into fdbasecd.iso
    #
    work=$(pwd)
    error=0
    rights ()
    {
    	if [ "$(id -u)" != "0" ]; then
    	echo "!-This script must be run as root or with sudo-!" 1>&2
       	exit 1
    	fi
    }
    clean ()
    {
    echo "+ Clean up..." 1>&2
    umount $work/source 
    rm -rf $work/target $work/source
    }
    error ()
    {
    	if [ $? != 0 ]; then
    	error=1
    	quit
    	fi
    }
    quit ()
    {
    	{
    	if [ $error != 0 ]; then
    	echo "!-ERROR-OCCURRED-! Please look into the logfile." 1>&2
    	fi
    	}
    clean
    exit
    }
    rights
    clean
    echo "+ Create directorys..." 1>&2
    mkdir -p $work/source $work/target
    error
    echo "+ Mount ISO file..." 1>&2
    mount $work/../fdbasecd.iso $work/source -o loop,ro
    error
    echo "+ Copy ISO content..." 1>&2
    cp -R $work/source/* $work/target
    error
    echo "+ Create Bios directory..." 1>&2
    mkdir -p $work/target/bios
    error
    echo "+ Copy Bios files..." 1>&2
    cp -R $work/bios/* $work/target/bios
    error
    echo "+ Create ISO image..." 1>&2
    mkisofs -lrJ -V "FreeDos FlashDos" -no-emul-boot -boot-load-size 4 -b isolinux/isolinux.bin -c isolinux/boot.cat -input-charset utf-8 -o fdbasecd.iso $work/target
    error
    echo "+ Update Boot Image..." 1>&2
    mv -f $work/fdbasecd.iso $work/../
    error
    quit
    Last edited by Muschl; August 13th, 2010 at 08:08 PM.

  8. #148
    Join Date
    Sep 2006
    Beans
    3,713

    Re: HOWTO: Flash BIOS, The Ubuntu Way

    Is there another source for FDOEM.144.gz? The link to fdos.org is 404.

  9. #149
    Join Date
    Jun 2006
    Beans
    2,310
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: HOWTO: Flash BIOS, The Ubuntu Way

    Quote Originally Posted by FakeOutdoorsman View Post
    Is there another source for FDOEM.144.gz? The link to fdos.org is 404.
    http://www.mediafire.com/file/26md8h...e/FDOEM.144.gz

  10. #150
    Join Date
    Sep 2006
    Beans
    3,713

    Re: HOWTO: Flash BIOS, The Ubuntu Way

    Thanks. This old beast of a machine will live a little longer.

Page 15 of 17 FirstFirst ... 51314151617 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •