1

(8 odpowiedzi, napisanych Oprogramowanie / Software)

Tu znalazlem tymczasowe rozwiaznie problemu

https://github.com/openwrt/packages/issues/19376

Dziala, jedynie w logach pojawia sie taki blad:

Thu Oct 27 10:34:34 2022 daemon.err transmission-daemon[2240]: [2022-10-27 10:34:34.232] debian-11.5.0-amd64-netinst.iso IPv4 DHT announce failed (good, 192 nodes): Function not implemented (tr-dht.c:737)
Thu Oct 27 10:34:39 2022 daemon.err transmission-daemon[2240]: [2022-10-27 10:34:39.232] debian-11.5.0-amd64-netinst.iso IPv4 DHT announce failed (good, 192 nodes): No error information (tr-dht.c:737)
Thu Oct 27 10:34:45 2022 daemon.err transmission-daemon[2240]: [2022-10-27 10:34:45.231] debian-11.5.0-amd64-netinst.iso IPv4 DHT announce failed (good, 192 nodes): Function not implemented (tr-dht.c:737)
Thu Oct 27 10:34:50 2022 daemon.err transmission-daemon[2240]: [2022-10-27 10:34:50.231] debian-11.5.0-amd64-netinst.iso IPv4 DHT announce failed (good, 192 nodes): Invalid argument (tr-dht.c:737)
Thu Oct 27 10:34:55 2022 daemon.err transmission-daemon[2240]: [2022-10-27 10:34:55.231] debian-11.5.0-amd64-netinst.iso IPv4 DHT announce failed (good, 198 nodes): Function not implemented (tr-dht.c:737)
Thu Oct 27 10:35:04 2022 daemon.err transmission-daemon[2240]: [2022-10-27 10:35:04.234] debian-11.5.0-amd64-netinst.iso IPv4 DHT announce failed (good, 201 nodes): Invalid argument (tr-dht.c:737)
Thu Oct 27 10:35:13 2022 daemon.err transmission-daemon[2240]: [2022-10-27 10:35:13.232] debian-11.5.0-amd64-netinst.iso IPv4 DHT announce failed (good, 201 nodes): Operation in progress (tr-dht.c:737)
Thu Oct 27 10:35:22 2022 daemon.err transmission-daemon[2240]: [2022-10-27 10:35:22.231] debian-11.5.0-amd64-netinst.iso IPv4 DHT announce failed (good, 201 nodes): Invalid argument (tr-dht.c:737)

Wychodzi na to ze nie tylko ja mam taki problem.

2

(8 odpowiedzi, napisanych Oprogramowanie / Software)

Cezary napisał/a:

A czy ty czasami nie zamontowałeś nośnika po uruchomieniu transmission? Wyłącz teraz transmission i włącz ponownie.

zrobilem tak i niestety bez zmian.

Ustawilem tez:

transmission.@transmission[0].preallocation='0'

i zaczal sciagac, sciagnal 248MB (62%) i sie wywalil na brak miejsca.

Czy to znaczy ze dysk sie wyspal i najlepiej najpierw sformatowac go?
Czy rowniez na ext4?

3

(8 odpowiedzi, napisanych Oprogramowanie / Software)

Cezary napisał/a:

1. Sprawdź czy /mnt ma prawa zapisu dla wszystkich
lub 2. Zmień tego użytkownika transmission na root

Zmienilem uzytkownika Transmission na root, poszedl dalej i pokazuje brak miejsc na dysku:

Wed Oct 26 18:55:40 2022 daemon.err transmission-daemon[2244]: [2022-10-26 18:55:40.217] Unable to create session lock file (2): No such file or directory (session-id.c:96)
Wed Oct 26 18:56:04 2022 daemon.err transmission-daemon[2244]: [2022-10-26 18:56:04.221] Couldn't preallocate file "/mnt/sda1/.incomplete/debian-11.5.0-amd64-netinst.iso.part" (sparse, size: 400556032): No space left on device (fdlimit.c:219)
Wed Oct 26 18:56:04 2022 daemon.err transmission-daemon[2244]: [2022-10-26 18:56:04.222] debian-11.5.0-amd64-netinst.iso tr_fdFileCheckout failed for "/mnt/sda1/.incomplete/debian-11.5.0-amd64-netinst.iso.part": No space left on device (inout.c:95)
Wed Oct 26 18:56:04 2022 daemon.err transmission-daemon[2244]: [2022-10-26 18:56:04.222] debian-11.5.0-amd64-netinst.iso No space left on device (/mnt/sda1/Downloads/debian-11.5.0-amd64-netinst.iso) (torrent.c:574)

