How do you trim a BIOS file?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • survivalbloke
    Badcaps Veteran
    • Aug 2021
    • 314
    • United States

    #1

    How do you trim a BIOS file?

    I downloaded a BIOS file from Lenovo and once I extracted the actual BIOS from the executable, it is 16MB in size, but my IC(Winbond 25Q80DV) is only 8MB in capacity. I have read you can trim the BIOS file with a hex editor but I can't find any instructions on specifically what you will remove.
  • mon2
    Badcaps Legend
    • Dec 2019
    • 14761
    • Canada

    #2
    Often there are 2 bioses on the logic board. A high density (main bios) and a low density (EC controller firmware). It appears that you are physically referencing the EC controller device on the logic board and attempting to reflash it with the main bios firmware. Keep searching for a higher density bios chip on the board for the proper match.

    Comment

    • survivalbloke
      Badcaps Veteran
      • Aug 2021
      • 314
      • United States

      #3
      Thanks - will do!

      Comment

      • survivalbloke
        Badcaps Veteran
        • Aug 2021
        • 314
        • United States

        #4
        Originally posted by mon2
        Often there are 2 bioses on the logic board. A high density (main bios) and a low density (EC controller firmware). It appears that you are physically referencing the EC controller device on the logic board and attempting to reflash it with the main bios firmware. Keep searching for a higher density bios chip on the board for the proper match.
        OK, you were absolutely correct. So I located the other Winbond chip, which was 128Mb. But when I tried to flash it, I still get the size error.Click image for larger version  Name:	flash.png Views:	0 Size:	5.8 KB ID:	3261019
        BIOS file is 17,650KB.
        https://www.dropbox.com/scl/fi/op2cc...453houv9g&dl=0
        Last edited by survivalbloke; 04-27-2024, 11:39 AM.

        Comment

        • SMDFlea
          Super Moderator
          • Jan 2018
          • 22191
          • UK

          #5
          Originally posted by survivalbloke

          OK, you were absolutely correct. So I located the other Winbond chip, which was 128Mb. But when I tried to flash it, I still get the size error.
          BIOS file is 17,650KB.
          https://www.dropbox.com/scl/fi/op2cc...453houv9g&dl=0
          Didn`t you make a backup first ? .What model is it for,and whats the serial number https://www.badcaps.net/forum/troubl...before-posting

          The file needs editing with a hex editor to get the 16MB bios image
          Attached Files

          if you find these attachements useful please consider making a small donation to the site

          All donations to badcaps are welcome, click on this link to donate. Thanks to all supporters

          Comment

          • survivalbloke
            Badcaps Veteran
            • Aug 2021
            • 314
            • United States

            #6
            SMDFlea Mistakes were made, and this has been a tremendous learning experience as I had no idea the EC had its own, separate firmware chip. To make a very long story short, before seeing your post, I found a program to cut the bios down and I flashed it to the bios chip. However, I screwed up the EC firmware on that smaller chip. So, now it is not doing anything on power button press. Is there a way to get the EC firmware so I can properly re-flash that chip?

            Device: Laptop
            Brand: Lenovo
            SN: PF259ZEJ
            Model: Yoga C740-15IML
            Board: FYG50 NM-C433 Rev 1.0

            Comment

            • SMDFlea
              Super Moderator
              • Jan 2018
              • 22191
              • UK

              #7
              Originally posted by survivalbloke
              SMDFlea Mistakes were made, and this has been a tremendous learning experience as I had no idea the EC had its own, separate firmware chip. To make a very long story short, before seeing your post, I found a program to cut the bios down and I flashed it to the bios chip. However, I screwed up the EC firmware on that smaller chip. So, now it is not doing anything on power button press. Is there a way to get the EC firmware so I can properly re-flash that chip?

              Device: Laptop
              Brand: Lenovo
              SN: PF259ZEJ
              Model: Yoga C740-15IML
              Board: FYG50 NM-C433 Rev 1.0
              The EC chip is ITE8586E i think. It will have internal flash. So the chip you overwrote ? , is for some other firmware, not sure which one could be PD firmware .Is U4503 silkscreened next to that chip ? https://www.badcaps.net/forum/troubl...ntroller-firmw

              You`re not the first one to flash the wrong chip,and you won`t be the last
              All donations to badcaps are welcome, click on this link to donate. Thanks to all supporters

              Comment

              • survivalbloke
                Badcaps Veteran
                • Aug 2021
                • 314
                • United States

                #8
                SMDFlea Yeah, U4503! Wow, I cannot believe someone had that dump. I'll flash it today or tomorrow and report back. Thanks!

                Comment

                • SMDFlea
                  Super Moderator
                  • Jan 2018
                  • 22191
                  • UK

                  #9
                  Originally posted by survivalbloke
                  SMDFlea Yeah, U4503! Wow, I cannot believe someone had that dump. I'll flash it today or tomorrow and report back. Thanks!
                  It was a good guess. When you find the 16MB chip (25Q128 or similar) make a backup and post it here,don`t erase that chip yet, there`s DMI info in that, the windows key and possibly other important stuff that needs copying from it to the new bios
                  All donations to badcaps are welcome, click on this link to donate. Thanks to all supporters

                  Comment

                  • survivalbloke
                    Badcaps Veteran
                    • Aug 2021
                    • 314
                    • United States

                    #10
                    Originally posted by SMDFlea

                    It was a good guess. When you find the 16MB chip (25Q128 or similar) make a backup and post it here,don`t erase that chip yet, there`s DMI info in that, the windows key and possibly other important stuff that needs copying from it to the new bios
                    Man, I have so much to learn. So then, one could not simply buy a new chip from ebay and flash the BIOS from the lenovo site onto it? This is a very important question for my learning experience.

                    Well, I'm not sure what the problem is now. I went ahead and flashed that chip(U4503) but the laptop is not taking any current, and I get nothing when pressing the power button. I do have 12V present at the battery circuit coil. I've also got 3.3v present at the U4503 chip I just flashed. However, where I believe I should have 20v, I only have 13.74v.

                    Let me extrapolate the story of this laptop which might shine light somewhere. It was a customer's laptop and they bought a new one, donating this one to me(happens all the time). Initially the issue was that all voltages were present, and pressing the power button would power up the device, but I had no video and no caps lock. CPU was warm, fans running, seemed very normal and alive. I just took a guess and figured it must be a BIOS problem - maybe a ME region issue(even though I don't quite understand that), etc. I couldn't find anyone with a BIOS for it and I also hadn't learned how to extract a BIOS from a Lenovo executable so I bought a "parts only" board from Ebay. Much to my surprise, the parts board actually powered up the laptop and I had video! The trouble is that the parts board had a broken CPU heatsink mount, so I decided to swap out not only the 16MB chip, but also that other firmware chip - the U4503 to the original board. It powered up just the same, so I went ahead and installed Windows but for the life of me I could not get a sound driver and the intel ME engine management driver to take. Lenovo's tool to detect my product was detecting the wrong serial number so I knew something is wrong with the chip swap. That's when all of this madness began.

                    So now I have 2x BIOS chips(16MB) neither of which I know which board they go to, and I've got 1x U4503 firmware chip, flashed with the file from the link you posted. I only have one of these chips because the chip which was on the original board, a winbond, would not read in my CH341a so I think something is wrong with it.

                    If I backup and post an image of both BIOS chips and the firmware chip here in the thread, is there any chance you could look at them and know which is which, etc..???

                    Comment

                    • survivalbloke
                      Badcaps Veteran
                      • Aug 2021
                      • 314
                      • United States

                      #11
                      Here is what I have...
                      Attached Files

                      if you find these attachements useful please consider making a small donation to the site

                      Comment

                      • hoaca388
                        Badcaps
                        • Jan 2022
                        • 12425
                        • Socialist Republic of Vietnam

                        #12
                        Originally posted by survivalbloke
                        Here is what I have...
                        Laptop Yoga C740-15IML (Lenovo) - Loại 81TD

                        Attached Files

                        if you find these attachements useful please consider making a small donation to the site



                        Any donations to badcaps are welcome, click this link to donate . Thanks to all the supporters
                        https://www.badcaps.net/donate

                        Comment

                        • survivalbloke
                          Badcaps Veteran
                          • Aug 2021
                          • 314
                          • United States

                          #13
                          Originally posted by hoaca388
                          Laptop Yoga C740-15IML (Lenovo) - Loại 81TD

                          What is this file?

                          Comment

                          • hoaca388
                            Badcaps
                            • Jan 2022
                            • 12425
                            • Socialist Republic of Vietnam

                            #14
                            Originally posted by survivalbloke

                            What is this file?
                            Bios file.


                            Any donations to badcaps are welcome, click this link to donate . Thanks to all the supporters
                            https://www.badcaps.net/donate

                            Comment

                            • survivalbloke
                              Badcaps Veteran
                              • Aug 2021
                              • 314
                              • United States

                              #15
                              Originally posted by hoaca388

                              Bios file.
                              Alright, lemme fire that one up and see. Thanks!

                              Comment

                              • tarek gouadma
                                Member
                                • Jun 2024
                                • 46
                                • Algeria

                                #16
                                Hi guys can somebody help me and clean or fix my bios for lenovo yoga c740-15iml 81td
                                Fyg50 nm-c433
                                When i switch on the laptop it shows the backlight keyboard for roughly off. Service tag is PF1BFB08. Here it the original dump​
                                Attached Files

                                if you find these attachements useful please consider making a small donation to the site

                                Comment

                                • hoaca388
                                  Badcaps
                                  • Jan 2022
                                  • 12425
                                  • Socialist Republic of Vietnam

                                  #17
                                  Originally posted by tarek gouadma
                                  Hi guys can somebody help me and clean or fix my bios for lenovo yoga c740-15iml 81td
                                  Fyg50 nm-c433
                                  When i switch on the laptop it shows the backlight keyboard for roughly off. Service tag is PF1BFB08. Here it the original dump
                                  Yoga C740-15IML Laptop (Lenovo) - Type 81TD

                                  Attached Files

                                  if you find these attachements useful please consider making a small donation to the site



                                  Any donations to badcaps are welcome, click this link to donate . Thanks to all the supporters
                                  https://www.badcaps.net/donate

                                  Comment

                                  • tarek gouadma
                                    Member
                                    • Jun 2024
                                    • 46
                                    • Algeria

                                    #18
                                    Originally posted by hoaca388

                                    Yoga C740-15IML Laptop (Lenovo) - Type 81TD

                                    Thanks for the help, but the fan is spinning and there is no screen

                                    Comment

                                    • hoaca388
                                      Badcaps
                                      • Jan 2022
                                      • 12425
                                      • Socialist Republic of Vietnam

                                      #19
                                      Originally posted by tarek gouadma
                                      Thanks for the help, but the fan is spinning and there is no screen
                                      Find hardware problem.


                                      Any donations to badcaps are welcome, click this link to donate . Thanks to all the supporters
                                      https://www.badcaps.net/donate

                                      Comment

                                      • tarek gouadma
                                        Member
                                        • Jun 2024
                                        • 46
                                        • Algeria

                                        #20
                                        Originally posted by hoaca388

                                        Find hardware problem.
                                        Thanks, I will do that

                                        Comment

                                        Related Topics

                                        Collapse

                                        • to5it0
                                          Need Clean BIOS/EC Bin File for Lenovo ThinkPad Yoga 11e 2H1703-27220F Rev. A Marked as U2501 on the motherboard.
                                          by to5it0
                                          Need Clean BIOS/EC Bin File for Lenovo ThinkPad Yoga 11e - Stuck with 0275 Error CMS

                                          Hello everyone,

                                          I am attempting a repair on a Lenovo ThinkPad Yoga 11e that is currently stuck at boot with the error: "0275 error CMS" even after setup new bios battery and will not allow me to enter the BIOS/Setup.

                                          This is a critical issue that I believe requires flashing the BIOS chip directly using a programmer (e.g., CH341A/RT809H), as standard software updates or resets are not possible.

                                          I have opened the laptop and identified the main BIOS chip...
                                          10-24-2025, 01:35 AM
                                        • Citymin
                                          NT955XED (Samsung Galaxy Book2 Pro - 15.6) BIOS dump file Request
                                          by Citymin
                                          Hi all,

                                          My Samsung Galaxy Book 2 Pro 15.6-inch laptop has no display and won't boot.
                                          The charging red LED lights up, but the charging screen doesn't show any indication.
                                          When I press the power button, the blue LED cycles on and off three times, then the screen doesn't turn on, and the device won't boot.
                                          (I've tried removing the battery and resetting the device, but the issue persists.)

                                          NoteBook Model name : Samsung NT955XED-KK51G(Galaxy book2 pro, i5-1240p, 15.6inch AMOLED)
                                          PCB model name : Venus2-15-5G(REV1.2), Venus2-15 ADL NPC
                                          S/N : 5RNK9FFT70...
                                          08-05-2025, 05:12 AM
                                        • maanee11
                                          Looking for BIOS flash file for HUAWEI MateBook X Pro 2019 (MACH-WX9)
                                          by maanee11
                                          Hello Everyone,

                                          I have HUAWEI MateBook X Pro 2019 (MACH-WX9) whose BIOS got corrupted i beleive. I have acquired Ch341A SPI flasher to program the BIOS externally. I see that to program the BIOS, i need BIOS bin/hex file which i could use to reflash it externally via the flasher tool.

                                          It seems like the support page of this model no longer exist: https://consumer.huawei.com/be/lapto...ro-2019/specs/

                                          In the website, you can only see specs etc.

                                          I have not tried to extract the BIOS dump yet as I want to see if there is any ray of sunshine...
                                          11-08-2025, 04:08 AM
                                        • m1ch43lzm
                                          Notice to users of XGecu TL866II Plus / T48 / T56 / T76 programmers regarding BIOS backup file size
                                          by m1ch43lzm
                                          Hi everyone
                                          I noticed on the Xgpro software the BIOS backup files have extra bytes at the end when reading some chips, this is because the Xgpro software also reads the OTP region of those flash chips, and by default will append that region to the saved file
                                          Programmer models: XGecu TL866II Plus / T48 / T56 / T76

                                          Example: GD25LQ128D (1.8V), IC size is listed as 0x1000000 Bytes (16777216 bytes) + 0xC00 bytes, those extra 0xC00 bytes will be appended to the end of the saved file by default, resulting in a file size of 16780288 bytes
                                          There's also an extra OTP Secu.R...
                                          09-06-2025, 05:47 PM
                                        • Forest79
                                          Lenovo ThinkStation P520 BIOS file needed
                                          by Forest79
                                          Hello,

                                          I got a Lenovo ThinkStation P520 (Type 30BF) from a friend, asking me for a repair. Windows 11 offered a firmware upgrade as an optional update, and it failed.
                                          The emergency flash procedure from the hardware manual has also failed. So, I asked an acquaintance with better skills to flash the BIOS directly.

                                          However, the chip (a Macronix MX25L25673GMI-08G) has a size of 32 MB, and the BIOS file from the Lenovo website (extracted with UEFITool) has a little more than 16 MB. Thus, the software my acquaintance used (SiberiaProg v1.45, with a CH341A Programmer)...
                                          07-23-2023, 07:39 AM
                                        • Loading...
                                        • No more items.
                                        Working...