On Mon, Dec 12, 2005 at 03:34:08PM -0800, yhlu wrote: > please use flashrom with -m
[EMAIL PROTECTED]:~/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 <[EMAIL PROTECTED]> 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/?sortby=rev > > > > 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 <[EMAIL PROTECTED]> 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: > > > > > > > > [EMAIL PROTECTED]:~/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 <[EMAIL PROTECTED]> wrote: > > > > > > Do you need me to send one prebuilt image to test? > > > > > > > > > > > > YH > > > > > > > > > > > > On 12/12/05, Ward Vandewege <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> > > > > > > > Free Software Foundation - Senior System Administrator > > > > > > > > > > > > > > -- > > > > > > > LinuxBIOS mailing list > > > > > > > LinuxBIOS@openbios.org > > > > > > > http://www.openbios.org/mailman/listinfo/linuxbios > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > Ward Vandewege <[EMAIL PROTECTED]> > > > > Free Software Foundation - Senior System Administrator > > > > > > > > > > > > > > > > > > -- > > Ward Vandewege <[EMAIL PROTECTED]> > > Free Software Foundation - Senior System Administrator > > > > > !DSPAM:439e08fe262551822117442! > -- Ward Vandewege <[EMAIL PROTECTED]> Free Software Foundation - Senior System Administrator -- LinuxBIOS mailing list LinuxBIOS@openbios.org http://www.openbios.org/mailman/listinfo/linuxbios