| OLD | NEW |
| 1 This directory contains examples of the new-style BIOS bitmaps, and a simple | 1 This directory contains examples of the new-style BIOS bitmaps, and a simple |
| 2 (and ugly) tool to view the configuration file that describes how each | 2 (and ugly) tool to view the configuration file that describes how each |
| 3 screen is displayed. | 3 screen is displayed. |
| 4 | 4 |
| 5 Old-style bitmaps: | 5 Old-style bitmaps: |
| 6 | 6 |
| 7 In the Cr-48 BIOS there are four BIOS screens that may be presented to the | 7 In the Cr-48 BIOS there are four BIOS screens that may be presented to the |
| 8 user. Each contains a graphic, a URL, and some informative text. The screens | 8 user. Each contains a graphic, a URL, and some informative text. The screens |
| 9 are single bitmap images, hardcoded in read-only BIOS (because they have to | 9 are single bitmap images, hardcoded in read-only BIOS (because they have to |
| 10 display even when the R/W BIOS and SSD are both completely erased). They can | 10 display even when the R/W BIOS and SSD are both completely erased). They can |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 command like this: | 55 command like this: |
| 56 | 56 |
| 57 convert IN.bmp -colors 256 -compress none -alpha off OUT.bmp | 57 convert IN.bmp -colors 256 -compress none -alpha off OUT.bmp |
| 58 | 58 |
| 59 * When you have the screens tweaked to your satisfaction, generate the | 59 * When you have the screens tweaked to your satisfaction, generate the |
| 60 binary bmpblock to embed into the BIOS. | 60 binary bmpblock to embed into the BIOS. |
| 61 | 61 |
| 62 bmpblk_utility -c unknown.yaml bmpblock.bin | 62 bmpblk_utility -c unknown.yaml bmpblock.bin |
| 63 | 63 |
| 64 * Use the gbb_utility to modify the BIOS to contain our new set of bitmaps. | 64 * Use the gbb_utility to modify the BIOS to contain our new set of bitmaps. |
| 65 We will need to pad our replacement bmpblock to match the size of the | |
| 66 original. | |
| 67 | 65 |
| 68 NOTE: These commands are run (as root) on the device under test! | 66 NOTE: These commands are run (as root) on the device under test! |
| 69 | 67 |
| 70 NOTE: This will only work if the BIOS write-protection is disabled! | 68 NOTE: This will only work if the BIOS write-protection is disabled! |
| 71 | 69 |
| 72 Copy our new bmpblock over. | 70 Copy our new bmpblock over. |
| 73 | 71 |
| 74 cd /mnt/stateful_partition | 72 cd /mnt/stateful_partition |
| 75 scp USER@SOMEHOST:/SOMEPATH/bmpblock.bin . | 73 scp USER@SOMEHOST:/SOMEPATH/bmpblock.bin . |
| 76 | 74 |
| 77 Get a copy of the current BIOS. | 75 Get a copy of the current BIOS. |
| 78 | 76 |
| 79 flashrom -r bios.bin | 77 flashrom -r bios.bin |
| 80 | 78 |
| 81 Extract the current bmpblock from the BIOS, and see how big it is. | |
| 82 | |
| 83 gbb_utility -g -b oldblob bios.bin | |
| 84 ls -l oldblob | |
| 85 | |
| 86 Pad our bmpblock to the same size (for example, 253568 bytes) | |
| 87 | |
| 88 dd if=bmpblock.bin bs=253568 count=1 of=newblob | |
| 89 | |
| 90 Put our bmpblock in our copy of the BIOS | 79 Put our bmpblock in our copy of the BIOS |
| 91 | 80 |
| 92 gbb_utility -s newblob bios.bin | 81 gbb_utility -s -b bmpblock.bin bios.bin |
| 93 | 82 |
| 94 Reflash the BIOS with the new content | 83 Reflash the BIOS with the new content |
| 95 | 84 |
| 96 flashrom -w bios.bin | 85 flashrom -w bios.bin |
| 97 | 86 |
| 98 * Reboot. You should see your new bitmaps appear whenever the BIOS screens | 87 * Reboot. You should see your new bitmaps appear whenever the BIOS screens |
| 99 are displayed. If you have more than one localization, you should be able | 88 are displayed. If you have more than one localization, you should be able |
| 100 to cycle among them with the arrow keys. | 89 to cycle among them with the arrow keys. |
| 101 | 90 |
| 102 * If you want to examine a binary bmpblock that you've pulled from a BIOS | 91 * If you want to examine a binary bmpblock that you've pulled from a BIOS |
| 103 image, the bmpblk_utility has options to display or unpack the binary. | 92 image, the bmpblk_utility has options to display or unpack the binary. |
| 104 | 93 |
| 105 bmpblk_utility bmpblock.bin | 94 bmpblk_utility bmpblock.bin |
| 106 | 95 |
| 107 bmpblk_utility -y bmpblock.bin | 96 bmpblk_utility -y bmpblock.bin |
| 108 | 97 |
| 109 cd /SOME/SCRATCH/DIR | 98 bmpblk_utility -x -d /SOME/SCRATCH/DIR bmpblock.bin |
| 110 bmpblk_utility -x bmpblock.bin | |
| OLD | NEW |