<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://cafuego.net"  xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>Cafuego - mini 2140</title>
 <link>http://cafuego.net/taxonomy/term/205/0</link>
 <description></description>
 <language>en</language>
<item>
 <title>Flashing an HP 2140 with free software</title>
 <link>http://cafuego.net/2009/05/13/flashing-hp-2140-free-software</link>
 <description>&lt;!-- google_ad_section_start --&gt;&lt;p&gt;When I flashed the Mini 2140 yesterday I used a Windows laptop to create a bootable flash drive with the BIOS utility and update on it.&lt;/p&gt;&lt;p&gt;I didn&#039;t really need to use a non-free operating system, as HP provide a tiny bootable ISO image with FreeDOS, but using that means wasting a CD-R. It&#039;s not that those are expensive, but they do end up in landfill.&lt;/p&gt;&lt;p&gt;Instead, I&#039;d like to be able to simply use a USB key. I found some help on the &lt;a href=&quot;http://wiki.fdos.org/Installation/BootDiskCreateUSB&quot;&gt;FreeDOS wiki&lt;/a&gt; and I thought I&#039;d document the steps I followed on Ubuntu.&lt;!--break--&gt;&lt;/p&gt;&lt;h3&gt;0) Prequisites&lt;/h3&gt;&lt;p&gt;You will need to install the &lt;em&gt;syslinux&lt;/em&gt; and &lt;em&gt;cabextract&lt;/em&gt; packages and obtain a copy of &lt;a href=&quot;http://advancemame.sourceforge.net/boot-readme.html&quot;&gt;&lt;em&gt;mkbootfat&lt;/em&gt;&lt;/a&gt;. The latter was not packaged, so I created source and binary packages for &lt;a href=&quot;http://ubuntu.cafuego.net/dists/intrepid-cafuego/makebootfat/&quot;&gt;Intrepid&lt;/a&gt; and &lt;a href=&quot;http://ubuntu.cafuego.net/dists/jaunty-cafuego/makebootfat/&quot;&gt;Jaunty&lt;/a&gt;. You will also need to download some &lt;a href=&quot;http://www.freedos.org/&quot;&gt;FreeDOS&lt;/a&gt; files and the ROMPaq update executable from the HP website. &lt;em&gt;Download the FreeDOS bootable media file, not the Windows HPQFlash one.&lt;/em&gt;&lt;/p&gt;&lt;p&gt;Finally, you will need a USB key.&amp;nbsp; It will be &lt;u&gt;&lt;strong&gt;&lt;em&gt;erased&lt;/em&gt;&lt;/strong&gt;&lt;/u&gt; during this process, so make sure you backup any data it currently contains.&lt;/p&gt;&lt;h3&gt;1) Preparation&lt;/h3&gt;&lt;p&gt;Create a directory that you will work from and cd into it.&amp;nbsp;Then create a directory that will eventually be the root filesystem on the USB key.&lt;/p&gt;&lt;pre&gt;
