Upon booting a 2.6.21 or higher kernel I get kernel panics when the FTDI module loads (built into my kernel). This only happens when my FTDI device is plugged in. Because it's a kernel panic, I have no idea how to paste the stack trace it dumps to the screen here - the machine is frozen when it does this. It references attempting to access a NULL pointer in part of the kernel panic. Reproducible: Always Steps to Reproduce: 1. Compile a kernel with FTDI support built in (probably does the same as a module, but I'm trying to be specific) 2. Boot said kernel with a USB UIRT device plugged in (probably does the same with any FTDI device, but again, being specific) 3. Watch the fireworks as the kernel blows up Actual Results: Kernel panic observed, stack trace visible but not recordable Expected Results: Should boot with FTDI support Here's a copy of 'uname -a': rich@basilisk ~ $ uname -a Linux basilisk 2.6.21-gentoo-r4 #1 SMP Thu Aug 9 11:01:12 EDT 2007 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 4400+ AuthenticAMD GNU/Linux and 'emerge --info': rich@basilisk ~ $ emerge --info Portage 2.1.3.3 (default-linux/amd64/2006.1, gcc-4.1.2, glibc-2.5-r4, 2.6.21-gentoo-r4 x86_64) ================================================================= System uname: 2.6.21-gentoo-r4 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 4400+ Gentoo Base System release 1.12.9 Timestamp of tree: Thu, 09 Aug 2007 06:20:01 +0000 dev-java/java-config: 1.3.7, 2.0.33-r1 dev-lang/python: 2.4.4-r4 dev-python/pycrypto: 2.0.1-r6 sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.61 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.17 sys-devel/gcc-config: 1.3.16 sys-devel/libtool: 1.5.23b virtual/os-headers: 2.6.21 ACCEPT_KEYWORDS="amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe -march=athlon64" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c" CXXFLAGS="-O2 -pipe -march=athlon64" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://gentoo.osuosl.org/ ftp://distro.ibiblio.org/pub/linux/distributions/gentoo/ http://distro.ibiblio.org/pub/linux/distributions/gentoo/" LINGUAS="en" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/portage/local/layman/armagetron /usr/local/portage" SYNC="rsync://gorgon/gentoo-portage" USE="X a52 aac aalib acpi aim alsa amd64 arts audiofile bash-completion berkdb bitmap-fonts bonobo bzip2 cdb cdparanoia cdr cli cracklib crypt cscope ctype cups curl curlwrappers db2 dbase dbm dbus dga dio directfb doc dri dts dv dvd dvdr dvdread eds encode ethereal examples fbcon ffmpeg fftw firefox flac fortran ftp gdbm ggi gif gimp gimpprint glib gnome gnutls gpm gtk gtk2 hal iconv imagemagick imap imlib innodb iodbc ipv6 isdnlog java joystick jpeg jpeg2k kde lcd ldap libcaca libedit libg++ lirc lua lzo mad md5sum midi mikmod mmap mng mozilla mp3 mpeg mpi mplayer mssql mudflap mysql mysqli ncurses nls nocd nptl nptlonly nsplugin odbc offensive ogg openal opengl openmp oss pam pcre pdf perl physfs png postgres ppds pppd python qt qt3 qt4 quicktime readline reflection samba sdl session sharedmem smp sndfile snmp speex spell spl sqlite ssl svg sysfs szip tcl tcltk tcpd tetex theora tidy tiff timidity tk transcode truetype truetype-fonts type1-fonts unicode usb utempter v4l vcd videos vim-syntax vorbis wmf xanim xforms xine xinerama xml xorg xosd xpm xprint xv xvid zlib" ALSA_CARDS="cmipci usb-audio" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" LIRC_DEVICES="usb_uirt_raw" USERLAND="GNU" VIDEO_CARDS="nvidia none" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Using 2.6.21-gentoo-r7 here and it works fine
Richard, The oops message would really help us. You could try one of the following: 1. Hand copy the message from the screen. (not much fun...) 2. Take a digital picture 3. use kdump (somewhat involved). 4. Boot with a serial console (see /usr/src/linux/Documentation/serial-console.txt)
Richard, If you still have problems please feel free to reopen with the information requested.
Created attachment 135366 [details] kernel register dump kernel register dump that occurs when the ftdi module is loaded under a 2.6.21 kernel
This bug is apparently also covered at http://bugzilla.kernel.org/show_bug.cgi?id=8564 - it was apparently fixed under the red hat kernel 2.6.22.1-33.fc7... I'll check whether it's fixed or not under the latest stable 2.6.22 or later kernel.
Works with 2.6.22-gentoo-r9