vlotho Posted June 19, 2018 Share Posted June 19, 2018 Hello I would like to connect a 3d printer in usb on my cubietruck, except that when I connect it it does not detect the dev port. I do not know what to do. I do not know which USB driver works on the cubietruck. dmesg : [37883.769292] usb 4-1: new full-speed USB device number 4 using ohci-platform [37884.038336] usb 4-1: New USB device found, idVendor=1a86, idProduct=7523 [37884.038354] usb 4-1: New USB device strings: Mfr=0, Product=2, SerialNumber=0 [37884.038365] usb 4-1: Product: USB2.0-Serial on which port dev is connected the printer? Link to comment Share on other sites More sharing options...
martinayotte Posted June 19, 2018 Share Posted June 19, 2018 Which kernel/image are you using ? What is the output of "grep CH34 /boot/config-<kernel number>" command ? It should be something like : CONFIG_USB_SERIAL_CH341=m Link to comment Share on other sites More sharing options...
vlotho Posted June 19, 2018 Author Share Posted June 19, 2018 root@cubietruck:~# uname -a Linux cubietruck 4.14.14-sunxi #1 SMP Thu Jan 25 12:20:57 CET 2018 armv7l GNU/Linux root@cubietruck:~# grep CH34 /boot/config-4.14.18-sunxi CONFIG_USB_SERIAL_CH341=m oot@cubietruck:/boot# modprobe CH341 modprobe: ERROR: ../libkmod/libkmod.c:586 kmod_search_moddep() could not open moddep file '/lib/modules/4.14.14-sunxi/modules.dep.bin' modprobe: FATAL: Module CH341 not found in directory /lib/modules/4.14.14-sunxi Link to comment Share on other sites More sharing options...
martinayotte Posted June 19, 2018 Share Posted June 19, 2018 Then, you should have it as /dev/ttyUSB0 ... Is it shown when doing "lsusb" ? The dmesg doesn't report something like : [ 7.992734] usbserial: USB Serial support registered for ch341-uart [ 8.001849] usb 8-1: ch341-uart converter now attached to ttyUSB0 Strange ... What "lsmod" is reporting ? "ch341" should be present ... Link to comment Share on other sites More sharing options...
vlotho Posted June 19, 2018 Author Share Posted June 19, 2018 root@cubietruck:/boot# lsusb Bus 004 Device 004: ID 1a86:7523 QinHeng Electronics HL-340 USB-Serial adapter the only mention of USB in the dmesg is in the first message. Link to comment Share on other sites More sharing options...
martinayotte Posted June 19, 2018 Share Posted June 19, 2018 Óooh ! I didn't notice carefully your previous reply : Kernel is 4.14.14-sunxi but you config is config-4.14.18-sunxi ... Kind of mismatch ... Do you have the module in /lib/modules/4.14.14-sunxi/kernel/drivers/usb/serial/ch341.ko or in /lib/modules/4.14.18-sunxi/kernel/drivers/usb/serial/ch341.ko ? Maybe expected missing path is the cause of your issue ... Link to comment Share on other sites More sharing options...
vlotho Posted June 19, 2018 Author Share Posted June 19, 2018 root@cubietruck:~# cd /lib/modules/4.14.14-sunxi -bash: cd: /lib/modules/4.14.14-sunxi: No such file or directory root@cubietruck:~# ls /lib/modules/4.14.18-sunxi/kernel/drivers/usb/serial/ch341.ko /lib/modules/4.14.18-sunxi/kernel/drivers/usb/serial/ch341.ko a path problem? Link to comment Share on other sites More sharing options...
vlotho Posted June 19, 2018 Author Share Posted June 19, 2018 I had updated the linux-config-sunxi but not the dtb, and so after having updated and restart the CB, I finally get the default ch341, by cons I lost the wifi, and it is no longer available in armbian-config .... Link to comment Share on other sites More sharing options...
martinayotte Posted June 19, 2018 Share Posted June 19, 2018 20 minutes ago, vlotho said: a path problem? Of course ... You have kernel 4.14.14 and modules for 4.14.18 ... 1 minute ago, vlotho said: I lost the wifi This is not related to path issue. I don't own CB, so, are you saying that WiFi under 4.14.14 was working and not in 4.14.18 ? Link to comment Share on other sites More sharing options...
vlotho Posted June 19, 2018 Author Share Posted June 19, 2018 right Link to comment Share on other sites More sharing options...
martinayotte Posted June 19, 2018 Share Posted June 19, 2018 Is it a USB WiFi dongle ? What is the WiFi chip in it ? Link to comment Share on other sites More sharing options...
vlotho Posted June 20, 2018 Author Share Posted June 20, 2018 no, it's the built-in wifi. that's what it gives me: root@cubietruck:/var/log# ifup wlan0 ifup: /etc/network/interfaces:6: unknown or no address type and no inherits keyword specified ifup: couldn't read interfaces file "/etc/network/interfaces" GNU nano 2.7.4 File: /etc/network/interfaces # armbian-config created source /etc/network/interfaces.d/* # Local loopback auto lo iface lo init loopback # Interface wlan0 allow-hotplug wlan0 no-auto-down wlan0 auto wlan0 iface wlan0 inet dhcp wpa-ssid "xx xx" wpa-psk xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx it seems to me that the driver is : brcmfmac 159744 0 brcmutil 16384 1 brcmfmac cfg80211 376832 1 brcmfmac ifconfig : wlan0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500 ether 98:3b:16:1e:68:9c txqueuelen 1000 (Ethernet) RX packets 0 bytes 0 (0.0 RX errors 0 dropped 0 overruns 0 frame 0 TX packets 0 bytes 0 (0.0 TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 root@cubietruck:/var/log# dmesg | grep wlan0 [74218.968343] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready root@cubietruck:/var/log# dmesg | grep brc [ 12.865633] brcmfmac: brcmf_fw_map_chip_to_name: using brcm/brcmfmac43362-sdio.bin for chip 0x00a962(43362) rev 0x000001 [ 13.164295] brcmfmac: brcmf_c_preinit_dcmds: Firmware version = wl0: Apr 22 2013 14:50:00 version 5.90.195.89.6 FWID 01-b30a427d root@cubietruck:/var/log# dmesg | grep error [ 8.401022] nand_bbt: error while writing bad block table -28 [ 8.401185] sunxi_nand: probe of 1c03000.nand failed with error -28 [ 13.244008] EXT4-fs (mmcblk0p1): re-mounted. Opts: commit=600,errors=remount-ro CONFIG_BRCMUTIL=m # CONFIG_BRCMSMAC is not set CONFIG_BRCMFMAC=m CONFIG_BRCMFMAC_PROTO_BCDC=y CONFIG_BRCMFMAC_SDIO=y Link to comment Share on other sites More sharing options...
martinayotte Posted June 20, 2018 Share Posted June 20, 2018 I don't have much ideas ... Could be DT related ... Is the DTB matching the kernel too ? What do you have with "dmesg | grep mmc" ? Link to comment Share on other sites More sharing options...
vlotho Posted June 20, 2018 Author Share Posted June 20, 2018 root@cubietruck:/var/log# uname -a Linux cubietruck 4.14.18-sunxi #24 SMP Fri Feb 9 16:24:32 CET 2018 armv7l GNU/Linux root@cubietruck:/var/log# ls /boot/ System.map-4.14.18-sunxi armbianEnv.txt.out boot-desktop.png boot.cmd config-4.14.18-sunxi dtb-4.14.18-sunxi initrd.img-4.14.18-sunxi uInitrd vmlinuz-4.14.18-sunxi armbianEnv.txt armbian_first_run.txt.template boot.bmp boot.scr dtb dtb.old overlay-user uInitrd-4.14.18-sunxi zImage root@cubietruck:/var/log# dmesg | grep mmc* [ 8.421813] libphy: stmmac: probed [ 8.421877] RTL8211E Gigabit Ethernet stmmac-0:00: attached PHY driver [RTL8211E Gigabit Ethernet] (mii_bus:phy_addr=stmmac-0:00, irq=POLL) [ 8.421886] RTL8211E Gigabit Ethernet stmmac-0:01: attached PHY driver [RTL8211E Gigabit Ethernet] (mii_bus:phy_addr=stmmac-0:01, irq=POLL) [ 8.424833] mousedev: PS/2 mouse device common for all mice [ 8.443355] ldo1: supplied by regulator-dummy [ 8.443600] ldo2: supplied by regulator-dummy [ 8.444685] ldo3: supplied by regulator-dummy [ 8.445302] ldo4: supplied by regulator-dummy [ 8.445502] ldo5: supplied by regulator-dummy [ 8.446102] dcdc2: supplied by regulator-dummy [ 8.446726] dcdc3: supplied by regulator-dummy [ 8.468017] sunxi-mmc 1c0f000.mmc: Got CD GPIO [ 8.522455] sunxi-mmc 1c0f000.mmc: base:0xf0ad5000 irq:28 [ 8.524495] sunxi-mmc 1c11000.mmc: Got CD GPIO [ 8.569096] mmc0: host does not support reading read-only switch, assuming write-enable [ 8.571641] mmc0: new high speed SDHC card at address 59b4 [ 8.572700] mmcblk0: mmc0:59b4 SDU1 7.50 GiB [ 8.574458] mmcblk0: p1 [ 8.582319] sunxi-mmc 1c11000.mmc: base:0xf0ad9000 irq:29 [ 8.755585] ata1: SATA max UDMA/133 mmio [mem 0x01c18000-0x01c18fff] port 0x100 irq 35 [ 9.020069] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator [ 9.734746] sunxi-mmc 1c12000.mmc: allocated mmc-pwrseq [ 9.792135] sunxi-mmc 1c12000.mmc: base:0xf1568000 irq:30 [ 9.817018] mmc2: queuing unknown CIS tuple 0x80 (2 bytes) [ 9.820230] mmc2: queuing unknown CIS tuple 0x80 (3 bytes) [ 9.823677] mmc2: queuing unknown CIS tuple 0x80 (3 bytes) [ 9.826769] mmc2: queuing unknown CIS tuple 0x80 (7 bytes) [ 9.849562] mmc2: new high speed SDIO card at address 0001 [ 11.011623] EXT4-fs (mmcblk0p1): mounted filesystem with writeback data mode. Opts: (null) [ 12.422633] systemd[1]: Listening on fsck to fsckd communication Socket. [ 13.244008] EXT4-fs (mmcblk0p1): re-mounted. Opts: commit=600,errors=remount-ro [ 17.663361] RTL8211E Gigabit Ethernet stmmac-0:00: attached PHY driver [RTL8211E Gigabit Ethernet] (mii_bus:phy_addr=stmmac-0:00, irq=POLL) root@cubietruck:/var/log# l /etc/network/interfaces -rw------- 1 root root 295 Jun 20 19:06 /etc/network/interfaces root@cubietruck:/var/log# systemctl status networking.service ● networking.service - Raise network interfaces Loaded: loaded (/lib/systemd/system/networking.service; enabled; vendor preset: enabled) Active: failed (Result: exit-code) since Wed 2018-06-20 21:23:40 CEST; 44s ago Docs: man:interfaces(5) Process: 15550 ExecStart=/sbin/ifup -a --read-environment (code=exited, status=1/FAILURE) Process: 15546 ExecStartPre=/bin/sh -c [ "$CONFIGURE_INTERFACES" != "no" ] && [ -n "$(ifquery --read-environment --list --exclude=lo)" ] && udevadm settle (code=exited, status=1/FAILURE) Main PID: 15550 (code=exited, status=1/FAILURE) Jun 20 21:23:40 cubietruck systemd[1]: Starting Raise network interfaces... Jun 20 21:23:40 cubietruck sh[15546]: ifquery: /etc/network/interfaces:6: unknown or no address type and no inherits keyword specified Jun 20 21:23:40 cubietruck sh[15546]: ifquery: couldn't read interfaces file "/etc/network/interfaces" Jun 20 21:23:40 cubietruck ifup[15550]: ifup: /etc/network/interfaces:6: unknown or no address type and no inherits keyword specified Jun 20 21:23:40 cubietruck ifup[15550]: ifup: couldn't read interfaces file "/etc/network/interfaces" Jun 20 21:23:40 cubietruck systemd[1]: networking.service: Main process exited, code=exited, status=1/FAILURE Jun 20 21:23:40 cubietruck systemd[1]: Failed to start Raise network interfaces. Jun 20 21:23:40 cubietruck systemd[1]: networking.service: Unit entered failed state. Jun 20 21:23:40 cubietruck systemd[1]: networking.service: Failed with result 'exit-code'. Link to comment Share on other sites More sharing options...
Igor Posted June 20, 2018 Share Posted June 20, 2018 2 hours ago, vlotho said: /etc/network/interfaces.d/ Do you have anything there? Link to comment Share on other sites More sharing options...
vlotho Posted June 20, 2018 Author Share Posted June 20, 2018 Nothing Link to comment Share on other sites More sharing options...
martinayotte Posted June 20, 2018 Share Posted June 20, 2018 2 hours ago, vlotho said: [ 9.849562] mmc2: new high speed SDIO card at address 0001 That is what I wished to see ... So, probably not a DT issue ... 2 hours ago, vlotho said: Jun 20 21:23:40 cubietruck sh[15546]: ifquery: /etc/network/interfaces:6: unknown or no address type and no inherits keyword specified Jun 20 21:23:40 cubietruck sh[15546]: ifquery: couldn't read interfaces file "/etc/network/interfaces" Jun 20 21:23:40 cubietruck ifup[15550]: ifup: /etc/network/interfaces:6: unknown or no address type and no inherits keyword specified Jun 20 21:23:40 cubietruck ifup[15550]: ifup: couldn't read interfaces file "/etc/network/interfaces" What are the permissions on this file ? Link to comment Share on other sites More sharing options...
vlotho Posted June 20, 2018 Author Share Posted June 20, 2018 root@cubietruck:/var/log# l /etc/network/interfaces -rw------- 1 root root 295 Jun 20 19:06 /etc/network/interfaces in 644 it's the same mistake. Link to comment Share on other sites More sharing options...
vlotho Posted June 20, 2018 Author Share Posted June 20, 2018 I found !!! it's not "iface lo init loopback" but "iface lo inet loopback" and it is not me that generates this error. you are useless. 1 Link to comment Share on other sites More sharing options...
Recommended Posts