26

(12 odpowiedzi, napisanych Oprogramowanie / Software)

Witam serdecznie, naszło mnie żeby zrobić sobie super router domowy z dwoma lanami i czterema wanami - multiwan itd, ale nie mogę ustawić vlanów - router nie odpowiada na żadnym z portów - niewiem czy to przez config/network?
AA bez gui.


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.1'
    #option type 'bridge'
    option proto 'static'
    option ipaddr '192.168.8.31'
    option netmask '255.255.255.0'
    #option dns '192.168.1.1'

config interface 'lanb'
    option ifname 'eth0.3'
    #option type 'bridge'
    option proto 'static'
    option ipaddr '192.168.7.31'
    option netmask '255.255.255.0'
    #option dns '192.168.1.1'

config 'interface' 'wan'
    option 'ifname' 'eth1'
    option '_orig_ifname' 'eth1'
    option '_orig_bridge' 'false'
    option 'proto' 'static'
    option 'ipaddr' '192.168.9.31'
    option 'netmask' '255.255.255.0'
    option 'gateway' '192.168.9.68'
    option 'dns' '192.168.9.68'

config 'interface' 'wanb'
    option 'ifname' 'eth0.2'
    option 'proto' 'static'
    option 'netmask' '255.255.255.0'
    option 'ipaddr' '192.168.3.239'
    option 'gateway' '192.168.3.1'
    option 'dns' '193.59.116.1'

config interface 'wan3gp'
    option auto '1'
    option proto '3g'
    option device '/dev/ttyUSB0'
    option apn 'internet'
    option service 'umts'
    option mobile_isp 'Polska - Play Online'

config interface 'wan3ga'
    option auto '1'
    option proto '3g'
    option device '/dev/ttyUSB4'
    option apn 'internet'
    option service 'umts'
    option mobile_isp 'Polska - Aero2'


config switch
    option name 'eth0'
    #option reset '1'
    option enable_vlan '1'

config switch_vlan
    option device 'eth0'
    option vlan '1'
    option ports '0t 1 2'

config switch_vlan
    option device 'eth0'
    option vlan '2'
    option ports '0t 4'

config switch_vlan
    option device 'eth0'
    option vlan '3'
    option ports '0t 3'

Ponadto chcę mieć wlan w bridge z wanb - jako wan w trybie sta
config/wireless:


config wifi-device 'radio0'
    option type 'mac80211'
    option macaddr '54:e6:fc:b9:87:ae'
    option disabled '0'
    option htmode 'HT20'
    list ht_capab 'SHORT-GI-40'
    list ht_capab 'TX-STBC'
    list ht_capab 'RX-STBC1'
    list ht_capab 'DSSS_CCK-40'
    option noscan '1'
    option channel 'auto'
    option hwmode 'auto'

config wifi-iface 'ap_g'
    option device 'radio0'
    option mode 'sta'
    option disabled '0'
    option network 'wanb'
    option ssid 'ankv7'
    #option bssid '00:0c:42:69:57:80'
    option encryption 'none'
    option macaddr '00:19:e0:6d:b6:2f'


No i jeszcze moj - czy tak moze byc ?
etc/config/firewall:


config defaults
    option syn_flood '1'
    option input 'ACCEPT'
    option output 'ACCEPT'
    option forward 'REJECT'
    option drop_invalid '1'

config zone
    option name 'lan'
    option network 'lan lanb'
    option input 'ACCEPT'
    option output 'ACCEPT'
    option forward 'REJECT'

config zone
    option name 'wan'
    option network 'wan wanb wan3gp wan3ga'
    option input 'REJECT'
    option output 'ACCEPT'
    option forward 'REJECT'
    option masq '1'
    option mtu_fix '1'

config forwarding
    option src 'lan'
    option dest 'wan'

config 'forwarding'
    option src 'wan'
    option dest 'lan'

config rule
    option name 'Allow-DHCP-Renew'
    option src 'wan'
    option proto 'udp'
    option dest_port '68'
    option target 'ACCEPT'
    option family 'ipv4'

config rule
    option name 'Allow-Ping'
    option src 'wan'
    option proto 'icmp'
    option icmp_type 'echo-request'
    option family 'ipv4'
    option target 'ACCEPT'

config rule
    option name 'Allow-DHCPv6'
    option src 'wan'
    option proto 'udp'
    option src_ip 'fe80::/10'
    option src_port '547'
    option dest_ip 'fe80::/10'
    option dest_port '546'
    option family 'ipv6'
    option target 'ACCEPT'

config rule
    option name 'Allow-ICMPv6-Input'
    option src 'wan'
    option proto 'icmp'
    list icmp_type 'echo-request'
    list icmp_type 'echo-reply'
    list icmp_type 'destination-unreachable'
    list icmp_type 'packet-too-big'
    list icmp_type 'time-exceeded'
    list icmp_type 'bad-header'
    list icmp_type 'unknown-header-type'
    list icmp_type 'router-solicitation'
    list icmp_type 'neighbour-solicitation'
    list icmp_type 'router-advertisement'
    list icmp_type 'neighbour-advertisement'
    option limit '1000/sec'
    option family 'ipv6'
    option target 'ACCEPT'

config rule
    option name 'Allow-ICMPv6-Forward'
    option src 'wan'
    option dest '*'
    option proto 'icmp'
    list icmp_type 'echo-request'
    list icmp_type 'echo-reply'
    list icmp_type 'destination-unreachable'
    list icmp_type 'packet-too-big'
    list icmp_type 'time-exceeded'
    list icmp_type 'bad-header'
    list icmp_type 'unknown-header-type'
    option limit '1000/sec'
    option family 'ipv6'
    option target 'ACCEPT'

config include
    option path '/etc/firewall.user'

PAnowie please HELP bo mnie szlag trafi ....

marczelo napisał/a:

Witam widzę ze kolega  zrobił za to co ja niedługo będę robił chyba po niedzieli. ale nie za dużo troszkę zaznaczyłeś ? Może napisz poradnik jak chcesz i napisz jak u ciebie to chodzi big_smile i big_smile

No attitude adjustment skompilowalo sie niby z patchem do usb dla wr741nd - czyli tez do mojego 740n v2, jak bede mial chwilke to wgram i sprawdze czy dziala.


Backfire kompilowalem jakis czas temu z tym nalozonym patchem usb i dzialalo jak trzeba tj. korzystam z czytnika kart sd jako extroota, nie probowalem podlaczac modemow 3g itp, ale powinno dzialac o ile nie wymaga usb20.
Jedyny mankament to nie migaja diody na switchu podczs transmisji - bardzo dziwne, ale w niczym nie przeszkadza.