Miejsce na dysku jest:

root@OpenWrt:~# df -h
Filesystem                Size      Used Available Use% Mounted on
/dev/root                 4.0M      4.0M         0 100% /rom
tmpfs                   233.1M    240.0K    232.9M   0% /tmp
/dev/ubi0_1              24.0M      6.3M     16.4M  28% /overlay
overlayfs:/overlay       24.0M      6.3M     16.4M  28% /
tmpfs                   512.0K         0    512.0K   0% /dev
/dev/sda1               915.8G    100.0K    869.2G   0% /mnt/sda1

i mam wylaczone:

transmission.@transmission[0].watch_dir_enabled='false'

4

(8 odpowiedzi, napisanych Oprogramowanie / Software)

Cezary napisał/a:

mount wykonaj i zobacz czy masz dysk podmontowany.

Prosze:

root@OpenWrt:~# mount
/dev/root on /rom type squashfs (ro,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,noatime)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,noatime)
cgroup2 on /sys/fs/cgroup type cgroup2 (rw,nosuid,nodev,noexec,relatime,nsdelegate)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,noatime)
/dev/ubi0_1 on /overlay type ubifs (rw,noatime,assert=read-only,ubi=0,vol=1)
overlayfs:/overlay on / type overlay (rw,noatime,lowerdir=/,upperdir=/overlay/upper,workdir=/overlay/work)
tmpfs on /dev type tmpfs (rw,nosuid,noexec,noatime,size=512k,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,noatime,mode=600,ptmxmode=000)
debugfs on /sys/kernel/debug type debugfs (rw,noatime)
none on /sys/fs/bpf type bpf (rw,nosuid,nodev,noexec,noatime,mode=700)
/dev/sda1 on /mnt/sda1 type ext4 (rw,relatime)
root@OpenWrt:~# block info | grep "/dev/sd"
/dev/sda1: UUID="6a66e6ae-56d7-4cd5-9cbf-5ce2eeb70535" VERSION="1.0" MOUNT="/mnt/sda1" TYPE="ext4"

Czesc,
Czy  mozecie mi podpowiedziec co przeoczylem lub robie zle:
Transmission nie ma dostepu do ukrytych folderow .incomplete oraz .settings

Wed Oct 26 16:20:39 2022 daemon.err transmission-daemon[2242]: [2022-10-26 16:20:39.157] Couldn't create "/mnt/sda1/.incomplete": Permission denied (fdlimit.c:174)
Wed Oct 26 16:20:39 2022 daemon.err transmission-daemon[2242]: [2022-10-26 16:20:39.158] debian-11.5.0-amd64-netinst.iso tr_fdFileCheckout failed for "/mnt/sda1/.incomplete/debian-11.5.0-amd64-netinst.iso.part": Permission denied (inout.c:95)

User i groupa to Transmission

root@OpenWrt:/mnt/sda1# uci show transmission
transmission.@transmission[0]=transmission
transmission.@transmission[0].config_overwrite='1'
transmission.@transmission[0].user='transmission'
transmission.@transmission[0].group='transmission'

i tak samo sa ustawione foldery

root@OpenWrt:/mnt/sda1# ls -la
drwxrwxrwx    6 root     root          4096 Oct 25 16:02 .
drwxrwxrwx    1 root     root           224 Oct 24 18:13 ..
drwxrwxrwx    2 transmis transmis      4096 Oct 25 17:20 .incomplete
drwxrwxrwx    5 transmis transmis      4096 Oct 25 16:02 .settings
drwxrwxrwx    2 root     root          4096 Oct 24 18:27 Downloads
drwxrwxrwx    2 root     root         16384 Oct 23 15:12 lost+found

nie wiem tylko dlaczego tu nie pokazuje gdzie podmontowal:

root@OpenWrt:~#  df -kh /mnt
Filesystem                Size      Used Available Use% Mounted on
overlayfs:/overlay       24.0M      6.3M     16.4M  28% /

6

(4,555 odpowiedzi, napisanych Oprogramowanie / Software)

Dziękuje za zainteresowanie i pomoc.
Mam tam switch z PoE, dlatego chcialbym od razu go wykorzystać.
Szukałem cos niedużego i niedrogiego, żeby na suficie powiesić, no i z Qualcomm’em bo podobno najlepiej OpenWrt go wykorzystuje, dlatego Meriaki mi przyszedł na myśl


Cezary napisał/a:

Dziś się pojawiło wsparcie dla  MikroTik cAP ac, też się łapie na założenia.

Ten Mikrotik chyba będzie najlepszy: bo nie trzeba bawić się w używki, ponieważ nowy można kupić w przystępnej cenie

7

(4,555 odpowiedzi, napisanych Oprogramowanie / Software)

Czesc,
Poszukuje AP do piwicy pod Openwrt, wymagania:
-    Port Gbit
-    Zasilanie POE
-    CPU Qualcomm
-   
Malo jest z Gbit, jedyne co znalazlem sensowanego to Meriaki MR33, tam tylko trzeba wgrac u-boot z 2012 do Nand, bo w nowszych u-boot zablokowali uart.
Programatora do wgrania wsadu w ukladzie, nie oplaca mi sie kupowac dla jednej sztuki, zostaje tylko wylutowanie I wrzucenie do programatora zewn.

Narazie szukam tego Meriaki w dobrej  cenie, zwlaszcza ze troche zabawy z tym bedzie, ale moze przychodzi komus do glowy jakis inny sprzecik spelniajacy w/w wymagania?

Pozdrawiam
Marcin

8

(9 odpowiedzi, napisanych Sprzęt / Hardware)

Cezary napisał/a:

Wejdź w bootloader, pewnie jest jakaś opcja do załadowania firmware.

to jeszcze nie moj poziom smile
Uruchomilem wifi poprzez serial console i polaczylem sie. Wgralem przez GUI ostatnie OpenWRT, lecz duzo to nie dalo.

Znowu polaczylem sie poprzez wifi i wgralem obrazy poprzez WinSCP i LAN ruszyl.
Nastepnie wgralem przez GUI:

luci-19.07-snapshot-r11328-81266d9001-ipq40xx-generic-avm_fritzrepeater-1200-squashfs-sysupgrade

i z tym obrazem nie ma juz problemow. Tak jak mowiles bug jakis musi byc, zglosze to.

W podziekowaniu za pomoc postawilem kawe, sam bym sobie nie poradzil, a i przy okazji czegos nowego sie nauczylem.
Dzieki Cezary.

9

(9 odpowiedzi, napisanych Sprzęt / Hardware)

wczoraj probowalem wgrac uboot, uruchomilem tftp, wskazalem plik i interface i nic sie nie dzialo.
Czy teraz jak mam podlaczone przez serial to czy moge jakosc wymusic zaladowanie?

10

(9 odpowiedzi, napisanych Sprzęt / Hardware)

Zrobile firstboot, lecz dalej bez zmian.

Po ustawieniu dhcp komp dostaje dziwny adres:


Ethernet adapter Ethernet:

   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Realtek PCIe GbE Family Controller
   Physical Address. . . . . . . . . : 21-73-ED-36-8A-F1
   DHCP Enabled. . . . . . . . . . . : Yes
   Autoconfiguration Enabled . . . . : Yes
   Link-local IPv6 Address . . . . . : fe80::d815:7c4a:13b0:83ce%5(Preferred)
   Autoconfiguration IPv4 Address. . : 169.254.83.206(Preferred)
   Subnet Mask . . . . . . . . . . . : 255.255.0.0
   Default Gateway . . . . . . . . . :

Czy router smietnik?

11

(9 odpowiedzi, napisanych Sprzęt / Hardware)

Podlaczylem sie po serial, zatrzymuje sie na:

