can you use old flash_rom instead?
Stephan, What happen to the flashrom...? too smart?
YH
On 12/12/05, Ward Vandewege ward@gnu.org wrote:
Thanks!
-rw------- 1 root root 524288 2005-12-12 18:07 s2881_linuxbios.rom
So your image is the exact size the proprietary images are - unlike the image I generated.
It seems flashrom gets confused though:
root@chimera:~/LinuxBIOSv2/util/flashrom# ./flashrom -v -w ../../../s2881_linuxbios.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 LinuxBIOS image size=262144 MANUFACTURER: Tyan MAINBOARD ID: s2881 ERROR: This firmware image does not fit to this machine Override with -m ifyou know exactly what you are doing.
It seems to think the image is larger than it is ?!
Thanks, Ward.
On Mon, Dec 12, 2005 at 03:00:44PM -0800, yhlu wrote:
image
On 12/12/05, yhlu yinghailu@gmail.com wrote:
Do you need me to send one prebuilt image to test?
YH
On 12/12/05, Ward Vandewege ward@gnu.org wrote:
Hi there,
First of all, thanks for upgrading the SVN tree, it now compiles without problems (but still lots of warnings ;) for the Tyan s2881.
I've managed to build a Linuxbios image, using FILO 0.5 and the latest subversion revision of the Linuxbios tree (2141).
So I've compiled filo, built the rom image, and burned the rom into our biossavior. This is the filo configuration file I used:
USE_GRUB = 1 MENULST_FILE = "sda1:/grub/menu.lst" AUTOBOOT_FILE = "sda1:/vmlinuz-2.6.12-9-amd64-generic root=/dev/sda4 console=tty0 console=ttyS0,19200n8" AUTOBOOT_DELAY = 4 IDE_DISK = 1 VGA_CONSOLE = 1 PC_KEYBOARD = 1 SERIAL_CONSOLE = 1 SERIAL_IOBASE = 0x3f8 SERIAL_SPEED = 19200 FSYS_EXT2FS = 1 FSYS_FAT = 1 FSYS_REISERFS = 1 FSYS_ISO9660 = 1 ELTORITO = 1 SUPPORT_PCI = 1 PCI_BRUTE_SCAN = 1 LINUX_LOADER = 1 PCI_CONFIG_1 = 1
I'm unsure about the references to sda in the MENULST_FILE and AUTOBOOT_FILE parameters. This is how my running kernel sees the SATA drives; Linuxbios supports booting from SATA, right?
The Config.lb I'm using is:
target s2881 mainboard tyan/s2881
# Tyan s2881 romimage "normal" option ROM_SIZE = 475136 option USE_FALLBACK_IMAGE=0 option ROM_IMAGE_SIZE=0x20000 option XIP_ROM_SIZE=0x20000 option LINUXBIOS_EXTRA_VERSION="$(shell cat ../../VERSION)_Normal" payload ../../../../../payloads/filo.elf end
romimage "fallback" option USE_FALLBACK_IMAGE=1 option ROM_IMAGE_SIZE=0x20000 option XIP_ROM_SIZE=0x20000 option LINUXBIOS_EXTRA_VERSION="$(shell cat ../../VERSION)_Fallback" payload ../../../../../payloads/filo.elf end
That's pretty much the stock version from the SVN tree.
I used the flashrom tool to burn & verify the image. That works perfectly.
Unfortunately, when trying to boot it, nothing happens. Nothing on the screen (but I didn't expect that as I'm still not clear about the whole vga bios thing). I've hooked up another linux box for capturing the serial output, and verified that that setup works (serial login to s2881 works, running the proprietary bios).
When booting linuxbios, there is no output on the serial line.
This MB has POST leds onboard; when booting from poweroff, they remain stuck at FF when using the linuxbios image. When booting the proprietary image, they cycle through a whole range of numbers, to finish on 00 once the system is up.
I have a feeling I'm missing something important. Any pointers?
Thanks, Ward.
-- Ward Vandewege ward@fsf.org Free Software Foundation - Senior System Administrator
-- LinuxBIOS mailing list LinuxBIOS@openbios.org http://www.openbios.org/mailman/listinfo/linuxbios
!DSPAM:439e0132249991558823387!
-- Ward Vandewege ward@fsf.org Free Software Foundation - Senior System Administrator
On Mon, Dec 12, 2005 at 03:16:17PM -0800, yhlu wrote:
can you use old flash_rom instead?
I got the version from LinuxBIOSv1
http://www.openbios.org/viewcvs/trunk/LinuxBIOSv1/util/flash_and_burn/?sortb...
Unfortunately, it does not compile anymore:
gcc -O2 -g -Wall -Werror -c -o flash_rom.o flash_rom.c cc1: warnings being treated as errors flash_rom.c: In function âmainâ: flash_rom.c:525: warning: pointer targets in passing argument 2 of âflash->readâ differ in signedness flash_rom.c:539: warning: pointer targets in passing argument 2 of âflash->writeâ differ in signedness make: *** [flash_rom.o] Error 1
Is there a copy floating around that works? This is an AMD64 box.
Thanks, Ward.
Stephan, What happen to the flashrom...? too smart?
YH
On 12/12/05, Ward Vandewege ward@gnu.org wrote:
Thanks!
-rw------- 1 root root 524288 2005-12-12 18:07 s2881_linuxbios.rom
So your image is the exact size the proprietary images are - unlike the image I generated.
It seems flashrom gets confused though:
root@chimera:~/LinuxBIOSv2/util/flashrom# ./flashrom -v -w ../../../s2881_linuxbios.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 LinuxBIOS image size=262144 MANUFACTURER: Tyan MAINBOARD ID: s2881 ERROR: This firmware image does not fit to this machine Override with -m ifyou know exactly what you are doing.
It seems to think the image is larger than it is ?!
Thanks, Ward.
On Mon, Dec 12, 2005 at 03:00:44PM -0800, yhlu wrote:
image
On 12/12/05, yhlu yinghailu@gmail.com wrote:
Do you need me to send one prebuilt image to test?
YH
On 12/12/05, Ward Vandewege ward@gnu.org wrote:
Hi there,
First of all, thanks for upgrading the SVN tree, it now compiles without problems (but still lots of warnings ;) for the Tyan s2881.
I've managed to build a Linuxbios image, using FILO 0.5 and the latest subversion revision of the Linuxbios tree (2141).
So I've compiled filo, built the rom image, and burned the rom into our biossavior. This is the filo configuration file I used:
USE_GRUB = 1 MENULST_FILE = "sda1:/grub/menu.lst" AUTOBOOT_FILE = "sda1:/vmlinuz-2.6.12-9-amd64-generic root=/dev/sda4 console=tty0 console=ttyS0,19200n8" AUTOBOOT_DELAY = 4 IDE_DISK = 1 VGA_CONSOLE = 1 PC_KEYBOARD = 1 SERIAL_CONSOLE = 1 SERIAL_IOBASE = 0x3f8 SERIAL_SPEED = 19200 FSYS_EXT2FS = 1 FSYS_FAT = 1 FSYS_REISERFS = 1 FSYS_ISO9660 = 1 ELTORITO = 1 SUPPORT_PCI = 1 PCI_BRUTE_SCAN = 1 LINUX_LOADER = 1 PCI_CONFIG_1 = 1
I'm unsure about the references to sda in the MENULST_FILE and AUTOBOOT_FILE parameters. This is how my running kernel sees the SATA drives; Linuxbios supports booting from SATA, right?
The Config.lb I'm using is:
target s2881 mainboard tyan/s2881
# Tyan s2881 romimage "normal" option ROM_SIZE = 475136 option USE_FALLBACK_IMAGE=0 option ROM_IMAGE_SIZE=0x20000 option XIP_ROM_SIZE=0x20000 option LINUXBIOS_EXTRA_VERSION="$(shell cat ../../VERSION)_Normal" payload ../../../../../payloads/filo.elf end
romimage "fallback" option USE_FALLBACK_IMAGE=1 option ROM_IMAGE_SIZE=0x20000 option XIP_ROM_SIZE=0x20000 option LINUXBIOS_EXTRA_VERSION="$(shell cat ../../VERSION)_Fallback" payload ../../../../../payloads/filo.elf end
That's pretty much the stock version from the SVN tree.
I used the flashrom tool to burn & verify the image. That works perfectly.
Unfortunately, when trying to boot it, nothing happens. Nothing on the screen (but I didn't expect that as I'm still not clear about the whole vga bios thing). I've hooked up another linux box for capturing the serial output, and verified that that setup works (serial login to s2881 works, running the proprietary bios).
When booting linuxbios, there is no output on the serial line.
This MB has POST leds onboard; when booting from poweroff, they remain stuck at FF when using the linuxbios image. When booting the proprietary image, they cycle through a whole range of numbers, to finish on 00 once the system is up.
I have a feeling I'm missing something important. Any pointers?
Thanks, Ward.
-- Ward Vandewege ward@fsf.org Free Software Foundation - Senior System Administrator
-- LinuxBIOS mailing list LinuxBIOS@openbios.org http://www.openbios.org/mailman/listinfo/linuxbios
-- Ward Vandewege ward@fsf.org Free Software Foundation - Senior System Administrator
!DSPAM:439e04cb256082083515882!
-- Ward Vandewege ward@fsf.org Free Software Foundation - Senior System Administrator
please use flashrom with -m
YH
On 12/12/05, Ward Vandewege ward@gnu.org wrote:
On Mon, Dec 12, 2005 at 03:16:17PM -0800, yhlu wrote:
can you use old flash_rom instead?
I got the version from LinuxBIOSv1
http://www.openbios.org/viewcvs/trunk/LinuxBIOSv1/util/flash_and_burn/?sortb...
Unfortunately, it does not compile anymore:
gcc -O2 -g -Wall -Werror -c -o flash_rom.o flash_rom.c cc1: warnings being treated as errors flash_rom.c: In function 'main': flash_rom.c:525: warning: pointer targets in passing argument 2 of 'flash->read' differ in signedness flash_rom.c:539: warning: pointer targets in passing argument 2 of 'flash->write' differ in signedness make: *** [flash_rom.o] Error 1
Is there a copy floating around that works? This is an AMD64 box.
Thanks, Ward.
Stephan, What happen to the flashrom...? too smart?
YH
On 12/12/05, Ward Vandewege ward@gnu.org wrote:
Thanks!
-rw------- 1 root root 524288 2005-12-12 18:07 s2881_linuxbios.rom
So your image is the exact size the proprietary images are - unlike the image I generated.
It seems flashrom gets confused though:
root@chimera:~/LinuxBIOSv2/util/flashrom# ./flashrom -v -w ../../../s2881_linuxbios.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 LinuxBIOS image size=262144 MANUFACTURER: Tyan MAINBOARD ID: s2881 ERROR: This firmware image does not fit to this machine Override with -m ifyou know exactly what you are doing.
It seems to think the image is larger than it is ?!
Thanks, Ward.
On Mon, Dec 12, 2005 at 03:00:44PM -0800, yhlu wrote:
image
On 12/12/05, yhlu yinghailu@gmail.com wrote:
Do you need me to send one prebuilt image to test?
YH
On 12/12/05, Ward Vandewege ward@gnu.org wrote:
Hi there,
First of all, thanks for upgrading the SVN tree, it now compiles without problems (but still lots of warnings ;) for the Tyan s2881.
I've managed to build a Linuxbios image, using FILO 0.5 and the latest subversion revision of the Linuxbios tree (2141).
So I've compiled filo, built the rom image, and burned the rom into our biossavior. This is the filo configuration file I used:
USE_GRUB = 1 MENULST_FILE = "sda1:/grub/menu.lst" AUTOBOOT_FILE = "sda1:/vmlinuz-2.6.12-9-amd64-generic root=/dev/sda4 console=tty0 console=ttyS0,19200n8" AUTOBOOT_DELAY = 4 IDE_DISK = 1 VGA_CONSOLE = 1 PC_KEYBOARD = 1 SERIAL_CONSOLE = 1 SERIAL_IOBASE = 0x3f8 SERIAL_SPEED = 19200 FSYS_EXT2FS = 1 FSYS_FAT = 1 FSYS_REISERFS = 1 FSYS_ISO9660 = 1 ELTORITO = 1 SUPPORT_PCI = 1 PCI_BRUTE_SCAN = 1 LINUX_LOADER = 1 PCI_CONFIG_1 = 1
I'm unsure about the references to sda in the MENULST_FILE and AUTOBOOT_FILE parameters. This is how my running kernel sees the SATA drives; Linuxbios supports booting from SATA, right?
The Config.lb I'm using is:
target s2881 mainboard tyan/s2881
# Tyan s2881 romimage "normal" option ROM_SIZE = 475136 option USE_FALLBACK_IMAGE=0 option ROM_IMAGE_SIZE=0x20000 option XIP_ROM_SIZE=0x20000 option LINUXBIOS_EXTRA_VERSION="$(shell cat ../../VERSION)_Normal" payload ../../../../../payloads/filo.elf end
romimage "fallback" option USE_FALLBACK_IMAGE=1 option ROM_IMAGE_SIZE=0x20000 option XIP_ROM_SIZE=0x20000 option LINUXBIOS_EXTRA_VERSION="$(shell cat ../../VERSION)_Fallback" payload ../../../../../payloads/filo.elf end
That's pretty much the stock version from the SVN tree.
I used the flashrom tool to burn & verify the image. That works perfectly.
Unfortunately, when trying to boot it, nothing happens. Nothing on the screen (but I didn't expect that as I'm still not clear about the whole vga bios thing). I've hooked up another linux box for capturing the serial output, and verified that that setup works (serial login to s2881 works, running the proprietary bios).
When booting linuxbios, there is no output on the serial line.
This MB has POST leds onboard; when booting from poweroff, they remain stuck at FF when using the linuxbios image. When booting the proprietary image, they cycle through a whole range of numbers, to finish on 00 once the system is up.
I have a feeling I'm missing something important. Any pointers?
Thanks, Ward.
-- Ward Vandewege ward@fsf.org Free Software Foundation - Senior System Administrator
-- LinuxBIOS mailing list LinuxBIOS@openbios.org http://www.openbios.org/mailman/listinfo/linuxbios
-- Ward Vandewege ward@fsf.org Free Software Foundation - Senior System Administrator
!DSPAM:439e04cb256082083515882!
-- Ward Vandewege ward@fsf.org Free Software Foundation - Senior System Administrator
On Mon, Dec 12, 2005 at 03:34:08PM -0800, yhlu wrote:
please use flashrom with -m
root@chimera:~/LinuxBIOSv2/util/flashrom# ./flashrom -m tyan:s2881 -w ../../../s2881_linuxbios.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 LinuxBIOS image size=262144 MANUFACTURER: Tyan MAINBOARD ID: s2881 ERROR: This firmware image does not fit to this machine Override with -m ifyou know exactly what you are doing.
That doesn't seem to do anything.
Ward.
On 12/12/05, Ward Vandewege ward@gnu.org wrote:
On Mon, Dec 12, 2005 at 03:16:17PM -0800, yhlu wrote:
can you use old flash_rom instead?
I got the version from LinuxBIOSv1
http://www.openbios.org/viewcvs/trunk/LinuxBIOSv1/util/flash_and_burn/?sortb...
Unfortunately, it does not compile anymore:
gcc -O2 -g -Wall -Werror -c -o flash_rom.o flash_rom.c cc1: warnings being treated as errors flash_rom.c: In function 'main': flash_rom.c:525: warning: pointer targets in passing argument 2 of 'flash->read' differ in signedness flash_rom.c:539: warning: pointer targets in passing argument 2 of 'flash->write' differ in signedness make: *** [flash_rom.o] Error 1
Is there a copy floating around that works? This is an AMD64 box.
Thanks, Ward.
Stephan, What happen to the flashrom...? too smart?
YH
On 12/12/05, Ward Vandewege ward@gnu.org wrote:
Thanks!
-rw------- 1 root root 524288 2005-12-12 18:07 s2881_linuxbios.rom
So your image is the exact size the proprietary images are - unlike the image I generated.
It seems flashrom gets confused though:
root@chimera:~/LinuxBIOSv2/util/flashrom# ./flashrom -v -w ../../../s2881_linuxbios.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 LinuxBIOS image size=262144 MANUFACTURER: Tyan MAINBOARD ID: s2881 ERROR: This firmware image does not fit to this machine Override with -m ifyou know exactly what you are doing.
It seems to think the image is larger than it is ?!
Thanks, Ward.
On Mon, Dec 12, 2005 at 03:00:44PM -0800, yhlu wrote:
image
On 12/12/05, yhlu yinghailu@gmail.com wrote:
Do you need me to send one prebuilt image to test?
YH
On 12/12/05, Ward Vandewege ward@gnu.org wrote: > Hi there, > > First of all, thanks for upgrading the SVN tree, it now compiles without > problems (but still lots of warnings ;) for the Tyan s2881. > > I've managed to build a Linuxbios image, using FILO 0.5 and the latest > subversion revision of the Linuxbios tree (2141). > > So I've compiled filo, built the rom image, and burned the rom into our > biossavior. This is the filo configuration file I used: > > USE_GRUB = 1 > MENULST_FILE = "sda1:/grub/menu.lst" > AUTOBOOT_FILE = "sda1:/vmlinuz-2.6.12-9-amd64-generic root=/dev/sda4 console=tty0 console=ttyS0,19200n8" > AUTOBOOT_DELAY = 4 > IDE_DISK = 1 > VGA_CONSOLE = 1 > PC_KEYBOARD = 1 > SERIAL_CONSOLE = 1 > SERIAL_IOBASE = 0x3f8 > SERIAL_SPEED = 19200 > FSYS_EXT2FS = 1 > FSYS_FAT = 1 > FSYS_REISERFS = 1 > FSYS_ISO9660 = 1 > ELTORITO = 1 > SUPPORT_PCI = 1 > PCI_BRUTE_SCAN = 1 > LINUX_LOADER = 1 > PCI_CONFIG_1 = 1 > > I'm unsure about the references to sda in the MENULST_FILE and AUTOBOOT_FILE > parameters. This is how my running kernel sees the SATA drives; Linuxbios > supports booting from SATA, right? > > The Config.lb I'm using is: > > target s2881 > mainboard tyan/s2881 > > # Tyan s2881 > romimage "normal" > option ROM_SIZE = 475136 > option USE_FALLBACK_IMAGE=0 > option ROM_IMAGE_SIZE=0x20000 > option XIP_ROM_SIZE=0x20000 > option LINUXBIOS_EXTRA_VERSION="$(shell cat ../../VERSION)_Normal" > payload ../../../../../payloads/filo.elf > end > > romimage "fallback" > option USE_FALLBACK_IMAGE=1 > option ROM_IMAGE_SIZE=0x20000 > option XIP_ROM_SIZE=0x20000 > option LINUXBIOS_EXTRA_VERSION="$(shell cat ../../VERSION)_Fallback" > payload ../../../../../payloads/filo.elf > end > > That's pretty much the stock version from the SVN tree. > > I used the flashrom tool to burn & verify the image. That works perfectly. > > Unfortunately, when trying to boot it, nothing happens. Nothing on the screen > (but I didn't expect that as I'm still not clear about the whole vga bios > thing). I've hooked up another linux box for capturing the serial output, and > verified that that setup works (serial login to s2881 works, running the > proprietary bios). > > When booting linuxbios, there is no output on the serial line. > > This MB has POST leds onboard; when booting from poweroff, they remain stuck > at FF when using the linuxbios image. When booting the proprietary image, > they cycle through a whole range of numbers, to finish on 00 once the system > is up. > > I have a feeling I'm missing something important. Any pointers? > > Thanks, > Ward. > > -- > Ward Vandewege ward@fsf.org > Free Software Foundation - Senior System Administrator > > -- > LinuxBIOS mailing list > LinuxBIOS@openbios.org > http://www.openbios.org/mailman/listinfo/linuxbios >
-- Ward Vandewege ward@fsf.org Free Software Foundation - Senior System Administrator
-- Ward Vandewege ward@fsf.org Free Software Foundation - Senior System Administrator
!DSPAM:439e08fe262551822117442!
-- Ward Vandewege ward@fsf.org Free Software Foundation - Senior System Administrator
ERROR: This firmware image does not fit to this machine Override with -m ifyou know exactly what you are doing.
That doesn't seem to do anything.
-m is set the mainbord so you have to know what to set it to.. -f is force. Try Yhlu's image again with -f. I looked at this area of the code and all that is being done is comparing the mfg and mainboard with whats in the image file. Perhaps the error should also print out the values it was trying to compare.
-- Richard A. Smith
Richard Smith wrote:
Perhaps the error should also print out the values it was trying to compare.
yes it should. In an error case, if it knows the error, it should tell us as much as it can.
ron
* Ronald G Minnich rminnich@lanl.gov [051213 16:54]:
Richard Smith wrote:
Perhaps the error should also print out the values it was trying to compare.
yes it should. In an error case, if it knows the error, it should tell us as much as it can.
Fully agreed. The next release will have it.
Stefan
* Ward Vandewege ward@gnu.org [051213 00:38]:
root@chimera:~/LinuxBIOSv2/util/flashrom# ./flashrom -m tyan:s2881 -w ../../../s2881_linuxbios.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 LinuxBIOS image size=262144 MANUFACTURER: Tyan MAINBOARD ID: s2881 ERROR: This firmware image does not fit to this machine Override with -m ifyou know exactly what you are doing.
That doesn't seem to do anything.
-m Tyan:s2881
the string is case sensitive.
Stefan
we use the v2 flashrom all the time on s2881 here.
Also, Ward led me to believe he was getting serial output. Did I miss something?
ron
On Mon, Dec 12, 2005 at 05:25:48PM -0700, Ronald G Minnich wrote:
we use the v2 flashrom all the time on s2881 here.
Also, Ward led me to believe he was getting serial output. Did I miss something?
Ah, sorry about the confusion, I get serial output when NOT running linuxbios. That was just me making sure that was set up correctly. I haven't yet managed to boot linuxbios. I'm obviously doing something stupid building the image - my images are not even being recognized by flashrom as being Linuxbios images.
Yhlu sent me an image to test, but I can't burn that as it is being seen as not the correct size by flashrom.
Real size: 524288 bytes
flashrom: root@chimera:~/LinuxBIOSv2/util/flashrom# ./flashrom -v -w ../../../s2881_linuxbios.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 LinuxBIOS image size=262144 MANUFACTURER: Tyan MAINBOARD ID: s2881 ERROR: This firmware image does not fit to this machine Override with -m ifyou know exactly what you are doing.
Not sure what's going on here.
Thanks, Ward.
-- Ward Vandewege ward@fsf.org Free Software Foundation - Senior System Administrator
On 12/12/05, Ward Vandewege ward@gnu.org wrote:
Yhlu sent me an image to test, but I can't burn that as it is being seen as not the correct size by flashrom.
Real size: 524288 bytes
flashrom: root@chimera:~/LinuxBIOSv2/util/flashrom# ./flashrom -v -w ../../../s2881_linuxbios.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 LinuxBIOS image size=262144 MANUFACTURER: Tyan MAINBOARD ID: s2881 ERROR: This firmware image does not fit to this machine Override with -m ifyou know exactly what you are doing.
so your linuxbios image size is 256KB, and your flash part is 512KB?
so ...
cat linuxbios.rom linuxbios.rom > 512k.rom flash_rom -v -w 512k.rom
try that. It's a hack but if the linuxbios image is good it will work.
ron
* ron minnich rminnich@gmail.com [051213 08:11]:
root@chimera:~/LinuxBIOSv2/util/flashrom# ./flashrom -v -w ../../../s2881_linuxbios.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 LinuxBIOS image size=262144 MANUFACTURER: Tyan MAINBOARD ID: s2881 ERROR: This firmware image does not fit to this machine Override with -m ifyou know exactly what you are doing.
so your linuxbios image size is 256KB, and your flash part is 512KB?
No. flashrom outputs only the size of the fallback image it detects.
The image is Ok, it's only the case sensitivity that hurts here.
Stefan
Unfortunately, it does not compile anymore:
gcc -O2 -g -Wall -Werror -c -o flash_rom.o flash_rom.c cc1: warnings being treated as errors flash_rom.c: In function 'main': flash_rom.c:525: warning: pointer targets in passing argument 2 of 'flash->read' differ in signedness flash_rom.c:539: warning: pointer targets in passing argument 2 of 'flash->write' differ in signedness make: *** [flash_rom.o] Error 1
Remove the -Werror and it should be ok. Those are probally going to be a buch of issues related to (char *) and (unsigned char *) which gcc issues warnings about now.
Is there a copy floating around that works? This is an AMD64 box.
That however maybe a problem. Dunno if the V1 version is 64 bit clean. Of course it dosen't sound like you can do any worse.
-- Richard A. Smith
* yhlu yinghailu@gmail.com [051213 00:16]:
can you use old flash_rom instead?
Stephan, What happen to the flashrom...? too smart?
Yes. It assumed not having LinuxBIOS installed on the system is some kind of error. Which is pretty smart I think ;-)
--force always helps in this situation.
Nonetheless, I'm preparing a new version which will fix this issue.
go have a look at r2147 later
Stefan
../../../s2881_linuxbios.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 LinuxBIOS image size=262144 MANUFACTURER: Tyan MAINBOARD ID: s2881 ERROR: This firmware image does not fit to this machine Override with -m ifyou know exactly what you are doing.