51

(39 odpowiedzi, napisanych Oprogramowanie / Software)

Ale w Twoim Gargoyle nie ma dostępu do uboot i art (chyba)?

Na razie nie mogę ogarnąć dlaczego dd-wrt sshd mi nie rusza, a w efekcie nie mogę SCP zrobić. Uboot zdjąłem ze strony pepe2k,  a opis stąd: http://zhujunsan.net/index.php/2013/08/ … or-wr703n/.

52

(39 odpowiedzi, napisanych Oprogramowanie / Software)

DD-wrt już wgrałem. Możesz puścić oryginalny na maila sz.zycinski@gmail.com

Googluję za instrukcją. Dobrze, że DD-Wrt ma od ręki wifi włączone.

53

(39 odpowiedzi, napisanych Oprogramowanie / Software)

Sorry. Poprawie sie. Jak moge wgrac oryginalny uboot z wersji sprzed 1.5 skoro nie ma możliwości przez tftp z horneta? Mogę się dostać do konsoli po wifi lub serialu.

54

(39 odpowiedzi, napisanych Oprogramowanie / Software)

po wejściu do horneta:

U-Boot 1.1.4-gd0be0bfd (Sep 29 2013 - 10:06:31)

AP121 (ar9330) U-boot

DRAM:  32 MB
led turning on for 1s...
id read 0x100000ff
flash size 4194304, sector count = 64
Flash:  4 MB
Using default environment

In:    serial
Out:   serial
Err:   serial
Net:   ag7240_enet_initialize...
No valid address in Flash. Using fixed address
No valid address in Flash. Using fixed address
: cfg1 0x5 cfg2 0x7114
eth0: 00:03:7f:09:0b:ad
ag7240_phy_setup
eth0 up

hornet>
hornet> printenv
bootargs=console=ttyS0,115200 root=31:02 rootfstype=squashfs init=/sbin/init mtdparts=ar7240-nor0:256k(u-boot),64k(u-boot-env),2752k(rootfs),896k(uImage),64k(NVRAM),64k(ART)
bootcmd=bootm 0x9f020000
bootdelay=1
baudrate=115200
ethaddr=0xba:0xbe:0xfa:0xce:0x07:0x41
ipaddr=192.168.1.111
serverip=192.168.1.100
stdin=serial
stdout=serial
stderr=serial
ethact=eth0

Environment size: 362/65532 bytes
hornet> help
?       - alias for 'help'
bootm   - boot application image from memory
cp      - memory copy
erase   - erase FLASH memory
help    - print online help
md      - memory display
mm      - memory modify (auto-incrementing)
mtest   - simple RAM test
mw      - memory write (fill)
nm      - memory modify (constant address)
printenv- print environment variables
progmac - Set ethernet MAC addresses
reset   - Perform RESET of the CPU
setenv  - set environment variables
tftpboot- boot image via network using TFTP protocol
version - print monitor version
hornet> version

U-Boot 1.1.4-gd0be0bfd (Sep 29 2013 - 10:06:31)
hornet> md
Usage:
md      - memory display

hornet> tftpboot
eth1 link down
eth0 link down
*** Warning: no boot file name; using '6F01A8C0.img'
Using eth1 device
TFTP from server 192.168.1.10Filename '6F01A8C0.img'.
Laddress:Âá100oading: T T T T T T
Retry count exceeded; starting again
eth0 link down
eth1 link down
*** Warning: no boot file name; using '6F01A8C0.img'
Using eth0 device
TFTP from server 192.168.1.100; our IP address is 192.168.1.111
Filename '6F01A8C0.img'.
Load address: 0x81000000
Loading: T T T T T T T T T T
Retry count exceeded; starting again
eth1 link down
eth0 link down
*** Warning: no boot file name; using '6F01A8C0.img'
Using eth1 device
TFTP from server 192.168.1.100; our IP address is 192.168.1.111
Filename '6F01A8C0.img'.
Load address: 0x81000000
Loading: T T T T T T T T T T
Retry count exceeded; starting again
eth0 link down
eth1 link down
*** Warning: no boot file name; using '6F01A8C0.img'
Using eth0 device
TFTP from server 192.168.1.100; our IP address is 192.168.1.111
Filename '6F01A8C0.img'.
Load address: 0x81000000
Loading: T T T T T T T T T T
Retry count exceeded; starting again
eth1 link down
eth0 link down
*** Warning: no boot file name; using '6F01A8C0.img'
Using eth1 device
TFTP from server 192.168.1.100; our IP address is 192.168.1.111
Filename '6F01A8C0.img'.
Load address: 0x81000000
Loading: T T T T T T T T T T
Retry count exceeded; starting again
eth0 link down
eth1 link down
*** Warning: no boot file name; using '6F01A8C0.img'
Using eth0 device
TFTP from server 192.168.1.100; our IP address is 192.168.1.111
Filename '6F01A8C0.img'.
Load address: 0x81000000
Loading: T T

55

(39 odpowiedzi, napisanych Oprogramowanie / Software)

https://forum.openwrt.org/viewtopic.php?id=40986

chyba jednak wina uboot'a.

56

(39 odpowiedzi, napisanych Oprogramowanie / Software)

Ok. Wgrane Gargoyle ale eth jest dead :-( Jak zrealizowana jest separacja galwaniczna na phy? Wie ktoś co zmierzyć?

57

(39 odpowiedzi, napisanych Oprogramowanie / Software)

Log z konsoli:

U-Boot 1.1.4-gd0be0bfd (Sep 29 2013 - 10:06:31)

AP121 (ar9330) U-boot

DRAM:  32 MB
led turning on for 1s...
id read 0x100000ff
flash size 4194304, sector count = 64
Flash:  4 MB
Using default environment

In:    serial
Out:   serial
Err:   serial
Net:   ag7240_enet_initialize...
No valid address in Flash. Using fixed address
No valid address in Flash. Using fixed address
: cfg1 0x5 cfg2 0x7114
eth0: 00:03:7f:09:0b:ad
ag7240_phy_setup
eth0 up
: cfg1 0xf cfg2 0x7214
eth1: 00:03:7f:09:0b:ad
athrs26_reg_init_lan
ATHRS26: resetting s26
ATHRS26: s26 reset done
ag7240_phy_setup
eth1 up
eth0, eth1
auto update firmware: is_auto_upload_firmware = 0!
Autobooting in 1 seconds
## Booting image at 9f020000 ...
   Uncompressing Kernel Image ... OK

Starting kernel ...

[    0.000000] Linux version 3.3.8 (cezary@eko.one.pl) (gcc version 4.6.3 20120201 (prerelease) (Linaro GCC 4.6-2012.02) ) #2 Sat Mar 15 09:16:08 CET 2014
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU revision is: 00019374 (MIPS 24Kc)
[    0.000000] SoC: Atheros AR9330 rev 1
[    0.000000] Clocks: CPU:400.000MHz, DDR:400.000MHz, AHB:200.000MHz, Ref:25.000MHz
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 02000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Zone PFN ranges:
[    0.000000]   Normal   0x00000000 -> 0x00002000
[    0.000000] Movable zone start PFN for each node
[    0.000000] Early memory PFN ranges
[    0.000000]     0: 0x00000000 -> 0x00002000
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 8128
[    0.000000] Kernel command line:  board=TL-WR703N console=ttyATH0,115200 rootfstype=squashfs,jffs2 noinitrd
[    0.000000] PID hash table entries: 128 (order: -3, 512 bytes)
[    0.000000] Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
[    0.000000] Writing ErrCtl register=00000000
[    0.000000] Readback ErrCtl register=00000000
[    0.000000] Memory: 28984k/32768k available (2224k kernel code, 3784k reserved, 413k data, 216k init, 0k highmem)
[    0.000000] SLUB: Genslabs=9, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS:51
[    0.000000] Calibrating delay loop... 265.42 BogoMIPS (lpj=1327104)
[    0.080000] pid_max: default: 32768 minimum: 301
[    0.080000] Mount-cache hash table entries: 512
[    0.090000] NET: Registered protocol family 16
[    0.090000] gpiochip_add: registered GPIOs 0 to 29 on device: ath79
[    0.100000] MIPS: machine is TP-LINK TL-WR703N v1
[    0.350000] bio: create slab <bio-0> at 0
[    0.360000] Switching to clocksource MIPS
[    0.360000] NET: Registered protocol family 2
[    0.370000] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.370000] TCP established hash table entries: 1024 (order: 1, 8192 bytes)
[    0.370000] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.380000] TCP: Hash tables configured (established 1024 bind 1024)
[    0.390000] TCP reno registered
[    0.390000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.400000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.400000] NET: Registered protocol family 1
[    0.430000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.430000] JFFS2 version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.440000] msgmni has been set to 56
[    0.440000] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 254)
[    0.450000] io scheduler noop registered
[    0.450000] io scheduler deadline registered (default)
[    0.460000] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    0.470000] ar933x-uart: ttyATH0 at MMIO 0x18020000 (irq = 11) is a AR933X UART
[    0.480000] console [ttyATH0] enabled, bootconsole disabled
[    0.480000] console [ttyATH0] enabled, bootconsole disabled
[    0.490000] m25p80 spi0.0: found s25sl032a, expected m25p80
[    0.500000] m25p80 spi0.0: s25sl032a (4096 Kbytes)
[    0.500000] 5 tp-link partitions found on MTD device spi0.0
[    0.510000] Creating 5 MTD partitions on "spi0.0":
[    0.510000] 0x000000000000-0x000000020000 : "u-boot"
[    0.520000] 0x000000020000-0x00000010b9a8 : "kernel"
[    0.520000] mtd: partition "kernel" must either start or end on erase block boundary or be smaller than an erase block -- forcing read-only
[    0.540000] 0x00000010b9a8-0x0000003f0000 : "rootfs"
[    0.540000] mtd: partition "rootfs" must either start or end on erase block boundary or be smaller than an erase block -- forcing read-only
[    0.550000] mtd: partition "rootfs" set to be root filesystem
[    0.560000] mtd: partition "rootfs_data" created automatically, ofs=350000, len=A0000
[    0.570000] 0x000000350000-0x0000003f0000 : "rootfs_data"
[    0.570000] 0x0000003f0000-0x000000400000 : "art"
[    0.580000] 0x000000020000-0x0000003f0000 : "firmware"
[    0.600000] ag71xx_mdio: probed
[    0.610000] eth0: Atheros AG71xx at 0xb9000000, irq 4
[    1.160000] ag71xx ag71xx.0: eth0: connected to PHY at ag71xx-mdio.1:04 [uid=004dd041, driver=Generic PHY]
[    1.170000] TCP cubic registered
[    1.170000] NET: Registered protocol family 17
[    1.180000] Bridge firewalling registered
[    1.180000] 8021q: 802.1Q VLAN Support v1.8
[    1.190000] VFS: Mounted root (squashfs filesystem) readonly on device 31:2.
[    1.200000] Freeing unused kernel memory: 216k freed
- preinit -
Press the [f] key and hit [enter] to enter failsafe mode
- regular preinit -
[    6.700000] JFFS2 notice: (436) jffs2_build_xattr_subsystem: complete building xattr subsystem, 1 of xdatum (0 unchecked, 0 orphan) and 10 of xref (0 dead, 2 orphan) found.
[    7.440000] SCSI subsystem initialized
[    7.570000] usbcore: registered new interface driver usbfs
[    7.580000] usbcore: registered new interface driver hub
[    7.580000] usbcore: registered new device driver usb
[    7.970000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    7.980000] ehci-platform ehci-platform: Generic Platform EHCI Controller
[    7.990000] ehci-platform ehci-platform: new USB bus registered, assigned bus number 1
[    8.020000] ehci-platform ehci-platform: irq 3, io mem 0x1b000000
[    8.040000] ehci-platform ehci-platform: USB 2.0 started, EHCI 1.00
[    8.040000] hub 1-0:1.0: USB hub found
[    8.040000] hub 1-0:1.0: 1 port detected
[    8.070000] Initializing USB Mass Storage driver...
[    8.070000] usbcore: registered new interface driver usb-storage
[    8.070000] USB Mass Storage support registered.
switching to jffs2
- init -

