From owner-freebsd-current@freebsd.org Sun Jan 28 00:12:03 2018 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B2623ECCBDC for ; Sun, 28 Jan 2018 00:12:03 +0000 (UTC) (envelope-from david.boyd49@twc.com) Received: from dnvrco-cmomta01.email.rr.com (dnvrco-outbound-snat.email.rr.com [107.14.73.232]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "Client", Issuer "CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 45B2681792 for ; Sun, 28 Jan 2018 00:12:02 +0000 (UTC) (envelope-from david.boyd49@twc.com) Received: from bashful.bsd1.net ([74.138.140.144]) by cmsmtp with ESMTPA id faZeeXE822oQkfaZgeHvWv; Sun, 28 Jan 2018 00:11:57 +0000 Message-ID: <1517098312.13907.2.camel@twc.com> Subject: VM images for 12.0-CURRENT have problem with USB 3.0 flash drives From: David Boyd To: freebsd-current@freebsd.org Date: Sat, 27 Jan 2018 19:11:52 -0500 X-Mailer: Evolution 3.22.6 (3.22.6-10.el7) Mime-Version: 1.0 X-CMAE-Envelope: MS4wfMkeIKXorGPnLtFBYe6BWtRqQPYJb6vECpj/HTanZIU53P/haSjy8x/NvWTP8hjtYh/uT1m4kC6UUvzFwXMUTLwpJUzJXPrNPvkcjMCZmjYSM8+TGmG4 14irN7NGEs3OyNlNtWri3Sn4GT17FNnkUJQcVi9km9i5RIUPV95vA6/O2R99pWNvyh6Tp37q7ACBUw== Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.25 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Jan 2018 00:12:03 -0000 Beginning with 12.0-CURRENT VM image: FreeBSD-12.0-CURRENT-amd64-20180118-r328126.vmdk.xz and continuing with 12.0-CURRENT VM image: FreeBSD-12.0-CURRENT-amd64-20180125-r328383.vmdk.xz when a USB flash drive is present via the attached USB 3.0 controller the console hangs for 10-12 minutes during boot and then emits the error messages seen in the attachment. The UFS filesystem on the USB flash drive cannot be mounted. If the USB flash drive is connected via the attached USB 2.0 controller, everything is good. This problem is not manifested in any 10.4-STABLE or 11.1-STABLE VM images. The host system is CentOS EL7 7.1708. VirtualBox version is 5.2.6. The USB 3.0 controller uses a VIA chipset. System is for test purposes only, so it is easy to try anything that might help resolve this problem. Thanks. David Boyd From owner-freebsd-current@freebsd.org Sun Jan 28 03:42:31 2018 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1783AED5D5C for ; Sun, 28 Jan 2018 03:42:31 +0000 (UTC) (envelope-from kiri@kx.openedu.org) Received: from kx.openedu.org (flets-sg1027.kamome.or.jp [202.216.24.27]) (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 7374D69898 for ; Sun, 28 Jan 2018 03:42:29 +0000 (UTC) (envelope-from kiri@kx.openedu.org) Received: from kx.openedu.org (kx.openedu.org [202.216.24.27]) by kx.openedu.org (8.14.5/8.14.5) with ESMTP id w0S3gKZ7023238; Sun, 28 Jan 2018 12:42:20 +0900 (JST) (envelope-from kiri@kx.openedu.org) Message-Id: <201801280342.w0S3gKZ7023238@kx.openedu.org> Date: Sun, 28 Jan 2018 12:42:20 +0900 From: KIRIYAMA Kazuhiko To: freebsd-current@freebsd.org Cc: kiri@kx.openedu.org Subject: USB wifi dongle can't work User-Agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?ISO-8859-4?Q?Goj=F2?=) APEL/10.6 MULE XEmacs/21.4 (patch 22) (Instant Classic) (amd64--freebsd) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Jan 2018 03:42:31 -0000 Hi, I've tested a USB wifi dongle but can't work. It's usbconfig is as follows: ugen0.2: at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (160mA) bLength = 0x0012 bDescriptorType = 0x0001 bcdUSB = 0x0201 bDeviceClass = 0x0000 bDeviceSubClass = 0x0000 bDeviceProtocol = 0x0000 bMaxPacketSize0 = 0x0040 idVendor = 0x148f idProduct = 0x7601 bcdDevice = 0x0000 iManufacturer = 0x0001 iProduct = 0x0002 <802.11 n WLAN> iSerialNumber = 0x0003 <1.0> bNumConfigurations = 0x0001 So I tried to work with it by adding vendor entry to usbdevs and if_run.c: --- sys/dev/usb/usbdevs.org 2018-01-27 16:00:48.963304000 +0900 +++ sys/dev/usb/usbdevs 2018-01-27 17:23:53.341085000 +0900 @@ -3845,6 +3845,7 @@ product RALINK RT3573 0x3573 RT3573 product RALINK RT5370 0x5370 RT5370 product RALINK RT5572 0x5572 RT5572 +product RALINK RT7601 0x7601 RT7601 product RALINK RT8070 0x8070 RT8070 product RALINK RT2570_3 0x9020 RT2500USB Wireless Adapter product RALINK RT2573_2 0x9021 RT2501USB Wireless Adapter --- sys/dev/usb/wlan/if_run.c.org 2018-01-27 17:25:50.504335000 +0900 +++ sys/dev/usb/wlan/if_run.c 2018-01-27 17:29:29.438094000 +0900 @@ -300,6 +300,7 @@ RUN_DEV(RALINK, RT3573), RUN_DEV(RALINK, RT5370), RUN_DEV(RALINK, RT5572), + RUN_DEV(RALINK, RT7601), RUN_DEV(RALINK, RT8070), RUN_DEV(SAMSUNG, WIS09ABGN), RUN_DEV(SAMSUNG2, RT2870_1), and reconfigured kernel and set rc.conf: hostname="t.pis" ifconfig_wlan0="DHCP mode 11n" wlans_run0="wlan0" saver="logo" sendmail_enable="NONE" sshd_enable="YES" usbd_enable="YES" ntpd_enable="YES" then rebooted. But can't start as DHCP client: admin@t:~ % ifconfig lo0: flags=8049 metric 0 mtu 16384 options=600003 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1 inet 127.0.0.1 netmask 0xff000000 nd6 options=21 groups: lo wlan0: flags=8843 metric 0 mtu 1500 ether 00:0f:00:4a:7f:28 nd6 options=29 media: IEEE 802.11 Wireless Ethernet autoselect (autoselect) status: no carrier ssid "" channel 11 (2462 MHz 11g) regdomain FCC country US authmode OPEN privacy OFF txpower 30 bmiss 7 scanvalid 60 protmode CTS wme bintval 0 groups: wlan admin@t:~ % dmesg shows: ugen0.2: at usbus0 run0 on uhub0 run0: on usbus0 run0: MAC/BBP RT7601 (rev 0x0500), RF RT5592 (MIMO 1T1R), address 00:0f:00:4a:7f:28 wlan0: Ethernet address: 00:0f:00:4a:7f:28 ugen0.3: at usbus0 ukbd0 on uhub0 ukbd0: on usbus0 kbd2 at ukbd0 ugen0.4: at usbus0 ugen0.5: at usbus0 run0: timeout waiting for MCU to initialize run0: could not load 8051 microcode This means there is not a driver for RT7601? root@t:~ # uname -v FreeBSD 12.0-CURRENT #0: Sat Jan 27 17:58:35 JST 2018 admin@lmainkx:/usr/obj/usr/src/amd64.amd64/sys/RT7601 root@t:~ # and OS revision is r328126. Is there any idea? Best regards. --- KIRIYAMA Kazuhiko