Fritzbox 7170 ohne Freetz mit Fhem 5.4

Begonnen von olbetec, 18 März 2013, 10:41:35

Vorheriges Thema - Nächstes Thema

Janyboyfreak

Ja ich hab die geladen weil ich es mal damit ausprobieren wollte
Hab jetzt ein passenden Kernel gefunden. Der lädt zwar einwandfrei aber den cul erkennt die fb trotzdem nicht

Wichtel

Sorry, die Glaskugel zum Hellsehen ist grad in Reparatur.

Was hast du getan? Den kernel ausgetauscht (wozu?), wenn ja dann gegen welchen?
Aktuelle Konsolenausgaben?

PeMue

Hallo zusammen,

habe das Laden der Module mal bei mir überprüft:
# insmod fb7170/cdc-acm.ko
# lsmod
usbserial              21344  4 pl2303,ftdi_sio
usbcore                86928  7 cdc_acm,pl2303,ftdi_sio,usbserial,usb_storage,usbahcicore
...
# rmmod fb7170/cdc-acm.ko

Alles ohne Fehlermeldung und wird sauber geladen. Es kann sein, dass die Reihenfolge wichtig ist, ich verwende usbserial, ftdi_sio (für einen USB -> seriell Umsetzer, der so mitläuft), pl2303 für einen S0-Umsetzer für Solarview.
Kann leider den CUL nicht testen, da ich keinen habe.
@Jan: Wenn Du nur ein Gerät am USB Port hast, sollte es kein Problem geben.

Gruß Peter
RPi3Bv1.2 rpiaddon 1.66 6.0 1xHM-CC-RT-DN 1.4 1xHM-TC-IT-WM 1.1 2xHB-UW-Sen-THPL-O 0.15 1x-I 0.14OTAU  1xCUNO2 1.67 2xEM1000WZ 2xUniroll 1xASH2200 3xHMS100T(F) 1xRFXtrx 90 1xWT440H 3xTFA30.3150 5xFA21
RPi1Bv2 LCDCSM 1.63 5.8 2xMAX HKT 1xMAX RT V200KW1 Heizung Wasser

Janyboyfreak

#93
Hallo zusammen,

Also ich hab ja die FB 7170 und da ich noch ein USB Stick brauche da der interne Speicher zu gering ist habe ich einen USB Hub dazwischen.
An diesen Hub sind halt der USB Stick und der Cul

PeMue

Hallo Jan,

ist bei meiner Fritz Box 7170 genauso. Nach Deinem Bild sollte doch der Treiber geladen sein, oder? Was ich nicht verstehe ist, dass die Kommunikation mit fhem dann nicht funktioniert ...

Gruß PeMue
RPi3Bv1.2 rpiaddon 1.66 6.0 1xHM-CC-RT-DN 1.4 1xHM-TC-IT-WM 1.1 2xHB-UW-Sen-THPL-O 0.15 1x-I 0.14OTAU  1xCUNO2 1.67 2xEM1000WZ 2xUniroll 1xASH2200 3xHMS100T(F) 1xRFXtrx 90 1xWT440H 3xTFA30.3150 5xFA21
RPi1Bv2 LCDCSM 1.63 5.8 2xMAX HKT 1xMAX RT V200KW1 Heizung Wasser

Wernieman

Dann zeige mal die dmesg ... und gleichzeitig den CUL raus/rein
- Bitte um Input für Output
- When there is a Shell, there is a Way
- Wann war Dein letztes Backup?

Wie man Fragen stellt: https://tty1.net/smart-questions_de.html

Janyboyfreak

#96
Ich denke auch das die geladen sind aber das die FB den Stick iwie nicht erkennt.

Fritz!Box web password:


BusyBox v1.8.2 (2009-04-22 13:54:57 CEST) built-in shell (ash)
Enter 'help' for a list of built-in commands.

dermittle die aktuelle TTY
tty is "/dev/pts/1"
mweitere telnet Verbindung aufgebaut
# dmesg
Linux version 2.6.13.1-ohio (3964) (gcc-Version 3.4.6) #1 Thu May 5 16:23:59 CES
T 2011
memsize=32 MByte
flashsize=8 MByte
&_end=0x942317e4 PFN_ALIGN(&_end)=0x94232000 CPHYSADDR(PFN_ALIGN(&_end))=0x14232
000 memsize=0x2000000
CPU revision is: 00018448
[ohio_gpio_init]
Determined physical RAM map:
memory: 00232000 @ 14000000 (reserved)
memory: 01dce000 @ 14232000 (usable)
On node 0 totalpages: 8192
[alloc_node_mem_map] reduce size from 2883616 Bytes to  262176 Bytes
[alloc_node_mem_map]: (org) sizeof(mem_map) = 262176 mem_map=0x94235000-0x942750
20
[alloc_node_mem_map]: sizeof(mem_map) = 2883616 mem_map=0x93fb5000-0x94275020
zone=0 zone_size[j]=0x90112
realsize=8192
  DMA zone: 8192 pages, LIFO batch:3
zone=1 zone_size[j]=0x0
realsize=0
  Normal zone: 0 pages, LIFO batch:1
zone=2 zone_size[j]=0x0
realsize=0
  HighMem zone: 0 pages, LIFO batch:1
Built 1 zonelists
Kernel command line:  console=ttyS0,38400n8r
[ld_mmu_r4xx0] memcpy((void *)(CAC_BASE   + 0x100), &except_vec2_generic, 0x30)
Primary instruction cache 16kB, physically tagged, 4-way, linesize 16 bytes.
Primary data cache 8kB, 4-way, linesize 16 bytes.
Synthesized TLB refill handler (20 instructions). Base=0x941f4a0c
TLB synthesizer field overflow (simm)
Synthesized TLB load handler fastpath (34 instructions) Base=0x941f8620.
TLB synthesizer field overflow (simm)
Synthesized TLB store handler fastpath (34 instructions) Base=0x941f8820.
TLB synthesizer field overflow (simm)
Synthesized TLB modify handler fastpath (33 instructions) Base=0x941f8a20.
PID hash table entries: 256 (order: 8, 4096 bytes)
CPU frequency 211.97 MHz
Using 105.984 MHz high precision timer.
[setup_irq]: irq 255 irqaction->handler 0x94041dc0 ()
[register_console] enable commandline console 0
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 30140k/30520k available (1589k kernel code, 320k reserved, 302k data, 11
6k init, 0k highmem)
totalram_pages= 7550
Calibrating delay loop... 211.35 BogoMIPS (lpj=1056768)
loops_per_jiffy=1056768
Mount-cache hash table entries: 512
Checking for 'wait' instruction...  available.
Calling initcall 0x941e827c
Calling initcall 0x941e84fc
Calling initcall 0x941ea428
Calling initcall 0x941ead48
Calling initcall 0x941ead54
Calling initcall 0x941efdd4
NET: Registered protocol family 16
Calling initcall 0x941eb5dc
Calling initcall 0x941eb864
Calling initcall 0x941df2c4
Can't analyze prologue code at 9418bc04
Calling initcall 0x941ea118
Calling initcall 0x941ebf10
Calling initcall 0x941edc7c
Calling initcall 0x941ee394
Calling initcall 0x941eefa4
Calling initcall 0x941ef4dc
Calling initcall 0x941ef6a0
Calling initcall 0x941efccc
Calling initcall 0x941efda0
Calling initcall 0x941ea37c
Calling initcall 0x941eb6f4
Calling initcall 0x941e78a4
Calling initcall 0x941e7984
Calling initcall 0x941e7b90
Calling initcall 0x941e7f6c
Calling initcall 0x941e8174
Calling initcall 0x941e82ac
Calling initcall 0x941e9774
Calling initcall 0x941e9bb8
Calling initcall 0x941e9be0
Calling initcall 0x941e9f2c
Calling initcall 0x941e9fe0
Calling initcall 0x941ea020
Calling initcall 0x941ea3e8
Calling initcall 0x941eaaec
Calling initcall 0x941eab78
Calling initcall 0x941eac6c
Calling initcall 0x941eb2a4
Calling initcall 0x941eb2ec
Squashfs 2.2-r2b (released 2006/02/23) (C) 2002-2005 Phillip Lougher
Calling initcall 0x941eb3d0
Calling initcall 0x941eb3e8
Calling initcall 0x941eb7a8
Calling initcall 0x941eb898
Calling initcall 0x941eba1c
Calling initcall 0x941ebfd0
avm_net_trace: Up and running.
Calling initcall 0x941ec050
[avm_power]Ohio250 detected -> overclocking possible
Calling initcall 0x941ec384
[avm] configured: watchdog eventled enable shift register enable direct gpio
        gpio usage: reset=12 clock=13 store=10 data=9
AR7WDT: Watchdog Driver for AR7 Hardware (Version 1.0, build: May  5 2011 16:21:
26)
Calling initcall 0x941ed2cc
Serial: 8250/16550 driver $Revision: 1.90 $ 1 ports, IRQ sharing disabled
[uart_add_one_port]
ttyS0 at MMIO 0x0 (irq = 15) is a OHIO_UART
[uart_add_one_port] dont register console port->type = 16
port->cons = 0x941ce300 port->cons->flags = 0x7
[uart_add_one_port] success
Calling initcall 0x941edcc0
io scheduler noop registered
Calling initcall 0x941edccc
[cpmac] Version: 1.129  -  Revision 790:1110  -  Do   5.05.2011  16:22:45
[avm_event_source_trigger]: not registered
[cpmac] [cpmac_if_register] dev cpmac0 (phy_id 0) registered
Calling initcall 0x941ee19c
Calling initcall 0x941ee304
tun: Universal TUN/TAP device driver, 1.6
tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
Calling initcall 0x941ee3dc
Calling initcall 0x941ee3e8
Calling initcall 0x941ee4a8
Calling initcall 0x941ee4b4
Calling initcall 0x941ee4d8
Calling initcall 0x941ee508
Calling initcall 0x941ee554
Calling initcall 0x941ee578
Calling initcall 0x941ee59c
physmap flash device: 400000 at 10000000
phys_mapped_flash: Found 1 x16 devices at 0x0 in 16-bit bank
Amd/Fujitsu Extended Query Table at 0x0040
phys_mapped_flash: Swapping erase regions for broken CFI table.
number of CFI chips: 1
RedBoot partition parsing not available
Calling initcall 0x941ee70c
Generic platform RAM MTD, (c) 2004 Simtec Electronics
Calling initcall 0x941ee73c
Ohio flash driver (size->0x400000 mem->0x10000000)
flash_size=0x800000
flash_mask=0xffffff
Ohio flash memory: Found 1 x16 devices at 0x0 in 16-bit bank
[genprobe_ident_chips] 4 i 0 j 0
[genprobe_ident_chips] 5 i 0 j 1
Amd/Fujitsu Extended Query Table at 0x0040
Ohio flash memory: Swapping erase regions for broken CFI table.
number of CFI chips: 1
[mtd]: set to default: jffs2_size = 0x20 * 64KByte (0x200000 Bytes)
[ohio_find_hidden_filesystem]: super block found: bytes_used: 0x6ceab9/7137977
[init_ohio_flash] find hidden filesystem size=0x6d2f00 offset=0xad100
[mtd] configure jffs2 partition
[mtd] fs_size=0x770000 max=0x0 is=0x200000 max jffs2_size value 0
[mtd] ERROR jffs2_size too big, reduce to max
[mtd] ohio_flash_map: name=Ohio flash memory bankwidth=2 virt=0xb0000000 phys=0x
10000000 size=0x800000
Creating 5 MTD partitions on "Ohio flash memory":
0x000ad100-0x00780000 : "filesystem"
        'nor-flash'
        'Bits can be cleared (flash)'
        'Has an erase function'
mtd: partition "filesystem" doesn't start on an erase block boundary -- force re
ad-only
0x00010000-0x00780000 : "kernel"
        'nor-flash'
        'Bits can be cleared (flash)'
        'Has an erase function'
0x00000000-0x00010000 : "bootloader"
        'nor-flash'
        'Bits can be cleared (flash)'
        'Has an erase function'
0x00780000-0x007c0000 : "tffs (1)"
        'nor-flash'
        'Bits can be cleared (flash)'
        'Has an erase function'
0x007c0000-0x00800000 : "tffs (2)"
        'nor-flash'
        'Bits can be cleared (flash)'
        'Has an erase function'
partition_info[0]: name=filesystem offset=ad100 size=6d2f00
partition_info[0]: 0xb00ad100: 0x73717368 0x1006
partition_info[1]: name=kernel offset=10000 size=770000
partition_info[1]: 0xb0010000: 0xfeed1281 0x9d05e
partition_info[2]: name=bootloader offset=0 size=10000
partition_info[2]: 0xb0000000: 0x40809000 0x40809800
partition_info[3]: name=tffs (1) offset=780000 size=40000
partition_info[3]: 0xb0780000: 0x40001 0xfbfeffff
partition_info[4]: name=tffs (2) offset=7c0000 size=40000
partition_info[4]: 0xb07c0000: 0x40001 0xfafeffff
Calling initcall 0x941ef184
Calling initcall 0x941ef2c8
Calling initcall 0x941efd94
Calling initcall 0x941f0a84
NET: Registered protocol family 2
IP route cache hash table entries: 512 (order: -1, 2048 bytes)
TCP established hash table entries: 2048 (order: 2, 16384 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
TCP reno registered
Calling initcall 0x941f349c
Calling initcall 0x941f34a4
TCP bic registered
Calling initcall 0x941f34b0
mcfw: IGMPv3 fast forwarding
Calling initcall 0x941f34dc
NET: Registered protocol family 1
Calling initcall 0x941f357c
NET: Registered protocol family 17
Calling initcall 0x941f35fc
Calling initcall 0x941f36b8
NET: Registered protocol family 8
NET: Registered protocol family 20
Calling initcall 0x941f385c
Calling initcall 0x941de024
[setup_irq]: irq 1 irqaction->handler 0x94001590 ()
[setup_irq]: irq 6 irqaction->handler 0x940015a4 ()
Calling initcall 0x940017e4
[ohio_late_init]
Calling initcall 0x941de160
Calling initcall 0x941de3dc
Calling initcall 0x941eb7e4
Calling initcall 0x940cdef0
[avm_new] push_button_gpio=8 value=1 enabled
Calling initcall 0x941ecb40
TFFS: tiny flash file system driver. GPL (c) AVM Berlin (Version 2.0)
      mount on mtd4 and mtd5 (double buffering)
Adam2 environment variables API installed.
Calling initcall 0x941ed990
Calling initcall 0x9412b2a8
Calling initcall 0x941f1fa4
[prepare_namespace] new mount root /dev/mtdblock1
use lzma compression
VFS: Mounted root (squashfs filesystem) readonly.
Freeing prom memory: 0kb freed
Freeing unused kernel memory: 116k freed (7579 free)
[setup_irq]: irq 15 irqaction->handler 0x940da11c ()
AR7WDT: System Init UEberwachung 240 Sekunden
TFFS Name Table H
Piglet: module license '
(C) Copyright 2005 by AVM
' taints kernel.
EMIF: asize=1 ta=3 r_hold=0 w_strobe=6 r_strobe=6 ew=1
[piglet]McSP: rFS: 8000 Hz rCLK:2048285 Hz
[avm_new]push_button 'Wlan-Taster', released: GPIO=8 presses=6000 key=button_key
_3
registered device TI Avalanche SAR
tiatm driver (patch_annex=0xc005ae4c)
[tiatm] Set StrictPriority=0
DSP binary filesize = 322784 bytes
[dsl_ur8] dsl serial number successfully set to "465249545a21426f78466f6e574c414
e37313730303030343045463830393033"
[tiatm] INFO V2U-BRIDGEREGISTER: 0x00000019
[avm_power]Ohio250 detected -> overclocking possible
[avm_power]#### boostVoltage: DSP Core voltage set to 1,5 V ####
[setup_irq]: irq 23 irqaction->handler 0xc0046208 ()
[setup_irq]: irq 31 irqaction->handler 0xc0046258 ()
[tiatm]: Powermanagment (States => 1,3,10) supported!
Texas Instruments ATM driver: version:[4.08.02.01]
[tiatm] AvmInterface length: 44
ubik2 driver (ubik2 - 0x10=0xc006d094)
atm_dsp_register_ubik2: ubik2_ToMIPS_notify=0xc005ebfc
atm_dsp_register_ubik2: dsp mem pointer 0xa1c10af4
ubik2_init_interface: DSP-Link Version v3 8480

[ubik2_debug]redirect kernel-messages (/dev/debug)

[ubik2_debug] eof_sync =1
#


Ist das denn so richtig definiert wie im Anhang?

Janyboyfreak

Ich hab mir jetzt ein Raspberry Pi geholt weil ich mir den mal genauer angeschaut habe und ich begeistert war. Damit klappt alles auch Problemlos. Trotzdem danke für eure Hilfe.

MFG Jan

Meins

Hallo zusammen!

Ich habe mir eine Fritz!Box 7270 V3 organisiert und versuche nun seit Montag FHEM ans laufen zu bekommen.
Ich weiß, dass dieser Thred für die 7170 ist, aber mit den Anleitungen hier bin ich wesentlich weiter gekommen als mit denen aus dem 7270 v2 Thread  ;)

Ein einziges mal bin ich über den Browser auf die Fhemseite gekommen, allerdings mit der Anleitung für die 7170 ohne addon. Leider ist nach einer Stromunterbrechung nichts mehr gegangen. Warum weiß ich nicht.

Jetzt habe ich alles ganz neu Aufgesetzt, Fritz!Box mit dem Recovery- Image und den Stick neu formatiert.
Ich habe Fhem 5.5 und das Addon hineinkopiert.
Wenn ich über telnet "sh startfhem" eingebe bekomme ich auch die passende Rückmeldung, swapfile wird erstellt und "fhem started ..."
Leider komme ich trotzdem nicht über den Browser drauf.

die Datei startfhem habe ich angepasst und auch die stopfhem.
Einen CUL will ich mir erst zulegen wenn ich wenigstens auf die Oberfläche komme. Die Autostart will ich auch erst im nächten Schritt anpassen  ;)

Kann mir freundlicherweise jemand helfen was ich falsch gemacht habe?
DANKE!
FHEM 5.8 auf RasPI 3 mit CUL 868MHz
RaspberryMAtic auf Raspi B+

Wernieman

Hast Du denn geguckt, ob der fhem-Prozess überhaupt läuft?
ls -lha | grep -i fhem

oder ob überhaupt auf Ports gelauscht werden?
netstat -lntp

Beide befehle bitte auf der Konsole eingeben.
- Bitte um Input für Output
- When there is a Shell, there is a Way
- Wann war Dein letztes Backup?

Wie man Fragen stellt: https://tty1.net/smart-questions_de.html

Meins

Hallo Wernieman!

Vielen Dank für die Schnelle Antwort!

Habe vergessen zu sagen, dass ich mich nicht so wirklich mit linux auskenne.....

Ich habe die Befehle (außer den Balken und das greb -i fhem, da ich nicht weiß wie) mal im root der FB und einmal im Verzeichnis vom stick eingegeben.
siehe die Bilder im Anhang.

Aber ich glaube da läuft nichts, oder?
FHEM 5.8 auf RasPI 3 mit CUL 868MHz
RaspberryMAtic auf Raspi B+

Wernieman

#101
ALSO ...

der | ist auf der Deutschen Tastatur bei der Taste "<>" zu finden und nennt sich Pipe. Kennt Windows (seit DOS-Zeiten) übrigens auch.

Die befehle fragen das System ab, nicht das Verzeichnis. "ps aux" fragt z.B. alle laufenden Prozesse ab. Mit "| grep -i fhem" filtern wir auf den Namen "fhem".

dann hast Du bei "netstat -lntp" den ersten Buchstaben falsch geschreiben. es ist ein "Kleines L"

Kleine Info zu Unix-Befehlen:
http://forum.fhem.de/index.php/topic,19314.msg146025.html#msg146025
- Bitte um Input für Output
- When there is a Shell, there is a Way
- Wann war Dein letztes Backup?

Wie man Fragen stellt: https://tty1.net/smart-questions_de.html

Meins

Ok, Danke für die kurze Erklärung!!

Habs jetzt noch einmal eingegeben.

einmal im root der FB und einmal im fhem- Verzeichnis.
FHEM 5.8 auf RasPI 3 mit CUL 868MHz
RaspberryMAtic auf Raspi B+

Wernieman

Nochmals:
Es ist (und muß) egal sein, in welchem verzeichnis Du dieses eingiebst! Ich hoffe, Du bist aber (per telnet?) auf dem System?

Wie Du sehen kannst, lauscht nix auf port 8083, da wird dann nix mit Webzugriff. Siehe auch meine Erklärung im Link.

Läuft den der Prozess?
ps aux | grep fhem

Falls Du keine Möglichkeiten der Eingabe von | hast (was mich wundern würde), dan bitte das pure (und lange)
ps aux
- Bitte um Input für Output
- When there is a Shell, there is a Way
- Wann war Dein letztes Backup?

Wie man Fragen stellt: https://tty1.net/smart-questions_de.html

Wichtel

und dann nochmal ps | grep fhem probieren, auf meiner Fritzbox will ps das aux nämlich auch nicht..