[LinuxBIOS] LinuxBIOS Solaris Dev

Kaufman, Adam adam.kaufman at pinnacle.com
Fri Feb 2 14:45:53 CET 2007


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.

 

Thanks,

Adam

 

________________________________

From: linuxbios-bounces at linuxbios.org
[mailto:linuxbios-bounces at linuxbios.org] On Behalf Of Kaufman, Adam
Sent: Wednesday, January 31, 2007 9:00 PM
To: linuxbios at linuxbios.org
Subject: Re: [LinuxBIOS] LinuxBIOS Solaris Dev

 

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.

-ak

whodini# ./flashrom -w /mnt/adamk/tyan/2882v309.rom
Calibrating delay loop... ok
No LinuxBIOS table found.
Enabling flash write on AMD8111...OK
Pm49FL004 found at physical address: 0xfff80000
Flash part is Pm49FL004 (512 KB)
Flash image seems to be a legacy BIOS. Disabling checks.
Programming Page: 0007 at address: 0x00070000


-----Original Message-----
From: Stefan Reinauer [mailto:stefan.reinauer at coresystems.de]
Sent: Wed 31/01/2007 20:41
To: Kaufman,  Adam
Cc: linuxbios at linuxbios.org
Subject: Re: [LinuxBIOS] LinuxBIOS Solaris Dev

Kaufman, Adam wrote:
> Well, I had to do a bit of messing around, but I got both pciutils and
> flashrom to compile on my Solaris 10 box. My biggest concern was the
> /dev/mem wouldn't allow the same access we get on linux...  here's
what
> I get:
>
> bash-3.00# ./flashrom
> Calibrating delay loop... ok
> Can not mmap /dev/mem at 00000000 errno(6):No such device or address
>
> Ideas?

It looks /dev/mem only contains ram on solaris, not the complete address
space.

There's a workaround, try using /dev/xsvc instead. It is part of X (or
XFree?) as it seems.

http://blogs.sun.com/dmick/entry/patch_for_dmidecode_2_6



--
coresystems GmbH . Brahmsstr. 16 . D-79104 Freiburg i. Br.
      Tel.: +49 761 7668825 . Fax: +49 761 7664613
Email: info at coresystems.de  . http://www.coresystems.de/




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.coreboot.org/pipermail/coreboot/attachments/20070202/460355bd/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mem.h
Type: application/octet-stream
Size: 87 bytes
Desc: mem.h
URL: <http://www.coreboot.org/pipermail/coreboot/attachments/20070202/460355bd/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lb_solaris_10.diff
Type: application/octet-stream
Size: 6326 bytes
Desc: lb_solaris_10.diff
URL: <http://www.coreboot.org/pipermail/coreboot/attachments/20070202/460355bd/attachment-0001.obj>


More information about the coreboot mailing list