26

(9 odpowiedzi, napisanych Oprogramowanie / Software)

Witaj Cezary,
Tak nie mam problemu z zapisem, wszystkie skrypty i konfiguracja sieci są w rtr po reboocie.
Słuchaj na dobrą sprawę nie potrzebuje od niego za dużo, jak klepnać gateway z konsoli, route add gateway x.x.x.x/x nie działa, jak sie to wklepuje w OpenWRT.
Urządzenie ma robić jako  sterownik gpio, wymagam od niego tylko IP i ssh, reszta stoi na innej maszynie.
Dopisze sobie w rc.local żeby przypisywał adres i tyle...
Co do systemu to sam kompilowałem , myślę że sporo to wyjaśnia;)

pozdrawiam

27

(9 odpowiedzi, napisanych Oprogramowanie / Software)

dosyć dziwne to wszystko:
plik /etc/config/network:

root@OpenWrt:/# cat /etc/config/network
# Copyright (C) 2006 OpenWrt.org

config interface loopback
        option ifname   lo
        option proto    static
        option ipaddr   127.0.0.1
        option netmask  255.0.0.0

config interface lan
        option ifname   eth0

        option proto    static
        option ipaddr   192.168.2.36
        option netmask  255.255.255.0
        option gateway  192.168.2.1
root@OpenWrt:/#

ifconfig:

root@OpenWrt:/# ifconfig
eth0      Link encap:Ethernet  HWaddr 22:DA:E2:A8:86:2A
          inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:19 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1140 (1.1 KiB)  TX bytes:1043 (1.0 KiB)
          Interrupt:17

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

root@OpenWrt:/# mini_fo: using base directory: /

uci show network:

root@OpenWrt:/# uci show network
network.loopback=interface
network.loopback.ifname=lo
network.loopback.proto=static
network.loopback.ipaddr=127.0.0.1
network.loopback.netmask=255.0.0.0
network.lan=interface
network.lan.ifname=eth0
network.lan.proto=static
network.lan.ipaddr=192.168.2.36
network.lan.netmask=255.255.255.0
network.lan.gateway=192.168.2.1
root@OpenWrt:/#

co ciekawe jak wpisze z palca ifconfig eth0 192.168.2.36 - to działa.... Ma ktoś jakieś pomysły???

28

(9 odpowiedzi, napisanych Oprogramowanie / Software)

Witam,
rzeczywiście wyraziłem sie niefortunnie.. powinno być "po reboocie wstaje z adresem 192.168.1.1"

29

(9 odpowiedzi, napisanych Oprogramowanie / Software)

chodzi o to że ma nie wstawać z domyślnym adresem

30

(9 odpowiedzi, napisanych Oprogramowanie / Software)

Witam ,
konfiguracja ip znajduje sie w pliku /etc/config/network?

root@OpenWrt:~# cat /etc/config/network
# Copyright (C) 2006 OpenWrt.org

config interface loopback
   option ifname        lo
   option proto static
   option ipaddr        127.0.0.1
   option netmask       255.0.0.0

config interface lan
   option ifname        eth0
   option type  bridge
   option proto static
   option ipaddr        192.168.2.36
   option netmask       255.255.255.0

Router po resecie ma domyślny adres ip tj. 192.168.1.1, wie ktoś dlaczego?

Witam, możecie polecić jakiś rtr z 5 portami gigabitowymi i gpio łatwym do wyprowadzenia?oczywiście pod openwrt;).
zależało by mi na tym żeby porty ethernet były ekranowane

dzięki

32

(3 odpowiedzi, napisanych Oprogramowanie / Software)

Cezary , chyba coś schrzaniłem, tylko nie  bardzo wiem gdzie i jak temu zapobiec
więc tak , odpalam knopixa z livecd, odpalałem też ubuntu live , oras dsl żeby wykluczyć problem z dystrybucją. Pobieram plik  z downloads.openwrt.org :
http://downloads.openwrt.org/attitude_a … xt4.img.gz
lub
http://downloads.openwrt.org/backfire/1 … xt2.img.gz - żeby wykluczyć uszkodzony plik

karte cf  mam jako /dev/sda
uruchamiam fdiska - sprawdzam -  nie mam żadnej partycji,
gzip -d openwrt-x86-generic-rootfs-ext4.img.gz
dd if=/openwrt-x86-generic-rootfs-ext4.img.gz of=/dev/sda
mieli coś wypluwa że skopiowało .... bloków
no i niby powinno być, na terminalu kiedyś instalowałem i działało, uruchamiam fdiska a tam żadnej partycji,
tylko informacja .... not contain a valid partition table..
dziwi mnie to bo kiedyś robiłem tak na terminalu i bez problemu wszystko chodziło.
myślałem że to wina czytnika kart na usb, ale użyłem przejściówki ide=>CF i to samo

Da rade ktoś podsunąć jakiś pomysł?gdzie błąd..

33

(3 odpowiedzi, napisanych Oprogramowanie / Software)

Witam,
wpadł mi w ręce watchguart firebox x700, chciałem zainstalować na nim openwrt, i tu zaczyna sie problem.
Oczywiście użyłem obrazu x86, przerzuciłem na kartę CF i wsadziłem do machiny, niestety nie startuje.
Poszperałem po internecie, i znalazłem że pakują na to pfsense, wię teoretycznie openwrt powinno startować.
poniżej przyklejam opis z innego forum jak zainstalować pfsense, martwi mnie końcówka odnośnie bootowania od 8 punktu.
Proszę o pomoc w instalacji, i ewentualne sugestie dlaczego nie startuje, problem w tym że konsola nic nie wypluwa...
da sie coś z tym zrobić?

1. Opened FB(Firebox), Removed CF Card
2. Hooked up a notebook drive to my machine, booted from Live CD (1.2 RC3)
3. 99 Install, accepted all defaults except chose embedded kernel
4. After install was done, took the drive and plugged it into the FB
5. Used the console cable that came with the FB and plugged it into the FB and my Com port
6. Opened HyperTerminal, new connection: BPS: 9600 / Data bits: 8 / Parity: None / Stop : 1 / Flow control: Hardware
7. Turned on FB and it immediately started booting FreeBSD
8. Couldn't mount drive(since installed on different machine), so it asks what you want to mount enter: ufs:ad2s1a
9. Boots up into pfSense just fine!
10. Get into the web interface, "Diagnostics", "Edit File"
11. Load "/etc/fstab"
12. Change the old drive information to the correct one(ad2s1a & ad2s1b).
13. Save (This should fix it asking what drive to mount on boot).

34

(5 odpowiedzi, napisanych Oprogramowanie / Software)

A jakie powinny być końce lini?
Wpisałem w plik na sztywno wartości i działa, ze skryptu niestety nie

pozdrawiam

35

(5 odpowiedzi, napisanych Oprogramowanie / Software)

0
3.50
21:47:02
Thermal State

dokładnie tak wygląda
a plik powstaje ze skryptu:

#!/bin/sh
echo 0 > /usr/local/etc/mrtg/thermal.log
digitemp_DS9097U -q -t 0 -c /home/aikon/adm/digitemp.conf | awk '{print $7}' >> /usr/local/etc/mrtg/thermal.log
date | awk '{print $5}' >> /usr/local/etc/mrtg/thermal.log
echo "Thermal State" >> /usr/local/etc/mrtg/thermal.log

36

(5 odpowiedzi, napisanych Oprogramowanie / Software)

w którym pliku? jeśli Ci chodzi o plik z którego rysuje to wygląda tak:

1365452103 -1 -1
1365452103 0 0 0 0
1365451502 0 0 0 0
1365451500 0 0 0 0
1365451200 0 0 0 0
1365450900 0 0 0 0
1365450600 0 0 0 0
1365450300 0 0 0 0
1365450000 0 0 0 0
1365449700 0 0 0 0
1365449400 0 0 0 0
1365449100 0 0 0 0
1365448800 0 0 0 0
1365448500 0 0 0 0
1365448200 0 0 0 0
1365447900 0 0 0 0
1365447600 0 0 0 0
1365447300 0 0 0 0
1365447000 0 0 0 0
1365446700 0 0 0 0
1365446400 0 0 0 0
....

próbowałem zmienić znak ` na ', ale też lipa

37

(5 odpowiedzi, napisanych Oprogramowanie / Software)

Witam, prosiłbym o pomoc w mrtg. Chciałbym żeby mrtg pobierał dane z pliku i je wyświetlał
plik:

 >cat thermal.log
0
3.50
21:47:02
Thermal State

jak widać plik ma cztery linie, oczywiście uprawnienia 777

mrtg.conf

# cat /etc/mrtg.cfg
######################################################################
# Multi Router Traffic Grapher -- Sample Configuration File
######################################################################
# This file is for use with mrtg-2.5.4c

# Global configuration
WorkDir: /var/www/mrtg
WriteExpires: Yes

Title[^]: Traffic Analysis for

# 128K leased line
# ----------------
#Title[leased]: a 128K leased line
#PageTop[leased]: <H1>Our 128K link to the outside world</H1>
#Target[leased]: 1:public@router.localnet
#MaxBytes[leased]: 16000


Target[thermal]: `/bin/cat /usr/local/etc/mrtg/thermal.log`
Pagetop[thermal]: <h1>Thermal State in My Town</h1>
Title[thermal]: Thermal State
PNGTitle[thermal]: Thermal State in Server Room
MaxBytes[thermal]: 50
AbsMax[thermal]: 50
LegendI[thermal]: Outer
LegendO[thermal]: Inner
kMG[thermal]: C
Options[thermal]: nopercent,gauge,noinfo
YLegend[thermal]: Temp, C
ShortLegend[thermal]:
Legend1[thermal]: external
Legend2[thermal]: internal

niestety, mrtg ciągle zero, natomiast log wywala

2013-04-08 21:45:02: ERROR: Target[thermal][_OUT_] ' $target->[0]{$mode} ' did not eval into defined data
2013-04-08 21:50:02: WARNING: Problem with External get '/bin/cat /usr/local/etc/mrtg/thermal.log':
   Expected a Number for 'out' but nothing'

pomysły?

38

(8 odpowiedzi, napisanych Oprogramowanie / Software)

ja mam przekaźniki na backfire, jeśli sie przesiądziesz to z checią pomogę;)

39

(62 odpowiedzi, napisanych Oprogramowanie / Software)

znalazłem to w /sys/bus/usb/devices/2-2/serial, drugi jest w /sys/bus/usb/devices/4-1/serial, jak to powiązać?

40

(62 odpowiedzi, napisanych Oprogramowanie / Software)

tak , przedstawiają sie :

T:  Bus=02 Lev=01 Prnt=01 Port=01 Cnt=02 Dev#=  3 Spd=12   MxCh= 0
D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=0403 ProdID=6001 Rev= 6.00
S:  Manufacturer=MERA-PROJEKT
S:  Product=USB <-> 1Wire (MP00202)
S:  SerialNumber=MPVYIUVZ
C:* #Ifs= 1 Cfg#= 1 Atr=a0 MxPwr=500mA
I:* If#= 0 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=ftdi_sio
E:  Ad=81(I) Atr=02(Bulk) MxPS=  64 Ivl=0ms
E:  Ad=02(O) Atr=02(Bulk) MxPS=  64 Ivl=0ms

T:  Bus=04 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  2 Spd=12   MxCh= 0
D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=0403 ProdID=6001 Rev= 6.00
S:  Manufacturer=FTDI
S:  Product=FT232R USB UART
S:  SerialNumber=A400EBB2
C:* #Ifs= 1 Cfg#= 1 Atr=a0 MxPwr= 90mA
I:* If#= 0 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=ftdi_sio
E:  Ad=81(I) Atr=02(Bulk) MxPS=  64 Ivl=0ms
E:  Ad=02(O) Atr=02(Bulk) MxPS=  64 Ivl=0ms

hmm, znaczy skrypt trzeba zmodyfikować..

41

(62 odpowiedzi, napisanych Oprogramowanie / Software)

ok,działa, ale mam dwa urządzenia po ftdi i mają taki sam "PRODUCT",da się odczytać nr seryjny, bo w plik.txt nie ma takich opcji?

42

(62 odpowiedzi, napisanych Oprogramowanie / Software)

nie, zrobiłem dokładnie tak:

cat /etc/hotplug.d/usb/10-serial
#!/bin/sh
echo "----" > /tmp/plik.txt
env >> /tmp/plik.txt

43

(62 odpowiedzi, napisanych Oprogramowanie / Software)

Cezary, według poradnika zrobiłem wsio, natomiast nie wpisują mi sie do pliku potrzebne wartości.
to plik.txt

~# cat /tmp/plik.txt
----
CONFIG_cfg02e48a_TYPE=system
USER=root
ACTION=add
klogconloglevel=
zonename=Europe/Warsaw
HOME=/
OLDPWD=/
SEQNUM=1024
CONFIG_cfg02e48a_timezone=CET-1CEST,M3.5.0,M10.5.0/3
CONFIG_ntp_server_LENGTH=4
HOTPLUG_TYPE=usb
CONFIG_ntp_server=0.openwrt.pool.ntp.org 1.openwrt.pool.ntp.org 2.openwrt.pool.ntp.org 3.openwrt.pool.ntp.org
DEVPATH=/devices/pci0000:00/0000:00:10.0/usb2/2-2/2-2:1.0
LOGNAME=root
DEVICENAME=2-2:1.0
TERM=vt102
SUBSYSTEM=usb
CONFIG_ntp_TYPE=timeserver
CONFIG_NUM_SECTIONS=2
PATH=/bin:/sbin:/usr/bin:/usr/sbin
CONFIG_LIST_STATE=ntp_server
MODALIAS=usb:v0403p6001d0600dc00dsc00dp00icFFiscFFipFF
foreground=0
DRIVER=ftdi_sio
SHELL=/bin/sh
TYPE=0/0/0
CONFIG_ntp_server_ITEM1=0.openwrt.pool.ntp.org
CONFIG_ntp_server_ITEM2=1.openwrt.pool.ntp.org
CONFIG_ntp_server_ITEM3=2.openwrt.pool.ntp.org
INTERFACE=255/255/255
PRODUCT=403/6001/600
CONFIG_ntp_server_ITEM4=3.openwrt.pool.ntp.org
CONFIG_cfg02e48a_zonename=Europe/Warsaw
CONFIG_SECTION=ntp
buffersize=
PWD=/etc/modules.d
DEVTYPE=usb_interface
CONFIG_cfg02e48a_cronloglevel=8
CONFIG_cfg02e48a_hostname=TipSter
CONFIG_cfg02e48a_conloglevel=8
CONFIG_SECTIONS=cfg02e48a ntp
DEVICE=/proc/bus/usb/002/003

  a to część  dmesg

[    2.192810] ata1: PATA max UDMA/133 cmd 0x1f0 ctl 0x3f6 bmdma 0xde00 irq 14
[    2.213769] ata2: PATA max UDMA/133 cmd 0x170 ctl 0x376 bmdma 0xde08 irq 15
[    2.235675] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    2.255437] ehci_hcd 0000:00:10.4: EHCI Host Controller
[    2.271237] ehci_hcd 0000:00:10.4: new USB bus registered, assigned bus number 1
[    2.293594] ehci_hcd 0000:00:10.4: irq 10, io mem 0xf6021000
[    2.330054] ehci_hcd 0000:00:10.4: USB 2.0 started, EHCI 1.00
[    2.347822] hub 1-0:1.0: USB hub found
[    2.359165] hub 1-0:1.0: 8 ports detected
[    2.371467] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    2.390432] uhci_hcd: USB Universal Host Controller Interface driver
[    2.409677] uhci_hcd 0000:00:10.0: UHCI Host Controller
[    2.425448] uhci_hcd 0000:00:10.0: new USB bus registered, assigned bus number 2
[    2.447780] uhci_hcd 0000:00:10.0: irq 11, io base 0x0000df00
[    2.465708] ata1.00: CFA: Sony NCFD4G, 20071016, max UDMA/66
[    2.482767] ata1.00: 7831152 sectors, multi 0: LBA
[    2.497478] ata1.00: limited to UDMA/33 due to 40-wire cable
[    2.514850] hub 2-0:1.0: USB hub found
[    2.526188] hub 2-0:1.0: 2 ports detected
[    2.538424] uhci_hcd 0000:00:10.1: UHCI Host Controller
[    2.554204] uhci_hcd 0000:00:10.1: new USB bus registered, assigned bus number 3
[    2.576530] uhci_hcd 0000:00:10.1: irq 11, io base 0x0000e000
[    2.594465] hub 3-0:1.0: USB hub found
[    2.605801] hub 3-0:1.0: 2 ports detected
[    2.618031] uhci_hcd 0000:00:10.2: UHCI Host Controller
[    2.633809] uhci_hcd 0000:00:10.2: new USB bus registered, assigned bus number 4
[    2.656113] uhci_hcd 0000:00:10.2: irq 10, io base 0x0000e100
[    2.673919] ata1.00: configured for UDMA/33
[    2.686785] scsi 0:0:0:0: Direct-Access     ATA      Sony NCFD4G      2007 PQ: 0 ANSI: 5
[    2.711487] hub 4-0:1.0: USB hub found
[    2.722828] hub 4-0:1.0: 2 ports detected
[    2.735080] uhci_hcd 0000:00:10.3: UHCI Host Controller
[    2.750838] uhci_hcd 0000:00:10.3: new USB bus registered, assigned bus number 5
[    2.773171] uhci_hcd 0000:00:10.3: irq 10, io base 0x0000e200
[    2.791223] sd 0:0:0:0: [sda] 7831152 512-byte logical blocks: (4.00 GB/3.73 GiB)
[    2.814262] sd 0:0:0:0: [sda] Write Protect is off
[    2.828728] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
[    2.828932] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[    2.856746] hub 5-0:1.0: USB hub found
[    2.868089] hub 5-0:1.0: 2 ports detected
[    2.880971] Initializing USB Mass Storage driver...
[    2.895983]  sda: sda1 sda2
[    2.904656] usbcore: registered new interface driver usb-storage
[    2.922764] USB Mass Storage support registered.
[    2.937300] sd 0:0:0:0: [sda] Attached SCSI removable disk
[    2.954400] i8042: PNP: No PS/2 controller found. Probing ports directly.
[    2.986807] serio: i8042 KBD port at 0x60,0x64 irq 1
[    3.001778] serio: i8042 AUX port at 0x60,0x64 irq 12
[    3.017387] mousedev: PS/2 mouse device common for all mice
[    3.034566] rtc_cmos 00:05: RTC can wake from S4
[    3.048837] rtc_cmos 00:05: rtc core: registered rtc_cmos as rtc0
[    3.067240] rtc0: alarms up to one year, y3k, 242 bytes nvram
[    3.085130] cpuidle: using governor ladder
[    3.097599] cpuidle: using governor menu
[    3.109790] TCP cubic registered
[    3.119553] NET: Registered protocol family 17
[    3.133041] Bridge firewalling registered
[    3.145161] 8021q: 802.1Q VLAN Support v1.8
[    3.157830] Using IPI Shortcut mode
[    3.169017] rtc_cmos 00:05: setting system clock to 2013-04-04 20:23:04 UTC (1365106984)
[    3.193884] usb 1-6: new high-speed USB device number 4 using ehci_hcd
[    3.216388] EXT4-fs (sda2): mounted filesystem without journal. Opts: (null)
[    3.237673] VFS: Mounted root (ext4 filesystem) readonly on device 8:2.
[    3.257639] Freeing unused kernel memory: 316k freed
[    3.378898] scsi4 : usb-storage 1-6:1.2
[    3.392502] scsi5 : usb-storage 1-6:1.3
[    3.680102] usb 2-1: new low-speed USB device number 2 using uhci_hcd
[    4.200066] usb 2-2: new full-speed USB device number 3 using uhci_hcd
[    4.393469] scsi 4:0:0:0: CD-ROM            HUAWEI   Mass Storage     2.31 PQ: 0 ANSI: 2
[    4.421477] scsi 5:0:0:0: Direct-Access     HUAWEI   MMC Storage      2.31 PQ: 0 ANSI: 2
[    4.450442] sd 5:0:0:0: [sdb] 967680 512-byte logical blocks: (495 MB/472 MiB)
[    4.474183] sd 5:0:0:0: [sdb] Write Protect is off
[    4.488700] sd 5:0:0:0: [sdb] Mode Sense: 0f 0e 00 00
[    4.490077] sd 5:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    4.534587]  sdb:
[    4.553820] sd 5:0:0:0: [sdb] Attached SCSI removable disk
[    6.682202] EXT4-fs (sda2): re-mounted. Opts: (null)
[    6.710516] EXT4-fs (sda1): mounted filesystem without journal. Opts: (null)
[    6.956509] natsemi dp8381x driver, version 2.1, Sept 11, 2006
[    6.956515]   originally by Donald Becker <becker@scyld.com>
[    6.956520]   2.4.x kernel port by Jeff Garzik, Tjeerd Mulder
[    7.018049] PPP generic driver version 2.4.2
[    7.044814] e1000: Intel(R) PRO/1000 Network Driver - version 7.3.21-k8-NAPI
[    7.066060] e1000: Copyright (c) 1999-2006 Intel Corporation.
[    7.097117] ip_tables: (C) 2000-2006 Netfilter Core Team
[    7.158776] NET: Registered protocol family 24
[    7.179487] nf_conntrack version 0.5.0 (14127 buckets, 56508 max)
[    7.273522] 8139too: 8139too Fast Ethernet driver 0.9.28
[    7.295523] e100: Intel(R) PRO/100 Network Driver, 3.5.24-k2-NAPI
[    7.313911] e100: Copyright(c) 1999-2006 Intel Corporation
[    7.339437] ne2k-pci.c:v1.03 9/22/2003 D. Becker/P. Gortmaker
[    7.362838] pcnet32: pcnet32.c:v1.35 21.Apr.2008 tsbogend@alpha.franken.de
[    7.395635] sis900.c: v1.08.10 Apr. 2 2006
[    7.425146] via_rhine: v1.10-LK1.5.0 2010-10-09 Written by Donald Becker
[    7.445366] via_rhine: Broken BIOS detected, avoid_D3 enabled
[    7.467051] via-rhine 0000:00:12.0: eth0: VIA Rhine II at 0xf6020000, 00:e0:c5:5f:41:11, IRQ 11
[    7.494032] via-rhine 0000:00:12.0: eth0: MII PHY found at address 1, status 0x786d advertising 05e1 Link 45e1
[    7.541354] usbcore: registered new interface driver usbserial
[    7.558983] USB Serial support registered for generic
[    7.574317] usbcore: registered new interface driver usbserial_generic
[    7.593968] usbserial: USB Serial Driver core
[    7.612267] usbcore: registered new interface driver ums-alauda
[    7.634051] usbcore: registered new interface driver ums-cypress
[    7.656783] usbcore: registered new interface driver ums-datafab
[    7.679141] usbcore: registered new interface driver ums-freecom
[    7.701777] usbcore: registered new interface driver ums-isd200
[    7.724034] usbcore: registered new interface driver ums-jumpshot
[    7.746658] usbcore: registered new interface driver ums-karma
[    7.768957] usbcore: registered new interface driver ums-sddr09
[    7.791470] usbcore: registered new interface driver ums-sddr55
[    7.813927] usbcore: registered new interface driver ums-usbat
[    7.844464] USB Serial support registered for FTDI USB Serial Device
[    7.864109] ftdi_sio 2-2:1.0: FTDI USB Serial Device converter detected
[    7.884096] usb 2-2: Detected FT232RL
[    7.895172] usb 2-2: Number of endpoints 2
[    7.907549] usb 2-2: Endpoint 1 MaxPacketSize 64
[    7.921484] usb 2-2: Endpoint 2 MaxPacketSize 64
[    7.935421] usb 2-2: Setting MaxPacketSize 64
[    7.951162] usb 2-2: FTDI USB Serial Device converter now attached to ttyUSB0
[    7.972707] usbcore: registered new interface driver ftdi_sio
[    7.990041] ftdi_sio: v1.6.0:USB FTDI Serial Converters Driver
[    8.014261] USB Serial support registered for GSM modem (1-port)
[    8.032618] option 1-6:1.0: GSM modem (1-port) converter detected
[    8.051218] usb 1-6: GSM modem (1-port) converter now attached to ttyUSB1
[    8.071693] option 1-6:1.1: GSM modem (1-port) converter detected
[    8.090148] usb 1-6: GSM modem (1-port) converter now attached to ttyUSB2
[    8.110801] usbcore: registered new interface driver option
[    8.127589] option: v0.7.2:USB Driver for GSM modems
[    8.163515] input: USB USB Keykoard as /devices/pci0000:00/0000:00:10.0/usb2/2-1/2-1:1.0/input/input2
[    8.191426] generic-usb 0003:1A2C:0023.0001: input: USB HID v1.10 Keyboard [USB USB Keykoard] on usb-0000:00:10.0-1/input0
[   18.231970] generic-usb 0003:1A2C:0023.0002: usb_submit_urb(ctrl) failed: -1
[   18.241939] generic-usb 0003:1A2C:0023.0002: timeout initializing reports
[   18.274029] input: USB USB Keykoard as /devices/pci0000:00/0000:00:10.0/usb2/2-1/2-1:1.1/input/input3
[   18.301888] generic-usb 0003:1A2C:0023.0002: input: USB HID v1.10 Device [USB USB Keykoard] on usb-0000:00:10.0-1/input1
[   18.334648] usbcore: registered new interface driver usbhid
[   18.351449] usbhid: USB HID core driver
[   19.683538] device eth0 entered promiscuous mode
[   19.699498] br-lan: port 1(eth0) entered forwarding state
[   19.715809] br-lan: port 1(eth0) entered forwarding state
[   21.710076] br-lan: port 1(eth0) entered forwarding state

jak widać jest więcej niż jedno urządzenie usb podpięte, a w pliku  plik.txt nie ma wpisów....coś nie tak zrobiłem?

44

(25 odpowiedzi, napisanych Oprogramowanie / Software)

Cezary napisał/a:

...... albo sam przekompiluj php.

właśnie skupiam nad tym, ale marne szanse

45

(25 odpowiedzi, napisanych Oprogramowanie / Software)

Widać nie jest mi dane to uruchomić..;)

46

(25 odpowiedzi, napisanych Oprogramowanie / Software)

Cezary, jak jest szansa że plik /usr/lib/php/gd.so nada sie od innej architektury? Jeśli duża podeślesz mi pliczek od ar71..?zawsze spróbować można;)

pozdrawiam

47

(25 odpowiedzi, napisanych Oprogramowanie / Software)

widziałem identyczny ticket https://dev.openwrt.org/attachment/tick … output.txt
chyba trzeba zgłosić...dziękuje za chęci Cezary.

pozdrawiam

48

(25 odpowiedzi, napisanych Oprogramowanie / Software)

no to ciekawostka.. masz jeszcze jakiś pomysł, kurde zawsze wsio pod górkę;)

49

(25 odpowiedzi, napisanych Oprogramowanie / Software)

root@tips_srv:~# opkg install libiconv
Package libiconv (7) installed in root is up to date.

to mam zainstalowane:

root@tips_srv:~# opkg list-installed
base-files - 117-r34185
busybox - 1.19.4-5
digitemp - 3.6.0-5
digitemp-usb - 3.6.0-5
dnsmasq - 2.62-2
dropbear - 2011.54-2
firewall - 2-53
glib2 - 2.26.1-3
gnokii - 0.6.21-3
grub - 0.97-3
hotplug2 - 1.0-beta-4
htop - 1.0.1-1
iptables - 1.4.10-4
jshn - 2012-10-31.1-407f7a0bb3272ee03f2eb05391ce8b94238fa92e
kernel - 3.3.8-1-fa7af62e0ef1d529ecb7f7efccc706c3
kmod-3c59x - 3.3.8-1
kmod-8139too - 3.3.8-1
kmod-e100 - 3.3.8-1
kmod-e1000 - 3.3.8-1
kmod-hid - 3.3.8-1
kmod-input-core - 3.3.8-1
kmod-input-evdev - 3.3.8-1
kmod-ipt-conntrack - 3.3.8-1
kmod-ipt-core - 3.3.8-1
kmod-ipt-nat - 3.3.8-1
kmod-ipt-nathelper - 3.3.8-1
kmod-lib-crc-ccitt - 3.3.8-1
kmod-libphy - 3.3.8-1
kmod-natsemi - 3.3.8-1
kmod-ne2k-pci - 3.3.8-1
kmod-nls-base - 3.3.8-1
kmod-pcnet32 - 3.3.8-1
kmod-ppp - 3.3.8-1
kmod-pppoe - 3.3.8-1
kmod-pppox - 3.3.8-1
kmod-r8169 - 3.3.8-1
kmod-scsi-core - 3.3.8-1
kmod-sis900 - 3.3.8-1
kmod-tg3 - 3.3.8-1
kmod-tun - 3.3.8-1
kmod-usb-core - 3.3.8-1
kmod-usb-hid - 3.3.8-1
kmod-usb-serial - 3.3.8-1
kmod-usb-serial-ftdi - 3.3.8-1
kmod-usb-serial-option - 3.3.8-1
kmod-usb-serial-wwan - 3.3.8-1
kmod-usb-storage - 3.3.8-1
kmod-usb-storage-extras - 3.3.8-1
kmod-via-rhine - 3.3.8-1
kmod-via-velocity - 3.3.8-1
libblobmsg-json - 2012-10-31.1-407f7a0bb3272ee03f2eb05391ce8b94238fa92e
libc - 0.9.33.2-1
libcurl - 7.23.1-1
libevent2 - 2.0.19-1
libgcc - 4.6-linaro-1
libiconv - 7
libip4tc - 1.4.10-4
libiwinfo - 36
libiwinfo-lua - 36
libjpeg - 6b-1
libjson - 0.9-2
liblua - 5.1.4-8
liblzo - 2.06-1
libminiupnpc - 1.6-1
libncurses - 5.7-5
libnl-tiny - 0.1-3
libopenssl - 1.0.1c-1
libpcre - 8.11-2
libpng - 1.2.46-2
libpthread - 0.9.33.2-1
librpc - 0.9.32-rc2-0a2179bbc0844928f2a0ec01dba93d9b5d6d41a7
librt - 0.9.33.2-1
libsqlite3 - 3071201-1
libubox - 2012-10-31.1-407f7a0bb3272ee03f2eb05391ce8b94238fa92e
libubus - 2012-06-01-a62e2f8c15a65efb1a82404d8f31e3bfc1cbe7d9
libubus-lua - 2012-06-01-a62e2f8c15a65efb1a82404d8f31e3bfc1cbe7d9
libuci - 2012-03-28.1-1
libuci-lua - 2012-03-28.1-1
libusb - 0.1.12-3
libusb-1.0 - 1.0.9-1
libxml2 - 2.7.8-2
libxtables - 1.4.10-4
lua - 5.1.4-8
luci - 0.11+svn9422-1
luci-app-firewall - 0.11+svn9422-1
luci-app-ntpc - 0.11+svn9422-1
luci-app-samba - 0.11+svn9422-1
luci-app-transmission - 0.11+svn9422-1
luci-i18n-english - 0.11+svn9422-1
luci-i18n-polish - 0.11+svn9422-1
luci-lib-core - 0.11+svn9422-1
luci-lib-ipkg - 0.11+svn9422-1
luci-lib-lmo - 0.11+svn9422-1
luci-lib-nixio - 0.11+svn9422-1
luci-lib-sys - 0.11+svn9422-1
luci-lib-web - 0.11+svn9422-1
luci-mod-admin-core - 0.11+svn9422-1
luci-mod-admin-full - 0.11+svn9422-1
luci-proto-core - 0.11+svn9422-1
luci-proto-ppp - 0.11+svn9422-1
luci-sgi-cgi - 0.11+svn9422-1
luci-theme-base - 0.11+svn9422-1
luci-theme-openwrt - 0.11+svn9422-1
mc - 4.7.5.3-2
mini-snmpd - 1.2b-7
mtd - 18.1
nano - 2.2.6-1
netifd - 2012-10-19-a9fd870450e82f31cba681651656276dfc1c39ac
ntpclient - 2007_365-4
openvpn - 2.2.2-2
opkg - 618-2
oscam - 8334-1
php5 - 5.4.5-3
php5-cgi - 5.4.5-3
php5-fastcgi - 5.4.5-3
php5-mod-ctype - 5.4.5-3
php5-mod-dom - 5.4.5-3
php5-mod-gd - 5.4.5-3
php5-mod-hash - 5.4.5-3
php5-mod-iconv - 5.4.5-3
php5-mod-json - 5.4.5-3
php5-mod-mbstring - 5.4.5-3
php5-mod-pdo - 5.4.5-3
php5-mod-pdo-sqlite - 5.4.5-3
php5-mod-session - 5.4.5-3
php5-mod-simplexml - 5.4.5-3
php5-mod-sqlite3 - 5.4.5-3
php5-mod-xml - 5.4.5-3
php5-mod-zip - 5.4.5-3
ppp - 2.4.5-7
ppp-mod-pppoe - 2.4.5-7
samba36-server - 3.6.5-2
terminfo - 5.7-5
transmission-daemon - 2.71-1
ubus - 2012-06-01-a62e2f8c15a65efb1a82404d8f31e3bfc1cbe7d9
ubusd - 2012-06-01-a62e2f8c15a65efb1a82404d8f31e3bfc1cbe7d9
uci - 2012-03-28.1-1
udev - 173-1
uhttpd - 2012-10-30-e57bf6d8bfa465a50eea2c30269acdfe751a46fd
zlib - 1.2.7-1
zoneinfo-core - 2011n-1

50

(25 odpowiedzi, napisanych Oprogramowanie / Software)

jest jednak problem

root@tips_srv:~# php-cgi phpinfo.php

php-cgi: symbol 'iconv_open': can't resolve symbol in lib '/usr/lib/php/gd.so'.
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/gd.so' - (null) in Un                                            known on line 0
Status: 404 Not Found
X-Powered-By: PHP/5.4.5
Content-type: text/html

No input file specified.