// Disclaimer - This tutorial is for information or educational purposes only. I can and will not be held responsible for any damages caused to your laptop, or any violations that could occur //
Shopping list
Hardware
Software, bios
Summary
1) Install raspbian and flashrom on raspberry PI
2) Wire your RASPBERRY PI GPIO ports / SOIC probe

3) Tear down your E6420 laptop and set testing probe













I advise to power off your raspberry pi before moving the testing clip/probe in order to avoid any shortcut that will not please your GPIO ports. In some forums, people recommend also the use of R150 ohms to protect the GPIO ports, but this will work without. Make sure that your cables are short as possible, and use quality cable.
You can restart you raspberry.
4) E6420 bios details
5) Transferring the bios to Raspberry PI
6) Backup, erase and flash U52 U53 bios
7) Assemble back you E6420
8) Test, check and enjoy
This thread could not have been written without following sources:
https://winraid.level1techs.com/t/gu...berry-pi/30264
http://diy.viktak.com/2014/07/how-to...iled-bios.html
Shopping list
Hardware
- one raspberry pi rev. B+ with case, micro-usb power supply with at least 1A output (500 mA is too weak for a raspberry pi, and can result in loss of network and other problems...)
- usb keyboard, mouse, RJ45 network cable + Internet access
- HDMI cable to connect for ex. to your TV
- SOIC 8 pins probe and short cables (check on eBay, 15$ max)
- philips (ph0?) screwdriver
Software, bios
- raspbian (debian distribution adapted to raspberry pi).
- flashrom with necessary libraries
- unlocked (password, computrace...) U52 and U53 bios
Summary
- Install raspbian and flashrom on raspberry PI
- Wire your RASPBERRY PI GPIO ports / SOIC probe
- Tear down your E6420 laptop and set testing probe
- E6420 bios details
- Transferring the bios to Raspberry PI
- Backup, erase and flash U52 U53 bios
- Assemble back you E6420
- Test, check and enjoy
1) Install raspbian and flashrom on raspberry PI
Link 1 download the last raspbian image
Link 2 procedure to write an image on SD card
Once you get a working raspberry pi with rapsbian, type:
open a terminal and type:
This will update your raspbian.
To install Flashrom, you can use following command in a terminal
or Download Flashrom sources 0.9.7 http://www.flashrom.org, untar it and compile it for best chip support. To compile, in a terminal run:
then in the terminal go to the directory you extracted flashrom to run:
Then press 'i' to be able to insert characters
Add '#' in front of 'blacklist spi-bcm2708' to comment it out
Press 'i' again to exit insert mode
Exit the editor with ':wq'
Then turn off your Raspberry.
Link 2 procedure to write an image on SD card
Once you get a working raspberry pi with rapsbian, type:
Code:
[B]startx[/B]
Code:
[B]sudo apt-get update sudo apt get upgrade[/B]
To install Flashrom, you can use following command in a terminal
Code:
[B]apt-get install flashrom[/B]
Code:
[B]sudo apt-get install pciutils-dev [/B]
Code:
[B]sudo make[/B] [B]sudo make install[/B] [B]sudo vi /etc/modprobe.d/raspi-blacklist.conf[/B]
Add '#' in front of 'blacklist spi-bcm2708' to comment it out
Press 'i' again to exit insert mode
Exit the editor with ':wq'
Then turn off your Raspberry.
2) Wire your RASPBERRY PI GPIO ports / SOIC probe

3) Tear down your E6420 laptop and set testing probe













I advise to power off your raspberry pi before moving the testing clip/probe in order to avoid any shortcut that will not please your GPIO ports. In some forums, people recommend also the use of R150 ohms to protect the GPIO ports, but this will work without. Make sure that your cables are short as possible, and use quality cable.
You can restart you raspberry.
4) E6420 bios details
Before starting, a short explanation on E6420 bios. You understood that you have 2 x bios chips to flash on this laptop. This is not a backup bios strategy, but just one 16Mb Bios (U53) dealing with I/O (keyboard...) and the other 64Mb one being the main bios (U52).


5) Transferring the bios to Raspberry PI
The best thing to do is having a server (SMB, NAS, ftp...) available to download your bios files (U52 & U53), or you can also use a USB dongle, send it by email ...
You can use the great bios files posted by Wallace80 (Link)
You can use the great bios files posted by Wallace80 (Link)
6) Backup, erase and flash U52 U53 bios
If everything went well with flashrom install, following command will test the hardware connection and detect the chip you connected:
If you get error messages, please check your wires, flashrom install. If it does not detect the chip, you may have a non configured "raspi-blacklist.conf". Try running:
Code:
flashrom --p linux_spi:dev=/dev/spidev0.0
If you get error messages, please check your wires, flashrom install. If it does not detect the chip, you may have a non configured "raspi-blacklist.conf". Try running:
Code:
modprobe spi_bcm2708
Save you old bios:
To save an old BIOS backup use the following command:
where oldBIOS.bin is the filename of saved bios. It should be save in /home directory.
Erase your bios:
Use the following command:
Flash your new Bios:
To upload the new BIOS in the chip use the following command:
Where newBIOS.bin is the name of your new Bios file. Successful flashing should end up with VERIFIED message.
To save an old BIOS backup use the following command:
Code:
[B]flashrom --p -V linux_spi:dev=/dev/spidev0.0 -r oldBIOS.bin [/B]
Erase your bios:
Use the following command:
Code:
[B]flashrom --p -V linux_spi:dev=/dev/spidev0.0 -E [/B]
To upload the new BIOS in the chip use the following command:
Code:
flashrom --p -V linux_spi:dev=/dev/spidev0.0 -w newBIOS.bin
Where newBIOS.bin is the name of your new Bios file. Successful flashing should end up with VERIFIED message.
7) Assemble back you E6420
8) Test, check and enjoy

This thread could not have been written without following sources:
https://winraid.level1techs.com/t/gu...berry-pi/30264
http://diy.viktak.com/2014/07/how-to...iled-bios.html
Comment