From owner-freebsd-hackers@freebsd.org Fri May 22 07:21:57 2020 Return-Path: Delivered-To: freebsd-hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 45EC1328538 for ; Fri, 22 May 2020 07:21:57 +0000 (UTC) (envelope-from wojtek@puchar.net) Received: from puchar.net (puchar.net [194.1.144.90]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 49Sybl65Tvz3dwQ; Fri, 22 May 2020 07:21:55 +0000 (UTC) (envelope-from wojtek@puchar.net) Received: Received: from 127.0.0.1 (localhost [127.0.0.1]) by puchar.net (8.15.2/8.15.2) with ESMTPS id 04M7LmrX033648 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Fri, 22 May 2020 09:21:49 +0200 (CEST) (envelope-from puchar-wojtek@puchar.net) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=puchar.net; s=default; t=1590132109; bh=0eLcxrk/9Tbr7/tSVg1nV0yFJL9tRf3Y1Xvet4iR/kE=; h=Date:From:To:cc:Subject:In-Reply-To:References; b=chjLluDRyD8A/FYYcIISYKIWp/h2GiXcnToDsDZUdrxynEtvOLCPHD2aBI5MGuboz +b3JUnRcJUhel58LMahzQMvvA/Q687k2sjbJB+TXaMX53TIEEFtdKnC2lCedpKvfrE FstD66RplcDMLhnbBRGSUMt8PY3KzfBz0u+WJjBs= Received: from localhost (puchar-wojtek@localhost) by puchar.net (8.15.2/8.15.2/Submit) with ESMTP id 04M7Lmka033645; Fri, 22 May 2020 09:21:48 +0200 (CEST) (envelope-from puchar-wojtek@puchar.net) Date: Fri, 22 May 2020 09:21:48 +0200 (CEST) From: Wojciech Puchar To: Eugene Grosbein cc: Wojciech Puchar , Ian Lepore , freebsd-hackers@freebsd.org Subject: Re: raspberry pi 3 B+ - working but rc.conf problem In-Reply-To: Message-ID: References: <17fed972681c4fdbf4edd669b4e9446753fa6bd9.camel@freebsd.org> <0a5a043ced7509cee9a2ca85e76a080cadd3bd5d.camel@freebsd.org> User-Agent: Alpine 2.20 (BSF 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed X-Rspamd-Queue-Id: 49Sybl65Tvz3dwQ X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=fail (headers rsa verify failed) header.d=puchar.net header.s=default header.b=chjLluDR; dmarc=none; spf=pass (mx1.freebsd.org: domain of wojtek@puchar.net designates 194.1.144.90 as permitted sender) smtp.mailfrom=wojtek@puchar.net X-Spamd-Result: default: False [-1.52 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.99)[-0.988]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; MIME_GOOD(-0.10)[text/plain]; R_DKIM_REJECT(1.00)[puchar.net:s=default]; DMARC_NA(0.00)[puchar.net]; NEURAL_HAM_LONG(-0.93)[-0.933]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[puchar.net:-]; NEURAL_HAM_SHORT(-0.30)[-0.299]; RCVD_IN_DNSWL_NONE(0.00)[194.1.144.90:from]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:43476, ipnet:194.1.144.0/24, country:PL]; RCVD_COUNT_TWO(0.00)[2]; MID_RHS_MATCH_FROM(0.00)[] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 May 2020 07:21:57 -0000 i simply wrote a script to wait for ue0 (and ue1 - external ethernet port i've added) to appear On Thu, 21 May 2020, Eugene Grosbein wrote: > 21.05.2020 16:15, Wojciech Puchar wrote: >>>> >>>> doesn't work. >>>> well.. it waits but after netif >>>> >>> >>> Doesn't it get configured when devd starts and emits the attach event >>> for it? The idea for the netwait_if list is it waits for the devices >> i don't run devd. > > This is real reason. In modern FreeBSD, USB ethernet is not configured synchronously > with other procedures at boot time. Instead, USB ethernet devices are configured asynchronously > by devd that starts its configuration in background, in parallel with other booting procedures. > > You really need to run devd if you want ue0 to be configured as expected by system startup scripts. > If you don't run devd, you are asking for troubles you observe. > > > > >