Re: [LinuxBIOS] EEPROM/flash device not found error

2007-08-15 Thread Ingmar Schraub
Jordan Crouse wrote: On 14/08/07 21:28 +0200, Peter Stuge wrote: On Tue, Aug 14, 2007 at 11:25:38AM -0600, Marc Jones wrote: Is it worth adding rdmsr/wrmsr to flashrom? Is there a better option? Nope. You need MSR acess, and thats the only way to get it from userspace. Is it

Re: [LinuxBIOS] EEPROM/flash device not found error

2007-08-15 Thread Ingmar Schraub
Peter Stuge wrote: enable_flash_geodelx() yes. Please send a patch! Check out http://linuxbios.org/Development_Guidelines Please have a look at the attached patch. I've tested it first with a bunch of printf lines in between the read/write steps and it looked good. The 'production' version

Re: [LinuxBIOS] EEPROM/flash device not found error

2007-08-15 Thread Stefan Reinauer
Ingmar Schraub wrote: Peter Stuge wrote: enable_flash_geodelx() yes. Please send a patch! Check out http://linuxbios.org/Development_Guidelines Please have a look at the attached patch. I've tested it first with a bunch of printf lines in between the read/write steps and it

Re: [LinuxBIOS] EEPROM/flash device not found error

2007-08-15 Thread Jordan Crouse
On 15/08/07 11:21 +0200, Ingmar Schraub wrote: Jordan Crouse wrote: On 14/08/07 21:28 +0200, Peter Stuge wrote: On Tue, Aug 14, 2007 at 11:25:38AM -0600, Marc Jones wrote: Is it worth adding rdmsr/wrmsr to flashrom? Is there a better option? Nope. You need MSR acess, and thats the

Re: [LinuxBIOS] EEPROM/flash device not found error

2007-08-15 Thread Ingmar Schraub
Jordan Crouse wrote: How would you call the enable_flash function in chipset_enable? E.g. enable_flash_cs5536 or enable_flash_geodelx ? I vote for enabled_flash_cs5536. hmmm, my very first version used enable_flash_cs5536. ;-) I changed it for the patch I submitted. Well, Peter and you

Re: [LinuxBIOS] EEPROM/flash device not found error

2007-08-15 Thread Jordan Crouse
On 15/08/07 18:28 +0200, Stefan Reinauer wrote: Ingmar Schraub wrote: Peter Stuge wrote: enable_flash_geodelx() yes. Please send a patch! Check out http://linuxbios.org/Development_Guidelines Please have a look at the attached patch. I've tested it first with a bunch

Re: [LinuxBIOS] EEPROM/flash device not found error

2007-08-15 Thread Stefan Reinauer
* Jordan Crouse [EMAIL PROTECTED] [070815 16:43]: the rdmsr instruction won't work in ring 3, unfortunately. There is a way to access the MSRs through a VSA virtual register, but I'm loath to mention it, because it makes me feel all icky. oops. ioperm() is not enough? How are rdmsr/wrmsr done

Re: [LinuxBIOS] EEPROM/flash device not found error

2007-08-15 Thread Uwe Hermann
Hi, On Wed, Aug 15, 2007 at 04:16:39PM +0200, Ingmar Schraub wrote: Please send a patch! Check out http://linuxbios.org/Development_Guidelines Please have a look at the attached patch. Please add a Signed-off-by line as per guidelines, otherwise we cannot commit the patch. Uwe. --

Re: [LinuxBIOS] EEPROM/flash device not found error

2007-08-15 Thread Peter Stuge
On Wed, Aug 15, 2007 at 04:36:15PM +0200, Ingmar Schraub wrote: Jordan Crouse wrote: I vote for enabled_flash_cs5536. Well, Peter and you should agree an something. I prefer geodelx because that's where the 1808 MSR seems to be - it's in the LX databook, and it tells the memory controller

Re: [LinuxBIOS] EEPROM/flash device not found error

2007-08-15 Thread Peter Stuge
On Wed, Aug 15, 2007 at 04:16:39PM +0200, Ingmar Schraub wrote: Please have a look at the attached patch. Thanks! + unsigned char wrbuf[] = { 0x00, 0xbf, 0xf7, 0x10, 0x02, 0x80, 0xff, 0x22}; .. + lseek64(fd_msr, (off64_t)addr, SEEK_SET); + read(fd_msr, buf, 8); +

[LinuxBIOS] EEPROM/flash device not found error

2007-08-14 Thread pratish ganguly
Hi I am using flashrom to upgrade the BIOS on AMD Geode db800 motherboard. I am getting the following error EEPROM/flash device not found. Please suggest me some pointers to solve the problem. Regards. Pratish Ganguly -- linuxbios mailing list linuxbios@linuxbios.org

Re: [LinuxBIOS] EEPROM/flash device not found error

2007-08-14 Thread Peter Stuge
On Tue, Aug 14, 2007 at 06:37:24PM +0530, pratish ganguly wrote: Hi I am using flashrom to upgrade the BIOS on AMD Geode db800 motherboard. I am getting the following error EEPROM/flash device not found. Please suggest me some pointers to solve the problem. Please see the ALIX thread.

Re: [LinuxBIOS] EEPROM/flash device not found error

2007-08-14 Thread Marc Jones
Peter Stuge wrote: On Tue, Aug 14, 2007 at 06:37:24PM +0530, pratish ganguly wrote: Hi I am using flashrom to upgrade the BIOS on AMD Geode db800 motherboard. I am getting the following error EEPROM/flash device not found. Please suggest me some pointers to solve the problem. Please

Re: [LinuxBIOS] EEPROM/flash device not found error

2007-08-14 Thread Peter Stuge
On Tue, Aug 14, 2007 at 11:25:38AM -0600, Marc Jones wrote: Is it worth adding rdmsr/wrmsr to flashrom? Is there a better option? Is it neccessary to always write all 64 bits of the MSR by the way? //Peter -- linuxbios mailing list linuxbios@linuxbios.org

Re: [LinuxBIOS] EEPROM/flash device not found error

2007-08-14 Thread Jordan Crouse
On 14/08/07 21:28 +0200, Peter Stuge wrote: On Tue, Aug 14, 2007 at 11:25:38AM -0600, Marc Jones wrote: Is it worth adding rdmsr/wrmsr to flashrom? Is there a better option? Nope. You need MSR acess, and thats the only way to get it from userspace. Is it neccessary to always write all 64