[   16.410847] ath10k_ahb a800000.wifi: htt-ver 2.2 wmi-op 6 htt-op 4 cal pre-cal-file max-sta 32 raw 0 hwcrypto 1
[   16.619461] kmodloader: done loading kernel modules from /etc/modules.d/*
[   21.562453] br-lan: port 1(eth0) entered blocking state
[   21.562713] br-lan: port 1(eth0) entered disabled state
[   21.570180] device eth0 entered promiscuous mode
[   23.687742] ess_edma c080000.edma eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[   23.687842] br-lan: port 1(eth0) entered blocking state
[   23.694565] br-lan: port 1(eth0) entered forwarding state
[   23.700159] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready

po wscisnieciu enter mam:

[
BusyBox v1.33.0 () built-in shell (ash)

  _______                     ________        __
|       |.-----.-----.-----.|  |  |  |.----.|  |_
|   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
|_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
-----------------------------------------------------------------------------
|                                                                           |
| OpenWrt 21.02-SNAPSHOT, r15866-17a627ec82                                 |
|                                                                           |
| Build time: 2021-03-01 18:31 CET                                          |
| Cezary Jackiewicz, https://eko.one.pl                                     |
|                                                                           |
-----------------------------------------------------------------------------
| Machine: AVM FRITZ!Repeater 1200                                          |
| Uptime: 0d, 00:00:35                                                      |
| Load: 0.40 0.10 0.03                                                      |
| Flash: total: 79.9MB, free: 75.7MB, used: 0%                              |
| Memory: total: 243.8MB, free: 213.1MB, used: 12%                          |
| Leases: 0                                                                 |
| lan: static, 192.168.1.1                                                  |
-----------------------------------------------------------------------------
=== WARNING! ================================================================
There is no root password defined on this device!
Use the "passwd" command to set up a new password
in order to prevent unauthorized SSH logins.
-----------------------------------------------------------------------------
root@OpenWrt:/#

zrestartowalem i wcisnal f by wejsc w tryb fail, miga czerwona dioda:


root@(none):/# wget http://192.168.1.2/openwrt-19.07.3-ipq4 … pgrade.bin -O /tmp/openwrt-19.07.3-ipq40xx-generic-avm_fritzrepeater-1200-squashfs-sysupgrade.bin
wget http://192.168.1.2/openwrt-19.07.3-ipq4 … c-avm_frit
zrepeater-1200-squashfs-sysupgrade.bin -O /tmp/openwrt-19.07.3-ipq40xx-generic-a
vm_fritzrepeater-1200-squashfs-sysupgrade.bin
Downloading 'http://192.168.1.2/openwrt-19.07.3-ipq4 … pgrade.bin'
Failed to send request: Operation not permitted

Przez WinSCP tez nie moge sie polaczyc.
Czy zostaje tylko ten sposob:
https://www.youtube.com/watch?v=mN7u79EupGQ&t=389s

Jak moglbym jeszcze wymuscic wgranie przez tftp

Czesc
Po aktualizacji do
luci-21.02-snapshot-r15866-17a627ec82-ipq40xx-generic-avm_fritzrepeater-1200-squashfs-sysupgrade
router przestal odpowiadac:

Pinging 192.168.1.1 with 32 bytes of data:
Request timed out.
Request timed out.
Reply from 192.168.1.1: bytes=32 time=8ms TTL=64
Request timed out.

Ping statistics for 192.168.1.1:
    Packets: Sent = 4, Received = 1, Lost = 3 (75% loss),
Approximate round trip times in milli-seconds:
    Minimum = 8ms, Maximum = 8ms, Average = 8ms

Niestety nie moge sie polaczyc po SSH.
Wciskalem tez przycisk by zresetowac.

Czy jest jakis sposob zeby go postawic?

13

(515 odpowiedzi, napisanych Oprogramowanie / Software)

Cezary napisał/a:

Nie, ten model nie jest przewidziany do tego. Masz jeszcze 14M wolnego, zawsze coś na usb możesz zrobić. Do czego ci potrzebne więcej flash?

Pytam tylko edukacyjnie, ucze sie jeszcze OpenWrt i myslalem ze cos zle zrobilem.
Dziekuje za pomoc

14

(515 odpowiedzi, napisanych Oprogramowanie / Software)

Cezary napisał/a:

Tak, i na dodatek ten router ma dual boot, więc ma kopię drugiego systemu. Zrób cat /proc/mtd i zobacz ile tam masz partycji.


dev:    size   erasesize  name
mtd0: 00040000 00020000 "SBL1"
mtd1: 00140000 00020000 "MIBIB"
mtd2: 00140000 00020000 "SBL2"
mtd3: 00280000 00020000 "SBL3"
mtd4: 00120000 00020000 "DDRCONFIG"
mtd5: 00120000 00020000 "SSD"
mtd6: 00280000 00020000 "TZ"
mtd7: 00280000 00020000 "RPM"
mtd8: 00140000 00020000 "art"
mtd9: 00100000 00020000 "APPSBL"
mtd10: 00040000 00020000 "u_env"
mtd11: 00040000 00020000 "s_env"
mtd12: 00040000 00020000 "devinfo"
mtd13: 02800000 00020000 "kernel1"
mtd14: 02500000 00020000 "rootfs1"
mtd15: 02800000 00020000 "kernel2"
mtd16: 02500000 00020000 "rootfs2"
mtd17: 02080000 00020000 "syscfg"

mozna cos zrobic by zwolnic miejsce?

15

(515 odpowiedzi, napisanych Oprogramowanie / Software)

Cezary,
Ten Dashboard to naprawde fajna sprawa, ja rowniez chce wspierac Twoja prace, dlatego przed chwila kupilem kawe.

Czy mozesz mi powiedziec dlaczego na moim routerze pokazuje Flash- total tylko 22.5MB, zamiast 128MB, czy reszte zajmuje system?

| OpenWrt 21.02-SNAPSHOT, r15866-17a627ec82                                 |
|                                                                           |
| Build time: 2021-03-01 17:56 CET                                          |
| Cezary Jackiewicz, https://eko.one.pl                                     |
|                                                                           |
-----------------------------------------------------------------------------
| Machine: Linksys EA8500 WiFi Router                                       |
| Uptime: 0d, 01:59:29                                                      |
| Load: 0.11 0.11 0.09                                                      |
| Flash: total: 22.5MB, free: 14.7MB, used: 31%                             |
| Memory: total: 466.7MB, free: 380.7MB, used: 18%                          |
| Leases: 0                                                                 |
| lan: static, 192.168.1.79                                                 |
| wan: dhcp, ?                                                              |
| wan6: dhcpv6, ?                                                           |
| radio0: lan, mode: ap, ssid: OpenSys24, channel: 11, conn: 1              |
-----------------------------------------------------------------------------
| CPU freq: 1.40GHz, 1.40GHz, 800.00MHz, 800.00MHz                          |
| CPU temperature: 59.40 C, 59.40 C, 58.30 C, 57.70 C, 60.58 C, 57.77 C, 60.56 C, 58.30 C, 58.78 C, 54.90 C, 61.17 C |
| Wi-Fi chip temp: 47.00 C,                                                 |
-----------------------------------------------------------------------------

prawda, masz racje, nie ma co drazyc.

Jeszcze raz dziekuje za pomoc i poswiecony czas.

Pozdrawiam
Marcin

tylko ja go nie wrzucalem, bo mi sie nie udalo, a Openwrt w Ram pojawil sie po uruchomieniu skryptu:

eva_ramboot.py 192.168.178.1 uboot-fritz1200.bin

a to zupelnie inny plik, dlatego tego nie rozumiem.

tam jest trzeci plik:

openwrt-19.07.0-ipq40xx-generic-avm_fritzrepeater-1200-initramfs-fit-uImage.itb

jest na wiki napisane zeby zamienic na FRITZ1200.bin i wrzucic na serwer, lecz on nie jest nigdzie wykorzystany.

Pytam tylko po to, by to do konca wszystko zrozumiec.

Dziekuje za pomoc.
Teraz poszlo bez problemu. Dzieki Tobie udalo mi sie na stale wgrac openwrt.

Tak juz na marginesie, nie rozumiem po co na wiki kazali zrobic to:

The U-Boot will now start. Now assign yourself the IP address 192.168.1.70/24. Copy the OpenWrt initramfs (!) image to a TFTP server root directory and rename it to FRITZ1200.bin.

Jak pozniej uzywa sie ten drugi plik(uboot-fritz1200.bin) :

> mtd write /path/to/uboot-fritz1200.bin uboot0
> mtd write /path/to/uboot-fritz1200.bin uboot1

nie wiem czy udalo mi sie wgrac tymczasowy obraz, bo moge juz wejsc przez SSH:

BusyBox v1.30.1 () built-in shell (ash)

  _______                     ________        __
|       |.-----.-----.-----.|  |  |  |.----.|  |_
|   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
|_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
-----------------------------------------------------
OpenWrt 19.07.3, r11063-85e04e9f46
-----------------------------------------------------
=== WARNING! =====================================
There is no root password defined on this device!
Use the "passwd" command to set up a new password
in order to prevent unauthorized SSH logins.
--------------------------------------------------

root@OpenWrt:~# ls -all
drwxr-xr-x    2 root     root            40 May 16 18:32 .
drwxrwxrwt   16 root     root           360 Jan  1  1970

nie wiem tylko jaka sciezke podac by skopiowac:

> mtd write /path/to/uboot-fritz1200.bin uboot0
  > mtd write /path/to/uboot-fritz1200.bin uboot1

popraw mnie jesli sie myle, czy dobrze rozumuje (bo fachowcem nie jestem):
-wgrywajac eva_ramboot, wgrywam do RAM routera linux z klientem TFTP, ktory ma sie polaczyc z serwerem na moim kompie by odebrac plik z obrazem
- serwer TFTP musi miec okreslony adres ip (i tu wlasnie jest pytanie czy ustawiam dobry), po to by router mogl sie do niego podlaczyc i pobrac plik z obrazem

Jedna rzecz mnie niepokoi: na stronie operwrt mowia zeby uruchomic plik eva z offset:

eva_ramboot.py --offset 0x85000000 192.168.178.1 uboot-fritz1200.bin

u mnie skrypt wywalal blad ze potrzebuje trzech argumetow, wiec wywoluje tak:

eva_ramboot.py  192.168.178.1 uboot-fritz1200.bin

podejrzewam ze to i tak trzeba ustawic wiec w linijce pliku eva:

haddr = 0x80000000 + addr

zmienilem na:

haddr = 0x85000000 + addr

efekt tego jest taki ze juz nie wywala przerwania polaczenia tylko przechodzi do wiesza polecen:

C:\openwrt> eva_ramboot4.py 192.168.178.1 uboot-fritz1200.bin
> SETENV memsize 0x07f80000
< 200 SETENV command successful
> SETENV kernel_args_tmp mtdram1=0x8cf80000,0x88000000
< 200 SETENV command successful
> MEDIA SDRAM
< 200 Media set to MEDIA_SDRAM

C:\openwrt>

Nie wiem czy to oznacza:
czy to ze boot zostal wgrany i probuje sie tylko polaczyc z serwerem TFTP na moim kompie?
Probowalem tez w tym momecie ping do routera po adresach: 192.168.1.1, 192.168.178.1 ale bez oznak zycia

ok.
Zgodnie z ponizszym linkiem sciagnalem tftp server:
https://openwrt.org/docs/guide-user/ins … _my_device
probowalem adresy:
192.168.178.10
192.168.178.70 (jak sugeruje strona openwrt)
192.168.1.1 , jak sugeruje Gosc ponizej
https://lists.openwrt.org/pipermail/ope … 11500.html
lecz dalej to samo.

W powyzszym linku jest napisane:

3. Check if the key linux_fs_start is not set to 1 in tffs:
$ fritz_tffs_nand -d /dev/mtd1 -n linux_fs_start
If it is set to 1, the bootloader will select the wrong set of
partitions. Restart the box and install an FritzOS upgrade or do a
recovery. Afterwards start again at step 1.

nie wiem jak z poziomu win to sprawdzic, wiec przywrocilem ustawienia fabryczne na AVM, lecz rowniez to nic nie dalo.
Czy wiesz gdzie sprawdzic po jakim IP laczy sie router z serverem TFTP?
Moze ip mam niewlasciwe?

Miales racje, w zyciu bym na to nie wpadl. Dziekuje.

Natrafilem na kolejna sciane.

Otrzymalem potwierdzenie:

> SETENV memsize 0x07f80000
< 200 SETENV command successful
> SETENV kernel_args_tmp mtdram1=0x87f80000,0x88000000
< 200 SETENV command successful
> MEDIA SDRAM
< 200 Media set to MEDIA_SDRAM

po uruchomieniu serwera FTP (PumpKIN), wysylam plik zgodnie z tutkiem (ip PC: 192.168.178.70)"

https://openwrt.org/toh/avm/avm_fritz_repeater_1200

lecz po kilku senkundach otrzymuje komunikat z cmd:

Traceback (most recent call last):
  File "C:\openwrt\eva_ramboot.py", line 35, in <module>
    ftp.storbinary('STOR 0x%08x 0x88000000'%(haddr), img)
  File "C:\Python38\lib\ftplib.py", line 492, in storbinary
    conn.sendall(buf)
ConnectionResetError: [WinError 10054] Istniejące połączenie zostało gwałtownie zamknięte przez zdalnego hosta

Sprawdzilem tez ze komunikat o zamnieciu polaczenia wystepuje po tym samym czasie (kilku sekund) nawet jak nie mam uruchomionego serwera FTP

Czesc,
Staram sie wgrac OpenWrt do AVM 1200.
Ustawilem IP:
router: 192.168.178.1
PC: 192.168.178.10

pod windows w cmd wydaje komende:

eva_ramboot.py 192.168.178.1 uboot-fritz1200.bin

plik eva_ramboot wyglada tak:

#!/usr/bin/python

from ftplib import FTP
from sys import argv
from os import stat

assert len(argv) == 3
ip = argv[1]
image = argv[2]

size = stat(image).st_size
# arbitrary size limit, to prevent the address calculations from overflows etc.
assert size < 0x2000000

# We need to align the address. A page boundary seems to be sufficient on 7362sl
# and 7412
addr = ((0x8000000 - size) & ~0xfff)
haddr = 0x80000000 + addr
img = open(image, "rb")

ftp = FTP(ip, 'adam2', 'adam2')

def adam(cmd):
    print("> %s"%(cmd))
    resp = ftp.sendcmd(cmd)
    print("< %s"%(resp))
    assert resp[0:3] == "200"

ftp.set_pasv(True)
# The following parameters allow booting the avm recovery system with this
# script.
adam('SETENV memsize 0x%08x'%(addr))
adam('SETENV kernel_args_tmp mtdram1=0x%08x,0x88000000'%(haddr))
adam('MEDIA SDRAM')
ftp.storbinary('STOR 0x%08x 0x88000000'%(haddr), img)
img.close()
ftp.close()

Jednak dostaje taki komunikat:

C:\openwrt> eva_ramboot2.py 192.168.178.1 uboot-fritz1200.bin
Traceback (most recent call last):
  File "C:\openwrt\eva_ramboot2.py", line 38, in <module>
    ftp = FTP(ip, 'adam2', 'adam2')
  File "C:\Python38\lib\ftplib.py", line 117, in __init__
    self.connect(host)
  File "C:\Python38\lib\ftplib.py", line 152, in connect
    self.sock = socket.create_connection((self.host, self.port), self.timeout,
  File "C:\Python38\lib\socket.py", line 808, in create_connection
    raise err
  File "C:\Python38\lib\socket.py", line 796, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [WinError 10061] Nie można nawiązać połączenia, ponieważ komputer docelowy aktywnie go odmawia

Czy mozecie podowiedziec co moze byc przyczyna?, bo ping z routerem jest.

Pozdrawiam

Czesc,
W routerze MT3420 musze edytowac plik /etc/config/network. Korzystam z vi bo tylko to mam dostepne.
Wciskam "i" i edytuje, wciskam "esc" i  przechodze do wiersza polecen i  wpisuje :wq, :w lub :wq! - zero reakcji, dopiero jak uzyje :q pojawia sie komunikat ze wyszedl bez zapisu, ale przeciez nie o to mi chodzi.
Czy trzeba miec jakies uprawnienia do zapisu?  :wq! powinien dzialac bez uprawnien.

Pozdrawiam
Marcin