Jump to content

Problem with USB after upgrade


chocorem

Recommended Posts

Hello

 

I'm using my Banana pi Pro as a domitic box with a Zwave Key connected on USB (aeotec Gen5)

 

This morning, unfortunately, I made a apt-get Upgrade which updated the following packages

armbian-firmware armbian-tools-jessie base-files bash ca-certificates dbus dbus-x11 e2fslibs e2fsprogs file
  fonts-opensymbol libc-bin libc-dev-bin libc6 libc6-dev libcairo-gobject2 libcairo2 libcomerr2 libdbus-1-3
  libdbus-1-dev libgnutls-deb0-28 libgnutls-openssl27 libgudev-1.0-0 libhogweed2 libmagic1 libnettle4
  libpam-modules libpam-modules-bin libpam-runtime libpam-systemd libpam0g libpng12-0 libpng12-dev
  libreoffice-base-core libreoffice-common libreoffice-core libreoffice-java-common libreoffice-style-galaxy
  libreoffice-writer libss2 libsystemd0 libudev-dev libudev1 linux-headers-sun7i linux-image-sun7i
  linux-u-boot-bananapipro-default locales multiarch-support plexmediaserver-installer sed systemd systemd-sysv
  tzdata udev uno-libs3 ure wireless-regdb

the resulting version is

Welcome to ARMBIAN 5.25 stable Debian GNU/Linux 8 (jessie) 3.4.112-sun7i 

