pl2303.ko module missing from udooBuntu 2

Discussion in 'UDOO NEO' started by odelausnay, Mar 30, 2016.

  1. odelausnay

    odelausnay New Member

    Joined:
    Mar 29, 2016
    Messages:
    3
    Likes Received:
    0
    Hi all,

    I just started to play today with my Udoo NEO and udooBuntu2. I have encountered a few issues along the way but am pretty satisfied with the results so far.

    I have bought the Udoo NEO in order to test using it as a base for my sailboat's navigation system. Here are a few reasons why :
    1) low power consumption
    2) natively works from my 12V battery bank
    3) Already had a HDMI screen in the boat
    4) 3-axis sensor (that I intend to use mainly for the compass)
    5) cheap and fun

    The reasons I was unsure of my choice :
    1) Could not find a suitable case for the NEO
    2) Udoo is not made for a humid environment (will have to see how it resists the test of time..)

    Now to the point : as a part of my navigation system, I was planning on using the Udoo NEO with OpenCPN as well as a USB GPS (prolific 2303) and either a usb AIS receiver (dAisy) or a NMEA AIS feed from my VHF/AIS receiver.

    When I'm plugging my USB GPS, I notice no /dev/ttyUSBx is created. The kernel logs are as follows :

    Mar 30 04:40:06 localhost kernel: [ 2473.274891] usb 1-1.4: new full-speed USB device number 5 using ci_hdrc
    Mar 30 04:40:06 localhost mtp-probe: checking bus 1, device 5: "/sys/devices/soc0/soc.0/2100000.aips-bus/2184200.usb/ci_hdrc.1/usb1/1-1/1-1.4"
    Mar 30 04:40:06 localhost mtp-probe: bus: 1, device: 5 was not an MTP device

    On my laptop running Ubuntu, when I connect the same device, the output is :
    Mar 30 04:43:23 laptop kernel: [35065.392618] usb 1-2: new full-speed USB device number 29 using xhci_hcd
    Mar 30 04:43:23 laptop kernel: [35065.521466] usb 1-2: New USB device found, idVendor=067b, idProduct=2303
    Mar 30 04:43:23 laptop kernel: [35065.521469] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
    Mar 30 04:43:23 laptop kernel: [35065.521470] usb 1-2: Product: USB-Serial Controller D
    Mar 30 04:43:23 laptop kernel: [35065.521471] usb 1-2: Manufacturer: Prolific Technology Inc.
    Mar 30 04:43:23 laptop kernel: [35065.521823] pl2303 1-2:1.0: pl2303 converter detected
    Mar 30 04:43:23 laptop kernel: [35065.522443] usb 1-2: pl2303 converter now attached to ttyUSB0
    Mar 30 04:43:23 laptop mtp-probe: checking bus 1, device 29: "/sys/devices/pci0000:00/0000:00:14.0/usb1/1-2"
    Mar 30 04:43:23 laptop mtp-probe: bus: 1, device: 29 was not an MTP device

    Also I noticed that on my laptop, the following modules are present and loaded : usbserial and pl2303, which is not the case for the NEO. I tried to find the module pl2303 but could not find it in /lib/modules/kernelxxxx/kernel/drivers/usb/serial/ The .ko file is not there. I then tried to install the linux-modules-xxxx package for my kernel using apt-get/aptitude, but nothing installs.

    I have been scratching my head a few hours on this and am unsure how to proceed tbh..

    The well known screen resolution issue with HDMI monitors, I kind of have decided that I could live with, even though it would be nice to fix, but if I cannot make my GPS work... no open source/open hardware navigation system for me!

    Please let me know if you have suggestions,

    Olivier
     
  2. ektor5

    ektor5 Administrator Staff Member

    Joined:
    Jul 1, 2013
    Messages:
    97
    Likes Received:
    48
    Hi there Olivier,
    please check out Setup_kernel_dev_environment and the other pages in Kernel Hacking section in order to enable the proper driver for your GPS!

    BR,
    ek5

    edit: I think you need USB_SERIAL_PL2303 module.
    Thanks for your hints and appreciation!
     
    Last edited: Mar 30, 2016
  3. odelausnay

    odelausnay New Member

    Joined:
    Mar 29, 2016
    Messages:
    3
    Likes Received:
    0
    Hi ektor5,

    Thank you for your suggestion.

    I have followed said process from my Ubuntu laptop, cloned from git, checked that the *usb serial pl2303* kernel options was there (it was actually already selected as a Module) and tried to compile the kernel and modules but it did not succeed, I get errors from the make zImage and in the modules as well..

    Code:
    olivier@laptop:~/udooneo-dev/linux_kernel$ ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- make zImage -j4
      CHK     include/config/kernel.release
      CHK     include/generated/uapi/linux/version.h
      CHK     include/generated/utsrelease.h
    make[1]: 'include/generated/mach-types.h' is up to date.
      CALL    scripts/checksyscalls.sh
      CHK     include/generated/compile.h
      CC      security/apparmor/apparmorfs.o
    In file included from include/linux/pid_namespace.h:6:0,
                     from include/linux/ptrace.h:8,
                     from include/linux/audit.h:27,
                     from security/apparmor/include/audit.h:18,
                     from security/apparmor/apparmorfs.c:27:
    include/linux/mm.h:365:13: error: conflicting types for ‘kvfree’
    extern void kvfree(const void *addr);
                 ^
    In file included from security/apparmor/apparmorfs.c:25:0:
    security/apparmor/include/apparmor.h:69:6: note: previous declaration of ‘kvfree’ was here
    void kvfree(void *buffer);
          ^
      CC      crypto/api.o
    scripts/Makefile.build:308: recipe for target 'security/apparmor/apparmorfs.o' failed
    make[2]: *** [security/apparmor/apparmorfs.o] Error 1
    scripts/Makefile.build:455: recipe for target 'security/apparmor' failed
    make[1]: *** [security/apparmor] Error 2
    Makefile:849: recipe for target 'security' failed
    make: *** [security] Error 2
    make: *** Waiting for unfinished jobs....
      CC      crypto/cipher.o
      CC      crypto/compress.o
      CC      crypto/memneq.o
      CC      crypto/algapi.o
      CC      crypto/scatterwalk.o
      CC      crypto/proc.o
      CC      crypto/ablkcipher.o
      CC      crypto/blkcipher.o
      CC      crypto/ahash.o
      CC      crypto/shash.o
      CC      crypto/algboss.o
      CC      crypto/testmgr.o
      CC      crypto/crypto_wq.o
      CC      crypto/aead.o
      CC      crypto/chainiv.o
      CC      crypto/eseqiv.o
      LD      crypto/crypto_hash.o
      CC      crypto/pcompress.o
      LD      crypto/cryptomgr.o
      CC      crypto/hmac.o
      CC      crypto/md5.o
      CC      crypto/sha1_generic.o
      CC      crypto/sha256_generic.o
      CC      crypto/sha512_generic.o
      CC      crypto/ecb.o
      CC      crypto/cbc.o
      CC      crypto/aes_generic.o
      CC      crypto/crc32c.o
      CC      crypto/crct10dif_common.o
      CC      crypto/crct10dif_generic.o
      CC      crypto/lzo.o
      CC      crypto/rng.o
      CC      crypto/krng.o
      CC      crypto/asymmetric_keys/asymmetric_type.o
      CC      crypto/asymmetric_keys/signature.o
      LD      crypto/async_tx/built-in.o
      CC      crypto/hash_info.o
      ASN.1   crypto/asymmetric_keys/x509-asn1.c
    Extracted 200 tokens
    Extracted 14 types
    Extracted 11 actions
    Pass 1
    Pass 2
      ASN.1   crypto/asymmetric_keys/x509_rsakey-asn1.c
    Extracted 16 tokens
    Extracted 1 types
    Extracted 1 actions
    Pass 1
    Pass 2
      CC      crypto/asymmetric_keys/x509_public_key.o
      LD      crypto/crypto.o
      LD      crypto/crypto_algapi.o
      LD      crypto/crypto_blkcipher.o
      CC      crypto/asymmetric_keys/public_key.o
      CC      crypto/asymmetric_keys/rsa.o
      CC      crypto/asymmetric_keys/x509-asn1.o
      CC      crypto/asymmetric_keys/x509_rsakey-asn1.o
      CC      crypto/asymmetric_keys/x509_cert_parser.o
      LD      crypto/asymmetric_keys/asymmetric_keys.o
      LD      crypto/asymmetric_keys/x509_key_parser.o
      LD      crypto/asymmetric_keys/built-in.o
      LD      crypto/built-in.o
    olivier@laptop:~/udooneo-dev/linux_kernel$
    
    I guess I could play with that, or just decide to build specifically that module (instead of the whole kernel) which will create the .ko and copy it on my sdcard then insmod it from the UdooNEO.. issue is, I wanted to try that second option but cannot find the kernel-headers for the 3.14.56-udooneo-02202-gfeef1c3 kernel.. what do you think?

    Thanks,

    Olivier
     
  4. graugans

    graugans Administrator Staff Member

    Joined:
    Sep 17, 2015
    Messages:
    328
    Likes Received:
    141
    What HDMI screen issue?

    Gesendet von meinem FP2 mit Tapatalk
     
  5. odelausnay

    odelausnay New Member

    Joined:
    Mar 29, 2016
    Messages:
    3
    Likes Received:
    0
    Hi,

    The fact that higher resolutions are not supported by default (linked to the GPU not "made" for supporting higher resolutions I believe(?) even though it is possible to force) I have not been successful for that though.. I can't seem to force a higher resolution for my Samsung screen.

    About the specific kernel module compilation or complete kernel compilation, any more suggestions as to why / how I should proceed ?

    Thanks,

    Olivier
     
  6. graugans

    graugans Administrator Staff Member

    Joined:
    Sep 17, 2015
    Messages:
    328
    Likes Received:
    141
    Please specify higher resolutions. If you mean by higher resolutions something above 1920x1080 then it is not supported I guess
     

Share This Page