[flashrom] [PATCH] Try to handle non-x86 sanely

Vladimir 'φ-coder/phcoder' Serbinenko phcoder at gmail.com
Tue May 25 09:12:41 CEST 2010


Carl-Daniel Hailfinger wrote:
> On 25.05.2010 04:00, Vladimir 'φ-coder/phcoder' Serbinenko wrote:
>   
>> Carl-Daniel Hailfinger wrote:
>>   
>>     
>>> Handle the following architectures in generic flashrom code:
>>> - x86/x86_64 (little endian)
>>> - PowerPC (big endian)
>>> - MIPS (big+little endian)
>>>
>>> Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006 at gmx.net>
>>>   
>>>     
>>>       
>> This patch together with setting flash_base to 0x1fc00000 worked fine on
>> my yeeloong LM8089 (8.9" version, mipsel (little-endian) ). I attach the
>> logs of -Vr, -V and -w together with lspci.
>>
>> Acked-by: Vladimir 'phcoder/φ-coder' Serbinenko <phcoder at gmail.com>
>>   
>>     
>
> Thanks for the review and thanks for testing.
>
> Is there a way to determine the chipset and/or the board from userspace?
>   
I don't think it's actualy necessary. The PCI and LIO bus interfaces as
well as address BootROM is mapped to is part of Loongson 2F (CPU)
specification. So it's enough to check CPU model. But if you want to be
on a safe side you can check "system type" in /proc/cpuinfo as well.
> We'll need that to set buses_supported and flash_base correctly.
>
> Regards,
> Carl-Daniel
>
>   


-- 
Regards
Vladimir 'φ-coder/phcoder' Serbinenko

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: cpuinfo.txt
URL: <http://www.flashrom.org/pipermail/flashrom/attachments/20100525/b6387cda/attachment.txt>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 293 bytes
Desc: OpenPGP digital signature
URL: <http://www.flashrom.org/pipermail/flashrom/attachments/20100525/b6387cda/attachment.asc>


More information about the flashrom mailing list