after the upgrade, the USB key is not recognized anymore (it was previously on /dev/ttyACM0. I tested the key in another system and no problem it is recongnized. I read on internet that it could be something wrong with some CDC ACM driver ?

 

can somebody help me ? my house is paralysed :(

Link to comment
Share on other sites

From where / which version did you upgrade? Did you made any changes to default configuration? Without logs, we can't do anything. Type: 

armbianmonitor -u

for a start.

Link to comment
Share on other sites

3 minutes ago, chocorem said:

 

no change at all, board is powerd by micro USB port, running with attached monitor

 


Strange and un-explainable issues are in most cases related to power problems and powering via micro USB is a call for troubles. Your system might already be on the edge and altered u-boot with different power settings could ruin this edge power balance. Change PSU, cables, solder a LiPo battery ... than get back to the problem if it won't help.

Link to comment
Share on other sites

I already tried this, I have a second system, tried the PSU, cable and the USB stick from the second one. When I'm saying powered by the Micro USB, this is the special port on the Banana for Power.

 

But the system was working weel just before the upgrade and reboot ....

 

How can I check if the ACM support is enabled in the new Kernel ?

Link to comment
Share on other sites

I compared both system lsusb and get the same output

root@bananapipro:/dev# lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 003: ID 0658:0200 Sigma Designs, Inc. 
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

The stick is found ..... I swapped the SD card and the ssd with the other system, the other system is then not working.

The first system is then working with the other config. So the problem is not hardware, but software

Link to comment
Share on other sites

Since you said it was working before, this can't be the case. It's enabled: https://github.com/armbian/build/blob/master/config/kernel/linux-sun7i-default.config#L3009 and we haven't change this legacy kernel much. Here you can find all configs:

https://github.com/armbian/build/tree/master/config/kernel

 

ACM is enabled in modern kernel too (NEXT or DEV), so give it a try.

 

BTW. We can say Micro USB powering is a general design failure and even you use dedicated port, board might not get enough /stable power. It's something what board makers fool us and themselves. Putting into another words - most cables and mobile phone PSUs will fail to provide good enough power. If you have a SSD and a monitor attached and you are able to boot the board, you can consider yourself lucky. With USB devices you are getting to the area of extreme luck. :)

 

Quote

So the problem is not hardware, but software


Could be, but where?

Link to comment
Share on other sites

the only change in the boot directory (on the 28/04) seems to be linked with the kernel upgrade

root@bananapipro:/boot# ls -l
total 18308
drwxr-xr-x 2 root root    4096 Apr 28 08:18 bin
drwxr-xr-x 2 root root    4096 Nov  6 08:15 bin.old
-rw-r--r-- 1 root root    6944 Jun 22  2016 boot.bmp
-rw-r--r-- 1 root root    2278 Jun 22  2016 boot.cmd
-rw-r--r-- 1 root root    2350 Jun 22  2016 boot.scr
-rw-r--r-- 1 root root   97336 Feb 23 19:44 config-3.4.113-sun7i
-rw-r--r-- 1 root root 3666635 Apr 28 05:38 initrd.img-3.4.112-sun7i
-rw-r--r-- 1 root root 3666959 Apr 28 08:19 initrd.img-3.4.113-sun7i
lrwxrwxrwx 1 root root      19 Jun 22  2016 script.bin -> bin/bananapipro.bin
-rw-r--r-- 1 root root 2006042 Feb 23 19:44 System.map-3.4.113-sun7i
lrwxrwxrwx 1 root root      21 Apr 28 08:19 uInitrd -> uInitrd-3.4.113-sun7i
-rw-r--r-- 1 root root 3667023 Apr 28 08:19 uInitrd-3.4.113-sun7i
-rwxr-xr-x 1 root root 5607400 Feb 23 19:44 vmlinuz-3.4.113-sun7i
lrwxrwxrwx 1 root root      21 Apr 28 05:45 zImage -> vmlinuz-3.4.113-sun7i

in the /boot/bin, no change since february

 

-rw-r--r-- 1 root root 45952 Feb  2 03:20 aw-som-a20.bin
-rw-r--r-- 1 root root 50572 Feb  2 03:20 bananapi.bin
-rw-r--r-- 1 root root 50636 Feb  2 03:20 bananapilcd7.bin
-rw-r--r-- 1 root root 50720 Feb  2 03:20 bananapim1plus.bin
-rw-r--r-- 1 root root 50808 Feb  2 03:20 bananapim1pluslcd7.bin
-rw-r--r-- 1 root root 36464 Feb  2 03:20 bananapim2plus.bin
-rw-r--r-- 1 root root 50492 Feb  2 03:20 bananapipro.bin
-rw-r--r-- 1 root root 50508 Feb  2 03:20 bananapiprolcd7.bin
-rw-r--r-- 1 root root 35344 Feb  2 03:20 beelinkx2.bin
-rw-r--r-- 1 root root 46320 Feb  2 03:20 cubieboard2.bin
-rw-r--r-- 1 root root 46260 Feb  2 03:20 cubieboard2dual.bin
-rw-r--r-- 1 root root 43724 Feb  2 03:20 cubieboard.bin
-rw-r--r-- 1 root root 46412 Feb  2 03:20 cubietruck.bin
-rw-r--r-- 1 root root 51016 Feb  2 03:20 lamobo-r1.bin
-rw-r--r-- 1 root root 53488 Feb  2 03:20 lime2.bin
-rw-r--r-- 1 root root 53492 Feb  2 03:20 lime2-emmc.bin
-rw-r--r-- 1 root root 43524 Feb  2 03:20 lime-a10.bin
-rw-r--r-- 1 root root 43524 Feb  2 03:20 lime-a10-lcd.bin
-rw-r--r-- 1 root root 42024 Feb  2 03:20 lime-a33.bin
-rw-r--r-- 1 root root 52624 Feb  2 03:20 lime.bin
-rw-r--r-- 1 root root 52260 Feb  2 03:20 micro.bin
-rw-r--r-- 1 root root 34392 Feb  2 03:20 nanopiair.bin
-rw-r--r-- 1 root root 34220 Feb  2 03:20 nanopim1.bin
-rw-r--r-- 1 root root 34372 Feb  2 03:20 nanopim1plus.bin
-rw-r--r-- 1 root root 34416 Feb  2 03:20 nanopineo.bin
-rw-r--r-- 1 root root 29820 Feb  2 03:20 olinux-som-a13.bin
-rw-r--r-- 1 root root 34964 Feb  2 03:20 orangepi2.bin
-rw-r--r-- 1 root root 50976 Feb  2 03:20 orangepi.bin
-rw-r--r-- 1 root root 34704 Feb  2 03:20 orangepilite.bin
-rw-r--r-- 1 root root 34704 Feb  2 03:20 orangepione.bin
-rw-r--r-- 1 root root 34984 Feb  2 03:20 orangepipc.bin
-rw-r--r-- 1 root root 36392 Feb  2 03:20 orangepipcplus.bin
-rw-r--r-- 1 root root 36808 Feb  2 03:20 orangepiplus2e.bin
-rw-r--r-- 1 root root 36128 Feb  2 03:20 orangepiplus.bin
-rw-r--r-- 1 root root 35384 Feb  2 03:20 orangepizero.bin
-rw-r--r-- 1 root root 45256 Feb  2 03:20 pcduino2.bin
-rw-r--r-- 1 root root 49004 Feb  2 03:20 pcduino3.bin
-rw-r--r-- 1 root root 49304 Feb  2 03:20 pcduino3nano.bin
root@bananapipro:/boot/bin# 

 

Link to comment
Share on other sites

Well, I don't have hardware to test - if you want to get to the bottom of this:


1. Install build environment

2. Remove this patch https://github.com/armbian/build/blob/master/patch/kernel/sun7i-default/0018-patch-3.4.112-113.patch and try again

3. If 2. doesn't help, go back with the kernel config.

4. Skip 1-3 and try modern kernel.

Link to comment
Share on other sites

I will install everything from scratch ...with the server version, it worked, I see again /dev/ttyACM0 !

 

I was searching for the last desktop version in debian ? it doesn't exist anymore ? I cannot use ubuntu for my purpose, ?

 

Where can I download the desktop version ?

 

Thanks

Link to comment
Share on other sites

Hello So i'm again facing the problem and investigate a little more ! today I tried a apt-get upgrade and ran into the same problem ... /dev/ttyACM0 disapeared .....

 

So I took back a backup with the following configuration

 ____                                  ____  _ 
| __ )  __ _ _ __   __ _ _ __   __ _  |  _ \(_)
|  _ \ / _` | '_ \ / _` | '_ \ / _` | | |_) | |
| |_) | (_| | | | | (_| | | | | (_| | |  __/| |
|____/ \__,_|_| |_|\__,_|_| |_|\__,_| |_|   |_|
                                               
Welcome to ARMBIAN 5.25 stable Debian GNU/Linux 8 (jessie) 3.4.113-sun7i   
System load:   0.37                Up time:       1 hour        
Memory usage:  31 % of 876Mb      IP:            192.168.0.92
CPU temp:      45°C               HDD temp:      34°C               
Usage of /:    24% of 32G        storage/:      24% of 32G        

[ 171 updates to install: apt-get upgrade ]

 

The backup was from 29/04/17 when I made a fresh install ....

 

as you can see there was 171 update to do, so I start again the apt-get upgrade and got the following upgrade

 

The following packages will be upgraded:
  apache2 apache2-bin apache2-data apache2-utils armbian-firmware armbian-tools-jessie base-files bind9-host binutils bluetooth bluez ca-certificates curl debconf debconf-i18n
  debian-archive-keyring dnsutils fonts-opensymbol gir1.2-gdkpixbuf-2.0 git-man gnupg gpgv gtk2-engines-pixbuf hostapd icedove iceweasel imagemagick-common initramfs-tools libav-tools
  libavcodec56 libavdevice55 libavfilter5 libavformat56 libavresample2 libavutil54 libbind9-90 libbluetooth3 libc-bin libc-dev-bin libc6 libc6-dev libcedrus1 libcups2 libcurl3
  libcurl3-gnutls libdb5.3 libdns-export100 libdns100 libdri2-1 libdvdnav4 libexpat1 libexpat1-dev libffi6 libgail18 libgcrypt20 libgd3 libgdk-pixbuf2.0-0 libgdk-pixbuf2.0-common
  libgnutls-deb0-28 libgnutls-openssl27 libgraphite2-3 libgssapi-krb5-2 libgtk2.0-0 libgtk2.0-bin libgtk2.0-common libgudev-1.0-0 libicu52 libirs-export91 libisc-export95 libisc95
  libisccc90 libisccfg-export90 libisccfg90 libk5crypto3 libkrb5-3 libkrb5support0 libldap-2.4-2 liblwres90 libmagickcore-6.q16-2 libmagickwand-6.q16-2 libmali-sunxi-r3p0 libmwaw-0.3-3
  libmysqlclient18 libncurses5 libncursesw5 libnss3 libonig2 libpam-modules libpam-modules-bin libpam-systemd libpam0g libreoffice-base-core libreoffice-common libreoffice-core
  libreoffice-style-galaxy libreoffice-writer librtmp1 libsoup-gnome2.4-1 libsoup2.4-1 libssl-dev libssl1.0.0 libswscale3 libsystemd0 libtasn1-6 libtiff5 libtinfo5 libump libvdpau-sunxi1
  libvdpau1 libwbclient0 libwpd-0.10-10 libx11-6 libx11-data libx11-xcb1 libxcursor1 libxfixes3 libxfont1 libxi6 libxml2 libxrandr2 libxslt1.1 libxtst6 libxv1 linux-headers-sun7i
  linux-image-sun7i linux-jessie-root-bananapi linux-libc-dev linux-u-boot-bananapi-default locales login mali-sunxi-utils multiarch-support mysql-client mysql-client-5.5 mysql-common
  mysql-server mysql-server-5.5 mysql-server-core-5.5 ncurses-base ncurses-bin ncurses-term openssh-client openssh-server openssh-sftp-server openssl openvpn passwd perl perl-base
  perl-modules python-libxml2 rsync sensible-utils sudo sunxi-tools systemd systemd-sysv thunderbird tzdata uno-libs3 ure vim vim-common vim-runtime vim-tiny wpasupplicant xserver-common
  xserver-xorg-core xserver-xorg-video-fbturbo

after the upgrade I got this menu, something new about the armbian-config .

 

| __ )  __ _ _ __   __ _ _ __   __ _  |  _ \(_)
|  _ \ / _` | '_ \ / _` | '_ \ / _` | | |_) | |
| |_) | (_| | | | | (_| | | | | (_| | |  __/| |
|____/ \__,_|_| |_|\__,_|_| |_|\__,_| |_|   |_|
                                               

Welcome to ARMBIAN 5.36 user-built Debian GNU/Linux 8 (jessie) 3.4.113-sun7i   
System load:   2.20 0.48 0.16  	Up time:       0 min		
Memory usage:  11 % of 876MB  	IP:            192.168.0.92
CPU temp:      55°C           	
Usage of /:    25% of 32G    	

[ Menu-driven system configuration (beta): sudo apt update && sudo apt install armbian-config ]

New to Armbian? Check the documentation first: https://docs.armbian.com
Last login: Sat Jan  6 16:07:39 2018 from mbp-de-greg

 

In all this updates, something is creating the problem for the /dev/ttyACM0 .... but what ?

 

So now I'm rolling back to my backup, but this is weird !!

 

Thanks in advance

 

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines