<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<title>RE: [LinuxBIOS] LinuxBIOS Solaris Dev</title>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="country-region"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="place"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:blue;
        text-decoration:underline;}
p
        {mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman";}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>

</head>

<body lang=EN-US link=blue vlink=blue>

<div class=Section1>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Ok, here’s what I came up with for a
Solaris 10 patch. I don’t know that it’s the best way, but I tried
to make somewhat clean. Feel free to rewrite/suggest anything. Note that
Solaris 10 removed the ability to compile libc static, and I don’t know
if we think it’s worth the effort, so I just made checks to disable it for
SunOS.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Thanks,<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Adam<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>

<div>

<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>

<hr size=2 width="100%" align=center tabindex=-1>

</span></font></div>

<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'> linuxbios-bounces@linuxbios.org
[mailto:linuxbios-bounces@linuxbios.org] <b><span style='font-weight:bold'>On
Behalf Of </span></b>Kaufman, Adam<br>
<b><span style='font-weight:bold'>Sent:</span></b> Wednesday, January 31, 2007
9:00 PM<br>
<b><span style='font-weight:bold'>To:</span></b> linuxbios@linuxbios.org<br>
<b><span style='font-weight:bold'>Subject:</span></b> Re: [LinuxBIOS] LinuxBIOS
Solaris Dev</span></font><o:p></o:p></p>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>

<p style='margin-bottom:12.0pt'><font size=2 face="Times New Roman"><span
style='font-size:10.0pt'>Awesome! I think that did it. I'm not at the office
right now, so I don't want to reboot my test system, but it doesn't look like
anything blew up. Thanks for the help! If everything is good, I'll clean it up
and make a patch. Should be fairly minimal.<br>
<br>
-ak<br>
<br>
whodini# ./flashrom -w /mnt/adamk/tyan/2882v309.rom<br>
Calibrating delay loop... ok<br>
No LinuxBIOS table found.<br>
Enabling flash write on AMD8111...OK<br>
Pm49FL004 found at physical address: 0xfff80000<br>
Flash part is Pm49FL004 (512 KB)<br>
Flash image seems to be a legacy BIOS. Disabling checks.<br>
Programming Page: 0007 at address: 0x00070000<br>
<br>
<br>
-----Original Message-----<br>
From: Stefan Reinauer [<a href="mailto:stefan.reinauer@coresystems.de">mailto:stefan.reinauer@coresystems.de</a>]<br>
Sent: Wed 31/01/2007 20:41<br>
To: Kaufman,  Adam<br>
Cc: linuxbios@linuxbios.org<br>
Subject: Re: [LinuxBIOS] LinuxBIOS Solaris Dev<br>
<br>
Kaufman, Adam wrote:<br>
> Well, I had to do a bit of messing around, but I got both pciutils and<br>
> flashrom to compile on my Solaris 10 box. My biggest concern was the<br>
> /dev/mem wouldn't allow the same access we get on linux...  here's
what<br>
> I get:<br>
><br>
> bash-3.00# ./flashrom<br>
> Calibrating delay loop... ok<br>
> Can not mmap /dev/mem at 00000000 errno(6):No such device or address<br>
><br>
> Ideas?<br>
<br>
It looks /dev/mem only contains ram on solaris, not the complete address<br>
space.<br>
<br>
There's a workaround, try using /dev/xsvc instead. It is part of X (or<br>
XFree?) as it seems.<br>
<br>
<a href="http://blogs.sun.com/dmick/entry/patch_for_dmidecode_2_6">http://blogs.sun.com/dmick/entry/patch_for_dmidecode_2_6</a><br>
<br>
<br>
<br>
--<br>
coresystems GmbH . Brahmsstr. 16 . D-79104 Freiburg i. <st1:country-region
w:st="on"><st1:place w:st="on">Br.</st1:place></st1:country-region><br>
      Tel.: +49 761 7668825 . Fax: +49 761 7664613<br>
Email: info@coresystems.de  . <a href="http://www.coresystems.de/">http://www.coresystems.de/</a><br>
<br>
<br>
</span></font><o:p></o:p></p>

</div>

</body>

</html>