Difference between revisions of "FAQ"

From coreboot
Jump to navigation Jump to search
(→‎Out of mainboard BIOS (re)flash: More info, point to Paraflasher and flashrom)
(→‎Inside mainboard BIOS (re)flash: Update flashrom log+features, update information about uniflash+ctflasher.)
Line 204: Line 204:
Download the appropriate flash update utility. Build the coreboot image as explained above and use the flash update utility to update the BIOS. Be warned that not all update utilities allow you to load your own BIOS image. NOTE: Many vendor specific flash utilities refuse to write "foreign" BIOS images, such as coreboot.
Download the appropriate flash update utility. Build the coreboot image as explained above and use the flash update utility to update the BIOS. Be warned that not all update utilities allow you to load your own BIOS image. NOTE: Many vendor specific flash utilities refuse to write "foreign" BIOS images, such as coreboot.


Therefore we suggest that you use the universal flash utility called [http://www.flashrom.org/ flashrom] which was developed and improved by many coreboot developers.
Therefore we suggest that you use the universal flash utility called [http://www.flashrom.org/ flashrom] which was developed and improved by many coreboot developers, and it works under Linux/*BSD/MacOSX/Solaris/DOS.


Example:
Example:
  bash$ sudo ./flashrom -V
  bash$ sudo ./flashrom -V
  Calibrating delay loop... Setting up microsecond timing loop
  flashrom v0.9.2-r1000 on Linux 2.6.34-rc7-git5 (x86_64), built with libpci 3.1.7, GCC 4.4.3
216M loops per second
  flashrom is free software, get the source code at http://www.flashrom.org
ok
   
Found canidate at: 00000530-00000bc4
  No coreboot table found.
  Found LinuxBIOS table at: 00000530
  Found chipset "Intel ICH9", enabling flash write... OK.
  lb_table found at address 0xb7e1c530
  This chipset supports the following protocols: FWH,SPI.
  LinuxBIOS header(24) checksum: 404a table(1684) checksum: 2766 entries: 14
  Calibrating delay loop... 663M loops per second, 100 myus = 199 us. OK.
  vendor id: via part id: epia-m
  Found chip "Winbond W25x80" (1024 KB, SPI) at physical address 0xfff00000.
Enabling flash write on VT8235...OK
  No operations were specified.
  Trying Am29F040B, 512 KB
  probe_29f040b: id1 0x20, id2 0xe2
  Trying ST29F040B, 512 KB
probe_29f040b: id1 0x20, id2 0xe2
ST29F040B found at physical address: 0xfff80000
  Flash part is ST29F040B
OK, only ENABLING flash write, but NOT FLASHING.


Alternatively you could either use the DOS [http://www.rainbow-software.org/uniflash/ uniflash] utility, or use its source code, which is also available for download from the uniflash site (in Turbo Pascal 7) as a reference for adding support for your flash chip to [[flashrom]].  Uniflash supports a lot of different flash chips, and chip interfaces, but so far SPI support is only present in flashrom. You can use flashrom and uniflash for PCI expansion card flashing, such as on RTL8139 Ethernet card (32pin DIL), which allows flashing of your BIOS chip on the NIC if manufacturer provides the circuitry. Please note that flashrom and uniflash support different cards and you should check which utility supports the programmer hardware you own.


Alternatively you could either use the DOS [http://www.rainbow-software.org/uniflash/ uniflash] utility, or use its source code, which is also available for download from the uniflash site (in Turbo Pascal 7) as a reference for adding support for your flash chip to "flashrom".  Uniflash supports a lot of different flash chips, and chip interfaces. It has untested support for PCI expansion card flash BIOS, such as on RTL8139 Ethernet card (32pin DIL), which allows flashing on the NIC if manufacturer provides the circuitry.
Another tool which runs in linux is [http://sourceforge.net/projects/ctflasher/ ctflasher], but it is not maintained anymore and might not work with current Linux kernels.
 
Another tool which runs in linux is [http://sourceforge.net/projects/ctflasher/ flasher].





Revision as of 08:20, 20 May 2010