From owner-freebsd-arm@FreeBSD.ORG Thu Sep 19 20:50:39 2013 Return-Path: Delivered-To: freebsd-arm@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 12464E8D for ; Thu, 19 Sep 2013 20:50:39 +0000 (UTC) (envelope-from torfinn.ingolfsen@getmail.no) Received: from bouvier.getmail.no (bouvier.getmail.no [84.210.184.8]) by mx1.freebsd.org (Postfix) with ESMTP id B737328F6 for ; Thu, 19 Sep 2013 20:50:38 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by bouvier.getmail.no (Postfix) with ESMTP id F0FB542447 for ; Thu, 19 Sep 2013 22:44:24 +0200 (CEST) X-Spam-Flag: NO X-Spam-Score: -2.96 X-Spam-Level: X-Spam-Status: No, score=-2.96 tagged_above=-10 required=6.6 tests=[ALL_TRUSTED=-1, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, T_KHOP_THREADED=-0.01, T_NICE_REPLY_A=0.01, T_TVD_SUBJ_NUM_OBFU=0.01, T_TVD_SUBJ_NUM_OBFU2=0.01, T_TVD_SUBJ_NUM_OBFU3=0.01, T_UNKNOWN_ORIGIN=0.01] autolearn=ham Authentication-Results: bouvier.get.c.bitbit.net (amavisd-new); dkim=pass (1024-bit key) header.d=getmail.no Received: from bouvier.getmail.no ([127.0.0.1]) by localhost (bouvier.get.c.bitbit.net [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id rKNVVuedgM9X for ; Thu, 19 Sep 2013 22:44:24 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by bouvier.getmail.no (Postfix) with ESMTP id 959A6424E5 for ; Thu, 19 Sep 2013 22:44:24 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.7.1 bouvier.getmail.no 959A6424E5 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=getmail.no; s=8A9C8B4C-D727-11E2-8095-B6466E6B3FA2; t=1379623464; bh=M7nR547E+Z8OoAhuU8VLXr9fY3GSyy3ank57fUBF/sE=; h=Date:From:To:Subject:Message-Id:Mime-Version:Content-Type: Content-Transfer-Encoding; b=0toNjLeJ8vR6MN0TBrU74182qTHz+/QAUznxV6a+sDo673vG2roqZzrH91OlMUjDh PvsgBte5uzpoKD5W3grj+Ggkrc3m3G7apr0LQm26uyfNPe+N9yVnXhafvEVYXHviiz XiinV4486qDRmEMlbti4szcq1L909jDsAjyKcvD8= X-Virus-Scanned: amavisd-new at Received: from bouvier.getmail.no ([127.0.0.1]) by localhost (bouvier.get.c.bitbit.net [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id L4_z069_h5rt for ; Thu, 19 Sep 2013 22:44:24 +0200 (CEST) Received: from kg-core1.kg4.no (cm-84.215.180.206.getinternet.no [84.215.180.206]) by bouvier.getmail.no (Postfix) with ESMTPSA id 6089142447 for ; Thu, 19 Sep 2013 22:44:24 +0200 (CEST) Date: Thu, 19 Sep 2013 22:44:24 +0200 From: Torfinn Ingolfsen To: freebsd-arm@FreeBSD.org Subject: Re: stm32flash under FreeBSD? Message-Id: <20130919224424.d3f1a8ae8048da982ca3863b@getmail.no> In-Reply-To: <20130919110656.5F9E197257B@macavity.inf.ed.ac.uk> References: <20130919110656.5F9E197257B@macavity.inf.ed.ac.uk> X-Mailer: Sylpheed 3.3.0 (GTK+ 2.24.19; amd64-portbld-freebsd8.4) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Sep 2013 20:50:39 -0000 On Thu, 19 Sep 2013 12:06:56 +0100 (BST) Richard Tobin wrote: > > Then it mangles the error reporting to make it > > look like the tty device was the thing not found. > > It appears to call perror(device) if serial_setup() returns an error, > even though that can fail without setting errno. To me (but I am no expert) it looks like it never reaches serial_setup(), it fails after serrial_open(). -- Torfinn Ingolfsen