postaram sie napisac jakis poradnik, jak tylko poczuje sie w tym troszke pewniej smile, ew. moge podeslac wynik kompilacji jak ktos potrzebuje smile.

faktycznie, ale jestem glupi ... smile

Zabralem sie za kompilacje attitude adjustment - i mam problem !

make package/symlinks

konczy sie:

sitheek@debian32XEN:/opt/openwrt/attitude_adjustment$ make /package/symlinks V=s
Collecting package info: done
Collecting target info: done
Checking 'working-make'... ok.
Checking 'case-sensitive-fs'... ok.
Checking 'getopt'... ok.
Checking 'fileutils'... ok.
Checking 'working-gcc'... ok.
Checking 'working-g++'... ok.
Checking 'ncurses'... ok.
Checking 'zlib'... ok.
Checking 'gawk'... ok.
Checking 'unzip'... ok.
Checking 'bzip2'... ok.
Checking 'patch'... ok.
Checking 'perl'... ok.
Checking 'python'... ok.
Checking 'wget'... ok.
Checking 'git'... ok.
Checking 'gnutar'... ok.
Checking 'svn'... ok.
Checking 'gnu-find'... ok.
Checking 'getopt-extended'... ok.
Checking 'non-root'... ok.
make[1]: Entering directory `/opt/openwrt/attitude_adjustment'
make[1]: *** No rule to make target `/package/symlinks'.  Stop.
make[1]: Leaving directory `/opt/openwrt/attitude_adjustment'
make: *** [/package/symlinks] Error 2

Juz drugi raz od nowa pobralem z svn i dalej kiszka

Co robie zle ?

Witam serdecznie ! Czy na dzień dzisiejszy istnieją jakieś sterowniki umożliwiające  podłączenie się do bazy na mikrotiku działającym w 5 ghz w trybie nv2 TDMA?

Mój dostawca miał pomysł żeby to zaimplementować na swoim nadajniku, ale działa to tylko w tdma i mój ovislink wla 5000 ap tego nie widzi i nie zobaczy.
Myślałem żeby złożyć sobie zestaw z jakiegoś routerboardu 411 - ponoć działa z openwrt - martwi mnie tylko problem sterowników do karty sieciowej na minipci bo nie słyszałem czy obsługują tdma?

OK ! Sukces, konsole działają znakomicie na obydwu routerach MR 3420 i MR 3220.

W obydwu przypadkach trzeba było wstawić ten rezystor 10k pomiędzy pin 1 i pin 4. Używałem konwertera usb CA-42.

Czy taki port (po dorobieniu oczywiście na stałe konwertera na max232) można wykorzystać jako normalny rs - wyłączając jakoś tą konsolę ?

Czy jak ktoś po mistrzowsku jakimś sposobem uwali bootloader u-boot, to ma już tylko stylową podstawkę pod kwiatek ?
Nie zauważyłem tam na płycie pamięci flash takiej tsop 48 - jest tylko procek, chyba ram i chipset do radia. Jtaga też chyba brakuje ?

OK , jełopem jestem jak zwykle ja ..............

po wpisaniu na komputerze ipconfig /all okazało się że zainstalowało mi virtualna karte sieciowa Vmware Vmnet8 z adresem ocztwiście 192.168.1.1 i to ona odpowiada zamiast router.

Po podłączeniu routera do innego kompa oczywiście telnet i ssh działa jak powinno smile

Niech to będzie przestroga dla innych żeby nie zaczęli od dolutowania seriala jak ja smile

Apropos seriala, czy żeby się podłączyć to wystarczy taki kabelek konwertujący na usb jak do reanimacji dysków seagate (przez serial)?

Czy trzeba koniecznie wstawiać ten rezystor 10k pomiedzy 3,3v i pin 1 tak jak piszą na stronach wiki openwrt?

Na routerze uproszczonym mr3220 serial jest troche w innym miejscu, czy tak samo się go podłacza jak w mr3420 - rezystor 10k itd ?

Witam ! Chciałem uzyskać trochę miejsca na dodatkowe rzeczy typu cdc ether, 3ginfo i postanowiłem zrobić sobie obraz z samym backfire jako że kompilowałem jakiś czas temu dla TL-wr740n i WRT54gs.

Mając zrobionego imagebuildera dla ar71xx zrobiłem make image Profile=mr3420v1, tj. tym konfigiem predefiniowanym i szcześliwy zastąpiłem gargoyle pl nowym softem przez www bez zachowania plików konfiguracyjnych.

No i teraz router wstaje, odpowiada na pingi na 192.168.1.1, ale nie moge się zalogować ani przez telnet ani przez ssh - connection refused - i niestety tak samo w trybie failsafe !

Co mogło pójść nie tak?

Czy teraz pozostaje tylko dolutować serial?

34

(4 odpowiedzi, napisanych Oprogramowanie / Software)

OK, dzięki tak podejrzewałem. Pytanie tylko czy ktoś zna taki kod do tego modemu, czy próbować na chybił trafił i patrzeć co się dzieje ?

35

(4 odpowiedzi, napisanych Oprogramowanie / Software)

Mam Tplinka mr 3420 + hub usb + 2 modemy Huawei e353 u2 i huawei e173 u2, zrobiony multiwan  - postanowiłem spróbować przełączyc modemy w tryb NDIS i tutaj mam problem.

O ile z e173 u2 wystarczy wysłac komendę AT^U2DIAG=276 i dostajemy dwa dodatkowe interfejsy sterowane cdc_ether, to w przypadku e353 u2 jest dalej problem - po wysłaniu komendy AT^SETPORT="A1,A2;1,2,3,7,A1,A2", czyli chyba ustawienia domyślne dochodzą 2 interfejsy w gargoyle ale sterowane optionem??

Natomiast jak sie podłaczy do pc to instaluje dodatkową karte sieciową czyli NDIS jest dostepny?
Czy to może problem z usb_modeswitch (zły tryb)?

cat /proc/bus/usb/devices :

T:  Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=480 MxCh= 1
B:  Alloc=  3/800 us ( 0%), #Int=  4, #Iso=  0
D:  Ver= 2.00 Cls=09(hub  ) Sub=00 Prot=01 MxPS=64 #Cfgs=  1
P:  Vendor=1d6b ProdID=0002 Rev= 2.06
S:  Manufacturer=Linux 2.6.32.27 ehci_hcd
S:  Product=Atheros AR91xx built-in EHCI controller
S:  SerialNumber=ar71xx-ehci
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=  0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   4 Ivl=256ms

T:  Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  2 Spd=480 MxCh= 4
D:  Ver= 2.00 Cls=09(hub  ) Sub=00 Prot=01 MxPS=64 #Cfgs=  1
P:  Vendor=1a40 ProdID=0101 Rev= 1.11
S:  Product=USB 2.0 Hub
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=100mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   1 Ivl=256ms

T:  Bus=01 Lev=02 Prnt=02 Port=00 Cnt=01 Dev#=  5 Spd=480 MxCh= 0
D:  Ver= 2.00 Cls=ef(misc ) Sub=02 Prot=01 MxPS=64 #Cfgs=  1
P:  Vendor=12d1 ProdID=1436 Rev= 0.00
S:  Manufacturer=HUAWEI Technology
S:  Product=HUAWEI Mobile
C:* #Ifs= 7 Cfg#= 1 Atr=e0 MxPwr=500mA
A:  FirstIf#= 1 IfCount= 2 Cls=02(comm.) Sub=00 Prot=00
I:* If#= 0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=option
E:  Ad=81(I) Atr=03(Int.) MxPS=  64 Ivl=2ms
E:  Ad=82(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=01(O) Atr=02(Bulk) MxPS= 512 Ivl=4ms
I:* If#= 1 Alt= 0 #EPs= 1 Cls=02(comm.) Sub=06 Prot=ff Driver=cdc_ether
E:  Ad=83(I) Atr=03(Int.) MxPS=  64 Ivl=2ms
I:* If#= 2 Alt= 0 #EPs= 2 Cls=0a(data ) Sub=00 Prot=00 Driver=cdc_ether
E:  Ad=84(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=4ms
I:* If#= 3 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=option
E:  Ad=85(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=03(O) Atr=02(Bulk) MxPS= 512 Ivl=4ms
I:* If#= 4 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=option
E:  Ad=86(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=04(O) Atr=02(Bulk) MxPS= 512 Ivl=4ms
I:* If#= 5 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
E:  Ad=87(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=05(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
I:* If#= 6 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
E:  Ad=06(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=88(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms

T:  Bus=01 Lev=02 Prnt=02 Port=03 Cnt=02 Dev#=  6 Spd=480 MxCh= 0
D:  Ver= 2.00 Cls=ef(misc ) Sub=02 Prot=01 MxPS=64 #Cfgs=  1
P:  Vendor=12d1 ProdID=1506 Rev= 0.00
S:  Manufacturer=Huawei Technologies
S:  Product=HUAWEI Mobile
C:* #Ifs= 7 Cfg#= 1 Atr=c0 MxPwr=500mA
A:  FirstIf#= 3 IfCount= 2 Cls=02(comm.) Sub=00 Prot=00
I:* If#= 0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=01 Prot=01 Driver=option
E:  Ad=81(I) Atr=03(Int.) MxPS=  64 Ivl=2ms
E:  Ad=82(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=01(O) Atr=02(Bulk) MxPS= 512 Ivl=4ms
I:* If#= 1 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=01 Prot=02 Driver=option
E:  Ad=83(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=4ms
I:* If#= 2 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=01 Prot=03 Driver=option
E:  Ad=84(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=03(O) Atr=02(Bulk) MxPS= 512 Ivl=4ms
I:* If#= 3 Alt= 0 #EPs= 1 Cls=ff(vend.) Sub=01 Prot=09 Driver=option
E:  Ad=85(I) Atr=03(Int.) MxPS=  64 Ivl=2ms
I:* If#= 4 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=01 Prot=08 Driver=option
E:  Ad=86(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=04(O) Atr=02(Bulk) MxPS= 512 Ivl=4ms
I:* If#= 5 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
E:  Ad=87(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=05(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
I:* If#= 6 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
E:  Ad=06(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=88(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms

Mam taki router WLA 5000 AP na 5 ghz, działa to z AP Pro ale zacząłem się zastanawiać czy da się wgrać OpenWRT, bo na nowe wersje AP Pro raczej już nie ma co liczyć. Widziałem też wersję DD-WRT, ale niestety płatną. Ktoś gdzieś kiedyś kompilował, ale to wersja dosyć stara była, dlatego pytam czy da się skompilować z svn na tą platformę i co trzeba zmienić by się udało ?

Mam modem Huawei E353 u2 z kartą Aero2 wrzucony do TL-MR3420 z gargoyle pl najnowszym od Cezarego i ciągle są jakieś problemy z tym modemem, extroot działał niestabilnie więc go wyłączyłem. Ale teraz trafiają się momenty gdy nie chce nic iść przez niego (mam ustawiony multiwan na wanie i 3g) i wywaliło mi takie ciekawostki:

dmesg

io scheduler noop registered
io scheduler deadline registered (default)
Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11) is a 16550A
console [ttyS0] enabled, bootconsole disabled
Atheros AR71xx SPI Controller driver version 0.2.4
m25p80 spi0.0: s25sl032a (4096 Kbytes)
spi0.0: searching for MyLoader partition table at offset 0x10000
spi0.0: searching for MyLoader partition table at offset 0x20000
spi0.0: searching for MyLoader partition table at offset 0x30000
spi0.0: searching for MyLoader partition table at offset 0x40000
spi0.0: no MyLoader partition table found
Searching for RedBoot partition table in spi0.0 at offset 0x3e0000
Searching for RedBoot partition table in spi0.0 at offset 0x3f0000
No RedBoot partition table detected in spi0.0
Creating 5 MTD partitions on "spi0.0":
0x000000000000-0x000000020000 : "u-boot"
0x000000020000-0x000000140000 : "kernel"
0x000000140000-0x0000003f0000 : "rootfs"
mtd: partition "rootfs" set to be root filesystem
mtd: partition "rootfs_data" created automatically, ofs=390000, len=60000
0x000000390000-0x0000003f0000 : "rootfs_data"
0x0000003f0000-0x000000400000 : "art"
0x000000020000-0x0000003f0000 : "firmware"
ag71xx_mdio: probed
eth0: Atheros AG71xx at 0xba000000, irq 5
eth0: Found an AR7240 built-in switch
eth1: Atheros AG71xx at 0xb9000000, irq 4
eth1: connected to PHY at ag71xx-mdio:04 [uid=004dd041, driver=Generic PHY]
Atheros AR71xx hardware watchdog driver version 0.1.0
ar71xx-wdt: timeout=15 secs (max=21)
TCP westwood registered
NET: Registered protocol family 17
Bridge firewalling registered
802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
All bugs added by David S. Miller <davem@redhat.com>
VFS: Mounted root (squashfs filesystem) readonly on device 31:2.
Freeing unused kernel memory: 136k freed
Please be patient, while OpenWrt loads ...
input: gpio-buttons as /devices/platform/gpio-buttons/input/input0
Button Hotplug driver version 0.3.1
Registered led device: tl-mr3420:green:system
Registered led device: tl-mr3420:green:qss
Registered led device: tl-mr3420:green:3g
eth0: link up (1000Mbps/Full duplex)
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ar71xx-ehci ar71xx-ehci: Atheros AR91xx built-in EHCI controller
ar71xx-ehci ar71xx-ehci: new USB bus registered, assigned bus number 1
ar71xx-ehci ar71xx-ehci: irq 3, io mem 0x1b000000
ar71xx-ehci ar71xx-ehci: USB 2.0 started, EHCI 1.00
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usb 1-1: new high speed USB device using ar71xx-ehci and address 2
usb 1-1: configuration #1 chosen from 1 choice
scsi0 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 2
usb-storage: waiting for device to settle before scanning
scsi1 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 2
usb-storage: waiting for device to settle before scanning
scsi 0:0:0:0: CD-ROM            HUAWEI   Mass Storage     2.31 PQ: 0 ANSI: 2
scsi 1:0:0:0: Direct-Access     HUAWEI   TF CARD Storage       PQ: 0 ANSI: 2
usb-storage: device scan complete
sd 1:0:0:0: [sda] 248320 512-byte logical blocks: (127 MB/121 MiB)
sd 1:0:0:0: [sda] Write Protect is off
sd 1:0:0:0: [sda] Mode Sense: 0f 0e 00 00
sd 1:0:0:0: [sda] Assuming drive cache: write through
usb-storage: device scan complete
sd 1:0:0:0: [sda] Assuming drive cache: write through
sda: sda1 sda2
sd 1:0:0:0: [sda] Assuming drive cache: write through
sd 1:0:0:0: [sda] Attached SCSI removable disk
usb 1-1: usbfs: process 322 (usb_modeswitch) did not claim interface 0 before use
usb 1-1: USB disconnect, address 2
usb 1-1: new high speed USB device using ar71xx-ehci and address 3
usb 1-1: configuration #1 chosen from 1 choice
scsi2 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 3
usb-storage: waiting for device to settle before scanning
scsi 2:0:0:0: Direct-Access     HUAWEI   TF CARD Storage       PQ: 0 ANSI: 2
usb-storage: device scan complete
sd 2:0:0:0: [sda] 248320 512-byte logical blocks: (127 MB/121 MiB)
sd 2:0:0:0: [sda] Write Protect is off
sd 2:0:0:0: [sda] Mode Sense: 0f 0e 00 00
sd 2:0:0:0: [sda] Assuming drive cache: write through
sd 2:0:0:0: [sda] Assuming drive cache: write through
sda: sda1 sda2
sd 2:0:0:0: [sda] Assuming drive cache: write through
sd 2:0:0:0: [sda] Attached SCSI removable disk
mini_fo: using base directory: /
mini_fo: using storage directory: /overlay
eth0: link down
eth0: link up (1000Mbps/Full duplex)
device eth0 entered promiscuous mode
br-lan: port 1(eth0) entering forwarding state
Compat-wireless backport release: compat-wireless-2011-11-29
Backport based on wireless-testing.git master-2011-12-01
eth1: link up (100Mbps/Full duplex)
cfg80211: Calling CRDA to update world regulatory domain
cfg80211: World regulatory domain updated:
cfg80211:     (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
cfg80211:     (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
cfg80211:     (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
cfg80211:     (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
cfg80211:     (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
cfg80211:     (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
PCI: Setting latency timer of device 0000:00:00.0 to 64
ath: EEPROM regdomain: 0x0
ath: EEPROM indicates default country code should be used
ath: doing EEPROM country->regdmn map search
ath: country maps to regdmn code: 0x3a
ath: Country alpha2 being used: US
ath: Regpair used: 0x3a
ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
Registered led device: ath9k-phy0
ieee80211 phy0: Atheros AR9287 Rev:2 mem=0xb0000000, irq=48
cfg80211: Calling CRDA for country: US
cfg80211: Regulatory domain changed to country: US
cfg80211:     (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
cfg80211:     (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2700 mBm)
cfg80211:     (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 1700 mBm)
cfg80211:     (5250000 KHz - 5330000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
cfg80211:     (5490000 KHz - 5600000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
cfg80211:     (5650000 KHz - 5710000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
cfg80211:     (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 3000 mBm)
PPP generic driver version 2.4.2
tun: Universal TUN/TAP device driver, 1.6
tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
ip_tables: (C) 2000-2006 Netfilter Core Team
NET: Registered protocol family 24
nf_conntrack version 0.5.0 (462 buckets, 1848 max)
CONFIG_NF_CT_ACCT is deprecated and will be removed soon. Please use
nf_conntrack.acct=1 kernel parameter, acct=1 nf_conntrack module option or
sysctl net.netfilter.nf_conntrack_acct=1 to enable it.
xt_time: kernel timezone is -0000
        Hooked IMQ after mangle on PREROUTING
        Hooked IMQ after nat on POSTROUTING
IMQ driver loaded successfully.
ip_set version 4 loaded
usbcore: registered new interface driver cdc_acm
cdc_acm: v0.26:USB Abstract Control Model driver for USB modems and ISDN adapters
usbcore: registered new interface driver usbserial
USB Serial support registered for generic
usbcore: registered new interface driver usbserial_generic
usbserial: USB Serial Driver core
USB Serial support registered for GSM modem (1-port)
option 1-1:1.0: GSM modem (1-port) converter detected
usb 1-1: GSM modem (1-port) converter now attached to ttyUSB0
option 1-1:1.1: GSM modem (1-port) converter detected
usb 1-1: GSM modem (1-port) converter now attached to ttyUSB1
option 1-1:1.2: GSM modem (1-port) converter detected
usb 1-1: GSM modem (1-port) converter now attached to ttyUSB2
usbcore: registered new interface driver option
option: v0.7.2:USB Driver for GSM modems
USB Serial support registered for Sierra USB modem
usbcore: registered new interface driver sierra
sierra: v.1.3.8:USB Driver for Sierra Wireless USB modems
cfg80211: Calling CRDA for country: PL
cfg80211: Regulatory domain changed to country: PL
cfg80211:     (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
cfg80211:     (2402000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm)
cfg80211:     (5170000 KHz - 5250000 KHz @ 40000 KHz), (N/A, 2000 mBm)
cfg80211:     (5250000 KHz - 5330000 KHz @ 40000 KHz), (N/A, 2000 mBm)
cfg80211:     (5490000 KHz - 5710000 KHz @ 40000 KHz), (N/A, 2700 mBm)
ipt_bandwidth: timezone shift of 120 minutes detected, adjusting
               old minutes west=0, new minutes west=-120
ar71xx-wdt: enabling watchdog timer
eth1: link down
eth1: link up (100Mbps/Full duplex)
eth1: link down
eth1: link up (100Mbps/Full duplex)
------------[ cut here ]------------
WARNING: at drivers/usb/serial/usb-serial.c:441 0x80fd86fc()
Modules linked in: sierra option usbserial cdc_acm ledtrig_usbdev ipt_SET ipt_set ip_set_setlist ip_set_portmap ip_set_nethash ip_set_macipmap ip_set_iptreemap ip_set_iptree ip_set_ipportnethash ip_set_ipportiphash ip_set_ipporthash ip_set_ipmap ip_set_iphash ip_set xt_IMQ imq ipt_weburl ipt_webmon ipt_timerange nf_nat_tftp nf_conntrack_tftp nf_nat_irc nf_conntrack_irc nf_nat_ftp nf_conntrack_ftp xt_iprange xt_HL xt_hl xt_MARK ipt_ECN xt_CLASSIFY xt_time xt_tcpmss xt_statistic xt_mark xt_length ipt_ecn xt_DSCP xt_dscp xt_string xt_layer7 ipt_bandwidth ipt_REDIRECT ipt_NETMAP ipt_MASQUERADE iptable_nat nf_nat xt_CONNMARK xt_recent xt_helper xt_conntrack xt_connmark xt_connbytes xt_NOTRACK iptable_raw xt_state nf_conntrack_ipv4 nf_defrag_ipv4 nf_conntrack pppoe pppox ipt_REJECT xt_TCPMSS ipt_LOG xt_comment xt_multiport xt_mac xt_limit iptable_mangle iptable_filter ip_tables xt_tcpudp x_tables tun ppp_async ppp_generic slhc vfat fat ath9k ath9k_common ath9k_hw ath nls_iso8859_1 nls_cp437 mac80211 ts_fsm ts_bm ts_kmp crc_ccitt cfg80211 compat arc4 aes_generic deflate ecb cbc usb_storage ehci_hcd sd_mod ext2 usbcore scsi_mod nls_base mbcache leds_gpio button_hotplug gpio_buttons input_polldev input_core
Call Trace:[<8007ec1c>] 0x8007ec1c
[<800692b0>] 0x800692b0
[<800692b0>] 0x800692b0
[<8007db28>] 0x8007db28
[<80fd86fc>] 0x80fd86fc
[<80fd86fc>] 0x80fd86fc
[<8018a0f4>] 0x8018a0f4
[<8018874c>] 0x8018874c
[<8018c45c>] 0x8018c45c
[<8018ce78>] 0x8018ce78
[<80fd8c64>] 0x80fd8c64
[<80184dd4>] 0x80184dd4
[<800931cc>] 0x800931cc
[<80078608>] 0x80078608
[<801850e0>] 0x801850e0
[<800db0dc>] 0x800db0dc
[<800d7844>] 0x800d7844
[<800e8200>] 0x800e8200
[<8007fd4c>] 0x8007fd4c
[<80081584>] 0x80081584
[<80081a60>] 0x80081a60
[<80062544>] 0x80062544

---[ end trace f8a023d9845c5646 ]---
root@Gargoyle:~$

What the f...? Na extrocie też czasem były takie dziwne cyferki i nie dało się nic zapisać na kartę sad (...)

Super - udało się po ciężkich bojach ! Dzięki za pomoc. Może napiszę jakiś poradnik dla takich opornych jak ja co by mieli lżej... smile

Mam jeszcze pytanie na temat tego tp-linka : czy w modelu 2.x powinny migac diody na switchu podczas transmisji czy nie, bo u mnie swieca sie na stale?

OK z Linksysem udało mi się po długich bojach skompilować to co potrzebne ( nie warto kompilować wszystkiego - szkoda nerwów !).
i zrobić obraz z obsługa extroota z sdhc.

Teraz wzialem się za TP Linka TL WR740N i tutaj poszło mi szybko,
tyle tylko że na tym moim obrazie nie widzi mi mojego pendrive, na Twoim chodziło bez problemów. Kurcze czy czegoś mi brakuje w tym obrazie ?

root@OpenWrt:~# opkg list
base-files - 43.35-r31820
block-extroot - 0.0.1-2.1
block-hotplug - 0.1.0-2.2
block-mount - 0.1.0-2.2
busybox - 1.15.3-3.4
crda - 1.1.1-1
dnsmasq - 2.55-6.1
dropbear - 0.53.1-6
e2fsprogs - 1.41.11-1
fdisk - 2.13.0.1-4
firewall - 2-34.9
hotplug2 - 1.0-beta-3
iptables - 1.4.6-3.1
iptables-mod-conntrack - 1.4.6-3.1
iptables-mod-nat - 1.4.6-3.1
iw - 0.9.22-2
kernel - 2.6.32.27-1
kmod-ath - 2.6.32.27+2011-12-01-1
kmod-ath9k - 2.6.32.27+2011-12-01-1
kmod-ath9k-common - 2.6.32.27+2011-12-01-1
kmod-button-hotplug - 2.6.32.27-1
kmod-cfg80211 - 2.6.32.27+2011-12-01-1
kmod-crc-ccitt - 2.6.32.27-1
kmod-crypto-aes - 2.6.32.27-1
kmod-crypto-arc4 - 2.6.32.27-1
kmod-crypto-core - 2.6.32.27-1
kmod-fs-ext2 - 2.6.32.27-1
kmod-fs-mbcache - 2.6.32.27-1
kmod-fs-vfat - 2.6.32.27-1
kmod-input-core - 2.6.32.27-1
kmod-input-gpio-buttons - 2.6.32.27-1
kmod-input-polldev - 2.6.32.27-1
kmod-ipt-conntrack - 2.6.32.27-1
kmod-ipt-core - 2.6.32.27-1
kmod-ipt-nat - 2.6.32.27-1
kmod-ipt-nathelper - 2.6.32.27-1
kmod-leds-gpio - 2.6.32.27-1
kmod-mac80211 - 2.6.32.27+2011-12-01-1
kmod-nls-base - 2.6.32.27-1
kmod-ppp - 2.6.32.27-1
kmod-pppoe - 2.6.32.27-1
kmod-scsi-core - 2.6.32.27-1
kmod-tun - 2.6.32.27-1
kmod-usb-core - 2.6.32.27-1
kmod-usb-ohci - 2.6.32.27-1
kmod-usb-storage - 2.6.32.27-1
kmod-usb2 - 2.6.32.27-1
libblkid - 1.41.11-1
libc - 0.9.30.1-43.35
libext2fs - 1.41.11-1
libgcc - 4.3.3+cs-43.35
libip4tc - 1.4.6-3.1
libnl-tiny - 0.1-2.1
libpthread - 0.9.30.1-43.35
librt - 0.9.30.1-43.35
libuci - 12012009.7-4
libuuid - 1.41.11-1
libxtables - 1.4.6-3.1
mtd - 13
opkg - 576-2
ppp - 2.4.4-16.1
ppp-mod-pppoe - 2.4.4-16.1
swconfig - 9
uci - 12012009.7-4
udevtrigger - 106-1
wireless-tools - 29-4
wpad-mini - 20111103-3

a w dmesg :

root@OpenWrt:~# dmesg
Linux version 2.6.32.27 (sitheek@debian32XEN) (gcc version 4.3.3 (GCC) ) #2 Sun Jun 3 17:18:43 CEST 2012
prom: fw_arg0=00000007, fw_arg1=a1f87fb0, fw_arg2=a1f88460, fw_arg3=00000004
MyLoader: sysp=ffffffff, boardp=ffffffff, parts=f0f0f0f0
bootconsole [early0] enabled
CPU revision is: 00019374 (MIPS 24Kc)
Atheros AR7240 rev 2, CPU:350.000 MHz, AHB:175.000 MHz, DDR:350.000 MHz
Determined physical RAM map:
memory: 02000000 @ 00000000 (usable)
Initrd not found or empty - disabling initrd
Zone PFN ranges:
  Normal   0x00000000 -> 0x00002000
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
    0: 0x00000000 -> 0x00002000
On node 0 totalpages: 8192
free_area_init_node: node 0, pgdat 802e0ee0, node_mem_map 81000000
  Normal zone: 64 pages used for memmap
  Normal zone: 0 pages reserved
  Normal zone: 8128 pages, LIFO batch:0
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 8128
Kernel command line: rootfstype=squashfs,yaffs,jffs2 noinitrd console=ttyS0,115200 board=TL-WR741ND
PID hash table entries: 128 (order: -3, 512 bytes)
Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
Writing ErrCtl register=00000000
Readback ErrCtl register=00000000
Memory: 29260k/32768k available (2147k kernel code, 3508k reserved, 418k data, 152k init, 0k highmem)
SLUB: Genslabs=7, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Hierarchical RCU implementation.
NR_IRQS:56
Calibrating delay loop... 232.65 BogoMIPS (lpj=1163264)
Mount-cache hash table entries: 512
NET: Registered protocol family 16
MIPS: machine is TP-LINK TL-WR741ND
registering PCI controller with io_map_base unset
bio: create slab <bio-0> at 0
PCI: fixup device 0000:00:00.0
pci 0000:00:00.0: reg 10 64bit mmio: [0x000000-0x00ffff]
pci 0000:00:00.0: supports D1
pci 0000:00:00.0: PME# supported from D0 D1 D3hot
pci 0000:00:00.0: PME# disabled
PCI: mapping irq 48 to pin1@0000:00:00.0
Switching to clocksource MIPS
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 1024 (order: 1, 8192 bytes)
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
TCP: Hash tables configured (established 1024 bind 1024)
TCP reno registered
NET: Registered protocol family 1
squashfs: version 4.0 (2009/01/31) Phillip Lougher
Registering mini_fo version $Id$
JFFS2 version 2.2. (NAND) (SUMMARY)  Š 2001-2006 Red Hat, Inc.
yaffs Jun  3 2012 16:54:50 Installing.
msgmni has been set to 57
io scheduler noop registered
io scheduler deadline registered (default)
Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11) is a 16550A
console [ttyS0] enabled, bootconsole disabled
Atheros AR71xx SPI Controller driver version 0.2.4
m25p80 spi0.0: w25q32 (4096 Kbytes)
spi0.0: searching for MyLoader partition table at offset 0x10000
spi0.0: searching for MyLoader partition table at offset 0x20000
spi0.0: searching for MyLoader partition table at offset 0x30000
spi0.0: searching for MyLoader partition table at offset 0x40000
spi0.0: no MyLoader partition table found
Searching for RedBoot partition table in spi0.0 at offset 0x3fe000
Searching for RedBoot partition table in spi0.0 at offset 0x3ff000
No RedBoot partition table detected in spi0.0
spi0.0: no WRT160NL signature found
Creating 5 MTD partitions on "spi0.0":
0x000000000000-0x000000020000 : "u-boot"
0x000000020000-0x000000160000 : "kernel"
0x000000160000-0x0000003f0000 : "rootfs"
mtd: partition "rootfs" set to be root filesystem
mtd: partition "rootfs_data" created automatically, ofs=33F000, len=B1000
0x00000033f000-0x0000003f0000 : "rootfs_data"
0x0000003f0000-0x000000400000 : "art"
0x000000020000-0x0000003f0000 : "firmware"
ag71xx_mdio: probed
eth0: Atheros AG71xx at 0xba000000, irq 5
eth0: Found an AR7240 built-in switch
eth1: Atheros AG71xx at 0xb9000000, irq 4
eth1: connected to PHY at ag71xx-mdio:04 [uid=004dd041, driver=Generic PHY]
Atheros AR71xx hardware watchdog driver version 0.1.0
ar71xx-wdt: timeout=15 secs (max=24)
TCP westwood registered
NET: Registered protocol family 17
Bridge firewalling registered
802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
All bugs added by David S. Miller <davem@redhat.com>
VFS: Mounted root (squashfs filesystem) readonly on device 31:2.
Freeing unused kernel memory: 152k freed
Please be patient, while OpenWrt loads ...
input: gpio-buttons as /devices/platform/gpio-buttons/input/input0
Button Hotplug driver version 0.3.1
Registered led device: tl-wr741nd:green:system
Registered led device: tl-wr741nd:green:qss
eth0: link up (1000Mbps/Full duplex)
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
mini_fo: using base directory: /
mini_fo: using storage directory: /overlay
eth0: link down
eth0: link up (1000Mbps/Full duplex)
device eth0 entered promiscuous mode
br-lan: port 1(eth0) entering forwarding state
Compat-wireless backport release: compat-wireless-2011-11-29
Backport based on wireless-testing.git master-2011-12-01
cfg80211: Calling CRDA to update world regulatory domain
cfg80211: World regulatory domain updated:
cfg80211:     (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
cfg80211:     (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
cfg80211:     (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
cfg80211:     (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
cfg80211:     (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
cfg80211:     (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
eth1: link up (100Mbps/Full duplex)
PCI: Setting latency timer of device 0000:00:00.0 to 64
ath: EEPROM regdomain: 0x0
ath: EEPROM indicates default country code should be used
ath: doing EEPROM country->regdmn map search
ath: country maps to regdmn code: 0x3a
ath: Country alpha2 being used: US
ath: Regpair used: 0x3a
ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
Registered led device: ath9k-phy0
ieee80211 phy0: Atheros AR9285 Rev:2 mem=0xb0000000, irq=48
cfg80211: Calling CRDA for country: US
cfg80211: Regulatory domain changed to country: US
cfg80211:     (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
cfg80211:     (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2700 mBm)
cfg80211:     (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 1700 mBm)
cfg80211:     (5250000 KHz - 5330000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
cfg80211:     (5490000 KHz - 5600000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
cfg80211:     (5650000 KHz - 5710000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
cfg80211:     (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 3000 mBm)
PPP generic driver version 2.4.2
tun: Universal TUN/TAP device driver, 1.6
tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
ip_tables: (C) 2000-2006 Netfilter Core Team
NET: Registered protocol family 24
nf_conntrack version 0.5.0 (459 buckets, 1836 max)
CONFIG_NF_CT_ACCT is deprecated and will be removed soon. Please use
nf_conntrack.acct=1 kernel parameter, acct=1 nf_conntrack module option or
sysctl net.netfilter.nf_conntrack_acct=1 to enable it.
ar71xx-wdt: enabling watchdog timer


Nie wiem co spartaczyłem ?

Cezary napisał/a:

crda nie jest dla 2.4. Nie zaznaczaj go.

Dzięki za podpowiedź. Czy oprócz crda coś jeszcze odznaczyć dla 2.4 ?

Witam serdecznie ! Postanowiłem samodzielnie skompilować sobie obraz openwrt wg opisów na forum, poniewaz chciałem zrobic sobie obrazy dla mojego linksysa 54gl i mojego tplinka wr 740n bez luci, ale z wkompilowana obsluga usb i extrootem.

No i z poczatku było ladnie i pieknie zgodnie z opisem, poradzilem sobie z problemami z uprawnieniami do plikow i szczesliwy ze na ekranie wszystko juz lecialo jak w matrixie i sie kompilowalo, odszedlem od komputera liczac ze jak przyjde za kilka godzin to juz bedzie ok.
A tu niestety znowu jakis world error i tym razem nie wiem dlaczego i jak temu zaradzic :

make[4]: Entering directory `/opt/backfire/build_dir/linux-brcm-2.4/crda-1.1.1'
  CC   reglib.o
