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: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Kaufman, Adam
Sent: Wednesday, January 31, 2007 9:00 PM
To: [email protected]
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:[EMAIL PROTECTED]
Sent: Wed 31/01/2007 20:41
To: Kaufman,  Adam
Cc: [email protected]
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: [EMAIL PROTECTED]  . http://www.coresystems.de/




Attachment: mem.h
Description: mem.h

Attachment: lb_solaris_10.diff
Description: lb_solaris_10.diff

-- 
linuxbios mailing list
[email protected]
http://www.openbios.org/mailman/listinfo/linuxbios

Reply via email to