Re: [LinuxBIOS] Can't compile flashrom: SOLVED

2007-11-29 Thread Stefan Reinauer
Shocky wrote: > I finally tracked down the problem, and it had nothing to do with libpci.a or > libzlib1.a, except for the fact that static linking is used. > > Mandriva, both 2007 and 2008, has a package called glibc-static-devel which > is > required to do static linking. I guess this is the f

Re: [LinuxBIOS] Can't compile flashrom: SOLVED

2007-11-29 Thread Shocky
On Sunday 25 November 2007 09:24, Shocky wrote: > Hi, > > I'm new to LinuxBios, and just looking for a way to flash the bios on an HP > laptop without installing Windoze. None of the tricks I've found through > Google have worked for me so far, including HP's own utility for making > bootable usb k

Re: [LinuxBIOS] Can't compile flashrom

2007-11-28 Thread Russell Whitaker
In a prior email I wrote "libz and libz.so." It should have been "libz.a and libz.so." sorry. On Wed, 28 Nov 2007, Shocky wrote: > On Tuesday 27 November 2007 17:33, ron minnich wrote: >> gcc -o thing thing.c /usr/lib/libpci.a -lz >> >> see what happens. >> >> ron > > Aha, that ran successfully

Re: [LinuxBIOS] Can't compile flashrom

2007-11-28 Thread ron minnich
On Nov 28, 2007 7:53 AM, Shocky <[EMAIL PROTECTED]> wrote: > Aha, that ran successfully. I can even run the thing program, which does > nothing other than give me a return code of 8. Seems like progress. Does it > give you a clue what's wrong with the linker on Mandriva? I can only tell you, from

Re: [LinuxBIOS] Can't compile flashrom

2007-11-28 Thread Shocky
On Tuesday 27 November 2007 17:33, ron minnich wrote: > gcc -o thing thing.c /usr/lib/libpci.a -lz > > see what happens. > > ron Aha, that ran successfully. I can even run the thing program, which does nothing other than give me a return code of 8. Seems like progress. Does it give you a clue wh

Re: [LinuxBIOS] Can't compile flashrom

2007-11-28 Thread Shocky
On Tuesday 27 November 2007 19:52, Peter Stuge wrote: > On Tue, Nov 27, 2007 at 05:19:01PM -0700, Shocky wrote: > > Thanks, I knew there had to be a command that would do this. This > > just deepens the mystery further. nm tells me that within > > /usr/lib/libpci.a access.o defines the external sym

Re: [LinuxBIOS] Can't compile flashrom

2007-11-28 Thread Shocky
On Wednesday 28 November 2007 06:19, Peter Stuge wrote: > On Tue, Nov 27, 2007 at 08:23:07PM -0800, Russell Whitaker wrote: > > It's not libpci.a, it's a missing zlib package. It contains libz > > and libz.so. In the Makefile the flags passed to the linker are > > " -lpci -lz" > > Does the zlib pac

Re: [LinuxBIOS] Can't compile flashrom

2007-11-28 Thread Peter Stuge
On Tue, Nov 27, 2007 at 08:23:07PM -0800, Russell Whitaker wrote: > It's not libpci.a, it's a missing zlib package. It contains libz > and libz.so. In the Makefile the flags passed to the linker are > " -lpci -lz" Does the zlib package really contain a file called libz ? Where? Anyway, libz.so is

Re: [LinuxBIOS] Can't compile flashrom

2007-11-27 Thread Russell Whitaker
On Wed, 28 Nov 2007, Peter Stuge wrote: > On Tue, Nov 27, 2007 at 05:19:01PM -0700, Shocky wrote: >> Thanks, I knew there had to be a command that would do this. This >> just deepens the mystery further. nm tells me that within >> /usr/lib/libpci.a access.o defines the external symbol >> "07

Re: [LinuxBIOS] Can't compile flashrom

2007-11-27 Thread Peter Stuge
On Tue, Nov 27, 2007 at 05:19:01PM -0700, Shocky wrote: > Thanks, I knew there had to be a command that would do this. This > just deepens the mystery further. nm tells me that within > /usr/lib/libpci.a access.o defines the external symbol > "0760 T pci_alloc". So if nm can see it, why can't l

Re: [LinuxBIOS] Can't compile flashrom

2007-11-27 Thread ron minnich
gcc -o thing thing.c /usr/lib/libpci.a -lz see what happens. ron -- linuxbios mailing list linuxbios@linuxbios.org http://www.linuxbios.org/mailman/listinfo/linuxbios

Re: [LinuxBIOS] Can't compile flashrom

2007-11-27 Thread Shocky
On Tuesday 27 November 2007 16:28, ron minnich wrote: > On Nov 27, 2007 3:17 PM, Shocky <[EMAIL PROTECTED]> wrote: > > It won't link. The linker always returns the error: > > > > undefined reference to 'pci_alloc' > > btw, on the next strace, do -s 1024 :-) > > I notice it seems to be linking with

Re: [LinuxBIOS] Can't compile flashrom

2007-11-27 Thread Shocky
On Tuesday 27 November 2007 15:50, David Hendricks wrote: > I've had similar issues after upgrading my compilation toolchain > incorrectly and will wager a guess that the issues you are facing have more > to do with your distribution than with flashrom. A few questions that come > to mind -- Have y

Re: [LinuxBIOS] Can't compile flashrom

2007-11-27 Thread ron minnich
On Nov 27, 2007 3:17 PM, Shocky <[EMAIL PROTECTED]> wrote: > It won't link. The linker always returns the error: > > undefined reference to 'pci_alloc' btw, on the next strace, do -s 1024 :-) I notice it seems to be linking with a .a instead of a .o for libpci. did you do an nm on that library?

Re: [LinuxBIOS] Can't compile flashrom

2007-11-27 Thread Shocky
On Tuesday 27 November 2007 16:01, ron minnich wrote: > So according to this trace the build succeeded. > > So what's wrong? > > ron It won't link. The linker always returns the error: undefined reference to 'pci_alloc' Shocky -- These are my opinions. Get your own. -- linuxbios mailing list

Re: [LinuxBIOS] Can't compile flashrom

2007-11-27 Thread ron minnich
So according to this trace the build succeeded. So what's wrong? ron -- linuxbios mailing list linuxbios@linuxbios.org http://www.linuxbios.org/mailman/listinfo/linuxbios

Re: [LinuxBIOS] Can't compile flashrom

2007-11-27 Thread David Hendricks
On Nov 25, 2007 8:24 AM, Shocky <[EMAIL PROTECTED]> wrote: > I'm trying to compile just the flashrom component of LinuxBios from svn, > but make gives me an error telling me that I need to install pciutils-devel > and zlib-devel. The problem is these packages are already installed. > > I extracted

Re: [LinuxBIOS] Can't compile flashrom

2007-11-27 Thread Shocky
On Tuesday 27 November 2007 08:57, Corey Osgood wrote: ... > http://rpmfind.net/linux/rpm2html/search.php?query=flashrom > > The rpms are there, for immediate use, and also the maintainer's contact > info. Perhaps he knows something we don't (but should). Source is there > as well to see if there a

Re: [LinuxBIOS] Can't compile flashrom

2007-11-27 Thread Shocky
On Tuesday 27 November 2007 08:56, ron minnich wrote: > strace -f, thanks :-) > > ron Okay, here it is gzipped. Shocky -- These are my opinions. Get your own. fail.gz Description: GNU Zip compressed data -- linuxbios mailing list linuxbios@linuxbios.org http://www.linuxbios.org/mailman/listin

Re: [LinuxBIOS] Can't compile flashrom

2007-11-27 Thread Corey Osgood
Shocky wrote: > On Tuesday 27 November 2007 02:46, Stefan Reinauer wrote: > >> * Shocky <[EMAIL PROTECTED]> [071126 21:37]: >> >>> It just says: >>> >>> Checking for pciutils and zlib... not found. >>> >>> Please install pciutils-devel and zlib-devel. >>> >>> Nothing more informative. >>>

Re: [LinuxBIOS] Can't compile flashrom

2007-11-27 Thread ron minnich
strace -f, thanks :-) ron -- linuxbios mailing list linuxbios@linuxbios.org http://www.linuxbios.org/mailman/listinfo/linuxbios

Re: [LinuxBIOS] Can't compile flashrom

2007-11-27 Thread Shocky
On Monday 26 November 2007 16:04, ron minnich wrote: > let's keep this simple :-) > > I am getting mixed up > > #include int main(){struct pci_access *p = pci_alloc();} > > strace -o /tmp/fail cc thing.c -lpci -lz > > and tell me what shakes. > > ron Okay, see attached. Shocky -- These are my o

Re: [LinuxBIOS] Can't compile flashrom

2007-11-27 Thread ron minnich
I have yet to see anyone try my trivial trick on mandriva which, again, is something like this: #include main(){return pci_alloc();} cc a.c -lpci -lz and tell us what happens. ron -- linuxbios mailing list linuxbios@linuxbios.org http://www.linuxbios.org/mailman/listinfo/linuxbios