In file included from reglib.h:7,
                 from reglib.c:6:
regdb.h:31: error: syntax error before "__be32"
regdb.h:31: warning: no semicolon at end of struct or union
regdb.h:33: warning: type defaults to `int' in declaration of `version'
regdb.h:33: warning: data definition has no type or storage class
regdb.h:41: error: syntax error before "reg_country_ptr"
regdb.h:41: warning: type defaults to `int' in declaration of `reg_country_ptr'
regdb.h:41: warning: data definition has no type or storage class
regdb.h:42: error: syntax error before "reg_country_num"
regdb.h:42: warning: type defaults to `int' in declaration of `reg_country_num'
regdb.h:42: warning: data definition has no type or storage class
regdb.h:44: error: syntax error before "signature_length"
regdb.h:44: warning: type defaults to `int' in declaration of `signature_length'
regdb.h:44: warning: data definition has no type or storage class
regdb.h:48: error: syntax error before "__be32"
regdb.h:48: warning: no semicolon at end of struct or union
regdb.h:59: error: syntax error before "__be32"
regdb.h:59: warning: no semicolon at end of struct or union
regdb.h:61: warning: type defaults to `int' in declaration of `max_eirp'
regdb.h:61: warning: data definition has no type or storage class
regdb.h:83: error: syntax error before "__be32"
regdb.h:83: warning: no semicolon at end of struct or union
regdb.h:84: warning: type defaults to `int' in declaration of `power_rule_ptr'
regdb.h:84: warning: data definition has no type or storage class
regdb.h:86: error: syntax error before "flags"
regdb.h:86: warning: type defaults to `int' in declaration of `flags'
regdb.h:86: warning: data definition has no type or storage class
regdb.h:90: error: syntax error before "__be32"
regdb.h:90: warning: no semicolon at end of struct or union
regdb.h:94: warning: type defaults to `int' in declaration of `reg_rule_ptrs'
regdb.h:94: warning: data definition has no type or storage class
regdb.h:95: error: syntax error before '}' token
regdb.h:102: error: syntax error before "__be32"
regdb.h:102: warning: no semicolon at end of struct or union
regdb.h: In function `check_db_binary_structs':
regdb.h:119: error: invalid application of `sizeof' to incomplete type `regdb_file_header'
regdb.h:119: error: size of array `type name' is negative
regdb.h:120: error: invalid application of `sizeof' to incomplete type `regdb_file_freq_range'
regdb.h:120: error: size of array `type name' is negative
regdb.h:121: error: invalid application of `sizeof' to incomplete type `regdb_file_power_rule'
regdb.h:121: error: size of array `type name' is negative
regdb.h:122: error: invalid application of `sizeof' to incomplete type `regdb_file_reg_rule'
regdb.h:122: error: size of array `type name' is negative
regdb.h:123: error: invalid application of `sizeof' to incomplete type `regdb_file_reg_rules_collection'
regdb.h:123: error: size of array `type name' is negative
regdb.h:124: error: invalid application of `sizeof' to incomplete type `regdb_file_reg_country'
regdb.h:124: error: size of array `type name' is negative
In file included from reglib.c:6:
reglib.h: At top level:
reglib.h:87: error: syntax error before "__be32"
reglib.c:29: error: syntax error before "__be32"
reglib.c: In function `crda_get_file_ptr':
reglib.c:31: error: `ptr' undeclared (first use in this function)
reglib.c:31: error: (Each undeclared identifier is reported only once
reglib.c:31: error: for each function it appears in.)
reglib.c:33: error: `dblen' undeclared (first use in this function)
reglib.c:33: error: `structlen' undeclared (first use in this function)
reglib.c:38: error: `db' undeclared (first use in this function)
reglib.c: At top level:
regdb.h:94: warning: array 'reg_rule_ptrs' assumed to have one element
make[4]: *** [reglib.o] Error 1
make[4]: Leaving directory `/opt/backfire/build_dir/linux-brcm-2.4/crda-1.1.1'
make[3]: *** [/opt/backfire/build_dir/linux-brcm-2.4/crda-1.1.1/.built] Error 2
make[3]: Leaving directory `/opt/backfire/package/crda'
make[2]: *** [package/crda/compile] Error 2
make[2]: Leaving directory `/opt/backfire'
make[1]: *** [/opt/backfire/staging_dir/target-mipsel_uClibc-0.9.30.1/stamp/.package_compile] Error 2
make[1]: Leaving directory `/opt/backfire'
make: *** [world] Error 2


Czy mozliwe zeby cos z tym skryptem co kompiluje bylo nie tak ? (dla mipsel 2.4)

Cezary napisał/a:

Aktualizacji czego konkretnie?

No nie wiem tak jak w gargyle pl, nowe sterowniki do radia czy coś ?

Cezary napisał/a:

No to się wyjaśniło. Wyinstaluj to wszystko i zainstaluj pakiet luci, ale z RC5. Nie dotykaj rc4 i nie mieszaj wersji.

w rc5 nie ma czegoś takiego jak jak luci-admin-full.

No i lipa !

Najpierw

firstboot

podmontowanie extroot

opkg install luci

Zainstalowało się  i dalej to samo

No sockets bound unable to continue !!!!

Nie dopisywałem nic do opkg.conf instalowało się z repozytorium rc5

Co może być nie tak ?

opkg list :

base-files - 43.27-r28215
block-extroot - 0.0.1-2.1
block-hotplug - 0.1.0-2.1cj
block-mount - 0.1.0-2.1cj
busybox - 1.15.3-2
crda - 1.1.1-1
dnsmasq - 2.55-6
dropbear - 0.53.1-4
firewall - 2-34
hotplug2 - 1.0-beta-3
iptables - 1.4.6-3.1cj
iptables-mod-conntrack - 1.4.6-3.1cj
iptables-mod-nat - 1.4.6-3.1cj
iw - 0.9.22-2
kernel - 2.6.32.27-1cj
kmod-ath - 2.6.32.27+2011-08-26-1cj
kmod-ath9k - 2.6.32.27+2011-08-26-1cj
kmod-ath9k-common - 2.6.32.27+2011-08-26-1cj
kmod-button-hotplug - 2.6.32.27-1
kmod-cfg80211 - 2.6.32.27+2011-08-26-1cj
kmod-crc-ccitt - 2.6.32.27-1cj
kmod-crc16 - 2.6.32.27-1cj
kmod-crypto-aes - 2.6.32.27-1cj
kmod-crypto-arc4 - 2.6.32.27-1cj
kmod-crypto-core - 2.6.32.27-1cj
kmod-fs-ext2 - 2.6.32.27-1cj
kmod-fs-ext4 - 2.6.32.27-1cj
kmod-fs-mbcache - 2.6.32.27-1cj
kmod-fs-vfat - 2.6.32.27-1cj
kmod-input-core - 2.6.32.27-1cj
kmod-input-gpio-buttons - 2.6.32.27-1cj
kmod-input-polldev - 2.6.32.27-1cj
kmod-ipt-conntrack - 2.6.32.27-1cj
kmod-ipt-core - 2.6.32.27-1cj
kmod-ipt-nat - 2.6.32.27-1cj
kmod-ipt-nathelper - 2.6.32.27-1cj
kmod-leds-gpio - 2.6.32.27-1cj
kmod-ledtrig-usbdev - 2.6.32.27-1cj
kmod-mac80211 - 2.6.32.27+2011-08-26-1cj
kmod-nls-base - 2.6.32.27-1cj
kmod-nls-cp437 - 2.6.32.27-1cj
kmod-nls-iso8859-1 - 2.6.32.27-1cj
kmod-ppp - 2.6.32.27-1cj
kmod-pppoe - 2.6.32.27-1cj
kmod-scsi-core - 2.6.32.27-1cj
kmod-usb-core - 2.6.32.27-1cj
kmod-usb-ohci - 2.6.32.27-1cj
kmod-usb-storage - 2.6.32.27-1cj
kmod-usb2 - 2.6.32.27-1cj
libblkid - 1.41.11-1
libc - 0.9.30.1-43.27
libext2fs - 1.41.11-1
libgcc - 4.3.3+cs-43.27
libip4tc - 1.4.6-3.1cj
libiwinfo - 15
liblua - 5.1.4-7
libnl-tiny - 0.1-1
libpopt - 1.7-5
libuci - 12012009.6-4
libuci-lua - 12012009.6-3
libuuid - 1.41.11-1
libxtables - 1.4.6-3.1cj
lua - 5.1.4-7
luci - 0.10+svn7292-1
luci-app-firewall - 0.10+svn7292-1
luci-i18n-english - 0.10+svn7292-1
luci-lib-core - 0.10+svn7292-1
luci-lib-ipkg - 0.10+svn7292-1
luci-lib-lmo - 0.10+svn7292-1
luci-lib-nixio - 0.10+svn7292-1
luci-lib-sys - 0.10+svn7292-1
luci-lib-web - 0.10+svn7292-1
luci-mod-admin-core - 0.10+svn7292-1
luci-mod-admin-full - 0.10+svn7292-1
luci-sgi-cgi - 0.10+svn7292-1
luci-theme-base - 0.10+svn7292-1
luci-theme-openwrt - 0.10+svn7292-1
mtd - 13
opkg - 576-1
ppp - 2.4.4-16
ppp-mod-pppoe - 2.4.4-16
swconfig - 9
uci - 12012009.6-4
udevtrigger - 106-1
uhttpd - 23.3
vsftpd - 2.3.4-2cj
wireless-tools - 29-4
wpad-mini - 20110527-1
wput - 0.6.2-1


OKEJ to ja jestem głupi - skrypt należy wystartować z podaniem
pełnej ścieżki  - linux smile

/etc/init.d/uhttpd start

i goli smile

Czy można się spodziewać Cezary jakiejś aktualizacji takiego firmware z wkompilowanym usb co używamy ?

Cezary napisał/a:

Mieszałeś coś w konfiguracji uhttpd?

nic nie dotykałem bo nie wiem jak, po prostu zainstalowałem

dodałem tylko linijkę do opkg.conf do rc4 bo w rc5 nie było tych pakietów luci-admin-full.

Najpierw zainstalowałem pakiet luci i to chyba poszło z rc5, a potem jak nie działało spróbowałem luci-admin-full, ale nie zainstalował się bo jakieś już katalogi istniały i to nic nie dało.

OK, działa tylko nie mogę odpalić luci -

/etc/init.d/uhttpd start

Error: No sockets bound, unable to continue


Co robię nie tak?