How do you trim a BIOS file?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • survivalbloke
    Badcaps Veteran
    • Aug 2021
    • 262
    • 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
    • 13829
    • 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
      • 262
      • United States

      #3
      Thanks - will do!

      Comment

      • survivalbloke
        Badcaps Veteran
        • Aug 2021
        • 262
        • 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
          • 20279
          • 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
          All donations to badcaps are welcome, click on this link to donate. Thanks to all supporters

          Comment

          • survivalbloke
            Badcaps Veteran
            • Aug 2021
            • 262
            • 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
              • 20279
              • 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
                • 262
                • 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
                  • 20279
                  • 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
                    • 262
                    • 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
                      • 262
                      • United States

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

                      Comment

                      • hoaca388
                        Badcaps Legend
                        • Jan 2022
                        • 11135
                        • Viet Nam

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

                        Attached Files


                        ----------------------------------------------------------------------------------------------------------------------------------------------------------
                        All donations to Badcaps are welcome.
                        Become a Badcaps supporter
                        >>>>> click on this link to donate <<<<<
                        Thanks to all supporters.
                        ----------------------------------------------------------------------------------------------------------------------------------------------------------​

                        Comment

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

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

                          What is this file?

                          Comment

                          • hoaca388
                            Badcaps Legend
                            • Jan 2022
                            • 11135
                            • Viet Nam

                            #14
                            Originally posted by survivalbloke

                            What is this file?
                            Bios file.


                            ----------------------------------------------------------------------------------------------------------------------------------------------------------
                            All donations to Badcaps are welcome.
                            Become a Badcaps supporter
                            >>>>> click on this link to donate <<<<<
                            Thanks to all supporters.
                            ----------------------------------------------------------------------------------------------------------------------------------------------------------​

                            Comment

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

                              #15
                              Originally posted by hoaca388

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

                              Comment

                              • tarek gouadma
                                Member
                                • Jun 2024
                                • 41
                                • 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

                                Comment

                                • hoaca388
                                  Badcaps Legend
                                  • Jan 2022
                                  • 11135
                                  • Viet Nam

                                  #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


                                  ----------------------------------------------------------------------------------------------------------------------------------------------------------
                                  All donations to Badcaps are welcome.
                                  Become a Badcaps supporter
                                  >>>>> click on this link to donate <<<<<
                                  Thanks to all supporters.
                                  ----------------------------------------------------------------------------------------------------------------------------------------------------------​

                                  Comment

                                  • tarek gouadma
                                    Member
                                    • Jun 2024
                                    • 41
                                    • 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 Legend
                                      • Jan 2022
                                      • 11135
                                      • Viet Nam

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


                                      ----------------------------------------------------------------------------------------------------------------------------------------------------------
                                      All donations to Badcaps are welcome.
                                      Become a Badcaps supporter
                                      >>>>> click on this link to donate <<<<<
                                      Thanks to all supporters.
                                      ----------------------------------------------------------------------------------------------------------------------------------------------------------​

                                      Comment

                                      • tarek gouadma
                                        Member
                                        • Jun 2024
                                        • 41
                                        • Algeria

                                        #20
                                        Originally posted by hoaca388

                                        Find hardware problem.
                                        Thanks, I will do that

                                        Comment

                                        Related Topics

                                        Collapse

                                        • 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
                                        • maanee11
                                          Help to get Lenovo BIOS bin file for Thinkpad T560
                                          by maanee11
                                          Hello Everyone,

                                          I have Thinkpad T560 Which has corrupted BIOS. I have acquired Ch341A SPI flasher to program the BIOS externally. I see that to program the BIOS, i need a bin file for the BIOS. I was able to extract the .exe file of BIOS from Lenovo given here in this link:

                                          https://pcsupport.lenovo.com/au/en/p...me=BIOS%2FUEFI

                                          In the extracted files, I see that BIOS containing file has extension .FL1 and I need to extract or convert it...
                                          05-15-2022, 11:59 AM
                                        • Sebastian Codrean
                                          BIOS file for ASUS F542UN laptop
                                          by Sebastian Codrean
                                          Hello to all of you! I need help with a BIOS file.
                                          The BIOS chip is fried on my Asus F542UN laptop, and I bought a new chip that needs programming. I have a CH341a programmer but I need a .bin BIOS file. On Asus support page the firmware has another extension, .310 and from reading on this forum I understand that that file is not complete BIOS.
                                          So, in short I need the "complete" BIOS .bin file to flash on the new chip. Another issue is that on back of the case the label says F542UN but on the sticker on the motherboard it's X542UN.
                                          02-20-2025, 10:25 AM
                                        • Fr33man
                                          BIOS file (.BIN) for semi-Bricked IdeaPad 3-14ALC6
                                          by Fr33man
                                          Hello everyone,

                                          I soft BRICKED my Lenovo IdeaPad laptop (black screen with led lights on, responsive keyboard backlight, fans spinning) after messing about with a Github tool called Smokeless. I am now attempting to reflash the bios through USB, but I am not sure if I extracted the correct BIOS ROM file to flash, and I also could not find the correct file name to rename it to (GLCrisis.bin, GLCN.bin, Currom.bin??). In addition to attempting to reflash the Bios with a USB, I have also performed the following activities:
                                          *Novo button power on
                                          *Disconnected internal battery...
                                          09-23-2024, 01:16 PM
                                        • iZakre
                                          HP Pavilion 15 bc400ns - Complete Black Screen - Only video on live usb
                                          by iZakre
                                          Hello everybody!

                                          To put you in context I recently replaced the battery from my HP Pavilion 15 bc400ns with a used one, everything was going good. The same day, I decided to update the BIOS, everything went good. The thing occurred after I let the battery drain iddling on Windows 11 for the second time to calibrate it that the screen did not turn on again, the computer was on but the screen did not turn, like it would not wake from hibernation. I decided to restart the computer but got no video.

                                          The thing is that I had installed TeamViewer and could log into the computer...
                                          02-19-2023, 02:27 PM
                                        • Loading...
                                        • No more items.
                                        Working...