<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://www.coreboot.org/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://www.coreboot.org/api.php?action=feedcontributions&amp;user=Jcarr&amp;feedformat=atom</id>
		<title>coreboot - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="http://www.coreboot.org/api.php?action=feedcontributions&amp;user=Jcarr&amp;feedformat=atom"/>
		<link rel="alternate" type="text/html" href="http://www.coreboot.org/Special:Contributions/Jcarr"/>
		<updated>2013-05-26T05:39:16Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.20.5</generator>

	<entry>
		<id>http://www.coreboot.org/MediaWiki:Sidebar</id>
		<title>MediaWiki:Sidebar</title>
		<link rel="alternate" type="text/html" href="http://www.coreboot.org/MediaWiki:Sidebar"/>
				<updated>2006-10-05T17:37:35Z</updated>
		
		<summary type="html">&lt;p&gt;Jcarr: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
* navigation&lt;br /&gt;
** mainpage|mainpage&lt;br /&gt;
** portal-url|portal&lt;br /&gt;
** currentevents-url|currentevents&lt;br /&gt;
** recentchanges-url|recentchanges&lt;br /&gt;
** randompage-url|randompage&lt;br /&gt;
** helppage|help&lt;br /&gt;
** sitesupport-url|sitesupport&lt;/div&gt;</summary>
		<author><name>Jcarr</name></author>	</entry>

	<entry>
		<id>http://www.coreboot.org/FAQ</id>
		<title>FAQ</title>
		<link rel="alternate" type="text/html" href="http://www.coreboot.org/FAQ"/>
				<updated>2005-09-15T02:44:42Z</updated>
		
		<summary type="html">&lt;p&gt;Jcarr: /* What kind of hardware tools do I need? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== General ==&lt;br /&gt;
&lt;br /&gt;
=== What is LinuxBIOS? ===&lt;br /&gt;
&lt;br /&gt;
LinuxBIOS aims to replace the normal BIOS found on PCs, Alphas, and other machines with a Linux kernel that can boot Linux from a cold start. LinuxBIOS is primarily Linux - about 10 lines of patches to the current Linux kernel. Additionally, the startup code - about 500 lines of assembly and 5000 lines of C - executes 16 instructions to get into 32-bit mode and then performs DRAM and other hardware initialization required before Linux can take over. &lt;br /&gt;
&lt;br /&gt;
Our primary motivation for the project was maintenance of large clusters, but not surprisingly interest and contributions have come from people with varying backgrounds. &lt;br /&gt;
&lt;br /&gt;
=== Why do we need LinuxBIOS? ===&lt;br /&gt;
&lt;br /&gt;
Current PCs used as cluster nodes depend on a vendor-supplied BIOS for booting. The BIOS in turn relies on inherently unreliable devices such as floppy disks and hard drives to boot the operating system. In addition, current BIOS software is unable to accommodate non-standard hardware making it difficult to support experimental work. The BIOS is slow and often erroneous and redundant and, most importantly, maintenance is a nightmare. Imagine walking around with a keyboard and monitor to every one of the 128 nodes in a cluster to change one BIOS setting. &lt;br /&gt;
&lt;br /&gt;
The LinuxBIOS gunzip's the Linux kernel straight out of NVRAM and essentially requires no moving parts other than the fan. It does a minimal amount of hardware initialization before jumping to the kernel start and lets Linux do the rest. As a result, it is much faster (current record 3 seconds), which has sparked interest in the consumer electronics community as well. Moreover, updates can be performed over the network. &lt;br /&gt;
&lt;br /&gt;
Using a real operating system to boot another operating system provides much greater flexibility than using a simple netboot program or the BIOS. Because Linux is the boot mechanism, it can boot over standard Ethernet or over other interconnects such as Myrinet, Quadrics, or SCI. It can use SSH connections to load the kernel, or it can use the InterMezzo caching file system or traditional NFS. Cluster nodes can be as simple as they need to be - perhaps as simple as a CPU and memory, no disk, no floppy, and no file system. The nodes will be much less autonomous thus making them easier to maintain. &lt;br /&gt;
&lt;br /&gt;
=== Who is working on LinuxBIOS? ===&lt;br /&gt;
&lt;br /&gt;
The LinuxBIOS project was started in the winter of 1999 in the Advanced Computing Laboratory at Los Alamos National Laboratory by Ron Minnich. Two undergraduate students, James Hendricks and Dale Webster spent their winter vacation putting together the proof of concept implementation. &lt;br /&gt;
&lt;br /&gt;
Since then, a long list of people have contributed both in discussions and actual code. See our contributors page for details. Please don't be shy and let us know if you are missing from the list. It's not a purposeful omission, just an unfortunate mistake. &lt;br /&gt;
&lt;br /&gt;
=== Who is funding LinuxBIOS? ===&lt;br /&gt;
&lt;br /&gt;
The LinuxBIOS project is funded by the Los Alamos Computer Science Institute and the Department of Energy's Office of Science. &lt;br /&gt;
&lt;br /&gt;
=== Will LinuxBIOS work on my machine? ===&lt;br /&gt;
&lt;br /&gt;
See the [[Supported Motherboards]] page for which mainboards are supported.  Also, see the [[Products]] page for a list of vendors selling products running LinuxBIOS.&lt;br /&gt;
&lt;br /&gt;
If the above sources don't help, please send the following to the [[Mailinglist]]:&lt;br /&gt;
&lt;br /&gt;
* Step 1: A very brief description of your system: CPU and mainboard and optionally other important details.&lt;br /&gt;
* Step 2: Linux lspci output for your system, generated by booting Linux via the original BIOS and runnning lspci.&lt;br /&gt;
* Step 3: SuperIO chip on the mainboard (report the model numbers on the actual chip - doesn't appear in the lspci output)&lt;br /&gt;
* Step 4: Type of BIOS device (See the question &amp;quot;How do I identify the BIOS chip on my mainboard?&amp;quot; below.)&lt;br /&gt;
* Step 5: URL to the mainboard specifications page (optional)&lt;br /&gt;
* Step 6: Any other relevant information you can provide&lt;br /&gt;
&lt;br /&gt;
If you can't do step 1 above, please describe (as best you can) the specific CPU chip and the chipset used on the mainboard.&lt;br /&gt;
&lt;br /&gt;
Usually in less than a day, someone will respond on the LinuxBIOS mailing list saying your mainboard is supported in the main LinuxBIOS source tree, it is currently in development, it is not yet supported or the manufacturer will not release information needed to provide LinuxBIOS support.  In the latter case, please let the manufacturer know that you want LinuxBIOS support and his failure to release chipset informtion is making that very difficult.&lt;br /&gt;
&lt;br /&gt;
=== What commercial products use LinuxBIOS? ===&lt;br /&gt;
&lt;br /&gt;
See the [[products]] page.&lt;br /&gt;
&lt;br /&gt;
=== Which different operating systems will LinuxBIOS boot? ===&lt;br /&gt;
&lt;br /&gt;
Linux (of course)&lt;br /&gt;
&lt;br /&gt;
Plan 9&lt;br /&gt;
&lt;br /&gt;
Windows 2000 (via [[ADLO]])&lt;br /&gt;
&lt;br /&gt;
We have look at some of the BSD OSes but (e.g.) FreeBSD makes BIOS calls, and we don't support&lt;br /&gt;
BIOS calls. Possibly ADLO could be used to support FreeBSD, but the right thing to do is remove&lt;br /&gt;
FreeBSD's dependence on BIOS calls.&lt;br /&gt;
&lt;br /&gt;
=== How can I help with LinuxBIOS? ===&lt;br /&gt;
&lt;br /&gt;
Contact [[User:Rminnich|Ron Minnich]] for projects related to LinuxBIOS.&lt;br /&gt;
&lt;br /&gt;
== Developer ==&lt;br /&gt;
&lt;br /&gt;
=== What kind of hardware tools do I need? ===&lt;br /&gt;
&lt;br /&gt;
A motherboard (or mainboard as LinuxBIOS calls it) that has a supported chipset on it.  Ok.. Well not exactly.  As long as you have the documentation for the chipset/mainboard and it's free of any NDA issues you can use an unsupported chipset/mainboard, but you have a twisty road ahead of you.&lt;br /&gt;
	&lt;br /&gt;
And of course you need a Linux development machine.  The LinuxBIOS build environment is not supported on Windows.  It may be possible to do it under cygwin but nobody has tried.&lt;br /&gt;
		&lt;br /&gt;
It's also handy to have one/some/all of the following:&lt;br /&gt;
	&lt;br /&gt;
- EPROM/Flash programmer that can program the flash on your motherboard.&lt;br /&gt;
  [http://www.mcumall.com/ Willem Universal EPROM Programmer] -- DOS/Windows only (work has started on Linux drivers) ~$50&lt;br /&gt;
  [http://www.conitec.net/english/software.htm GALEP-4] -- Has beta linux drivers ~$300&lt;br /&gt;
  [http://www.loet.de/flasher_en.html IDE adapter for PLCC32 &amp;amp; DIP32 sockets] -- Has Linux 2.4 &amp;amp; 2.6 drivers ~$48EUR (kit $33EUR) &lt;br /&gt;
- ROM emulator&lt;br /&gt;
- Bios Savior &lt;br /&gt;
  http://www.ioss.com.tw/web/English/RD1BIOSSavior.html&lt;br /&gt;
  http://www.cwlinux.com/eng/products/products_lbmb.php&lt;br /&gt;
- POST card&lt;br /&gt;
  http://siliconkit.dnsalias.com/cart/index.tpcip.html&lt;br /&gt;
  http://www.elstonsystems.com/prod/pc_analyzer.html&lt;br /&gt;
  http://shopv2.elstonsystems.com/product_info.php/products_id/57&lt;br /&gt;
  http://www.uxd.com/trio.html&lt;br /&gt;
  http://www.soyousa.com/products/proddesc.php?id=261&lt;br /&gt;
- Compact Flash IDE adaptor  &lt;br /&gt;
  http://siliconkit.dnsalias.com/cart/index.tcfdp.html&lt;br /&gt;
  http://www.cwlinux.com/eng/products/products_ide2cf.php&lt;br /&gt;
  http://www.mini-box.com/s.nl/sc.8/category.14/.f&lt;br /&gt;
  http://www.acscontrol.com/Index_ACS.asp?Page=/Pages/Products/CompactFlash/IDE_To_CF_Adapter.htm&lt;br /&gt;
- Oscilliscope&lt;br /&gt;
- In Circuit Emulator hardware debugger&lt;br /&gt;
- LinuxBIOS SDK&lt;br /&gt;
  http://www.cwlinux.com/eng/products/products_sdk.php&lt;br /&gt;
- In Circuit chip programmer -- should allow you to program your BIOS even if it is soldered to the motherboard.&lt;br /&gt;
  http://www.xeltek.com/pages.php?pageid=8&lt;br /&gt;
- eprom emulators -- these hardware devices pretend to be an eprom chip&lt;br /&gt;
  http://www.tech-tools.com/romtools.htm&lt;br /&gt;
  http://xtronics.com/memory/pktROM.htm&lt;br /&gt;
  http://www.tribalmicro.com/multirom/&lt;br /&gt;
  http://www.linuxselfhelp.com/HOWTO/Diskless-HOWTO-10.html (a larger list -- outdated)&lt;br /&gt;
&lt;br /&gt;
=== What documentation do I need? ===&lt;br /&gt;
&lt;br /&gt;
As much as you can possibly get your hands on.  Minimum you need the docs for your chipset.  Without chipset docs you are basically lost.  &lt;br /&gt;
	&lt;br /&gt;
There have been some reports of people making things work by booting with the BIOS that comes with the board.  Dumping the PCI config registers and then making LinuxBIOS match those registers.  But since sometimes you have to set different bits in a given register at different times so that intermediate info will be lost.  Getting a mainboard up with out chipset docs can be a very long and involved process.&lt;br /&gt;
&lt;br /&gt;
=== What if my chipset docs are covered by an NDA? ===&lt;br /&gt;
&lt;br /&gt;
If the documentation for your chipset covered by and NDA with no source release agreement you won't be able to release your code back to to the LinuxBIOS project in general or you will violate the GPL.&lt;br /&gt;
Many vendors accept releasing the source code produced after reading such specs while they don't allow the specs themselves to be revealed. Also, you can offer them to review the code before releasing it.&lt;br /&gt;
&lt;br /&gt;
=== Where is the mailing list archived? ===&lt;br /&gt;
&lt;br /&gt;
The official LinuxBIOS mailing list archive is:&lt;br /&gt;
&lt;br /&gt;
http://www.linuxbios.org/pipermail/linuxbios/&lt;br /&gt;
&lt;br /&gt;
The best archive out there is at the University of Maryland. &lt;br /&gt;
&lt;br /&gt;
http://www.mail-archive.com/linuxbios@clustermatic.org/&lt;br /&gt;
&lt;br /&gt;
In addition, we've pieced together an archive that dates back to about the beginning of 2000 (including messages that were going to the freebios and openbios mailing lists).&lt;br /&gt;
&lt;br /&gt;
=== Where do I get the code? ===&lt;br /&gt;
&lt;br /&gt;
See the [[Download_freebios_v2|download page]].&lt;br /&gt;
&lt;br /&gt;
=== How do I build? ===&lt;br /&gt;
&lt;br /&gt;
See the documentation. For help generating a config file, see Generate a config file. (jdarby: this needs to be wikiized)&lt;br /&gt;
&lt;br /&gt;
=== Why is the code so complicated and what can I do to make it easier? ===&lt;br /&gt;
&lt;br /&gt;
The reason is the complexity of the problem. We support a lot of hardware, and a given chip on a given board will most likely not be configured quite the same as the same chip on some other board. &lt;br /&gt;
&lt;br /&gt;
To help make code navigation easier, pick a target and build that target. Then, in the build directory, type make tags or make etags to get your favorite tags file. &lt;br /&gt;
&lt;br /&gt;
=== What chipsets are supported? ===&lt;br /&gt;
&lt;br /&gt;
See the [[Supported Chipsets &amp;amp; Devices]] page&lt;br /&gt;
&lt;br /&gt;
=== How can I tell if my motherboard is supported by LinuxBIOS? ===&lt;br /&gt;
&lt;br /&gt;
There are 2 methods:&lt;br /&gt;
&lt;br /&gt;
1) Check [[Supported Motherboards]]&lt;br /&gt;
&lt;br /&gt;
If you don't see your chipset/Mainboard listed there then boot linux on your target and send the output of 'lspci -vvv' to the linuxBIOS list asking if this chipset is supported.&lt;br /&gt;
&lt;br /&gt;
2) &amp;quot;Use the source Luke&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Check out the latest copy of LinuxBIOS from CVS [[Download freebios v2]] and look in the freebios2/src/mainboard directory. (The LinuxBios module is called 'freebios2' in CVS for legacy reasons) There are directories for each manufacturer of mainboards that LinuxBIOS supports.  Below the manufacturer directory is a directory for each mainboard or family of&lt;br /&gt;
mainboard.  If a directory for your mainboad dosen't exist then theres a good chance LinuxBIOS dosen't support your mainboard out-of-the-box.  Posting to the list would probally be the next option.  See 'the lspci -vvv' in the earlier part of the question.&lt;br /&gt;
	&lt;br /&gt;
If the directory does exist then it still dosen't mean 100% the mainboard will work but at least it probally worked at one time.  Posting to the list will probally get you the latest info for that mainboard.&lt;br /&gt;
&lt;br /&gt;
=== What is this POST card thing? ===&lt;br /&gt;
&lt;br /&gt;
A POST card will save your life. The term POST means Power On Self Test and comes from the original IBM specifications for the BIOS. Port 80 is a pre-defined port to which programs can output a byte. The POST card displays the byte in hex on its 2 digit display. We use a lot of POST codes in LinuxBIOS, so if you can tell us the POST code you see, we will have some idea of what happened. &lt;br /&gt;
&lt;br /&gt;
If your LinuxBIOS machine is working properly, you will see it count up from 0xd0 to 0xd9 (while it is gunzipping the kernel) and then display 0x98 (Linux idle loop).&lt;br /&gt;
&lt;br /&gt;
PCI POST cards can be found in various places. &lt;br /&gt;
[http://www.linuxbios.org/index.php/FAQ#Developer POST Cards]&lt;br /&gt;
&lt;br /&gt;
=== How do I contribute my changes? ===&lt;br /&gt;
&lt;br /&gt;
Any one without commit privileges (which is most of you) need to get changes approved by Ron Minnich. &lt;br /&gt;
&lt;br /&gt;
=== How do I identify the BIOS chip on my mainboard? ===&lt;br /&gt;
&lt;br /&gt;
Modern mainboards store the BIOS in a reprogrammable flash ROM chip. There are hundreds of different flash ROMs, with variables such as memory size, speed, communication bus (LPC vs. ISA/PCI) and packaging to name just a few. The three most common packages are called DIP, PLCC and TSOP. The BIOS copyright holders often place a fancy sticker on the BIOS chip showing a name or logotype, BIOS version, serial number and copyright notice.&lt;br /&gt;
&lt;br /&gt;
[http://www.oricomtech.com/sub2/oopic2p.gif DIP chip with sticker]&amp;lt;br&amp;gt;&lt;br /&gt;
DIP: Dual In-line Package&amp;lt;br&amp;gt;&lt;br /&gt;
A rectangular black plastic block with lots of pins along the two longer sides of the package. DIP ROMs can be socketed which means they are detachable from the mainboard using physical force. Since they haven't been moved in and out of the socket very much (yet, hehe) they can appear to be quite difficult to release from the socket. One way to remove a DIP from a socket is by prying a thin screwdriver in between the plastic package and the socket, along the shorter sides where there are no pins, and then gently bending the screwdriver to push the DIP upwards, away from the mainboard. Alternate between the two sides to avoid bending the pins, and don't touch any of the pins with the screwdriver, see FAQ about ESD, electro-static discharge. If the DIP is soldered directly to the mainboard, it has to be desoldered in order to be reprogrammed outside the mainboard. If you do this, it's a good idea to solder a socket to the mainboard instead, to ease any future experiments.&lt;br /&gt;
&lt;br /&gt;
[http://www.rojakpot.com/article/Hot_Flash_Guide/BIOS_chips.jpg PLCC chips with and without sticker]&amp;lt;br&amp;gt;&lt;br /&gt;
PLCC: Plastic Leaded Chip Carrier&amp;lt;br&amp;gt;&lt;br /&gt;
Black plastic block again, but this one is much more square. PLCC is becoming the standard for mainboards because of it's smaller physical size. PLCC can also be socketed or soldered directly to the mainboard. Socketed PLCC chips can be removed using a special PLCC removal tool, or using a piece of nylon line tied in a loop around the chip and pulled swiftly straight up, or bending/prying using small screwdrivers if one is careful. PLCC sockets are often fragile so the screwdriver approach is not recommended. While the nylon line method sounds onorthodox it works well. Desoldering PLCC can be painful without specialized desoldering equipment particularly because PLCC chips have leads on all four sides of the package.&lt;br /&gt;
&lt;br /&gt;
[http://www.isipkg.com/images/adp_tsop_dip.jpg TSOP chip on a TSOP-&amp;gt;DIP adapter]&amp;lt;br&amp;gt;&lt;br /&gt;
TSOP: Thin Small-Outline Package&amp;lt;br&amp;gt;&lt;br /&gt;
TSOPs are often used in embedded systems where size is important and there is no need for replacement in the field. It is possible to (de)solder TSOPs by hand, but it comes close to wizardry.&lt;br /&gt;
&lt;br /&gt;
=== How do I (re-)flash the BIOS? ===&lt;br /&gt;
&lt;br /&gt;
==== Out of mainboard BIOS (re)flash ====&lt;br /&gt;
&lt;br /&gt;
If the BIOS chip is socketed, it can be removed and flashed in a rom/flash burner and quickly re-installed.  Some of these burners cost $1000 and more plus they complete a flash in 1-2 minutes, but if you are willing to wait 5 minutes for a flash and manually set DIP switches, The Enhanced Willem Universal Programmer will do the job for only $40-60 USD.  There are several models of the Willem Programmer, each supporting many chips, but not all, so be sure to get one that supports your BIOS chip.  If your chip is PLCC, you will also need a PLCC chip extractor/puller or just thread nylon string under the PLCC chip from corner to corner and yank up it straight up.&lt;br /&gt;
&lt;br /&gt;
==== Inside mainboard BIOS (re)flash ====&lt;br /&gt;
&lt;br /&gt;
Download the appropriate flash update utility. Build the romimage 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. For example, Intel decided to disallow it for the MS440GX mainboard (probably after hearing about us!) Here are some mainboard specific directions: &lt;br /&gt;
&lt;br /&gt;
===== General =====&lt;br /&gt;
LinuxBIOS v2 contains a flash utility called &amp;quot;flash_rom&amp;quot;. It can be found at freebios2/util/flash_and_burn.&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
 bash# ./flash_rom&lt;br /&gt;
 Calibrating timer since microsleep sucks ... takes a second&lt;br /&gt;
 Setting up microsecond timing loop&lt;br /&gt;
 515M loops per second&lt;br /&gt;
 OK, calibrated, now do the deed&lt;br /&gt;
 Enabling flash write on AMD8111...OK&lt;br /&gt;
 Trying Am29F040B, 512 KB&lt;br /&gt;
 probe_29f040b: id1 0x4e, id2 0x41&lt;br /&gt;
 Trying At29C040A, 512 KB&lt;br /&gt;
 probe_jedec: id1 0xbf, id2 0x51&lt;br /&gt;
 Trying Mx29f002, 256 KB&lt;br /&gt;
 probe_29f002: id1 0xbf, id2 0x51&lt;br /&gt;
 Trying SST29EE020A, 256 KB&lt;br /&gt;
 probe_jedec: id1 0xbf, id2 0x51&lt;br /&gt;
 Trying SST28SF040A, 512 KB&lt;br /&gt;
 probe_28sf040: id1 0x4e, id2 0x41&lt;br /&gt;
 Trying SST39SF020A, 256 KB&lt;br /&gt;
 probe_jedec: id1 0xbf, id2 0x51&lt;br /&gt;
 Trying SST39VF020, 256 KB&lt;br /&gt;
 probe_jedec: id1 0xbf, id2 0x51&lt;br /&gt;
 Trying SST49LF040, 512 KB&lt;br /&gt;
 probe_jedec: id1 0xbf, id2 0x51&lt;br /&gt;
 SST49LF040 found at physical address: 0xfff80000&lt;br /&gt;
 Part is SST49LF040&lt;br /&gt;
 OK, only ENABLING flash write, but NOT FLASHING&lt;br /&gt;
 bash# flash_rom --help&lt;br /&gt;
 usage: ./flash_rom [-rwv] [-c chipname] [-s exclude_start] [-e exclude_end] [file]&lt;br /&gt;
  -r: read flash and save into file&lt;br /&gt;
  -w: write file into flash (default when file is specified)&lt;br /&gt;
  -v: verify flash against file&lt;br /&gt;
  -c: probe only for specified flash chip&lt;br /&gt;
  -s: exclude start position&lt;br /&gt;
  -e: exclude end postion&lt;br /&gt;
   If no file is specified, then all that happens&lt;br /&gt;
   is that flash info is dumped&lt;br /&gt;
&lt;br /&gt;
Besides that, OpenBIOS contains a flash driver called [http://www.openbios.org/development/devbios.html /dev/bios] which may support some systems and flash chips unsupported by flash_rom.&lt;br /&gt;
 &lt;br /&gt;
===== SiS 630/950 M/Bs =====&lt;br /&gt;
Ollie Lho provided us with flash utilities for these boards under freebios/util/sis. &lt;br /&gt;
flash_on turns on the flash write enable. This needs to be run before loading the DoC drivers. &lt;br /&gt;
flash_rom allows you to use your SiS 630/950 M/Bs as a flash programmer. It currently supports JEDEC flash parts, AMD am29f040b models, MXIC MX29F002 models, and SST28SF040C models. &lt;br /&gt;
&lt;br /&gt;
===== Intel L440GX =====&lt;br /&gt;
Get the System Update Package directly from Intel. mcopy the ten files created from running make phlash onto the Intel flash burner disk and use the update utility to burn the BIOS. To restore the original BIOS, set the recovery boot jumper on the motherboard, put the floppy in, and it will load and reflash the original BIOS. &lt;br /&gt;
How do I actually burn a flash ROM? &lt;br /&gt;
&lt;br /&gt;
Buy your favorite flash burner (we use a Needham Electronics EMP 30). Use make floppy to create the romimage and copy it to a floppy. Then use the provided software to burn the flash.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===== BIOS Saver RD1 =====&lt;br /&gt;
&lt;br /&gt;
[http://www.ioss.com.tw/web/English/RD1BIOSSavior.html BIOS Saver RD1]&lt;br /&gt;
&lt;br /&gt;
There are some posts about the BIOS Saver RD1 that suggest its integrated flash device is of low quality, and it may take 10 or more flash programming attempts to get a good  update to the RD1 flash device. As a result, the following steps have proven to be successful while using the RD1:&lt;br /&gt;
&lt;br /&gt;
* Step 1 - While the system is powered down remove the original BIOS device from the mainboard and insert it into the RD1's socket.&lt;br /&gt;
&lt;br /&gt;
* Step 2 - Insert the RD1 into the mainboard's flash BIOS socket.&lt;br /&gt;
&lt;br /&gt;
* Step 3 - Boot the system with the RD1 set to boot from the original flash device from the mainboard.&lt;br /&gt;
&lt;br /&gt;
* Step 4 - Program the original BIOS image (or other known good BIOS image) into the RD1's integrated flash device for as many times as needed until the device is properly programmed and the system boots corectly from the RD1's integrated flash device. Be sure to check the settings on the RD1 so that the proper flash device is now being programmed. If the RD1 is not set correctly the working BIOS image will be erased and the system may not boot!&lt;br /&gt;
&lt;br /&gt;
* Step 5 - Program the test BIOS image (usually LinuxBIOS images are among this group) into the original flash device from the mainboard. The original BIOS device usually programs OK on the first attempt. Be sure to check the settings again on the RD1 so that the proper flash device is now being programmed!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The RD1 has been used in the above fashion with great success on the Tyan S2885 mainboard. Unfortunately the RD1 does not work on the nVidia CK8-04 CRB mainboard. The CK8-04 CRB may require a flash device that the RD1 does not support. &lt;br /&gt;
&lt;br /&gt;
The RD1 has worked well as a &amp;quot;do nothing&amp;quot; adapter that allows swapping the BIOS flash device between a flash burner and a mainboard without any wear to the mainboard's BIOS socket.&lt;br /&gt;
&lt;br /&gt;
=== How do I burn a DoC? ===&lt;br /&gt;
&lt;br /&gt;
Currently, only the DoC Millennium is supported. See the documentation. &lt;br /&gt;
&lt;br /&gt;
=== Can I do any serious damage mucking around with this stuff? ===&lt;br /&gt;
&lt;br /&gt;
Any time you stick your hand into an open machine while the power is on, you're risking life and limb. That said, there are also some other not-so-nice things that can happen if you mess up (not that we would know). &lt;br /&gt;
&lt;br /&gt;
* Incorrect insertion of the flash (1 casualty) &lt;br /&gt;
* Incorrect jumper settings (1 casualty) &lt;br /&gt;
* Aggressive and/or inappropriate use of metal objects such as screwdrivers (2 casualties) &lt;br /&gt;
* Miscellaneous miswirings and mishandlings (3+ casualties)&lt;br /&gt;
&lt;br /&gt;
=== A note on electrostatic discharge (ESD) and ESD protection (thanks to Bari Ari) ===&lt;br /&gt;
&lt;br /&gt;
ESD can damage disk drives, boards, DoC's and other parts. The majority of the time, ESD events cause the component to degrade, but not fail testing procedures, resulting in failure at a later date. Because components do not fail immediately, technicians often underestimate the cost of not using ESD prevention measures. Provide at minimum some ESD protection by wearing an antistatic wrist strap attached to the chassis ground on your system when handling parts. &lt;br /&gt;
&lt;br /&gt;
Always handle boards carefully. They can be extremely sensitive to ESD. Hold boards only by their edges. After removing a board from its protective wrapper or from the system, place it component side up on a grounded, static free surface. Use a conductive foam pad if available. Do not slide the board over any surface. &lt;br /&gt;
&lt;br /&gt;
To further reduce the chances of ESD, you should create an ESD safe workstation that includes at minimum: &lt;br /&gt;
&lt;br /&gt;
* Conductive rubber mat, with a lead wire that can be connected to a metal surface to create a ground. &lt;br /&gt;
&lt;br /&gt;
* ESD wrist strap, which has a resistor inside the strap and a lead wire that can be connected to a metal surface as a ground. The grounding wire on the wrist strap should have between 1 and 10 Megaohms of resistance. The resistor should protect you in case you come in contact with a voltage source. If the resistor is bad or not included, the wrist strap is useless. An accidental shock could be serious and even deadly! &lt;br /&gt;
&lt;br /&gt;
* Table or workspace that is clean, clear of dust, and away from electrical machinery or other equipment that generates electrical currents. &lt;br /&gt;
&lt;br /&gt;
The idea is to ensure that all components you are going to interact with have the same charge. By connecting everything to the computer case, you ensure that the components of the case, the chair, and your body all have the same charge. If every object has the same charge, the electrons will not jump from one object to another minimizing the risk of ESD damage. &lt;br /&gt;
&lt;br /&gt;
=== How do I put a filesystem on DoC? ===&lt;br /&gt;
OK, here is a little HOWTO on how to set up MTD with a file system. &lt;br /&gt;
&lt;br /&gt;
This is a m810lmr, booting out of DoC. I am going to reserve the first 2M for kernel. So the layout will be the first 2M for linuxbios and kernel, and 6M for a file system. Kernel is 2.4.17, with linux-2.4.17-sis.patch from linuxbios source tree, and config-2.4.17-sis from the linuxbios source tree. Mainboard is the pcchips m810lmr. &lt;br /&gt;
&lt;br /&gt;
So I: &lt;br /&gt;
 modprobe doc2001 &lt;br /&gt;
 modprobe docprobe &lt;br /&gt;
 dmesg &lt;br /&gt;
&lt;br /&gt;
which shows: &lt;br /&gt;
&lt;br /&gt;
 DiskOnChip Millennium found at address 0xFFFC8000 &lt;br /&gt;
 Flash chip found: Manufacturer ID: 98, Chip ID: E6 (Toshiba TC58V64AFT/DC) &lt;br /&gt;
 1 flash chips found. Total DiskOnChip size: 8 MiB &lt;br /&gt;
 mtd: Giving out device 0 to DiskOnChip Millennium &lt;br /&gt;
 Ignoring DiskOnChip Millennium at 0xFFFCA000 - already configured &lt;br /&gt;
 Ignoring DiskOnChip Millennium at 0xFFFCC000 - already configured &lt;br /&gt;
 Ignoring DiskOnChip Millennium at 0xFFFCE000 - already configured &lt;br /&gt;
 Ignoring DiskOnChip Millennium at 0xFFFD0000 - already configured &lt;br /&gt;
 Ignoring DiskOnChip Millennium at 0xFFFD2000 - already configured &lt;br /&gt;
 Ignoring DiskOnChip Millennium at 0xFFFD4000 - already configured &lt;br /&gt;
 Ignoring DiskOnChip Millennium at 0xFFFD6000 - already configured &lt;br /&gt;
 (etc..) &lt;br /&gt;
 Now I need MTD utilities. &lt;br /&gt;
 So I: &lt;br /&gt;
 cvs -d :pserver:anoncvs@cvs.infradead.org:/home/cvs login &lt;br /&gt;
 CVS password: &lt;br /&gt;
 &lt;br /&gt;
 (password is anoncvs) &lt;br /&gt;
 Then: &lt;br /&gt;
 cvs -d :pserver:anoncvs@cvs.infradead.org:/home/cvs co mtd &lt;br /&gt;
&lt;br /&gt;
Forget the drivers and such, you don't need them. What you need is the tools. &lt;br /&gt;
 cd mtd/tools &lt;br /&gt;
 make &lt;br /&gt;
&lt;br /&gt;
Go ahead and copy the executables somewhere handy, you'll need them. &lt;br /&gt;
&lt;br /&gt;
Now we need to make the last 6M into a &amp;quot;disk&amp;quot;. We need to format it. The tool is nftl_format, so:&lt;br /&gt;
&lt;br /&gt;
 [root@carly util]# ./nftl_format &lt;br /&gt;
 $Id: nftl_format.c,v 1.17 2001/08/29 14:28:48 dwmw2 Exp $ &lt;br /&gt;
 Usage: ./nftl_format [ []] &lt;br /&gt;
 [root@carly util]# expr 2048 \* 1024 &lt;br /&gt;
 2097152 &lt;br /&gt;
 [root@carly util]# expr 6 \* 1024 \* 1024 &lt;br /&gt;
 6291456 &lt;br /&gt;
 [root@carly util]# ./nftl_format /dev/mtd0 2097152 6291456 &lt;br /&gt;
 $Id: nftl_format.c,v 1.17 2001/08/29 14:28:48 dwmw2 Exp $ &lt;br /&gt;
 Phase 1. Checking and erasing Erase Zones from 0x00200000 to 0x00800000 &lt;br /&gt;
 Phase 2.a Writing NFTL Media Header and Bad Unit Table &lt;br /&gt;
 Phase 2.b Writing Spare NFTL Media Header and Spare Bad Unit Table &lt;br /&gt;
 Phase 3. Writing Unit Control Information to each Erase Unit &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
we now have a formatted disk in there. We can now partition it. &lt;br /&gt;
&lt;br /&gt;
 [root@carly util]# modprobe nftl &lt;br /&gt;
&lt;br /&gt;
dmesg shows LOTS of errors, since this was never partitioned ... &lt;br /&gt;
&lt;br /&gt;
Also, if you don't have /dev/nftla, &lt;br /&gt;
&lt;br /&gt;
 [root@carly util]# mknod /dev/nftla b 93 0 &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Don't use the script just yet, it makes /dev/nftla as b 93 16, which is the wrong unit #. &lt;br /&gt;
&lt;br /&gt;
now fdisk /dev/nftla &lt;br /&gt;
&lt;br /&gt;
 [root@carly util]# fdisk /dev/nftlA &lt;br /&gt;
 Command (m for help): n &lt;br /&gt;
 Command action &lt;br /&gt;
 e extended &lt;br /&gt;
 p primary partition (1-4) &lt;br /&gt;
 p &lt;br /&gt;
 Partition number (1-4): 1 &lt;br /&gt;
 First cylinder (1-1, default 1): &lt;br /&gt;
 Using default value 1 &lt;br /&gt;
 Command (m for help): p &lt;br /&gt;
 Disk /dev/nftlA: 1 heads, 12224 sectors, 1 cylinders &lt;br /&gt;
 Units = cylinders of 12224 * 512 bytes &lt;br /&gt;
 Device Boot Start End Blocks Id System &lt;br /&gt;
 /dev/nftlA1 1 1 6111+ 83 Linux &lt;br /&gt;
 Partition 1 has different physical/logical endings: &lt;br /&gt;
 phys=(768, 0, 0) logical=(0, 0, 12224) &lt;br /&gt;
 Partition 1 does not end on cylinder boundary: &lt;br /&gt;
 phys=(768, 0, 0) should be (768, 0, 12224) &lt;br /&gt;
 Command (m for help): w &lt;br /&gt;
 The partition table has been altered! &lt;br /&gt;
 Calling ioctl() to re-read partition table. &lt;br /&gt;
 WARNING: If you have created or modified any DOS 6.x partitions, please see the fdisk manual page for additional information. &lt;br /&gt;
 Syncing disks. &lt;br /&gt;
 [root@carly util]# mknod /dev/nftlA1 b 93 1 &lt;br /&gt;
 [root@carly util]# mke2fs /dev/nftlA1 &lt;br /&gt;
 mke2fs 1.23, 15-Aug-2001 for EXT2 FS 0.5b, 95/08/09 &lt;br /&gt;
 Filesystem label= &lt;br /&gt;
 OS type: Linux &lt;br /&gt;
 Block size=1024 (log=0) &lt;br /&gt;
 Fragment size=1024 (log=0) &lt;br /&gt;
 1528 inodes, 6111 blocks &lt;br /&gt;
 305 blocks (4.99%) reserved for the super user &lt;br /&gt;
 First data block=1 &lt;br /&gt;
 1 block group &lt;br /&gt;
 8192 blocks per group, 8192 fragments per group &lt;br /&gt;
 1528 inodes per group &lt;br /&gt;
 Writing inode tables: done &lt;br /&gt;
 Writing superblocks and filesystem accounting information: done &lt;br /&gt;
&lt;br /&gt;
This filesystem will be automatically checked every 37 mounts or 180 days, whichever comes first. Use tune2fs -c or -i to override. &lt;br /&gt;
&lt;br /&gt;
 [root@carly util]# mount /dev/nftlA1 /mnt &lt;br /&gt;
 [root@carly util]# cd /mnt &lt;br /&gt;
 [root@carly mnt]# df . &lt;br /&gt;
 Filesystem 1k-blocks Used Available Use% Mounted on &lt;br /&gt;
 /dev/nftlA1 5915 13 5597 1% /mnt &lt;br /&gt;
 [root@carly mnt]# &lt;br /&gt;
&lt;br /&gt;
and so you now have an ext2 file system on the DoC. &lt;br /&gt;
&lt;br /&gt;
(Above is from [[User:Rminnich|Ron Minnich]])&lt;br /&gt;
&lt;br /&gt;
=== How do I turn off embedded sis630 devices? ===&lt;br /&gt;
&lt;br /&gt;
 From aip@cwlinux.com Mon Mar 25 08:54:07 2002 &lt;br /&gt;
 Date: Mon, 25 Mar 2002 22:07:54 +0800 &lt;br /&gt;
 From: Andrew Ip &lt;br /&gt;
 To: Kei Furuuchi &lt;br /&gt;
 Cc: linuxbios@lanl.gov &lt;br /&gt;
 Subject: Re: How to turn off unused pci device. &lt;br /&gt;
 Hi, &lt;br /&gt;
 &amp;gt; I have pcchips m758lmr which has audio chip besides sis630. &lt;br /&gt;
 &amp;gt; those functions in sis630 are not used in the motherboard. &lt;br /&gt;
 &amp;gt; But, the functions keep coming up. How do I turn off those? &lt;br /&gt;
 The following is from Nikolai Valdych previous message. Hope this help. &lt;br /&gt;
 -Andrew &lt;br /&gt;
 -- &lt;br /&gt;
 Andrew Ip &lt;br /&gt;
 Email: aip@cwlinux.com &lt;br /&gt;
 Actualy, it was pretty simple 0x7c00 - All devices enabled, You play with first 4 bits only. Cos there are 4 devices, so you have any combination of 4 bits. &lt;br /&gt;
 Set bit to 1 to turn off the device, bit 0 to enable it. &lt;br /&gt;
 This is the device list: &lt;br /&gt;
 Multimedia Audio controler &lt;br /&gt;
 Modem controler &lt;br /&gt;
 Ethernet sis930 controler &lt;br /&gt;
 USB controler. &lt;br /&gt;
 For example, to turn off Ethernet + USB it would be: &lt;br /&gt;
 0x7c0c -&amp;gt; 1100 in binary (first 4 bits) &lt;br /&gt;
 To turn off Multimedia audio : &lt;br /&gt;
 0x7c01 -&amp;gt; 0001 &lt;br /&gt;
 in binary and so on... maybe there are more detail, but this is enogh for me, Ollie, again thanks! &lt;br /&gt;
 nikolai &lt;br /&gt;
 p.s. though my modem is not yet working..... damn driver...... &lt;br /&gt;
&lt;br /&gt;
=== What is a PIRQ table? ===&lt;br /&gt;
&lt;br /&gt;
 From Adam Sulmicki: &lt;br /&gt;
 &lt;br /&gt;
 I found beautfiul descrition of the BIOS implementation of the PIRQ in the red PCI book.&lt;br /&gt;
 &lt;br /&gt;
 I found the description of the $PIR data structure in the&lt;br /&gt;
        &lt;br /&gt;
  http://www.microsoft.com/whdc/archive/pciirq.mspx&lt;br /&gt;
 &lt;br /&gt;
 looking over linuxbios sources I see that it saves the $PIR data structure&lt;br /&gt;
 somewhere between 0xf0000 &amp;amp; 0x100000.&lt;br /&gt;
 &lt;br /&gt;
 so it seems I'll have to search for $PIR and then save it before copying&lt;br /&gt;
 over our bios. sigh. hoped for some fixed address in mem.&lt;br /&gt;
 &lt;br /&gt;
 -- &lt;br /&gt;
 Adam&lt;br /&gt;
 http://www.eax.com      The Supreme Headquarters of the 32 bit registers&lt;br /&gt;
&lt;br /&gt;
=== How do I set up etherboot with LinuxBIOS? ===&lt;br /&gt;
&lt;br /&gt;
Note from Ron: I have edited this somewhat to remove Geode-specific items. &lt;br /&gt;
&lt;br /&gt;
 Christer Weinigel writes: &lt;br /&gt;
 To: rminnich@lanl.gov&lt;br /&gt;
 Cc: linuxbios@lanl.gov&lt;br /&gt;
 Subject: Re: LinuxBIOS + Etherboot HOWTO?&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 I had some trouble using LinuxBIOS + etherboot... &lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 My bad, I messed up and used mkelfImage-1.6 that I got from ftp.lnxi.com, when I realized that I ought to use the one from freebios/util everything started working. &lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 Here's what I did to get LinuxBIOS + Etherboot loading and booting a Linux kernel using TFTP. &lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
   /Christer &lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 Get etherboot-5.0 from the CVS tree on etherboot.sourceforge.net. &lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 Modify etherboot-5.0/src/Config, comment out: &lt;br /&gt;
 &lt;br /&gt;
    # BIOS select don't change unless you know what you are doing&lt;br /&gt;
    #CFLAGS32+=     -DPCBIOS&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 and uncomment the following: &lt;br /&gt;
 &lt;br /&gt;
    # Options to make a version of Etherboot that will work under linuxBIOS.&lt;br /&gt;
    CFLAGS32+= -DLINUXBIOS -DCONFIG_TSC_CURRTICKS  -DCONSOLE_SERIAL \&lt;br /&gt;
               -DCOMCONSOLE=0x3f8 -DCOMPRESERVE -DCONFIG_PCI_DIRECT -DELF_IMAGE &lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 Compile Etherboot to make an elf file for your ethernet card: &lt;br /&gt;
 &lt;br /&gt;
     make bin32/natsemi.elf&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 Compile and install mkelfImage from freebios/util/mkelfImage. &lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 Create a bootimage to put on your TFTP server: &lt;br /&gt;
 &lt;br /&gt;
    mkelfImage --command-line=&amp;quot;root=/dev/hda2 console=ttyS0,38400&amp;quot; \&lt;br /&gt;
               --kernel vmlinux -o /tftpboot/kernel&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 Finally, make sure that your BOOT/DCHP server is answering and that the TFTP server is active. &lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 Tell LinuxBIOS to boot an elf Image, and tell LinuxBIOS where it is: &lt;br /&gt;
 &lt;br /&gt;
    option USE_ELF_BOOT=1&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 I have placed natsemi.elf in the first 64k of my BIOS flash chip, and LinuxBIOS in the second 64k. &lt;br /&gt;
 &lt;br /&gt;
    insmod bios.o&lt;br /&gt;
    dd if=natsemi.elf of=/dev/bios bs=64k&lt;br /&gt;
    dd if=linuxbios.rom of=/dev/bios bs=64k seek=1&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 Finally boot LinuxBIOS. &lt;br /&gt;
 &lt;br /&gt;
=== How do I set GEODE video? ===&lt;br /&gt;
&lt;br /&gt;
 From christer@weinigel.se Wed Nov 27 07:47:17 2002&lt;br /&gt;
 Date: 27 Nov 2002 10:55:01 +0100&lt;br /&gt;
 From: Christer Weinigel &lt;br /&gt;
 To: Adam Bezanson &lt;br /&gt;
 Cc: linuxbios@clustermatic.org&lt;br /&gt;
 Subject: Re: Geode Kernel Config &lt;br /&gt;
 &lt;br /&gt;
 &amp;quot;Adam Bezanson&amp;quot;  writes:&lt;br /&gt;
 &lt;br /&gt;
 &amp;gt; I've got an Eval card from National Semi that contains&lt;br /&gt;
 &amp;gt; the SC1200. I'd like to try LinuxBios on it.&lt;br /&gt;
 &amp;gt; I've downloaded both the 2.4.18 and 2.4.19 kernels to start with.&lt;br /&gt;
 &amp;gt; What patches do I need to apply to the kernel?&lt;br /&gt;
 &amp;gt; Is there a config file I can use to configure the kernel, or&lt;br /&gt;
 &amp;gt; should I do it manually? &lt;br /&gt;
 &lt;br /&gt;
 A normal 2.4 Linux kernel will work fine as long as you compile for a&lt;br /&gt;
 586 CPU (CONFIG_M586), not Pentium or higher (CONFIG_M586TSC and up)&lt;br /&gt;
 since the TSC behaves a bit differently. &lt;br /&gt;
 &lt;br /&gt;
 If you want support for the watchdog or the GPIO pins in a 2.4 kernel,&lt;br /&gt;
 you can find an old patch from me at:&lt;br /&gt;
 &lt;br /&gt;
    http://groups.google.com/groups?selm=20020226015215.20118F5B%40acolyte.hack.org&amp;amp;oe=UTF-8&amp;amp;output=gplain&lt;br /&gt;
 &lt;br /&gt;
 An updated version of this patch has been included in Linux 2.5.  Alan&lt;br /&gt;
 Cox' 2.5 kernel also has support for doing DMA on the SC1200 IDE&lt;br /&gt;
 controller; I don't know if there is a corresponding patch for 2.4. &lt;br /&gt;
 &lt;br /&gt;
 Other than that, take a look at the freebios/src/mainboard/nano/nano&lt;br /&gt;
 directory and make a copy of it.  All you should have to do is to&lt;br /&gt;
 modify the Pin Multiplexing Register (PMR) and Miscellaneous Config&lt;br /&gt;
 Register (MCR) in the Config file and to modify the irq assignments.&lt;br /&gt;
 &lt;br /&gt;
 Depending on what you want to do, there are a few limitations with&lt;br /&gt;
 the current LinuxBIOS on the SC1200: &lt;br /&gt;
 &lt;br /&gt;
    There is no video support in LinuxBIOS itself, so you won't get&lt;br /&gt;
    any video until you have loaded the NatSemi Geode Linux&lt;br /&gt;
    framebuffer driver (can be found at www.linux4.tv under the&lt;br /&gt;
    heading SP1SC10 Platform Image).&lt;br /&gt;
 &lt;br /&gt;
    There is no SMM/VSA support at all, this means that anything&lt;br /&gt;
    relying on it won't work.  What this means is that Audio won't&lt;br /&gt;
    work.&lt;br /&gt;
 &lt;br /&gt;
 Other than that everything works fine, IDE in PIO mode, the PCI bus,&lt;br /&gt;
 watchdog, GPIOs, everything.&lt;br /&gt;
 &lt;br /&gt;
  /Christer&lt;br /&gt;
 &lt;br /&gt;
 -- &lt;br /&gt;
 &amp;quot;Just how much can I get away with and still go to heaven?&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 Freelance consultant specializing in device driver programming for Linux &lt;br /&gt;
 Christer Weinigel   http://www.weinigel.se&lt;br /&gt;
 _______________________________________________&lt;br /&gt;
 Linuxbios mailing list&lt;br /&gt;
 Linuxbios@clustermatic.org&lt;br /&gt;
 http://www.clustermatic.org/mailman/listinfo/linuxbios&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== How do I set up testbios? ===&lt;br /&gt;
&lt;br /&gt;
 From daubin@actuality-systems.com Wed Oct  6 10:23:10 2004&lt;br /&gt;
 Date: Tue, 5 Oct 2004 15:19:24 -0400&lt;br /&gt;
 From: Dave Aubin &lt;br /&gt;
 To: linuxbios@clustermatic.org&lt;br /&gt;
 Subject: RE: Testbios help with nvidia 6800Gt and simple how to&lt;br /&gt;
 &lt;br /&gt;
 I've taken the time to put together a simple testbios faq.&lt;br /&gt;
 I hope it is helpful.  Feedback and additions are welcome. &lt;br /&gt;
 &lt;br /&gt;
 Thanks,&lt;br /&gt;
 Dave&lt;br /&gt;
 &lt;br /&gt;
==== Testbios (vgabios) Faq ====&lt;br /&gt;
&lt;br /&gt;
Date: 10/5/2004&lt;br /&gt;
Author(s): David Aubin  daubin@actuality-systems.com&lt;br /&gt;
&lt;br /&gt;
Purpose:  Testbios is an i386 emulator that sits on top of userspace linux.  It's primary purpose is to provide program video rom's in to the cached memory area.&lt;br /&gt;
&lt;br /&gt;
===== Where to obtain testbios =====&lt;br /&gt;
&lt;br /&gt;
Testbios(vgabios) can be retrieved from the linuxbios/freebios source tree: [http://www.linuxbios.org/developer/download/index.html]&lt;br /&gt;
&lt;br /&gt;
===== Prerequisites =====&lt;br /&gt;
&lt;br /&gt;
You must have installed pci-utils&lt;br /&gt;
* Get http://atrey.karlin.mff.cuni.cz/~mj/pciutils.shtml&lt;br /&gt;
&lt;br /&gt;
===== How to build testbios =====&lt;br /&gt;
* cd freebios/util/vgabios&lt;br /&gt;
* Edit ./Makefile and fill in the correct values for your environment (I build on a 64 AMD so my makefile looks like this)&lt;br /&gt;
&lt;br /&gt;
Begin ./Makefile for x64:&lt;br /&gt;
 CC       =  gcc&lt;br /&gt;
 ARCH     := $(shell uname -m | sed -e s,i[3456789]86,i386,)&lt;br /&gt;
 INCLUDE  =  -I ../pciutils-2.1.11&lt;br /&gt;
 CFLAGS   =  -Wall -Ix86emu/include -O2 -g $(INCLUDE)&lt;br /&gt;
 &lt;br /&gt;
 INTOBJS  =  int10.o int15.o int16.o int1a.o inte6.o&lt;br /&gt;
 OBJECTS  =  testbios.o helper_exec.o helper_mem.o $(INTOBJS)&lt;br /&gt;
 LDFLAGS  =  -static-libgcc -static&lt;br /&gt;
 &lt;br /&gt;
 LIBS     =  x86emu/src/x86emu/libx86emu.a ../pciutils-2.1.11/lib/libpci.a&lt;br /&gt;
 &lt;br /&gt;
 # user space pci is the only option right now.&lt;br /&gt;
 OBJECTS += pci-userspace.o&lt;br /&gt;
 &lt;br /&gt;
 ifeq ($(shell if test &amp;quot;$(ARCH)&amp;quot; == &amp;quot;x86_64&amp;quot; ; then echo 1; fi), 1)&lt;br /&gt;
         CFLAGS +=-m32 -march=i386&lt;br /&gt;
         endif&lt;br /&gt;
 &lt;br /&gt;
         all: testbios&lt;br /&gt;
 &lt;br /&gt;
         testbios: $(OBJECTS) $(LIBS)&lt;br /&gt;
                 $(CC) $(CFLAGS) -o testbios $(OBJECTS) $(LDFLAGS)&lt;br /&gt;
 $(LIBS)&lt;br /&gt;
 &lt;br /&gt;
 helper_exec.o: helper_exec.c test.h&lt;br /&gt;
 &lt;br /&gt;
 x86emu/src/x86emu/libx86emu.a:&lt;br /&gt;
         $(MAKE) -C x86emu/src/x86emu/ -f makefile.linux&lt;br /&gt;
 &lt;br /&gt;
         clean:&lt;br /&gt;
                 $(MAKE) -C x86emu/src/x86emu/ -f makefile.linux clean&lt;br /&gt;
                 rm -f *.o *~ testbios &lt;br /&gt;
 &lt;br /&gt;
         distclean: clean&lt;br /&gt;
                 $(MAKE) -C x86emu/src/x86emu/ -f makefile.linux clean&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
End ./Makefile&lt;br /&gt;
&lt;br /&gt;
* Edit ~vgabios/x86emu/src/x86emu/makefile.linux and fill in the correct values for your environment (I build on a 64 AMD so my makefile looks like this)&lt;br /&gt;
&lt;br /&gt;
Begin ~vgabios/x86emu/src/x86emu/makefile.linux:&lt;br /&gt;
 #############################################################################&lt;br /&gt;
 #&lt;br /&gt;
 #                                               Realmode X86 Emulator Library&lt;br /&gt;
 #&lt;br /&gt;
 #               Copyright (C) 1996-1999 SciTech Software, Inc.&lt;br /&gt;
 #&lt;br /&gt;
 #&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;========================================================================&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 #&lt;br /&gt;
 #  Permission to use, copy, modify, distribute, and sell this software and&lt;br /&gt;
 #  its documentation for any purpose is hereby granted without fee,&lt;br /&gt;
 #  provided that the above copyright notice appear in all copies and that&lt;br /&gt;
 #  both that copyright notice and this permission notice appear in&lt;br /&gt;
 #  supporting documentation, and that the name of the authors not be used&lt;br /&gt;
 #  in advertising or publicity pertaining to distribution of the software&lt;br /&gt;
 #  without specific, written prior permission.  The authors makes no&lt;br /&gt;
 #  representations about the suitability of this software for any purpose.&lt;br /&gt;
 #  It is provided &amp;quot;as is&amp;quot; without express or implied warranty.&lt;br /&gt;
 #&lt;br /&gt;
 #  THE AUTHORS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,&lt;br /&gt;
 #  INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO&lt;br /&gt;
 #  EVENT SHALL THE AUTHORS BE LIABLE FOR ANY SPECIAL, INDIRECT OR&lt;br /&gt;
 #  CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF&lt;br /&gt;
 #  USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR&lt;br /&gt;
 #  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR&lt;br /&gt;
 #  PERFORMANCE OF THIS SOFTWARE.&lt;br /&gt;
 #&lt;br /&gt;
 #&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;========================================================================&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 #&lt;br /&gt;
 # Descripton:   Linux specific makefile for the x86emu library.&lt;br /&gt;
 #&lt;br /&gt;
 #############################################################################&lt;br /&gt;
 &lt;br /&gt;
 TARGETLIB = libx86emu.a&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 OBJS=\&lt;br /&gt;
 debug.o \&lt;br /&gt;
 decode.o \&lt;br /&gt;
 fpu.o \&lt;br /&gt;
 ops.o \&lt;br /&gt;
 ops2.o \&lt;br /&gt;
 prim_ops.o \&lt;br /&gt;
 sys.o&lt;br /&gt;
 &lt;br /&gt;
 $(TARGETLIB): $(OBJS)&lt;br /&gt;
         ar rv $(TARGETLIB) $(OBJS)&lt;br /&gt;
 &lt;br /&gt;
        INCS   = -I. -Ix86emu -I../../include&lt;br /&gt;
        CFLAGS += -D__DRIVER__ -DFORCE_POST -D_CEXPORT= -DNO_LONG_LONG -DDEBUG&lt;br /&gt;
        ARCH   := $(shell uname -m | sed -e s,i[3456789]86,i386,)&lt;br /&gt;
        ifeq ($(shell if test &amp;quot;$(ARCH)&amp;quot; == &amp;quot;x86_64&amp;quot; ; then echo 1; fi), 1)&lt;br /&gt;
                CFLAGS +=-m32 -march=i386&lt;br /&gt;
                endif&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 .c.o:&lt;br /&gt;
 #       gcc -m32 -march=i386 -g -O -Wall -c $(CFLAGS) $(INCS) $*.c&lt;br /&gt;
         gcc -g -O -Wall -c $(CFLAGS) $(INCS) $*.c&lt;br /&gt;
 &lt;br /&gt;
 .cpp.o:&lt;br /&gt;
 #       gcc -m32 -march=i386 -c $(CFLAGS) $(INCS) $*.cpp&lt;br /&gt;
         gcc -c $(CFLAGS) $(INCS) $*.cpp &lt;br /&gt;
 &lt;br /&gt;
 clean:&lt;br /&gt;
         rm -f *.a *.o&lt;br /&gt;
 &lt;br /&gt;
 validate:       validate.o libx86emu.a&lt;br /&gt;
         gcc -o validate validate.o -lx86emu -L.&lt;br /&gt;
 &lt;br /&gt;
End ~vgabios/x86emu/src/x86emu/makefile.linux&lt;br /&gt;
&lt;br /&gt;
* Once built you could have a 32bit testbios executable made. Depending on your embedded environment you might want to have it built shared as the above example makes it static.  Just remove -static-libgcc -static from the LDFLAGS on ./Makefile if you wish to have it built shared.&lt;br /&gt;
&lt;br /&gt;
===== How to retrieve a good video bios =====&lt;br /&gt;
There are sites that have video bios roms on their website. (I know of this one for nvidia cards: [http://whitebunny.demon.nl/hardware/chipset_nvidia.html])&lt;br /&gt;
&lt;br /&gt;
However you should be able to retrieve your own video bios as well with linux.&lt;br /&gt;
* Boot up a machine with a commercial bios (not linux bios) with the video card you wish to work under linux bios.&lt;br /&gt;
** From the command line enter:&amp;lt;br /&amp;gt;&amp;lt;code&amp;gt;dd if=/dev/mem of=vgabios.bin skip=1536 count=128 or &amp;lt;br /&amp;gt;dd if=/dev/mem of=vgabios.bin bs=1k count=64 skip=786432&amp;lt;br /&amp;gt;This assumes you card's bios is cached in 0xc0000.  You&amp;lt;br /&amp;gt;can see where and how much your card's bios is using by&amp;lt;br /&amp;gt;doing a cat iomem | grep &amp;quot;Video ROM&amp;quot;&amp;lt;br /&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
*** dd Explained (man dd to learn more):&lt;br /&gt;
****  if is the location to retrieve from.&lt;br /&gt;
****  of is the output file (your rom image)&lt;br /&gt;
****  skip jumps n blocks where the default n is 512 bytes&lt;br /&gt;
****  count is how many blocks you wish to read&lt;br /&gt;
****  bs is the block size&lt;br /&gt;
** You now have a video bios image&lt;br /&gt;
&lt;br /&gt;
===== How to use testbios =====&lt;br /&gt;
* Currently testbios only works from user space linux (10/4/04)&lt;br /&gt;
* Example from a linux command line or script enter the following to get your video bios programmed:&amp;lt;br /&amp;gt;&amp;lt;code&amp;gt;./testbios -s 65536 --abseg /dev/mem ./vgabios.bin&amp;lt;/code&amp;gt;&lt;br /&gt;
** Testbios explained&lt;br /&gt;
***  -s  how much of the video bios is there&lt;br /&gt;
***  --abseg where would you like to write this (/dev/mem default)&lt;br /&gt;
***  filename of video bios&lt;br /&gt;
***  -d diag mode &lt;br /&gt;
****  How to get pci busdevfn&lt;br /&gt;
****  lspci&lt;br /&gt;
****  look for your video card&lt;br /&gt;
***** Example:&amp;lt;br /&amp;gt;&amp;lt;code&amp;gt;2:00:00&amp;lt;br /&amp;gt;2 (00 &amp;lt;&amp;lt; 3) | 00 = 0x200&amp;lt;/code&amp;gt;&lt;br /&gt;
***** Example:&amp;lt;br /&amp;gt;&amp;lt;code&amp;gt;00:12.0:&amp;lt;br /&amp;gt;0 (12 &amp;lt;&amp;lt; 3) | 0 = 0x90&amp;lt;/code&amp;gt;&lt;br /&gt;
*** -t dump &lt;br /&gt;
*** -c codesegment Where do you want to start, default is 0xc0000&lt;br /&gt;
*** -b base  Where do you want base to be default is 0xc000&lt;br /&gt;
*** -i instruction pointer usually left off as the default&lt;br /&gt;
&lt;br /&gt;
==== Followup to Testbios FAQ ====&lt;br /&gt;
 -----Original Message-----&lt;br /&gt;
 From: linuxbios-admin@clustermatic.org&lt;br /&gt;
 [mailto:linuxbios-admin@clustermatic.org] On Behalf Of Dave Aubin&lt;br /&gt;
 Sent: Tuesday, October 05, 2004 2:22 PM&lt;br /&gt;
 To: Richard Smith&lt;br /&gt;
 Cc: linuxbios@clustermatic.org&lt;br /&gt;
 Subject: RE: Testbios help with nvidia 6800Gt and simple how to&lt;br /&gt;
 &lt;br /&gt;
 Hi,&lt;br /&gt;
 &lt;br /&gt;
 Thank you:)  Yes, it was at 0xc0000-0xc7fff, which is only 32k.&lt;br /&gt;
 But the image I got from the windows tool was 64k (double 8000).&lt;br /&gt;
 Weird.  I would like to stay away from window tools.&lt;br /&gt;
 The info you provided is nice.  I wish there was a way for us To make&lt;br /&gt;
 a faq and we could add this to the testbios faq.  There Is a lot of good&lt;br /&gt;
 info on the clustermatic list, but it is all Dispersed.  &lt;br /&gt;
 Ron if I write a simple faq can you provide some mechanism to Allow&lt;br /&gt;
 updates to it?&lt;br /&gt;
 &lt;br /&gt;
 Thanks,&lt;br /&gt;
 Dave &lt;br /&gt;
 &lt;br /&gt;
 -----Original Message-----&lt;br /&gt;
 From: Richard Smith [mailto:rsmith@bitworks.com]&lt;br /&gt;
 Sent: Tuesday, October 05, 2004 2:16 PM&lt;br /&gt;
 To: Dave Aubin&lt;br /&gt;
 Cc: linuxbios@clustermatic.org&lt;br /&gt;
 Subject: Re: Testbios help with nvidia 6800Gt and simple how to&lt;br /&gt;
 &lt;br /&gt;
 Dave Aubin wrote:&lt;br /&gt;
 &lt;br /&gt;
 &amp;gt; It seems my dd returned an unusable binary.  I found a good binary for&lt;br /&gt;
 &lt;br /&gt;
 &amp;gt; The nvidia card from here:&lt;br /&gt;
 &amp;gt; http://whitebunny.demon.nl/hardware/chipset_nvidia.html&lt;br /&gt;
 &amp;gt; &lt;br /&gt;
 &lt;br /&gt;
 I was wondering about your dd command that but I had not had a chance to&lt;br /&gt;
 respond yet.&lt;br /&gt;
 &lt;br /&gt;
 This is what I use:&lt;br /&gt;
 &lt;br /&gt;
 dd if=/dev/mem of=vbios.bin bs=1k count=64 skip=786432&lt;br /&gt;
 &lt;br /&gt;
 That will rip the bios from 0x0c0000.  You can verify that you actually&lt;br /&gt;
 have bios there with&lt;br /&gt;
 &lt;br /&gt;
   'hd -s 0x0c0000 -n 256 /dev/mem'&lt;br /&gt;
 &lt;br /&gt;
 in some cases it may be located at 0x0e0000 rather than 0x0c0000.&lt;br /&gt;
 &lt;br /&gt;
 It should start with the 0x55aa (Little endian) or 0xaa55 (big endian)&lt;br /&gt;
 and futher on you should see some text identifying the bios.&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 --&lt;br /&gt;
 Richard A. Smith&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 _______________________________________________&lt;br /&gt;
 Linuxbios mailing list&lt;br /&gt;
 Linuxbios@clustermatic.org&lt;br /&gt;
 http://www.clustermatic.org/mailman/listinfo/linuxbios&lt;/div&gt;</summary>
		<author><name>Jcarr</name></author>	</entry>

	<entry>
		<id>http://www.coreboot.org/FAQ</id>
		<title>FAQ</title>
		<link rel="alternate" type="text/html" href="http://www.coreboot.org/FAQ"/>
				<updated>2005-09-15T02:03:39Z</updated>
		
		<summary type="html">&lt;p&gt;Jcarr: /* What kind of hardware tools do I need? */ added links for eprom emulators&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== General ==&lt;br /&gt;