Re: [LinuxBIOS] Can't compile flashrom

2007-11-27 Thread Shocky
On Tuesday 27 November 2007 02:46, Stefan Reinauer wrote: > * Shocky <[EMAIL PROTECTED]> [071126 21:37]: > > It just says: > > > > Checking for pciutils and zlib... not found. > > > > Please install pciutils-devel and zlib-devel. > > > > Nothing more informative. > > What pciutils, pciutils-devel,

Re: [LinuxBIOS] Can't compile flashrom

2007-11-27 Thread Stefan Reinauer
* Shocky <[EMAIL PROTECTED]> [071126 21:37]: > It just says: > > Checking for pciutils and zlib... not found. > > Please install pciutils-devel and zlib-devel. > > Nothing more informative. What pciutils, pciutils-devel, zlib and zlib-devel package versions do you have installed on your system?

Re: [LinuxBIOS] Can't compile flashrom

2007-11-26 Thread Russell Whitaker
On Mon, 26 Nov 2007, ron minnich wrote: > let's keep this simple :-) > Thought I'd try it and see what happens. Went to website, downloaded "latest linuxbios v2", and found flashrom missing. Downloaded -2986 and found it. "make" complied flashrom with no errors. Box here is slackware 12.0 with

Re: [LinuxBIOS] Can't compile flashrom

2007-11-26 Thread ron minnich
let's keep this simple :-) I am getting mixed up #include int main(){struct pci_access *p = pci_alloc();} strace -o /tmp/fail cc thing.c -lpci -lz and tell me what shakes. ron -- linuxbios mailing list linuxbios@linuxbios.org http://www.linuxbios.org/mailman/listinfo/linuxbios

Re: [LinuxBIOS] Can't compile flashrom

2007-11-26 Thread Shocky
On Monday 26 November 2007 14:30, ron minnich wrote: > run the checker under strace please :) > > ron When you say "the checker", are you referring to the 'ld test.o' command that shows the linking problem, or something else? Shocky -- These are my opinions. Get your own. -- linuxbios mailing

Re: [LinuxBIOS] Can't compile flashrom

2007-11-26 Thread Shocky
On Monday 26 November 2007 14:45, Jordan Crouse wrote: > On 26/11/07 13:30 -0800, ron minnich wrote: > > run the checker under strace please :) > > Strace might be a little too verbose (thank you very much, GNU make). > > Try make -n first. > > > ron > > > > -- > > linuxbios mailing list > > linuxb

Re: [LinuxBIOS] Can't compile flashrom

2007-11-26 Thread Jordan Crouse
On 26/11/07 13:30 -0800, ron minnich wrote: > run the checker under strace please :) Strace might be a little too verbose (thank you very much, GNU make). Try make -n first. > ron > > -- > linuxbios mailing list > linuxbios@linuxbios.org > http://www.linuxbios.org/mailman/listinfo/linuxbios >

Re: [LinuxBIOS] Can't compile flashrom

2007-11-26 Thread ron minnich
run the checker under strace please :) ron -- linuxbios mailing list linuxbios@linuxbios.org http://www.linuxbios.org/mailman/listinfo/linuxbios

Re: [LinuxBIOS] Can't compile flashrom

2007-11-26 Thread Shocky
On Monday 26 November 2007 09:02, Forest Dean Feighner wrote: > Uwe Hermann wrote: > > If all else fails, edit the Makefile to remove the check for > > pciutils-dev etc. and see if it works anyway. Maybe it's just the check > > which is broken. > > I was having troubles with the check for pciutils-

Re: [LinuxBIOS] Can't compile flashrom

2007-11-26 Thread Forest Dean Feighner
Uwe Hermann wrote: > > If all else fails, edit the Makefile to remove the check for > pciutils-dev etc. and see if it works anyway. Maybe it's just the check > which is broken. > > I was having troubles with the check for pciutils-devel and zlib-devel last night. Removing the dep check showed m

Re: [LinuxBIOS] Can't compile flashrom

2007-11-26 Thread Shocky
On Monday 26 November 2007 13:03, ron minnich wrote: > On Nov 26, 2007 8:34 AM, Shocky <[EMAIL PROTECTED]> wrote: > > On Sunday 25 November 2007 19:42, ron minnich wrote: > > > how's about we just figure out why flashrom won't build? > > > > > > ron > > > > Yeah, that's what I was hoping for 8^). A

Re: [LinuxBIOS] Can't compile flashrom

2007-11-26 Thread Shocky
On Monday 26 November 2007 12:52, Uwe Hermann wrote: > Please post the full compile output here. > > Do you have pciutils-dev and zlib-dev (or whatever it's called on your > distribution) installed? > > Also, there's a Mandriva package already (don't know in which "branch" > of Mandriva though). Do

Re: [LinuxBIOS] Can't compile flashrom

2007-11-26 Thread ron minnich
On Nov 26, 2007 8:34 AM, Shocky <[EMAIL PROTECTED]> wrote: > On Sunday 25 November 2007 19:42, ron minnich wrote: > > how's about we just figure out why flashrom won't build? > > > > ron > > Yeah, that's what I was hoping for 8^). Any ideas? send me the output from a failed build. ron -- linuxb

Re: [LinuxBIOS] Can't compile flashrom

2007-11-26 Thread Uwe Hermann
On Mon, Nov 26, 2007 at 09:34:17AM -0700, Shocky wrote: > On Sunday 25 November 2007 19:42, ron minnich wrote: > > how's about we just figure out why flashrom won't build? > > > > ron > > Yeah, that's what I was hoping for 8^). Any ideas? Please post the full compile output here. Do you have pci

Re: [LinuxBIOS] Can't compile flashrom

2007-11-26 Thread Shocky
On Sunday 25 November 2007 19:42, ron minnich wrote: > how's about we just figure out why flashrom won't build? > > ron Yeah, that's what I was hoping for 8^). Any ideas? -- These are my opinions. Get your own. -- linuxbios mailing list linuxbios@linuxbios.org http://www.linuxbios.org/mailman/

Re: [LinuxBIOS] Can't compile flashrom

2007-11-26 Thread Shocky
On Sunday 25 November 2007 14:38, Frederico Silva wrote: > Hi, > > If you need a windows environment without installing it, you can try use > a Preinstalled Environment like BartPE . > I don't know how to create a BartPE under Linux (maybe with Wine...). > > __

Re: [LinuxBIOS] Can't compile flashrom

2007-11-25 Thread ron minnich
how's about we just figure out why flashrom won't build? ron -- linuxbios mailing list linuxbios@linuxbios.org http://www.linuxbios.org/mailman/listinfo/linuxbios

Re: [LinuxBIOS] Can't compile flashrom

2007-11-25 Thread Frederico Silva
Hi, If you need a windows environment without installing it, you can try use a Preinstalled Environment like BartPE . I don't know how to create a BartPE under Linux (maybe with Wine...). ___ Frederico Silva Shocky wrote: > On Sunday 25 November 2007 11

Re: [LinuxBIOS] Can't compile flashrom

2007-11-25 Thread Shocky
On Sunday 25 November 2007 11:45, Corey Osgood wrote: ... > Some HP laptops these days use SPI flash, which flashrom can do only in > one special situation (afaik), Gigabyte m57sli. Also, the flash may have > protection coming from the embedded controller or GPIO lines, which > flashrom knows nothi

Re: [LinuxBIOS] Can't compile flashrom

2007-11-25 Thread Shocky
On Sunday 25 November 2007 11:08, Frederico Silva wrote: > Hello, > > I'm a new member of the mailing list too, until now i was only a passive > reader. > > I have a suggestion. You can use grub to boot a floppy disk image with > the flasher and bios. (and flash it). > Here is how > http://gentoo-w

Re: [LinuxBIOS] Can't compile flashrom

2007-11-25 Thread Corey Osgood
Shocky wrote: > Hi, > > I'm new to LinuxBios, and just looking for a way to flash the bios on an HP > laptop without installing Windoze. None of the tricks I've found through > Google have worked for me so far, including HP's own utility for making > bootable usb keys. > Some HP laptops thes

Re: [LinuxBIOS] Can't compile flashrom

2007-11-25 Thread Frederico Silva
Hello, I'm a new member of the mailing list too, until now i was only a passive reader. I have a suggestion. You can use grub to boot a floppy disk image with the flasher and bios. (and flash it). Here is how http://gentoo-wiki.com/TIP_Boot_Floppydisk_Image_without_Floppy_using_GRUB Good luck

[LinuxBIOS] Can't compile flashrom

2007-11-25 Thread Shocky
Hi, I'm new to LinuxBios, and just looking for a way to flash the bios on an HP laptop without installing Windoze. None of the tricks I've found through Google have worked for me so far, including HP's own utility for making bootable usb keys. I'm trying to compile just the flashrom component