Please press Enter to activate this console. [   28.960000] Loading modules backported from Linux version master-2014-01-23-0-g62c147d
[   28.970000] Backport generated by backports.git backports-20140124-0-g1256d3e
[   29.090000] cfg80211: Calling CRDA to update world regulatory domain
[   29.090000] cfg80211: World regulatory domain updated:
[   29.100000] cfg80211:  DFS Master region: unset
[   29.100000] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[   29.110000] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[   29.120000] cfg80211:   (2457000 KHz - 2482000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[   29.120000] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[   29.130000] cfg80211:   (5170000 KHz - 5250000 KHz @ 80000 KHz), (300 mBi, 2000 mBm)
[   29.140000] cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz), (300 mBi, 2000 mBm)
[   29.150000] cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm)
[   30.040000] ieee80211 phy0: Atheros AR9330 Rev:1 mem=0xb8100000, irq=2
[   30.050000] cfg80211: Calling CRDA for country: US
[   30.050000] cfg80211: Regulatory domain changed to country: US
[   30.060000] cfg80211:  DFS Master region: FCC
[   30.060000] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[   30.070000] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2700 mBm)
[   30.080000] cfg80211:   (5170000 KHz - 5250000 KHz @ 80000 KHz), (300 mBi, 1700 mBm)
[   30.090000] cfg80211:   (5250000 KHz - 5330000 KHz @ 80000 KHz), (300 mBi, 2400 mBm)
[   30.090000] cfg80211:   (5490000 KHz - 5600000 KHz @ 80000 KHz), (300 mBi, 2400 mBm)
[   30.100000] cfg80211:   (5650000 KHz - 5710000 KHz @ 40000 KHz), (300 mBi, 2400 mBm)
[   30.110000] cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz), (300 mBi, 3000 mBm)
[   30.120000] cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 4000 mBm)
[   30.640000] PPP generic driver version 2.4.2
[   30.800000] ip_tables: (C) 2000-2006 Netfilter Core Team
[   31.020000] NET: Registered protocol family 24
[   31.070000] nf_conntrack version 0.5.0 (456 buckets, 1824 max)
[   35.840000] device eth0 entered promiscuous mode

