Thinkpad X230 : Updating BIOS through Ubuntu 18.04 LTS

As far as I remembered, I've never really updated any BIOS for any machine before. Due to some weird circumstances that caused my to stuck at a place for long period, might as well update this lappy's BIOS while waiting. Based on the Think Wiki site, there are several ways to update BIOS in GNU/Linux. Below notes were my experiences using both method.

First thing first, we need to check the BIOS machine of our machine so we can verify whether we need to update the BIOS.
$ sudo apt-get install dmidecode
$ sudo dmidecode -s bios-version
G2ET99WW (2.59 )

Next, we need to download the bootable ISO we can can update the changes to the BIOS. Go to support.lenovo.com, search by your machine model and find the relevant files. See screenshot below.


Download the ISO file and verify it with the checksum.
$ md5sum g2uj29us.iso
396cdaedf7d8871428d249f1be0c5b2d  g2uj29us.iso

Since I've never try booting an ISO through grub, hence we will try this method.
$ sudo apt-get install grub-imageboot
$ sudo mkdir -p /boot/images
$ sudo cp g2uj29us.iso /boot/images/

Update Grub to detect the ISO image.
$ sudo update-grub 
Generating grub configuration file ...
Warning: Setting GRUB_TIMEOUT to a non-zero value when 
GRUB_HIDDEN_TIMEOUT is set is no longer supported.
Found linux image: /boot/vmlinuz-4.15.0-23-generic
Found initrd image: /boot/initrd.img-4.15.0-23-generic
Found linux image: /boot/vmlinuz-4.15.0-20-generic
Found initrd image: /boot/initrd.img-4.15.0-20-generic
Found memtest86+ image: /memtest86+.elf
Found memtest86+ image: /memtest86+.bin
Found memdisk: /memdisk
Found iso image: /boot/images/g2uj29us.iso
done

Restart your lappy and press F12 and boot through the USB thumb drive. However, this method did not work as the updating process froze and can't proceed ahead. Since, nothing was happened after 30 minutes, I've decided to proceed with BIOS updating through USB thumb drive.
$ sudo apt-get install genisoimage
$ geteltorito g6uj14us.iso > biosupdate.img
$ sudo dd if=biosupdate.img of=/dev/sdb bs=1M

Plugged in the USB thumb drive and try again. Read and follow the instruction, plugged in the power adapter. Select the second option, `2. Update system program` and after reboot, if you see below screenshot, then BIOS flashing was working as intended.


Double confirm that the BIOS have been updated.
$ sudo apt-get install dmidecode
$ sudo dmidecode -s bios-version
G2ET99WW (2.73 )

No comments:

Post a Comment