$ mkdir 2140
$ cd 2140
2140$ mkdir rootfs
&lt;/pre&gt;&lt;p&gt;Install syslinux and cabextract&lt;/p&gt;&lt;pre&gt;
2140$ sudo aptitude install syslinux cabextract
&lt;/pre&gt;&lt;p&gt;Download and install mkbootfat:&lt;/p&gt;&lt;pre&gt;
2140$ wget -c &lt;a href=&quot;http://ubuntu.cafuego.net/pool/jaunty-cafuego/makebootfat/makebootfat_1.4-0cafuego0_i386.deb&quot;&gt;http://ubuntu.cafuego.net/pool/jaunty-cafuego/makebootfat/makebootfat_1.4-0cafuego0_i386.deb&lt;/a&gt;
2140$ sudo dpkg -i makebootfat_1.4-0cafuego0_i386.deb&lt;/pre&gt;&lt;p&gt;Download the required FreeDOS files:&lt;/p&gt;&lt;pre&gt;
2140$ wget -c &lt;a href=&quot;http://www.ibiblio.org/pub/micro/pc-stuff/freedos/files/distributions/1.0/pkgs/kernels.zip&quot;&gt;http://www.ibiblio.org/pub/micro/pc-stuff/freedos/files/distributions/1.0/pkgs/kernels.zip&lt;/a&gt;
2140$ wget -c &lt;a href=&quot;http://www.ibiblio.org/pub/micro/pc-stuff/freedos/files/distributions/1.0/pkgs/commandx.zip&quot;&gt;http://www.ibiblio.org/pub/micro/pc-stuff/freedos/files/distributions/1.0/pkgs/commandx.zip&lt;/a&gt;
2140$ wget -c &lt;a href=&quot;http://www.ibiblio.org/pub/micro/pc-stuff/freedos/files/distributions/1.0/pkgs/unstablx.zip&quot;&gt;http://www.ibiblio.org/pub/micro/pc-stuff/freedos/files/distributions/1.0/pkgs/unstablx.zip&lt;/a&gt;
&lt;/pre&gt;&lt;p&gt;Extract command.com from commandx.zip to the rootfs directory:&lt;/p&gt;&lt;pre&gt;
2140$ unzip -d rootfs -j commandx.zip bin/command.com
&lt;/pre&gt;&lt;p&gt;Extract kernel.sys from unstablx.zip to the rootfs directory:&lt;/p&gt;&lt;pre&gt;
2140$ unzip -d rootfs -j unstablx.zip bin/kernel.sys
&lt;/pre&gt;&lt;p&gt;Extract the required files from kernels.zip to the current directory:&lt;/p&gt;&lt;pre&gt;
2140$ unzip -j kernels.zip source/ukernel/boot/fat12.bin source/ukernel/boot/fat16.bin source/ukernel/boot/fat32lba.bin
&lt;/pre&gt;&lt;p&gt;Copy mbr.bin from the syslinux package to the current directory&lt;/p&gt;&lt;pre&gt;
2140$ cp /usr/lib/syslinux/mbr.bin .
&lt;/pre&gt;&lt;p&gt;Now extract the BIOS update you downloaded from HP via cabextract and copy the update files to the rootfs directory:&amp;nbsp;&lt;/p&gt;&lt;pre&gt;
2140$ cabextract sp43583.exe
2140$ cp Rompaq/68DGU.BIN rootfs
2140$ cp Rompaq/config.sys rootfs
2140$ cp Rompaq/gpl2.txt rootfs
2140$ cp Rompaq/Rompaq.exe rootfs
&lt;/pre&gt;&lt;p&gt;Note that my download was called sp43583.exe, yours may be named differently.&lt;/p&gt;&lt;h3&gt;2) Create the Boot Device&lt;/h3&gt;&lt;p&gt;Insert your USB key and check the output of dmesg to see what its device name is.&lt;/p&gt;&lt;pre&gt;
2140$ dmesg
[    9.348395] usb-storage: device scan complete
[    9.349611] scsi 6:0:0:0: Direct-Access     Imation  Imation USB      PMAP PQ: 0 ANSI: 0 CCS
[    9.351075] sd 6:0:0:0: [sdb] 996864 512-byte hardware sectors: (510 MB/486 MiB)
[    9.351694] sd 6:0:0:0: [sdb] Write Protect is off
[    9.351706] sd 6:0:0:0: [sdb] Mode Sense: 23 00 00 00
[    9.351715] sd 6:0:0:0: [sdb] Assuming drive cache: write through
[    9.353699] sd 6:0:0:0: [sdb] 996864 512-byte hardware sectors: (510 MB/486 MiB)
[    9.354319] sd 6:0:0:0: [sdb] Write Protect is off
[    9.354330] sd 6:0:0:0: [sdb] Mode Sense: 23 00 00 00
[    9.354340] sd 6:0:0:0: [sdb] Assuming drive cache: write through
[    9.354354]  sdb: sdb1
[    9.355653] sd 6:0:0:0: [sdb] Attached SCSI removable disk
[    9.355767] sd 6:0:0:0: Attached scsi generic sg1 type 0&lt;/pre&gt;&lt;p&gt;Mine is /dev/sdb. It has one partition on it currently. I will delete this and blank the MBR&amp;nbsp;on the USB key via dd:&lt;/p&gt;&lt;pre&gt;
2140$ sudo dd if=/dev/zero of=/dev/sdb bs=512 count=1&lt;/pre&gt;&lt;p&gt;This will write zeroes to the first sector of the USB key, which is where both its master boot record and partition map live.&lt;/p&gt;&lt;p&gt;&lt;strong&gt;&lt;em&gt;Warning: This process essentially wipes the USB&amp;nbsp;key. Make sure the data on it is backed up and that you are using the correct device name.&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;Unplug and replug the USB key to ensure the kernel is no longer using the old partition map. After plugging it back in, recheck the device file name. It should not have changed, but it may have.&lt;/p&gt;&lt;p&gt;Finally, use &lt;em&gt;makebootfat&lt;/em&gt; to make this device bootable and copy the rootfs to it:&lt;/p&gt;&lt;pre&gt;
2140$ sudo makebootfat -o /dev/sdb -E 255 -1 fat12.bin -2 fat16.bin -3 fat32lba.bin -m mbr.bin rootfs
&lt;/pre&gt;&lt;p&gt;You should now have a bootable USB key with the BIOS update tools on it.&lt;/p&gt;&lt;h3&gt;3) Profit&lt;/h3&gt;&lt;p&gt;Boot your Mini 2140 using the key you just created. After a short moment, the Rompaq utility should start and you can upgrade your BIOS.&lt;/p&gt;&lt;h3&gt;Caveats&lt;/h3&gt;&lt;p&gt;makebootfat appears to be somewhat temperamental with regards to USB&amp;nbsp;keys and BIOSes. This HOWTO works fine if I run all commands on the Mini 2140, but if I create the boot device on my workstation, the result is not bootable. I&#039;ve only tried it with a single old USB key though.&lt;/p&gt;&lt;p&gt;I strongly suggest crossing your fingers when executing each step.&lt;/p&gt;&lt;!-- google_ad_section_end --&gt;
&lt;!--
&lt;rdf:RDF xmlns:rdf=&quot;http://www.w3.org/1999/02/22-rdf-syntax-ns#&quot; xmlns:dc=&quot;http://purl.org/dc/elements/1.1/&quot; xmlns:trackback=&quot;http://madskills.com/public/xml/rss/module/trackback/&quot;&gt;
&lt;rdf:Description rdf:about=&quot;http://cafuego.net/2009/05/13/flashing-hp-2140-free-software&quot; dc:identifier=&quot;http://cafuego.net/2009/05/13/flashing-hp-2140-free-software&quot; dc:title=&quot;Flashing an HP 2140 with free software&quot; trackback:ping=&quot;http://cafuego.net/trackback/331&quot; /&gt;
&lt;/rdf:RDF&gt;
--&gt;
&lt;div class=&quot;trackback-url&quot;&gt;&lt;div class=&quot;box&quot;&gt;

  &lt;h2&gt;Trackback URL for this post:&lt;/h2&gt;

  &lt;div class=&quot;content&quot;&gt;http://cafuego.net/trackback/331&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;</description>
 <comments>http://cafuego.net/2009/05/13/flashing-hp-2140-free-software#comments</comments>
 <category domain="http://cafuego.net/category/tags/bios">bios</category>
 <category domain="http://cafuego.net/category/tags/freedos">freedos</category>
 <category domain="http://cafuego.net/category/tags/mini-2140">mini 2140</category>
 <category domain="http://cafuego.net/category/tags/netbook">netbook</category>
 <pubDate>Wed, 13 May 2009 01:04:44 +0000</pubDate>
 <dc:creator>cafuego</dc:creator>
 <guid isPermaLink="false">331 at http://cafuego.net</guid>
