From owner-freebsd-embedded@freebsd.org Mon Mar 16 20:02:19 2020 Return-Path: Delivered-To: freebsd-embedded@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 9FED926E2F4 for ; Mon, 16 Mar 2020 20:02:19 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from outbound2m.ore.mailhop.org (outbound2m.ore.mailhop.org [54.149.155.156]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 48h6f31typz48C7 for ; Mon, 16 Mar 2020 20:02:19 +0000 (UTC) (envelope-from ian@freebsd.org) ARC-Seal: i=1; a=rsa-sha256; t=1584388938; cv=none; d=outbound.mailhop.org; s=arc-outbound20181012; b=nIsb9XkLUfUP0zPse5jMaCJXYmWk2huB7e/S0cVGbFRFzcoCpr+UARCk7AcirM97pjmsa+WKfHaLH XXOVkqjPehh9PR7AC5/qh2pk0N6Twdjvnb9OUBiDMRf7ntEgNHYEd71rXw5WfdwjriEfex6X+eauTz WLhYWwiEAyfIrOqjKqc3UTfgJ0pADYdpkU6fe05W/HqbzsQ5KCwQF/SRQwd0RcNDLxbviPD8ctQIdz LFq/RbhZZ0d+fDhrKX3oy8eaB3tlrD4SZ44JPWm9wRKg8tJeyVsRMpd7oq0W7r2oP1oKmE17NtADPY BaftwwV6Vexzk/l29RbEqkLNvXy1JWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=outbound.mailhop.org; s=arc-outbound20181012; h=content-transfer-encoding:mime-version:content-type:references:in-reply-to: date:cc:to:from:subject:message-id:dkim-signature:from; bh=ymUUkGtxJwLuBr7xg9JOgiE5Peaezo3QZdMe/C6/0E0=; b=oPiwGNao9naelps9yTtcAa0wCcmIO8i2aukZUSJSG6nrKE9+OLwquDvivNtHNSTqGrVj4hPkvLrZU yQ/AkdHJ2Eh8GOR2+NtxKmvqT1EfcGPd/clhfWCudyin6S6Vl6kQVitStFyqZdpSlrAbaLSNLgDcMa Pwr+sECBdTKUvaMG7KgV01xKGE04PwFhAu3rdU0UScpFJE9oE18tWJp08mRaUBQfsR2EcFnYWefsmO kqLuNI09e4FeV1cwF8sWBux53R9IdD538IVafa3EGFoMrqRskCizaWVj1tK2s3F2Y4PjV0kwB2N4tv y1RqPJ+cJFGvRbERY2ZDjQVPdcht+GA== ARC-Authentication-Results: i=1; outbound4.ore.mailhop.org; spf=softfail smtp.mailfrom=freebsd.org smtp.remote-ip=67.177.211.60; dmarc=none header.from=freebsd.org; arc=none header.oldest-pass=0; DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outbound.mailhop.org; s=dkim-high; h=content-transfer-encoding:mime-version:content-type:references:in-reply-to: date:cc:to:from:subject:message-id:from; bh=ymUUkGtxJwLuBr7xg9JOgiE5Peaezo3QZdMe/C6/0E0=; b=BhM2hqZw78+94nEW+A2EIqa6eGhduVUxSiMrzMkIRILvzZsWZAmVHN2n03Vt9MvlgIPwFKdwC+2ZQ abn+ptcqLDpaV6tn6vwpbxUtnglKyEigAw0g/B/6j1n6BKP2F93PBH0iUS7deqz+Iu79G0al8ueFlr xA48LMJnacCmeezNDXLGRIZoBxScRIwzEm4iygD46nzrY5XFm8yZDwwrZURRHju5ZdbXX0bP+PNGvn fPMg0JmALfFvmDanCcQRkTSVrgYXt4dgQkUbJK/dM7MMken+osIIA7rhAeWJv5M+EJR9cap3LyEP3e tJEpfgV3Q0tIHMzlfRSMoFeqqwsxhtg== X-MHO-RoutePath: aGlwcGll X-MHO-User: 08a3b031-67c1-11ea-9eb3-25e2dfa9fa8d X-Report-Abuse-To: https://support.duocircle.com/support/solutions/articles/5000540958-duocircle-standard-smtp-abuse-information X-Originating-IP: 67.177.211.60 X-Mail-Handler: DuoCircle Outbound SMTP Received: from ilsoft.org (unknown [67.177.211.60]) by outbound4.ore.mailhop.org (Halon) with ESMTPSA id 08a3b031-67c1-11ea-9eb3-25e2dfa9fa8d; Mon, 16 Mar 2020 20:02:16 +0000 (UTC) Received: from rev (rev [172.22.42.240]) by ilsoft.org (8.15.2/8.15.2) with ESMTP id 02GK2FxS069291; Mon, 16 Mar 2020 14:02:15 -0600 (MDT) (envelope-from ian@freebsd.org) Message-ID: Subject: Re: STM32 not identified From: Ian Lepore To: bmelo Cc: "freebsd-embedded@freebsd.org" Date: Mon, 16 Mar 2020 14:02:15 -0600 In-Reply-To: References: <2e1b00c4213037f308417c902291e0a88c06674b.camel@freebsd.org> Content-Type: text/plain; charset="iso-2022-jp" X-Mailer: Evolution 3.28.5 FreeBSD GNOME Team Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 48h6f31typz48C7 X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [0.06 / 15.00]; local_wl_from(0.00)[freebsd.org]; NEURAL_SPAM_MEDIUM(0.98)[0.975,0]; ASN(0.00)[asn:16509, ipnet:54.148.0.0/15, country:US]; NEURAL_HAM_LONG(-0.91)[-0.911,0] X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Mar 2020 20:02:19 -0000 On Mon, 2020-03-16 at 16:46 +0000, bmelo wrote: > Here is my devfs.rules: >=20 > [devfsrules_common=3D7] > add path 'ad[0-9]\*' mode 666 > add path 'ada[0-9]\*' mode 666 > add path 'da[0-9]\*' mode 666 > add path 'acd[0-9]\*' mode 666 > add path 'cd[0-9]\*' mode 666 > add path 'cuaU[0-9]\*' mode 666 > add path 'mmcsd[0-9]\*' mode 666 > add path 'pass[0-9]\*' mode 666 > add path 'xpt[0-9]\*' mode 666 > add path 'ugen[0-9]\*' mode 666 > add path 'usbctl' mode 666 > add path 'usb/\*' mode 666 > add path 'ttyU[0-9]\*' mode 666 > add path 'lpt[0-9]\*' mode 666 > add path 'ulpt[0-9]\*' mode 666 > add path 'unlpt[0-9]\*' mode 666 > add path 'fd[0-9]\*' mode 666 > add path 'uscan[0-9]\*' mode 666 > add path 'video[0-9]\*' mode 666 > add path 'tuner[0-9]*' mode 666 > add path 'dvb/\*' mode 666 > add path 'cx88*' mode 0660 > add path 'iicdev*' mode 0660 > add path 'uvisor[0-9]*' mode 0660 >=20 I suspect the escaped wildcards are causing a problem, try using "cuaU*" instead of "cuaU[0-9]\*" (and likewise for all the rules, I don't think there is any device that puts a literal * in the devfs name). -- Ian >=20 >=20 >=20 > Sent from ProtonMail, Swiss-based encrypted email. >=20 > =1B$B!>!>!>!>!>!>!>=1B(B Original Message =1B$B!>!>!>!>!>!>!>=1B(B > On Monday, 16 de March de 2020 s 13:23, Ian Lepore > wrote: >=20 > > On Mon, 2020-03-16 at 12:23 +0000, bmelo via freebsd-embedded > > wrote: > >=20 > > > Hi, I have a STM32 Nucleo board and installed stlink from ports > > > here. > > > But all the time I run st-util command I get the message: > > > WARN usb.c: Couldn't find any ST-Link/V2 devices > > > The Nucleo creates cuaU0 and ttyU0 in /dev. It seems like a > > > permission problem, but I have no idea how to fix that. I already > > > tried to edit /etc/devfs.rules and the problem persists. > > > /dev/cuaU0 > > > is uucp:dialer and ttyU0 is root:wheel. > > > Any idea? > >=20 > > You didn't saywhat you tried with devfs.rules. This is what I use > > (because I am the only user of this machine, so security is not a > > problem; these might not be good for a shared machine): > >=20 > > [localrules=3D10] > > add path "ttyU*" mode 0666 > > add path "cuaU*" mode 0666 > > add path "ugen*" mode 0666 > > add path "usb/*" mode 0666 > > add path "usb" mode 0755 > >=20 > > -- Ian >=20 >=20 >=20