Folgende Warnungen sind aufgetreten:
Warning [2] Undefined variable $unreadreports - Line: 34 - File: global.php(961) : eval()'d code PHP 8.2.2 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/global.php(961) : eval()'d code 34 errorHandler->error_callback
/global.php 961 eval
/showthread.php 28 require_once
Warning [2] Undefined property: MyLanguage::$thread_modes - Line: 43 - File: showthread.php(1621) : eval()'d code PHP 8.2.2 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/showthread.php(1621) : eval()'d code 43 errorHandler->error_callback
/showthread.php 1621 eval




Themabewertung:
  • 0 Bewertung(en) - 0 im Durchschnitt
  • 1
  • 2
  • 3
  • 4
  • 5
DAB PI Problem nach reboot
#1
Hallo zusammen,

Ich hoffe jemand kann mir mit meinem DAB Board helfen

Ich habe ein neu aufgesetztes Wheezy Betriebssystem aufm einer SD karte. (Raspberry Pi2)
Ich stelle die Grund-Config inkl. Enable SPI ein (Bei der frage wegen dem Default antworte ich mit yes)

Anschliessen führe ich einen Reboot druch und fange mit der Installation an z.b. mit dem Komplettpaket:
Einlogen als user pi mit password raspberry (absichtlich nicht geändert)
Ab hier arbeite ich über WinScp und Putty
Code:
wget https://github.com/elmo2k3/dabpi_ctl/raw/master/install_on_fresh_raspbian.sh
chmod a+x install_on_fresh_raspbian.sh
./install_on_fresh_raspbian.sh

Sobald alles Installiert und Kompiliert ist, wende ich mich der firmware zu. Diese habe ich von Björn erhalten, entpackt und mittels winscp in den Ordner dabpi_ctl kopiert.

Nun kommt z.b. folgende Ausgabe:
Code:
pi@raspberrypi ~/dabpi_ctl $ sudo ./dabpi_ctl -b
dabpi_ctl version v0.01-42-gad66780
si46xx_init_mode_fm()
si46xx_get_sys_state answer: 0x800000c001ff
Current mode:
FMHD is active
si46xx_get_part_info answer: 0x800000c0000000005012000000005012000000000100
si46xx_set_property(0x800,0x03)
0x800000c0
si46xx_set_property(0x3500,0x00)
0x800000c0
si46xx_set_property(0x1712,0x00)
0x800000c0
si46xx_set_property(0x202,0x1000)
0x800000c0
si46xx_set_property(0x3C02,0x01)
0x800000c0
si46xx_set_property(0x3900,0x01)
0x800000c0
si46xx_fm_tune_freq(105500)
0x808000c0
pi@raspberrypi ~/dabpi_ctl $

Oder
Code:
pi@raspberrypi ~/dabpi_ctl $ sudo ./dabpi_ctl -a -k 2
dabpi_ctl version v0.01-42-gad66780
si46xx_init_mode_dab()
si46xx_get_sys_state answer: 0x808000c002ff
Current mode:
DAB is active
si46xx_get_part_info answer: 0x808000c0000000005012000000005012000000000100
si46xx_init() done
si46xx_dab_set_freq_list(): 0x808000c0
si46xx_set_property(0xB501,0x00)
0x808000c0
si46xx_set_property(0xB505,0x00)
0x808000c0
si46xx_set_property(0xB400,0x00)
0x808000c0
si46xx_set_property(0x8100,0x01)
0x808000c0
si46xx_set_property(0x1712,0x01)
0x808000c0
si46xx_set_property(0x1710,0x1710)
0x808000c0
si46xx_set_property(0x1711,0x1711)
0x808000c0
si46xx_set_property(0x800,0x03)
0x808000c0
si46xx_dab_tune_freq(0): 0x818000c0
si46xx_dab_set_freq_list(): 0x818000c0
si46xx_dab_tune_freq(0): 0x818000c0
si46xx_dab_digrad_status():
Channel 0: ACQ: 0 RSSI: 13 SNR: 0
si46xx_dab_tune_freq(1): 0x818000c0
si46xx_dab_digrad_status():
Channel 1: ACQ: 0 RSSI: 11 SNR: -10
si46xx_dab_tune_freq(2): 0x818000c0
si46xx_dab_digrad_status():
Channel 2: ACQ: 0 RSSI: 11 SNR: 0

oder

Code:
pi@raspberrypi ~/dabpi_ctl $ sudo ./dabpi_ctl -i 1
dabpi_ctl version v0.01-42-gad66780
si46xx_dab_tune_freq(1): 0x818000c0

Nun führe ich einen Reboot durch und anschliessend kommen folgende Meldungen:
Code:
pi@raspberrypi ~/dabpi_ctl $ sudo modprobe snd-soc-rpi-dabpi
libkmod: ERROR ../libkmod/libkmod.c:554 kmod_search_moddep: could not open moddep file '/lib/modules/3.18.11+/modules.dep.bin'
Code:
pi@raspberrypi ~/dabpi_ctl $ dmesg | tail -n1
[   38.479433] Adding 102396k swap on /var/swap.  Priority:-1 extents:2 across:2134012k SSFS
Code:
pi@raspberrypi ~/dabpi_ctl $ lsmod
Module                  Size  Used by
Code:
pi@raspberrypi ~/dabpi_ctl $ sudo ./dabpi_ctl -b
dabpi_ctl version v0.01-42-gad66780
Unable to open SPI device: No such file or directory
Kann mir jemand helfen? Smile
Zitieren
#2
ich versuche mal bisschen was zu interpretieren. Als bis zum Reboot läuft alles gut, die Antworten vom DABPi sind korrekt.

Mit der Fehlermeldung von modprobe kann ich nicht viel anfangen gerade, aber warum musst du dass denn manuell laden? Kannst du mal den Inhalt von /etc/modules posten? Eigentlich schreibt das Install-Script das Soundmodul da rein für automatisches laden.

Die dmesg hat nichts mit dem Problem hier zu tun denke ich.

Das lsmod nicht zurück gibt ist allerdings komisch, das würde bedeuten, dass keine Module geladen sind :-o
Kannst du den nochmal als admin ausführen?

Dementsprechend ist auch kein SPI geladen.


Welchen Kernel hast du? ("uname -a")

Ich habe evtl schon ein Problem gefunden: Björn hat mir vor ein paar Tagen geschrieben, dass er den Kernel auf 4.1 für jessie aktualisiert hat. lib.tar.gz ist jetzt auch auf dem 4.1 Stand und das 3.18-Archiv nicht mehr vorhanden (github). Eventuell gibt es dadurch Probleme.

Meine Lösungsidee wäre jetzt erstmal apt-get update und apt-get upgrade + reboot.
Wenn das nicht läuft: die alte lib.tar.gz Datei zu nutzen, eventuell habe ich die auch noch rumfliegen und kann sie dir schicken.
Oder das ganze System auf jessie zu aktualisieren, da sollte es ohne Probleme laufen.
Zitieren
#3
Ich werde nun alles auf Jessie installieren und berichten.
Ist es noch notwendig die WiringPi neu zu kompilieren mit der extrazeile?
Zitieren
#4
@schnibli:
Ja, am besten du führst das installskript von Björn einmal aus. Dann gehst du in den "wiringPi" Ordner (ich glaube 2mal) und bearbeitest die die wiringPiSPI.c und kompilierst den ganzen Kram neu.
Zitieren
#5
So, nun habe ich Jessie auf dem Raspberry pi

Kernel=
pi@raspberrypi ~/dabpi_ctl $ uname -a
Linux raspberrypi 3.18.11+ #8 PREEMPT Tue Apr 14 21:56:46 CEST 2015 armv6l GNU/Linux

meldung:

pi@raspberrypi ~/dabpi_ctl $ sudo ./dabpi_ctl -a -k 2 dabpi_ctl version v0.01-42-gad66780
Unable to open SPI device: No such file or directory

Wieder nach dem Reboot
WiringPi habe ich angepasst und mit ./build neu compiliert (hat auch angezeigt das er es gemacht hat)
Zitieren
#6
Okay, dann weiter: Ab jessie werden Module mittles device-tree geladen. Kannst du in deiner /boot/config.txt nachschauen ob diese Zeilen vorhanden (und nicht auskommentiert) sind:
Code:
dtparam=i2s=on
dtparam=spi=on

Und auch nochmal die lsmod Ausgabe, bitte Wink
Zitieren
#7
die waren beide auf off jedoch auch nach dem reboot keine veränderung.
Code:
dtparam=i2s=on
dtparam=spi=on


pi@raspberrypi ~ $ lsmod
Module                  Size  Used by


pi@raspberrypi ~ $ sudo modprobe snd-soc-rpi-dabpi
modprobe: ERROR: ../libkmod/libkmod.c:557 kmod_search_moddep() could not open moddep file '/lib/modules/3.18.11+/modules.dep.bin'
Zitieren
#8
Den INhalt von /etc/modules sieht wie folgt aus:

Code:
bcm2708-dmaengine
snd-bcm2835
snd-soc-rpi-dabpi

ev. auch noch nützlich:
Code:
root@raspberrypi:~# cd /dev/
root@raspberrypi:/dev# ls
autofs           loop5               ram13   tty11  tty31  tty51      vchiq
block            loop6               ram14   tty12  tty32  tty52      vcio
bus              loop7               ram15   tty13  tty33  tty53      vc-mem
cachefiles       loop-control        ram2    tty14  tty34  tty54      vcs
char             MAKEDEV             ram3    tty15  tty35  tty55      vcs1
console          mem                 ram4    tty16  tty36  tty56      vcs2
cpu_dma_latency  memory_bandwidth    ram5    tty17  tty37  tty57      vcs3
disk             mmcblk0             ram6    tty18  tty38  tty58      vcs4
fb0              mmcblk0p1           ram7    tty19  tty39  tty59      vcs5
fd               mmcblk0p2           ram8    tty2   tty4   tty6       vcs6
full             net                 ram9    tty20  tty40  tty60      vcs7
hidraw0          network_latency     random  tty21  tty41  tty61      vcsa
hidraw1          network_throughput  raw     tty22  tty42  tty62      vcsa1
hidraw2          null                root    tty23  tty43  tty63      vcsa2
input            ppp                 shm     tty24  tty44  tty7       vcsa3
kmsg             ptmx                stderr  tty25  tty45  tty8       vcsa4
log              pts                 stdin   tty26  tty46  tty9       vcsa5
loop0            ram0                stdout  tty27  tty47  ttyAMA0    vcsa6
loop1            ram1                tty     tty28  tty48  ttyprintk  vcsa7
loop2            ram10               tty0    tty29  tty49  urandom    vcsm
loop3            ram11               tty1    tty3   tty5   usb        xconsole
loop4            ram12               tty10   tty30  tty50  vc-cma     zero
Zitieren
#9
hi schnibli, ich habe eventuell ein weiteres Problem gefunden: Das install skript auf github ist für den 3er Kernel geschrieben, der 4.1 Kernel wird gar nicht genutzt (d.h. es macht ein downgrade auf 3.18).
Ich hatte mich schon gewundert, warum auf jessie trotzdem 3.18 ist, denn eigentlich wird es mit 4.1 ausgeliefert.

Versuch mal das Install skript im Anhang zu nutzen, ich habe folgendes geändert:
Code:
echo "Copy precompiled DABPi-Ctl Kernel to system.."
sudo cp kernel/Image /boot/kernel.img
#sudo cp kernel/Image7 /boot/kernel7.img
#Mod for 4.1 Kernel
sudo mv kernel/Image_4_1_11+ /boot/kernel7.img

Das wird aber nur auf dem Pi2 funktionieren (für alle, die hier eine Lösung für den Pi1 suchen.


Angehängte Dateien
.zip   install_on_fresh_raspbian-jessie.sh.zip (Größe: 1,34 KB / Downloads: 14)
Zitieren
#10
Hmm es ist irgendwo immernoch der bock dring Confused ...
Hab jetzt mal dein install verwendet:
Code:
dabpi_ctl version v0.01-42-gad66780
Unable to open SPI device: No such file or directory

Wiso will der wieder einene anderen Kernel laden?
Code:
pi@raspberrypi ~/dabpi_ctl $ sudo modprobe snd-soc-rpi-dabpi
modprobe: ERROR: ../libkmod/libkmod.c:557 kmod_search_moddep() could not open moddep file '/lib/modules/3.18.11+/modules.dep.bin'

Modules
bcm2708-dmaengine
snd-bcm2835
snd-soc-rpi-dabpi

i2c-dev

Hi... wäre es möglich das du mal ein jessi img mit allem drauf hochladen kannst sodass ich schauen kann ob mein pi oder das modul einen fehler hat?
Zitieren


Gehe zu:


Benutzer, die gerade dieses Thema anschauen: 1 Gast/Gäste
RasPiCarProjekt