[LinuxBIOS] Flashrom and superiotool on non-x86 platforms?
Peter Lemenkov
lemenkov at gmail.com
Mon Oct 22 21:36:13 CEST 2007
2007/10/22, ron minnich <rminnich at gmail.com>:
> On 10/21/07, Peter Lemenkov <lemenkov at gmail.com> wrote:
> > Hello All!
> > Does anybody tried to use linuxbios and LB-tools on non-x86 platforms?
> > There are some issues we need to fir even for compilation (not for
> > successful usage).
> >
> > One thing I found so far is excessive usage of non-portable inb/outb
> > macros. For instance - inb may be emulated as folliwing:
> >
> > +unsigned char inb (unsigned short int port)
> > +{
> > + static unsigned char in = 0;
> > + FILE* f = fopen ("/dev/port", "a");
> > + if (f !=NULL){
> > + if (fseek (f, port, SEEK_SET) == port){
> > + fread (&in, sizeof (unsigned char), 1, f);
> > + fclose (f);
> > + return in;
> > + }
> > + }
> > + return ERROR;
> because superio is not performance-critical, I would recommend we move
> to that usage for all cases. It would make the tool completely
> portable.
I'll try to create more suitable solutuion (with #ifdef/#else/#endifs).
> > But I need an advice - I found ppc970 branch of LinuxBIOS - who
> > maintains it and what's the current status of that port? Does anyone
> > successfully boots any non-x86 machine using LinuxBIOS?
> interest in ppc970 ended with the Apple changeover.
But users still got huge amount of old-skool powerpc hardware :)
I think it would be more funny to make something valuable with
powerpc-machines instead if simply getting rid of them.
--
With best regards!
More information about the coreboot
mailing list