Home of the Squeezebox™ & Transporter® network music players.
Page 3 of 3 FirstFirst 123
Results 21 to 30 of 30
  1. #21
    Senior Member paul-'s Avatar
    Join Date
    Jan 2013
    Posts
    1,564
    Quote Originally Posted by gestein View Post
    Does anyone know how to solve this?
    Is there still a module missing?

    How could I check if i2c is working properly?

    Which module would create the missing smbus entries?
    Or do I use a wrong smbus driver/module?

    Thanks for any hint.
    Best regards
    i2c support is loaded but it all depends on how you want to access it. Pretty sure for smbus, you need to load i2c-dev as well.

    sudo modprobe i2c-dev

    Then check with
    sudo i2cdetect 1

  2. #22
    Junior Member
    Join Date
    Oct 2016
    Posts
    16
    Dear paul-,

    I think this was the missing link.

    Now I managed to load this module (it is in the standard package).
    I still don't know how to place all the new modules (media.ko, videodev.ko, v4l2-common.ko, si4713.ko) correctly.
    All the files are gone after a reboot.

    So I just made the directories under /lib/modules/4.4.20-piCore+/kernel/ and copied the files there.
    After a "depmode" I can load all the modules with a simple "modprobe si4713".
    And I also have to install the library "py-smbus.tcz" again.

    But at least the python script for the si4713 seem to work now.
    I will now check to get some sound on my radio ;-)

    Thanks a lot for this!

    Does anyone know how to handle the new modules so that they do not vanish every time I have to reboot my raspberry?

    Thanks and best regards
    Gerhard

  3. #23
    Senior Member paul-'s Avatar
    Join Date
    Jan 2013
    Posts
    1,564
    Quote Originally Posted by gestein View Post
    Dear paul-,

    I think this was the missing link.

    Now I managed to load this module (it is in the standard package).
    I still don't know how to place all the new modules (media.ko, videodev.ko, v4l2-common.ko, si4713.ko) correctly.
    All the files are gone after a reboot.

    So I just made the directories under /lib/modules/4.4.20-piCore+/kernel/ and copied the files there.
    After a "depmode" I can load all the modules with a simple "modprobe si4713".
    And I also have to install the library "py-smbus.tcz" again.

    But at least the python script for the si4713 seem to work now.
    I will now check to get some sound on my radio ;-)

    Thanks a lot for this!

    Does anyone know how to handle the new modules so that they do not vanish every time I have to reboot my raspberry?

    Thanks and best regards
    Gerhard
    Read about persistence. Specifically you are looking at backup. http://wiki.tinycorelinux.net/wiki:backup

    Also in the wiki, you can read how to make an extension for the Kernel modules.

  4. #24
    Junior Member
    Join Date
    Dec 2018
    Posts
    7
    I want to do the same - I am a poor linux beginner :-(

    I started with

    ~$ tce-load -wi python-RPi.GPIO.tcz
    ~$ tce-load -wi i2c-tools-dev.tcz
    ~$ sudo modprobe i2c-dev

    Then check with
    ~$ sudo i2cdetect 1

    But now I have the problem to load the modul Si4713. Can anyone give me a help?

    Uwe

  5. #25
    Junior Member
    Join Date
    Dec 2018
    Posts
    7
    I think http://tinycorelinux.net/8.x/armv6/r...modules.tar.xz is to old for me. I think I need 4.14.81 - but I can only find
    http://tinycorelinux.net/9.x/armv6/r...modules.tar.xz
    or
    http://tinycorelinux.net/9.x/armv7/r...modules.tar.xz.
    Where could I get the right version for 4.14.81-pcpCore_v7?

    Uwe

  6. #26
    Junior Member
    Join Date
    Dec 2018
    Posts
    7
    I have the newest version PiCorePlayer 4.1.0 - linux kernel 4.14.81-pcpCore_v7
    I copied
    https://github.com/raspberrypi/firmw...4713/si4713.ko
    to
    /lib/modules/4.14.81-pcpCore_v7/kernel/drivers/media/radio/si4713/si4713.ko
    did a
    Code:
    sudo /sbin/depmod -a
    sudo modprobe si4713
    and get
    Code:
    modprobe: ERROR: could not insert 'si4713': Unknown symbol in module, or unknown parameter (see dmesg)
    Any idea for help?

    My alternative solution would be to use an Arduino to configure the si4713 via I2C.

    Uwe

    ...I found
    https://github.com/raspberrypi/firmw...4713/si4713.ko
    The problem is the same: modprobe: ERROR...

    Code:
    dmesg
    Code:
    [   10.771624] brcmfmac: power management disabled
    [  675.671670] i2c /dev entries driver
    [  733.014127] si4713: Unknown symbol v4l2_i2c_subdev_init (err 0)
    [  733.014162] si4713: Unknown symbol v4l2_ctrl_handler_init_class (err 0)
    [  733.014195] si4713: Unknown symbol v4l2_device_unregister_subdev (err 0)
    [  733.014208] si4713: Unknown symbol v4l2_ctrl_new_custom (err 0)
    [  733.014244] si4713: Unknown symbol v4l2_ctrl_new_std_menu (err 0)
    [  733.014261] si4713: Unknown symbol v4l2_ctrl_new_std (err 0)
    [  733.014270] si4713: Unknown symbol v4l2_ctrl_handler_free (err 0)
    [  733.014290] si4713: Unknown symbol v4l2_ctrl_cluster (err 0)
    [ 1026.700318] si4713: Unknown symbol v4l2_i2c_subdev_init (err 0)
    [ 1026.700354] si4713: Unknown symbol v4l2_ctrl_handler_init_class (err 0)
    [ 1026.700387] si4713: Unknown symbol v4l2_device_unregister_subdev (err 0)
    [ 1026.700400] si4713: Unknown symbol v4l2_ctrl_new_custom (err 0)
    [ 1026.700436] si4713: Unknown symbol v4l2_ctrl_new_std_menu (err 0)
    [ 1026.700453] si4713: Unknown symbol v4l2_ctrl_new_std (err 0)
    [ 1026.700462] si4713: Unknown symbol v4l2_ctrl_handler_free (err 0)
    [ 1026.700483] si4713: Unknown symbol v4l2_ctrl_cluster (err 0)
    [ 1148.000828] si4713: Unknown symbol v4l2_i2c_subdev_init (err 0)
    [ 1148.000864] si4713: Unknown symbol v4l2_ctrl_handler_init_class (err 0)
    [ 1148.000897] si4713: Unknown symbol v4l2_device_unregister_subdev (err 0)
    [ 1148.000910] si4713: Unknown symbol v4l2_ctrl_new_custom (err 0)
    [ 1148.000945] si4713: Unknown symbol v4l2_ctrl_new_std_menu (err 0)
    [ 1148.000963] si4713: Unknown symbol v4l2_ctrl_new_std (err 0)
    [ 1148.000972] si4713: Unknown symbol v4l2_ctrl_handler_free (err 0)
    [ 1148.000992] si4713: Unknown symbol v4l2_ctrl_cluster (err 0)
    [ 1281.167952] si4713: Unknown symbol v4l2_i2c_subdev_init (err 0)
    [ 1281.167989] si4713: Unknown symbol v4l2_ctrl_handler_init_class (err 0)
    [ 1281.168023] si4713: Unknown symbol v4l2_device_unregister_subdev (err 0)
    [ 1281.168035] si4713: Unknown symbol v4l2_ctrl_new_custom (err 0)
    [ 1281.168071] si4713: Unknown symbol v4l2_ctrl_new_std_menu (err 0)
    [ 1281.168088] si4713: Unknown symbol v4l2_ctrl_new_std (err 0)
    [ 1281.168097] si4713: Unknown symbol v4l2_ctrl_handler_free (err 0)
    [ 1281.168118] si4713: Unknown symbol v4l2_ctrl_cluster (err 0)
    [16883.587311] si4713: Unknown symbol v4l2_i2c_subdev_init (err 0)
    [16883.587346] si4713: Unknown symbol v4l2_ctrl_handler_init_class (err 0)
    [16883.587379] si4713: Unknown symbol v4l2_device_unregister_subdev (err 0)
    [16883.587392] si4713: Unknown symbol v4l2_ctrl_new_custom (err 0)
    [16883.587428] si4713: Unknown symbol v4l2_ctrl_new_std_menu (err 0)
    [16883.587446] si4713: Unknown symbol v4l2_ctrl_new_std (err 0)
    [16883.587455] si4713: Unknown symbol v4l2_ctrl_handler_free (err 0)
    [16883.587475] si4713: Unknown symbol v4l2_ctrl_cluster (err 0)
    [17203.386434] si4713: disagrees about version of symbol module_layout
    [17387.881660] si4713: Unknown symbol v4l2_i2c_subdev_init (err 0)
    [17387.881696] si4713: Unknown symbol v4l2_ctrl_handler_init_class (err 0)
    [17387.881729] si4713: Unknown symbol v4l2_device_unregister_subdev (err 0)
    [17387.881741] si4713: Unknown symbol v4l2_ctrl_new_custom (err 0)
    [17387.881777] si4713: Unknown symbol v4l2_ctrl_new_std_menu (err 0)
    [17387.881794] si4713: Unknown symbol v4l2_ctrl_new_std (err 0)
    [17387.881803] si4713: Unknown symbol v4l2_ctrl_handler_free (err 0)
    [17387.881824] si4713: Unknown symbol v4l2_ctrl_cluster (err 0)
    [22643.955614] si4713: Unknown symbol v4l2_i2c_subdev_init (err 0)
    [22643.955650] si4713: Unknown symbol v4l2_ctrl_handler_init_class (err 0)
    [22643.955684] si4713: Unknown symbol v4l2_device_unregister_subdev (err 0)
    [22643.955696] si4713: Unknown symbol v4l2_ctrl_new_custom (err 0)
    [22643.955732] si4713: Unknown symbol v4l2_ctrl_new_std_menu (err 0)
    [22643.955749] si4713: Unknown symbol v4l2_ctrl_new_std (err 0)
    [22643.955758] si4713: Unknown symbol v4l2_ctrl_handler_free (err 0)
    [22643.955779] si4713: Unknown symbol v4l2_ctrl_cluster (err 0)
    Last edited by LAN-Opfer; 2019-01-04 at 14:59.

  7. #27
    Senior Member Greg Erskine's Avatar
    Join Date
    Sep 2006
    Location
    Sydney, Australia
    Posts
    1,547

  8. #28
    Junior Member
    Join Date
    Dec 2018
    Posts
    7
    Thanks for the hint. Excuse me, but I'm probably too stupid to understand this :-( Does that mean I need to install more drivers? Do I need to install all the drivers included in Video4Linux?
    Soory - unfortunately I am very inexperienced with Linux.

    Uwe

  9. #29
    Junior Member
    Join Date
    Dec 2018
    Posts
    7
    ok - the videoplayer is available in piCorePayer:
    piCorePlayer - Main Page - Extensions - load and install "v4l-dvb-4.9.22-piCore-v7.tcz"
    Easy to do, if this fact is known.
    After that:
    Code:
    tce-load -wi python
    tce-load -wi python-RPi.GPIO.tcz
    wget  http://tinycorelinux.net/7.x/armv6/tcz/py-smbus.tcz
    tce-load -i ./py-smbus.tcz
    And now I try to start the phyton script
    https://github.com/daniel-j/Adafruit-Si4713-RPi
    which is copied to
    /mnt/mmcblk0p2/opt/Adafruit-Si4713-RPi/
    Code:
    python radio.py
    ends with
    Code:
    Traceback (most recent call last):
      File "radio.py", line 17, in <module>
        if not radio.begin():
      File "/mnt/mmcblk0p2/opt/Adafruit-Si4713-RPi/Adafruit_Si4713.py", line 101, in begin
        self.bus = Adafruit_I2C(self._addr, self._busnum, self._debug)
      File "/mnt/mmcblk0p2/opt/Adafruit-Si4713-RPi/Adafruit_I2C.py", line 43, in __init__
        self.bus = smbus.SMBus(busnum if busnum >= 0 else Adafruit_I2C.getPiI2CBusNumber())
    IOError: [Errno 2] No such file or directory
    I think it is near to work, but unfortunately, this error message does not help me

    Uwe

  10. #30
    Junior Member
    Join Date
    Dec 2018
    Posts
    7
    ...the solution was found here - the hint from paul-
    Code:
    sudo modprobe i2c-dev
    Then check with

    Code:
    sudo i2cdetect 1
    new attempt:
    Code:
    Error accessing 0x63: Check your I2C address
    The Python script now seems to work in principle
    unfortunately, something is still missing - looks like an address problem ...

    Uwe

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •