From owner-freebsd-questions@FreeBSD.ORG Sun Sep 14 19:57:56 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id DC203A2F for ; Sun, 14 Sep 2014 19:57:56 +0000 (UTC) Received: from mail.tivas.info (85.234.217.139.static.edpnet.net [85.234.217.139]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 71A21F14 for ; Sun, 14 Sep 2014 19:57:55 +0000 (UTC) Received: from localhost.localdomain ([192.168.3.104]) by mail.tivas.info (8.14.4/8.14.4) with ESMTP id s8EJvsQw016104 for ; Sun, 14 Sep 2014 21:57:54 +0200 (CEST) (envelope-from bram@diomedia.be) Message-ID: <5415F341.9090004@diomedia.be> Date: Sun, 14 Sep 2014 21:57:53 +0200 From: Bram Van Steenlandt User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.7.0 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: ufdti issues - compile kernel without module Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Sep 2014 19:57:56 -0000 Hi, I'm porting a plc/automation system from linux to freebsd and while doing so I've discovered some issues with uftdi (the system use a couple of rs485 connections). Under linux I'v used the ftdi adapters as com ports, they show up as /dev/ttyUSB0 etc, this works mostly ok. With freebsd, I've found that while ufdti works it's much slower than it's linux counterpart, with linux the Tx/Rx leds are flashing rapidly, I can poll a plc 10 times per second, with freebsd this was about 2 times per second, serial parameters are the same. I've found other reports online from people who experience similar issues. I then tried porting the application so that it uses libftdi (in serial mode), when using libftdi performance was very good also on freebsd. So the problem must be the uftdi kernel module (I think). You can't use libftdi if you have the uftdi kernel module loaded. I did not succeed in building a kernel without the uftdi module, deleting it from /boot/kernel works but probably isn't "the way". I've tried: to put WITHOUT_MODULES=uftdi in /etc/make.conf but this makes no difference, when running make buildkernel it still build the module. Is there a way to do this ? Or does freebsd have it's own blacklist system ? I've found various information online and I've tried various things but I can't seem to get this to work. thx Bram