</item>
<item>
 <title>HP 2140 Linux Oops</title>
 <link>http://cafuego.net/2009/05/01/hp-2140-linux-oops</link>
 <description>&lt;!-- google_ad_section_start --&gt;&lt;p&gt;&lt;a href=&quot;http://kattekrab.net&quot;&gt;Kattekrab&lt;/a&gt; has been lusting after a netbook for ages. Her old laptop, a G4 iBook, just isn&#039;t cutting the mustard anymore and Ubuntu even dropped PPC support some time ago. It runs Debian just fine, but even then because it&#039;s PPC there are issues with Java and there is no Flash or Acrobat*.&lt;/p&gt;&lt;p&gt;&lt;img width=&quot;250&quot; vspace=&quot;8&quot; hspace=&quot;8&quot; height=&quot;228&quot; border=&quot;0&quot; align=&quot;right&quot; alt=&quot;HP 2140&quot; src=&quot;/sites/cafuego.net/files/hp-2140-mini.png&quot; /&gt;Last weekend we decided to put our free** Rudd money into the economy and went shopping.&lt;/p&gt;&lt;p&gt;Ever since my&amp;nbsp;Dell disintegrated in the early naughties I&#039;ve had HP&amp;nbsp;laptops and loved them.&amp;nbsp; During 2008 I used a small HP laptop that was donated for &lt;a href=&quot;http://linux.org.au/conf&quot;&gt;linux.conf.au&lt;/a&gt; (the 2009 team used and loved it last year).&amp;nbsp;Thank you HP!&lt;/p&gt;&lt;!--break--&gt;&lt;p&gt;Late last year I got a new laptop, an HP 6730b, and am loving that too.&lt;/p&gt;&lt;p&gt;It should come as no surprise then that the netbook we chose was also a Hewlett Packard.&lt;/p&gt;&lt;p&gt;After having played with various netbooks at several retail outlets Kattekrab decided she wanted a mini 1000, on account of having a decently sized keyboard. Unfortunately neither these nor the 2133 appeared to be available anywhere, so instead she went with an HP Mini 2140.&lt;/p&gt;&lt;p&gt;It has a 1.6GHz Atom chip, 2GB of RAM, a 160GB sata harddisk and Broadcom 43xx based wifi.&lt;/p&gt;&lt;p&gt;This machine ship with Windows XP preinstalled and a Vista &amp;quot;upgrade&amp;quot; on&amp;nbsp;DVD, so we downloaded the Ubuntu netbook remix image and stuck that on a USB key.&lt;/p&gt;&lt;p&gt;After showing the normal Ubuntu pre-install menu, the machine then reliably hard locked each time it started the kernel.&lt;/p&gt;&lt;p&gt;Oops.&lt;/p&gt;&lt;p&gt;After a bunch of Googling and a set of misleading hints about turning the system fan on or off, booting with acpi disabled and varioius scary irq options enabled, I finally stumbled across the right answer.&lt;/p&gt;&lt;p&gt;The machine ships with the BIOS set to support dual core CPUs and upon booting this causes the kernel to try and run SMP based routines. However, the Atom is a single core CPU, and the whole thing falls over in a heap as soon as the kernel tries this trick.&lt;/p&gt;&lt;p&gt;The fix is simple: Hit F10 at bootup, go into System Configuration &amp;gt;&amp;nbsp;Device Configurations and set &lt;strong&gt;Dual Core CPU&lt;/strong&gt; to &lt;strong&gt;Disable&lt;/strong&gt;.&lt;/p&gt;&lt;p&gt;&lt;img width=&quot;600&quot; vspace=&quot;8&quot; hspace=&quot;2&quot; height=&quot;294&quot; border=&quot;0&quot; align=&quot;middle&quot; alt=&quot;Naughty 2140 BIOS Screen&quot; src=&quot;/sites/cafuego.net/files/hp-2140-mini-bios-bug.png&quot; /&gt;&lt;/p&gt;&lt;p&gt;Save the new setup and reboot. Hurray, Linux works!&lt;/p&gt;&lt;p&gt;And it works perfectly. All devices are detected and work just fine, from the camera to the SD card reader. However, you do need to grab and install some non-free*** &lt;a href=&quot;http://ubuntu.cafuego.net/pool/jaunty-cafuego/broadcom/b43-firmware_1.1-0cafuego1_all.deb&quot;&gt;firmware files&lt;/a&gt; for the wifi chip.&lt;/p&gt;&lt;hr /&gt;&lt;p&gt;* Yes, these are non-free and there are free alternatives. I know. However, the free alternatives don&#039;t always work particularly well and sometimes don&#039;t include features the user needs.&lt;br /&gt;** As in beer.&lt;br /&gt;***&amp;nbsp;As in speech.&lt;/p&gt;&lt;!-- google_ad_section_end --&gt;