&lt;br /&gt;
=== What is LinuxBIOS? ===&lt;br /&gt;
&lt;br /&gt;
LinuxBIOS aims to replace the normal BIOS found on PCs, Alphas, and other machines with a Linux kernel that can boot Linux from a cold start. LinuxBIOS is primarily Linux - about 10 lines of patches to the current Linux kernel. Additionally, the startup code - about 500 lines of assembly and 5000 lines of C - executes 16 instructions to get into 32-bit mode and then performs DRAM and other hardware initialization required before Linux can take over. &lt;br /&gt;
&lt;br /&gt;
Our primary motivation for the project was maintenance of large clusters, but not surprisingly interest and contributions have come from people with varying backgrounds. &lt;br /&gt;
&lt;br /&gt;
=== Why do we need LinuxBIOS? ===&lt;br /&gt;
&lt;br /&gt;
Current PCs used as cluster nodes depend on a vendor-supplied BIOS for booting. The BIOS in turn relies on inherently unreliable devices such as floppy disks and hard drives to boot the operating system. In addition, current BIOS software is unable to accommodate non-standard hardware making it difficult to support experimental work. The BIOS is slow and often erroneous and redundant and, most importantly, maintenance is a nightmare. Imagine walking around with a keyboard and monitor to every one of the 128 nodes in a cluster to change one BIOS setting. &lt;br /&gt;
&lt;br /&gt;
The LinuxBIOS gunzip's the Linux kernel straight out of NVRAM and essentially requires no moving parts other than the fan. It does a minimal amount of hardware initialization before jumping to the kernel start and lets Linux do the rest. As a result, it is much faster (current record 3 seconds), which has sparked interest in the consumer electronics community as well. Moreover, updates can be performed over the network. &lt;br /&gt;
&lt;br /&gt;
Using a real operating system to boot another operating system provides much greater flexibility than using a simple netboot program or the BIOS. Because Linux is the boot mechanism, it can boot over standard Ethernet or over other interconnects such as Myrinet, Quadrics, or SCI. It can use SSH connections to load the kernel, or it can use the InterMezzo caching file system or traditional NFS. Cluster nodes can be as simple as they need to be - perhaps as simple as a CPU and memory, no disk, no floppy, and no file system. The nodes will be much less autonomous thus making them easier to maintain. &lt;br /&gt;
&lt;br /&gt;
=== Who is working on LinuxBIOS? ===&lt;br /&gt;
&lt;br /&gt;
The LinuxBIOS project was started in the winter of 1999 in the Advanced Computing Laboratory at Los Alamos National Laboratory by Ron Minnich. Two undergraduate students, James Hendricks and Dale Webster spent their winter vacation putting together the proof of concept implementation. &lt;br /&gt;
&lt;br /&gt;
Since then, a long list of people have contributed both in discussions and actual code. See our contributors page for details. Please don't be shy and let us know if you are missing from the list. It's not a purposeful omission, just an unfortunate mistake. &lt;br /&gt;
&lt;br /&gt;
=== Who is funding LinuxBIOS? ===&lt;br /&gt;
&lt;br /&gt;
The LinuxBIOS project is funded by the Los Alamos Computer Science Institute and the Department of Energy's Office of Science. &lt;br /&gt;
&lt;br /&gt;
=== Will LinuxBIOS work on my machine? ===&lt;br /&gt;
&lt;br /&gt;
See the [[Supported Motherboards]] page for which mainboards are supported.  Also, see the [[Products]] page for a list of vendors selling products running LinuxBIOS.&lt;br /&gt;
&lt;br /&gt;
If the above sources don't help, please send the following to the [[Mailinglist]]:&lt;br /&gt;
&lt;br /&gt;
* Step 1: A very brief description of your system: CPU and mainboard and optionally other important details.&lt;br /&gt;
* Step 2: Linux lspci output for your system, generated by booting Linux via the original BIOS and runnning lspci.&lt;br /&gt;
* Step 3: SuperIO chip on the mainboard (report the model numbers on the actual chip - doesn't appear in the lspci output)&lt;br /&gt;
* Step 4: Type of BIOS device (See the question &amp;quot;How do I identify the BIOS chip on my mainboard?&amp;quot; below.)&lt;br /&gt;
* Step 5: URL to the mainboard specifications page (optional)&lt;br /&gt;
* Step 6: Any other relevant information you can provide&lt;br /&gt;
&lt;br /&gt;
If you can't do step 1 above, please describe (as best you can) the specific CPU chip and the chipset used on the mainboard.&lt;br /&gt;
&lt;br /&gt;
Usually in less than a day, someone will respond on the LinuxBIOS mailing list saying your mainboard is supported in the main LinuxBIOS source tree, it is currently in development, it is not yet supported or the manufacturer will not release information needed to provide LinuxBIOS support.  In the latter case, please let the manufacturer know that you want LinuxBIOS support and his failure to release chipset informtion is making that very difficult.&lt;br /&gt;
&lt;br /&gt;
=== What commercial products use LinuxBIOS? ===&lt;br /&gt;
&lt;br /&gt;
See the [[products]] page.&lt;br /&gt;
&lt;br /&gt;
=== Which different operating systems will LinuxBIOS boot? ===&lt;br /&gt;
&lt;br /&gt;
Linux (of course)&lt;br /&gt;
&lt;br /&gt;
Plan 9&lt;br /&gt;
&lt;br /&gt;
Windows 2000 (via [[ADLO]])&lt;br /&gt;
&lt;br /&gt;
We have look at some of the BSD OSes but (e.g.) FreeBSD makes BIOS calls, and we don't support&lt;br /&gt;
BIOS calls. Possibly ADLO could be used to support FreeBSD, but the right thing to do is remove&lt;br /&gt;
FreeBSD's dependence on BIOS calls.&lt;br /&gt;
&lt;br /&gt;
=== How can I help with LinuxBIOS? ===&lt;br /&gt;
&lt;br /&gt;
Contact [[User:Rminnich|Ron Minnich]] for projects related to LinuxBIOS.&lt;br /&gt;
&lt;br /&gt;
== Developer ==&lt;br /&gt;
&lt;br /&gt;
=== What kind of hardware tools do I need? ===&lt;br /&gt;
&lt;br /&gt;
A motherboard (or mainboard as LinuxBIOS calls it) that has a supported chipset on it.  Ok.. Well not exactly.  As long as you have the documentation for the chipset/mainboard and it's free of any NDA issues you can use an unsupported chipset/mainboard, but you have a twisty road ahead of you.&lt;br /&gt;
	&lt;br /&gt;
And of course you need a Linux development machine.  The LinuxBIOS build environment is not supported on Windows.  It may be possible to do it under cygwin but nobody has tried.&lt;br /&gt;
		&lt;br /&gt;
It's also handy to have one/some/all of the following:&lt;br /&gt;
	&lt;br /&gt;
- EPROM/Flash programmer that can program the flash on your motherboard.&lt;br /&gt;
  [http://www.mcumall.com/ Willem Universal EPROM Programmer] -- DOS/Windows only (work has started on Linux drivers) ~$50&lt;br /&gt;
  [http://www.conitec.net/english/software.htm GALEP-4] -- Has beta linux drivers ~$300&lt;br /&gt;
- ROM emulator&lt;br /&gt;
- Bios Savior &lt;br /&gt;
  http://www.ioss.com.tw/web/English/RD1BIOSSavior.html&lt;br /&gt;
  http://www.cwlinux.com/eng/products/products_lbmb.php&lt;br /&gt;
- POST card&lt;br /&gt;
  http://siliconkit.dnsalias.com/cart/index.tpcip.html&lt;br /&gt;
  http://www.elstonsystems.com/prod/pc_analyzer.html&lt;br /&gt;
  http://shopv2.elstonsystems.com/product_info.php/products_id/57&lt;br /&gt;
  http://www.uxd.com/trio.html&lt;br /&gt;
  http://www.soyousa.com/products/proddesc.php?id=261&lt;br /&gt;
- Compact Flash IDE adaptor  &lt;br /&gt;
  http://siliconkit.dnsalias.com/cart/index.tcfdp.html&lt;br /&gt;
  http://www.cwlinux.com/eng/products/products_ide2cf.php&lt;br /&gt;
  http://www.mini-box.com/s.nl/sc.8/category.14/.f&lt;br /&gt;
  http://www.acscontrol.com/Index_ACS.asp?Page=/Pages/Products/CompactFlash/IDE_To_CF_Adapter.htm&lt;br /&gt;
- Oscilliscope&lt;br /&gt;
- In Circuit Emulator hardware debugger&lt;br /&gt;
- LinuxBIOS SDK&lt;br /&gt;
  http://www.cwlinux.com/eng/products/products_sdk.php&lt;br /&gt;
- In Circuit chip programmer -- should allow you to program your BIOS even if it is soldered to the motherboard.&lt;br /&gt;
  http://www.xeltek.com/pages.php?pageid=8&lt;br /&gt;
- eprom emulators -- these hardware devices pretend to be an eprom chip&lt;br /&gt;
  http://www.tech-tools.com/romtools.htm&lt;br /&gt;
  http://xtronics.com/memory/pktROM.htm&lt;br /&gt;
  http://www.linuxselfhelp.com/HOWTO/Diskless-HOWTO-10.html (a larger list -- maybe outdated)&lt;br /&gt;
&lt;br /&gt;
=== What documentation do I need? ===&lt;br /&gt;
&lt;br /&gt;
As much as you can possibly get your hands on.  Minimum you need the docs for your chipset.  Without chipset docs you are basically lost.  &lt;br /&gt;
	&lt;br /&gt;
There have been some reports of people making things work by booting with the BIOS that comes with the board.  Dumping the PCI config registers and then making LinuxBIOS match those registers.  But since sometimes you have to set different bits in a given register at different times so that intermediate info will be lost.  Getting a mainboard up with out chipset docs can be a very long and involved process.&lt;br /&gt;
&lt;br /&gt;
=== What if my chipset docs are covered by an NDA? ===&lt;br /&gt;
&lt;br /&gt;
If the documentation for your chipset covered by and NDA with no source release agreement you won't be able to release your code back to to the LinuxBIOS project in general or you will violate the GPL.&lt;br /&gt;
Many vendors accept releasing the source code produced after reading such specs while they don't allow the specs themselves to be revealed. Also, you can offer them to review the code before releasing it.&lt;br /&gt;
&lt;br /&gt;
=== Where is the mailing list archived? ===&lt;br /&gt;
&lt;br /&gt;
The official LinuxBIOS mailing list archive is:&lt;br /&gt;
&lt;br /&gt;
http://www.linuxbios.org/pipermail/linuxbios/&lt;br /&gt;
&lt;br /&gt;
The best archive out there is at the University of Maryland. &lt;br /&gt;
&lt;br /&gt;
http://www.mail-archive.com/linuxbios@clustermatic.org/&lt;br /&gt;
&lt;br /&gt;
In addition, we've pieced together an archive that dates back to about the beginning of 2000 (including messages that were going to the freebios and openbios mailing lists).&lt;br /&gt;
&lt;br /&gt;
=== Where do I get the code? ===&lt;br /&gt;
&lt;br /&gt;
See the [[Download_freebios_v2|download page]].&lt;br /&gt;
&lt;br /&gt;
=== How do I build? ===&lt;br /&gt;
&lt;br /&gt;
See the documentation. For help generating a config file, see Generate a config file. (jdarby: this needs to be wikiized)&lt;br /&gt;
&lt;br /&gt;
=== Why is the code so complicated and what can I do to make it easier? ===&lt;br /&gt;
&lt;br /&gt;
The reason is the complexity of the problem. We support a lot of hardware, and a given chip on a given board will most likely not be configured quite the same as the same chip on some other board. &lt;br /&gt;
&lt;br /&gt;
To help make code navigation easier, pick a target and build that target. Then, in the build directory, type make tags or make etags to get your favorite tags file. &lt;br /&gt;
&lt;br /&gt;
=== What chipsets are supported? ===&lt;br /&gt;
&lt;br /&gt;
See the [[Supported Chipsets &amp;amp; Devices]] page&lt;br /&gt;
&lt;br /&gt;
=== How can I tell if my motherboard is supported by LinuxBIOS? ===&lt;br /&gt;
&lt;br /&gt;
There are 2 methods:&lt;br /&gt;
&lt;br /&gt;
1) Check [[Supported Motherboards]]&lt;br /&gt;
&lt;br /&gt;
If you don't see your chipset/Mainboard listed there then boot linux on your target and send the output of 'lspci -vvv' to the linuxBIOS list asking if this chipset is supported.&lt;br /&gt;
&lt;br /&gt;
2) &amp;quot;Use the source Luke&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Check out the latest copy of LinuxBIOS from CVS [[Download freebios v2]] and look in the freebios2/src/mainboard directory. (The LinuxBios module is called 'freebios2' in CVS for legacy reasons) There are directories for each manufacturer of mainboards that LinuxBIOS supports.  Below the manufacturer directory is a directory for each mainboard or family of&lt;br /&gt;
mainboard.  If a directory for your mainboad dosen't exist then theres a good chance LinuxBIOS dosen't support your mainboard out-of-the-box.  Posting to the list would probally be the next option.  See 'the lspci -vvv' in the earlier part of the question.&lt;br /&gt;
	&lt;br /&gt;
If the directory does exist then it still dosen't mean 100% the mainboard will work but at least it probally worked at one time.  Posting to the list will probally get you the latest info for that mainboard.&lt;br /&gt;
&lt;br /&gt;
=== What is this POST card thing? ===&lt;br /&gt;
&lt;br /&gt;
A POST card will save your life. The term POST means Power On Self Test and comes from the original IBM specifications for the BIOS. Port 80 is a pre-defined port to which programs can output a byte. The POST card displays the byte in hex on its 2 digit display. We use a lot of POST codes in LinuxBIOS, so if you can tell us the POST code you see, we will have some idea of what happened. &lt;br /&gt;
&lt;br /&gt;
If your LinuxBIOS machine is working properly, you will see it count up from 0xd0 to 0xd9 (while it is gunzipping the kernel) and then display 0x98 (Linux idle loop).&lt;br /&gt;
&lt;br /&gt;
PCI POST cards can be found in various places. &lt;br /&gt;
[http://www.linuxbios.org/index.php/FAQ#Developer POST Cards]&lt;br /&gt;
&lt;br /&gt;
=== How do I contribute my changes? ===&lt;br /&gt;
&lt;br /&gt;
Any one without commit privileges (which is most of you) need to get changes approved by Ron Minnich. &lt;br /&gt;
&lt;br /&gt;
=== How do I identify the BIOS chip on my mainboard? ===&lt;br /&gt;
&lt;br /&gt;
Modern mainboards store the BIOS in a reprogrammable flash ROM chip. There are hundreds of different flash ROMs, with variables such as memory size, speed, communication bus (LPC vs. ISA/PCI) and packaging to name just a few. The three most common packages are called DIP, PLCC and TSOP. The BIOS copyright holders often place a fancy sticker on the BIOS chip showing a name or logotype, BIOS version, serial number and copyright notice.&lt;br /&gt;
&lt;br /&gt;
[http://www.oricomtech.com/sub2/oopic2p.gif DIP chip with sticker]&amp;lt;br&amp;gt;&lt;br /&gt;
DIP: Dual In-line Package&amp;lt;br&amp;gt;&lt;br /&gt;
A rectangular black plastic block with lots of pins along the two longer sides of the package. DIP ROMs can be socketed which means they are detachable from the mainboard using physical force. Since they haven't been moved in and out of the socket very much (yet, hehe) they can appear to be quite difficult to release from the socket. One way to remove a DIP from a socket is by prying a thin screwdriver in between the plastic package and the socket, along the shorter sides where there are no pins, and then gently bending the screwdriver to push the DIP upwards, away from the mainboard. Alternate between the two sides to avoid bending the pins, and don't touch any of the pins with the screwdriver, see FAQ about ESD, electro-static discharge. If the DIP is soldered directly to the mainboard, it has to be desoldered in order to be reprogrammed outside the mainboard. If you do this, it's a good idea to solder a socket to the mainboard instead, to ease any future experiments.&lt;br /&gt;
&lt;br /&gt;
[http://www.rojakpot.com/article/Hot_Flash_Guide/BIOS_chips.jpg PLCC chips with and without sticker]&amp;lt;br&amp;gt;&lt;br /&gt;
PLCC: Plastic Leaded Chip Carrier&amp;lt;br&amp;gt;&lt;br /&gt;
Black plastic block again, but this one is much more square. PLCC is becoming the standard for mainboards because of it's smaller physical size. PLCC can also be socketed or soldered directly to the mainboard. Socketed PLCC chips can be removed using a special PLCC removal tool, or using a piece of nylon line tied in a loop around the chip and pulled swiftly straight up, or bending/prying using small screwdrivers if one is careful. PLCC sockets are often fragile so the screwdriver approach is not recommended. While the nylon line method sounds onorthodox it works well. Desoldering PLCC can be painful without specialized desoldering equipment particularly because PLCC chips have leads on all four sides of the package.&lt;br /&gt;
&lt;br /&gt;
[http://www.isipkg.com/images/adp_tsop_dip.jpg TSOP chip on a TSOP-&amp;gt;DIP adapter]&amp;lt;br&amp;gt;&lt;br /&gt;
TSOP: Thin Small-Outline Package&amp;lt;br&amp;gt;&lt;br /&gt;
TSOPs are often used in embedded systems where size is important and there is no need for replacement in the field. It is possible to (de)solder TSOPs by hand, but it comes close to wizardry.&lt;br /&gt;
&lt;br /&gt;
=== How do I (re-)flash the BIOS? ===&lt;br /&gt;
&lt;br /&gt;
==== Out of mainboard BIOS (re)flash ====&lt;br /&gt;
&lt;br /&gt;
If the BIOS chip is socketed, it can be removed and flashed in a rom/flash burner and quickly re-installed.  Some of these burners cost $1000 and more plus they complete a flash in 1-2 minutes, but if you are willing to wait 5 minutes for a flash and manually set DIP switches, The Enhanced Willem Universal Programmer will do the job for only $40-60 USD.  There are several models of the Willem Programmer, each supporting many chips, but not all, so be sure to get one that supports your BIOS chip.  If your chip is PLCC, you will also need a PLCC chip extractor/puller or just thread nylon string under the PLCC chip from corner to corner and yank up it straight up.&lt;br /&gt;
&lt;br /&gt;
==== Inside mainboard BIOS (re)flash ====&lt;br /&gt;
&lt;br /&gt;
Download the appropriate flash update utility. Build the romimage 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. For example, Intel decided to disallow it for the MS440GX mainboard (probably after hearing about us!) Here are some mainboard specific directions: &lt;br /&gt;
&lt;br /&gt;
===== General =====&lt;br /&gt;
LinuxBIOS v2 contains a flash utility called &amp;quot;flash_rom&amp;quot;. It can be found at freebios2/util/flash_and_burn.&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
 bash# ./flash_rom&lt;br /&gt;
 Calibrating timer since microsleep sucks ... takes a second&lt;br /&gt;
 Setting up microsecond timing loop&lt;br /&gt;
 515M loops per second&lt;br /&gt;
 OK, calibrated, now do the deed&lt;br /&gt;
 Enabling flash write on AMD8111...OK&lt;br /&gt;
 Trying Am29F040B, 512 KB&lt;br /&gt;
 probe_29f040b: id1 0x4e, id2 0x41&lt;br /&gt;
 Trying At29C040A, 512 KB&lt;br /&gt;
 probe_jedec: id1 0xbf, id2 0x51&lt;br /&gt;
 Trying Mx29f002, 256 KB&lt;br /&gt;
 probe_29f002: id1 0xbf, id2 0x51&lt;br /&gt;
 Trying SST29EE020A, 256 KB&lt;br /&gt;
 probe_jedec: id1 0xbf, id2 0x51&lt;br /&gt;
 Trying SST28SF040A, 512 KB&lt;br /&gt;
 probe_28sf040: id1 0x4e, id2 0x41&lt;br /&gt;
 Trying SST39SF020A, 256 KB&lt;br /&gt;
 probe_jedec: id1 0xbf, id2 0x51&lt;br /&gt;
 Trying SST39VF020, 256 KB&lt;br /&gt;
 probe_jedec: id1 0xbf, id2 0x51&lt;br /&gt;
 Trying SST49LF040, 512 KB&lt;br /&gt;
 probe_jedec: id1 0xbf, id2 0x51&lt;br /&gt;
 SST49LF040 found at physical address: 0xfff80000&lt;br /&gt;
 Part is SST49LF040&lt;br /&gt;
 OK, only ENABLING flash write, but NOT FLASHING&lt;br /&gt;
 bash# flash_rom --help&lt;br /&gt;
 usage: ./flash_rom [-rwv] [-c chipname] [-s exclude_start] [-e exclude_end] [file]&lt;br /&gt;
  -r: read flash and save into file&lt;br /&gt;
  -w: write file into flash (default when file is specified)&lt;br /&gt;
  -v: verify flash against file&lt;br /&gt;
  -c: probe only for specified flash chip&lt;br /&gt;
  -s: exclude start position&lt;br /&gt;
  -e: exclude end postion&lt;br /&gt;
   If no file is specified, then all that happens&lt;br /&gt;
   is that flash info is dumped&lt;br /&gt;
&lt;br /&gt;
Besides that, OpenBIOS contains a flash driver called [http://www.openbios.org/development/devbios.html /dev/bios] which may support some systems and flash chips unsupported by flash_rom.&lt;br /&gt;
 &lt;br /&gt;
===== SiS 630/950 M/Bs =====&lt;br /&gt;
Ollie Lho provided us with flash utilities for these boards under freebios/util/sis. &lt;br /&gt;
flash_on turns on the flash write enable. This needs to be run before loading the DoC drivers. &lt;br /&gt;
flash_rom allows you to use your SiS 630/950 M/Bs as a flash programmer. It currently supports JEDEC flash parts, AMD am29f040b models, MXIC MX29F002 models, and SST28SF040C models. &lt;br /&gt;
&lt;br /&gt;
===== Intel L440GX =====&lt;br /&gt;
Get the System Update Package directly from Intel. mcopy the ten files created from running make phlash onto the Intel flash burner disk and use the update utility to burn the BIOS. To restore the original BIOS, set the recovery boot jumper on the motherboard, put the floppy in, and it will load and reflash the original BIOS. &lt;br /&gt;
How do I actually burn a flash ROM? &lt;br /&gt;
&lt;br /&gt;
Buy your favorite flash burner (we use a Needham Electronics EMP 30). Use make floppy to create the romimage and copy it to a floppy. Then use the provided software to burn the flash.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===== BIOS Saver RD1 =====&lt;br /&gt;
&lt;br /&gt;
[http://www.ioss.com.tw/web/English/RD1BIOSSavior.html BIOS Saver RD1]&lt;br /&gt;
&lt;br /&gt;
There are some posts about the BIOS Saver RD1 that suggest its integrated flash device is of low quality, and it may take 10 or more flash programming attempts to get a good  update to the RD1 flash device. As a result, the following steps have proven to be successful while using the RD1:&lt;br /&gt;
&lt;br /&gt;
* Step 1 - While the system is powered down remove the original BIOS device from the mainboard and insert it into the RD1's socket.&lt;br /&gt;
&lt;br /&gt;
* Step 2 - Insert the RD1 into the mainboard's flash BIOS socket.&lt;br /&gt;
&lt;br /&gt;
* Step 3 - Boot the system with the RD1 set to boot from the original flash device from the mainboard.&lt;br /&gt;
&lt;br /&gt;
* Step 4 - Program the original BIOS image (or other known good BIOS image) into the RD1's integrated flash device for as many times as needed until the device is properly programmed and the system boots corectly from the RD1's integrated flash device. Be sure to check the settings on the RD1 so that the proper flash device is now being programmed. If the RD1 is not set correctly the working BIOS image will be erased and the system may not boot!&lt;br /&gt;
&lt;br /&gt;
* Step 5 - Program the test BIOS image (usually LinuxBIOS images are among this group) into the original flash device from the mainboard. The original BIOS device usually programs OK on the first attempt. Be sure to check the settings again on the RD1 so that the proper flash device is now being programmed!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The RD1 has been used in the above fashion with great success on the Tyan S2885 mainboard. Unfortunately the RD1 does not work on the nVidia CK8-04 CRB mainboard. The CK8-04 CRB may require a flash device that the RD1 does not support. &lt;br /&gt;
&lt;br /&gt;
The RD1 has worked well as a &amp;quot;do nothing&amp;quot; adapter that allows swapping the BIOS flash device between a flash burner and a mainboard without any wear to the mainboard's BIOS socket.&lt;br /&gt;
&lt;br /&gt;
=== How do I burn a DoC? ===&lt;br /&gt;
&lt;br /&gt;
Currently, only the DoC Millennium is supported. See the documentation. &lt;br /&gt;
&lt;br /&gt;
=== Can I do any serious damage mucking around with this stuff? ===&lt;br /&gt;
&lt;br /&gt;
Any time you stick your hand into an open machine while the power is on, you're risking life and limb. That said, there are also some other not-so-nice things that can happen if you mess up (not that we would know). &lt;br /&gt;
&lt;br /&gt;
* Incorrect insertion of the flash (1 casualty) &lt;br /&gt;
* Incorrect jumper settings (1 casualty) &lt;br /&gt;
* Aggressive and/or inappropriate use of metal objects such as screwdrivers (2 casualties) &lt;br /&gt;
* Miscellaneous miswirings and mishandlings (3+ casualties)&lt;br /&gt;
&lt;br /&gt;
=== A note on electrostatic discharge (ESD) and ESD protection (thanks to Bari Ari) ===&lt;br /&gt;
&lt;br /&gt;
ESD can damage disk drives, boards, DoC's and other parts. The majority of the time, ESD events cause the component to degrade, but not fail testing procedures, resulting in failure at a later date. Because components do not fail immediately, technicians often underestimate the cost of not using ESD prevention measures. Provide at minimum some ESD protection by wearing an antistatic wrist strap attached to the chassis ground on your system when handling parts. &lt;br /&gt;
&lt;br /&gt;
Always handle boards carefully. They can be extremely sensitive to ESD. Hold boards only by their edges. After removing a board from its protective wrapper or from the system, place it component side up on a grounded, static free surface. Use a conductive foam pad if available. Do not slide the board over any surface. &lt;br /&gt;
&lt;br /&gt;
To further reduce the chances of ESD, you should create an ESD safe workstation that includes at minimum: &lt;br /&gt;
&lt;br /&gt;
* Conductive rubber mat, with a lead wire that can be connected to a metal surface to create a ground. &lt;br /&gt;
&lt;br /&gt;
* ESD wrist strap, which has a resistor inside the strap and a lead wire that can be connected to a metal surface as a ground. The grounding wire on the wrist strap should have between 1 and 10 Megaohms of resistance. The resistor should protect you in case you come in contact with a voltage source. If the resistor is bad or not included, the wrist strap is useless. An accidental shock could be serious and even deadly! &lt;br /&gt;
&lt;br /&gt;
* Table or workspace that is clean, clear of dust, and away from electrical machinery or other equipment that generates electrical currents. &lt;br /&gt;
&lt;br /&gt;
The idea is to ensure that all components you are going to interact with have the same charge. By connecting everything to the computer case, you ensure that the components of the case, the chair, and your body all have the same charge. If every object has the same charge, the electrons will not jump from one object to another minimizing the risk of ESD damage. &lt;br /&gt;
&lt;br /&gt;
=== How do I put a filesystem on DoC? ===&lt;br /&gt;
OK, here is a little HOWTO on how to set up MTD with a file system. &lt;br /&gt;
&lt;br /&gt;
This is a m810lmr, booting out of DoC. I am going to reserve the first 2M for kernel. So the layout will be the first 2M for linuxbios and kernel, and 6M for a file system. Kernel is 2.4.17, with linux-2.4.17-sis.patch from linuxbios source tree, and config-2.4.17-sis from the linuxbios source tree. Mainboard is the pcchips m810lmr. &lt;br /&gt;
&lt;br /&gt;
So I: &lt;br /&gt;
 modprobe doc2001 &lt;br /&gt;
 modprobe docprobe &lt;br /&gt;
 dmesg &lt;br /&gt;
&lt;br /&gt;
which shows: &lt;br /&gt;
&lt;br /&gt;
 DiskOnChip Millennium found at address 0xFFFC8000 &lt;br /&gt;
 Flash chip found: Manufacturer ID: 98, Chip ID: E6 (Toshiba TC58V64AFT/DC) &lt;br /&gt;
 1 flash chips found. Total DiskOnChip size: 8 MiB &lt;br /&gt;
 mtd: Giving out device 0 to DiskOnChip Millennium &lt;br /&gt;
 Ignoring DiskOnChip Millennium at 0xFFFCA000 - already configured &lt;br /&gt;
 Ignoring DiskOnChip Millennium at 0xFFFCC000 - already configured &lt;br /&gt;
 Ignoring DiskOnChip Millennium at 0xFFFCE000 - already configured &lt;br /&gt;
 Ignoring DiskOnChip Millennium at 0xFFFD0000 - already configured &lt;br /&gt;
 Ignoring DiskOnChip Millennium at 0xFFFD2000 - already configured &lt;br /&gt;
 Ignoring DiskOnChip Millennium at 0xFFFD4000 - already configured &lt;br /&gt;
 Ignoring DiskOnChip Millennium at 0xFFFD6000 - already configured &lt;br /&gt;
 (etc..) &lt;br /&gt;
 Now I need MTD utilities. &lt;br /&gt;
 So I: &lt;br /&gt;
 cvs -d :pserver:anoncvs@cvs.infradead.org:/home/cvs login &lt;br /&gt;
 CVS password: &lt;br /&gt;
 &lt;br /&gt;
 (password is anoncvs) &lt;br /&gt;
 Then: &lt;br /&gt;
 cvs -d :pserver:anoncvs@cvs.infradead.org:/home/cvs co mtd &lt;br /&gt;
&lt;br /&gt;
Forget the drivers and such, you don't need them. What you need is the tools. &lt;br /&gt;
 cd mtd/tools &lt;br /&gt;
 make &lt;br /&gt;
&lt;br /&gt;
Go ahead and copy the executables somewhere handy, you'll need them. &lt;br /&gt;
&lt;br /&gt;
Now we need to make the last 6M into a &amp;quot;disk&amp;quot;. We need to format it. The tool is nftl_format, so:&lt;br /&gt;
&lt;br /&gt;
 [root@carly util]# ./nftl_format &lt;br /&gt;
 $Id: nftl_format.c,v 1.17 2001/08/29 14:28:48 dwmw2 Exp $ &lt;br /&gt;
 Usage: ./nftl_format [ []] &lt;br /&gt;
 [root@carly util]# expr 2048 \* 1024 &lt;br /&gt;
 2097152 &lt;br /&gt;
 [root@carly util]# expr 6 \* 1024 \* 1024 &lt;br /&gt;
 6291456 &lt;br /&gt;
 [root@carly util]# ./nftl_format /dev/mtd0 2097152 6291456 &lt;br /&gt;
 $Id: nftl_format.c,v 1.17 2001/08/29 14:28:48 dwmw2 Exp $ &lt;br /&gt;
 Phase 1. Checking and erasing Erase Zones from 0x00200000 to 0x00800000 &lt;br /&gt;
 Phase 2.a Writing NFTL Media Header and Bad Unit Table &lt;br /&gt;
 Phase 2.b Writing Spare NFTL Media Header and Spare Bad Unit Table &lt;br /&gt;
 Phase 3. Writing Unit Control Information to each Erase Unit &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
we now have a formatted disk in there. We can now partition it. &lt;br /&gt;
&lt;br /&gt;
 [root@carly util]# modprobe nftl &lt;br /&gt;
&lt;br /&gt;
dmesg shows LOTS of errors, since this was never partitioned ... &lt;br /&gt;
&lt;br /&gt;
Also, if you don't have /dev/nftla, &lt;br /&gt;
&lt;br /&gt;
 [root@carly util]# mknod /dev/nftla b 93 0 &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Don't use the script just yet, it makes /dev/nftla as b 93 16, which is the wrong unit #. &lt;br /&gt;
&lt;br /&gt;
now fdisk /dev/nftla &lt;br /&gt;
&lt;br /&gt;
 [root@carly util]# fdisk /dev/nftlA &lt;br /&gt;
 Command (m for help): n &lt;br /&gt;
 Command action &lt;br /&gt;
 e extended &lt;br /&gt;
 p primary partition (1-4) &lt;br /&gt;
 p &lt;br /&gt;
 Partition number (1-4): 1 &lt;br /&gt;
 First cylinder (1-1, default 1): &lt;br /&gt;
 Using default value 1 &lt;br /&gt;
 Command (m for help): p &lt;br /&gt;
 Disk /dev/nftlA: 1 heads, 12224 sectors, 1 cylinders &lt;br /&gt;
 Units = cylinders of 12224 * 512 bytes &lt;br /&gt;
 Device Boot Start End Blocks Id System &lt;br /&gt;
 /dev/nftlA1 1 1 6111+ 83 Linux &lt;br /&gt;
 Partition 1 has different physical/logical endings: &lt;br /&gt;
 phys=(768, 0, 0) logical=(0, 0, 12224) &lt;br /&gt;
 Partition 1 does not end on cylinder boundary: &lt;br /&gt;
 phys=(768, 0, 0) should be (768, 0, 12224) &lt;br /&gt;
 Command (m for help): w &lt;br /&gt;
 The partition table has been altered! &lt;br /&gt;
 Calling ioctl() to re-read partition table. &lt;br /&gt;
 WARNING: If you have created or modified any DOS 6.x partitions, please see the fdisk manual page for additional information. &lt;br /&gt;
 Syncing disks. &lt;br /&gt;
 [root@carly util]# mknod /dev/nftlA1 b 93 1 &lt;br /&gt;
 [root@carly util]# mke2fs /dev/nftlA1 &lt;br /&gt;
 mke2fs 1.23, 15-Aug-2001 for EXT2 FS 0.5b, 95/08/09 &lt;br /&gt;
 Filesystem label= &lt;br /&gt;
 OS type: Linux &lt;br /&gt;
 Block size=1024 (log=0) &lt;br /&gt;
 Fragment size=1024 (log=0) &lt;br /&gt;
 1528 inodes, 6111 blocks &lt;br /&gt;
 305 blocks (4.99%) reserved for the super user &lt;br /&gt;
 First data block=1 &lt;br /&gt;
 1 block group &lt;br /&gt;
 8192 blocks per group, 8192 fragments per group &lt;br /&gt;
 1528 inodes per group &lt;br /&gt;
 Writing inode tables: done &lt;br /&gt;
 Writing superblocks and filesystem accounting information: done &lt;br /&gt;
&lt;br /&gt;
This filesystem will be automatically checked every 37 mounts or 180 days, whichever comes first. Use tune2fs -c or -i to override. &lt;br /&gt;
&lt;br /&gt;
 [root@carly util]# mount /dev/nftlA1 /mnt &lt;br /&gt;
 [root@carly util]# cd /mnt &lt;br /&gt;
 [root@carly mnt]# df . &lt;br /&gt;
 Filesystem 1k-blocks Used Available Use% Mounted on &lt;br /&gt;
 /dev/nftlA1 5915 13 5597 1% /mnt &lt;br /&gt;
 [root@carly mnt]# &lt;br /&gt;
&lt;br /&gt;
and so you now have an ext2 file system on the DoC. &lt;br /&gt;
&lt;br /&gt;
(Above is from [[User:Rminnich|Ron Minnich]])&lt;br /&gt;
&lt;br /&gt;
=== How do I turn off embedded sis630 devices? ===&lt;br /&gt;
&lt;br /&gt;
 From aip@cwlinux.com Mon Mar 25 08:54:07 2002 &lt;br /&gt;
 Date: Mon, 25 Mar 2002 22:07:54 +0800 &lt;br /&gt;
 From: Andrew Ip &lt;br /&gt;
 To: Kei Furuuchi &lt;br /&gt;
 Cc: linuxbios@lanl.gov &lt;br /&gt;
 Subject: Re: How to turn off unused pci device. &lt;br /&gt;
 Hi, &lt;br /&gt;
 &amp;gt; I have pcchips m758lmr which has audio chip besides sis630. &lt;br /&gt;
 &amp;gt; those functions in sis630 are not used in the motherboard. &lt;br /&gt;
 &amp;gt; But, the functions keep coming up. How do I turn off those? &lt;br /&gt;
 The following is from Nikolai Valdych previous message. Hope this help. &lt;br /&gt;
 -Andrew &lt;br /&gt;
 -- &lt;br /&gt;
 Andrew Ip &lt;br /&gt;
 Email: aip@cwlinux.com &lt;br /&gt;
 Actualy, it was pretty simple 0x7c00 - All devices enabled, You play with first 4 bits only. Cos there are 4 devices, so you have any combination of 4 bits. &lt;br /&gt;
 Set bit to 1 to turn off the device, bit 0 to enable it. &lt;br /&gt;
 This is the device list: &lt;br /&gt;
 Multimedia Audio controler &lt;br /&gt;
 Modem controler &lt;br /&gt;
 Ethernet sis930 controler &lt;br /&gt;
 USB controler. &lt;br /&gt;
 For example, to turn off Ethernet + USB it would be: &lt;br /&gt;
 0x7c0c -&amp;gt; 1100 in binary (first 4 bits) &lt;br /&gt;
 To turn off Multimedia audio : &lt;br /&gt;
 0x7c01 -&amp;gt; 0001 &lt;br /&gt;
 in binary and so on... maybe there are more detail, but this is enogh for me, Ollie, again thanks! &lt;br /&gt;
 nikolai &lt;br /&gt;
 p.s. though my modem is not yet working..... damn driver...... &lt;br /&gt;
&lt;br /&gt;
=== What is a PIRQ table? ===&lt;br /&gt;
&lt;br /&gt;
 From Adam Sulmicki: &lt;br /&gt;
 &lt;br /&gt;
 I found beautfiul descrition of the BIOS implementation of the PIRQ in the red PCI book.&lt;br /&gt;
 &lt;br /&gt;
 I found the description of the $PIR data structure in the&lt;br /&gt;
        &lt;br /&gt;
  http://www.microsoft.com/whdc/archive/pciirq.mspx&lt;br /&gt;
 &lt;br /&gt;
 looking over linuxbios sources I see that it saves the $PIR data structure&lt;br /&gt;
 somewhere between 0xf0000 &amp;amp; 0x100000.&lt;br /&gt;
 &lt;br /&gt;
 so it seems I'll have to search for $PIR and then save it before copying&lt;br /&gt;
 over our bios. sigh. hoped for some fixed address in mem.&lt;br /&gt;
 &lt;br /&gt;
 -- &lt;br /&gt;
 Adam&lt;br /&gt;
 http://www.eax.com      The Supreme Headquarters of the 32 bit registers&lt;br /&gt;
&lt;br /&gt;
=== How do I set up etherboot with LinuxBIOS? ===&lt;br /&gt;
&lt;br /&gt;
Note from Ron: I have edited this somewhat to remove Geode-specific items. &lt;br /&gt;
&lt;br /&gt;
 Christer Weinigel writes: &lt;br /&gt;
 To: rminnich@lanl.gov&lt;br /&gt;
 Cc: linuxbios@lanl.gov&lt;br /&gt;
 Subject: Re: LinuxBIOS + Etherboot HOWTO?&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 I had some trouble using LinuxBIOS + etherboot... &lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 My bad, I messed up and used mkelfImage-1.6 that I got from ftp.lnxi.com, when I realized that I ought to use the one from freebios/util everything started working. &lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 Here's what I did to get LinuxBIOS + Etherboot loading and booting a Linux kernel using TFTP. &lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
   /Christer &lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 Get etherboot-5.0 from the CVS tree on etherboot.sourceforge.net. &lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 Modify etherboot-5.0/src/Config, comment out: &lt;br /&gt;
 &lt;br /&gt;
    # BIOS select don't change unless you know what you are doing&lt;br /&gt;
    #CFLAGS32+=     -DPCBIOS&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 and uncomment the following: &lt;br /&gt;
 &lt;br /&gt;
    # Options to make a version of Etherboot that will work under linuxBIOS.&lt;br /&gt;
    CFLAGS32+= -DLINUXBIOS -DCONFIG_TSC_CURRTICKS  -DCONSOLE_SERIAL \&lt;br /&gt;
               -DCOMCONSOLE=0x3f8 -DCOMPRESERVE -DCONFIG_PCI_DIRECT -DELF_IMAGE &lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 Compile Etherboot to make an elf file for your ethernet card: &lt;br /&gt;
 &lt;br /&gt;
     make bin32/natsemi.elf&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 Compile and install mkelfImage from freebios/util/mkelfImage. &lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 Create a bootimage to put on your TFTP server: &lt;br /&gt;
 &lt;br /&gt;
    mkelfImage --command-line=&amp;quot;root=/dev/hda2 console=ttyS0,38400&amp;quot; \&lt;br /&gt;
               --kernel vmlinux -o /tftpboot/kernel&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 Finally, make sure that your BOOT/DCHP server is answering and that the TFTP server is active. &lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 Tell LinuxBIOS to boot an elf Image, and tell LinuxBIOS where it is: &lt;br /&gt;
 &lt;br /&gt;
    option USE_ELF_BOOT=1&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 I have placed natsemi.elf in the first 64k of my BIOS flash chip, and LinuxBIOS in the second 64k. &lt;br /&gt;
 &lt;br /&gt;
    insmod bios.o&lt;br /&gt;
    dd if=natsemi.elf of=/dev/bios bs=64k&lt;br /&gt;
    dd if=linuxbios.rom of=/dev/bios bs=64k seek=1&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 Finally boot LinuxBIOS. &lt;br /&gt;
 &lt;br /&gt;
=== How do I set GEODE video? ===&lt;br /&gt;
&lt;br /&gt;
 From christer@weinigel.se Wed Nov 27 07:47:17 2002&lt;br /&gt;
 Date: 27 Nov 2002 10:55:01 +0100&lt;br /&gt;
 From: Christer Weinigel &lt;br /&gt;
 To: Adam Bezanson &lt;br /&gt;
 Cc: linuxbios@clustermatic.org&lt;br /&gt;
 Subject: Re: Geode Kernel Config &lt;br /&gt;
 &lt;br /&gt;
 &amp;quot;Adam Bezanson&amp;quot;  writes:&lt;br /&gt;
 &lt;br /&gt;
 &amp;gt; I've got an Eval card from National Semi that contains&lt;br /&gt;
 &amp;gt; the SC1200. I'd like to try LinuxBios on it.&lt;br /&gt;
 &amp;gt; I've downloaded both the 2.4.18 and 2.4.19 kernels to start with.&lt;br /&gt;
 &amp;gt; What patches do I need to apply to the kernel?&lt;br /&gt;
 &amp;gt; Is there a config file I can use to configure the kernel, or&lt;br /&gt;
 &amp;gt; should I do it manually? &lt;br /&gt;
 &lt;br /&gt;
 A normal 2.4 Linux kernel will work fine as long as you compile for a&lt;br /&gt;
 586 CPU (CONFIG_M586), not Pentium or higher (CONFIG_M586TSC and up)&lt;br /&gt;
 since the TSC behaves a bit differently. &lt;br /&gt;
 &lt;br /&gt;
 If you want support for the watchdog or the GPIO pins in a 2.4 kernel,&lt;br /&gt;
 you can find an old patch from me at:&lt;br /&gt;
 &lt;br /&gt;
    http://groups.google.com/groups?selm=20020226015215.20118F5B%40acolyte.hack.org&amp;amp;oe=UTF-8&amp;amp;output=gplain&lt;br /&gt;
 &lt;br /&gt;
 An updated version of this patch has been included in Linux 2.5.  Alan&lt;br /&gt;
 Cox' 2.5 kernel also has support for doing DMA on the SC1200 IDE&lt;br /&gt;
 controller; I don't know if there is a corresponding patch for 2.4. &lt;br /&gt;
 &lt;br /&gt;
 Other than that, take a look at the freebios/src/mainboard/nano/nano&lt;br /&gt;
 directory and make a copy of it.  All you should have to do is to&lt;br /&gt;
 modify the Pin Multiplexing Register (PMR) and Miscellaneous Config&lt;br /&gt;
 Register (MCR) in the Config file and to modify the irq assignments.&lt;br /&gt;
 &lt;br /&gt;
 Depending on what you want to do, there are a few limitations with&lt;br /&gt;
 the current LinuxBIOS on the SC1200: &lt;br /&gt;
 &lt;br /&gt;
    There is no video support in LinuxBIOS itself, so you won't get&lt;br /&gt;
    any video until you have loaded the NatSemi Geode Linux&lt;br /&gt;
    framebuffer driver (can be found at www.linux4.tv under the&lt;br /&gt;
    heading SP1SC10 Platform Image).&lt;br /&gt;
 &lt;br /&gt;
    There is no SMM/VSA support at all, this means that anything&lt;br /&gt;
    relying on it won't work.  What this means is that Audio won't&lt;br /&gt;
    work.&lt;br /&gt;
 &lt;br /&gt;
 Other than that everything works fine, IDE in PIO mode, the PCI bus,&lt;br /&gt;
 watchdog, GPIOs, everything.&lt;br /&gt;
 &lt;br /&gt;
  /Christer&lt;br /&gt;
 &lt;br /&gt;
 -- &lt;br /&gt;
 &amp;quot;Just how much can I get away with and still go to heaven?&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 Freelance consultant specializing in device driver programming for Linux &lt;br /&gt;
 Christer Weinigel   http://www.weinigel.se&lt;br /&gt;
 _______________________________________________&lt;br /&gt;
 Linuxbios mailing list&lt;br /&gt;
 Linuxbios@clustermatic.org&lt;br /&gt;
 http://www.clustermatic.org/mailman/listinfo/linuxbios&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== How do I set up testbios? ===&lt;br /&gt;
&lt;br /&gt;
 From daubin@actuality-systems.com Wed Oct  6 10:23:10 2004&lt;br /&gt;
 Date: Tue, 5 Oct 2004 15:19:24 -0400&lt;br /&gt;
 From: Dave Aubin &lt;br /&gt;
 To: linuxbios@clustermatic.org&lt;br /&gt;
 Subject: RE: Testbios help with nvidia 6800Gt and simple how to&lt;br /&gt;
 &lt;br /&gt;
 I've taken the time to put together a simple testbios faq.&lt;br /&gt;
 I hope it is helpful.  Feedback and additions are welcome. &lt;br /&gt;
 &lt;br /&gt;
 Thanks,&lt;br /&gt;
 Dave&lt;br /&gt;
 &lt;br /&gt;
==== Testbios (vgabios) Faq ====&lt;br /&gt;
&lt;br /&gt;
Date: 10/5/2004&lt;br /&gt;
Author(s): David Aubin  daubin@actuality-systems.com&lt;br /&gt;
&lt;br /&gt;
Purpose:  Testbios is an i386 emulator that sits on top of userspace linux.  It's primary purpose is to provide program video rom's in to the cached memory area.&lt;br /&gt;
&lt;br /&gt;
===== Where to obtain testbios =====&lt;br /&gt;
&lt;br /&gt;
Testbios(vgabios) can be retrieved from the linuxbios/freebios source tree: [http://www.linuxbios.org/developer/download/index.html]&lt;br /&gt;
&lt;br /&gt;
===== Prerequisites =====&lt;br /&gt;
&lt;br /&gt;
You must have installed pci-utils&lt;br /&gt;
* Get http://atrey.karlin.mff.cuni.cz/~mj/pciutils.shtml&lt;br /&gt;
&lt;br /&gt;
===== How to build testbios =====&lt;br /&gt;
* cd freebios/util/vgabios&lt;br /&gt;
* Edit ./Makefile and fill in the correct values for your environment (I build on a 64 AMD so my makefile looks like this)&lt;br /&gt;
&lt;br /&gt;
Begin ./Makefile for x64:&lt;br /&gt;
 CC       =  gcc&lt;br /&gt;
 ARCH     := $(shell uname -m | sed -e s,i[3456789]86,i386,)&lt;br /&gt;
 INCLUDE  =  -I ../pciutils-2.1.11&lt;br /&gt;
 CFLAGS   =  -Wall -Ix86emu/include -O2 -g $(INCLUDE)&lt;br /&gt;
 &lt;br /&gt;
 INTOBJS  =  int10.o int15.o int16.o int1a.o inte6.o&lt;br /&gt;
 OBJECTS  =  testbios.o helper_exec.o helper_mem.o $(INTOBJS)&lt;br /&gt;
 LDFLAGS  =  -static-libgcc -static&lt;br /&gt;
 &lt;br /&gt;
 LIBS     =  x86emu/src/x86emu/libx86emu.a ../pciutils-2.1.11/lib/libpci.a&lt;br /&gt;
 &lt;br /&gt;
 # user space pci is the only option right now.&lt;br /&gt;
 OBJECTS += pci-userspace.o&lt;br /&gt;
 &lt;br /&gt;
 ifeq ($(shell if test &amp;quot;$(ARCH)&amp;quot; == &amp;quot;x86_64&amp;quot; ; then echo 1; fi), 1)&lt;br /&gt;
         CFLAGS +=-m32 -march=i386&lt;br /&gt;
         endif&lt;br /&gt;
 &lt;br /&gt;
         all: testbios&lt;br /&gt;
 &lt;br /&gt;
         testbios: $(OBJECTS) $(LIBS)&lt;br /&gt;
                 $(CC) $(CFLAGS) -o testbios $(OBJECTS) $(LDFLAGS)&lt;br /&gt;
 $(LIBS)&lt;br /&gt;
 &lt;br /&gt;
 helper_exec.o: helper_exec.c test.h&lt;br /&gt;
 &lt;br /&gt;
 x86emu/src/x86emu/libx86emu.a:&lt;br /&gt;
         $(MAKE) -C x86emu/src/x86emu/ -f makefile.linux&lt;br /&gt;
 &lt;br /&gt;
         clean:&lt;br /&gt;
                 $(MAKE) -C x86emu/src/x86emu/ -f makefile.linux clean&lt;br /&gt;
                 rm -f *.o *~ testbios &lt;br /&gt;
 &lt;br /&gt;
         distclean: clean&lt;br /&gt;
                 $(MAKE) -C x86emu/src/x86emu/ -f makefile.linux clean&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
End ./Makefile&lt;br /&gt;
&lt;br /&gt;
* Edit ~vgabios/x86emu/src/x86emu/makefile.linux and fill in the correct values for your environment (I build on a 64 AMD so my makefile looks like this)&lt;br /&gt;
&lt;br /&gt;
Begin ~vgabios/x86emu/src/x86emu/makefile.linux:&lt;br /&gt;
 #############################################################################&lt;br /&gt;
 #&lt;br /&gt;
 #                                               Realmode X86 Emulator Library&lt;br /&gt;
 #&lt;br /&gt;
 #               Copyright (C) 1996-1999 SciTech Software, Inc.&lt;br /&gt;
 #&lt;br /&gt;
 #&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;========================================================================&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 #&lt;br /&gt;
 #  Permission to use, copy, modify, distribute, and sell this software and&lt;br /&gt;
 #  its documentation for any purpose is hereby granted without fee,&lt;br /&gt;
 #  provided that the above copyright notice appear in all copies and that&lt;br /&gt;
 #  both that copyright notice and this permission notice appear in&lt;br /&gt;
 #  supporting documentation, and that the name of the authors not be used&lt;br /&gt;
 #  in advertising or publicity pertaining to distribution of the software&lt;br /&gt;
 #  without specific, written prior permission.  The authors makes no&lt;br /&gt;
 #  representations about the suitability of this software for any purpose.&lt;br /&gt;
 #  It is provided &amp;quot;as is&amp;quot; without express or implied warranty.&lt;br /&gt;
 #&lt;br /&gt;
 #  THE AUTHORS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,&lt;br /&gt;
 #  INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO&lt;br /&gt;
 #  EVENT SHALL THE AUTHORS BE LIABLE FOR ANY SPECIAL, INDIRECT OR&lt;br /&gt;
 #  CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF&lt;br /&gt;
 #  USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR&lt;br /&gt;
 #  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR&lt;br /&gt;
 #  PERFORMANCE OF THIS SOFTWARE.&lt;br /&gt;
 #&lt;br /&gt;
 #&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;========================================================================&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 #&lt;br /&gt;
 # Descripton:   Linux specific makefile for the x86emu library.&lt;br /&gt;
 #&lt;br /&gt;
 #############################################################################&lt;br /&gt;
 &lt;br /&gt;
 TARGETLIB = libx86emu.a&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 OBJS=\&lt;br /&gt;
 debug.o \&lt;br /&gt;
 decode.o \&lt;br /&gt;
 fpu.o \&lt;br /&gt;
 ops.o \&lt;br /&gt;
 ops2.o \&lt;br /&gt;
 prim_ops.o \&lt;br /&gt;
 sys.o&lt;br /&gt;
 &lt;br /&gt;
 $(TARGETLIB): $(OBJS)&lt;br /&gt;
         ar rv $(TARGETLIB) $(OBJS)&lt;br /&gt;
 &lt;br /&gt;
        INCS   = -I. -Ix86emu -I../../include&lt;br /&gt;
        CFLAGS += -D__DRIVER__ -DFORCE_POST -D_CEXPORT= -DNO_LONG_LONG -DDEBUG&lt;br /&gt;
        ARCH   := $(shell uname -m | sed -e s,i[3456789]86,i386,)&lt;br /&gt;
        ifeq ($(shell if test &amp;quot;$(ARCH)&amp;quot; == &amp;quot;x86_64&amp;quot; ; then echo 1; fi), 1)&lt;br /&gt;
                CFLAGS +=-m32 -march=i386&lt;br /&gt;
                endif&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 .c.o:&lt;br /&gt;
 #       gcc -m32 -march=i386 -g -O -Wall -c $(CFLAGS) $(INCS) $*.c&lt;br /&gt;
         gcc -g -O -Wall -c $(CFLAGS) $(INCS) $*.c&lt;br /&gt;
 &lt;br /&gt;
 .cpp.o:&lt;br /&gt;
 #       gcc -m32 -march=i386 -c $(CFLAGS) $(INCS) $*.cpp&lt;br /&gt;
         gcc -c $(CFLAGS) $(INCS) $*.cpp &lt;br /&gt;
 &lt;br /&gt;
 clean:&lt;br /&gt;
         rm -f *.a *.o&lt;br /&gt;
 &lt;br /&gt;
 validate:       validate.o libx86emu.a&lt;br /&gt;
         gcc -o validate validate.o -lx86emu -L.&lt;br /&gt;
 &lt;br /&gt;
End ~vgabios/x86emu/src/x86emu/makefile.linux&lt;br /&gt;
&lt;br /&gt;
* Once built you could have a 32bit testbios executable made. Depending on your embedded environment you might want to have it built shared as the above example makes it static.  Just remove -static-libgcc -static from the LDFLAGS on ./Makefile if you wish to have it built shared.&lt;br /&gt;
&lt;br /&gt;
===== How to retrieve a good video bios =====&lt;br /&gt;
There are sites that have video bios roms on their website. (I know of this one for nvidia cards: [http://whitebunny.demon.nl/hardware/chipset_nvidia.html])&lt;br /&gt;
&lt;br /&gt;
However you should be able to retrieve your own video bios as well with linux.&lt;br /&gt;
* Boot up a machine with a commercial bios (not linux bios) with the video card you wish to work under linux bios.&lt;br /&gt;
** From the command line enter:&amp;lt;br /&amp;gt;&amp;lt;code&amp;gt;dd if=/dev/mem of=vgabios.bin skip=1536 count=128 or &amp;lt;br /&amp;gt;dd if=/dev/mem of=vgabios.bin bs=1k count=64 skip=786432&amp;lt;br /&amp;gt;This assumes you card's bios is cached in 0xc0000.  You&amp;lt;br /&amp;gt;can see where and how much your card's bios is using by&amp;lt;br /&amp;gt;doing a cat iomem | grep &amp;quot;Video ROM&amp;quot;&amp;lt;br /&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
*** dd Explained (man dd to learn more):&lt;br /&gt;
****  if is the location to retrieve from.&lt;br /&gt;
****  of is the output file (your rom image)&lt;br /&gt;
****  skip jumps n blocks where the default n is 512 bytes&lt;br /&gt;
****  count is how many blocks you wish to read&lt;br /&gt;
****  bs is the block size&lt;br /&gt;
** You now have a video bios image&lt;br /&gt;
&lt;br /&gt;
===== How to use testbios =====&lt;br /&gt;
* Currently testbios only works from user space linux (10/4/04)&lt;br /&gt;
* Example from a linux command line or script enter the following to get your video bios programmed:&amp;lt;br /&amp;gt;&amp;lt;code&amp;gt;./testbios -s 65536 --abseg /dev/mem ./vgabios.bin&amp;lt;/code&amp;gt;&lt;br /&gt;
** Testbios explained&lt;br /&gt;
***  -s  how much of the video bios is there&lt;br /&gt;
***  --abseg where would you like to write this (/dev/mem default)&lt;br /&gt;
***  filename of video bios&lt;br /&gt;
***  -d diag mode &lt;br /&gt;
****  How to get pci busdevfn&lt;br /&gt;
****  lspci&lt;br /&gt;
****  look for your video card&lt;br /&gt;
***** Example:&amp;lt;br /&amp;gt;&amp;lt;code&amp;gt;2:00:00&amp;lt;br /&amp;gt;2 (00 &amp;lt;&amp;lt; 3) | 00 = 0x200&amp;lt;/code&amp;gt;&lt;br /&gt;
***** Example:&amp;lt;br /&amp;gt;&amp;lt;code&amp;gt;00:12.0:&amp;lt;br /&amp;gt;0 (12 &amp;lt;&amp;lt; 3) | 0 = 0x90&amp;lt;/code&amp;gt;&lt;br /&gt;
*** -t dump &lt;br /&gt;
*** -c codesegment Where do you want to start, default is 0xc0000&lt;br /&gt;
*** -b base  Where do you want base to be default is 0xc000&lt;br /&gt;
*** -i instruction pointer usually left off as the default&lt;br /&gt;
&lt;br /&gt;
==== Followup to Testbios FAQ ====&lt;br /&gt;
 -----Original Message-----&lt;br /&gt;
 From: linuxbios-admin@clustermatic.org&lt;br /&gt;
 [mailto:linuxbios-admin@clustermatic.org] On Behalf Of Dave Aubin&lt;br /&gt;
 Sent: Tuesday, October 05, 2004 2:22 PM&lt;br /&gt;
 To: Richard Smith&lt;br /&gt;
 Cc: linuxbios@clustermatic.org&lt;br /&gt;
 Subject: RE: Testbios help with nvidia 6800Gt and simple how to&lt;br /&gt;
 &lt;br /&gt;
 Hi,&lt;br /&gt;
 &lt;br /&gt;
 Thank you:)  Yes, it was at 0xc0000-0xc7fff, which is only 32k.&lt;br /&gt;
 But the image I got from the windows tool was 64k (double 8000).&lt;br /&gt;
 Weird.  I would like to stay away from window tools.&lt;br /&gt;
 The info you provided is nice.  I wish there was a way for us To make&lt;br /&gt;
 a faq and we could add this to the testbios faq.  There Is a lot of good&lt;br /&gt;
 info on the clustermatic list, but it is all Dispersed.  &lt;br /&gt;
 Ron if I write a simple faq can you provide some mechanism to Allow&lt;br /&gt;
 updates to it?&lt;br /&gt;
 &lt;br /&gt;
 Thanks,&lt;br /&gt;
 Dave &lt;br /&gt;
 &lt;br /&gt;
 -----Original Message-----&lt;br /&gt;
 From: Richard Smith [mailto:rsmith@bitworks.com]&lt;br /&gt;
 Sent: Tuesday, October 05, 2004 2:16 PM&lt;br /&gt;
 To: Dave Aubin&lt;br /&gt;
 Cc: linuxbios@clustermatic.org&lt;br /&gt;
 Subject: Re: Testbios help with nvidia 6800Gt and simple how to&lt;br /&gt;
 &lt;br /&gt;
 Dave Aubin wrote:&lt;br /&gt;
 &lt;br /&gt;
 &amp;gt; It seems my dd returned an unusable binary.  I found a good binary for&lt;br /&gt;
 &lt;br /&gt;
 &amp;gt; The nvidia card from here:&lt;br /&gt;
 &amp;gt; http://whitebunny.demon.nl/hardware/chipset_nvidia.html&lt;br /&gt;
 &amp;gt; &lt;br /&gt;
 &lt;br /&gt;
 I was wondering about your dd command that but I had not had a chance to&lt;br /&gt;
 respond yet.&lt;br /&gt;
 &lt;br /&gt;
 This is what I use:&lt;br /&gt;
 &lt;br /&gt;
 dd if=/dev/mem of=vbios.bin bs=1k count=64 skip=786432&lt;br /&gt;
 &lt;br /&gt;
 That will rip the bios from 0x0c0000.  You can verify that you actually&lt;br /&gt;
 have bios there with&lt;br /&gt;
 &lt;br /&gt;
   'hd -s 0x0c0000 -n 256 /dev/mem'&lt;br /&gt;
 &lt;br /&gt;
 in some cases it may be located at 0x0e0000 rather than 0x0c0000.&lt;br /&gt;
 &lt;br /&gt;
 It should start with the 0x55aa (Little endian) or 0xaa55 (big endian)&lt;br /&gt;
 and futher on you should see some text identifying the bios.&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 --&lt;br /&gt;
 Richard A. Smith&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 _______________________________________________&lt;br /&gt;
 Linuxbios mailing list&lt;br /&gt;
 Linuxbios@clustermatic.org&lt;br /&gt;
 http://www.clustermatic.org/mailman/listinfo/linuxbios&lt;/div&gt;</summary>
		<author><name>Jcarr</name></author>	</entry>

	<entry>
		<id>http://www.coreboot.org/FAQ</id>
		<title>FAQ</title>
		<link rel="alternate" type="text/html" href="http://www.coreboot.org/FAQ"/>
				<updated>2005-08-16T19:16:45Z</updated>
		
		<summary type="html">&lt;p&gt;Jcarr: Add links to the GALEP-4 flash programmer&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== General ==&lt;br /&gt;
&lt;br /&gt;
=== What is LinuxBIOS? ===&lt;br /&gt;
&lt;br /&gt;
LinuxBIOS aims to replace the normal BIOS found on PCs, Alphas, and other machines with a Linux kernel that can boot Linux from a cold start. LinuxBIOS is primarily Linux - about 10 lines of patches to the current Linux kernel. Additionally, the startup code - about 500 lines of assembly and 5000 lines of C - executes 16 instructions to get into 32-bit mode and then performs DRAM and other hardware initialization required before Linux can take over. &lt;br /&gt;
&lt;br /&gt;
Our primary motivation for the project was maintenance of large clusters, but not surprisingly interest and contributions have come from people with varying backgrounds. &lt;br /&gt;
&lt;br /&gt;
=== Why do we need LinuxBIOS? ===&lt;br /&gt;
&lt;br /&gt;
Current PCs used as cluster nodes depend on a vendor-supplied BIOS for booting. The BIOS in turn relies on inherently unreliable devices such as floppy disks and hard drives to boot the operating system. In addition, current BIOS software is unable to accommodate non-standard hardware making it difficult to support experimental work. The BIOS is slow and often erroneous and redundant and, most importantly, maintenance is a nightmare. Imagine walking around with a keyboard and monitor to every one of the 128 nodes in a cluster to change one BIOS setting. &lt;br /&gt;
&lt;br /&gt;
The LinuxBIOS gunzip's the Linux kernel straight out of NVRAM and essentially requires no moving parts other than the fan. It does a minimal amount of hardware initialization before jumping to the kernel start and lets Linux do the rest. As a result, it is much faster (current record 3 seconds), which has sparked interest in the consumer electronics community as well. Moreover, updates can be performed over the network. &lt;br /&gt;
&lt;br /&gt;
Using a real operating system to boot another operating system provides much greater flexibility than using a simple netboot program or the BIOS. Because Linux is the boot mechanism, it can boot over standard Ethernet or over other interconnects such as Myrinet, Quadrics, or SCI. It can use SSH connections to load the kernel, or it can use the InterMezzo caching file system or traditional NFS. Cluster nodes can be as simple as they need to be - perhaps as simple as a CPU and memory, no disk, no floppy, and no file system. The nodes will be much less autonomous thus making them easier to maintain. &lt;br /&gt;
&lt;br /&gt;
=== Who is working on LinuxBIOS? ===&lt;br /&gt;
&lt;br /&gt;
The LinuxBIOS project was started in the winter of 1999 in the Advanced Computing Laboratory at Los Alamos National Laboratory by Ron Minnich. Two undergraduate students, James Hendricks and Dale Webster spent their winter vacation putting together the proof of concept implementation. &lt;br /&gt;
&lt;br /&gt;
Since then, a long list of people have contributed both in discussions and actual code. See our contributors page for details. Please don't be shy and let us know if you are missing from the list. It's not a purposeful omission, just an unfortunate mistake. &lt;br /&gt;
&lt;br /&gt;
=== Who is funding LinuxBIOS? ===&lt;br /&gt;
&lt;br /&gt;
The LinuxBIOS project is funded by the Los Alamos Computer Science Institute and the Department of Energy's Office of Science. &lt;br /&gt;
&lt;br /&gt;
=== Will LinuxBIOS work on my machine? ===&lt;br /&gt;
&lt;br /&gt;
See the [[Supported Motherboards]] page for which mainboards are supported.  Also, see the [[Products]] page for a list of vendors selling products running LinuxBIOS.&lt;br /&gt;
&lt;br /&gt;
If the above sources don't help, please send the following to the [[Mailinglist]]:&lt;br /&gt;
&lt;br /&gt;
* Step 1: A very brief description of your system: CPU and mainboard and optionally other important details.&lt;br /&gt;
* Step 2: Linux lspci output for your system, generated by booting Linux via the original BIOS and runnning lspci.&lt;br /&gt;
* Step 3: SuperIO chip on the mainboard (report the model numbers on the actual chip - doesn't appear in the lspci output)&lt;br /&gt;
* Step 4: Type of BIOS device (See the question &amp;quot;How do I identify the BIOS chip on my mainboard?&amp;quot; below.)&lt;br /&gt;
* Step 5: URL to the mainboard specifications page (optional)&lt;br /&gt;
* Step 6: Any other relevant information you can provide&lt;br /&gt;
&lt;br /&gt;
If you can't do step 1 above, please describe (as best you can) the specific CPU chip and the chipset used on the mainboard.&lt;br /&gt;
&lt;br /&gt;
Usually in less than a day, someone will respond on the LinuxBIOS mailing list saying your mainboard is supported in the main LinuxBIOS source tree, it is currently in development, it is not yet supported or the manufacturer will not release information needed to provide LinuxBIOS support.  In the latter case, please let the manufacturer know that you want LinuxBIOS support and his failure to release chipset informtion is making that very difficult.&lt;br /&gt;
&lt;br /&gt;
=== What commercial products use LinuxBIOS? ===&lt;br /&gt;
&lt;br /&gt;
See the [[products]] page.&lt;br /&gt;
&lt;br /&gt;
=== Which different operating systems will LinuxBIOS boot? ===&lt;br /&gt;
&lt;br /&gt;
Linux (of course)&lt;br /&gt;
&lt;br /&gt;
Plan 9&lt;br /&gt;
&lt;br /&gt;
Windows 2000 (via [[ADLO]])&lt;br /&gt;
&lt;br /&gt;
We have look at some of the BSD OSes but (e.g.) FreeBSD makes BIOS calls, and we don't support&lt;br /&gt;
BIOS calls. Possibly ADLO could be used to support FreeBSD, but the right thing to do is remove&lt;br /&gt;
FreeBSD's dependence on BIOS calls.&lt;br /&gt;
&lt;br /&gt;
=== How can I help with LinuxBIOS? ===&lt;br /&gt;
&lt;br /&gt;
Contact [[User:Rminnich|Ron Minnich]] for projects related to LinuxBIOS.&lt;br /&gt;
&lt;br /&gt;
== Developer ==&lt;br /&gt;
&lt;br /&gt;
=== What kind of hardware tools do I need? ===&lt;br /&gt;
&lt;br /&gt;
A motherboard (or mainboard as LinuxBIOS calls it) that has a supported chipset on it.  Ok.. Well not exactly.  As long as you have the documentation for the chipset/mainboard and it's free of any NDA issues you can use an unsupported chipset/mainboard, but you have a twisty road ahead of you.&lt;br /&gt;
	&lt;br /&gt;
And of course you need a Linux development machine.  The LinuxBIOS build environment is not supported on Windows.  It may be possible to do it under cygwin but nobody has tried.&lt;br /&gt;
		&lt;br /&gt;
It's also handy to have one/some/all of the following:&lt;br /&gt;
	&lt;br /&gt;
- EPROM/Flash programmer that can program the flash on your motherboard.&lt;br /&gt;
  [http://www.mcumall.com/ Willem Universal EPROM Programmer] -- DOS/Windows only (work has started on Linux drivers) ~$50&lt;br /&gt;
  [http://www.conitec.net/english/software.htm GALEP-4] -- Has beta linux drivers ~$300&lt;br /&gt;
- ROM emulator&lt;br /&gt;
- Bios Savior &lt;br /&gt;
  http://www.ioss.com.tw/web/English/RD1BIOSSavior.html&lt;br /&gt;
  http://www.cwlinux.com/eng/products/products_lbmb.php&lt;br /&gt;
- POST card&lt;br /&gt;
  http://siliconkit.dnsalias.com/cart/index.tpcip.html&lt;br /&gt;
  http://www.elstonsystems.com/prod/pc_analyzer.html&lt;br /&gt;
  http://shopv2.elstonsystems.com/product_info.php/products_id/57&lt;br /&gt;
  http://www.uxd.com/trio.html&lt;br /&gt;
  http://www.soyousa.com/products/proddesc.php?id=261&lt;br /&gt;
- Compact Flash IDE adaptor  &lt;br /&gt;
  http://siliconkit.dnsalias.com/cart/index.tcfdp.html&lt;br /&gt;
  http://www.cwlinux.com/eng/products/products_ide2cf.php&lt;br /&gt;
  http://www.mini-box.com/s.nl/sc.8/category.14/.f&lt;br /&gt;
  http://www.acscontrol.com/Index_ACS.asp?Page=/Pages/Products/CompactFlash/IDE_To_CF_Adapter.htm&lt;br /&gt;
- Oscilliscope&lt;br /&gt;
- In Circuit Emulator hardware debugger&lt;br /&gt;
- LinuxBIOS SDK&lt;br /&gt;
  http://www.cwlinux.com/eng/products/products_sdk.php&lt;br /&gt;
- In Circuit chip programmer -- should allow you to program your BIOS even if it is soldered to the motherboard.&lt;br /&gt;
  http://www.xeltek.com/pages.php?pageid=8&lt;br /&gt;
&lt;br /&gt;
=== What documentation do I need? ===&lt;br /&gt;
&lt;br /&gt;
As much as you can possibly get your hands on.  Minimum you need the docs for your chipset.  Without chipset docs you are basically lost.  &lt;br /&gt;
	&lt;br /&gt;
There have been some reports of people making things work by booting with the BIOS that comes with the board.  Dumping the PCI config registers and then making LinuxBIOS match those registers.  But since sometimes you have to set different bits in a given register at different times so that intermediate info will be lost.  Getting a mainboard up with out chipset docs can be a very long and involved process.&lt;br /&gt;
&lt;br /&gt;
=== What if my chipset docs are covered by an NDA? ===&lt;br /&gt;
&lt;br /&gt;
If the documentation for your chipset covered by and NDA with no source release agreement you won't be able to release your code back to to the LinuxBIOS project in general or you will violate the GPL.&lt;br /&gt;
Many vendors accept releasing the source code produced after reading such specs while they don't allow the specs themselves to be revealed. Also, you can offer them to review the code before releasing it.&lt;br /&gt;
&lt;br /&gt;
=== Where is the mailing list archived? ===&lt;br /&gt;
&lt;br /&gt;
The official LinuxBIOS mailing list archive is:&lt;br /&gt;
&lt;br /&gt;
http://www.linuxbios.org/pipermail/linuxbios/&lt;br /&gt;
&lt;br /&gt;
The best archive out there is at the University of Maryland. &lt;br /&gt;
&lt;br /&gt;
http://www.mail-archive.com/linuxbios@clustermatic.org/&lt;br /&gt;
&lt;br /&gt;
In addition, we've pieced together an archive that dates back to about the beginning of 2000 (including messages that were going to the freebios and openbios mailing lists).&lt;br /&gt;
&lt;br /&gt;
=== Where do I get the code? ===&lt;br /&gt;
&lt;br /&gt;
See the [[Download_freebios_v2|download page]].&lt;br /&gt;
&lt;br /&gt;
=== How do I build? ===&lt;br /&gt;
&lt;br /&gt;
See the documentation. For help generating a config file, see Generate a config file. (jdarby: this needs to be wikiized)&lt;br /&gt;
&lt;br /&gt;
=== Why is the code so complicated and what can I do to make it easier? ===&lt;br /&gt;
&lt;br /&gt;
The reason is the complexity of the problem. We support a lot of hardware, and a given chip on a given board will most likely not be configured quite the same as the same chip on some other board. &lt;br /&gt;
&lt;br /&gt;
To help make code navigation easier, pick a target and build that target. Then, in the build directory, type make tags or make etags to get your favorite tags file. &lt;br /&gt;
&lt;br /&gt;
=== What chipsets are supported? ===&lt;br /&gt;
&lt;br /&gt;
See the [[Supported Chipsets &amp;amp; Devices]] page&lt;br /&gt;
&lt;br /&gt;
=== How can I tell if my motherboard is supported by LinuxBIOS? ===&lt;br /&gt;
&lt;br /&gt;
There are 2 methods:&lt;br /&gt;
&lt;br /&gt;
1) Check [[Supported Motherboards]]&lt;br /&gt;
&lt;br /&gt;
If you don't see your chipset/Mainboard listed there then boot linux on your target and send the output of 'lspci -vvv' to the linuxBIOS list asking if this chipset is supported.&lt;br /&gt;
&lt;br /&gt;
2) &amp;quot;Use the source Luke&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Check out the latest copy of LinuxBIOS from CVS [[Download freebios v2]] and look in the freebios2/src/mainboard directory. (The LinuxBios module is called 'freebios2' in CVS for legacy reasons) There are directories for each manufacturer of mainboards that LinuxBIOS supports.  Below the manufacturer directory is a directory for each mainboard or family of&lt;br /&gt;
mainboard.  If a directory for your mainboad dosen't exist then theres a good chance LinuxBIOS dosen't support your mainboard out-of-the-box.  Posting to the list would probally be the next option.  See 'the lspci -vvv' in the earlier part of the question.&lt;br /&gt;
	&lt;br /&gt;
If the directory does exist then it still dosen't mean 100% the mainboard will work but at least it probally worked at one time.  Posting to the list will probally get you the latest info for that mainboard.&lt;br /&gt;
&lt;br /&gt;
=== What is this POST card thing? ===&lt;br /&gt;
&lt;br /&gt;
A POST card will save your life. The term POST means Power On Self Test and comes from the original IBM specifications for the BIOS. Port 80 is a pre-defined port to which programs can output a byte. The POST card displays the byte in hex on its 2 digit display. We use a lot of POST codes in LinuxBIOS, so if you can tell us the POST code you see, we will have some idea of what happened. &lt;br /&gt;
&lt;br /&gt;
If your LinuxBIOS machine is working properly, you will see it count up from 0xd0 to 0xd9 (while it is gunzipping the kernel) and then display 0x98 (Linux idle loop).&lt;br /&gt;
&lt;br /&gt;
PCI POST cards can be found in various places. &lt;br /&gt;
[http://www.linuxbios.org/index.php/FAQ#Developer POST Cards]&lt;br /&gt;
&lt;br /&gt;
=== How do I contribute my changes? ===&lt;br /&gt;
&lt;br /&gt;
Any one without commit privileges (which is most of you) need to get changes approved by Ron Minnich. &lt;br /&gt;
&lt;br /&gt;
=== How do I identify the BIOS chip on my mainboard? ===&lt;br /&gt;
&lt;br /&gt;
Modern mainboards store the BIOS in a reprogrammable flash ROM chip. There are hundreds of different flash ROMs, with variables such as memory size, speed, communication bus (LPC vs. ISA/PCI) and packaging to name just a few. The three most common packages are called DIP, PLCC and TSOP. The BIOS copyright holders often place a fancy sticker on the BIOS chip showing a name or logotype, BIOS version, serial number and copyright notice.&lt;br /&gt;
&lt;br /&gt;
[http://www.oricomtech.com/sub2/oopic2p.gif DIP chip with sticker]&amp;lt;br&amp;gt;&lt;br /&gt;
DIP: Dual In-line Package&amp;lt;br&amp;gt;&lt;br /&gt;
A rectangular black plastic block with lots of pins along the two longer sides of the package. DIP ROMs can be socketed which means they are detachable from the mainboard using physical force. Since they haven't been moved in and out of the socket very much (yet, hehe) they can appear to be quite difficult to release from the socket. One way to remove a DIP from a socket is by prying a thin screwdriver in between the plastic package and the socket, along the shorter sides where there are no pins, and then gently bending the screwdriver to push the DIP upwards, away from the mainboard. Alternate between the two sides to avoid bending the pins, and don't touch any of the pins with the screwdriver, see FAQ about ESD, electro-static discharge. If the DIP is soldered directly to the mainboard, it has to be desoldered in order to be reprogrammed outside the mainboard. If you do this, it's a good idea to solder a socket to the mainboard instead, to ease any future experiments.&lt;br /&gt;
&lt;br /&gt;
[http://www.rojakpot.com/article/Hot_Flash_Guide/BIOS_chips.jpg PLCC chips with and without sticker]&amp;lt;br&amp;gt;&lt;br /&gt;
PLCC: Plastic Leaded Chip Carrier&amp;lt;br&amp;gt;&lt;br /&gt;
Black plastic block again, but this one is much more square. PLCC is becoming the standard for mainboards because of it's smaller physical size. PLCC can also be socketed or soldered directly to the mainboard. Socketed PLCC chips can be removed using a special PLCC removal tool, or using a piece of nylon line tied in a loop around the chip and pulled swiftly straight up, or bending/prying using small screwdrivers if one is careful. PLCC sockets are often fragile so the screwdriver approach is not recommended. While the nylon line method sounds onorthodox it works well. Desoldering PLCC can be painful without specialized desoldering equipment particularly because PLCC chips have leads on all four sides of the package.&lt;br /&gt;
&lt;br /&gt;
[http://www.isipkg.com/images/adp_tsop_dip.jpg TSOP chip on a TSOP-&amp;gt;DIP adapter]&amp;lt;br&amp;gt;&lt;br /&gt;
TSOP: Thin Small-Outline Package&amp;lt;br&amp;gt;&lt;br /&gt;
TSOPs are often used in embedded systems where size is important and there is no need for replacement in the field. It is possible to (de)solder TSOPs by hand, but it comes close to wizardry.&lt;br /&gt;
&lt;br /&gt;
=== How do I (re-)flash the BIOS? ===&lt;br /&gt;
&lt;br /&gt;
==== Out of mainboard BIOS (re)flash ====&lt;br /&gt;
&lt;br /&gt;
If the BIOS chip is socketed, it can be removed and flashed in a rom/flash burner and quickly re-installed.  Some of these burners cost $1000 and more plus they complete a flash in 1-2 minutes, but if you are willing to wait 5 minutes for a flash and manually set DIP switches, The Enhanced Willem Universal Programmer will do the job for only $40-60 USD.  There are several models of the Willem Programmer, each supporting many chips, but not all, so be sure to get one that supports your BIOS chip.  If your chip is PLCC, you will also need a PLCC chip extractor/puller or just thread nylon string under the PLCC chip from corner to corner and yank up it straight up.&lt;br /&gt;
&lt;br /&gt;
==== Inside mainboard BIOS (re)flash ====&lt;br /&gt;
&lt;br /&gt;
Download the appropriate flash update utility. Build the romimage 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. For example, Intel decided to disallow it for the MS440GX mainboard (probably after hearing about us!) Here are some mainboard specific directions: &lt;br /&gt;
&lt;br /&gt;
===== General =====&lt;br /&gt;
LinuxBIOS v2 contains a flash utility called &amp;quot;flash_rom&amp;quot;. It can be found at freebios2/util/flash_and_burn.&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
 bash# ./flash_rom&lt;br /&gt;
 Calibrating timer since microsleep sucks ... takes a second&lt;br /&gt;
 Setting up microsecond timing loop&lt;br /&gt;
 515M loops per second&lt;br /&gt;
 OK, calibrated, now do the deed&lt;br /&gt;
 Enabling flash write on AMD8111...OK&lt;br /&gt;
 Trying Am29F040B, 512 KB&lt;br /&gt;
 probe_29f040b: id1 0x4e, id2 0x41&lt;br /&gt;
 Trying At29C040A, 512 KB&lt;br /&gt;
 probe_jedec: id1 0xbf, id2 0x51&lt;br /&gt;
 Trying Mx29f002, 256 KB&lt;br /&gt;
 probe_29f002: id1 0xbf, id2 0x51&lt;br /&gt;
 Trying SST29EE020A, 256 KB&lt;br /&gt;
 probe_jedec: id1 0xbf, id2 0x51&lt;br /&gt;
 Trying SST28SF040A, 512 KB&lt;br /&gt;
 probe_28sf040: id1 0x4e, id2 0x41&lt;br /&gt;
 Trying SST39SF020A, 256 KB&lt;br /&gt;
 probe_jedec: id1 0xbf, id2 0x51&lt;br /&gt;
 Trying SST39VF020, 256 KB&lt;br /&gt;
 probe_jedec: id1 0xbf, id2 0x51&lt;br /&gt;
 Trying SST49LF040, 512 KB&lt;br /&gt;
 probe_jedec: id1 0xbf, id2 0x51&lt;br /&gt;
 SST49LF040 found at physical address: 0xfff80000&lt;br /&gt;
 Part is SST49LF040&lt;br /&gt;
 OK, only ENABLING flash write, but NOT FLASHING&lt;br /&gt;
 bash# flash_rom --help&lt;br /&gt;
 usage: ./flash_rom [-rwv] [-c chipname] [-s exclude_start] [-e exclude_end] [file]&lt;br /&gt;
  -r: read flash and save into file&lt;br /&gt;
  -w: write file into flash (default when file is specified)&lt;br /&gt;
  -v: verify flash against file&lt;br /&gt;
  -c: probe only for specified flash chip&lt;br /&gt;
  -s: exclude start position&lt;br /&gt;
  -e: exclude end postion&lt;br /&gt;
   If no file is specified, then all that happens&lt;br /&gt;
   is that flash info is dumped&lt;br /&gt;
&lt;br /&gt;
Besides that, OpenBIOS contains a flash driver called [http://www.openbios.org/development/devbios.html /dev/bios] which may support some systems and flash chips unsupported by flash_rom.&lt;br /&gt;
 &lt;br /&gt;
===== SiS 630/950 M/Bs =====&lt;br /&gt;
Ollie Lho provided us with flash utilities for these boards under freebios/util/sis. &lt;br /&gt;
flash_on turns on the flash write enable. This needs to be run before loading the DoC drivers. &lt;br /&gt;
flash_rom allows you to use your SiS 630/950 M/Bs as a flash programmer. It currently supports JEDEC flash parts, AMD am29f040b models, MXIC MX29F002 models, and SST28SF040C models. &lt;br /&gt;
&lt;br /&gt;
===== Intel L440GX =====&lt;br /&gt;
Get the System Update Package directly from Intel. mcopy the ten files created from running make phlash onto the Intel flash burner disk and use the update utility to burn the BIOS. To restore the original BIOS, set the recovery boot jumper on the motherboard, put the floppy in, and it will load and reflash the original BIOS. &lt;br /&gt;
How do I actually burn a flash ROM? &lt;br /&gt;
&lt;br /&gt;
Buy your favorite flash burner (we use a Needham Electronics EMP 30). Use make floppy to create the romimage and copy it to a floppy. Then use the provided software to burn the flash.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===== BIOS Saver RD1 =====&lt;br /&gt;
&lt;br /&gt;
[http://www.ioss.com.tw/web/English/RD1BIOSSavior.html BIOS Saver RD1]&lt;br /&gt;
&lt;br /&gt;
There are some posts about the BIOS Saver RD1 that suggest its integrated flash device is of low quality, and it may take 10 or more flash programming attempts to get a good  update to the RD1 flash device. As a result, the following steps have proven to be successful while using the RD1:&lt;br /&gt;
&lt;br /&gt;
* Step 1 - While the system is powered down remove the original BIOS device from the mainboard and insert it into the RD1's socket.&lt;br /&gt;
&lt;br /&gt;
* Step 2 - Insert the RD1 into the mainboard's flash BIOS socket.&lt;br /&gt;
&lt;br /&gt;
* Step 3 - Boot the system with the RD1 set to boot from the original flash device from the mainboard.&lt;br /&gt;
&lt;br /&gt;
* Step 4 - Program the original BIOS image (or other known good BIOS image) into the RD1's integrated flash device for as many times as needed until the device is properly programmed and the system boots corectly from the RD1's integrated flash device. Be sure to check the settings on the RD1 so that the proper flash device is now being programmed. If the RD1 is not set correctly the working BIOS image will be erased and the system may not boot!&lt;br /&gt;
&lt;br /&gt;
* Step 5 - Program the test BIOS image (usually LinuxBIOS images are among this group) into the original flash device from the mainboard. The original BIOS device usually programs OK on the first attempt. Be sure to check the settings again on the RD1 so that the proper flash device is now being programmed!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The RD1 has been used in the above fashion with great success on the Tyan S2885 mainboard. Unfortunately the RD1 does not work on the nVidia CK8-04 CRB mainboard. The CK8-04 CRB may require a flash device that the RD1 does not support. &lt;br /&gt;
&lt;br /&gt;
The RD1 has worked well as a &amp;quot;do nothing&amp;quot; adapter that allows swapping the BIOS flash device between a flash burner and a mainboard without any wear to the mainboard's BIOS socket.&lt;br /&gt;
&lt;br /&gt;
=== How do I burn a DoC? ===&lt;br /&gt;
&lt;br /&gt;
Currently, only the DoC Millennium is supported. See the documentation. &lt;br /&gt;
&lt;br /&gt;
=== Can I do any serious damage mucking around with this stuff? ===&lt;br /&gt;
&lt;br /&gt;
Any time you stick your hand into an open machine while the power is on, you're risking life and limb. That said, there are also some other not-so-nice things that can happen if you mess up (not that we would know). &lt;br /&gt;
&lt;br /&gt;
* Incorrect insertion of the flash (1 casualty) &lt;br /&gt;
* Incorrect jumper settings (1 casualty) &lt;br /&gt;
* Aggressive and/or inappropriate use of metal objects such as screwdrivers (2 casualties) &lt;br /&gt;
* Miscellaneous miswirings and mishandlings (3+ casualties)&lt;br /&gt;
&lt;br /&gt;
=== A note on electrostatic discharge (ESD) and ESD protection (thanks to Bari Ari) ===&lt;br /&gt;
&lt;br /&gt;
ESD can damage disk drives, boards, DoC's and other parts. The majority of the time, ESD events cause the component to degrade, but not fail testing procedures, resulting in failure at a later date. Because components do not fail immediately, technicians often underestimate the cost of not using ESD prevention measures. Provide at minimum some ESD protection by wearing an antistatic wrist strap attached to the chassis ground on your system when handling parts. &lt;br /&gt;
&lt;br /&gt;
Always handle boards carefully. They can be extremely sensitive to ESD. Hold boards only by their edges. After removing a board from its protective wrapper or from the system, place it component side up on a grounded, static free surface. Use a conductive foam pad if available. Do not slide the board over any surface. &lt;br /&gt;
&lt;br /&gt;
To further reduce the chances of ESD, you should create an ESD safe workstation that includes at minimum: &lt;br /&gt;
&lt;br /&gt;
* Conductive rubber mat, with a lead wire that can be connected to a metal surface to create a ground. &lt;br /&gt;
&lt;br /&gt;
* ESD wrist strap, which has a resistor inside the strap and a lead wire that can be connected to a metal surface as a ground. The grounding wire on the wrist strap should have between 1 and 10 Megaohms of resistance. The resistor should protect you in case you come in contact with a voltage source. If the resistor is bad or not included, the wrist strap is useless. An accidental shock could be serious and even deadly! &lt;br /&gt;
&lt;br /&gt;
* Table or workspace that is clean, clear of dust, and away from electrical machinery or other equipment that generates electrical currents. &lt;br /&gt;
&lt;br /&gt;
The idea is to ensure that all components you are going to interact with have the same charge. By connecting everything to the computer case, you ensure that the components of the case, the chair, and your body all have the same charge. If every object has the same charge, the electrons will not jump from one object to another minimizing the risk of ESD damage. &lt;br /&gt;
&lt;br /&gt;
=== How do I put a filesystem on DoC? ===&lt;br /&gt;
OK, here is a little HOWTO on how to set up MTD with a file system. &lt;br /&gt;
&lt;br /&gt;
This is a m810lmr, booting out of DoC. I am going to reserve the first 2M for kernel. So the layout will be the first 2M for linuxbios and kernel, and 6M for a file system. Kernel is 2.4.17, with linux-2.4.17-sis.patch from linuxbios source tree, and config-2.4.17-sis from the linuxbios source tree. Mainboard is the pcchips m810lmr. &lt;br /&gt;
&lt;br /&gt;
So I: &lt;br /&gt;
 modprobe doc2001 &lt;br /&gt;
 modprobe docprobe &lt;br /&gt;
 dmesg &lt;br /&gt;
&lt;br /&gt;
which shows: &lt;br /&gt;
&lt;br /&gt;
 DiskOnChip Millennium found at address 0xFFFC8000 &lt;br /&gt;
 Flash chip found: Manufacturer ID: 98, Chip ID: E6 (Toshiba TC58V64AFT/DC) &lt;br /&gt;
 1 flash chips found. Total DiskOnChip size: 8 MiB &lt;br /&gt;
 mtd: Giving out device 0 to DiskOnChip Millennium &lt;br /&gt;
 Ignoring DiskOnChip Millennium at 0xFFFCA000 - already configured &lt;br /&gt;
 Ignoring DiskOnChip Millennium at 0xFFFCC000 - already configured &lt;br /&gt;
 Ignoring DiskOnChip Millennium at 0xFFFCE000 - already configured &lt;br /&gt;
 Ignoring DiskOnChip Millennium at 0xFFFD0000 - already configured &lt;br /&gt;
 Ignoring DiskOnChip Millennium at 0xFFFD2000 - already configured &lt;br /&gt;
 Ignoring DiskOnChip Millennium at 0xFFFD4000 - already configured &lt;br /&gt;
 Ignoring DiskOnChip Millennium at 0xFFFD6000 - already configured &lt;br /&gt;
 (etc..) &lt;br /&gt;
 Now I need MTD utilities. &lt;br /&gt;
 So I: &lt;br /&gt;
 cvs -d :pserver:anoncvs@cvs.infradead.org:/home/cvs login &lt;br /&gt;
 CVS password: &lt;br /&gt;
 &lt;br /&gt;
 (password is anoncvs) &lt;br /&gt;
 Then: &lt;br /&gt;
 cvs -d :pserver:anoncvs@cvs.infradead.org:/home/cvs co mtd &lt;br /&gt;
&lt;br /&gt;
Forget the drivers and such, you don't need them. What you need is the tools. &lt;br /&gt;
 cd mtd/tools &lt;br /&gt;
 make &lt;br /&gt;
&lt;br /&gt;
Go ahead and copy the executables somewhere handy, you'll need them. &lt;br /&gt;
&lt;br /&gt;
Now we need to make the last 6M into a &amp;quot;disk&amp;quot;. We need to format it. The tool is nftl_format, so:&lt;br /&gt;
&lt;br /&gt;
 [root@carly util]# ./nftl_format &lt;br /&gt;
 $Id: nftl_format.c,v 1.17 2001/08/29 14:28:48 dwmw2 Exp $ &lt;br /&gt;
 Usage: ./nftl_format [ []] &lt;br /&gt;
 [root@carly util]# expr 2048 \* 1024 &lt;br /&gt;
 2097152 &lt;br /&gt;
 [root@carly util]# expr 6 \* 1024 \* 1024 &lt;br /&gt;
 6291456 &lt;br /&gt;
 [root@carly util]# ./nftl_format /dev/mtd0 2097152 6291456 &lt;br /&gt;
 $Id: nftl_format.c,v 1.17 2001/08/29 14:28:48 dwmw2 Exp $ &lt;br /&gt;
 Phase 1. Checking and erasing Erase Zones from 0x00200000 to 0x00800000 &lt;br /&gt;
 Phase 2.a Writing NFTL Media Header and Bad Unit Table &lt;br /&gt;
 Phase 2.b Writing Spare NFTL Media Header and Spare Bad Unit Table &lt;br /&gt;
 Phase 3. Writing Unit Control Information to each Erase Unit &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
we now have a formatted disk in there. We can now partition it. &lt;br /&gt;
&lt;br /&gt;
 [root@carly util]# modprobe nftl &lt;br /&gt;
&lt;br /&gt;
dmesg shows LOTS of errors, since this was never partitioned ... &lt;br /&gt;
&lt;br /&gt;
Also, if you don't have /dev/nftla, &lt;br /&gt;
&lt;br /&gt;
 [root@carly util]# mknod /dev/nftla b 93 0 &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Don't use the script just yet, it makes /dev/nftla as b 93 16, which is the wrong unit #. &lt;br /&gt;
&lt;br /&gt;
now fdisk /dev/nftla &lt;br /&gt;
&lt;br /&gt;
 [root@carly util]# fdisk /dev/nftlA &lt;br /&gt;
 Command (m for help): n &lt;br /&gt;
 Command action &lt;br /&gt;
 e extended &lt;br /&gt;
 p primary partition (1-4) &lt;br /&gt;
 p &lt;br /&gt;
 Partition number (1-4): 1 &lt;br /&gt;
 First cylinder (1-1, default 1): &lt;br /&gt;
 Using default value 1 &lt;br /&gt;
 Command (m for help): p &lt;br /&gt;
 Disk /dev/nftlA: 1 heads, 12224 sectors, 1 cylinders &lt;br /&gt;
 Units = cylinders of 12224 * 512 bytes &lt;br /&gt;
 Device Boot Start End Blocks Id System &lt;br /&gt;
 /dev/nftlA1 1 1 6111+ 83 Linux &lt;br /&gt;
 Partition 1 has different physical/logical endings: &lt;br /&gt;
 phys=(768, 0, 0) logical=(0, 0, 12224) &lt;br /&gt;
 Partition 1 does not end on cylinder boundary: &lt;br /&gt;
 phys=(768, 0, 0) should be (768, 0, 12224) &lt;br /&gt;
 Command (m for help): w &lt;br /&gt;
 The partition table has been altered! &lt;br /&gt;
 Calling ioctl() to re-read partition table. &lt;br /&gt;
 WARNING: If you have created or modified any DOS 6.x partitions, please see the fdisk manual page for additional information. &lt;br /&gt;
 Syncing disks. &lt;br /&gt;
 [root@carly util]# mknod /dev/nftlA1 b 93 1 &lt;br /&gt;
 [root@carly util]# mke2fs /dev/nftlA1 &lt;br /&gt;
 mke2fs 1.23, 15-Aug-2001 for EXT2 FS 0.5b, 95/08/09 &lt;br /&gt;
 Filesystem label= &lt;br /&gt;
 OS type: Linux &lt;br /&gt;
 Block size=1024 (log=0) &lt;br /&gt;
 Fragment size=1024 (log=0) &lt;br /&gt;
 1528 inodes, 6111 blocks &lt;br /&gt;
 305 blocks (4.99%) reserved for the super user &lt;br /&gt;
 First data block=1 &lt;br /&gt;
 1 block group &lt;br /&gt;
 8192 blocks per group, 8192 fragments per group &lt;br /&gt;
 1528 inodes per group &lt;br /&gt;
 Writing inode tables: done &lt;br /&gt;
 Writing superblocks and filesystem accounting information: done &lt;br /&gt;
&lt;br /&gt;
This filesystem will be automatically checked every 37 mounts or 180 days, whichever comes first. Use tune2fs -c or -i to override. &lt;br /&gt;
&lt;br /&gt;
 [root@carly util]# mount /dev/nftlA1 /mnt &lt;br /&gt;
 [root@carly util]# cd /mnt &lt;br /&gt;
 [root@carly mnt]# df . &lt;br /&gt;
 Filesystem 1k-blocks Used Available Use% Mounted on &lt;br /&gt;
 /dev/nftlA1 5915 13 5597 1% /mnt &lt;br /&gt;
 [root@carly mnt]# &lt;br /&gt;
&lt;br /&gt;
and so you now have an ext2 file system on the DoC. &lt;br /&gt;
&lt;br /&gt;
(Above is from [[User:Rminnich|Ron Minnich]])&lt;br /&gt;
&lt;br /&gt;
=== How do I turn off embedded sis630 devices? ===&lt;br /&gt;
&lt;br /&gt;
 From aip@cwlinux.com Mon Mar 25 08:54:07 2002 &lt;br /&gt;
 Date: Mon, 25 Mar 2002 22:07:54 +0800 &lt;br /&gt;
 From: Andrew Ip &lt;br /&gt;
 To: Kei Furuuchi &lt;br /&gt;
 Cc: linuxbios@lanl.gov &lt;br /&gt;
 Subject: Re: How to turn off unused pci device. &lt;br /&gt;
 Hi, &lt;br /&gt;
 &amp;gt; I have pcchips m758lmr which has audio chip besides sis630. &lt;br /&gt;
 &amp;gt; those functions in sis630 are not used in the motherboard. &lt;br /&gt;
 &amp;gt; But, the functions keep coming up. How do I turn off those? &lt;br /&gt;
 The following is from Nikolai Valdych previous message. Hope this help. &lt;br /&gt;
 -Andrew &lt;br /&gt;
 -- &lt;br /&gt;
 Andrew Ip &lt;br /&gt;
 Email: aip@cwlinux.com &lt;br /&gt;
 Actualy, it was pretty simple 0x7c00 - All devices enabled, You play with first 4 bits only. Cos there are 4 devices, so you have any combination of 4 bits. &lt;br /&gt;
 Set bit to 1 to turn off the device, bit 0 to enable it. &lt;br /&gt;
 This is the device list: &lt;br /&gt;
 Multimedia Audio controler &lt;br /&gt;
 Modem controler &lt;br /&gt;
 Ethernet sis930 controler &lt;br /&gt;
 USB controler. &lt;br /&gt;
 For example, to turn off Ethernet + USB it would be: &lt;br /&gt;
 0x7c0c -&amp;gt; 1100 in binary (first 4 bits) &lt;br /&gt;
 To turn off Multimedia audio : &lt;br /&gt;
 0x7c01 -&amp;gt; 0001 &lt;br /&gt;
 in binary and so on... maybe there are more detail, but this is enogh for me, Ollie, again thanks! &lt;br /&gt;
 nikolai &lt;br /&gt;
 p.s. though my modem is not yet working..... damn driver...... &lt;br /&gt;
&lt;br /&gt;
=== What is a PIRQ table? ===&lt;br /&gt;
&lt;br /&gt;
 From Adam Sulmicki: &lt;br /&gt;
 &lt;br /&gt;
 I found beautfiul descrition of the BIOS implementation of the PIRQ in the red PCI book.&lt;br /&gt;
 &lt;br /&gt;
 I found the description of the $PIR data structure in the&lt;br /&gt;
        &lt;br /&gt;
  http://www.microsoft.com/whdc/archive/pciirq.mspx&lt;br /&gt;
 &lt;br /&gt;
 looking over linuxbios sources I see that it saves the $PIR data structure&lt;br /&gt;
 somewhere between 0xf0000 &amp;amp; 0x100000.&lt;br /&gt;
 &lt;br /&gt;
 so it seems I'll have to search for $PIR and then save it before copying&lt;br /&gt;
 over our bios. sigh. hoped for some fixed address in mem.&lt;br /&gt;
 &lt;br /&gt;
 -- &lt;br /&gt;
 Adam&lt;br /&gt;
 http://www.eax.com      The Supreme Headquarters of the 32 bit registers&lt;br /&gt;
&lt;br /&gt;
=== How do I set up etherboot with LinuxBIOS? ===&lt;br /&gt;
&lt;br /&gt;
Note from Ron: I have edited this somewhat to remove Geode-specific items. &lt;br /&gt;
&lt;br /&gt;
 Christer Weinigel writes: &lt;br /&gt;
 To: rminnich@lanl.gov&lt;br /&gt;
 Cc: linuxbios@lanl.gov&lt;br /&gt;
 Subject: Re: LinuxBIOS + Etherboot HOWTO?&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 I had some trouble using LinuxBIOS + etherboot... &lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 My bad, I messed up and used mkelfImage-1.6 that I got from ftp.lnxi.com, when I realized that I ought to use the one from freebios/util everything started working. &lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 Here's what I did to get LinuxBIOS + Etherboot loading and booting a Linux kernel using TFTP. &lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
   /Christer &lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 Get etherboot-5.0 from the CVS tree on etherboot.sourceforge.net. &lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 Modify etherboot-5.0/src/Config, comment out: &lt;br /&gt;
 &lt;br /&gt;
    # BIOS select don't change unless you know what you are doing&lt;br /&gt;
    #CFLAGS32+=     -DPCBIOS&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 and uncomment the following: &lt;br /&gt;
 &lt;br /&gt;
    # Options to make a version of Etherboot that will work under linuxBIOS.&lt;br /&gt;
    CFLAGS32+= -DLINUXBIOS -DCONFIG_TSC_CURRTICKS  -DCONSOLE_SERIAL \&lt;br /&gt;
               -DCOMCONSOLE=0x3f8 -DCOMPRESERVE -DCONFIG_PCI_DIRECT -DELF_IMAGE &lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 Compile Etherboot to make an elf file for your ethernet card: &lt;br /&gt;
 &lt;br /&gt;
     make bin32/natsemi.elf&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 Compile and install mkelfImage from freebios/util/mkelfImage. &lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 Create a bootimage to put on your TFTP server: &lt;br /&gt;
 &lt;br /&gt;
    mkelfImage --command-line=&amp;quot;root=/dev/hda2 console=ttyS0,38400&amp;quot; \&lt;br /&gt;
               --kernel vmlinux -o /tftpboot/kernel&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 Finally, make sure that your BOOT/DCHP server is answering and that the TFTP server is active. &lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 Tell LinuxBIOS to boot an elf Image, and tell LinuxBIOS where it is: &lt;br /&gt;
 &lt;br /&gt;
    option USE_ELF_BOOT=1&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 I have placed natsemi.elf in the first 64k of my BIOS flash chip, and LinuxBIOS in the second 64k. &lt;br /&gt;
 &lt;br /&gt;
    insmod bios.o&lt;br /&gt;
    dd if=natsemi.elf of=/dev/bios bs=64k&lt;br /&gt;
    dd if=linuxbios.rom of=/dev/bios bs=64k seek=1&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 Finally boot LinuxBIOS. &lt;br /&gt;
 &lt;br /&gt;
=== How do I set GEODE video? ===&lt;br /&gt;
&lt;br /&gt;
 From christer@weinigel.se Wed Nov 27 07:47:17 2002&lt;br /&gt;
 Date: 27 Nov 2002 10:55:01 +0100&lt;br /&gt;
 From: Christer Weinigel &lt;br /&gt;
 To: Adam Bezanson &lt;br /&gt;
 Cc: linuxbios@clustermatic.org&lt;br /&gt;
 Subject: Re: Geode Kernel Config &lt;br /&gt;
 &lt;br /&gt;
 &amp;quot;Adam Bezanson&amp;quot;  writes:&lt;br /&gt;
 &lt;br /&gt;
 &amp;gt; I've got an Eval card from National Semi that contains&lt;br /&gt;
 &amp;gt; the SC1200. I'd like to try LinuxBios on it.&lt;br /&gt;
 &amp;gt; I've downloaded both the 2.4.18 and 2.4.19 kernels to start with.&lt;br /&gt;
 &amp;gt; What patches do I need to apply to the kernel?&lt;br /&gt;
 &amp;gt; Is there a config file I can use to configure the kernel, or&lt;br /&gt;
 &amp;gt; should I do it manually? &lt;br /&gt;
 &lt;br /&gt;
 A normal 2.4 Linux kernel will work fine as long as you compile for a&lt;br /&gt;
 586 CPU (CONFIG_M586), not Pentium or higher (CONFIG_M586TSC and up)&lt;br /&gt;
 since the TSC behaves a bit differently. &lt;br /&gt;
 &lt;br /&gt;
 If you want support for the watchdog or the GPIO pins in a 2.4 kernel,&lt;br /&gt;
 you can find an old patch from me at:&lt;br /&gt;
 &lt;br /&gt;
    http://groups.google.com/groups?selm=20020226015215.20118F5B%40acolyte.hack.org&amp;amp;oe=UTF-8&amp;amp;output=gplain&lt;br /&gt;
 &lt;br /&gt;
 An updated version of this patch has been included in Linux 2.5.  Alan&lt;br /&gt;
 Cox' 2.5 kernel also has support for doing DMA on the SC1200 IDE&lt;br /&gt;
 controller; I don't know if there is a corresponding patch for 2.4. &lt;br /&gt;
 &lt;br /&gt;
 Other than that, take a look at the freebios/src/mainboard/nano/nano&lt;br /&gt;
 directory and make a copy of it.  All you should have to do is to&lt;br /&gt;
 modify the Pin Multiplexing Register (PMR) and Miscellaneous Config&lt;br /&gt;
 Register (MCR) in the Config file and to modify the irq assignments.&lt;br /&gt;
 &lt;br /&gt;
 Depending on what you want to do, there are a few limitations with&lt;br /&gt;
 the current LinuxBIOS on the SC1200: &lt;br /&gt;
 &lt;br /&gt;
    There is no video support in LinuxBIOS itself, so you won't get&lt;br /&gt;
    any video until you have loaded the NatSemi Geode Linux&lt;br /&gt;
    framebuffer driver (can be found at www.linux4.tv under the&lt;br /&gt;
    heading SP1SC10 Platform Image).&lt;br /&gt;
 &lt;br /&gt;
    There is no SMM/VSA support at all, this means that anything&lt;br /&gt;
    relying on it won't work.  What this means is that Audio won't&lt;br /&gt;
    work.&lt;br /&gt;
 &lt;br /&gt;
 Other than that everything works fine, IDE in PIO mode, the PCI bus,&lt;br /&gt;
 watchdog, GPIOs, everything.&lt;br /&gt;
 &lt;br /&gt;
  /Christer&lt;br /&gt;
 &lt;br /&gt;
 -- &lt;br /&gt;
 &amp;quot;Just how much can I get away with and still go to heaven?&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 Freelance consultant specializing in device driver programming for Linux &lt;br /&gt;
 Christer Weinigel   http://www.weinigel.se&lt;br /&gt;
 _______________________________________________&lt;br /&gt;
 Linuxbios mailing list&lt;br /&gt;
 Linuxbios@clustermatic.org&lt;br /&gt;
 http://www.clustermatic.org/mailman/listinfo/linuxbios&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== How do I set up testbios? ===&lt;br /&gt;
&lt;br /&gt;
 From daubin@actuality-systems.com Wed Oct  6 10:23:10 2004&lt;br /&gt;
 Date: Tue, 5 Oct 2004 15:19:24 -0400&lt;br /&gt;
 From: Dave Aubin &lt;br /&gt;
 To: linuxbios@clustermatic.org&lt;br /&gt;
 Subject: RE: Testbios help with nvidia 6800Gt and simple how to&lt;br /&gt;
 &lt;br /&gt;
 I've taken the time to put together a simple testbios faq.&lt;br /&gt;
 I hope it is helpful.  Feedback and additions are welcome. &lt;br /&gt;
 &lt;br /&gt;
 Thanks,&lt;br /&gt;
 Dave&lt;br /&gt;
 &lt;br /&gt;
==== Testbios (vgabios) Faq ====&lt;br /&gt;
&lt;br /&gt;
Date: 10/5/2004&lt;br /&gt;
Author(s): David Aubin  daubin@actuality-systems.com&lt;br /&gt;
&lt;br /&gt;
Purpose:  Testbios is an i386 emulator that sits on top of userspace linux.  It's primary purpose is to provide program video rom's in to the cached memory area.&lt;br /&gt;
&lt;br /&gt;
===== Where to obtain testbios =====&lt;br /&gt;
&lt;br /&gt;
Testbios(vgabios) can be retrieved from the linuxbios/freebios source tree: [http://www.linuxbios.org/developer/download/index.html]&lt;br /&gt;
&lt;br /&gt;
===== Prerequisites =====&lt;br /&gt;
&lt;br /&gt;
You must have installed pci-utils&lt;br /&gt;
* Get http://atrey.karlin.mff.cuni.cz/~mj/pciutils.shtml&lt;br /&gt;
&lt;br /&gt;
===== How to build testbios =====&lt;br /&gt;
* cd freebios/util/vgabios&lt;br /&gt;
* Edit ./Makefile and fill in the correct values for your environment (I build on a 64 AMD so my makefile looks like this)&lt;br /&gt;
&lt;br /&gt;
Begin ./Makefile for x64:&lt;br /&gt;
 CC       =  gcc&lt;br /&gt;
 ARCH     := $(shell uname -m | sed -e s,i[3456789]86,i386,)&lt;br /&gt;
 INCLUDE  =  -I ../pciutils-2.1.11&lt;br /&gt;
 CFLAGS   =  -Wall -Ix86emu/include -O2 -g $(INCLUDE)&lt;br /&gt;
 &lt;br /&gt;
 INTOBJS  =  int10.o int15.o int16.o int1a.o inte6.o&lt;br /&gt;
 OBJECTS  =  testbios.o helper_exec.o helper_mem.o $(INTOBJS)&lt;br /&gt;
 LDFLAGS  =  -static-libgcc -static&lt;br /&gt;
 &lt;br /&gt;
 LIBS     =  x86emu/src/x86emu/libx86emu.a ../pciutils-2.1.11/lib/libpci.a&lt;br /&gt;
 &lt;br /&gt;
 # user space pci is the only option right now.&lt;br /&gt;
 OBJECTS += pci-userspace.o&lt;br /&gt;
 &lt;br /&gt;
 ifeq ($(shell if test &amp;quot;$(ARCH)&amp;quot; == &amp;quot;x86_64&amp;quot; ; then echo 1; fi), 1)&lt;br /&gt;
         CFLAGS +=-m32 -march=i386&lt;br /&gt;
         endif&lt;br /&gt;
 &lt;br /&gt;
         all: testbios&lt;br /&gt;
 &lt;br /&gt;
         testbios: $(OBJECTS) $(LIBS)&lt;br /&gt;
                 $(CC) $(CFLAGS) -o testbios $(OBJECTS) $(LDFLAGS)&lt;br /&gt;
 $(LIBS)&lt;br /&gt;
 &lt;br /&gt;
 helper_exec.o: helper_exec.c test.h&lt;br /&gt;
 &lt;br /&gt;
 x86emu/src/x86emu/libx86emu.a:&lt;br /&gt;
         $(MAKE) -C x86emu/src/x86emu/ -f makefile.linux&lt;br /&gt;
 &lt;br /&gt;
         clean:&lt;br /&gt;
                 $(MAKE) -C x86emu/src/x86emu/ -f makefile.linux clean&lt;br /&gt;
                 rm -f *.o *~ testbios &lt;br /&gt;
 &lt;br /&gt;
         distclean: clean&lt;br /&gt;
                 $(MAKE) -C x86emu/src/x86emu/ -f makefile.linux clean&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
End ./Makefile&lt;br /&gt;
&lt;br /&gt;
* Edit ~vgabios/x86emu/src/x86emu/makefile.linux and fill in the correct values for your environment (I build on a 64 AMD so my makefile looks like this)&lt;br /&gt;
&lt;br /&gt;
Begin ~vgabios/x86emu/src/x86emu/makefile.linux:&lt;br /&gt;
 #############################################################################&lt;br /&gt;
 #&lt;br /&gt;
 #                                               Realmode X86 Emulator Library&lt;br /&gt;
 #&lt;br /&gt;
 #               Copyright (C) 1996-1999 SciTech Software, Inc.&lt;br /&gt;
 #&lt;br /&gt;
 #&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;========================================================================&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 #&lt;br /&gt;
 #  Permission to use, copy, modify, distribute, and sell this software and&lt;br /&gt;
 #  its documentation for any purpose is hereby granted without fee,&lt;br /&gt;
 #  provided that the above copyright notice appear in all copies and that&lt;br /&gt;
 #  both that copyright notice and this permission notice appear in&lt;br /&gt;
 #  supporting documentation, and that the name of the authors not be used&lt;br /&gt;
 #  in advertising or publicity pertaining to distribution of the software&lt;br /&gt;
 #  without specific, written prior permission.  The authors makes no&lt;br /&gt;
 #  representations about the suitability of this software for any purpose.&lt;br /&gt;
 #  It is provided &amp;quot;as is&amp;quot; without express or implied warranty.&lt;br /&gt;
 #&lt;br /&gt;
 #  THE AUTHORS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,&lt;br /&gt;
 #  INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO&lt;br /&gt;
 #  EVENT SHALL THE AUTHORS BE LIABLE FOR ANY SPECIAL, INDIRECT OR&lt;br /&gt;
 #  CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF&lt;br /&gt;
 #  USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR&lt;br /&gt;
 #  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR&lt;br /&gt;
 #  PERFORMANCE OF THIS SOFTWARE.&lt;br /&gt;
 #&lt;br /&gt;
 #&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;========================================================================&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 #&lt;br /&gt;
 # Descripton:   Linux specific makefile for the x86emu library.&lt;br /&gt;
 #&lt;br /&gt;
 #############################################################################&lt;br /&gt;
 &lt;br /&gt;
 TARGETLIB = libx86emu.a&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 OBJS=\&lt;br /&gt;
 debug.o \&lt;br /&gt;
 decode.o \&lt;br /&gt;
 fpu.o \&lt;br /&gt;
 ops.o \&lt;br /&gt;
 ops2.o \&lt;br /&gt;
 prim_ops.o \&lt;br /&gt;
 sys.o&lt;br /&gt;
 &lt;br /&gt;
 $(TARGETLIB): $(OBJS)&lt;br /&gt;
         ar rv $(TARGETLIB) $(OBJS)&lt;br /&gt;
 &lt;br /&gt;
        INCS   = -I. -Ix86emu -I../../include&lt;br /&gt;
        CFLAGS += -D__DRIVER__ -DFORCE_POST -D_CEXPORT= -DNO_LONG_LONG -DDEBUG&lt;br /&gt;
        ARCH   := $(shell uname -m | sed -e s,i[3456789]86,i386,)&lt;br /&gt;
        ifeq ($(shell if test &amp;quot;$(ARCH)&amp;quot; == &amp;quot;x86_64&amp;quot; ; then echo 1; fi), 1)&lt;br /&gt;
                CFLAGS +=-m32 -march=i386&lt;br /&gt;
                endif&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 .c.o:&lt;br /&gt;
 #       gcc -m32 -march=i386 -g -O -Wall -c $(CFLAGS) $(INCS) $*.c&lt;br /&gt;
         gcc -g -O -Wall -c $(CFLAGS) $(INCS) $*.c&lt;br /&gt;
 &lt;br /&gt;
 .cpp.o:&lt;br /&gt;
 #       gcc -m32 -march=i386 -c $(CFLAGS) $(INCS) $*.cpp&lt;br /&gt;
         gcc -c $(CFLAGS) $(INCS) $*.cpp &lt;br /&gt;
 &lt;br /&gt;
 clean:&lt;br /&gt;
         rm -f *.a *.o&lt;br /&gt;
 &lt;br /&gt;
 validate:       validate.o libx86emu.a&lt;br /&gt;
         gcc -o validate validate.o -lx86emu -L.&lt;br /&gt;
 &lt;br /&gt;
End ~vgabios/x86emu/src/x86emu/makefile.linux&lt;br /&gt;
&lt;br /&gt;
* Once built you could have a 32bit testbios executable made. Depending on your embedded environment you might want to have it built shared as the above example makes it static.  Just remove -static-libgcc -static from the LDFLAGS on ./Makefile if you wish to have it built shared.&lt;br /&gt;
&lt;br /&gt;
===== How to retrieve a good video bios =====&lt;br /&gt;
There are sites that have video bios roms on their website. (I know of this one for nvidia cards: [http://whitebunny.demon.nl/hardware/chipset_nvidia.html])&lt;br /&gt;
&lt;br /&gt;
However you should be able to retrieve your own video bios as well with linux.&lt;br /&gt;
* Boot up a machine with a commercial bios (not linux bios) with the video card you wish to work under linux bios.&lt;br /&gt;
** From the command line enter:&amp;lt;br /&amp;gt;&amp;lt;code&amp;gt;dd if=/dev/mem of=vgabios.bin skip=1536 count=128 or &amp;lt;br /&amp;gt;dd if=/dev/mem of=vgabios.bin bs=1k count=64 skip=786432&amp;lt;br /&amp;gt;This assumes you card's bios is cached in 0xc0000.  You&amp;lt;br /&amp;gt;can see where and how much your card's bios is using by&amp;lt;br /&amp;gt;doing a cat iomem | grep &amp;quot;Video ROM&amp;quot;&amp;lt;br /&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
*** dd Explained (man dd to learn more):&lt;br /&gt;
****  if is the location to retrieve from.&lt;br /&gt;
****  of is the output file (your rom image)&lt;br /&gt;
****  skip jumps n blocks where the default n is 512 bytes&lt;br /&gt;
****  count is how many blocks you wish to read&lt;br /&gt;
****  bs is the block size&lt;br /&gt;
** You now have a video bios image&lt;br /&gt;
&lt;br /&gt;
===== How to use testbios =====&lt;br /&gt;
* Currently testbios only works from user space linux (10/4/04)&lt;br /&gt;
* Example from a linux command line or script enter the following to get your video bios programmed:&amp;lt;br /&amp;gt;&amp;lt;code&amp;gt;./testbios -s 65536 --abseg /dev/mem ./vgabios.bin&amp;lt;/code&amp;gt;&lt;br /&gt;
** Testbios explained&lt;br /&gt;
***  -s  how much of the video bios is there&lt;br /&gt;
***  --abseg where would you like to write this (/dev/mem default)&lt;br /&gt;
***  filename of video bios&lt;br /&gt;
***  -d diag mode &lt;br /&gt;
****  How to get pci busdevfn&lt;br /&gt;
****  lspci&lt;br /&gt;
****  look for your video card&lt;br /&gt;
***** Example:&amp;lt;br /&amp;gt;&amp;lt;code&amp;gt;2:00:00&amp;lt;br /&amp;gt;2 (00 &amp;lt;&amp;lt; 3) | 00 = 0x200&amp;lt;/code&amp;gt;&lt;br /&gt;
***** Example:&amp;lt;br /&amp;gt;&amp;lt;code&amp;gt;00:12.0:&amp;lt;br /&amp;gt;0 (12 &amp;lt;&amp;lt; 3) | 0 = 0x90&amp;lt;/code&amp;gt;&lt;br /&gt;
*** -t dump &lt;br /&gt;
*** -c codesegment Where do you want to start, default is 0xc0000&lt;br /&gt;
*** -b base  Where do you want base to be default is 0xc000&lt;br /&gt;
*** -i instruction pointer usually left off as the default&lt;br /&gt;
&lt;br /&gt;
==== Followup to Testbios FAQ ====&lt;br /&gt;
 -----Original Message-----&lt;br /&gt;
 From: linuxbios-admin@clustermatic.org&lt;br /&gt;
 [mailto:linuxbios-admin@clustermatic.org] On Behalf Of Dave Aubin&lt;br /&gt;
 Sent: Tuesday, October 05, 2004 2:22 PM&lt;br /&gt;
 To: Richard Smith&lt;br /&gt;
 Cc: linuxbios@clustermatic.org&lt;br /&gt;
 Subject: RE: Testbios help with nvidia 6800Gt and simple how to&lt;br /&gt;
 &lt;br /&gt;
 Hi,&lt;br /&gt;
 &lt;br /&gt;
 Thank you:)  Yes, it was at 0xc0000-0xc7fff, which is only 32k.&lt;br /&gt;
 But the image I got from the windows tool was 64k (double 8000).&lt;br /&gt;
 Weird.  I would like to stay away from window tools.&lt;br /&gt;
 The info you provided is nice.  I wish there was a way for us To make&lt;br /&gt;
 a faq and we could add this to the testbios faq.  There Is a lot of good&lt;br /&gt;
 info on the clustermatic list, but it is all Dispersed.  &lt;br /&gt;
 Ron if I write a simple faq can you provide some mechanism to Allow&lt;br /&gt;
 updates to it?&lt;br /&gt;
 &lt;br /&gt;
 Thanks,&lt;br /&gt;
 Dave &lt;br /&gt;
 &lt;br /&gt;
 -----Original Message-----&lt;br /&gt;
 From: Richard Smith [mailto:rsmith@bitworks.com]&lt;br /&gt;
 Sent: Tuesday, October 05, 2004 2:16 PM&lt;br /&gt;
 To: Dave Aubin&lt;br /&gt;
 Cc: linuxbios@clustermatic.org&lt;br /&gt;
 Subject: Re: Testbios help with nvidia 6800Gt and simple how to&lt;br /&gt;
 &lt;br /&gt;
 Dave Aubin wrote:&lt;br /&gt;
 &lt;br /&gt;
 &amp;gt; It seems my dd returned an unusable binary.  I found a good binary for&lt;br /&gt;
 &lt;br /&gt;
 &amp;gt; The nvidia card from here:&lt;br /&gt;
 &amp;gt; http://whitebunny.demon.nl/hardware/chipset_nvidia.html&lt;br /&gt;
 &amp;gt; &lt;br /&gt;
 &lt;br /&gt;
 I was wondering about your dd command that but I had not had a chance to&lt;br /&gt;
 respond yet.&lt;br /&gt;
 &lt;br /&gt;
 This is what I use:&lt;br /&gt;
 &lt;br /&gt;
 dd if=/dev/mem of=vbios.bin bs=1k count=64 skip=786432&lt;br /&gt;
 &lt;br /&gt;
 That will rip the bios from 0x0c0000.  You can verify that you actually&lt;br /&gt;
 have bios there with&lt;br /&gt;
 &lt;br /&gt;
   'hd -s 0x0c0000 -n 256 /dev/mem'&lt;br /&gt;
 &lt;br /&gt;
 in some cases it may be located at 0x0e0000 rather than 0x0c0000.&lt;br /&gt;
 &lt;br /&gt;
 It should start with the 0x55aa (Little endian) or 0xaa55 (big endian)&lt;br /&gt;
 and futher on you should see some text identifying the bios.&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 --&lt;br /&gt;
 Richard A. Smith&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 _______________________________________________&lt;br /&gt;
 Linuxbios mailing list&lt;br /&gt;
 Linuxbios@clustermatic.org&lt;br /&gt;
 http://www.clustermatic.org/mailman/listinfo/linuxbios&lt;/div&gt;</summary>
		<author><name>Jcarr</name></author>	</entry>

	<entry>
		<id>http://www.coreboot.org/VGA_support</id>
		<title>VGA support</title>
		<link rel="alternate" type="text/html" href="http://www.coreboot.org/VGA_support"/>
				<updated>2005-08-16T01:04:45Z</updated>
		
		<summary type="html">&lt;p&gt;Jcarr: add a perl script to dump out the video&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;There are two kinds of VGA support we have&lt;br /&gt;
     1. onboard vga&lt;br /&gt;
     2. addon card.&lt;br /&gt;
&lt;br /&gt;
You need to enable two CONFIG options in your Mainboard Option.lb&lt;br /&gt;
     #VGA Console&lt;br /&gt;
     option CONFIG_CONSOLE_VGA=1&lt;br /&gt;
     option CONFIG_PCI_ROM_RUN=1&lt;br /&gt;
&lt;br /&gt;
CONFIG_PCI_ROM_RUN will use the embedded x86 emulator to run the BIOS image in&lt;br /&gt;
the expansion ROM of PCI device. CONFIG_CONSOLE_VGA will redirect console messages&lt;br /&gt;
to the VGA screen once VGA card is initialized.&lt;br /&gt;
&lt;br /&gt;
For addon VGA cards, you don't have to do anyting else besides these two CONFIG options.&lt;br /&gt;
If your mainboard has an onboard VGA chip and you insert another VGA addon card, the addon&lt;br /&gt;
VGA card will be used instead of the onboard VGA chip.&lt;br /&gt;
&lt;br /&gt;
If you want to use the onboard VGA chip, you have to do the following in additional&lt;br /&gt;
to the CONFIG options described above.&lt;br /&gt;
&lt;br /&gt;
1. in MB Config.lb  You need to specify for your onboard VGA&lt;br /&gt;
                                       device pci 9.0 on  # PCI&lt;br /&gt;
                                               chip drivers/pci/onboard&lt;br /&gt;
                                                       device pci 9.0 on end&lt;br /&gt;
                                                       register &amp;quot;rom_address&amp;quot; = &amp;quot;0xfff80000&amp;quot; #512k image&lt;br /&gt;
                                                       #register &amp;quot;rom_address&amp;quot; = &amp;quot;0xfff00000&amp;quot; #1M image&lt;br /&gt;
                                               end&lt;br /&gt;
                                       end&lt;br /&gt;
&lt;br /&gt;
Please make sure the device num should be right. Otherwise it can not&lt;br /&gt;
get exact ROM address.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2. You still need to modify your target Config.lb.&lt;br /&gt;
in normal section&lt;br /&gt;
&lt;br /&gt;
       romimage &amp;quot;normal&amp;quot;&lt;br /&gt;
       #       48K for SCSI FW or ATI ROM&lt;br /&gt;
       option ROM_SIZE = 475136&lt;br /&gt;
&lt;br /&gt;
It will leave space for vga option rom in flash.&lt;br /&gt;
&lt;br /&gt;
3. So at last for your linuxbios.rom, you should do&lt;br /&gt;
      cat atix.rom linuxbios.rom &amp;gt; final_linuxbios.rom&lt;br /&gt;
&lt;br /&gt;
you need to make sure the final_linuxbios.rom size is 512k or 1M.&lt;br /&gt;
&lt;br /&gt;
please use dd to get you atix.rom when running Normal BIOS.&lt;br /&gt;
&lt;br /&gt;
===== How to retrieve a good video bios =====&lt;br /&gt;
There are sites that have video bios roms on their website. (I know of this one for nvidia cards: [http://whitebunny.demon.nl/hardware/chipset_nvidia.html])&lt;br /&gt;
&lt;br /&gt;
However you should be able to retrieve your own video bios as well with linux.&lt;br /&gt;
* Boot up a machine with a commercial bios (not linux bios) with the video card you wish to work under linux bios.&lt;br /&gt;
* From the command line enter:&amp;lt;br /&amp;gt;&amp;lt;code&amp;gt;dd if=/dev/mem of=vgabios.bin skip=1536 count=128 or &amp;lt;br /&amp;gt;dd if=/dev/mem of=vgabios.bin bs=1k count=64 skip=786432&amp;lt;br /&amp;gt;This assumes you card's bios is cached in 0xc0000.  You&amp;lt;br /&amp;gt;can see where and how much your card's bios is using by&amp;lt;br /&amp;gt;doing a cat iomem | grep &amp;quot;Video ROM&amp;quot;&amp;lt;br /&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
** dd Explained (man dd to learn more):&lt;br /&gt;
***  if is the location to retrieve from.&lt;br /&gt;
***  of is the output file (your rom image)&lt;br /&gt;
***  skip jumps n blocks where the default n is 512 bytes&lt;br /&gt;
***  count is how many blocks you wish to read&lt;br /&gt;
***  bs is the block size&lt;br /&gt;
* You now have a video bios image&lt;br /&gt;
&lt;br /&gt;
===== Perl script to dump out your video bios =====&lt;br /&gt;
&lt;br /&gt;
This is a simple script that computes the size and offset then uses&lt;br /&gt;
the command dd to dump your video bios to a file.&lt;br /&gt;
&lt;br /&gt;
 #!/usr/bin/perl&lt;br /&gt;
 &lt;br /&gt;
 ($range, $info) = split /:/, `grep &amp;quot;Video ROM&amp;quot; /proc/iomem`;&lt;br /&gt;
 ($start, $end) = split /-/, $range;&lt;br /&gt;
 &lt;br /&gt;
 if( $start eq &amp;quot;&amp;quot; ) {&lt;br /&gt;
        print &amp;quot;Couldn't find Video ROM in /proc/iomem\n&amp;quot;;&lt;br /&gt;
        exit;&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 $offset = hex &amp;quot;0x$start&amp;quot;;&lt;br /&gt;
 $tmp = hex &amp;quot;0x$end&amp;quot;;&lt;br /&gt;
 $size = 1 + $tmp - $offset;&lt;br /&gt;
 &lt;br /&gt;
 $command = &amp;quot;dd if=/dev/mem of=saved_vgabios.bin bs=1c count=$size skip=$offset&amp;quot;;&lt;br /&gt;
 print &amp;quot;range = $range, start = $start, size = $size\n&amp;quot;;&lt;br /&gt;
 print &amp;quot;$command\n&amp;quot;;&lt;br /&gt;
 system $command;&lt;/div&gt;</summary>
		<author><name>Jcarr</name></author>	</entry>

	<entry>
		<id>http://www.coreboot.org/VGA_support</id>
		<title>VGA support</title>
		<link rel="alternate" type="text/html" href="http://www.coreboot.org/VGA_support"/>
				<updated>2005-08-16T01:04:18Z</updated>
		
		<summary type="html">&lt;p&gt;Jcarr: add a perl script to dump out the video&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;There are two kinds of VGA support we have&lt;br /&gt;
     1. onboard vga&lt;br /&gt;
     2. addon card.&lt;br /&gt;
&lt;br /&gt;
You need to enable two CONFIG options in your Mainboard Option.lb&lt;br /&gt;
     #VGA Console&lt;br /&gt;
     option CONFIG_CONSOLE_VGA=1&lt;br /&gt;
     option CONFIG_PCI_ROM_RUN=1&lt;br /&gt;
&lt;br /&gt;
CONFIG_PCI_ROM_RUN will use the embedded x86 emulator to run the BIOS image in&lt;br /&gt;
the expansion ROM of PCI device. CONFIG_CONSOLE_VGA will redirect console messages&lt;br /&gt;
to the VGA screen once VGA card is initialized.&lt;br /&gt;
&lt;br /&gt;
For addon VGA cards, you don't have to do anyting else besides these two CONFIG options.&lt;br /&gt;
If your mainboard has an onboard VGA chip and you insert another VGA addon card, the addon&lt;br /&gt;
VGA card will be used instead of the onboard VGA chip.&lt;br /&gt;
&lt;br /&gt;
If you want to use the onboard VGA chip, you have to do the following in additional&lt;br /&gt;
to the CONFIG options described above.&lt;br /&gt;
&lt;br /&gt;
1. in MB Config.lb  You need to specify for your onboard VGA&lt;br /&gt;
                                       device pci 9.0 on  # PCI&lt;br /&gt;
                                               chip drivers/pci/onboard&lt;br /&gt;
                                                       device pci 9.0 on end&lt;br /&gt;
                                                       register &amp;quot;rom_address&amp;quot; = &amp;quot;0xfff80000&amp;quot; #512k image&lt;br /&gt;
                                                       #register &amp;quot;rom_address&amp;quot; = &amp;quot;0xfff00000&amp;quot; #1M image&lt;br /&gt;
                                               end&lt;br /&gt;
                                       end&lt;br /&gt;
&lt;br /&gt;
Please make sure the device num should be right. Otherwise it can not&lt;br /&gt;
get exact ROM address.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2. You still need to modify your target Config.lb.&lt;br /&gt;
in normal section&lt;br /&gt;
&lt;br /&gt;
       romimage &amp;quot;normal&amp;quot;&lt;br /&gt;
       #       48K for SCSI FW or ATI ROM&lt;br /&gt;
       option ROM_SIZE = 475136&lt;br /&gt;
&lt;br /&gt;
It will leave space for vga option rom in flash.&lt;br /&gt;
&lt;br /&gt;
3. So at last for your linuxbios.rom, you should do&lt;br /&gt;
      cat atix.rom linuxbios.rom &amp;gt; final_linuxbios.rom&lt;br /&gt;
&lt;br /&gt;
you need to make sure the final_linuxbios.rom size is 512k or 1M.&lt;br /&gt;
&lt;br /&gt;
please use dd to get you atix.rom when running Normal BIOS.&lt;br /&gt;
&lt;br /&gt;
===== How to retrieve a good video bios =====&lt;br /&gt;
There are sites that have video bios roms on their website. (I know of this one for nvidia cards: [http://whitebunny.demon.nl/hardware/chipset_nvidia.html])&lt;br /&gt;
&lt;br /&gt;
However you should be able to retrieve your own video bios as well with linux.&lt;br /&gt;
* Boot up a machine with a commercial bios (not linux bios) with the video card you wish to work under linux bios.&lt;br /&gt;
* From the command line enter:&amp;lt;br /&amp;gt;&amp;lt;code&amp;gt;dd if=/dev/mem of=vgabios.bin skip=1536 count=128 or &amp;lt;br /&amp;gt;dd if=/dev/mem of=vgabios.bin bs=1k count=64 skip=786432&amp;lt;br /&amp;gt;This assumes you card's bios is cached in 0xc0000.  You&amp;lt;br /&amp;gt;can see where and how much your card's bios is using by&amp;lt;br /&amp;gt;doing a cat iomem | grep &amp;quot;Video ROM&amp;quot;&amp;lt;br /&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
** dd Explained (man dd to learn more):&lt;br /&gt;
***  if is the location to retrieve from.&lt;br /&gt;
***  of is the output file (your rom image)&lt;br /&gt;
***  skip jumps n blocks where the default n is 512 bytes&lt;br /&gt;
***  count is how many blocks you wish to read&lt;br /&gt;
***  bs is the block size&lt;br /&gt;
* You now have a video bios image&lt;br /&gt;
&lt;br /&gt;
===== Perl script to dump out your video bios =====&lt;br /&gt;
&lt;br /&gt;
This is a simple script that computes the size and offset then uses&lt;br /&gt;
the command dd to dump your video bios to a file.&lt;br /&gt;
&lt;br /&gt;
 #!/usr/bin/perl&lt;br /&gt;
&lt;br /&gt;
 ($range, $info) = split /:/, `grep &amp;quot;Video ROM&amp;quot; /proc/iomem`;&lt;br /&gt;
 ($start, $end) = split /-/, $range;&lt;br /&gt;
&lt;br /&gt;
 if( $start eq &amp;quot;&amp;quot; ) {&lt;br /&gt;
        print &amp;quot;Couldn't find Video ROM in /proc/iomem\n&amp;quot;;&lt;br /&gt;
        exit;&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
 $offset = hex &amp;quot;0x$start&amp;quot;;&lt;br /&gt;
 $tmp = hex &amp;quot;0x$end&amp;quot;;&lt;br /&gt;
 $size = 1 + $tmp - $offset;&lt;br /&gt;
&lt;br /&gt;
 $command = &amp;quot;dd if=/dev/mem of=saved_vgabios.bin bs=1c count=$size skip=$offset&amp;quot;;&lt;br /&gt;
 print &amp;quot;range = $range, start = $start, size = $size\n&amp;quot;;&lt;br /&gt;
 print &amp;quot;$command\n&amp;quot;;&lt;br /&gt;
 system $command;&lt;/div&gt;</summary>
		<author><name>Jcarr</name></author>	</entry>

	<entry>
		<id>http://www.coreboot.org/VGA_support</id>
		<title>VGA support</title>
		<link rel="alternate" type="text/html" href="http://www.coreboot.org/VGA_support"/>
				<updated>2005-08-16T00:58:42Z</updated>
		
		<summary type="html">&lt;p&gt;Jcarr: add a perl script to dump out the video&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;There are two kinds of VGA support we have&lt;br /&gt;
     1. onboard vga&lt;br /&gt;
     2. addon card.&lt;br /&gt;
&lt;br /&gt;
You need to enable two CONFIG options in your Mainboard Option.lb&lt;br /&gt;
     #VGA Console&lt;br /&gt;
     option CONFIG_CONSOLE_VGA=1&lt;br /&gt;
     option CONFIG_PCI_ROM_RUN=1&lt;br /&gt;
&lt;br /&gt;
CONFIG_PCI_ROM_RUN will use the embedded x86 emulator to run the BIOS image in&lt;br /&gt;
the expansion ROM of PCI device. CONFIG_CONSOLE_VGA will redirect console messages&lt;br /&gt;
to the VGA screen once VGA card is initialized.&lt;br /&gt;
&lt;br /&gt;
For addon VGA cards, you don't have to do anyting else besides these two CONFIG options.&lt;br /&gt;
If your mainboard has an onboard VGA chip and you insert another VGA addon card, the addon&lt;br /&gt;
VGA card will be used instead of the onboard VGA chip.&lt;br /&gt;
&lt;br /&gt;
If you want to use the onboard VGA chip, you have to do the following in additional&lt;br /&gt;
to the CONFIG options described above.&lt;br /&gt;
&lt;br /&gt;
1. in MB Config.lb  You need to specify for your onboard VGA&lt;br /&gt;
                                       device pci 9.0 on  # PCI&lt;br /&gt;
                                               chip drivers/pci/onboard&lt;br /&gt;
                                                       device pci 9.0 on end&lt;br /&gt;
                                                       register &amp;quot;rom_address&amp;quot; = &amp;quot;0xfff80000&amp;quot; #512k image&lt;br /&gt;
                                                       #register &amp;quot;rom_address&amp;quot; = &amp;quot;0xfff00000&amp;quot; #1M image&lt;br /&gt;
                                               end&lt;br /&gt;
                                       end&lt;br /&gt;
&lt;br /&gt;
Please make sure the device num should be right. Otherwise it can not&lt;br /&gt;
get exact ROM address.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2. You still need to modify your target Config.lb.&lt;br /&gt;
in normal section&lt;br /&gt;
&lt;br /&gt;
       romimage &amp;quot;normal&amp;quot;&lt;br /&gt;
       #       48K for SCSI FW or ATI ROM&lt;br /&gt;
       option ROM_SIZE = 475136&lt;br /&gt;
&lt;br /&gt;
It will leave space for vga option rom in flash.&lt;br /&gt;
&lt;br /&gt;
3. So at last for your linuxbios.rom, you should do&lt;br /&gt;
      cat atix.rom linuxbios.rom &amp;gt; final_linuxbios.rom&lt;br /&gt;
&lt;br /&gt;
you need to make sure the final_linuxbios.rom size is 512k or 1M.&lt;br /&gt;
&lt;br /&gt;
please use dd to get you atix.rom when running Normal BIOS.&lt;br /&gt;
&lt;br /&gt;
===== How to retrieve a good video bios =====&lt;br /&gt;
There are sites that have video bios roms on their website. (I know of this one for nvidia cards: [http://whitebunny.demon.nl/hardware/chipset_nvidia.html])&lt;br /&gt;
&lt;br /&gt;
However you should be able to retrieve your own video bios as well with linux.&lt;br /&gt;
* Boot up a machine with a commercial bios (not linux bios) with the video card you wish to work under linux bios.&lt;br /&gt;
* From the command line enter:&amp;lt;br /&amp;gt;&amp;lt;code&amp;gt;dd if=/dev/mem of=vgabios.bin skip=1536 count=128 or &amp;lt;br /&amp;gt;dd if=/dev/mem of=vgabios.bin bs=1k count=64 skip=786432&amp;lt;br /&amp;gt;This assumes you card's bios is cached in 0xc0000.  You&amp;lt;br /&amp;gt;can see where and how much your card's bios is using by&amp;lt;br /&amp;gt;doing a cat iomem | grep &amp;quot;Video ROM&amp;quot;&amp;lt;br /&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
** dd Explained (man dd to learn more):&lt;br /&gt;
***  if is the location to retrieve from.&lt;br /&gt;
***  of is the output file (your rom image)&lt;br /&gt;
***  skip jumps n blocks where the default n is 512 bytes&lt;br /&gt;
***  count is how many blocks you wish to read&lt;br /&gt;
***  bs is the block size&lt;br /&gt;
* You now have a video bios image&lt;br /&gt;
&lt;br /&gt;
===== Perl script to dump out your video bios =====&lt;br /&gt;
&lt;br /&gt;
This is a simple script that computes the size and offset then uses&lt;br /&gt;
the command dd to dump your video bios to a file.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;&lt;br /&gt;
#!/usr/bin/perl&lt;br /&gt;
&lt;br /&gt;
($range, $info) = split /:/, `grep &amp;quot;Video ROM&amp;quot; /proc/iomem`;&lt;br /&gt;
($start, $end) = split /-/, $range;&lt;br /&gt;
&lt;br /&gt;
if( $start eq &amp;quot;&amp;quot; ) {&lt;br /&gt;
        print &amp;quot;Couldn't find Video ROM in /proc/iomem\n&amp;quot;;&lt;br /&gt;
        exit;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
$offset = hex &amp;quot;0x$start&amp;quot;;&lt;br /&gt;
$tmp = hex &amp;quot;0x$end&amp;quot;;&lt;br /&gt;
$size = 1 + $tmp - $offset;&lt;br /&gt;
&lt;br /&gt;
$command = &amp;quot;dd if=/dev/mem of=saved_vgabios.bin bs=1c count=$size skip=$offset&amp;quot;;&lt;br /&gt;
print &amp;quot;range = $range, start = $start, size = $size\n&amp;quot;;&lt;br /&gt;
print &amp;quot;$command\n&amp;quot;;&lt;br /&gt;
system $command;&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jcarr</name></author>	</entry>

	<entry>
		<id>http://www.coreboot.org/JTAG/BSDL_Guide</id>
		<title>JTAG/BSDL Guide</title>
		<link rel="alternate" type="text/html" href="http://www.coreboot.org/JTAG/BSDL_Guide"/>
				<updated>2005-08-16T00:06:56Z</updated>
		
		<summary type="html">&lt;p&gt;Jcarr: /* ''A sample session'' */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= ''Introduction'' =&lt;br /&gt;
&lt;br /&gt;
JTAG ports are still very uncommon on x86 hardware. However, most hardware designs are moving in that direction so future x86 chips will probably also have JTAG ports. &lt;br /&gt;
&lt;br /&gt;
= ''What is JTAG?'' =&lt;br /&gt;
&lt;br /&gt;
JTAG is an IEEE standard that has been adopted to provide a consistant way of programming and debugging chips. JTAG is supported by by a large number of chips and manufacturers. They include:&lt;br /&gt;
&lt;br /&gt;
* Many embedded PowerPC chips&lt;br /&gt;
* Most ARM chips&lt;br /&gt;
* Many flash chips&lt;br /&gt;
* Most FPGA's&lt;br /&gt;
&lt;br /&gt;
Using chips that support JTAG decreases software development time and decreases the costs of doing development. Chips that do not have JTAG support usually require expensive hardware to configure and debug them. (thousands to tens of thousands of dollars). This is prohibitive to most Linux developers.&lt;br /&gt;
&lt;br /&gt;
= ''Why JTAG?'' =&lt;br /&gt;
&lt;br /&gt;
If you are designing a new hardware and you are interested in supporting LinuxBIOS, you should make a JTAG port available and select chips which allow programming via JTAG. While this is not yet possible for higher end x86 chips, it is often possible for embedded designs.&lt;br /&gt;
&lt;br /&gt;
= ''How can I connect to a JTAG port from Linux?'' =&lt;br /&gt;
&lt;br /&gt;
For less than $20 you can buy a parallel to JTAG cable and be on your way. Once you have an adapter, you can use the jtag program that is part of the openwince sourceforge project.&lt;br /&gt;
&lt;br /&gt;
= ''I have the cable, now I can't talk to my chip.'' =&lt;br /&gt;
&lt;br /&gt;
The jtag program is still under development; lots of chips are not supported yet. Don't worry, you can add support for it. You need to find the corresponding BSDL file for the chip. Chip manufacturers provide BSDL files on their websites.&lt;br /&gt;
&lt;br /&gt;
= ''OK, I can see my chip over JTAG. Now what?'' =&lt;br /&gt;
&lt;br /&gt;
That depends on the chip. Some chips will let you program them, some CPU's will let you single step instructions and do debugging. It depends on the chip and the manufacturer. CPU's that support single stepping make BIOS development particularly easy.&lt;br /&gt;
&lt;br /&gt;
= ''Darn, my board doesn't have a JTAG port!'' =&lt;br /&gt;
= ''Darn, my chips don't work with JTAG!'' =&lt;br /&gt;
&lt;br /&gt;
Well, that's what being a smart consumer is about :) In general, don't buy hardware that isn't Linux friendly.&lt;br /&gt;
&lt;br /&gt;
= ''A sample session'' =&lt;br /&gt;
&lt;br /&gt;
Here is a sample session using the GPL'd jtag tool from within a bash shell when scanning the JTAG bus that has a Xilinx Spartan-3 FPGA &amp;amp; and Xilinx CPLD on it.&lt;br /&gt;
&lt;br /&gt;
  jtag&amp;gt; cable parallel 0x378 DLC5&lt;br /&gt;
  Initializing Xilinx DLC5 JTAG Parallel Cable III on parallel port at 0x378&lt;br /&gt;
  jtag&amp;gt; detect&lt;br /&gt;
  IR length: 14&lt;br /&gt;
  Chain length: 2&lt;br /&gt;
  Device Id: 00000101000001000110000010010011&lt;br /&gt;
    Manufacturer: Xilinx&lt;br /&gt;
    Unknown part!&lt;br /&gt;
  Device Id: 00010001010000101000000010010011&lt;br /&gt;
    Manufacturer: Xilinx&lt;br /&gt;
    Part:         xc3s1000_ft256&lt;br /&gt;
    Stepping:     0&lt;br /&gt;
    Filename:     /usr/share/jtag/xilinx/xc3s1000_ft256/xc3s1000_ft256&lt;br /&gt;
  chain.c(110) Part 0 without active instruction&lt;br /&gt;
  chain.c(133) Part 0 without active instruction&lt;br /&gt;
  chain.c(110) Part 0 without active instruction&lt;br /&gt;
  jtag&amp;gt; instruction SAMPLE/PRELOAD&lt;br /&gt;
  jtag&amp;gt; shift ir&lt;br /&gt;
  chain.c(110) Part 0 without active instruction&lt;br /&gt;
  jtag&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= ''External JTAG Links'' =&lt;br /&gt;
&lt;br /&gt;
* [http://www.intel.com/design/flcomp/applnots/29218602.PDF Intel's JTAG Guide]&lt;br /&gt;
* [http://ebsp.sourceforge.net/source/description.html The Experimental Boundary Scan project]&lt;br /&gt;
* [http://www.jtag.com/main.php jtag.com]&lt;br /&gt;
* [http://openwince.sourceforge.net/jtag/ Jtag tools for Linux]&lt;br /&gt;
* [http://packages.debian.org/testing/embedded/openwince-jtag JTAG tools packaged for debian]&lt;br /&gt;
* [http://www.arium.com/products/ecm50ice.html Arium ECM-50 (Intel JTAG/ITL hardware debugger)]&lt;/div&gt;</summary>
		<author><name>Jcarr</name></author>	</entry>

	<entry>
		<id>http://www.coreboot.org/JTAG/BSDL_Guide</id>
		<title>JTAG/BSDL Guide</title>
		<link rel="alternate" type="text/html" href="http://www.coreboot.org/JTAG/BSDL_Guide"/>
				<updated>2005-08-16T00:06:03Z</updated>
		
		<summary type="html">&lt;p&gt;Jcarr: add a sample JTAG session&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= ''Introduction'' =&lt;br /&gt;
&lt;br /&gt;
JTAG ports are still very uncommon on x86 hardware. However, most hardware designs are moving in that direction so future x86 chips will probably also have JTAG ports. &lt;br /&gt;
&lt;br /&gt;
= ''What is JTAG?'' =&lt;br /&gt;
&lt;br /&gt;
JTAG is an IEEE standard that has been adopted to provide a consistant way of programming and debugging chips. JTAG is supported by by a large number of chips and manufacturers. They include:&lt;br /&gt;
&lt;br /&gt;
* Many embedded PowerPC chips&lt;br /&gt;
* Most ARM chips&lt;br /&gt;
* Many flash chips&lt;br /&gt;
* Most FPGA's&lt;br /&gt;
&lt;br /&gt;
Using chips that support JTAG decreases software development time and decreases the costs of doing development. Chips that do not have JTAG support usually require expensive hardware to configure and debug them. (thousands to tens of thousands of dollars). This is prohibitive to most Linux developers.&lt;br /&gt;
&lt;br /&gt;
= ''Why JTAG?'' =&lt;br /&gt;
&lt;br /&gt;
If you are designing a new hardware and you are interested in supporting LinuxBIOS, you should make a JTAG port available and select chips which allow programming via JTAG. While this is not yet possible for higher end x86 chips, it is often possible for embedded designs.&lt;br /&gt;
&lt;br /&gt;
= ''How can I connect to a JTAG port from Linux?'' =&lt;br /&gt;
&lt;br /&gt;
For less than $20 you can buy a parallel to JTAG cable and be on your way. Once you have an adapter, you can use the jtag program that is part of the openwince sourceforge project.&lt;br /&gt;
&lt;br /&gt;
= ''I have the cable, now I can't talk to my chip.'' =&lt;br /&gt;
&lt;br /&gt;
The jtag program is still under development; lots of chips are not supported yet. Don't worry, you can add support for it. You need to find the corresponding BSDL file for the chip. Chip manufacturers provide BSDL files on their websites.&lt;br /&gt;
&lt;br /&gt;
= ''OK, I can see my chip over JTAG. Now what?'' =&lt;br /&gt;
&lt;br /&gt;
That depends on the chip. Some chips will let you program them, some CPU's will let you single step instructions and do debugging. It depends on the chip and the manufacturer. CPU's that support single stepping make BIOS development particularly easy.&lt;br /&gt;
&lt;br /&gt;
= ''Darn, my board doesn't have a JTAG port!'' =&lt;br /&gt;
= ''Darn, my chips don't work with JTAG!'' =&lt;br /&gt;
&lt;br /&gt;
Well, that's what being a smart consumer is about :) In general, don't buy hardware that isn't Linux friendly.&lt;br /&gt;
&lt;br /&gt;
= ''A sample session'' =&lt;br /&gt;
&lt;br /&gt;
Here is a sample session using the GPL'd jtag tool from within a bash shell when scanning the JTAG bus that has a Xilinx Spartan-3 FPGA &amp;amp; and Xilinx CPLD on it.&lt;br /&gt;
&lt;br /&gt;
jtag&amp;gt; cable parallel 0x378 DLC5&lt;br /&gt;
Initializing Xilinx DLC5 JTAG Parallel Cable III on parallel port at 0x378&lt;br /&gt;
jtag&amp;gt; detect&lt;br /&gt;
IR length: 14&lt;br /&gt;
Chain length: 2&lt;br /&gt;
Device Id: 00000101000001000110000010010011&lt;br /&gt;
  Manufacturer: Xilinx&lt;br /&gt;
  Unknown part!&lt;br /&gt;
Device Id: 00010001010000101000000010010011&lt;br /&gt;
  Manufacturer: Xilinx&lt;br /&gt;
  Part:         xc3s1000_ft256&lt;br /&gt;
  Stepping:     0&lt;br /&gt;
  Filename:     /usr/share/jtag/xilinx/xc3s1000_ft256/xc3s1000_ft256&lt;br /&gt;
chain.c(110) Part 0 without active instruction&lt;br /&gt;
chain.c(133) Part 0 without active instruction&lt;br /&gt;
chain.c(110) Part 0 without active instruction&lt;br /&gt;
jtag&amp;gt; instruction SAMPLE/PRELOAD&lt;br /&gt;
jtag&amp;gt; shift ir&lt;br /&gt;
chain.c(110) Part 0 without active instruction&lt;br /&gt;
jtag&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= ''External JTAG Links'' =&lt;br /&gt;
&lt;br /&gt;
* [http://www.intel.com/design/flcomp/applnots/29218602.PDF Intel's JTAG Guide]&lt;br /&gt;
* [http://ebsp.sourceforge.net/source/description.html The Experimental Boundary Scan project]&lt;br /&gt;
* [http://www.jtag.com/main.php jtag.com]&lt;br /&gt;
* [http://openwince.sourceforge.net/jtag/ Jtag tools for Linux]&lt;br /&gt;
* [http://packages.debian.org/testing/embedded/openwince-jtag JTAG tools packaged for debian]&lt;br /&gt;
* [http://www.arium.com/products/ecm50ice.html Arium ECM-50 (Intel JTAG/ITL hardware debugger)]&lt;/div&gt;</summary>
		<author><name>Jcarr</name></author>	</entry>

	<entry>
		<id>http://www.coreboot.org/FAQ</id>
		<title>FAQ</title>
		<link rel="alternate" type="text/html" href="http://www.coreboot.org/FAQ"/>
				<updated>2005-08-15T23:45:23Z</updated>
		
		<summary type="html">&lt;p&gt;Jcarr: Add link to in-circuit BIOS chip programmer&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== General ==&lt;br /&gt;
&lt;br /&gt;
=== What is LinuxBIOS? ===&lt;br /&gt;
&lt;br /&gt;
LinuxBIOS aims to replace the normal BIOS found on PCs, Alphas, and other machines with a Linux kernel that can boot Linux from a cold start. LinuxBIOS is primarily Linux - about 10 lines of patches to the current Linux kernel. Additionally, the startup code - about 500 lines of assembly and 5000 lines of C - executes 16 instructions to get into 32-bit mode and then performs DRAM and other hardware initialization required before Linux can take over. &lt;br /&gt;
&lt;br /&gt;
Our primary motivation for the project was maintenance of large clusters, but not surprisingly interest and contributions have come from people with varying backgrounds. &lt;br /&gt;
&lt;br /&gt;
=== Why do we need LinuxBIOS? ===&lt;br /&gt;
&lt;br /&gt;
Current PCs used as cluster nodes depend on a vendor-supplied BIOS for booting. The BIOS in turn relies on inherently unreliable devices such as floppy disks and hard drives to boot the operating system. In addition, current BIOS software is unable to accommodate non-standard hardware making it difficult to support experimental work. The BIOS is slow and often erroneous and redundant and, most importantly, maintenance is a nightmare. Imagine walking around with a keyboard and monitor to every one of the 128 nodes in a cluster to change one BIOS setting. &lt;br /&gt;
&lt;br /&gt;
The LinuxBIOS gunzip's the Linux kernel straight out of NVRAM and essentially requires no moving parts other than the fan. It does a minimal amount of hardware initialization before jumping to the kernel start and lets Linux do the rest. As a result, it is much faster (current record 3 seconds), which has sparked interest in the consumer electronics community as well. Moreover, updates can be performed over the network. &lt;br /&gt;
&lt;br /&gt;
Using a real operating system to boot another operating system provides much greater flexibility than using a simple netboot program or the BIOS. Because Linux is the boot mechanism, it can boot over standard Ethernet or over other interconnects such as Myrinet, Quadrics, or SCI. It can use SSH connections to load the kernel, or it can use the InterMezzo caching file system or traditional NFS. Cluster nodes can be as simple as they need to be - perhaps as simple as a CPU and memory, no disk, no floppy, and no file system. The nodes will be much less autonomous thus making them easier to maintain. &lt;br /&gt;
&lt;br /&gt;
=== Who is working on LinuxBIOS? ===&lt;br /&gt;
&lt;br /&gt;
The LinuxBIOS project was started in the winter of 1999 in the Advanced Computing Laboratory at Los Alamos National Laboratory by Ron Minnich. Two undergraduate students, James Hendricks and Dale Webster spent their winter vacation putting together the proof of concept implementation. &lt;br /&gt;
&lt;br /&gt;
Since then, a long list of people have contributed both in discussions and actual code. See our contributors page for details. Please don't be shy and let us know if you are missing from the list. It's not a purposeful omission, just an unfortunate mistake. &lt;br /&gt;
&lt;br /&gt;
=== Who is funding LinuxBIOS? ===&lt;br /&gt;
&lt;br /&gt;
The LinuxBIOS project is funded by the Los Alamos Computer Science Institute and the Department of Energy's Office of Science. &lt;br /&gt;
&lt;br /&gt;
=== Will LinuxBIOS work on my machine? ===&lt;br /&gt;
&lt;br /&gt;
See the [[Supported Motherboards]] page for which mainboards are supported.  Also, see the [[Products]] page for a list of vendors selling products running LinuxBIOS.&lt;br /&gt;
&lt;br /&gt;
If the above sources don't help, please send the following to the [[Mailinglist]]:&lt;br /&gt;
&lt;br /&gt;
* Step 1: A very brief description of your system: CPU and mainboard and optionally other important details.&lt;br /&gt;
* Step 2: Linux lspci output for your system, generated by booting Linux via the original BIOS and runnning lspci.&lt;br /&gt;
* Step 3: SuperIO chip on the mainboard (report the model numbers on the actual chip - doesn't appear in the lspci output)&lt;br /&gt;
* Step 4: Type of BIOS device (See the question &amp;quot;How do I identify the BIOS chip on my mainboard?&amp;quot; below.)&lt;br /&gt;
* Step 5: URL to the mainboard specifications page (optional)&lt;br /&gt;
* Step 6: Any other relevant information you can provide&lt;br /&gt;
&lt;br /&gt;
If you can't do step 1 above, please describe (as best you can) the specific CPU chip and the chipset used on the mainboard.&lt;br /&gt;
&lt;br /&gt;
Usually in less than a day, someone will respond on the LinuxBIOS mailing list saying your mainboard is supported in the main LinuxBIOS source tree, it is currently in development, it is not yet supported or the manufacturer will not release information needed to provide LinuxBIOS support.  In the latter case, please let the manufacturer know that you want LinuxBIOS support and his failure to release chipset informtion is making that very difficult.&lt;br /&gt;
&lt;br /&gt;
=== What commercial products use LinuxBIOS? ===&lt;br /&gt;
&lt;br /&gt;
See the [[products]] page.&lt;br /&gt;
&lt;br /&gt;
=== Which different operating systems will LinuxBIOS boot? ===&lt;br /&gt;
&lt;br /&gt;
Linux (of course)&lt;br /&gt;
&lt;br /&gt;
Plan 9&lt;br /&gt;
&lt;br /&gt;
Windows 2000 (via [[ADLO]])&lt;br /&gt;
&lt;br /&gt;
We have look at some of the BSD OSes but (e.g.) FreeBSD makes BIOS calls, and we don't support&lt;br /&gt;
BIOS calls. Possibly ADLO could be used to support FreeBSD, but the right thing to do is remove&lt;br /&gt;
FreeBSD's dependence on BIOS calls.&lt;br /&gt;
&lt;br /&gt;
=== How can I help with LinuxBIOS? ===&lt;br /&gt;
&lt;br /&gt;
Contact [[User:Rminnich|Ron Minnich]] for projects related to LinuxBIOS.&lt;br /&gt;
&lt;br /&gt;
== Developer ==&lt;br /&gt;
&lt;br /&gt;
=== What kind of hardware tools do I need? ===&lt;br /&gt;
&lt;br /&gt;
A motherboard (or mainboard as LinuxBIOS calls it) that has a supported chipset on it.  Ok.. Well not exactly.  As long as you have the documentation for the chipset/mainboard and it's free of any NDA issues you can use an unsupported chipset/mainboard, but you have a twisty road ahead of you.&lt;br /&gt;
	&lt;br /&gt;
And of course you need a Linux development machine.  The LinuxBIOS build environment is not supported on Windows.  It may be possible to do it under cygwin but nobody has tried.&lt;br /&gt;
		&lt;br /&gt;
It's also handy to have one/some/all of the following:&lt;br /&gt;
	&lt;br /&gt;
- EPROM/Flash programmer that can program the flash on your motherboard.&lt;br /&gt;
  http://www.mcumall.com/&lt;br /&gt;
- ROM emulator&lt;br /&gt;
- Bios Savior &lt;br /&gt;
  http://www.ioss.com.tw/web/English/RD1BIOSSavior.html&lt;br /&gt;
  http://www.cwlinux.com/eng/products/products_lbmb.php&lt;br /&gt;
- POST card&lt;br /&gt;
  http://siliconkit.dnsalias.com/cart/index.tpcip.html&lt;br /&gt;
  http://www.elstonsystems.com/prod/pc_analyzer.html&lt;br /&gt;
  http://shopv2.elstonsystems.com/product_info.php/products_id/57&lt;br /&gt;
  http://www.uxd.com/trio.html&lt;br /&gt;
  http://www.soyousa.com/products/proddesc.php?id=261&lt;br /&gt;
- Compact Flash IDE adaptor  &lt;br /&gt;
  http://siliconkit.dnsalias.com/cart/index.tcfdp.html&lt;br /&gt;
  http://www.cwlinux.com/eng/products/products_ide2cf.php&lt;br /&gt;
  http://www.mini-box.com/s.nl/sc.8/category.14/.f&lt;br /&gt;
  http://www.acscontrol.com/Index_ACS.asp?Page=/Pages/Products/CompactFlash/IDE_To_CF_Adapter.htm&lt;br /&gt;
- Oscilliscope&lt;br /&gt;
- In Circuit Emulator hardware debugger&lt;br /&gt;
- LinuxBIOS SDK&lt;br /&gt;
  http://www.cwlinux.com/eng/products/products_sdk.php&lt;br /&gt;
- In Circuit chip programmer -- should allow you to program your BIOS even if it is soldered to the motherboard.&lt;br /&gt;
  http://www.xeltek.com/pages.php?pageid=8&lt;br /&gt;
&lt;br /&gt;
=== What documentation do I need? ===&lt;br /&gt;
&lt;br /&gt;
As much as you can possibly get your hands on.  Minimum you need the docs for your chipset.  Without chipset docs you are basically lost.  &lt;br /&gt;
	&lt;br /&gt;
There have been some reports of people making things work by booting with the BIOS that comes with the board.  Dumping the PCI config registers and then making LinuxBIOS match those registers.  But since sometimes you have to set different bits in a given register at different times so that intermediate info will be lost.  Getting a mainboard up with out chipset docs can be a very long and involved process.&lt;br /&gt;
&lt;br /&gt;
=== What if my chipset docs are covered by an NDA? ===&lt;br /&gt;
&lt;br /&gt;
If the documentation for your chipset covered by and NDA with no source release agreement you won't be able to release your code back to to the LinuxBIOS project in general or you will violate the GPL.&lt;br /&gt;
Many vendors accept releasing the source code produced after reading such specs while they don't allow the specs themselves to be revealed. Also, you can offer them to review the code before releasing it.&lt;br /&gt;
&lt;br /&gt;
=== Where is the mailing list archived? ===&lt;br /&gt;
&lt;br /&gt;
The official LinuxBIOS mailing list archive is:&lt;br /&gt;
&lt;br /&gt;
http://www.linuxbios.org/pipermail/linuxbios/&lt;br /&gt;
&lt;br /&gt;
The best archive out there is at the University of Maryland. &lt;br /&gt;
&lt;br /&gt;
http://www.mail-archive.com/linuxbios@clustermatic.org/&lt;br /&gt;
&lt;br /&gt;
In addition, we've pieced together an archive that dates back to about the beginning of 2000 (including messages that were going to the freebios and openbios mailing lists).&lt;br /&gt;
&lt;br /&gt;
=== Where do I get the code? ===&lt;br /&gt;
&lt;br /&gt;
See the [[Download_freebios_v2|download page]].&lt;br /&gt;
&lt;br /&gt;
=== How do I build? ===&lt;br /&gt;
&lt;br /&gt;
See the documentation. For help generating a config file, see Generate a config file. (jdarby: this needs to be wikiized)&lt;br /&gt;
&lt;br /&gt;
=== Why is the code so complicated and what can I do to make it easier? ===&lt;br /&gt;
&lt;br /&gt;
The reason is the complexity of the problem. We support a lot of hardware, and a given chip on a given board will most likely not be configured quite the same as the same chip on some other board. &lt;br /&gt;
&lt;br /&gt;
To help make code navigation easier, pick a target and build that target. Then, in the build directory, type make tags or make etags to get your favorite tags file. &lt;br /&gt;
&lt;br /&gt;
=== What chipsets are supported? ===&lt;br /&gt;
&lt;br /&gt;
See the [[Supported Chipsets &amp;amp; Devices]] page&lt;br /&gt;
&lt;br /&gt;
=== How can I tell if my motherboard is supported by LinuxBIOS? ===&lt;br /&gt;
&lt;br /&gt;
There are 2 methods:&lt;br /&gt;
&lt;br /&gt;
1) Check [[Supported Motherboards]]&lt;br /&gt;
&lt;br /&gt;
If you don't see your chipset/Mainboard listed there then boot linux on your target and send the output of 'lspci -vvv' to the linuxBIOS list asking if this chipset is supported.&lt;br /&gt;
&lt;br /&gt;
2) &amp;quot;Use the source Luke&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Check out the latest copy of LinuxBIOS from CVS [[Download freebios v2]] and look in the freebios2/src/mainboard directory. (The LinuxBios module is called 'freebios2' in CVS for legacy reasons) There are directories for each manufacturer of mainboards that LinuxBIOS supports.  Below the manufacturer directory is a directory for each mainboard or family of&lt;br /&gt;
mainboard.  If a directory for your mainboad dosen't exist then theres a good chance LinuxBIOS dosen't support your mainboard out-of-the-box.  Posting to the list would probally be the next option.  See 'the lspci -vvv' in the earlier part of the question.&lt;br /&gt;
	&lt;br /&gt;
If the directory does exist then it still dosen't mean 100% the mainboard will work but at least it probally worked at one time.  Posting to the list will probally get you the latest info for that mainboard.&lt;br /&gt;
&lt;br /&gt;
=== What is this POST card thing? ===&lt;br /&gt;
&lt;br /&gt;
A POST card will save your life. The term POST means Power On Self Test and comes from the original IBM specifications for the BIOS. Port 80 is a pre-defined port to which programs can output a byte. The POST card displays the byte in hex on its 2 digit display. We use a lot of POST codes in LinuxBIOS, so if you can tell us the POST code you see, we will have some idea of what happened. &lt;br /&gt;
&lt;br /&gt;
If your LinuxBIOS machine is working properly, you will see it count up from 0xd0 to 0xd9 (while it is gunzipping the kernel) and then display 0x98 (Linux idle loop).&lt;br /&gt;
&lt;br /&gt;
PCI POST cards can be found in various places. &lt;br /&gt;
[http://www.linuxbios.org/index.php/FAQ#Developer POST Cards]&lt;br /&gt;
&lt;br /&gt;
=== How do I contribute my changes? ===&lt;br /&gt;
&lt;br /&gt;
Any one without commit privileges (which is most of you) need to get changes approved by Ron Minnich. &lt;br /&gt;
&lt;br /&gt;
=== How do I identify the BIOS chip on my mainboard? ===&lt;br /&gt;
&lt;br /&gt;
Modern mainboards store the BIOS in a reprogrammable flash ROM chip. There are hundreds of different flash ROMs, with variables such as memory size, speed, communication bus (LPC vs. ISA/PCI) and packaging to name just a few. The three most common packages are called DIP, PLCC and TSOP. The BIOS copyright holders often place a fancy sticker on the BIOS chip showing a name or logotype, BIOS version, serial number and copyright notice.&lt;br /&gt;
&lt;br /&gt;
[http://www.oricomtech.com/sub2/oopic2p.gif DIP chip with sticker]&amp;lt;br&amp;gt;&lt;br /&gt;
DIP: Dual In-line Package&amp;lt;br&amp;gt;&lt;br /&gt;
A rectangular black plastic block with lots of pins along the two longer sides of the package. DIP ROMs can be socketed which means they are detachable from the mainboard using physical force. Since they haven't been moved in and out of the socket very much (yet, hehe) they can appear to be quite difficult to release from the socket. One way to remove a DIP from a socket is by prying a thin screwdriver in between the plastic package and the socket, along the shorter sides where there are no pins, and then gently bending the screwdriver to push the DIP upwards, away from the mainboard. Alternate between the two sides to avoid bending the pins, and don't touch any of the pins with the screwdriver, see FAQ about ESD, electro-static discharge. If the DIP is soldered directly to the mainboard, it has to be desoldered in order to be reprogrammed outside the mainboard. If you do this, it's a good idea to solder a socket to the mainboard instead, to ease any future experiments.&lt;br /&gt;
&lt;br /&gt;
[http://www.rojakpot.com/article/Hot_Flash_Guide/BIOS_chips.jpg PLCC chips with and without sticker]&amp;lt;br&amp;gt;&lt;br /&gt;
PLCC: Plastic Leaded Chip Carrier&amp;lt;br&amp;gt;&lt;br /&gt;
Black plastic block again, but this one is much more square. PLCC is becoming the standard for mainboards because of it's smaller physical size. PLCC can also be socketed or soldered directly to the mainboard. Socketed PLCC chips can be removed using a special PLCC removal tool, or using a piece of nylon line tied in a loop around the chip and pulled swiftly straight up, or bending/prying using small screwdrivers if one is careful. PLCC sockets are often fragile so the screwdriver approach is not recommended. While the nylon line method sounds onorthodox it works well. Desoldering PLCC can be painful without specialized desoldering equipment particularly because PLCC chips have leads on all four sides of the package.&lt;br /&gt;
&lt;br /&gt;
[http://www.isipkg.com/images/adp_tsop_dip.jpg TSOP chip on a TSOP-&amp;gt;DIP adapter]&amp;lt;br&amp;gt;&lt;br /&gt;
TSOP: Thin Small-Outline Package&amp;lt;br&amp;gt;&lt;br /&gt;
TSOPs are often used in embedded systems where size is important and there is no need for replacement in the field. It is possible to (de)solder TSOPs by hand, but it comes close to wizardry.&lt;br /&gt;
&lt;br /&gt;
=== How do I (re-)flash the BIOS? ===&lt;br /&gt;
&lt;br /&gt;
==== Out of mainboard BIOS (re)flash ====&lt;br /&gt;
&lt;br /&gt;
If the BIOS chip is socketed, it can be removed and flashed in a rom/flash burner and quickly re-installed.  Some of these burners cost $1000 and more plus they complete a flash in 1-2 minutes, but if you are willing to wait 5 minutes for a flash and manually set DIP switches, The Enhanced Willem Universal Programmer will do the job for only $40-60 USD.  There are several models of the Willem Programmer, each supporting many chips, but not all, so be sure to get one that supports your BIOS chip.  If your chip is PLCC, you will also need a PLCC chip extractor/puller or just thread nylon string under the PLCC chip from corner to corner and yank up it straight up.&lt;br /&gt;
&lt;br /&gt;
==== Inside mainboard BIOS (re)flash ====&lt;br /&gt;
&lt;br /&gt;
Download the appropriate flash update utility. Build the romimage 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. For example, Intel decided to disallow it for the MS440GX mainboard (probably after hearing about us!) Here are some mainboard specific directions: &lt;br /&gt;
&lt;br /&gt;
===== General =====&lt;br /&gt;
LinuxBIOS v2 contains a flash utility called &amp;quot;flash_rom&amp;quot;. It can be found at freebios2/util/flash_and_burn.&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
 bash# ./flash_rom&lt;br /&gt;
 Calibrating timer since microsleep sucks ... takes a second&lt;br /&gt;
 Setting up microsecond timing loop&lt;br /&gt;
 515M loops per second&lt;br /&gt;
 OK, calibrated, now do the deed&lt;br /&gt;
 Enabling flash write on AMD8111...OK&lt;br /&gt;
 Trying Am29F040B, 512 KB&lt;br /&gt;
 probe_29f040b: id1 0x4e, id2 0x41&lt;br /&gt;
 Trying At29C040A, 512 KB&lt;br /&gt;
 probe_jedec: id1 0xbf, id2 0x51&lt;br /&gt;
 Trying Mx29f002, 256 KB&lt;br /&gt;
 probe_29f002: id1 0xbf, id2 0x51&lt;br /&gt;
 Trying SST29EE020A, 256 KB&lt;br /&gt;
 probe_jedec: id1 0xbf, id2 0x51&lt;br /&gt;
 Trying SST28SF040A, 512 KB&lt;br /&gt;
 probe_28sf040: id1 0x4e, id2 0x41&lt;br /&gt;
 Trying SST39SF020A, 256 KB&lt;br /&gt;
 probe_jedec: id1 0xbf, id2 0x51&lt;br /&gt;
 Trying SST39VF020, 256 KB&lt;br /&gt;
 probe_jedec: id1 0xbf, id2 0x51&lt;br /&gt;
 Trying SST49LF040, 512 KB&lt;br /&gt;
 probe_jedec: id1 0xbf, id2 0x51&lt;br /&gt;
 SST49LF040 found at physical address: 0xfff80000&lt;br /&gt;
 Part is SST49LF040&lt;br /&gt;
 OK, only ENABLING flash write, but NOT FLASHING&lt;br /&gt;
 bash# flash_rom --help&lt;br /&gt;
 usage: ./flash_rom [-rwv] [-c chipname] [-s exclude_start] [-e exclude_end] [file]&lt;br /&gt;
  -r: read flash and save into file&lt;br /&gt;
  -w: write file into flash (default when file is specified)&lt;br /&gt;
  -v: verify flash against file&lt;br /&gt;
  -c: probe only for specified flash chip&lt;br /&gt;
  -s: exclude start position&lt;br /&gt;
  -e: exclude end postion&lt;br /&gt;
   If no file is specified, then all that happens&lt;br /&gt;
   is that flash info is dumped&lt;br /&gt;
&lt;br /&gt;
Besides that, OpenBIOS contains a flash driver called [http://www.openbios.org/development/devbios.html /dev/bios] which may support some systems and flash chips unsupported by flash_rom.&lt;br /&gt;
 &lt;br /&gt;
===== SiS 630/950 M/Bs =====&lt;br /&gt;
Ollie Lho provided us with flash utilities for these boards under freebios/util/sis. &lt;br /&gt;
flash_on turns on the flash write enable. This needs to be run before loading the DoC drivers. &lt;br /&gt;
flash_rom allows you to use your SiS 630/950 M/Bs as a flash programmer. It currently supports JEDEC flash parts, AMD am29f040b models, MXIC MX29F002 models, and SST28SF040C models. &lt;br /&gt;
&lt;br /&gt;
===== Intel L440GX =====&lt;br /&gt;
Get the System Update Package directly from Intel. mcopy the ten files created from running make phlash onto the Intel flash burner disk and use the update utility to burn the BIOS. To restore the original BIOS, set the recovery boot jumper on the motherboard, put the floppy in, and it will load and reflash the original BIOS. &lt;br /&gt;
How do I actually burn a flash ROM? &lt;br /&gt;
&lt;br /&gt;
Buy your favorite flash burner (we use a Needham Electronics EMP 30). Use make floppy to create the romimage and copy it to a floppy. Then use the provided software to burn the flash.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===== BIOS Saver RD1 =====&lt;br /&gt;
&lt;br /&gt;
[http://www.ioss.com.tw/web/English/RD1BIOSSavior.html BIOS Saver RD1]&lt;br /&gt;
&lt;br /&gt;
There are some posts about the BIOS Saver RD1 that suggest its integrated flash device is of low quality, and it may take 10 or more flash programming attempts to get a good  update to the RD1 flash device. As a result, the following steps have proven to be successful while using the RD1:&lt;br /&gt;
&lt;br /&gt;
* Step 1 - While the system is powered down remove the original BIOS device from the mainboard and insert it into the RD1's socket.&lt;br /&gt;
&lt;br /&gt;
* Step 2 - Insert the RD1 into the mainboard's flash BIOS socket.&lt;br /&gt;
&lt;br /&gt;
* Step 3 - Boot the system with the RD1 set to boot from the original flash device from the mainboard.&lt;br /&gt;
&lt;br /&gt;
* Step 4 - Program the original BIOS image (or other known good BIOS image) into the RD1's integrated flash device for as many times as needed until the device is properly programmed and the system boots corectly from the RD1's integrated flash device. Be sure to check the settings on the RD1 so that the proper flash device is now being programmed. If the RD1 is not set correctly the working BIOS image will be erased and the system may not boot!&lt;br /&gt;
&lt;br /&gt;
* Step 5 - Program the test BIOS image (usually LinuxBIOS images are among this group) into the original flash device from the mainboard. The original BIOS device usually programs OK on the first attempt. Be sure to check the settings again on the RD1 so that the proper flash device is now being programmed!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The RD1 has been used in the above fashion with great success on the Tyan S2885 mainboard. Unfortunately the RD1 does not work on the nVidia CK8-04 CRB mainboard. The CK8-04 CRB may require a flash device that the RD1 does not support. &lt;br /&gt;
&lt;br /&gt;
The RD1 has worked well as a &amp;quot;do nothing&amp;quot; adapter that allows swapping the BIOS flash device between a flash burner and a mainboard without any wear to the mainboard's BIOS socket.&lt;br /&gt;
&lt;br /&gt;
=== How do I burn a DoC? ===&lt;br /&gt;
&lt;br /&gt;
Currently, only the DoC Millennium is supported. See the documentation. &lt;br /&gt;
&lt;br /&gt;
=== Can I do any serious damage mucking around with this stuff? ===&lt;br /&gt;
&lt;br /&gt;
Any time you stick your hand into an open machine while the power is on, you're risking life and limb. That said, there are also some other not-so-nice things that can happen if you mess up (not that we would know). &lt;br /&gt;
&lt;br /&gt;
* Incorrect insertion of the flash (1 casualty) &lt;br /&gt;
* Incorrect jumper settings (1 casualty) &lt;br /&gt;
* Aggressive and/or inappropriate use of metal objects such as screwdrivers (2 casualties) &lt;br /&gt;
* Miscellaneous miswirings and mishandlings (3+ casualties)&lt;br /&gt;
&lt;br /&gt;
=== A note on electrostatic discharge (ESD) and ESD protection (thanks to Bari Ari) ===&lt;br /&gt;
&lt;br /&gt;
ESD can damage disk drives, boards, DoC's and other parts. The majority of the time, ESD events cause the component to degrade, but not fail testing procedures, resulting in failure at a later date. Because components do not fail immediately, technicians often underestimate the cost of not using ESD prevention measures. Provide at minimum some ESD protection by wearing an antistatic wrist strap attached to the chassis ground on your system when handling parts. &lt;br /&gt;
&lt;br /&gt;
Always handle boards carefully. They can be extremely sensitive to ESD. Hold boards only by their edges. After removing a board from its protective wrapper or from the system, place it component side up on a grounded, static free surface. Use a conductive foam pad if available. Do not slide the board over any surface. &lt;br /&gt;
&lt;br /&gt;
To further reduce the chances of ESD, you should create an ESD safe workstation that includes at minimum: &lt;br /&gt;
&lt;br /&gt;
* Conductive rubber mat, with a lead wire that can be connected to a metal surface to create a ground. &lt;br /&gt;
&lt;br /&gt;
* ESD wrist strap, which has a resistor inside the strap and a lead wire that can be connected to a metal surface as a ground. The grounding wire on the wrist strap should have between 1 and 10 Megaohms of resistance. The resistor should protect you in case you come in contact with a voltage source. If the resistor is bad or not included, the wrist strap is useless. An accidental shock could be serious and even deadly! &lt;br /&gt;
&lt;br /&gt;
* Table or workspace that is clean, clear of dust, and away from electrical machinery or other equipment that generates electrical currents. &lt;br /&gt;
&lt;br /&gt;
The idea is to ensure that all components you are going to interact with have the same charge. By connecting everything to the computer case, you ensure that the components of the case, the chair, and your body all have the same charge. If every object has the same charge, the electrons will not jump from one object to another minimizing the risk of ESD damage. &lt;br /&gt;
&lt;br /&gt;
=== How do I put a filesystem on DoC? ===&lt;br /&gt;
OK, here is a little HOWTO on how to set up MTD with a file system. &lt;br /&gt;
&lt;br /&gt;
This is a m810lmr, booting out of DoC. I am going to reserve the first 2M for kernel. So the layout will be the first 2M for linuxbios and kernel, and 6M for a file system. Kernel is 2.4.17, with linux-2.4.17-sis.patch from linuxbios source tree, and config-2.4.17-sis from the linuxbios source tree. Mainboard is the pcchips m810lmr. &lt;br /&gt;
&lt;br /&gt;
So I: &lt;br /&gt;
 modprobe doc2001 &lt;br /&gt;
 modprobe docprobe &lt;br /&gt;
 dmesg &lt;br /&gt;
&lt;br /&gt;
which shows: &lt;br /&gt;
&lt;br /&gt;
 DiskOnChip Millennium found at address 0xFFFC8000 &lt;br /&gt;
 Flash chip found: Manufacturer ID: 98, Chip ID: E6 (Toshiba TC58V64AFT/DC) &lt;br /&gt;
 1 flash chips found. Total DiskOnChip size: 8 MiB &lt;br /&gt;
 mtd: Giving out device 0 to DiskOnChip Millennium &lt;br /&gt;
 Ignoring DiskOnChip Millennium at 0xFFFCA000 - already configured &lt;br /&gt;
 Ignoring DiskOnChip Millennium at 0xFFFCC000 - already configured &lt;br /&gt;
 Ignoring DiskOnChip Millennium at 0xFFFCE000 - already configured &lt;br /&gt;
 Ignoring DiskOnChip Millennium at 0xFFFD0000 - already configured &lt;br /&gt;
 Ignoring DiskOnChip Millennium at 0xFFFD2000 - already configured &lt;br /&gt;
 Ignoring DiskOnChip Millennium at 0xFFFD4000 - already configured &lt;br /&gt;
 Ignoring DiskOnChip Millennium at 0xFFFD6000 - already configured &lt;br /&gt;
 (etc..) &lt;br /&gt;
 Now I need MTD utilities. &lt;br /&gt;
 So I: &lt;br /&gt;
 cvs -d :pserver:anoncvs@cvs.infradead.org:/home/cvs login &lt;br /&gt;
 CVS password: &lt;br /&gt;
 &lt;br /&gt;
 (password is anoncvs) &lt;br /&gt;
 Then: &lt;br /&gt;
 cvs -d :pserver:anoncvs@cvs.infradead.org:/home/cvs co mtd &lt;br /&gt;
&lt;br /&gt;
Forget the drivers and such, you don't need them. What you need is the tools. &lt;br /&gt;
 cd mtd/tools &lt;br /&gt;
 make &lt;br /&gt;
&lt;br /&gt;
Go ahead and copy the executables somewhere handy, you'll need them. &lt;br /&gt;
&lt;br /&gt;
Now we need to make the last 6M into a &amp;quot;disk&amp;quot;. We need to format it. The tool is nftl_format, so:&lt;br /&gt;
&lt;br /&gt;
 [root@carly util]# ./nftl_format &lt;br /&gt;
 $Id: nftl_format.c,v 1.17 2001/08/29 14:28:48 dwmw2 Exp $ &lt;br /&gt;
 Usage: ./nftl_format [ []] &lt;br /&gt;
 [root@carly util]# expr 2048 \* 1024 &lt;br /&gt;
 2097152 &lt;br /&gt;
 [root@carly util]# expr 6 \* 1024 \* 1024 &lt;br /&gt;
 6291456 &lt;br /&gt;
 [root@carly util]# ./nftl_format /dev/mtd0 2097152 6291456 &lt;br /&gt;
 $Id: nftl_format.c,v 1.17 2001/08/29 14:28:48 dwmw2 Exp $ &lt;br /&gt;
 Phase 1. Checking and erasing Erase Zones from 0x00200000 to 0x00800000 &lt;br /&gt;
 Phase 2.a Writing NFTL Media Header and Bad Unit Table &lt;br /&gt;
 Phase 2.b Writing Spare NFTL Media Header and Spare Bad Unit Table &lt;br /&gt;
 Phase 3. Writing Unit Control Information to each Erase Unit &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
we now have a formatted disk in there. We can now partition it. &lt;br /&gt;
&lt;br /&gt;
 [root@carly util]# modprobe nftl &lt;br /&gt;
&lt;br /&gt;
dmesg shows LOTS of errors, since this was never partitioned ... &lt;br /&gt;
&lt;br /&gt;
Also, if you don't have /dev/nftla, &lt;br /&gt;
&lt;br /&gt;
 [root@carly util]# mknod /dev/nftla b 93 0 &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Don't use the script just yet, it makes /dev/nftla as b 93 16, which is the wrong unit #. &lt;br /&gt;
&lt;br /&gt;
now fdisk /dev/nftla &lt;br /&gt;
&lt;br /&gt;
 [root@carly util]# fdisk /dev/nftlA &lt;br /&gt;
 Command (m for help): n &lt;br /&gt;
 Command action &lt;br /&gt;
 e extended &lt;br /&gt;
 p primary partition (1-4) &lt;br /&gt;
 p &lt;br /&gt;
 Partition number (1-4): 1 &lt;br /&gt;
 First cylinder (1-1, default 1): &lt;br /&gt;
 Using default value 1 &lt;br /&gt;
 Command (m for help): p &lt;br /&gt;
 Disk /dev/nftlA: 1 heads, 12224 sectors, 1 cylinders &lt;br /&gt;
 Units = cylinders of 12224 * 512 bytes &lt;br /&gt;
 Device Boot Start End Blocks Id System &lt;br /&gt;
 /dev/nftlA1 1 1 6111+ 83 Linux &lt;br /&gt;
 Partition 1 has different physical/logical endings: &lt;br /&gt;
 phys=(768, 0, 0) logical=(0, 0, 12224) &lt;br /&gt;
 Partition 1 does not end on cylinder boundary: &lt;br /&gt;
 phys=(768, 0, 0) should be (768, 0, 12224) &lt;br /&gt;
 Command (m for help): w &lt;br /&gt;
 The partition table has been altered! &lt;br /&gt;
 Calling ioctl() to re-read partition table. &lt;br /&gt;
 WARNING: If you have created or modified any DOS 6.x partitions, please see the fdisk manual page for additional information. &lt;br /&gt;
 Syncing disks. &lt;br /&gt;
 [root@carly util]# mknod /dev/nftlA1 b 93 1 &lt;br /&gt;
 [root@carly util]# mke2fs /dev/nftlA1 &lt;br /&gt;
 mke2fs 1.23, 15-Aug-2001 for EXT2 FS 0.5b, 95/08/09 &lt;br /&gt;
 Filesystem label= &lt;br /&gt;
 OS type: Linux &lt;br /&gt;
 Block size=1024 (log=0) &lt;br /&gt;
 Fragment size=1024 (log=0) &lt;br /&gt;
 1528 inodes, 6111 blocks &lt;br /&gt;
 305 blocks (4.99%) reserved for the super user &lt;br /&gt;
 First data block=1 &lt;br /&gt;
 1 block group &lt;br /&gt;
 8192 blocks per group, 8192 fragments per group &lt;br /&gt;
 1528 inodes per group &lt;br /&gt;
 Writing inode tables: done &lt;br /&gt;
 Writing superblocks and filesystem accounting information: done &lt;br /&gt;
&lt;br /&gt;
This filesystem will be automatically checked every 37 mounts or 180 days, whichever comes first. Use tune2fs -c or -i to override. &lt;br /&gt;
&lt;br /&gt;
 [root@carly util]# mount /dev/nftlA1 /mnt &lt;br /&gt;
 [root@carly util]# cd /mnt &lt;br /&gt;
 [root@carly mnt]# df . &lt;br /&gt;
 Filesystem 1k-blocks Used Available Use% Mounted on &lt;br /&gt;
 /dev/nftlA1 5915 13 5597 1% /mnt &lt;br /&gt;
 [root@carly mnt]# &lt;br /&gt;
&lt;br /&gt;
and so you now have an ext2 file system on the DoC. &lt;br /&gt;
&lt;br /&gt;
(Above is from [[User:Rminnich|Ron Minnich]])&lt;br /&gt;
&lt;br /&gt;
=== How do I turn off embedded sis630 devices? ===&lt;br /&gt;
&lt;br /&gt;
 From aip@cwlinux.com Mon Mar 25 08:54:07 2002 &lt;br /&gt;
 Date: Mon, 25 Mar 2002 22:07:54 +0800 &lt;br /&gt;
 From: Andrew Ip &lt;br /&gt;
 To: Kei Furuuchi &lt;br /&gt;
 Cc: linuxbios@lanl.gov &lt;br /&gt;
 Subject: Re: How to turn off unused pci device. &lt;br /&gt;
 Hi, &lt;br /&gt;
 &amp;gt; I have pcchips m758lmr which has audio chip besides sis630. &lt;br /&gt;
 &amp;gt; those functions in sis630 are not used in the motherboard. &lt;br /&gt;
 &amp;gt; But, the functions keep coming up. How do I turn off those? &lt;br /&gt;
 The following is from Nikolai Valdych previous message. Hope this help. &lt;br /&gt;
 -Andrew &lt;br /&gt;
 -- &lt;br /&gt;
 Andrew Ip &lt;br /&gt;
 Email: aip@cwlinux.com &lt;br /&gt;
 Actualy, it was pretty simple 0x7c00 - All devices enabled, You play with first 4 bits only. Cos there are 4 devices, so you have any combination of 4 bits. &lt;br /&gt;
 Set bit to 1 to turn off the device, bit 0 to enable it. &lt;br /&gt;
 This is the device list: &lt;br /&gt;
 Multimedia Audio controler &lt;br /&gt;
 Modem controler &lt;br /&gt;
 Ethernet sis930 controler &lt;br /&gt;
 USB controler. &lt;br /&gt;
 For example, to turn off Ethernet + USB it would be: &lt;br /&gt;
 0x7c0c -&amp;gt; 1100 in binary (first 4 bits) &lt;br /&gt;
 To turn off Multimedia audio : &lt;br /&gt;
 0x7c01 -&amp;gt; 0001 &lt;br /&gt;
 in binary and so on... maybe there are more detail, but this is enogh for me, Ollie, again thanks! &lt;br /&gt;
 nikolai &lt;br /&gt;
 p.s. though my modem is not yet working..... damn driver...... &lt;br /&gt;
&lt;br /&gt;
=== What is a PIRQ table? ===&lt;br /&gt;
&lt;br /&gt;
 From Adam Sulmicki: &lt;br /&gt;
 &lt;br /&gt;
 I found beautfiul descrition of the BIOS implementation of the PIRQ in the red PCI book.&lt;br /&gt;
 &lt;br /&gt;
 I found the description of the $PIR data structure in the&lt;br /&gt;
        &lt;br /&gt;
  http://www.microsoft.com/whdc/archive/pciirq.mspx&lt;br /&gt;
 &lt;br /&gt;
 looking over linuxbios sources I see that it saves the $PIR data structure&lt;br /&gt;
 somewhere between 0xf0000 &amp;amp; 0x100000.&lt;br /&gt;
 &lt;br /&gt;
 so it seems I'll have to search for $PIR and then save it before copying&lt;br /&gt;
 over our bios. sigh. hoped for some fixed address in mem.&lt;br /&gt;
 &lt;br /&gt;
 -- &lt;br /&gt;
 Adam&lt;br /&gt;
 http://www.eax.com      The Supreme Headquarters of the 32 bit registers&lt;br /&gt;
&lt;br /&gt;
=== How do I set up etherboot with LinuxBIOS? ===&lt;br /&gt;
&lt;br /&gt;
Note from Ron: I have edited this somewhat to remove Geode-specific items. &lt;br /&gt;
&lt;br /&gt;
 Christer Weinigel writes: &lt;br /&gt;
 To: rminnich@lanl.gov&lt;br /&gt;
 Cc: linuxbios@lanl.gov&lt;br /&gt;
 Subject: Re: LinuxBIOS + Etherboot HOWTO?&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 I had some trouble using LinuxBIOS + etherboot... &lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 My bad, I messed up and used mkelfImage-1.6 that I got from ftp.lnxi.com, when I realized that I ought to use the one from freebios/util everything started working. &lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 Here's what I did to get LinuxBIOS + Etherboot loading and booting a Linux kernel using TFTP. &lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
   /Christer &lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 Get etherboot-5.0 from the CVS tree on etherboot.sourceforge.net. &lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 Modify etherboot-5.0/src/Config, comment out: &lt;br /&gt;
 &lt;br /&gt;
    # BIOS select don't change unless you know what you are doing&lt;br /&gt;
    #CFLAGS32+=     -DPCBIOS&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 and uncomment the following: &lt;br /&gt;
 &lt;br /&gt;
    # Options to make a version of Etherboot that will work under linuxBIOS.&lt;br /&gt;
    CFLAGS32+= -DLINUXBIOS -DCONFIG_TSC_CURRTICKS  -DCONSOLE_SERIAL \&lt;br /&gt;
               -DCOMCONSOLE=0x3f8 -DCOMPRESERVE -DCONFIG_PCI_DIRECT -DELF_IMAGE &lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 Compile Etherboot to make an elf file for your ethernet card: &lt;br /&gt;
 &lt;br /&gt;
     make bin32/natsemi.elf&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 Compile and install mkelfImage from freebios/util/mkelfImage. &lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 Create a bootimage to put on your TFTP server: &lt;br /&gt;
 &lt;br /&gt;
    mkelfImage --command-line=&amp;quot;root=/dev/hda2 console=ttyS0,38400&amp;quot; \&lt;br /&gt;
               --kernel vmlinux -o /tftpboot/kernel&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 Finally, make sure that your BOOT/DCHP server is answering and that the TFTP server is active. &lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 Tell LinuxBIOS to boot an elf Image, and tell LinuxBIOS where it is: &lt;br /&gt;
 &lt;br /&gt;
    option USE_ELF_BOOT=1&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 I have placed natsemi.elf in the first 64k of my BIOS flash chip, and LinuxBIOS in the second 64k. &lt;br /&gt;
 &lt;br /&gt;
    insmod bios.o&lt;br /&gt;
    dd if=natsemi.elf of=/dev/bios bs=64k&lt;br /&gt;
    dd if=linuxbios.rom of=/dev/bios bs=64k seek=1&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 Finally boot LinuxBIOS. &lt;br /&gt;
 &lt;br /&gt;
=== How do I set GEODE video? ===&lt;br /&gt;
&lt;br /&gt;
 From christer@weinigel.se Wed Nov 27 07:47:17 2002&lt;br /&gt;
 Date: 27 Nov 2002 10:55:01 +0100&lt;br /&gt;
 From: Christer Weinigel &lt;br /&gt;
 To: Adam Bezanson &lt;br /&gt;
 Cc: linuxbios@clustermatic.org&lt;br /&gt;
 Subject: Re: Geode Kernel Config &lt;br /&gt;
 &lt;br /&gt;
 &amp;quot;Adam Bezanson&amp;quot;  writes:&lt;br /&gt;
 &lt;br /&gt;
 &amp;gt; I've got an Eval card from National Semi that contains&lt;br /&gt;
 &amp;gt; the SC1200. I'd like to try LinuxBios on it.&lt;br /&gt;
 &amp;gt; I've downloaded both the 2.4.18 and 2.4.19 kernels to start with.&lt;br /&gt;
 &amp;gt; What patches do I need to apply to the kernel?&lt;br /&gt;
 &amp;gt; Is there a config file I can use to configure the kernel, or&lt;br /&gt;
 &amp;gt; should I do it manually? &lt;br /&gt;
 &lt;br /&gt;
 A normal 2.4 Linux kernel will work fine as long as you compile for a&lt;br /&gt;
 586 CPU (CONFIG_M586), not Pentium or higher (CONFIG_M586TSC and up)&lt;br /&gt;
 since the TSC behaves a bit differently. &lt;br /&gt;
 &lt;br /&gt;
 If you want support for the watchdog or the GPIO pins in a 2.4 kernel,&lt;br /&gt;
 you can find an old patch from me at:&lt;br /&gt;
 &lt;br /&gt;
    http://groups.google.com/groups?selm=20020226015215.20118F5B%40acolyte.hack.org&amp;amp;oe=UTF-8&amp;amp;output=gplain&lt;br /&gt;
 &lt;br /&gt;
 An updated version of this patch has been included in Linux 2.5.  Alan&lt;br /&gt;
 Cox' 2.5 kernel also has support for doing DMA on the SC1200 IDE&lt;br /&gt;
 controller; I don't know if there is a corresponding patch for 2.4. &lt;br /&gt;
 &lt;br /&gt;
 Other than that, take a look at the freebios/src/mainboard/nano/nano&lt;br /&gt;
 directory and make a copy of it.  All you should have to do is to&lt;br /&gt;
 modify the Pin Multiplexing Register (PMR) and Miscellaneous Config&lt;br /&gt;
 Register (MCR) in the Config file and to modify the irq assignments.&lt;br /&gt;
 &lt;br /&gt;
 Depending on what you want to do, there are a few limitations with&lt;br /&gt;
 the current LinuxBIOS on the SC1200: &lt;br /&gt;
 &lt;br /&gt;
    There is no video support in LinuxBIOS itself, so you won't get&lt;br /&gt;
    any video until you have loaded the NatSemi Geode Linux&lt;br /&gt;
    framebuffer driver (can be found at www.linux4.tv under the&lt;br /&gt;
    heading SP1SC10 Platform Image).&lt;br /&gt;
 &lt;br /&gt;
    There is no SMM/VSA support at all, this means that anything&lt;br /&gt;
    relying on it won't work.  What this means is that Audio won't&lt;br /&gt;
    work.&lt;br /&gt;
 &lt;br /&gt;
 Other than that everything works fine, IDE in PIO mode, the PCI bus,&lt;br /&gt;
 watchdog, GPIOs, everything.&lt;br /&gt;
 &lt;br /&gt;
  /Christer&lt;br /&gt;
 &lt;br /&gt;
 -- &lt;br /&gt;
 &amp;quot;Just how much can I get away with and still go to heaven?&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 Freelance consultant specializing in device driver programming for Linux &lt;br /&gt;
 Christer Weinigel   http://www.weinigel.se&lt;br /&gt;
 _______________________________________________&lt;br /&gt;
 Linuxbios mailing list&lt;br /&gt;
 Linuxbios@clustermatic.org&lt;br /&gt;
 http://www.clustermatic.org/mailman/listinfo/linuxbios&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== How do I set up testbios? ===&lt;br /&gt;
&lt;br /&gt;
 From daubin@actuality-systems.com Wed Oct  6 10:23:10 2004&lt;br /&gt;
 Date: Tue, 5 Oct 2004 15:19:24 -0400&lt;br /&gt;
 From: Dave Aubin &lt;br /&gt;
 To: linuxbios@clustermatic.org&lt;br /&gt;
 Subject: RE: Testbios help with nvidia 6800Gt and simple how to&lt;br /&gt;
 &lt;br /&gt;
 I've taken the time to put together a simple testbios faq.&lt;br /&gt;
 I hope it is helpful.  Feedback and additions are welcome. &lt;br /&gt;
 &lt;br /&gt;
 Thanks,&lt;br /&gt;
 Dave&lt;br /&gt;
 &lt;br /&gt;
==== Testbios (vgabios) Faq ====&lt;br /&gt;
&lt;br /&gt;
Date: 10/5/2004&lt;br /&gt;
Author(s): David Aubin  daubin@actuality-systems.com&lt;br /&gt;
&lt;br /&gt;
Purpose:  Testbios is an i386 emulator that sits on top of userspace linux.  It's primary purpose is to provide program video rom's in to the cached memory area.&lt;br /&gt;
&lt;br /&gt;
===== Where to obtain testbios =====&lt;br /&gt;
&lt;br /&gt;
Testbios(vgabios) can be retrieved from the linuxbios/freebios source tree: [http://www.linuxbios.org/developer/download/index.html]&lt;br /&gt;
&lt;br /&gt;
===== Prerequisites =====&lt;br /&gt;
&lt;br /&gt;
You must have installed pci-utils&lt;br /&gt;
* Get http://atrey.karlin.mff.cuni.cz/~mj/pciutils.shtml&lt;br /&gt;
&lt;br /&gt;
===== How to build testbios =====&lt;br /&gt;
* cd freebios/util/vgabios&lt;br /&gt;
* Edit ./Makefile and fill in the correct values for your environment (I build on a 64 AMD so my makefile looks like this)&lt;br /&gt;
&lt;br /&gt;
Begin ./Makefile for x64:&lt;br /&gt;
 CC       =  gcc&lt;br /&gt;
 ARCH     := $(shell uname -m | sed -e s,i[3456789]86,i386,)&lt;br /&gt;
 INCLUDE  =  -I ../pciutils-2.1.11&lt;br /&gt;
 CFLAGS   =  -Wall -Ix86emu/include -O2 -g $(INCLUDE)&lt;br /&gt;
 &lt;br /&gt;
 INTOBJS  =  int10.o int15.o int16.o int1a.o inte6.o&lt;br /&gt;
 OBJECTS  =  testbios.o helper_exec.o helper_mem.o $(INTOBJS)&lt;br /&gt;
 LDFLAGS  =  -static-libgcc -static&lt;br /&gt;
 &lt;br /&gt;
 LIBS     =  x86emu/src/x86emu/libx86emu.a ../pciutils-2.1.11/lib/libpci.a&lt;br /&gt;
 &lt;br /&gt;
 # user space pci is the only option right now.&lt;br /&gt;
 OBJECTS += pci-userspace.o&lt;br /&gt;
 &lt;br /&gt;
 ifeq ($(shell if test &amp;quot;$(ARCH)&amp;quot; == &amp;quot;x86_64&amp;quot; ; then echo 1; fi), 1)&lt;br /&gt;
         CFLAGS +=-m32 -march=i386&lt;br /&gt;
         endif&lt;br /&gt;
 &lt;br /&gt;
         all: testbios&lt;br /&gt;
 &lt;br /&gt;
         testbios: $(OBJECTS) $(LIBS)&lt;br /&gt;
                 $(CC) $(CFLAGS) -o testbios $(OBJECTS) $(LDFLAGS)&lt;br /&gt;
 $(LIBS)&lt;br /&gt;
 &lt;br /&gt;
 helper_exec.o: helper_exec.c test.h&lt;br /&gt;
 &lt;br /&gt;
 x86emu/src/x86emu/libx86emu.a:&lt;br /&gt;
         $(MAKE) -C x86emu/src/x86emu/ -f makefile.linux&lt;br /&gt;
 &lt;br /&gt;
         clean:&lt;br /&gt;
                 $(MAKE) -C x86emu/src/x86emu/ -f makefile.linux clean&lt;br /&gt;
                 rm -f *.o *~ testbios &lt;br /&gt;
 &lt;br /&gt;
         distclean: clean&lt;br /&gt;
                 $(MAKE) -C x86emu/src/x86emu/ -f makefile.linux clean&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
End ./Makefile&lt;br /&gt;
&lt;br /&gt;
* Edit ~vgabios/x86emu/src/x86emu/makefile.linux and fill in the correct values for your environment (I build on a 64 AMD so my makefile looks like this)&lt;br /&gt;
&lt;br /&gt;
Begin ~vgabios/x86emu/src/x86emu/makefile.linux:&lt;br /&gt;
 #############################################################################&lt;br /&gt;
 #&lt;br /&gt;
 #                                               Realmode X86 Emulator Library&lt;br /&gt;
 #&lt;br /&gt;
 #               Copyright (C) 1996-1999 SciTech Software, Inc.&lt;br /&gt;
 #&lt;br /&gt;
 #&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;========================================================================&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 #&lt;br /&gt;
 #  Permission to use, copy, modify, distribute, and sell this software and&lt;br /&gt;
 #  its documentation for any purpose is hereby granted without fee,&lt;br /&gt;
 #  provided that the above copyright notice appear in all copies and that&lt;br /&gt;
 #  both that copyright notice and this permission notice appear in&lt;br /&gt;
 #  supporting documentation, and that the name of the authors not be used&lt;br /&gt;
 #  in advertising or publicity pertaining to distribution of the software&lt;br /&gt;
 #  without specific, written prior permission.  The authors makes no&lt;br /&gt;
 #  representations about the suitability of this software for any purpose.&lt;br /&gt;
 #  It is provided &amp;quot;as is&amp;quot; without express or implied warranty.&lt;br /&gt;
 #&lt;br /&gt;
 #  THE AUTHORS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,&lt;br /&gt;
 #  INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO&lt;br /&gt;
 #  EVENT SHALL THE AUTHORS BE LIABLE FOR ANY SPECIAL, INDIRECT OR&lt;br /&gt;
 #  CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF&lt;br /&gt;
 #  USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR&lt;br /&gt;
 #  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR&lt;br /&gt;
 #  PERFORMANCE OF THIS SOFTWARE.&lt;br /&gt;
 #&lt;br /&gt;
 #&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;========================================================================&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 #&lt;br /&gt;
 # Descripton:   Linux specific makefile for the x86emu library.&lt;br /&gt;
 #&lt;br /&gt;
 #############################################################################&lt;br /&gt;
 &lt;br /&gt;
 TARGETLIB = libx86emu.a&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 OBJS=\&lt;br /&gt;
 debug.o \&lt;br /&gt;
 decode.o \&lt;br /&gt;
 fpu.o \&lt;br /&gt;
 ops.o \&lt;br /&gt;
 ops2.o \&lt;br /&gt;
 prim_ops.o \&lt;br /&gt;
 sys.o&lt;br /&gt;
 &lt;br /&gt;
 $(TARGETLIB): $(OBJS)&lt;br /&gt;
         ar rv $(TARGETLIB) $(OBJS)&lt;br /&gt;
 &lt;br /&gt;
        INCS   = -I. -Ix86emu -I../../include&lt;br /&gt;
        CFLAGS += -D__DRIVER__ -DFORCE_POST -D_CEXPORT= -DNO_LONG_LONG -DDEBUG&lt;br /&gt;
        ARCH   := $(shell uname -m | sed -e s,i[3456789]86,i386,)&lt;br /&gt;
        ifeq ($(shell if test &amp;quot;$(ARCH)&amp;quot; == &amp;quot;x86_64&amp;quot; ; then echo 1; fi), 1)&lt;br /&gt;
                CFLAGS +=-m32 -march=i386&lt;br /&gt;
                endif&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 .c.o:&lt;br /&gt;
 #       gcc -m32 -march=i386 -g -O -Wall -c $(CFLAGS) $(INCS) $*.c&lt;br /&gt;
         gcc -g -O -Wall -c $(CFLAGS) $(INCS) $*.c&lt;br /&gt;
 &lt;br /&gt;
 .cpp.o:&lt;br /&gt;
 #       gcc -m32 -march=i386 -c $(CFLAGS) $(INCS) $*.cpp&lt;br /&gt;
         gcc -c $(CFLAGS) $(INCS) $*.cpp &lt;br /&gt;
 &lt;br /&gt;
 clean:&lt;br /&gt;
         rm -f *.a *.o&lt;br /&gt;
 &lt;br /&gt;
 validate:       validate.o libx86emu.a&lt;br /&gt;
         gcc -o validate validate.o -lx86emu -L.&lt;br /&gt;
 &lt;br /&gt;
End ~vgabios/x86emu/src/x86emu/makefile.linux&lt;br /&gt;
&lt;br /&gt;
* Once built you could have a 32bit testbios executable made. Depending on your embedded environment you might want to have it built shared as the above example makes it static.  Just remove -static-libgcc -static from the LDFLAGS on ./Makefile if you wish to have it built shared.&lt;br /&gt;
&lt;br /&gt;
===== How to retrieve a good video bios =====&lt;br /&gt;
There are sites that have video bios roms on their website. (I know of this one for nvidia cards: [http://whitebunny.demon.nl/hardware/chipset_nvidia.html])&lt;br /&gt;
&lt;br /&gt;
However you should be able to retrieve your own video bios as well with linux.&lt;br /&gt;
* Boot up a machine with a commercial bios (not linux bios) with the video card you wish to work under linux bios.&lt;br /&gt;
** From the command line enter:&amp;lt;br /&amp;gt;&amp;lt;code&amp;gt;dd if=/dev/mem of=vgabios.bin skip=1536 count=128 or &amp;lt;br /&amp;gt;dd if=/dev/mem of=vgabios.bin bs=1k count=64 skip=786432&amp;lt;br /&amp;gt;This assumes you card's bios is cached in 0xc0000.  You&amp;lt;br /&amp;gt;can see where and how much your card's bios is using by&amp;lt;br /&amp;gt;doing a cat iomem | grep &amp;quot;Video ROM&amp;quot;&amp;lt;br /&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
*** dd Explained (man dd to learn more):&lt;br /&gt;
****  if is the location to retrieve from.&lt;br /&gt;
****  of is the output file (your rom image)&lt;br /&gt;
****  skip jumps n blocks where the default n is 512 bytes&lt;br /&gt;
****  count is how many blocks you wish to read&lt;br /&gt;
****  bs is the block size&lt;br /&gt;
** You now have a video bios image&lt;br /&gt;
&lt;br /&gt;
===== How to use testbios =====&lt;br /&gt;
* Currently testbios only works from user space linux (10/4/04)&lt;br /&gt;
* Example from a linux command line or script enter the following to get your video bios programmed:&amp;lt;br /&amp;gt;&amp;lt;code&amp;gt;./testbios -s 65536 --abseg /dev/mem ./vgabios.bin&amp;lt;/code&amp;gt;&lt;br /&gt;
** Testbios explained&lt;br /&gt;
***  -s  how much of the video bios is there&lt;br /&gt;
***  --abseg where would you like to write this (/dev/mem default)&lt;br /&gt;
***  filename of video bios&lt;br /&gt;
***  -d diag mode &lt;br /&gt;
****  How to get pci busdevfn&lt;br /&gt;
****  lspci&lt;br /&gt;
****  look for your video card&lt;br /&gt;
***** Example:&amp;lt;br /&amp;gt;&amp;lt;code&amp;gt;2:00:00&amp;lt;br /&amp;gt;2 (00 &amp;lt;&amp;lt; 3) | 00 = 0x200&amp;lt;/code&amp;gt;&lt;br /&gt;
***** Example:&amp;lt;br /&amp;gt;&amp;lt;code&amp;gt;00:12.0:&amp;lt;br /&amp;gt;0 (12 &amp;lt;&amp;lt; 3) | 0 = 0x90&amp;lt;/code&amp;gt;&lt;br /&gt;
*** -t dump &lt;br /&gt;
*** -c codesegment Where do you want to start, default is 0xc0000&lt;br /&gt;
*** -b base  Where do you want base to be default is 0xc000&lt;br /&gt;
*** -i instruction pointer usually left off as the default&lt;br /&gt;
&lt;br /&gt;
==== Followup to Testbios FAQ ====&lt;br /&gt;
 -----Original Message-----&lt;br /&gt;
 From: linuxbios-admin@clustermatic.org&lt;br /&gt;
 [mailto:linuxbios-admin@clustermatic.org] On Behalf Of Dave Aubin&lt;br /&gt;
 Sent: Tuesday, October 05, 2004 2:22 PM&lt;br /&gt;
 To: Richard Smith&lt;br /&gt;
 Cc: linuxbios@clustermatic.org&lt;br /&gt;
 Subject: RE: Testbios help with nvidia 6800Gt and simple how to&lt;br /&gt;
 &lt;br /&gt;
 Hi,&lt;br /&gt;
 &lt;br /&gt;
 Thank you:)  Yes, it was at 0xc0000-0xc7fff, which is only 32k.&lt;br /&gt;
 But the image I got from the windows tool was 64k (double 8000).&lt;br /&gt;
 Weird.  I would like to stay away from window tools.&lt;br /&gt;
 The info you provided is nice.  I wish there was a way for us To make&lt;br /&gt;
 a faq and we could add this to the testbios faq.  There Is a lot of good&lt;br /&gt;
 info on the clustermatic list, but it is all Dispersed.  &lt;br /&gt;
 Ron if I write a simple faq can you provide some mechanism to Allow&lt;br /&gt;
 updates to it?&lt;br /&gt;
 &lt;br /&gt;
 Thanks,&lt;br /&gt;
 Dave &lt;br /&gt;
 &lt;br /&gt;
 -----Original Message-----&lt;br /&gt;
 From: Richard Smith [mailto:rsmith@bitworks.com]&lt;br /&gt;
 Sent: Tuesday, October 05, 2004 2:16 PM&lt;br /&gt;
 To: Dave Aubin&lt;br /&gt;
 Cc: linuxbios@clustermatic.org&lt;br /&gt;
 Subject: Re: Testbios help with nvidia 6800Gt and simple how to&lt;br /&gt;
 &lt;br /&gt;
 Dave Aubin wrote:&lt;br /&gt;
 &lt;br /&gt;
 &amp;gt; It seems my dd returned an unusable binary.  I found a good binary for&lt;br /&gt;
 &lt;br /&gt;
 &amp;gt; The nvidia card from here:&lt;br /&gt;
 &amp;gt; http://whitebunny.demon.nl/hardware/chipset_nvidia.html&lt;br /&gt;
 &amp;gt; &lt;br /&gt;
 &lt;br /&gt;
 I was wondering about your dd command that but I had not had a chance to&lt;br /&gt;
 respond yet.&lt;br /&gt;
 &lt;br /&gt;
 This is what I use:&lt;br /&gt;
 &lt;br /&gt;
 dd if=/dev/mem of=vbios.bin bs=1k count=64 skip=786432&lt;br /&gt;
 &lt;br /&gt;
 That will rip the bios from 0x0c0000.  You can verify that you actually&lt;br /&gt;
 have bios there with&lt;br /&gt;
 &lt;br /&gt;
   'hd -s 0x0c0000 -n 256 /dev/mem'&lt;br /&gt;
 &lt;br /&gt;
 in some cases it may be located at 0x0e0000 rather than 0x0c0000.&lt;br /&gt;
 &lt;br /&gt;
 It should start with the 0x55aa (Little endian) or 0xaa55 (big endian)&lt;br /&gt;
 and futher on you should see some text identifying the bios.&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 --&lt;br /&gt;
 Richard A. Smith&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 _______________________________________________&lt;br /&gt;
 Linuxbios mailing list&lt;br /&gt;
 Linuxbios@clustermatic.org&lt;br /&gt;
 http://www.clustermatic.org/mailman/listinfo/linuxbios&lt;/div&gt;</summary>
		<author><name>Jcarr</name></author>	</entry>

	<entry>
		<id>http://www.coreboot.org/JTAG/BSDL_Guide</id>
		<title>JTAG/BSDL Guide</title>
		<link rel="alternate" type="text/html" href="http://www.coreboot.org/JTAG/BSDL_Guide"/>
				<updated>2005-08-14T05:58:16Z</updated>
		
		<summary type="html">&lt;p&gt;Jcarr: just more verbage&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= ''Introduction'' =&lt;br /&gt;
&lt;br /&gt;
JTAG ports are still very uncommon on x86 hardware. However, most hardware designs are moving in that direction so future x86 chips will probably also have JTAG ports. &lt;br /&gt;
&lt;br /&gt;
= ''What is JTAG?'' =&lt;br /&gt;
&lt;br /&gt;
JTAG is an IEEE standard that has been adopted to provide a consistant way of programming and debugging chips. JTAG is supported by by a large number of chips and manufacturers. They include:&lt;br /&gt;
&lt;br /&gt;
* Many embedded PowerPC chips&lt;br /&gt;
* Most ARM chips&lt;br /&gt;
* Many flash chips&lt;br /&gt;
* Most FPGA's&lt;br /&gt;
&lt;br /&gt;
Using chips that support JTAG decreases software development time and decreases the costs of doing development. Chips that do not have JTAG support usually require expensive hardware to configure and debug them. (thousands to tens of thousands of dollars). This is prohibitive to most Linux developers.&lt;br /&gt;
&lt;br /&gt;
= ''Why JTAG?'' =&lt;br /&gt;
&lt;br /&gt;
If you are designing a new hardware and you are interested in supporting LinuxBIOS, you should make a JTAG port available and select chips which allow programming via JTAG. While this is not yet possible for higher end x86 chips, it is often possible for embedded designs.&lt;br /&gt;
&lt;br /&gt;
= ''How can I connect to a JTAG port from Linux?'' =&lt;br /&gt;
&lt;br /&gt;
For less than $20 you can buy a parallel to JTAG cable and be on your way. Once you have an adapter, you can use the jtag program that is part of the openwince sourceforge project.&lt;br /&gt;
&lt;br /&gt;
= ''I have the cable, now I can't talk to my chip.'' =&lt;br /&gt;
&lt;br /&gt;
The jtag program is still under development; lots of chips are not supported yet. Don't worry, you can add support for it. You need to find the corresponding BSDL file for the chip. Chip manufacturers provide BSDL files on their websites.&lt;br /&gt;
&lt;br /&gt;
= ''OK, I can see my chip over JTAG. Now what?'' =&lt;br /&gt;
&lt;br /&gt;
That depends on the chip. Some chips will let you program them, some CPU's will let you single step instructions and do debugging. It depends on the chip and the manufacturer. CPU's that support single stepping make BIOS development particularly easy.&lt;br /&gt;
&lt;br /&gt;
= ''Darn, my board doesn't have a JTAG port!'' =&lt;br /&gt;
= ''Darn, my chips don't work with JTAG!'' =&lt;br /&gt;
&lt;br /&gt;
Well, that's what being a smart consumer is about :) In general, don't buy hardware that isn't Linux friendly.&lt;br /&gt;
&lt;br /&gt;
= ''External JTAG Links'' =&lt;br /&gt;
&lt;br /&gt;
* [http://www.intel.com/design/flcomp/applnots/29218602.PDF Intel's JTAG Guide]&lt;br /&gt;
* [http://ebsp.sourceforge.net/source/description.html The Experimental Boundary Scan project]&lt;br /&gt;
* [http://www.jtag.com/main.php jtag.com]&lt;br /&gt;
* [http://openwince.sourceforge.net/jtag/ Jtag tools for Linux]&lt;br /&gt;
* [http://packages.debian.org/testing/embedded/openwince-jtag JTAG tools packaged for debian]&lt;br /&gt;
* [http://www.arium.com/products/ecm50ice.html Arium ECM-50 (Intel JTAG/ITL hardware debugger)]&lt;/div&gt;</summary>
		<author><name>Jcarr</name></author>	</entry>

	<entry>
		<id>http://www.coreboot.org/Download_coreboot</id>
		<title>Download coreboot</title>
		<link rel="alternate" type="text/html" href="http://www.coreboot.org/Download_coreboot"/>
				<updated>2005-07-29T18:52:41Z</updated>
		
		<summary type="html">&lt;p&gt;Jcarr: move the old download docs into it's own page&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Introduction =&lt;br /&gt;
&lt;br /&gt;
LinuxBIOS keeps its development tree in a [http://subversion.tigris.org/ Subversion] repository. &lt;br /&gt;
If you do not want to use Subversion, please have a look at the Snapshots section below.&lt;br /&gt;
&lt;br /&gt;
= Anonymous access =&lt;br /&gt;
You can check it out as follows:&lt;br /&gt;
&lt;br /&gt;
  $ svn co svn://openbios.org/repos/trunk/LinuxBIOSv2&lt;br /&gt;
&lt;br /&gt;
or&lt;br /&gt;
&lt;br /&gt;
  $ svn co svn://openbios.org/repos/trunk/LinuxBIOSv1&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Developer Access =&lt;br /&gt;
&lt;br /&gt;
Access for developers is very similar to anonymous access. Just add your subversion username as follows when checking out the repository:&lt;br /&gt;
&lt;br /&gt;
  $ svn co svn://&amp;lt;username&amp;gt;@openbios.org/repos/trunk/LinuxBIOSv2&lt;br /&gt;
&lt;br /&gt;
Subversion has commands very similar to CVS. &lt;br /&gt;
&lt;br /&gt;
= Source code browsing =&lt;br /&gt;
&lt;br /&gt;
You can also [http://www.openbios.org/viewcvs browse the LinuxBIOS subversion repository online].&lt;br /&gt;
&lt;br /&gt;
= Snapshots =&lt;br /&gt;
&lt;br /&gt;
There is an archive of snapshots available at snapshots.linuxbios.org. There is a .bz2 tar file that gets updated when the repository changes. Older snapshots are maintained as well. &lt;br /&gt;
&lt;br /&gt;
* [http://snapshots.linuxbios.org/ Download snapshots]&lt;br /&gt;
&lt;br /&gt;
You can download the [http://www.openbios.org/viewcvs/trunk/LinuxBIOSv2.tar.gz?view=tar most current snapshot] directly.&lt;br /&gt;
&lt;br /&gt;
= More on Subversion =&lt;br /&gt;
&lt;br /&gt;
* [http://subversion.tigris.org/ Subversion homepage]&lt;br /&gt;
&lt;br /&gt;
= Old versions =&lt;br /&gt;
&lt;br /&gt;
LinuxBIOS was using arch before subversion. Those older instructions are here: [[Download LinuxBIOS oldarch]].&lt;/div&gt;</summary>
		<author><name>Jcarr</name></author>	</entry>

	<entry>
		<id>http://www.coreboot.org/JTAG/BSDL_Guide</id>
		<title>JTAG/BSDL Guide</title>
		<link rel="alternate" type="text/html" href="http://www.coreboot.org/JTAG/BSDL_Guide"/>
				<updated>2005-07-29T01:11:58Z</updated>
		
		<summary type="html">&lt;p&gt;Jcarr: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This document is a work in progress.&lt;br /&gt;
&lt;br /&gt;
= '''What is JTAG?''' =&lt;br /&gt;
= '''Why JTAG?''' =&lt;br /&gt;
&lt;br /&gt;
If you are designing a new hardware and you are interested in supporting LinuxBIOS, you should make a JTAG port available and select chips which allow programming via JTAG.&lt;br /&gt;
&lt;br /&gt;
= '''How can I connect to a JTAG port from Linux?''' =&lt;br /&gt;
&lt;br /&gt;
= '''External JTAG Links''' =&lt;br /&gt;
&lt;br /&gt;
* [http://www.intel.com/design/flcomp/applnots/29218602.PDF Intel's JTAG Guide]&lt;br /&gt;
* [http://ebsp.sourceforge.net/source/description.html The Experimental Boundary Scan project]&lt;br /&gt;
* [http://www.jtag.com/main.php jtag.com]&lt;br /&gt;
* [http://openwince.sourceforge.net/jtag/ Jtag tools for Linux]&lt;br /&gt;
* [http://packages.debian.org/testing/embedded/openwince-jtag JTAG tools packaged for debian]&lt;br /&gt;
* [http://www.arium.com/products/ecm50ice.html Arium ECM-50 (Intel JTAG/ITL hardware debugger)]&lt;/div&gt;</summary>
		<author><name>Jcarr</name></author>	</entry>

	<entry>
		<id>http://www.coreboot.org/JTAG/BSDL_Guide</id>
		<title>JTAG/BSDL Guide</title>
		<link rel="alternate" type="text/html" href="http://www.coreboot.org/JTAG/BSDL_Guide"/>
				<updated>2005-07-28T23:59:03Z</updated>
		
		<summary type="html">&lt;p&gt;Jcarr: A page about JTAG&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This document is a work in progress.&lt;br /&gt;
&lt;br /&gt;
= '''What is JTAG?''' =&lt;br /&gt;
= '''Why JTAG?''' =&lt;br /&gt;
&lt;br /&gt;
If you are designing a new hardware and you are interested in supporting LinuxBIOS, you should make a JTAG port available and select chips which allow programming via JTAG.&lt;br /&gt;
&lt;br /&gt;
= '''How can I connect to a JTAG port from Linux?''' =&lt;br /&gt;
&lt;br /&gt;
= '''External JTAG Links''' =&lt;br /&gt;
&lt;br /&gt;
* [http://www.intel.com/design/flcomp/applnots/29218602.PDF Intel's JTAG Guide]&lt;br /&gt;
* [http://ebsp.sourceforge.net/source/description.html The Experimental Boundary Scan project]&lt;br /&gt;
* [http://www.jtag.com/main.php jtag.com]&lt;br /&gt;
* [http://openwince.sourceforge.net/jtag/ Jtag tools for Linux]&lt;br /&gt;
* [http://packages.debian.org/testing/embedded/openwince-jtag JTAG tools packaged for debian]&lt;/div&gt;</summary>
		<author><name>Jcarr</name></author>	</entry>

	<entry>
		<id>http://www.coreboot.org/JTAG/BSDL_Guide</id>
		<title>JTAG/BSDL Guide</title>
		<link rel="alternate" type="text/html" href="http://www.coreboot.org/JTAG/BSDL_Guide"/>
				<updated>2005-07-28T23:52:02Z</updated>
		
		<summary type="html">&lt;p&gt;Jcarr: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This document is a work in progress.&lt;br /&gt;
&lt;br /&gt;
= '''What is JTAG?''' =&lt;br /&gt;
= '''Why JTAG?''' =&lt;br /&gt;
&lt;br /&gt;
If you are designing a new hardware and you are interested in supporting LinuxBIOS, you should make a JTAG port available and select chips which allow programming via JTAG.&lt;br /&gt;
&lt;br /&gt;
= '''How can I connect to a JTAG port from Linux?''' =&lt;br /&gt;
&lt;br /&gt;
= '''External JTAG Links''' =&lt;br /&gt;
&lt;br /&gt;
* [http://www.intel.com/design/flcomp/applnots/29218602.PDF Intel's JTAG Guide]&lt;br /&gt;
* [http://ebsp.sourceforge.net/source/description.html The Experimental Boundary Scan project]&lt;/div&gt;</summary>
		<author><name>Jcarr</name></author>	</entry>

	<entry>
		<id>http://www.coreboot.org/JTAG/BSDL_Guide</id>
		<title>JTAG/BSDL Guide</title>
		<link rel="alternate" type="text/html" href="http://www.coreboot.org/JTAG/BSDL_Guide"/>
				<updated>2005-07-28T23:47:50Z</updated>
		
		<summary type="html">&lt;p&gt;Jcarr: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This document is a work in progress.&lt;br /&gt;
&lt;br /&gt;
= '''What is JTAG?''' =&lt;br /&gt;
&lt;br /&gt;
If you are designing a new hardware and you are interested in supporting LinuxBIOS, you should make a JTAG port available and select chips which allow programming via JTAG.&lt;br /&gt;
&lt;br /&gt;
* [http://www.intel.com/design/flcomp/applnots/29218602.PDF Intel's JTAG Guide]&lt;br /&gt;
* [http://ebsp.sourceforge.net/source/description.html The Experimental Boundary Scan project]&lt;/div&gt;</summary>
		<author><name>Jcarr</name></author>	</entry>

	<entry>
		<id>http://www.coreboot.org/MediaWiki:Userlogin</id>
		<title>MediaWiki:Userlogin</title>
		<link rel="alternate" type="text/html" href="http://www.coreboot.org/MediaWiki:Userlogin"/>
				<updated>2005-03-03T21:31:01Z</updated>
		
		<summary type="html">&lt;p&gt;Jcarr: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Create an account or log in&lt;/div&gt;</summary>
		<author><name>Jcarr</name></author>	</entry>

	<entry>
		<id>http://www.coreboot.org/MediaWiki:Loginprompt</id>
		<title>MediaWiki:Loginprompt</title>
		<link rel="alternate" type="text/html" href="http://www.coreboot.org/MediaWiki:Loginprompt"/>
				<updated>2005-03-03T21:31:00Z</updated>
		
		<summary type="html">&lt;p&gt;Jcarr: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;You must have cookies enabled to log in to {{SITENAME}}.&lt;/div&gt;</summary>
		<author><name>Jcarr</name></author>	</entry>

	<entry>
		<id>http://www.coreboot.org/MediaWiki:Mainpage</id>
		<title>MediaWiki:Mainpage</title>
		<link rel="alternate" type="text/html" href="http://www.coreboot.org/MediaWiki:Mainpage"/>
				<updated>2005-03-03T21:31:00Z</updated>
		
		<summary type="html">&lt;p&gt;Jcarr: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Main Page&lt;/div&gt;</summary>
		<author><name>Jcarr</name></author>	</entry>

	<entry>
		<id>http://www.coreboot.org/Welcome_to_coreboot</id>
		<title>Welcome to coreboot</title>
		<link rel="alternate" type="text/html" href="http://www.coreboot.org/Welcome_to_coreboot"/>
				<updated>2005-02-16T22:58:33Z</updated>
		
		<summary type="html">&lt;p&gt;Jcarr: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Welcome to the LinuxBIOS Wiki.&lt;/div&gt;</summary>
		<author><name>Jcarr</name></author>	</entry>

	<entry>
		<id>http://www.coreboot.org/coreboot:Upload_log</id>
		<title>coreboot:Upload log</title>
		<link rel="alternate" type="text/html" href="http://www.coreboot.org/coreboot:Upload_log"/>
				<updated>2005-02-16T22:54:08Z</updated>
		
		<summary type="html">&lt;p&gt;Jcarr: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Below is a list of the most recent file uploads.&lt;br /&gt;
All times shown are server time (UTC).&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;/div&gt;</summary>
		<author><name>Jcarr</name></author>	</entry>

	<entry>
		<id>http://www.coreboot.org/coreboot:Deletion_log</id>
		<title>coreboot:Deletion log</title>
		<link rel="alternate" type="text/html" href="http://www.coreboot.org/coreboot:Deletion_log"/>
				<updated>2005-02-16T22:54:08Z</updated>
		
		<summary type="html">&lt;p&gt;Jcarr: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Below is a list of the most recent deletions.&lt;br /&gt;
All times shown are server time (UTC).&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;/div&gt;</summary>
		<author><name>Jcarr</name></author>	</entry>

	<entry>
		<id>http://www.coreboot.org/coreboot:Protection_log</id>
		<title>coreboot:Protection log</title>
		<link rel="alternate" type="text/html" href="http://www.coreboot.org/coreboot:Protection_log"/>
				<updated>2005-02-16T22:54:08Z</updated>
		
		<summary type="html">&lt;p&gt;Jcarr: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Below is a list of page locks/unlocks.&lt;br /&gt;
See [[LinuxBIOS:Protected page]] for more information.&lt;/div&gt;</summary>
		<author><name>Jcarr</name></author>	</entry>

	<entry>
		<id>http://www.coreboot.org/coreboot:Block_log</id>
		<title>coreboot:Block log</title>
		<link rel="alternate" type="text/html" href="http://www.coreboot.org/coreboot:Block_log"/>
				<updated>2005-02-16T22:54:08Z</updated>
		
		<summary type="html">&lt;p&gt;Jcarr: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This is a log of user blocking and unblocking actions. Automatically&lt;br /&gt;
blocked IP addresses are not be listed. See the [[Special:Ipblocklist|IP block list]] for&lt;br /&gt;
the list of currently operational bans and blocks.&lt;/div&gt;</summary>
		<author><name>Jcarr</name></author>	</entry>

	<entry>
		<id>http://www.coreboot.org/Welcome_to_coreboot</id>
		<title>Welcome to coreboot</title>
		<link rel="alternate" type="text/html" href="http://www.coreboot.org/Welcome_to_coreboot"/>
				<updated>2005-02-16T22:54:08Z</updated>
		
		<summary type="html">&lt;p&gt;Jcarr: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Wiki software successfully installed.&lt;br /&gt;
&lt;br /&gt;
Please see [http://meta.wikipedia.org/wiki/MediaWiki_i18n documentation on customizing the interface]&lt;br /&gt;
and the [http://meta.wikipedia.org/wiki/MediaWiki_User%27s_Guide User's Guide] for usage and configuration help.&lt;/div&gt;</summary>
		<author><name>Jcarr</name></author>	</entry>

	<entry>
		<id>http://www.coreboot.org/MediaWiki:Loginprompt</id>
		<title>MediaWiki:Loginprompt</title>
		<link rel="alternate" type="text/html" href="http://www.coreboot.org/MediaWiki:Loginprompt"/>
				<updated>2005-02-16T22:54:08Z</updated>
		
		<summary type="html">&lt;p&gt;Jcarr: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;You must have cookies enabled to log in to {{SITENAME}}.&lt;/div&gt;</summary>
		<author><name>Jcarr</name></author>	</entry>

	<entry>
		<id>http://www.coreboot.org/MediaWiki:Mainpage</id>
		<title>MediaWiki:Mainpage</title>
		<link rel="alternate" type="text/html" href="http://www.coreboot.org/MediaWiki:Mainpage"/>
				<updated>2005-02-16T22:54:08Z</updated>
		
		<summary type="html">&lt;p&gt;Jcarr: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Main Page&lt;/div&gt;</summary>
		<author><name>Jcarr</name></author>	</entry>

	<entry>
		<id>http://www.coreboot.org/MediaWiki:Userlogin</id>
		<title>MediaWiki:Userlogin</title>
		<link rel="alternate" type="text/html" href="http://www.coreboot.org/MediaWiki:Userlogin"/>
				<updated>2005-02-16T22:54:08Z</updated>
		
		<summary type="html">&lt;p&gt;Jcarr: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Create an account or log in&lt;/div&gt;</summary>
		<author><name>Jcarr</name></author>	</entry>

	</feed>