df-util && required minimum kernel version

Matthias Apitz guru at unixarea.de
Tue Sep 23 06:03:27 CEST 2008

El día Tuesday, September 23, 2008 a las 11:12:05AM +1000, Sarton O'Brien escribió:

> On Monday 22 September 2008 17:14:45 Matthias Apitz wrote:
> > guru at albatros:~> uname -a
> > Linux albatros 2.6.5-7.97-smp #1 SMP Fri Jul 2 14:21:59 UTC 2004 i686 i686
> > i386 GNU/Linux guru at albatros:~> ./dfu-util -V
> > FATAL: kernel too old
> > Segmentation fault
> >
> > i.e. what is the minimum required kernel version for df-util?
> > thx
> I'm not sure, is it a 32bit binary? My system is:

yes, the above 'albatros' runs a normal SLES:

guru at albatros:~> cat /etc/SuSE-release 
SUSE LINUX Enterprise Server 9 (i586)

on a 32bit CPU;

> # uname -a
> Linux trunks 2.6.26-ARCH #1 SMP PREEMPT Tue Sep 9 09:56:28 UTC 2008 x86_64 AMD 
> Athlon(tm) 64 X2 Dual Core Processor 5000+ AuthenticAMD GNU/Linux
> And I have no issues. I am a bit bleeding edge though. It seems strange that 
> you are running 2.6 and you get that error.
> # file dfu-util
> dfu-util: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), statically 
> linked, for GNU/Linux 2.6.8, not stripped
> # ./dfu-util -V
> dfu-util - (C) 2007 by OpenMoko Inc.
> This program is Free Software and has ABSOLUTELY NO WARRANTY
> dfu-util version 0.1+svn4160

I've played around on various Linux boxes I have with newer kernels, it
seems to run fine on a 2.6.14 kernel; that the dfu-util executable is
linked for GNU/Linux 2.6.8 does not say much about what they require
internally; see:

$ strings dfu-util | fgrep kernel
could not detach kernel driver from interface %d: %s
FATAL: kernel too old
FATAL: cannot determine kernel version

i.e. they check /proc/sys/kernel/osrelease and for sure compare it
against some value; interestingly this check is not in the recent
sources I've pulled out from SVN (this was my first place to look,
before asking that question to the list);

anyway; I'll put a Knoppix 5.1.1 on an USB key to use this as
alternative boot in my laptop (which runs FreeBSD, would be nice to port
later dfu-util to FreeBSD :-))

thx for your feedback anyway;

Matthias Apitz
Manager Technical Support - OCLC GmbH
Gruenwalder Weg 28g - 82041 Oberhaching - Germany
t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211
e <matthias.apitz at oclc.org> - w http://www.oclc.org/ http://www.UnixArea.de/
b http://gurucubano.blogspot.com/
A computer is like an air conditioner, it stops working when you open Windows
Una computadora es como aire acondicionado, deja de funcionar si abres Windows

More information about the community mailing list