I'm not sure who this should be addressed to, so appologies to the rest of
the list. Briefly, I'm interested in running linuxBios on a via epia board,
so I've gotten hold of a bios saviour ready to see how far I can get.
After compiling up a rom image, and scanning the archives for how to burn the
flash from linux, I compiled up the flash_rom program from the util
directory. When running it with no image name (just so I could identify the
flash chip of the bios saviour) I was greeted with a segmentation fault.
To cut the story short, it seems that after scanning the pci bus in
enable_flash_write() and not finding any of the devices in the enables
(enable still set to 0) it still tries to call the 'doit' routine.
I've included a patch that corrects the problem. Hope it's of use to someone.
The second question I have (I think this is for Ron or Eric) is about the
Config file under src/arch/i386/lib. I've notice that it has two copies of
the 'object c_start.S' line. Is there a reason for this ? I've noticed that
the NLBConfig.py script generates warnings about re-defining the object.
--- orig/util/flash_and_burn/flash_rom.c Fri Feb 28 17:21:37 2003
+++ freebios/util/flash_rom.c Fri Feb 28 20:56:55 2003
@@ -291,7 +291,8 @@
/* now do the deed. */
- enable->doit(dev, enable->name);
+ if ( enable )
+ enable->doit(dev, enable->name);
Show replies by date