w trybie recovery:

U-Boot 1.1.4-gd0be0bfd (Sep 29 2013 - 10:06:31)

AP121 (ar9330) U-boot

DRAM:  32 MB
led turning on for 1s...
id read 0x100000ff
flash size 4194304, sector count = 64
Flash:  4 MB
Using default environment

In:    serial
Out:   serial
Err:   serial
Net:   ag7240_enet_initialize...
No valid address in Flash. Using fixed address
No valid address in Flash. Using fixed address
: cfg1 0x5 cfg2 0x7114
eth0: 00:03:7f:09:0b:ad
ag7240_phy_setup
eth0 up
: cfg1 0xf cfg2 0x7214
eth1: 00:03:7f:09:0b:ad
athrs26_reg_init_lan
ATHRS26: resetting s26
ATHRS26: s26 reset done
ag7240_phy_setup
eth1 up
eth0, eth1
auto update firmware: is_auto_upload_firmware = 1!
eth1 link down
eth0 link down
Using eth1 device
TFTP from server 192.168.0.66; our IP address is 192.168.0.86
Filename 'mr3020v1_tp_recovery.bin'.
Load address: 0x80800000
Loading: T T T T T T T T T T
Retry count exceeded; starting again
eth0 link down
eth1 link down

link down :-( A kabel jest dopięty :-( Winda nie widzi linka. MAC Address zupełnie nie pasuje do tego z pudełka. Uboot też z MR3020. Da się coś z tym zrobić?

58

(40 odpowiedzi, napisanych Oprogramowanie / Software)

Wytłumacz mi dlaczego dziś koło 17 raz zdarzyła mi się identyczna sytuacja? Po prostu rebind protection nie zadziałał - przypadek.

59

(40 odpowiedzi, napisanych Oprogramowanie / Software)

Router blokuje. W wątku obok opisałem co i jak. OpenWRT domyślnie blokuje odpowiedzi DNS z puli adresów nieroutowalnych.

Póki co testowo captcha jest raz na dobę. Captcha jest aktywana dla karty z danym IMSI.

Zaloguj się przez ssh przy pomocy putty na adres gargoyle. Potem:
vi /etc/config/dhcp
wcisnij i (tryb edycji)
i zmien wpis z 1 na 0:
option rebind_protection 0

/etc/config/dhcp

trzeba wyłączyć dns rebind protection. Brakuje w gargoyle DUŻEGO przycisku reconnect i wyczyść cache DNS.

62

(40 odpowiedzi, napisanych Oprogramowanie / Software)

Właśnie testuję. Trzeba wpisać kod. Potem się rozłączyć modemem, połączyć na nowo i hula.

63

(39 odpowiedzi, napisanych Oprogramowanie / Software)

Na 99% jest tam działający AA (nie widzę cyklicznego zapalania się diody co kilka sekund, wchodzi normalnie w failsafe - szybkie migania). UBoot jest jakis dziwny, bo jesli popodpięciu zasialnia wcisnę reset na chwilę żadna dioda potem już nie świeci.

Podepne konsole i zobaczę co on tam wrzucił.  Obawiam się, że mogło strzlić PHY bo po podpięciu zasilania nawet na moment nie widzę linka. W sumie to wystarczy żeby się przez konsolę dostać do /etc/config/network i włączyć mu wifi albo wgrać gargulca bo on ma od ręki wifi on.

64

(39 odpowiedzi, napisanych Oprogramowanie / Software)

Cisza na drugim końcu. Wiec pewnie przez tftp nic nie wrzuce. Nie mam jak do niego sie dostać. Podepnę serial wieczorem w domu i zobacze co i jak. Eth nie dziala wifi off. Tylko konsola mi zostala.

65

(39 odpowiedzi, napisanych Oprogramowanie / Software)

Właśnie dostałem do ręki dziwnego wr703n. Na oko działa, ale port lan jest martwy. Gość wgrał soft z mr3020, potem wrzucił gargulca po wifi, potem wrzucił AA i .... od tego czasu nie ma dostępu do LAN.

Możliwe, że podmienił uboot'a na jakąś wersję nie inicjalizująca portu lan? Router wchodzi w failsafe miga normalnie. Być może lan nie było wcześniej bo na gargulcu korzystał tylko z wifi.

Rozumiem,  że po serialu to można odratować wgrywają np. gargoyle, ale co z tym lan, wstanie?

Nie sądzę bo NIC nie zmieniałem w konfiguracji. Ot tak dla sportu dziś w nocy zaczęły się restartować. Tylko z 1043 się połapałem bo ładował co 2 minuty firmware do drukarki i po nocy hałasował, a dziś chciałem drukować i raz działał, dwa razy nie. Flash był wypełniony na nim tylko w 53%.

Problem dotyczy 1.5.11.7 (wr1043nd), 1.6.0.2 (wr703n) i 1.6.0.4 (GL.iNET). Firstboot i ponowna konfiguracja i wszystko wraca do normy.

Całą noc w kółko mi się drukarka restartowała, aż żona wkr.... wyłączyła ją w diabły. Dopiero wieczorem po powrocie z pracy załapałem dlaczego hmm

Trzy routery 1043, wr703n, gl-inet to samo! Co 1-3 minuty restart!

Wątpię aby to był przypadek.

Edit: Po firstboot i konfiguracji problem się chyba rozwiązał (na 2 routerach sprawdzałem).

69

(421 odpowiedzi, napisanych Oprogramowanie / Software)

A sterowanie z IR podpiętego przez GPIO lub port szeregowy? Da się zrobić cos jak: http://forum.stmlabs.com/showthread.php?tid=5549

70

(7 odpowiedzi, napisanych Oprogramowanie / Software)

Daj znać jakie efekty. Ja poległem. Wolałem użyć zwykłego zarządzalnego switcha.

co? Nie wiem czy ktokolwiek rozumie co chcesz osiągnąć.

Tak, też tak mamy. 1043 ma jakiś feler, ciągle ktoś na to narzeka. U mnie pomaga wciśniencie QSS na obudowie 2x.

To nie błąd firmware. Widać, że jest warm state więc firwamre już jest.

No frontend attached to w moim wypadku problem z hubem USB, wyjmił stick włóż jeszcze raz jeśli jest załadowany: it913x_fe.

74

(590 odpowiedzi, napisanych Oprogramowanie / Software)

Z tego co widzę to VC++, ale piszą o komunikacji dwukierunkowej i sumie kontrolnej. Myślę, że z sourca da się coś wyciągnąć. Niby nie pieniądze więc może zaryzykuję.

75

(590 odpowiedzi, napisanych Oprogramowanie / Software)

http://www.aliexpress.com/item/Usb-cont … 23266.html

Ruszy?