&lt;!--
&lt;rdf:RDF xmlns:rdf=&quot;http://www.w3.org/1999/02/22-rdf-syntax-ns#&quot; xmlns:dc=&quot;http://purl.org/dc/elements/1.1/&quot; xmlns:trackback=&quot;http://madskills.com/public/xml/rss/module/trackback/&quot;&gt;
&lt;rdf:Description rdf:about=&quot;http://cafuego.net/2009/05/01/hp-2140-linux-oops&quot; dc:identifier=&quot;http://cafuego.net/2009/05/01/hp-2140-linux-oops&quot; dc:title=&quot;HP 2140 Linux Oops&quot; trackback:ping=&quot;http://cafuego.net/trackback/327&quot; /&gt;
&lt;/rdf:RDF&gt;
--&gt;
&lt;div class=&quot;trackback-url&quot;&gt;&lt;div class=&quot;box&quot;&gt;

  &lt;h2&gt;Trackback URL for this post:&lt;/h2&gt;

  &lt;div class=&quot;content&quot;&gt;http://cafuego.net/trackback/327&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;</description>
 <comments>http://cafuego.net/2009/05/01/hp-2140-linux-oops#comments</comments>
 <category domain="http://cafuego.net/category/tags/hewlett-packard">hewlett-packard</category>
 <category domain="http://cafuego.net/category/tags/mini-2140">mini 2140</category>
 <category domain="http://cafuego.net/category/tags/netbook">netbook</category>
 <pubDate>Fri, 01 May 2009 00:05:20 +0000</pubDate>
 <dc:creator>cafuego</dc:creator>
 <guid isPermaLink="false">327 at http://cafuego.net</guid>
</item>
</channel>
</rss>

