Home of the Squeezebox™ & Transporter® network music players.
Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 30
  1. #11
    Junior Member
    Join Date
    Oct 2016
    Posts
    16
    When I do this
    Code:
    sudo mount /dev/mmcblk0p1 /mnt/mmcblk0p1
    I get the directory, but there are no files.
    It's empty.

    Gerhard

  2. #12
    Senior Member paul-'s Avatar
    Join Date
    Jan 2013
    Posts
    1,564
    Quote Originally Posted by gestein View Post
    When I do this
    Code:
    sudo mount /dev/mmcblk0p1 /mnt/mmcblk0p1
    I get the directory, but there are no files.
    It's empty.

    Gerhard
    Was there any errors with mount? Just type mount by itself, see what all the mounts are.

  3. #13
    Junior Member
    Join Date
    Oct 2016
    Posts
    16
    There was no error.
    Code:
    tmpfs on / type tmpfs (rw,relatime,size=400516k)
    proc on /proc type proc (rw,relatime)
    sysfs on /sys type sysfs (rw,relatime)
    devpts on /dev/pts type devpts (rw,relatime,mode=600,ptmxmode=000)
    tmpfs on /dev/shm type tmpfs (rw,relatime)
    /dev/mmcblk0p2 on /mnt/mmcblk0p2 type ext4 (rw,relatime,data=ordered)
    /mnt/mmcblk0p2/tce/optional/alsa-utils.tcz on /tmp/tcloop/alsa-utils type squashfs (ro,relatime)
    /mnt/mmcblk0p2/tce/optional/alsa.tcz on /tmp/tcloop/alsa type squashfs (ro,relatime)
    /mnt/mmcblk0p2/tce/optional/busybox-httpd.tcz on /tmp/tcloop/busybox-httpd type squashfs (ro,relatime)
    /mnt/mmcblk0p2/tce/optional/dialog.tcz on /tmp/tcloop/dialog type squashfs (ro,relatime)
    /mnt/mmcblk0p2/tce/optional/openssh.tcz on /tmp/tcloop/openssh type squashfs (ro,relatime)
    /mnt/mmcblk0p2/tce/optional/firmware-atheros.tcz on /tmp/tcloop/firmware-atheros type squashfs (ro,relatime)
    /mnt/mmcblk0p2/tce/optional/firmware-rpi3-wireless.tcz on /tmp/tcloop/firmware-rpi3-wireless type squashfs (ro,relatime)
    /mnt/mmcblk0p2/tce/optional/firmware-ralinkwifi.tcz on /tmp/tcloop/firmware-ralinkwifi type squashfs (ro,relatime)
    /mnt/mmcblk0p2/tce/optional/firmware-rtlwifi.tcz on /tmp/tcloop/firmware-rtlwifi type squashfs (ro,relatime)
    /mnt/mmcblk0p2/tce/optional/wifi.tcz on /tmp/tcloop/wifi type squashfs (ro,relatime)
    /mnt/mmcblk0p2/tce/optional/python.tcz on /tmp/tcloop/python type squashfs (ro,relatime)
    /mnt/mmcblk0p2/tce/optional/python-RPi.GPIO.tcz on /tmp/tcloop/python-RPi.GPIO type squashfs (ro,relatime)
    /mnt/mmcblk0p2/tce/optional/libasound.tcz on /tmp/tcloop/libasound type squashfs (ro,relatime)
    /mnt/mmcblk0p2/tce/optional/ncurses.tcz on /tmp/tcloop/ncurses type squashfs (ro,relatime)
    /mnt/mmcblk0p2/tce/optional/libedit.tcz on /tmp/tcloop/libedit type squashfs (ro,relatime)
    /mnt/mmcblk0p2/tce/optional/openssl.tcz on /tmp/tcloop/openssl type squashfs (ro,relatime)
    /mnt/mmcblk0p2/tce/optional/wireless_tools.tcz on /tmp/tcloop/wireless_tools type squashfs (ro,relatime)
    /mnt/mmcblk0p2/tce/optional/wpa_supplicant.tcz on /tmp/tcloop/wpa_supplicant type squashfs (ro,relatime)
    /mnt/mmcblk0p2/tce/optional/bzip2-lib.tcz on /tmp/tcloop/bzip2-lib type squashfs (ro,relatime)
    /mnt/mmcblk0p2/tce/optional/gdbm.tcz on /tmp/tcloop/gdbm type squashfs (ro,relatime)
    /mnt/mmcblk0p2/tce/optional/readline.tcz on /tmp/tcloop/readline type squashfs (ro,relatime)
    /mnt/mmcblk0p2/tce/optional/sqlite3.tcz on /tmp/tcloop/sqlite3 type squashfs (ro,relatime)
    /mnt/mmcblk0p2/tce/optional/alsa-modules-4.4.20-piCore+.tcz on /tmp/tcloop/alsa-modules-4.4.20-piCore+ type squashfs (ro,relatime)
    /mnt/mmcblk0p2/tce/optional/libiw.tcz on /tmp/tcloop/libiw type squashfs (ro,relatime)
    /mnt/mmcblk0p2/tce/optional/wireless-4.4.20-piCore+.tcz on /tmp/tcloop/wireless-4.4.20-piCore+ type squashfs (ro,relatime)
    /mnt/mmcblk0p2/tce/optional/libnl.tcz on /tmp/tcloop/libnl type squashfs (ro,relatime)
    /dev/mmcblk0p1 on /mnt/mmcblk0p1 type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,errors=remount-ro)
    A df gives:
    Code:
    Filesystem                Size      Used Available Use% Mounted on
    tmpfs                   391.1M     11.3M    379.9M   3% /
    tmpfs                   217.3M         0    217.3M   0% /dev/shm
    /dev/mmcblk0p2           42.2M     27.6M     11.2M  71% /mnt/mmcblk0p2
    /dev/loop0                1.1M      1.1M         0 100% /tmp/tcloop/alsa-utils
    /dev/loop1              128.0K    128.0K         0 100% /tmp/tcloop/alsa
    /dev/loop2              128.0K    128.0K         0 100% /tmp/tcloop/busybox-httpd
    /dev/loop3              128.0K    128.0K         0 100% /tmp/tcloop/dialog
    /dev/loop4                1.9M      1.9M         0 100% /tmp/tcloop/openssh
    /dev/loop5                1.1M      1.1M         0 100% /tmp/tcloop/firmware-atheros
    /dev/loop6              256.0K    256.0K         0 100% /tmp/tcloop/firmware-rpi3-wireless
    /dev/loop7              128.0K    128.0K         0 100% /tmp/tcloop/firmware-ralinkwifi
    /dev/loop8              256.0K    256.0K         0 100% /tmp/tcloop/firmware-rtlwifi
    /dev/loop9                8.0K      8.0K         0 100% /tmp/tcloop/wifi
    /dev/loop10              10.0M     10.0M         0 100% /tmp/tcloop/python
    /dev/loop11             128.0K    128.0K         0 100% /tmp/tcloop/python-RPi.GPIO
    /dev/loop12             384.0K    384.0K         0 100% /tmp/tcloop/libasound
    /dev/loop13             256.0K    256.0K         0 100% /tmp/tcloop/ncurses
    /dev/loop14             128.0K    128.0K         0 100% /tmp/tcloop/libedit
    /dev/loop15               1.1M      1.1M         0 100% /tmp/tcloop/openssl
    /dev/loop16             128.0K    128.0K         0 100% /tmp/tcloop/wireless_tools
    /dev/loop17             384.0K    384.0K         0 100% /tmp/tcloop/wpa_supplicant
    /dev/loop18             128.0K    128.0K         0 100% /tmp/tcloop/bzip2-lib
    /dev/loop19             128.0K    128.0K         0 100% /tmp/tcloop/gdbm
    /dev/loop20             116.0K    116.0K         0 100% /tmp/tcloop/readline
    /dev/loop21             512.0K    512.0K         0 100% /tmp/tcloop/sqlite3
    /dev/loop22             768.0K    768.0K         0 100% /tmp/tcloop/alsa-modules-4.4.20-piCore+
    /dev/loop23             128.0K    128.0K         0 100% /tmp/tcloop/libiw
    /dev/loop24               2.8M      2.8M         0 100% /tmp/tcloop/wireless-4.4.20-piCore+
    /dev/loop25             256.0K    256.0K         0 100% /tmp/tcloop/libnl
    /dev/mmcblk0p1           24.9M     24.1M    894.0K  96% /mnt/mmcblk0p1
    Gerhard

  4. #14
    Junior Member
    Join Date
    Oct 2016
    Posts
    16
    A simple reboot and a mount again and I can see the files.
    Sorry for this.

    I2C and I2S are both on.
    dtparam=i2c=on,spi=on,i2s=on

    Thanks
    Gerhard

  5. #15
    Junior Member
    Join Date
    Oct 2016
    Posts
    16
    Hi,

    After having some very busy time I am back to my raspberry ;-)
    I am still trying to get the fm model run on my pi, but I am facing a new problem now.

    When I start the radio.py, I get the following error:
    Code:
    tc@piCorePlayer_BZ:/mnt/mmcblk0p2/opt/Adafruit-Si4713-RPi$ python ./radio.py
    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 99, in begin
        self.reset()
      File "/mnt/mmcblk0p2/opt/Adafruit-Si4713-RPi/Adafruit_Si4713.py", line 181, in reset
        GPIO.setup(self._rst, GPIO.OUT)
    RuntimeError: No access to /dev/mem.  Try running as root!
    And when I do a "sudo python ./radio.py"
    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
    Could anybody please help me to get this running?
    What I am doing wrong now?

    Thanks, best regards, Gerhard

  6. #16
    Junior Member
    Join Date
    Oct 2016
    Posts
    16
    While searching the net for some hints, I found that I probably need to do a "sudo modprobe Si4713".
    But I get the error:
    Modprobe: module Si4713 not found in modules.dep

    Do I need the module?
    Where to get it from and how to install it?

    Thanks and best regards
    Gerhard

  7. #17
    Senior Member paul-'s Avatar
    Join Date
    Jan 2013
    Posts
    1,564
    Quote Originally Posted by gestein View Post
    While searching the net for some hints, I found that I probably need to do a "sudo modprobe Si4713".
    But I get the error:
    Modprobe: module Si4713 not found in modules.dep

    Do I need the module?
    Where to get it from and how to install it?

    Thanks and best regards
    Gerhard
    If it was built it would be in this archive. You will need to get the file that you need out of it and make your own custom extension.
    http://tinycorelinux.net/8.x/armv6/r...modules.tar.xz

  8. #18
    Junior Member
    Join Date
    Oct 2016
    Posts
    16
    Thanks a lot for this.
    The modul is in the package.
    There is also the following entry in modules.dep
    Code:
    kernel/drivers/media/radio/si4713/si4713.ko: kernel/drivers/media/v4l2-core/v4l2-common.ko kernel/drivers/media/v4l2-core/videodev.ko kernel/drivers/media/media.ko
    I will try it with these files.

  9. #19
    Junior Member
    Join Date
    Oct 2016
    Posts
    16
    After some hours I managed to load the module for si4713.
    A "lsmod" leads to:
    Code:
    Module                  Size  Used by    Not tainted
    si4713                 14598  0
    v4l2_common             6317  1 si4713
    videodev              172779  2 si4713,v4l2_common
    media                  16312  1 videodev
    ccm                     8970  3
    arc4                    2076  2
    rt2800usb              18877  0
    rt2x00usb              12680  1 rt2800usb
    rt2800lib              82136  1 rt2800usb
    rt2x00lib              49030  3 rt2800usb,rt2x00usb,rt2800lib
    mac80211              608198  3 rt2x00usb,rt2800lib,rt2x00lib
    cfg80211              498651  2 rt2x00lib,mac80211
    snd_soc_bcm2835_i2s     6994  0
    rfkill                 21302  2 cfg80211
    crc_ccitt               1732  1 rt2800lib
    snd_soc_core          163972  1 snd_soc_bcm2835_i2s
    snd_pcm_dmaengine       5906  1 snd_soc_core
    snd_bcm2835            23112  1
    snd_pcm                95505  4 snd_soc_core,snd_pcm_dmaengine,snd_bcm2835
    snd_timer              22460  1 snd_pcm
    snd                    68368  5 snd_soc_core,snd_bcm2835,snd_pcm,snd_timer
    regmap_mmio             3728  1 snd_soc_bcm2835_i2s
    squashfs               32160 27
    zram                   22461  1
    zsmalloc               14329  1 zram
    lz4_compress            3289  1 zram
    spi_bcm2835             7424  0
    i2c_bcm2708             5740  0
    bcm2835_gpiomem         3823  0
    bcm2835_wdt             4133  0
    uio_pdrv_genirq         3718  0
    uio                    10230  1 uio_pdrv_genirq
    A dmesg leads to:
    Code:
    [  815.515963] media: Linux media interface: v0.10
    [  815.537679] Linux video capture interface: v2.00
    [ 1743.703919] gpiomem-bcm2835 20200000.gpiomem: gpiomem device opened.
    But the Si4713 is still not working.
    When I start the python scripts with "sudo python ./radio.py" I get the following error:
    Code:
    Traceback (most recent call last):
      File "./radio.py", line 17, in <module>
        if not radio.begin():
      File "/mnt/mmcblk0p2/opt/Adafruit-Si4713/Adafruit_Si4713.py", line 101, in begin
        self.bus = Adafruit_I2C(self._addr, self._busnum, self._debug)
      File "/mnt/mmcblk0p2/opt/Adafruit-Si4713/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
    Does anyone know how to solve this?

    Thanks for any help in advance and best regards
    Gerhard

  10. #20
    Junior Member
    Join Date
    Oct 2016
    Posts
    16
    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
    Gerhard

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
  •