Hi,
[please CC me, I'm not subscribed to debian-bsd]
the package flashrom (version 0.9.5) fails to compile for Debian/kFreeBSD. I have written a patch which should fix compilation and hopefully also work during runtime. Compile tests and run tests (no run tests on laptops/notebooks/servers please) would be appreciated. Just run
svn co svn://coreboot.org/flashrom/trunk flashrom cd flashrom curl -s http://patchwork.coreboot.org/patch/3561/raw/%7Cpatch -p1 make
A full build log would be nice to have so I can see any remaining build issues.
If you could test if flashrom works (do NOT test flashrom on laptops/notebooks/servers), that would be even better. Just run
flashrom -VV
which will spit out lots of diagnostic messages about your system and detect the flash chip. No other flash accesses (besides detection) will be performed.
Thanks for your help.
Regards, Carl-Daniel
Long time no see :-)
El 24 de febrer de 2012 0:55, Carl-Daniel Hailfinger c-d.hailfinger.devel.2006@gmx.net ha escrit:
I have written a patch which should fix compilation and hopefully also work during runtime.
The patch works perfectly. However, some changes are gratuitous or inaccurate:
-#elif defined(__FreeBSD__) || defined (__DragonFly__) +#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined (__DragonFly__) if ((io_fd = open("/dev/io", O_RDWR)) < 0) { #else if (iopl(3) != 0) {
We have both interfaces. You can keep using iopl() if you like.
#if defined(__FreeBSD__) || defined(__DragonFly__)
- /* Note that FreeBSD kernel with glibc does not have machine/cpufunc.h. */ #include <machine/cpufunc.h> #define off64_t off_t #define lseek64 lseek
Actually, we have machine/cpufunc.h (we have everything in machine/* actually). The off_t / lseek defines after this look dangerous though (they collide with glibc definitions).
A full build log would be nice to have so I can see any remaining build issues.
Attached (build.log).
If you could test if flashrom works (do NOT test flashrom on laptops/notebooks/servers), that would be even better. Just run
flashrom -VV
Attached (run.log).
Thanks for your help.
Thanks to you for your interest.