Jump to content

Viald

Members
  • Posts

    54
  • Joined

  • Last visited

Posts posted by Viald

  1. Hello.

    Is it possible to disable the background bluetooth scanning from the kernel ? I use the hci0 bluetooth device from another process

    Jan 21 13:00:53 kernel: [169827.582207] Bluetooth: hci0: start background scanning failed: -16
    Jan 21 13:01:20 kernel: [169854.495300] Bluetooth: hci0: Opcode 0x200d failed: -110
    Jan 21 13:01:20 kernel: [169854.495316] Bluetooth: hci0: request failed to create LE connection: err -110

     

    Thanks

  2. Sorry for the lack of information. I think that this kind of issue was not link to the hardware.

    I use an Odroid N2 4G. I boot on SD card, the system is on USB SSD disk.

     

    I did a workaround by adding the quirks option in the boot.ini file

    setenv bootargs "root=${rootdev} rootwait rootfstype=${rootfstype} ${condev} ${amlogic} no_console_suspend fsck.repair=yes net.ifnames=0 elevator=noop hdmimode=${hdmimode} cvbsmode=576cvbs max_freq_a53=${max_freq_a53} max_freq_a73=${max_freq_a73} maxcpus=${maxcpus} voutmode=${voutmode} ${cmode} disablehpd=${disablehpd} ${bootsplash} cvbscable=${cvbscable} overscan=${overscan} consoleblank=0 usb-storage.quirks=0x2109:0x0715:u"

     

    Here is the result of armbianmonitor -u  http://ix.io/2RDB

  3. Hello !

    Since last armbian update (5.10.16-meson64 #21.02.2 SMP PREEMPT) the quirks option added to the armbianEnv.txt file is not added to the boot command line at boot time

     

     armbianEnv.txt

    verbosity=1
    console=both
    overlay_prefix=meson
    rootdev=UUID=722afb48-c000-4b51-a382-ae3a7b132c86
    rootfstype=ext4
    usbstoragequirks=0x2537:0x1066:u,0x2537:0x1068:u,0x2109:0x0715:u

     

    Boot log

    Kernel command line: root=UUID=722afb48-c000-4b51-a382-ae3a7b132c86 rootwait rootfstype=ext4 console=ttyAML0,115200n8 console=tty1 loglevel=1  no_console_suspend fsck.repair=yes net.ifnames=0 elevator=noop hdmimode=custombuilt cvbsmode=576cvbs max_freq_a53=1896 max_freq_a73=1800 maxcpus=6 voutmode=hdmi modeline=1920,1080,148500,67500,60,1920,2008,2052,2200,1080,1084,1089,1125,1,1,1 disablehpd=false  cvbscable= overscan=100 consoleblank=0

     

    The system uses the UAS driver which causes disk freeze after few minutes of run.

  4.  

    On 12/9/2019 at 10:52 AM, balbes150 said:

    Did I understand correctly that you have N2 ?

    Yes I have a N2.

     

    On 12/9/2019 at 10:52 AM, balbes150 said:

    Try the latest generic images (RK+AML), there's a 5.4 kernel

    Could you please point me the link ?

     

    On 12/9/2019 at 10:52 AM, balbes150 said:

    By the way, which startup option (u-boot placement) do you use ?

    I'm using your odroid-n2 SPI u-boot image https://yadi.sk/d/pHxaRAs-tZiei/UPDATE_U-BOOT_odroid_n2

  5. root@jdm:~# tar cvf ~/boot.051219.tar /boot
    
    root@jdm:~# dpkg -l | grep linux-image
    ii  linux-image-aml-g12                  5.98                                arm64        Linux kernel, version 5.3.0-aml-g12
    
    root@jdm:~# sudo apt-get purge linux-image-aml-g12 
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    The following packages will be REMOVED:
      linux-image-aml-g12*
    0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
    After this operation, 110 MB disk space will be freed.
    Do you want to continue? [Y/n] 
    (Reading database ... 53311 files and directories currently installed.)
    Removing linux-image-aml-g12 (5.98) ...
    update-initramfs: Deleting /boot/initrd.img-5.3.0-aml-g12
    (Reading database ... 51042 files and directories currently installed.)
    Purging configuration files for linux-image-aml-g12 (5.98) ...
    dpkg: warning: while removing linux-image-aml-g12, directory '/boot/dtb' not empty so not removed
    
    
    root@jdm:~# apt update
    Hit:1 https://deb.nodesource.com/node_12.x buster InRelease
    Hit:2 http://mirrors.dotsrc.org/armbian-apt buster InRelease
    Hit:3 http://security.debian.org buster/updates InRelease
    Hit:4 http://cdn-fastly.deb.debian.org/debian buster InRelease
    Hit:5 http://cdn-fastly.deb.debian.org/debian buster-updates InRelease
    Hit:6 http://cdn-fastly.deb.debian.org/debian buster-backports InRelease
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    All packages are up to date.
    
    root@jdm:~# apt upgrade
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    Calculating upgrade... Done
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
    
    root@jdm:~# apt install linux-image-aml-g12               
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    The following NEW packages will be installed:
      linux-image-aml-g12
    0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
    Need to get 0 B/27.2 MB of archives.
    After this operation, 141 MB of additional disk space will be used.
    Selecting previously unselected package linux-image-aml-g12.
    (Reading database ... 51041 files and directories currently installed.)
    Preparing to unpack .../linux-image-aml-g12_5.99_arm64.deb ...
    Unpacking linux-image-aml-g12 (5.99) ...######################................................................................................................................................................................................] 
    Setting up linux-image-aml-g12 (5.99) ...#################################################################....................................................................................................................................] 
    update-initramfs: Generating /boot/initrd.img-5.3.0-aml-g12###########################################################################################........................................................................................] 
    update-initramfs: Converting to u-boot format
    
    
    root@jdm:~# apt update
    Hit:1 http://security.debian.org buster/updates InRelease
    Hit:2 http://mirrors.dotsrc.org/armbian-apt buster InRelease                                                   
    Hit:3 https://deb.nodesource.com/node_12.x buster InRelease                                                    
    Hit:4 http://cdn-fastly.deb.debian.org/debian buster InRelease             
    Hit:5 http://cdn-fastly.deb.debian.org/debian buster-updates InRelease
    Hit:6 http://cdn-fastly.deb.debian.org/debian buster-backports InRelease
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    All packages are up to date.
    
    
    root@jdm:~# apt upgrade
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    Calculating upgrade... Done
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
    
    root@jdm:~# dpkg -l | grep linux-image
    ii  linux-image-aml-g12                  5.99                                arm64        Linux kernel, version 5.3.0-aml-g12
    

    5.99 And voila :)

     

    root@jdm:/boot# uname -a
    Linux jdm 5.3.0-aml-g12 #5.98 SMP PREEMPT Tue Oct 8 12:22:08 MSK 2019 aarch64 GNU/Linux

    Need to reboot

  6. Hello.

    I have an error when trying to upgrade the kernel

     

    root@jdm:/boot# apt upgrade
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    Calculating upgrade... Done
    The following packages will be upgraded:
      linux-image-aml-g12
    1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
    3 not fully installed or removed.
    Need to get 0 B/27.2 MB of archives.
    After this operation, 31.3 MB of additional disk space will be used.
    Do you want to continue? [Y/n] 
    Reading changelogs... Done
    (Reading database ... 53286 files and directories currently installed.)
    Preparing to unpack .../linux-image-aml-g12_5.99_arm64.deb ...
    Unpacking linux-image-aml-g12 (5.99) over (5.98) .............................................................................................................................................................................................] 
    dpkg: error processing archive /var/cache/apt/archives/linux-image-aml-g12_5.99_arm64.deb (--unpack):
     unable to make backup link of './boot/System.map-5.3.0-aml-g12' before installing new version: Operation not permitted
    dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
    mv: cannot stat '/boot/vmlinuz-5.3.0-aml-g12': No such file or directory......................................................................................................................................................................] 
    Errors were encountered while processing:
     /var/cache/apt/archives/linux-image-aml-g12_5.99_arm64.

    The content of /boot

    root@jdm:/boot# ll
    total 40802
    drwxr-xr-x 2 root root     2048 Oct  4 12:21 'System Volume Information'
    -rwxr-xr-x 1 root root  4381366 Oct  8 11:22  System.map-5.3.0-aml-g12
    -rwxr-xr-x 1 root root      660 Oct  2 09:01  aml_autoscript
    -rwxr-xr-x 1 root root      588 Oct  2 09:01  aml_autoscript.cmd
    -rwxr-xr-x 1 root root      651 Oct  2 09:01  aml_autoscript.zip
    -rwxr-xr-x 1 root root     1536 Oct  2 09:01  armbian_first_run.txt.template
    -rwxr-xr-x 1 root root     4882 Oct  2 09:01  boot-desktop.png
    -rwxr-xr-x 1 root root    38518 Oct  2 09:01  boot.bmp
    -rwxr-xr-x 1 root root      709 Oct  2 09:09  boot.ini
    -rwxr-xr-x 1 root root   177990 Oct  8 11:22  config-5.3.0-aml-g12
    drwxr-xr-x 3 root root     6144 Oct 16 12:49  dtb
    drwxr-xr-x 2 root root     6144 Oct  2 09:00  dtb-5.3.0-aml-g12
    -rwxr-xr-x 1 root root      679 Oct  2 09:01  emmc_autoscript
    -rwxr-xr-x 1 root root      607 Oct  2 09:01  emmc_autoscript.cmd
    drwxr-xr-x 2 root root     2048 Oct  2 09:01  extlinux
    -rwxr-xr-x 1 root root  7934926 Nov 17 13:42  initrd.img-5.3.0-aml-g12
    drwxr-xr-x 2 root root     2048 Oct 12 12:02  old
    -rwxr-xr-x 1 root root     1112 Oct  2 09:01  s905_autoscript
    -rwxr-xr-x 1 root root     1040 Oct  2 09:01  s905_autoscript.cmd
    -rwxr-xr-x 1 root root      209 Oct  2 09:01  uEnv.ini
    -rwxr-xr-x 1 root root  7934990 Nov 17 13:42  uInitrd
    -rwxr-xr-x 1 root root 21262344 Oct  8 11:22  zImage
    root@jdm:/boot# 

    And the kernel release:

    root@jdm:/boot# uname -a
    Linux jdm 5.3.0-aml-g12 #5.98 SMP PREEMPT Tue Oct 8 12:22:08 MSK 2019 aarch64 GNU/Linux

     

    Thank you

  7. @balbes150 I have to go back to your kernel. Mine have strange issue. The system reboots without any reason. I have no error coming from the UAS driver in the syslog.

    Even with your kernel, I have noticed that reboot doesn't really work. The system stops, but the hardware doesn't restart. Could be a pain for a headless server.

  8. I succeed in building a new kernel with UAS driver. I have an issue when I want to install the .deb package.  The same issue when I do 'apt upgrade' with a new kernel release available.

    Preparing to unpack .../linux-image-aml-g12_5.98_arm64.deb ...
    Unpacking linux-image-aml-g12 (5.98) over (5.98) ..........................................................................................................................................................................................] 
    dpkg: error processing archive /var/cache/apt/archives/linux-image-aml-g12_5.98_arm64.deb (--unpack):
     unable to make backup link of './boot/System.map-5.3.0-aml-g12' before installing new version: Operation not permitted
    dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
    mv: cannot stat '/boot/vmlinuz-5.3.0-aml-g12': No such file or directory...................................................................................................................................................................] 
    Preparing to unpack .../nodejs_12.11.1-1nodesource1_arm64.deb ...
    Detected old npm client, removing...#########################..............................................................................................................................................................................] 
    Unpacking nodejs (12.11.1-1nodesource1) over (12.10.0-1nodesource1) ...
    Errors were encountered while processing:##################################................................................................................................................................................................] 
     /var/cache/apt/archives/linux-image-aml-g12_5.98_arm64.deb
    E: Sub-process /usr/bin/dpkg returned an error code (1)

     

     

  9. I think that the driver is not available on my release

    root@jdm:~# lsmod
    Module                  Size  Used by
    cdc_acm                36864  2
    bnep                   32768  2
    zstd                   16384  6
    zram                   32768  2
    btusb                  53248  0
    btrtl                  24576  1 btusb
    btbcm                  16384  1 btusb
    btintel                28672  1 btusb
    bluetooth             552960  26 btrtl,btintel,btbcm,bnep,btusb
    ecdh_generic           16384  2 bluetooth
    ecc                    32768  1 ecdh_generic
    ftdi_sio               65536  1
    rfkill                 28672  3 bluetooth
    option                 57344  0
    usb_wwan               24576  1 option
    usbserial              53248  5 ftdi_sio,usb_wwan,option
    crct10dif_ce           16384  1
    snd_soc_meson_axg_sound_card    20480  1
    ir_nec_decoder         20480  0
    dw_hdmi_cec            16384  0
    meson_ir               16384  0
    ao_cec_g12a            16384  0
    snd_soc_meson_axg_tdmout    20480  1
    snd_soc_meson_axg_frddr    24576  3
    snd_soc_meson_axg_fifo    20480  1 snd_soc_meson_axg_frddr
    snd_soc_meson_axg_tdm_interface    16384  2 snd_soc_meson_axg_sound_card
    snd_soc_meson_axg_tdm_formatter    16384  2 snd_soc_meson_axg_tdm_interface,snd_soc_meson_axg_tdmout
    ip_tables              32768  0
    x_tables               40960  1 ip_tables
    ipv6                  503808  54
    nf_defrag_ipv6         24576  1 ipv6
    crc_ccitt              16384  1 ipv6
    rtc_pcf8563            24576  0
    mdio_mux_meson_g12a    16384  0
    
    
    root@jdm:~# modprobe uas
    modprobe: FATAL: Module uas not found in directory /lib/modules/5.3.0-aml-g12

     

  10. Does Armbian support UAS driver ?

    The driver used for my disk is usb-storage

    Port 1: Dev 4, If 0, Class=Mass Storage, Driver=usb-storage, 5000M

    When I plug it on Ubuntu, the driver used is UAS.

    Port 1: Dev 3, If 0, Class=Mass Storage, Driver=uas, 5000M

     

×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines