<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Benjamin Grant &#187; gzip(1)</title>
	<atom:link href="http://bengrant.org/tag/gzip1/feed/" rel="self" type="application/rss+xml" />
	<link>http://bengrant.org</link>
	<description></description>
	<lastBuildDate>Mon, 27 May 2013 07:16:35 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=4.2.7</generator>

	<image>
		<url>http://bengrant.org/files/2015/05/bg_clear_huge-5563eec5v1_site_icon-32x32.png</url>
		<title> &#187; gzip(1)</title>
		<link>http://bengrant.org</link>
		<width>32</width>
		<height>32</height>
	</image> 
	<item>
		<title>Dell BIOS Upgrade Issues</title>
		<link>http://bengrant.org/2013/03/21/dell-bios-upgrade-issues/</link>
		<comments>http://bengrant.org/2013/03/21/dell-bios-upgrade-issues/#comments</comments>
		<pubDate>Thu, 21 Mar 2013 17:03:01 +0000</pubDate>
		<dc:creator><![CDATA[bgrantrobus]]></dc:creator>
				<category><![CDATA[technical]]></category>
		<category><![CDATA[32-bit vs 64-bit]]></category>
		<category><![CDATA[BIOS]]></category>
		<category><![CDATA[Dell]]></category>
		<category><![CDATA[gzip(1)]]></category>
		<category><![CDATA[tail(1)]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://bengrant.org/?p=138</guid>
		<description><![CDATA[I have a Dell PowerEdge SC440 that serves as a light-weight server for my home lab. I wanted to update the BIOS from 1.2.0 to 1.5.0. I expected this to be a trivial update, but discovered that the update script used to unpack and execute the flash program had some issues with my environment. On [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>I have a Dell PowerEdge SC440 that serves as a light-weight server for my home lab. I wanted to update the BIOS from 1.2.0 to 1.5.0. I expected this to be a trivial update, but discovered that the update script used to unpack and execute the flash program had some issues with my environment.</p>
<p>On Ubuntu Server 10.04 LTS 64-bit, the wrapper script uses tail(1) and <a title="gzip(1)" href="http://man.cx/gzip(1)">gzip</a> to unpack the flash executable.</p>
<pre># chmod u+x SC440-010500.BIN
# ./SC440-010500.BIN
Dell BIOS Update Installer 1.1
Copyright 2006 Dell Inc. All Rights Reserved.

tail: cannot open `+78' for reading: No such file or directory

gzip: stdin: not in gzip format</pre>
<p>The script uses an old syntax for tail that is being progressively obsoleted in their GNU forms. This can be fixed by either modifying the update script (change &#8220;+N&#8221; to &#8220;&#8211;lines=+N&#8221;) or set the environment variable _POSIX2_VERSION to &#8220;199209&#8221; to make tail use the old syntax.</p>
<p>The other issue is with gzip. The updater is 32-bit, but the SC440 is 64-bit native and, in this case, running a 64-bit OS. This problem can be solved by installing a 32-bit zlib library. I found some</p>
<p>My final process looks like this:</p>
<pre># Verify MD5 checksum is correct
md5sum SC440-010500.BIN

# Install 32-bit libs (for Ubuntu or Debian)
# (Fedora: yum install glibc.1686 zlib.i386)
# (SUSE: zypper install glibc-32bi zlib-32bit)
sudo apt-get install ia32-libs libc6-1386

# Switch to run-level 1
sudo init 1

# On Ubuntu, select 'root Drop to root shell prompt'

# Make the script executable
chmod u+x SC440-010500.BIN

# Let tail(1) know it should use the obsolete syntax
export _POSIX2_VERSION=199209

# Verify the package will extract
./SC440-010500.BIN --version

# If all was OK, run it for effect
./SC440-010500.BIN

# Follow the on-screen prompts to finish the install</pre>
<p>If you struggled to follow along, then I would recommend taking more time to understand all the details before you risk turning your system into a brick by botching something while flashing the new BIOS.</p>
]]></content:encoded>
			<wfw:commentRss>http://bengrant.org/2013/03/21/dell-bios-upgrade-issues/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
