aboutsummaryrefslogtreecommitdiff
path: root/posts/updating-the-bios-and-boot-logo-on-a-thinkpad-p14s-running-freebsd.md
blob: df5da9b0317c7a39653838757ab1c2ee862855dd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Updating the BIOS and boot logo on a ThinkPad P14s running FreeBSD  

**WARNING - I accept no responsibility for any bricked devices, so continue at your own risk !**  
 
You will need a USB memory stick and either `doas` or `sudo` and `geteltorito` installed before continuing.
 
- First download your ThinkPad's BIOS update by visiting Lenovo's support website [**here**](https://pcsupport.lenovo.com/gb/en).  
  
- Next either enter your devices serial number or search through the options to find your ThinkPad model.  
  
- Then choose drivers and updates and click on Manual Update, Select Drivers.  

- Finally select BIOS/UEFI and download the BIOS Update (Bootable CD). This will download a iso image to your Laptop.  

- Extract the image from the iso by executing `geteltorito -o bios.img downloaded-bios-image-file-name.iso`

- Write it to the stick with `doas dd if=bios.img of=/dev/da0s1 bs=1M`  

**Be careful to write to the correct device, of course.**  

If you're happy to just update the BIOS and not customise your boot logo then just reboot and boot off the USB stick.  
Being carefull to follow the on screen instructions to avoid any damage to your ThinkPad.  
 
**However if you also wish to change the boot logo then continue from here.**  

The logo I use is the ThinkPad logo but I have found other ready made ones [**here**](https://github.com/deadbaed/blog/tree/master/content/2019-02-24-thinkpad-custom-boot-logo/boot-logo)  

You are free of course to create your own boot logos but Lenovo recommends that you follow the following requirements:

Supported formats are Bitmap, JPEG, and GIF, and the maximum file size is 60KB. Also the image must be <= 40% of the screen resolution.

- mount the stick `doas mount -t msdos /dev/da0s1 /mnt/usb` -  Note: You will have to create `/mnt/usb` or whatever you prefer.  

- Copy the downloaded boot logo to `FLASH/LOGO.JPG`, `FLASH/LOGO.GIF`, or presumably `FLASH/LOGO.BMP`.  

- Issue `doas umount /dev/da0s1` and reboot your ThinkPad, remembering to boot off the USB stick.  
Being carefull to follow the on screen instructions to avoid any damage to your ThinkPad.  

**You may need to turn off Secure Boot to boot from the stick.**

If you already have the latest BIOS version installed, you'll need to turn off the BIOS setting for preventing downgrades, As this can also prevent re-flashing the same version.  
  
It can be found in the BIOS under Security->UEFI bios update options -> Secure Rollback Prevention  
  
The default Lenovo logo can be restored by simply reflashing the BIOS update and when when asked if you want to use your own custom logo, Just say no.