On Friday 14 March 2008 10:50 pm, Uwe Hermann wrote:
On Fri, Mar 14, 2008 at 07:07:46PM +0530, jtd wrote:
On Friday 14 March 2008 12:15 pm, Corey Osgood wrote:
you need to have a src/via/idot/mainboard.c with mainboard_via_idot_ops declared in it. See the same file for any other target for an example.
Ok. Done. It now bombs at make[1]: *** No rule to make target `/root/svn/payload.elf', needed by `payload'. Stop
What payload is recommended?. Filo or grub2. The payload page says grub2 does not work as yet.
Start with FILO for now. I think GRUB2 doesn't work with corebootv2 yet and it's less tested and documented so far.
and filo-0.5 fails with gcc -m32 -Wall -Os -fomit-frame-pointer -fno-common -ffreestanding -fno-strict-aliasing -Wno-pointer-sign -Wno-unused -nostdinc -imacros ../config.h -I../include -I/usr/lib/gcc-lib/i486-linux/3.3.5/include -MD -c filo.c -o filo.o cc1: error: unrecognized option `-Wno-pointer-sign'
Just drop '-Wno-pointer-sign' from the Makefile, your compiler seems pretty old and doesn't know about that option.
shifted the tree to etch. filo-0.5 compiles. But...
./buildrom coreboot.strip coreboot.rom payload 0x10000 0x20000 ERROR: payload (78064) + coreboot (65536) - Size is 12528 bytes larger than ROM size (131072). make[1]: *** [coreboot.rom] Error 1
since vgarom = 61952 payload = 78064 coreboot = 65536 total = 205552
It should fit into the 256KB flash with 56592 bytes to spare.
Do i need to disable fallback? What is the purpose of fallback.
On Sat, Mar 15, 2008 at 06:38:20PM +0530, jtd wrote:
./buildrom coreboot.strip coreboot.rom payload 0x10000 0x20000 ERROR: payload (78064) + coreboot (65536) - Size is 12528 bytes larger than ROM size (131072). make[1]: *** [coreboot.rom] Error 1
since vgarom = 61952 payload = 78064 coreboot = 65536 total = 205552
It should fit into the 256KB flash with 56592 bytes to spare.
Do i need to disable fallback?
Yes.
What is the purpose of fallback.
It's a second, fallback, version of coreboot and payload that could be used for recovery.
It's not mandatory but is usually enabled by default.
//Peter
On Saturday 15 March 2008 07:03 pm, Peter Stuge wrote:
On Sat, Mar 15, 2008 at 06:38:20PM +0530, jtd wrote:
./buildrom coreboot.strip coreboot.rom payload 0x10000 0x20000 ERROR: payload (78064) + coreboot (65536) - Size is 12528 bytes larger than ROM size (131072). make[1]: *** [coreboot.rom] Error 1
since vgarom = 61952 payload = 78064 coreboot = 65536 total = 205552
It should fit into the 256KB flash with 56592 bytes to spare.
Do i need to disable fallback?
Yes.
What is the purpose of fallback.
It's a second, fallback, version of coreboot and payload that could be used for recovery.
It's not mandatory but is usually enabled by default.
Payload: 78064 coreboot: 65536 ROM size: 196608 Left space: 53008
Coming back to flashrom since there is nothing obviously wrong with the devices and falshrom does write (so WE is wired correctly?), how do i go about finding out the problem with flashrom.
On Sat, Mar 15, 2008 at 07:59:11PM +0530, jtd wrote:
What is the purpose of fallback.
It's a second, fallback, version of coreboot and payload that could be used for recovery.
It's not mandatory but is usually enabled by default.
Payload: 78064 coreboot: 65536 ROM size: 196608 Left space: 53008
That's one possibility to solve this, if you don't want/need two images )normal/fallback). But it's usually enough to make your FILO smaller, e.g. by disabling all filesystem support you don't need in FILO's 'Config' file, e.g. XFS, Minix, ReiserFS, whatnot.
Uwe.
I never managed to build working normal image for epia-m though. Fallback works fine, and vga bios too. The only odd behaviour is that my epia-m2 has about 12sec delay before it runs the coreboot image.
here's my config.lb: (57344 is my vga bios rom size)
------------------------------------------------------
target via_epia-m mainboard via/epia-m option MAXIMUM_CONSOLE_LOGLEVEL=8 option DEFAULT_CONSOLE_LOGLEVEL=8 option CONFIG_CONSOLE_SERIAL8250=1 option CONFIG_CONSOLE_VGA=1 option ROM_SIZE=0x40000-57344 option HAVE_OPTION_TABLE=1 option CONFIG_ROM_PAYLOAD=1 option HAVE_FALLBACK_BOOT=1 option CONFIG_COMPRESSED_PAYLOAD_NRV2B=0 option _RAMBASE=0x00004000 option FALLBACK_SIZE=0x40000-57344
romimage "fallback" option USE_FALLBACK_IMAGE=1 option ROM_IMAGE_SIZE=0x10000 payload /boot/filo/filo.elf end
buildrom ./coreboot.rom ROM_SIZE "fallback" ----------------------------------------------------------
On Sat, 2008-03-15 at 18:56 +0100, Uwe Hermann wrote:
On Sat, Mar 15, 2008 at 07:59:11PM +0530, jtd wrote:
What is the purpose of fallback.
It's a second, fallback, version of coreboot and payload that could be used for recovery.
It's not mandatory but is usually enabled by default.
Payload: 78064 coreboot: 65536 ROM size: 196608 Left space: 53008
That's one possibility to solve this, if you don't want/need two images )normal/fallback). But it's usually enough to make your FILO smaller, e.g. by disabling all filesystem support you don't need in FILO's 'Config' file, e.g. XFS, Minix, ReiserFS, whatnot.
Uwe.
http://www.hermann-uwe.de | http://www.holsham-traders.de http://www.crazy-hacks.org | http://www.unmaintained-free-software.org
On Sat, Mar 15, 2008 at 06:51:37PM -0500, Jacek Chruscik wrote:
I never managed to build working normal image for epia-m though. Fallback works fine, and vga bios too.
Correct, you can't do that. You can have
- fallback + normal - fallback only
You can _not_ have
- normal only
That won't work.
Uwe.