Jump to content

stemmo

Members
  • Content Count

    6
  • Joined

  • Last visited

Posts posted by stemmo


  1. Hi all,

    I need to compile a simple serial driver but I miss something. First of all the kernel-related files.

    uname -r

    returns 4.4.194

    So I downloaded both kernel-linux-4.4-rk3399-debian10.zip and linux-4.4.194.tar.gs files from tinkerboard and kernel git sites.

    The compilation is run by:

    root@linaro-alip:/home/amtek/linux_customVCOM_103# more compile.sh
    #!/bin/bash
    make -C /lib/modules/`uname -r`/build M=$PWD

    and the Makefile contains:

    root@linaro-alip:/home/amtek/linux_customVCOM_103# more Makefile
    #
    # Makefile for the USB serial custom driver.
    #
    
    # Object file lists.
    
    obj-m                   := customvcom.o
    
    KDIR    := /lib/modules/$(shell uname -r)/build
    PWD    := $(shell pwd)
    
    default:
            $(MAKE) -C $(KDIR) M=$(PWD)
    
    clean:
            $(MAKE) -C $(KDIR) M=$(PWD) clean

    If I copy the kernel folder from zip files to /source/kernel/ folder I have:

    root@linaro-alip:/home/amtek/linux_customVCOM_103# ./compile.sh
    make: Entering directory '/source/kernel'
    make: *** No rule to make target 'FORCE', needed by '/config_data.gz'.  Stop.
    make: Leaving directory '/source/kernel'

     

    Any idea?


  2. Hi all,

    tinkerboard 1 and Linaro Stretch OS:

    root@tinkerboard:~# lsb_release -a
    No LSB modules are available.
    Distributor ID: Debian
    Description:    Debian GNU/Linux 9.3 (stretch)
    Release:        9.3
    Codename:       stretch
     

    root@tinkerboard:~# chromium --version
    Chromium 63.0.3239.84 built on Debian 9.3, running on Debian 9.3

     

    We developed a web page that plays a MP3 triggered by javascript command:  new Audio('mp3/'+sound).play();

    It happens that when we automatically launch the browser after the boot by a script, the sounds are not played - no errors in js console and dmesg output.

    When we launch the same script from a terminal (same user = linaro) the sounds are played!

    We don't understand why!

    I only see a slightly different process (the last one) related to chromium:

     

    NO PLAY
    root@tinkerboard:~# ps axu | grep chrom
    linaro    1253  4.9  3.6 543976 74340 ?        Sl   10:12   0:27 /usr/lib/chromium/chromium --load-extension=/home/linaro/h264ify --show-component-extension-options --ignore-gpu-blacklist --disable-background-networking --use-gl=egl --enable-remote-extensions --enable-remote-extensions --enable-logging --v=1 --remote-debugging-port=9222 --kiosk --disable-session-crashed-bubble --disable-infobars --disable-pinch --overscroll-history-navigation=0 --no-sandbox http://localhost/Amtek-Kiosk/trunk/rebootPageEliminacode.php
    linaro    1390  0.0  1.5 176308 32884 ?        S    10:12   0:00 /usr/lib/chromium/chromium --type=zygote --enable-logging --no-sandbox --v=1
    linaro    1503  2.1  3.2 320480 67068 ?        Sl   10:12   0:11 /usr/lib/chromium/chromium --type=gpu-process --field-trial-handle=5914297866112838827,9098102165092584380,131072 --enable-logging --no-sandbox --v=1 --ignore-gpu-blacklist --disable-breakpad --use-gl=egl --gpu-vendor-id=0x0000 --gpu-device-id=0x0000 --gpu-driver-vendor=ES --gpu-driver-version=3.1 --gpu-driver-date --enable-logging --v=1 --service-request-channel-token=29D19D8ECD96887F1215C7EDE8F1C361
    linaro    1651 10.5  4.1 414432 86472 ?        Sl   10:12   0:57 /usr/lib/chromium/chromium --type=renderer --disable-pinch --enable-logging --no-sandbox --use-gl=egl --v=1 --field-trial-handle=5914297866112838827,9098102165092584380,131072 --service-pipe-token=123B90E382BCAD92E799289B0C95FCFA --lang=en-US --disable-client-side-phishing-detection --enable-offline-auto-reload --enable-offline-auto-reload-visible-only --num-raster-threads=2 --enable-main-frame-before-activation --enable-gpu-async-worker-context --content-image-texture-target=0,0,3553;0,1,3553;0,2,3553;0,3,3553;0,4,3553;0,5,3553;0,6,3553;0,7,3553;0,8,3553;0,9,3553;0,10,3553;0,11,3553;0,12,3553;0,13,3553;0,14,3553;0,15,3553;0,16,3553;0,17,3553;1,0,3553;1,1,3553;1,2,3553;1,3,3553;1,4,3553;1,5,3553;1,6,3553;1,7,3553;1,8,3553;1,9,3553;1,10,3553;1,11,3553;1,12,3553;1,13,3553;1,14,3553;1,15,3553;1,16,3553;1,17,3553;2,0,3553;2,1,3553;2,2,3553;2,3,3553;2,4,3553;2,5,3553;2,6,3553;2,7,3553;2,8,3553;2,9,3553;2,10,3553;2,11,3553;2,12,3553;2,13,3553;2,14,3553;2,15,3553;2,16,3553;2,17,3553;3,0,3553;3,1,3553;3,2,3553;3,3,3553;3,4,3553;3,5,3553;3,6,3553;3,7,3553;3,8,3553;3,9,3553;3,10,3553;3,11,3553;3,12,3553;3,13,3553;3,14,3553;3,15,3553;3,16,3553;3,17,3553;4,0,3553;4,1,3553;4,2,3553;4,3,3553;4,4,3553;4,5,3553;4,6,3553;4,7,3553;4,8,3553;4,9,3553;4,10,3553;4,11,3553;4,12,3553;4,13,3553;4,14,3553;4,15,3553;4,16,3553;4,17,3553;5,0,3553;5,1,3553;5,2,3553;5,3,3553;5,4,3553;5,5,3553;5,6,3553;5,7,3553;5,8,3553;5,9,3553;5,10,3553;5,11,3553;5,12,3553;5,13,3553;5,14,3553;5,15,3553;5,16,3553;5,17,3553;6,0,3553;6,1,3553;6,2,3553;6,3,3553;6,4,3553;6,5,3553;6,6,3553;6,7,3553;6,8,3553;6,9,3553;6,10,3553;6,11,3553;6,12,3553;6,13,3553;6,14,3553;6,15,3553;6,16,3553;6,17,3553 --service
    root      2811  0.0  0.0   3840   576 pts/0    S+   10:21   0:00 grep chrom

    -----

    PLAY OK
    root@tinkerboard:/var/www/Amtek-Kiosk/trunk# ps axu | grep chrom
    linaro    3462  8.4  3.5 765184 73932 pts/1    Sl+  10:43   0:04 /usr/lib/chromium/chromium --load-extension=/home/linaro/h264ify --show-component-extension-options --ignore-gpu-blacklist --disable-background-networking --use-gl=egl --enable-remote-extensions --enable-remote-extensions --enable-logging --v=1 --remote-debugging-port=9222 --kiosk --disable-session-crashed-bubble --disable-infobars --disable-pinch --overscroll-history-navigation=0 --no-sandbox http://localhost/Amtek-Kiosk/trunk/rebootPageEliminacode.php
    linaro    3473  0.4  1.6 176312 33576 pts/1    S+   10:43   0:00 /usr/lib/chromium/chromium --type=zygote --enable-logging --no-sandbox --v=1
    linaro    3568  5.6  3.3 317084 68748 pts/1    Sl+  10:43   0:02 /usr/lib/chromium/chromium --type=gpu-process --field-trial-handle=285003390153957612,1327819821863676581,131072 --enable-logging --no-sandbox --v=1 --ignore-gpu-blacklist --disable-breakpad --use-gl=egl --gpu-vendor-id=0x0000 --gpu-device-id=0x0000 --gpu-driver-vendor=ES --gpu-driver-version=3.1 --gpu-driver-date --enable-logging --v=1 --service-request-channel-token=0746B9B94B76D766745AD488ED15737E
    linaro    3657 15.2  3.7 385852 78372 pts/1    Sl+  10:43   0:07 /usr/lib/chromium/chromium --type=renderer --disable-pinch --enable-logging --no-sandbox --use-gl=egl --v=1 --field-trial-handle=285003390153957612,1327819821863676581,131072 --service-pipe-token=84B235C084776E7C8CB592E8898C9600 --lang=en-US --disable-client-side-phishing-detection --enable-offline-auto-reload --enable-offline-auto-reload-visible-only --num-raster-threads=2 --enable-main-frame-before-activation --enable-gpu-async-worker-context --content-image-texture-target=0,0,3553;0,1,3553;0,2,3553;0,3,3553;0,4,3553;0,5,3553;0,6,3553;0,7,3553;0,8,3553;0,9,3553;0,10,3553;0,11,3553;0,12,3553;0,13,3553;0,14,3553;0,15,3553;0,16,3553;0,17,3553;1,0,3553;1,1,3553;1,2,3553;1,3,3553;1,4,3553;1,5,3553;1,6,3553;1,7,3553;1,8,3553;1,9,3553;1,10,3553;1,11,3553;1,12,3553;1,13,3553;1,14,3553;1,15,3553;1,16,3553;1,17,3553;2,0,3553;2,1,3553;2,2,3553;2,3,3553;2,4,3553;2,5,3553;2,6,3553;2,7,3553;2,8,3553;2,9,3553;2,10,3553;2,11,3553;2,12,3553;2,13,3553;2,14,3553;2,15,3553;2,16,3553;2,17,3553;3,0,3553;3,1,3553;3,2,3553;3,3,3553;3,4,3553;3,5,3553;3,6,3553;3,7,3553;3,8,3553;3,9,3553;3,10,3553;3,11,3553;3,12,3553;3,13,3553;3,14,3553;3,15,3553;3,16,3553;3,17,3553;4,0,3553;4,1,3553;4,2,3553;4,3,3553;4,4,3553;4,5,3553;4,6,3553;4,7,3553;4,8,3553;4,9,3553;4,10,3553;4,11,3553;4,12,3553;4,13,3553;4,14,3553;4,15,3553;4,16,3553;4,17,3553;5,0,3553;5,1,3553;5,2,3553;5,3,3553;5,4,3553;5,5,3553;5,6,3553;5,7,3553;5,8,3553;5,9,3553;5,10,3553;5,11,3553;5,12,3553;5,13,3553;5,14,3553;5,15,3553;5,16,3553;5,17,3553;6,0,3553;6,1,3553;6,2,3553;6,3,3553;6,4,3553;6,5,3553;6,6,3553;6,7,3553;6,8,3553;6,9,3553;6,10,3553;6,11,3553;6,12,3553;6,13,3553;6,14,3553;6,15,3553;6,16,3553;6,17,3553 --service-request-channel-token=84B235C084776E7C8CB592E8898C9600 --renderer-client-id=3 --shared-files=v8_context_snapshot_data:100,v8_natives_data:101,v8_snapshot_data:102
    root      4001  0.0  0.0   3840   556 pts/0    S+   10:44   0:00 grep chrom

     

    Any idea?

    Thanks


  3. Hi all,

    Tinker2 with Linaro Debian buster 10.

    We need to avoid the keyring request on a 'svn update' run on the machine but from a remote shell.

    If I run the same command on a local shell I have no request and then no problem.

    How can i avoid the request?

    Thanks


  4. Hi all,

    we are using a TinkerBoard with Android.

    Every time we connect a USB device, a window ask us to enable USB and this setting is not remembered after the next boot.

    Is there a way to disable this notification?

    Thanks


  5. Hi all,

    I need to connect in the simplest mode a GPIO pin (as INPUT) to the contact of a relay (not the control pins of the replay) that connects the pin to the GND.

    Of course I'm using the internal pull-up resistor but I don't know the value of this one.

    Is it a problem to connect the pin directly to GND or better to use a resistor to limit? Value?

    Thanks a lot!

    Regards


  6. Hi all,

    I need a low consumption state then I put the Tinker in sleep mode by the command: 

    echo mem > /sys/power/state

    Now I wake up the board by a button soldered in pins near the video connector.

    It is working well but I'm looking for different pins on the header, just to avoid the soldering.

    Thanks!

×
×
  • Create New...