RalfFriedl
IPPF-Urgestein
- Mitglied seit
- 22 Apr 2007
- Beiträge
- 12,343
- Punkte für Reaktionen
- 2
- Punkte
- 0
Da hast Du den Inhalt der Zwischenablage, also das, was vorher ausgegeben wurde, ins Terminal eingefügt.und dann:
...
Da hast Du den Inhalt der Zwischenablage, also das, was vorher ausgegeben wurde, ins Terminal eingefügt.und dann:
...
Doch, sollte schon vorhanden sein (d. h. mit "strace cw2300" in einem rw-Bereich).Nein ist nicht vorhanden, sollte doch auch nicht oder?
Wenn auf der Box _nicht_ vorhanden, dann kannst Du nano (auf der Box) benutzen.... wenn auf der Box vorhanden.
BTW: Die Datei ist "immer" im make-Verzeichnis unter open2300/files/var/tmp. Aber mit dem symlink ist diese auch im /etc und das wollen wir nicht. Für diesen Versuch soll diese Datei nur im /tmp/flash/mod sein. Und dafür gibt es nano auf der Box.Also muss die Datei wieder ins make Verzeichnis unter open2300/files/var/tmp ....richtig?
fritz.fonwlan.box login: root
Password:
__ _ __ __ ___ __
|__ |_) |__ |__ | /
| |\ |__ |__ | /_
The fun has just begun ...
BusyBox v1.20.2 (2012-08-24 00:49:30 CEST) built-in shell (ash)
Enter 'help' for a list of built-in commands.
root@fritz:/var/mod/root# cd /
root@fritz:/# cd tmp
root@fritz:/var/tmp# cd flash
root@fritz:/var/tmp/flash# cd mod
root@fritz:/var/tmp/flash/mod# nano
root@fritz:/var/tmp/flash/mod# ls
crontab modules open2300.conf security
root@fritz:/var/tmp/flash/mod# cd /
root@fritz:/# cd usr
root@fritz:/usr# cd bin
root@fritz:/usr/bin# ls
[ ftpget modpasswd test
[[ ftpput modreg tftp
arping get_ip modsave time
avm haserl moduninstall top
awk head modunreg tr
basename hexdump modusers traceroute
bin2300 histlog2300 mvi tty
bunzip2 history2300 nano uniq
bzcat httpsdl nc uptime
checkempty id nnano usb_host.sh
clear interval2300 nohup uudecode
cmp kernel_args nslookup uuencode
crontab killall nvi wc
cryptpw ldd od webcfg
ctlmgr light2300 open2300 wget
ctlmgr_ctl log2300 passwd which
cut logger prepare-downgrade whois
cw2300 logname printf wlan_cal.sh
dirname lsof realpath wlan_lifetest.sh
dsl_info md5sum reset wpa_authenticator
du minmax2300 setcountry wrap_editors
dump2300 mkconfigfile setlanguage wrapper
env mkfifo sort wu2300
ether-wake mkpasswd strings xargs
expr mnano stun-ip xml2300
fetch2300 modcgi system_status yes
finalize.sh modconf tail
find modhosts tee
free modload telnet
root@fritz:/usr/bin# cp cw2300 /tmp/flash/mod
root@fritz:/usr/bin# cd tmp/flash/mod
-sh: cd: can't cd to tmp/flash/mod
root@fritz:/usr/bin# cd tmp
-sh: cd: can't cd to tmp
root@fritz:/usr/bin# cd /
root@fritz:/# cd tmp
root@fritz:/var/tmp# cd flash
root@fritz:/var/tmp/flash# cd mod
root@fritz:/var/tmp/flash/mod# ls
crontab cw2300 modules open2300.conf security
root@fritz:/var/tmp/flash/mod# strace cw2300
execve("/usr/bin/cw2300", ["cw2300"], [/* 207 vars */]) = 0
old_mmap(NULL, 20, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2aaad000
open("/usr/lib/freetz/libm.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/mod/lib/libm.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/lib/libm.so.0", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0777, st_size=98876, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2aaae000
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\10\0\1\0\0\0 \25\0\0004\0\0\0"..., 4096) = 4096
old_mmap(NULL, 163840, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2aabe000
old_mmap(0x2aabe000, 97588, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0x2aabe000
old_mmap(0x2aae5000, 3880, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x17000) = 0x2aae5000
close(3) = 0
munmap(0x2aaae000, 4096) = 0
open("/usr/lib/freetz/libgcc_s.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/mod/lib/libgcc_s.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/lib/libgcc_s.so.1", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0755, st_size=55536, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2aaae000
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\10\0\1\0\0\0p\32\0\0004\0\0\0"..., 4096) = 4096
old_mmap(NULL, 122880, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2aae6000
old_mmap(0x2aae6000, 53884, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0x2aae6000
old_mmap(0x2ab03000, 1008, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0xd000) = 0x2ab03000
close(3) = 0
munmap(0x2aaae000, 4096) = 0
open("/usr/lib/freetz/libc.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/mod/lib/libc.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/lib/libc.so.0", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0777, st_size=410640, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2aaae000
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\10\0\1\0\0\0\340\253\0\0004\0\0\0"..., 4096) = 4096
old_mmap(NULL, 499712, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2ab04000
old_mmap(0x2ab04000, 404576, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0x2ab04000
old_mmap(0x2ab76000, 8244, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x62000) = 0x2ab76000
old_mmap(0x2ab79000, 18768, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x2ab79000
close(3) = 0
munmap(0x2aaae000, 4096) = 0
open("/mod/lib/libc.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/lib/libc.so.0", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0777, st_size=410640, ...}) = 0
close(3) = 0
open("/mod/lib/libc.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/lib/libc.so.0", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0777, st_size=410640, ...}) = 0
close(3) = 0
stat("/lib/ld-uClibc.so.0", {st_mode=S_IFREG|0777, st_size=21532, ...}) = 0
mprotect(0x2ab76000, 4096, PROT_READ) = 0
mprotect(0x2aabc000, 4096, PROT_READ) = 0
ioctl(0, TIOCNXCL, {B38400 opost isig icanon echo ...}) = 0
ioctl(1, TIOCNXCL, {B38400 opost isig icanon echo ...}) = 0
brk(0) = 0x41b000
brk(0x41c000) = 0x41c000
open("open2300.conf", O_RDONLY|O_LARGEFILE) = 3
ioctl(3, TIOCNXCL, 0x7fdb4358) = -1 ENOTTY (Inappropriate ioctl for device)
brk(0x41d000) = 0x41d000
read(3, "# open2300.conf## Configuration "..., 4096) = 3004
read(3, "", 4096) = 0
--- {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0x20202020} (Segmentation fault) ---
+++ killed by SIGSEGV +++
Segmentation fault
root@fritz:/var/tmp/flash/mod#
Wie ist die Ausgabe von:Dann strace 2300
strace /tmp/flash/mod/cw2300 /tmp/flash/mod/open2300.conf
old_mmap(0x2ab76000, 8244, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x62000) = 0x2ab76000
old_mmap(0x2ab79000, 18768, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x2ab79000
close(3) = 0
munmap(0x2aaae000, 4096) = 0
open("/mod/lib/libc.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/lib/libc.so.0", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0777, st_size=410640, ...}) = 0
close(3) = 0
open("/mod/lib/libc.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/lib/libc.so.0", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0777, st_size=410640, ...}) = 0
close(3) = 0
stat("/lib/ld-uClibc.so.0", {st_mode=S_IFREG|0777, st_size=21532, ...}) = 0
mprotect(0x2ab76000, 4096, PROT_READ) = 0
mprotect(0x2aabc000, 4096, PROT_READ) = 0
ioctl(0, TIOCNXCL, {B38400 opost isig icanon echo ...}) = 0
ioctl(1, TIOCNXCL, {B38400 opost isig icanon echo ...}) = 0
brk(0) = 0x41b000
brk(0x41c000) = 0x41c000
open("/tmp/flash/mod/open2300.conf", O_RDONLY|O_LARGEFILE) = 3
ioctl(3, TIOCNXCL, 0x7ff6c328) = -1 ENOTTY (Inappropriate ioctl for device)
brk(0x41d000) = 0x41d000
read(3, "SERIAL_DEVICE /d"..., 4096) = 483
read(3, "", 4096) = 0
open("/dev/ttyUSB0", O_RDWR|O_NOCTTY|O_LARGEFILE) = 4
flock(4, LOCK_EX) = 0
ioctl(4, TIOCSCTTY, {B2400 -opost -isig -icanon -echo ...}) = 0
ioctl(4, TIOCNXCL, {B2400 -opost -isig -icanon -echo ...}) = 0
ioctl(4, SNDCTL_TMR_METRONOME or TCSETAW, 0x2) = 0
ioctl(4, 0x741d, 0x7ff6c948) = 0
ioctl(4, 0x741a, 0x7ff6c948) = 0
time([1346337793]) = 1346337793
time(NULL) = 1346337793
ioctl(4, SNDCTL_TMR_METRONOME or TCSETAW, 0) = 0
write(4, "\6", 1) = 1
ioctl(4, SNDCTL_TMR_TEMPO or SNDRV_TIMER_IOCTL_GSTATUS or TCGETA, 0x1) = 0
read(4, "", 1) = 0
nanosleep({0, 0}, NULL) = 0
ioctl(4, SNDCTL_TMR_METRONOME or TCSETAW, 0) = 0
write(4, "\6", 1) = 1
ioctl(4, SNDCTL_TMR_TEMPO or SNDRV_TIMER_IOCTL_GSTATUS or TCGETA, 0x1) = 0
read(4, "\2", 1) = 1
write(4, "\202", 1) = 1
ioctl(4, SNDCTL_TMR_TEMPO or SNDRV_TIMER_IOCTL_GSTATUS or TCGETA, 0x1) = 0
read(4, "\0", 1) = 1
write(4, "\226", 1) = 1
ioctl(4, SNDCTL_TMR_TEMPO or SNDRV_TIMER_IOCTL_GSTATUS or TCGETA, 0x1) = 0
read(4, "\25", 1) = 1
write(4, "\212", 1) = 1
ioctl(4, SNDCTL_TMR_TEMPO or SNDRV_TIMER_IOCTL_GSTATUS or TCGETA, 0x1) = 0
read(4, "\"", 1) = 1
write(4, "\236", 1) = 1
ioctl(4, SNDCTL_TMR_TEMPO or SNDRV_TIMER_IOCTL_GSTATUS or TCGETA, 0x1) = 0
read(4, "7", 1) = 1
write(4, "\316", 1) = 1
ioctl(4, SNDCTL_TMR_TEMPO or SNDRV_TIMER_IOCTL_GSTATUS or TCGETA, 0x1) = 0
read(4, "3", 1) = 1
read(4, "\0", 1) = 1
read(4, "\n", 1) = 1
read(4, "\260", 1) = 1
read(4, "\272", 1) = 1
ioctl(4, SNDCTL_TMR_METRONOME or TCSETAW, 0) = 0
write(4, "\6", 1) = 1
ioctl(4, SNDCTL_TMR_TEMPO or SNDRV_TIMER_IOCTL_GSTATUS or TCGETA, 0x1) = 0
read(4, "\2", 1) = 1
write(4, "\202", 1) = 1
ioctl(4, SNDCTL_TMR_TEMPO or SNDRV_TIMER_IOCTL_GSTATUS or TCGETA, 0x1) = 0
read(4, "\0", 1) = 1
write(4, "\216", 1) = 1
ioctl(4, SNDCTL_TMR_TEMPO or SNDRV_TIMER_IOCTL_GSTATUS or TCGETA, 0x1) = 0
read(4, "\23", 1) = 1
write(4, "\236", 1) = 1
ioctl(4, SNDCTL_TMR_TEMPO or SNDRV_TIMER_IOCTL_GSTATUS or TCGETA, 0x1) = 0
read(4, "'", 1) = 1
write(4, "\216", 1) = 1
ioctl(4, SNDCTL_TMR_TEMPO or SNDRV_TIMER_IOCTL_GSTATUS or TCGETA, 0x1) = 0
read(4, "3", 1) = 1
write(4, "\312", 1) = 1
ioctl(4, SNDCTL_TMR_TEMPO or SNDRV_TIMER_IOCTL_GSTATUS or TCGETA, 0x1) = 0
read(4, "2", 1) = 1
read(4, "\20", 1) = 1
read(4, "E", 1) = 1
read(4, "U", 1) = 1
ioctl(4, SNDCTL_TMR_METRONOME or TCSETAW, 0) = 0
write(4, "\6", 1) = 1
ioctl(4, SNDCTL_TMR_TEMPO or SNDRV_TIMER_IOCTL_GSTATUS or TCGETA, 0x1) = 0
read(4, "\2", 1) = 1
write(4, "\202", 1) = 1
ioctl(4, SNDCTL_TMR_TEMPO or SNDRV_TIMER_IOCTL_GSTATUS or TCGETA, 0x1) = 0
read(4, "\0", 1) = 1
write(4, "\222", 1) = 1
ioctl(4, SNDCTL_TMR_TEMPO or SNDRV_TIMER_IOCTL_GSTATUS or TCGETA, 0x1) = 0
read(4, "\24", 1) = 1
write(4, "\256", 1) = 1
ioctl(4, SNDCTL_TMR_TEMPO or SNDRV_TIMER_IOCTL_GSTATUS or TCGETA, 0x1) = 0
read(4, "+", 1) = 1
write(4, "\222", 1) = 1
ioctl(4, SNDCTL_TMR_TEMPO or SNDRV_TIMER_IOCTL_GSTATUS or TCGETA, 0x1) = 0
read(4, "4", 1) = 1
write(4, "\316", 1) = 1
ioctl(4, SNDCTL_TMR_TEMPO or SNDRV_TIMER_IOCTL_GSTATUS or TCGETA, 0x1) = 0
read(4, "3", 1) = 1
read(4, "\0", 1) = 1
read(4, "\0", 1) = 1
read(4, "\0", 1) = 1
read(4, "\0", 1) = 1
ioctl(4, SNDCTL_TMR_METRONOME or TCSETAW, 0) = 0
write(4, "\6", 1) = 1
ioctl(4, SNDCTL_TMR_TEMPO or SNDRV_TIMER_IOCTL_GSTATUS or TCGETA, 0x1) = 0
read(4, "\2", 1) = 1
write(4, "\202", 1) = 1
ioctl(4, SNDCTL_TMR_TEMPO or SNDRV_TIMER_IOCTL_GSTATUS or TCGETA, 0x1) = 0
read(4, "\0", 1) = 1
write(4, "\222", 1) = 1
ioctl(4, SNDCTL_TMR_TEMPO or SNDRV_TIMER_IOCTL_GSTATUS or TCGETA, 0x1) = 0
read(4, "\24", 1) = 1
write(4, "\246", 1) = 1
ioctl(4, SNDCTL_TMR_TEMPO or SNDRV_TIMER_IOCTL_GSTATUS or TCGETA, 0x1) = 0
read(4, ")", 1) = 1
write(4, "\236", 1) = 1
ioctl(4, SNDCTL_TMR_TEMPO or SNDRV_TIMER_IOCTL_GSTATUS or TCGETA, 0x1) = 0
read(4, "7", 1) = 1
write(4, "\316", 1) = 1
ioctl(4, SNDCTL_TMR_TEMPO or SNDRV_TIMER_IOCTL_GSTATUS or TCGETA, 0x1) = 0
read(4, "3", 1) = 1
read(4, "Q", 1) = 1
read(4, "\0", 1) = 1
read(4, "\0", 1) = 1
read(4, "Q", 1) = 1
ioctl(4, SNDCTL_TMR_METRONOME or TCSETAW, 0) = 0
write(4, "\6", 1) = 1
ioctl(4, SNDCTL_TMR_TEMPO or SNDRV_TIMER_IOCTL_GSTATUS or TCGETA, 0x1) = 0
read(4, "\2", 1) = 1
write(4, "\202", 1) = 1
ioctl(4, SNDCTL_TMR_TEMPO or SNDRV_TIMER_IOCTL_GSTATUS or TCGETA, 0x1) = 0
read(4, "\0", 1) = 1
write(4, "\222", 1) = 1
ioctl(4, SNDCTL_TMR_TEMPO or SNDRV_TIMER_IOCTL_GSTATUS or TCGETA, 0x1) = 0
read(4, "\24", 1) = 1
write(4, "\206", 1) = 1
ioctl(4, SNDCTL_TMR_TEMPO or SNDRV_TIMER_IOCTL_GSTATUS or TCGETA, 0x1) = 0
read(4, "", 1) = 0
ioctl(4, SNDCTL_TMR_METRONOME or TCSETAW, 0) = 0
write(4, "\6", 1) = 1
ioctl(4, SNDCTL_TMR_TEMPO or SNDRV_TIMER_IOCTL_GSTATUS or TCGETA, 0x1) = 0
read(4, "", 1) = 0
nanosleep({0, 0}, NULL) = 0
ioctl(4, SNDCTL_TMR_METRONOME or TCSETAW, 0) = 0
write(4, "\6", 1) = 1
ioctl(4, SNDCTL_TMR_TEMPO or SNDRV_TIMER_IOCTL_GSTATUS or TCGETA, 0x1) = 0
read(4, "\2", 1) = 1
write(4, "\202", 1) = 1
ioctl(4, SNDCTL_TMR_TEMPO or SNDRV_TIMER_IOCTL_GSTATUS or TCGETA, 0x1) = 0
read(4, "", 1) = 0
ioctl(4, SNDCTL_TMR_METRONOME or TCSETAW, 0) = 0
write(4, "\6", 1) = 1
ioctl(4, SNDCTL_TMR_TEMPO or SNDRV_TIMER_IOCTL_GSTATUS or TCGETA, 0x1) = 0
read(4, "\2", 1) = 1
write(4, "\202", 1) = 1
ioctl(4, SNDCTL_TMR_TEMPO or SNDRV_TIMER_IOCTL_GSTATUS or TCGETA, 0x1) = 0
read(4, "\0", 1) = 1
write(4, "\222", 1) = 1
ioctl(4, SNDCTL_TMR_TEMPO or SNDRV_TIMER_IOCTL_GSTATUS or TCGETA, 0x1) = 0
read(4, "\24", 1) = 1
write(4, "\206", 1) = 1
ioctl(4, SNDCTL_TMR_TEMPO or SNDRV_TIMER_IOCTL_GSTATUS or TCGETA, 0x1) = 0
read(4, "!", 1) = 1
write(4, "\246", 1) = 1
ioctl(4, SNDCTL_TMR_TEMPO or SNDRV_TIMER_IOCTL_GSTATUS or TCGETA, 0x1) = 0
read(4, "9", 1) = 1
write(4, "\306", 1) = 1
ioctl(4, SNDCTL_TMR_TEMPO or SNDRV_TIMER_IOCTL_GSTATUS or TCGETA, 0x1) = 0
read(4, "", 1) = 0
ioctl(4, SNDCTL_TMR_METRONOME or TCSETAW, 0) = 0
write(4, "\6", 1) = 1
ioctl(4, SNDCTL_TMR_TEMPO or SNDRV_TIMER_IOCTL_GSTATUS or TCGETA, 0x1) = 0
read(4, "\2", 1) = 1
write(4, "\202", 1) = 1
ioctl(4, SNDCTL_TMR_TEMPO or SNDRV_TIMER_IOCTL_GSTATUS or TCGETA, 0x1) = 0
read(4, "\0", 1) = 1
write(4, "\222", 1) = 1
ioctl(4, SNDCTL_TMR_TEMPO or SNDRV_TIMER_IOCTL_GSTATUS or TCGETA, 0x1) = 0
read(4, "\24", 1) = 1
write(4, "\206", 1) = 1
ioctl(4, SNDCTL_TMR_TEMPO or SNDRV_TIMER_IOCTL_GSTATUS or TCGETA, 0x1) = 0
read(4, "!", 1) = 1
write(4, "\246", 1) = 1
ioctl(4, SNDCTL_TMR_TEMPO or SNDRV_TIMER_IOCTL_GSTATUS or TCGETA, 0x1) = 0
read(4, "9", 1) = 1
write(4, "\306", 1) = 1
ioctl(4, SNDCTL_TMR_TEMPO or SNDRV_TIMER_IOCTL_GSTATUS or TCGETA, 0x1) = 0
read(4, "1", 1) = 1
read(4, "b", 1) = 1
read(4, "b", 1) = 1
ioctl(4, SNDCTL_TMR_METRONOME or TCSETAW, 0) = 0
write(4, "\6", 1) = 1
ioctl(4, SNDCTL_TMR_TEMPO or SNDRV_TIMER_IOCTL_GSTATUS or TCGETA, 0x1) = 0
read(4, "\2", 1) = 1
write(4, "\202", 1) = 1
ioctl(4, SNDCTL_TMR_TEMPO or SNDRV_TIMER_IOCTL_GSTATUS or TCGETA, 0x1) = 0
read(4, "\0", 1) = 1
write(4, "\226", 1) = 1
ioctl(4, SNDCTL_TMR_TEMPO or SNDRV_TIMER_IOCTL_GSTATUS or TCGETA, 0x1) = 0
read(4, "\25", 1) = 1
write(4, "\272", 1) = 1
ioctl(4, SNDCTL_TMR_TEMPO or SNDRV_TIMER_IOCTL_GSTATUS or TCGETA, 0x1) = 0
read(4, ".", 1) = 1
write(4, "\212", 1) = 1
ioctl(4, SNDCTL_TMR_TEMPO or SNDRV_TIMER_IOCTL_GSTATUS or TCGETA, 0x1) = 0
read(4, "2", 1) = 1
write(4, "\316", 1) = 1
ioctl(4, SNDCTL_TMR_TEMPO or SNDRV_TIMER_IOCTL_GSTATUS or TCGETA, 0x1) = 0
read(4, "3", 1) = 1
read(4, "F", 1) = 1
read(4, "\1", 1) = 1
read(4, "a", 1) = 1
read(4, "\250", 1) = 1
--- {si_signo=SIGBUS, si_code=SI_KERNEL, si_addr=0} (Bus error) ---
+++ killed by SIGBUS +++
Bus error
root@fritz:/#
Schau im Internet nach, wie bzw. wann die Fehlermeldung "Bus error" entsteht. Auf meiner 7240 bekomme ich diese Fehlermeldung nicht. Evtl. kann/muss am source code des cw2300, für deine 7170 etwas gepatcht werden. Hast Du evtl. eine 2. Box?Nur das Programm cw2300 produziert Fehler, auch wenn es im Flash platziert und mit/ohne Parametern ausgeführt wird.
Was kann man noch tun um cw2300 auch zum laufen zu bekommen?
Schau im Internet nach, wie bzw. wann die Fehlermeldung "Bus error" entsteht. Auf meiner 7240 bekomme ich diese Fehlermeldung nicht. Evtl. kann/muss am source code des cw2300, für deine 7170 etwas gepatcht werden. Hast Du evtl. eine 2. Box?
Ja, ... verstehe. Nicht aufgeben. Evtl. die Entwickler (cw2300) kontaktieren: Kenneth Lavrsen und/oder Randy MillerWas mich wurmt ist, das fetch ohne murren läuft aber cw 2300 das Auslesen zwar gebacken bekommt, aber die Werte nicht ins inet schafft.
http://www.lavrsen.dk/
Email: [email protected]
http://www.lavrsen.dk/foswiki/bin/view/Open2300/WebHome
freetz@freetz-linux:~/freetz-devel_r9291$ make open2300-precompiled
cmd() { PATH="/home/freetz/freetz-devel_r9291/toolchain/build/mipsel_gcc-4.6.3_uClibc-0.9.29/mipsel-linux-uclibc/bin:/home/freetz/freetz-devel_r9291/toolchain/build/mipsel_gcc-3.4.6/mipsel-unknown-linux-gnu/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" LD_RUN_PATH="/usr/lib/freetz" make -j2 "$@" || { printf "\n\\033[33m%s\\033[m\n" "ERROR: Build failed."; exit 1; } }; if [ -e source/.echo_item_start -a ! -e source/.echo_item_build ]; then echo -n "building... "; touch source/.echo_item_build; fi; cmd -C source/target-mipsel_uClibc-0.9.29/open2300-1.10 \
CC="/home/freetz/freetz-devel_r9291/toolchain/build/mipsel_gcc-4.6.3_uClibc-0.9.29/mipsel-linux-uclibc/bin/mipsel-linux-uclibc-gcc" \
CFLAGS="-march=4kc -Os -pipe -Wa,--trap -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DVERSION="1.10" "
make[1]: Betrete Verzeichnis '/home/freetz/freetz-devel_r9291/source/target-mipsel_uClibc-0.9.29/open2300-1.10'
make[1]: Für das Ziel »all« ist nichts zu tun.
make[1]: Verlasse Verzeichnis '/home/freetz/freetz-devel_r9291/source/target-mipsel_uClibc-0.9.29/open2300-1.10'
mkdir -p packages/target-mipsel_uClibc-0.9.29/open2300-1.10/root/usr/bin/; cp source/target-mipsel_uClibc-0.9.29/open2300-1.10/linux2300 packages/target-mipsel_uClibc-0.9.29/open2300-1.10/root/usr/bin/linux2300; /home/freetz/freetz-devel_r9291/toolchain/build/mipsel_gcc-4.6.3_uClibc-0.9.29/mipsel-linux-uclibc/bin/mipsel-linux-uclibc-strip --remove-section={.comment,.note,.pdr} packages/target-mipsel_uClibc-0.9.29/open2300-1.10/root/usr/bin/linux2300;
cp: Aufruf von stat für »source/target-mipsel_uClibc-0.9.29/open2300-1.10/linux2300“ nicht möglich: Datei oder Verzeichnis nicht gefunden
/home/freetz/freetz-devel_r9291/toolchain/build/mipsel_gcc-4.6.3_uClibc-0.9.29/mipsel-linux-uclibc/bin/mipsel-linux-uclibc-strip: 'packages/target-mipsel_uClibc-0.9.29/open2300-1.10/root/usr/bin/linux2300': No such file
make: *** [packages/target-mipsel_uClibc-0.9.29/open2300-1.10/root/usr/bin/linux2300] Fehler 1
freetz@freetz-linux:~/freetz-devel_r9291$
Ja, mit einem Patch. Poste mal den Link, wo man diese Dateien im Internet finden kann.Eine Idee wie ich diese Dateien auch auf die Box Bekomme?
####### Makefile for open2300 - manually generated
#
# Starting from v 1.2 all user parameters are stored in a config file
# Default locations are
# 1. Path to config file including filename given as parameter
# 2. ./open2300.conf
# 3. /usr/local/etc/open2300.conf
# 4. /etc/open2300.conf
#
# This makefile is made for Linux.
# For Windows version modify the CC_LDFLAG by adding a -lwsock32
#
# You may want to adjust the 3 directories below
prefix = /usr/local
exec_prefix = ${prefix}
bindir = ${exec_prefix}/bin
#########################################
CC = gcc
OBJ = open2300.o rw2300.o linux2300.o win2300.o
LOGOBJ = log2300.o rw2300.o linux2300.o win2300.o
FETCHOBJ = fetch2300.o rw2300.o linux2300.o win2300.o
WUOBJ = wu2300.o rw2300.o linux2300.o win2300.o
CWOBJ = cw2300.o rw2300.o linux2300.o win2300.o
DUMPOBJ = dump2300.o rw2300.o linux2300.o win2300.o
HISTOBJ = history2300.o rw2300.o linux2300.o win2300.o
HISTLOGOBJ = histlog2300.o rw2300.o linux2300.o win2300.o
DUMPBINOBJ = bin2300.o rw2300.o linux2300.o win2300.o
XMLOBJ = xml2300.o rw2300.o linux2300.o win2300.o
PGSQLOBJ = pgsql2300.o rw2300.o linux2300.o win2300.o
LIGHTOBJ = light2300.o rw2300.o linux2300.o win2300.o
INTERVALOBJ = interval2300.o rw2300.o linux2300.o win2300.o
MINMAXOBJ = minmax2300.o rw2300.o linux2300.o win2300.o
VERSION = 1.10
CFLAGS = -Wall -O3 -DVERSION=\"$(VERSION)\"
CC_LDFLAGS = -lm
CC_WINFLAG =
# For Windows - comment the two line above and un-comment the two lines below.
#CC_LDFLAGS = -lm -lwsock32
#CC_WINFLAG = -mwindows
INSTALL = install
####### Build rules
all: open2300 dump2300 log2300 fetch2300 wu2300 cw2300 history2300 histlog2300 bin2300 xml2300 light2300 interval2300 minmax2300
open2300 : $(OBJ)
$(CC) $(CFLAGS) -o $@ $(OBJ) $(CC_LDFLAGS)
dump2300 : $(DUMPOBJ)
$(CC) $(CFLAGS) -o $@ $(DUMPOBJ) $(CC_LDFLAGS)
log2300 : $(LOGOBJ)
$(CC) $(CFLAGS) -o $@ $(LOGOBJ) $(CC_LDFLAGS) $(CC_WINFLAG)
fetch2300 : $(FETCHOBJ)
$(CC) $(CFLAGS) -o $@ $(FETCHOBJ) $(CC_LDFLAGS)
wu2300 : $(WUOBJ)
$(CC) $(CFLAGS) -o $@ $(WUOBJ) $(CC_LDFLAGS) $(CC_WINFLAG)
cw2300 : $(CWOBJ)
$(CC) $(CFLAGS) -o $@ $(CWOBJ) $(CC_LDFLAGS) $(CC_WINFLAG)
history2300 : $(HISTOBJ)
$(CC) $(CFLAGS) -o $@ $(HISTOBJ) $(CC_LDFLAGS)
histlog2300 : $(HISTLOGOBJ)
$(CC) $(CFLAGS) -o $@ $(HISTLOGOBJ) $(CC_LDFLAGS) $(CC_WINFLAG)
bin2300 : $(DUMPBINOBJ)
$(CC) $(CFLAGS) -o $@ $(DUMPBINOBJ) $(CC_LDFLAGS)
xml2300 : $(XMLOBJ)
$(CC) $(CFLAGS) -o $@ $(XMLOBJ) $(CC_LDFLAGS) $(CC_WINFLAG)
mysql2300:
$(CC) $(CFLAGS) -o mysql2300 mysql2300.c rw2300.c linux2300.c $(CC_LDFLAGS) $(CC_WINFLAG) -I/usr/include/mysql -L/usr/lib/mysql -lmysqlclient
pgsql2300: $(PGSQLOBJ)
$(CC) $(CFLAGS) -o $@ $(PGSQLOBJ) $(CC_LDFLAGS) $(CC_WINFLAG) -I/usr/include/pgsql -L/usr/lib/pgsql -lpq
light2300: $(LIGHTOBJ)
$(CC) $(CFLAGS) -o $@ $(LIGHTOBJ) $(CC_LDFLAGS)
interval2300: $(INTERVALOBJ)
$(CC) $(CFLAGS) -o $@ $(INTERVALOBJ) $(CC_LDFLAGS)
minmax2300: $(MINMAXOBJ)
$(CC) $(CFLAGS) -o $@ $(MINMAXOBJ) $(CC_LDFLAGS) $(CC_WINFLAG)
install:
mkdir -p $(bindir)
$(INSTALL) open2300 $(bindir)
$(INSTALL) dump2300 $(bindir)
$(INSTALL) log2300 $(bindir)
$(INSTALL) fetch2300 $(bindir)
$(INSTALL) wu2300 $(bindir)
$(INSTALL) cw2300 $(bindir)
$(INSTALL) histlog2300 $(bindir)
$(INSTALL) xml2300 $(bindir)
$(INSTALL) light2300 $(bindir)
$(INSTALL) interval2300 $(bindir)
$(INSTALL) minmax2300 $(bindir)
uninstall:
rm -f $(bindir)/open2300 $(bindir)/dump2300 $(bindir)/log2300 $(bindir)/fetch2300 $(bindir)/wu2300 $(bindir)/cw2300 $(bindir)/xml2300 $(bindir)/light2300 $(bindir)/interval2300 $(bindir)/minmax2300
clean:
rm -f *~ *.o open2300 dump2300 log2300 fetch2300 wu2300 cw2300 history2300 histlog2300 bin2300 xml2300 mysql2300 pgsql2300 light2300 interval2300 minmax2300
cleanexe:
rm -f *~ *.o open2300.exe dump2300.exe log2300.exe fetch2300.exe wu2300.exe cw2300.exe history2300.exe histlog2300.exe bin2300.exe xml2300.exe mysql2300.exe pgsql2300.exe light2300.exe interval2300.exe minmax2300.exe
In der Makefile-Datei für open2300, findest Du u. a. auch Folgendes:die Dateien sind als .c und .h Dateien im source Ordner schon vorhanden.
Nur werden diese wohl irgendwie nicht mit kompiliert.
OBJ = open2300.o rw2300.o linux2300.o win2300.o
LOGOBJ = log2300.o rw2300.o linux2300.o win2300.o
FETCHOBJ = fetch2300.o rw2300.o linux2300.o win2300.o
WUOBJ = wu2300.o rw2300.o linux2300.o win2300.o
CWOBJ = cw2300.o rw2300.o linux2300.o win2300.o
DUMPOBJ = dump2300.o rw2300.o linux2300.o win2300.o
HISTOBJ = history2300.o rw2300.o linux2300.o win2300.o
HISTLOGOBJ = histlog2300.o rw2300.o linux2300.o win2300.o
DUMPBINOBJ = bin2300.o rw2300.o linux2300.o win2300.o
XMLOBJ = xml2300.o rw2300.o linux2300.o win2300.o
PGSQLOBJ = pgsql2300.o rw2300.o linux2300.o win2300.o
LIGHTOBJ = light2300.o rw2300.o linux2300.o win2300.o
INTERVALOBJ = interval2300.o rw2300.o linux2300.o win2300.o
MINMAXOBJ = minmax2300.o rw2300.o linux2300.o win2300.o
cw2300 : $(CWOBJ)
$(CC) $(CFLAGS) -o $@ $(CWOBJ) $(CC_LDFLAGS) $(CC_WINFLAG)