26

(692 odpowiedzi, napisanych Sprzęt / Hardware)

Cezary napisał/a:

Nie wszystkie można. Te które możesz są w /sys/class/leds. wpisane none do trigger i 0 do brightness wyłączy diodę, robisz to np. w cronie.

Na snapshocie da się sterować wszystkimi diodami LED oprócz tych trzech z tyłu od portów 1G. W sumie planuję to też obczaić. W pierwszej wersji mogłem sterować tymi diodami z małą gwiazdką, że wszystkie trzy działały synchronicznie.

27

(9 odpowiedzi, napisanych Sprzęt / Hardware)

Jak już mieć switcha 2.5Gb i zapewne sfp 10Gb to czemu nie karta i dac / światłowód?

Karta na M.2 idealnie mieści się do terminala. Akurat byłą promka za około 6 dych to wziąłem dwie. Ale masz rację jak już iść w 10Gbps to raczej światłowód, który mniej się grzeje. Mam też kartę miedzianą 10G na Thunderbolta, która w idle ma 65 stopni xD

28

(9 odpowiedzi, napisanych Sprzęt / Hardware)

Na twoim miejscu brałbym Realteka na 5Gb/s z chipsetem RTL8126. Na allegro są poniżej stówy, więc niewiele drożej niż wersja 2.5Gb/s. Mam od jakiegoś czasu wersję na M.2 i działa spoko. Jest tu mała gwiazdka bo potrzebny jest kernel 6.9+.

29

(14 odpowiedzi, napisanych Sprzęt / Hardware)

szyper napisał/a:

A na upartego wlozysz wtyk rj11 do rj45.
Nie wiem czy nie taniej/lepiej cos co daje bridge z neostrady i normalny router dać.
A jaka maksymalna predkosc po neostradzie na miedzi - 80? Daleko od centrali?

Potwierdzam. Routery AVM są tak zaprojektowane, żeby do tego złącza pasowały obie wtyczki. Sprawdziłem to przed chwilą na zwykłym kablu mającym RJ11 z obu stron. Link VDSL2 się zestawił poprawnie, więc kontakt elektryczny też jest.

30

(14 odpowiedzi, napisanych Sprzęt / Hardware)

Cezary napisał/a:

AVM nie mają RJ45 a nie RJ11?

Tak. Potrzebny jest kabel mający RJ45 z jednej strony i RJ11 z drugiej.

31

(14 odpowiedzi, napisanych Sprzęt / Hardware)

W sumie są jeszcze konwertery Planet VC-231G, które można było ustawić w trybie CPE i działały z neostradą. Plusem tego rozwiązania było to, że można było podpiąć dowolny router. Minusem jest cena. One są drogie i nie wiem czy znajdziesz taki konwerter w rozsądnej cenie. One działały z VDSL2. Nie wiem czy działały z ADSL2+, który ciebie interesuje.

32

(14 odpowiedzi, napisanych Sprzęt / Hardware)

Z szybszych routerów jest jeszcze AVM FritzBox 7520 i 7530. Chyba spełnia te wszystkie wymagania. To ostatni router, który używałem z Neostradą zanim podłączono u mnie światłowód. Z popularnych starszych routerów był jeszcze BT Home Hub 5A (ten sam hardware miał Plusnet Hub One i BT Business Hub 5A). Można go było znaleźć na ebayu za około 100zł z wysyłką. Czasem też pojawiał się u nas na portalach w śmiesznych cenach.

33

(511 odpowiedzi, napisanych Sprzęt / Hardware)

Usuń patch 774-mdio-bus-add-generic-find-bus.patch z backportów. Funkcja mdio_find_bus() istnieje już w kernelu 5.10.

34

(511 odpowiedzi, napisanych Sprzęt / Hardware)

Zuzia napisał/a:

Jak dodać wsparcie DSA nie wiem, a to jedyna nadzieja na podniesienie wydajności.

W sumie to migracja na DSA powinna być możliwa. Jest mainlinowy sterownik DSA dla switcha rtl8367rb. W pierwszej kolejności trzeba by zmodyfikować dts i dodać odpowiednie wpisy dla obu switchy (zintegrowany gswip i zewnętrzny realtek) na podstawie dokumentacji. W dalszej kolejności trzeba by wpisać odpowiednie nazwy portów w 02_network.

Brzmi to trochę zbyt idealnie i potencjalnie może się okazać, że czegoś będzie jeszcze brakować w jakimś sterowniku.

35

(19 odpowiedzi, napisanych Sprzęt / Hardware)

Mogę jeszcze dodać, że kiedyś kupiłem na aliexpresie podobne rozwiązanie, ale na chipsecie Intel 8260. Tamta karta miała słaby zasięg. Chyba było to spowodowane tym, że w eepromie miała wpisane niskie limity mocy (coś mi świta, że 16 albo 18 dBm). Kiedyś był programik do edycji eepromów do Inteli i Atherosów. Na pewno działał na Intelu 6000. Nie wiem czy ten projekt jeszcze żyje i czy ten programik działa z nowszymi kartami. Jak ktoś jest zainteresowany to podaję link do backupu https://github.com/abajk/iwleeprom.

36

(19 odpowiedzi, napisanych Sprzęt / Hardware)

Na allegro są chińskie karty AX210 na mPCIe (w sumie to pewnie AX210D2W przylutowany do płytki z mPCIe). Z miesiąc temu kupiłem takie dwie za około 75zł za sztukę. Jedna z nich została zainstalowana w laptopie mojej mamy i działa normalnie. Nie porównywałem zasięgu do poprzedniej karty i nie mam na razie dostępu do tego laptopa. Szukaj na allegro pod nazwą ax210hmw. Widzę, że są cały czas dostępne.

We wspomnianym laptopie (Dell E6540) karta M.2 w przejściówce na mPCIe sie nie mieściła. Co prawda dało się zamknąć klapę dolną, ale w rogu trochę odstawała. Nie wiem jaki dużo masz miejsca w laptopie, ale potencjalnie może to być problemem.

37

(11 odpowiedzi, napisanych Sprzęt / Hardware)

szyper napisał/a:

U mnie Waxy czekaja na zakup (mam wax202 tylko, ciutke slabszy brat), mysle ze maja dobry stosunek cena/jakosc/mozliwosci.
Nawet ostatnio testowalem rozszerzenie WED'a na interfejsie mediateka, ale to chyba tylko dziala na procku mt7622 i poza tym ze sie zaladowalo to nie mam jak sprawdzic, a dokumentacja pakietu "bridger" jest skapa...

Też sprawdzałem i na snapshocie działa WED. Sprzętowo jest wspierany na MT7622 i nowszych. Przy czym MT7622 ma go zaimplementowane tylko dla TX (gdy router wysyła dane przez WiFi), a MT798x dla obu kierunków.

Są też pewne ograniczenia, np. offloadowanie WiFi działa tylko dla NAT (przesyłanie danych między WAN a WiFi). Dla bridgowania natomiast nie działa (przesyłanie danych między LAN a WiFi). Tego akurat osobiście nie weryfikowałem. Wydaje mi się, że widziałem gdzieś patche, które miały dodać też offloadowanie dla bridge, ale na 100 % nie jestem tego pewien.

38

(511 odpowiedzi, napisanych Sprzęt / Hardware)

paulus.pl napisał/a:

Witam od ponad tygodnia posiadam 2 routery, jeden to wersja 01 a drugi 02 i dostrzegam pewien problem, urządzenia po pewnym czasie jak są odłączone od prądu wymagają ponownego wgrania openwrt poprzez 192.168.2.100.  Co do samego oprogramowania to testuję najnowsze @zuzy wersję SMP, nie wiem czy ma wpływ na to, że robiłem aktualizacje niektórych pakietów z poziomu gui.  Macie  pomysły czym ten stan może być powodowany?

Może to pokłosie problemów z jednoczesnymi dostępami do NAND i PCI przez sterownik do EBU. Na BT Home Hub 5A objawiało się to tym, że router nie bootował jak się doinstalowało kilka pakietów/pozmieniało konfiguracje. Przeinstalowanie OpenWRT zazwyczaj rozwiązywało problem na jakiś czas.

Musiałbyś sobie zbackportować commit [1] i przekompilować obraz.

[1] https://git.openwrt.org/?p=openwrt/open … b73bd6b815

39

(11 odpowiedzi, napisanych Sprzęt / Hardware)

szyper napisał/a:

Myślę że na początek cienki klient (1lan) plus mały switch pasywny zarzadzalny da radę. Co do dumbAP to giga Xiaomi na początek mogą być, ale w cenie niewiele większej to poszukałbym coś bardziej mocniejszego (jest chyba jeszcze promka na waxa206 w morele za 250zl) lub jak chcesz taniej to mr70x mercursysa.

Mogę polecić WAX206. Fajny sprzęt za tą cenę. Kupiłem go niecały miesiąc temu na podmianę za Xiaomi AX3200 (miej RAM, brak 2.5 GbE) i chyba zostanie u mnie na dłużej smile

40

(511 odpowiedzi, napisanych Sprzęt / Hardware)

Nie wszystkie problemy są blokerami. Chyba wszystkie ostatnie dystrybucje OpenWRT, które używałem działały w miarę stabilnie. Jeden taki router jest używany od 6-7 lat w moim domu rodzinnym. Zawsze się trafia mniejsze czy większe problemy, ale wynika to z tego, że wszystkiego się nie da przetestować i jest to w większości praca wolontariuszy.

Dużo problemów na Lantiqu zostało naprawione przy przejściu na DSA. Szczególnie problemy z niestabilnymi interfejsami, brakiem linka na niektórych urządzeniach itp.

Mówisz o jakiś konkretnych problemach Lantiqa, które doświadczasz od dawna? Pomijając temat spadku wydajności, którego jestem świadomy.

41

(511 odpowiedzi, napisanych Sprzęt / Hardware)

.

Lantiq jest już zbyt słaby, żeby zabierać cenny czas na jakieś grubsze wnikanie w temat.

I tak i nie. W OpenWRT są problemy ze spadkiem wydajności na nowszych obrazach, które dotyczą prawdopodobnie wszystkich architektur. Znalezienie źródła tego problemu zawsze było by na plus, ale to dłuższa historia.

Jeśli chodzi o routery oparte na OpenWRT z modem VDSL to z tego co słyszę spora część osób, które rozwijały Lantiqa przesiada się na AVM 7520/7530, więc rozwój Lantiqa VRX200 pewnie znacząco zwolni.

42

(511 odpowiedzi, napisanych Sprzęt / Hardware)

Chyba, że mówicie o switchowaniu L2 to to się dzieje z pominięciem procesora i powinien być 1 Gbps full duplex.

43

(511 odpowiedzi, napisanych Sprzęt / Hardware)

Te 150 Mbps to był limit sterownika opartego na swconfigu. Z tego co pamiętam Easybox 904 miał zewnętrznego forka, który nie został zmigrowany do DSA. Na DSA z włączonym flow offloadingiem routery oparte na Lantiqu powinny osiągać z 600-700 Mbps w zależności od kompilacji.
Z drugiej strony widziałem, że ktoś zgłaszał bug związany ze stratami pakietów co może ograniczać prędkość sesji TCP.

Cześć,
do testów przydałby mi się jakiś starszy router z chipsetem Lantiq-a. Przy okazji mojego PR chciałem sprawdzić czy niektóre moje zmiany nie zepsują czegoś na starszych SoC. Interesują mnie głównie starsze chipsety (Amazon, Danube i może AR9). Nowszych urządzeń raczej nie potrzebuję bo i tak mam już za dużo sprzętu. Jak komuś coś zalega w domu i ma coś do oddania to bardzo chętnie przygarnę. W Warszawie i niedalekiej okolicy mogę go odebrać osobiście.

Pozdrawiam,
Aleksander

45

(14 odpowiedzi, napisanych Sprzęt / Hardware)

Powinno się dać, ale jeszcze na to nie patrzyłem, wiem tylko, że ten obraz jest zaszyfrowany, ale klucz jest znany.

W końcu wczoraj wieczorem wpadł mi do głowy pomysł jak obejść problem ze złym CRC bez podmiany uboota. Przeglądając źródła GPL okazało się, że jest dodatkowa komenda mc (memory check)[1], która weryfikuje CRC. Jest ona uruchamiana w main jeszcze przed bootcmd. W przypadku każdego niepowodzenia zbootowania inkrementacje part1_err, a gdy on osiągnie 3 to uruchamia 'run red_led'. Więc wystarczy podmienić red_led na bootowanie i normalnie śmiga: 

setenv red_led run flash_flash
saveenv

Problemem jest to, że rozmiar kernela jest zahardkodowany do 2M [2], więc u-boot ładuje sobie do ram 2M a liczy CRC z całego kernela (2.3M).
Później jest śmieszna weryfikacja "CRC" z rootfs, które jest liczone jako suma kolejnych bajtów xD, więc ją można łatwo pominąć licząc ją z zera bajtów:

$ setenv f_rootfs_datalen 0
$ setenv f_rootfs_crc 0
$ setenv part1_err 0
$ setenv part2_err 0
$ saveenv
$ saveenv

Ale bez tego drugiego też działa bo cały czas part1_err=3 i za każdym razem przechodzi do red_led.

[1] https://github.com/brunompena/dwr-966/b … ade.c#L731
[2] https://github.com/brunompena/dwr-966/b … ade.c#L765

46

(14 odpowiedzi, napisanych Sprzęt / Hardware)

Ostatnio trzeba trochę poczekać smile
Ale na razie bez PCI-e. Bo muszę tą zabawę odłożyć na jakiś czas. A ze sterownikiem do pci-e jest dużo roboty. Ten z Openwrt działa tylko dla pierwszej magistrali. Akurat do tej do której jest podpięte ASM1042.
No i wolałem to rozbić na mniejsze części, powinno być szybciej.

47

(14 odpowiedzi, napisanych Sprzęt / Hardware)

Pewnie dlatego, że SDK Lantiqa (UGW-6.1.1) bazowało na OpenWRT AA. W wersji 7.1.1 przerzucili się na OpenWRT CC. Z tego co widzę istnieje też fork OpenWRT bazujący na 19.07, ale wspiera chyba tylko nowsze SoC (XRX350 i te bazujące na x86).

Do tego routera są nawet kompletne źródła GPL [1] i podobno da się je zbudować. Obraz jest zaszyfrowany DES [2], ale klucz został złamany i jest znany ('97331723P02003'). DWR956 jest prawie identyczny i coś ktoś już z tym próbował robić [3] .

Tak czy siak z głównych rzeczy zostało jeszcze do rozkminienia PCI-E i ten bug z CRC. A z drobniejszych sterowanie LEDami od PHY i ewentualnie GPIO odcinające zasilanie USB(jeśli da się nim w ogóle sterować). Jakby się wszystko udało to by było świetnie smile


[1] https://github.com/brunompena/dwr-966
[2] https://freak.no/forum/showthread.php?t=289016
[3] https://github.com/adde88/DWR-956_decrypted_fw

48

(14 odpowiedzi, napisanych Sprzęt / Hardware)

Paczka z partycjami.

49

(14 odpowiedzi, napisanych Sprzęt / Hardware)

Faktycznie u-boot w zmiennych ma zaszyte CRC:

f_rootfs_datalen=FDC000
f_rootfs_crc=7E483624
f_kernel_datalen=1B4000
f_kernel_crc=4925A607

Niby najprostsza opcja a człowiek czasem dostaje zaćmienia umysłu.

Po wpisaniu komendy OpenWRT bootuje z flash:

GRX330 # run bootcmd

1. Wygląda na to, że to na etapie u-boota jest sprawdzane CRC. Tylko czy w takim razie u-boot właśnie nie wywołuje tylko bootcmd domyślnie na starcie?

2. ewentualnie to być może to jest problemem:

read 2097152 bytes from volume 0 to 80800000(buf address)
size=2172023,name=MIPS OpenWrt Linux-4.19.123
Bad kernel Checksum

u-boot ładuje do RAM tylko 2MB, a kernel jest większy i dlatego CRC jest złe. Tylko czy tak samo nie powinno się dziać jak ręcznie wywołuję bootcmd?

Zmienne uboota:

GRX330 # printenv
bootcmd=run flash_flash
bootdelay=1
baudrate=115200
preboot=echo;echo Type \"run flash_nfs\" to mount root filesystem over NFS;echo
bootfile="uImage"
mem=114M
phym=128M
wlanm=119M
part2_err=0
dark_led=mw.l  0xbe100bb8 0xFFE483
green_led=mw.l  0xbe100bb8 0x090402
red_led=mw.l  0xbe100bb8 0xF6E081
all_led=mw.l  0xbe100bb8 0x001010
f_kernelb_crc=0
f_kernelb_datalen=0
f_rootfsb_crc=0
f_rootfsb_datalen=0
part2_version=0
data_2m=0x280000
data_16m=0x1000000
switch2parta=setenv kernelname kernel;setenv rootfsname rootfs;saveenv;reset
switch2partb=setenv kernelname kernelb;setenv rootfsname rootfsb;saveenv;reset
netdev=eth0
console=ttyLTQ0
tftppath=
loadaddr=0x80800000
rootpath=/mnt/full_fs
rootfsmtd=/dev/mtdblock3
nfsargs= setenv bootargs ubi.mtd=system_sw root=/dev/nfs rw nfsroot=$(serverip):$(rootpath)
ramargs=setenv bootargs root=/dev/ram rw
addip=setenv bootargs $(bootargs) ip=$(ipaddr):$(serverip):$(gatewayip):$(netmask):$(hostname):$(netdev):on
addmisc=setenv bootargs $(bootargs) console=$(console),$(baudrate) ethaddr=$(ethaddr) mem=$(mem) wlanm=$(wlanm) panic=1 $(mtdparts) vpe1_load_addr=0x87f00000 vpe1_mem=1M init=/etc/preinit active_bank=$(active_bank) update_chk=$(update_chk) ethwan=$(ethwan) ubootver=$(ver)
flash_nfs=run nfsargs addip addmisc;bootm $(kernel_addr)
net_nfs=tftp $(loadaddr) $(tftppath)$(bootfile);run nfsargs addip addmisc;bootm
net_flash=tftp $(loadaddr) $(tftppath)$(bootfile); run flashargs addip addmisc; bootm
net_ram=tftp $(loadaddr) $(tftppath)$(bootfile); run ramargs addip addmisc; bootm
u-boot=u-boot.ltq
rootfs=rootfs.img
firmware=firmware.img
fullimage=fullimage.img
totalimage=totalimage.img
load=tftp $(loadaddr) $(u-boot)
update=protect off 1:0-2;era 1:0-2;cp.b $(loadaddr) B0000000 $(filesize)
flashargs=setenv bootargs ubi.mtd=system_sw rootfsname=$(rootfsname) ro rootfstype=squashfs quiet
flash_flash=ubi part system_sw;ubi read $(loadaddr) $(kernelname) $(f_kernel_size);run flashargs addip addmisc;bootm $(loadaddr)
update_nandboot=tftp $(loadaddr) $(tftppath)u-boot-nand.bin;nand erase 0 17FFFF;nand erase 1C0000 7bfffff;nand write.partial $(loadaddr) 0 $(filesize)
ubi_init=nand erase 0x1C0000 0x7C00000;ubi part system_sw;ubi create kernel $(data_2m) dynamic 0;ubi create rootfs $(data_16m) dynamic 1;ubi create kernelb $(data_2m) dynamic 3;ubi create rootfsb $(data_16m) dynamic 4
update_uboot=tftp $(loadaddr) $(tftppath)$(u-boot); nand write.partial $(loadaddr) 0x4000 $(filesize);reset
update_kernel=ubi part system_sw;ubi remove kernel;ubi create kernel 0x200000 dynamic 0;tftpboot $(loadaddr) $(tftppath)$(bootfile);ubi write $(loadaddr) $(kernelname) $(filesize)
update_kernelb=ubi part system_sw;ubi remove kernelb;ubi create kernelb 0x200000 dynamic 3;tftpboot $(loadaddr) $(tftppath)$(bootfile);ubi write $(loadaddr) kernelb $(filesize)
update_bootloader=update_uboot
update_rootfs=ubi part system_sw;ubi remove rootfs;ubi create rootfs 0x1000000 dynamic 1;tftpboot $(loadaddr) $(tftppath)$(rootfs);ubi write 0x80800040 $(rootfsname) $(filesize)
update_rootfsb=ubi part system_sw;ubi remove rootfsb;ubi create rootfsb 0x1000000 dynamic 4;tftpboot $(loadaddr) $(tftppath)$(rootfs);ubi write 0x80800040 rootfsb $(filesize)
update_fullimage=setenv kernel_vol kernel;setenv rootfs_vol rootfs;setenv kernel_id 0;setenv rootfs_id 1;ubi part system_sw;tftpboot $(loadaddr) $(tftppath)$(fullimage);upgrade $(loadaddr) $(filesize) 1;setenv rootfsname rootfs;setenv kernelname kernel;setenv part1_err 0;saveenv
update_fullimageb=setenv kernel_vol kernelb;setenv rootfs_vol rootfsb;setenv kernelb_id 3;setenv rootfsb_id 4;ubi part system_sw;tftpboot $(loadaddr) $(tftppath)$(fullimage);upgrade $(loadaddr) $(filesize) 2;setenv rootfsname rootfsb;setenv kernelname kernelb;setenv part2_err 0;saveenv
update_totalimage=run ubi_init;tftpboot $(loadaddr) $(tftppath)$(totalimage);upgrade $(loadaddr) $(filesize)
update_gphyfirmware=tftpboot $(loadaddr) $(tftppath)gphy_firmware.img;nand write.partial $(loadaddr) $(gphy_fw_addr) $(filesize);re
gphy_fw_addr=0x180000
reset_uboot_config=nand erase $(f_ubootconfig_addr) $(f_ubootconfig_range);nand erase $(f_red_ubootconfig_addr) $(f_ubootconfig_range);
reset_ddr_config=nand write.partial 80400000 $(f_ddrconfig_addr) $(f_ddrconfig_size)
reset_sysconfig=run ubi_init;ubi remove sysconfig;ubi remove sysconfigA;ubi remove sysconfigB
mtdparts=mtdparts=ifx_nand:1024k(uboot),256k(ubootconfigA),256k(ubootconfigB),256k(gphyfirmware),124m(system_sw),1m(calibration),1m(factory),-(res)
part0_begin=0x00000000
part1_begin=0x00040000
part2_begin=0x002C0000
part3_begin=0x07000000
part4_begin=0x07040000
part5_begin=0x07080000
total_part=6
flash_end=0x07FFFFFF
data_block0=uboot
data_block1=kernel
data_block2=rootfs
data_block3=sysconfig
data_block4=ubootconfig
data_block5=dectconfig
total_db=6
f_uboot_addr=0x00000000
f_uboot_size=0x40000
f_ubootconfig_addr=0x100000
f_ubootconfig_size=0x4000
f_ubootconfig_end=0x07040FFF
f_ubootconfig_range=0x40000
f_red_ubootconfig_addr=0x140000
f_gphy_firmware_addr=IFX_CFG_FLASH_GPHY_FIRMWARE_IMAGE_START_ADDR
f_gphy_firmware_size=IFX_CFG_FLASH_GPHY_FIRMWARE_IMAGE_SIZE
f_gphy_firmware_end=IFX_CFG_FLASH_GPHY_FIRMWARE_IMAGE_END_ADDR
f_kernel_addr=0x00040000
f_kernel_size=0
f_kernel_end=IFX_CFG_FLASH_KERNEL_IMAGE_END_ADDR
f_rootfs_addr=0x002C0000
f_rootfs_size=0
f_rootfs_end=IFX_CFG_FLASH_ROOTFS_IMAGE_END_ADDR
f_fwdiag_addr=IFX_CFG_FLASH_FIRMWARE_DIAG_START_ADDR
f_fwdiag_size=IFX_CFG_FLASH_FIRMWARE_DIAG_SIZE
f_sysconfig_addr=0x07000000
f_sysconfig_size=0x10000
f_dectconfig_addr=0x07080000
f_dectconfig_size=0x400
f_wlanconfig_addr= IFX_CFG_FLASH_WLAN_CFG_START_ADDR
f_wlanconfig_size=IFX_CFG_FLASH_WLAN_CFG_SIZE
f_ddrconfig_addr=0x00003fe0
f_ddrconfig_size=32
f_ddrconfig_end=0x00003fff
ethact=ar10 Switch
mtdids=nand0=ifx_nand
kernel_vol=kernel
rootfs_vol=rootfs
kernel_id=0
rootfs_id=1
filesize=1190088
fileaddr=80800000
ipaddr=192.168.1.1
serverip=192.168.1.100
f_rootfs_datalen=FDC000
f_rootfs_crc=7E483624
f_kernel_datalen=1B4000
f_kernel_crc=4925A607
part1_version=DWR-966_v1.0.3CP_r03
ethaddr=E8:CC:18:B8:F4:9D
partition=nand0,0
mtddevnum=0
mtddevname=uboot
part1_err=1
kernelname=kernelb
rootfsname=rootfsb
stdin=serial
stdout=serial
stderr=serial
ver=U-Boot-2010.06-dirty-LANTIQ-v-2.3.08

Environment size: 6242/16379 bytes

Cały bootlog:

ROM VER: 1.0.0
CFG 06
NAND

ROM VER: 1.0.0
CFG 06
NAND

DDR autotuning Rev 1.0
DDR size from 0xa0000000 - 0xa7ffffff
DDR check ok... start booting...



U-Boot 2010.06-dirty-LANTIQ-v-2.3.08 (Aug 14 2015 - 10:30:43)

CLOCK CPU 600M RAM 300M
16 Bit RAM
DRAM:  128 MiB
NAND:  ONFI flash detected
ONFI param page 0 valid
NAND device: Manufacturer ID: 0x01, Chip ID: 0xf1 (AMD S34ML01G1)
128 MiB
Bad block table found at page 65472, version 0x01
Bad block table found at page 65408, version 0x01
In:    serial
Out:   serial
Err:   serial
Net:   internal phy using 25Mhz clock
Internal phy firmware version: 0x8434
ar10 Switch

Type "run flash_nfs" to mount root filesystem over NFS

part1_err=3,part2_err=3
Both partition firmware are CRC error, stop booting..
Hit any key to stop autoboot:  0
GRX330 #
GRX330 #
GRX330 # run bootcmd
Creating 1 MTD partitions on "nand0":
0x0000001c0000-0x000007dc0000 : "mtd=4"
UBI: attaching mtd1 to ubi0
UBI: physical eraseblock size:   131072 bytes (128 KiB)
UBI: logical eraseblock size:    129024 bytes
UBI: smallest flash I/O unit:    2048
UBI: sub-page size:              512
UBI: VID header offset:          512 (aligned 512)
UBI: data offset:                2048
UBI: attached mtd1 to ubi0
UBI: MTD device name:            "mtd=4"
UBI: MTD device size:            124 MiB
UBI: number of good PEBs:        992
UBI: number of bad PEBs:         0
UBI: max. allowed volumes:       128
UBI: wear-leveling threshold:    4096
UBI: number of internal volumes: 1
UBI: number of user volumes:     8
UBI: available PEBs:             11
UBI: total number of reserved PEBs: 981
UBI: number of PEBs reserved for bad PEB handling: 9
UBI: max/mean erase counter: 22/10
Volume kernel found at volume id 0
read 0 bytes from volume 0 to 80800000(buf address)
Read [2193408] bytes
## Booting kernel from Legacy Image at 80800000 ...
   Image Name:   MIPS OpenWrt Linux-4.19.123
   Created:      2020-05-30  13:40:47 UTC
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:    2172023 Bytes = 2.1 MiB
   Load Address: 80002000
   Entry Point:  80002000
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK

Starting kernel ...

[    0.000000] Linux version 4.19.123 (aleksander@LAPTOP-OLEK) (gcc version 8.4.0 (OpenWrt GCC 8.4.0 r13400-d182e08d92)) #0 SMP Sat May 30 13:40:47 2020
[    0.000000] SoC: xRX330 rev 1.1
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 00019556 (MIPS 34Kc)
[    0.000000] MIPS: machine is D-Link DWR-966
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 08000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Detected 1 available secondary CPU(s)
[    0.000000] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] random: get_random_bytes called from start_kernel+0x98/0x4dc with crng_init=0
[    0.000000] percpu: Embedded 14 pages/cpu s26256 r8192 d22896 u57344
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 32480
[    0.000000] Kernel command line: console=ttyLTQ0,115200
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Writing ErrCtl register=0007fff0
[    0.000000] Readback ErrCtl register=0007fff0
[    0.000000] Memory: 121528K/131072K available (5091K kernel code, 201K rwdata, 1292K rodata, 1272K init, 227K bss, 9544K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000] NR_IRQS: 256
[    0.000000] CPU Clock: 600MHz
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 6370868154 ns
[    0.000009] sched_clock: 32 bits at 300MHz, resolution 3ns, wraps every 7158278654ns
[    0.007892] Calibrating delay loop... 397.82 BogoMIPS (lpj=795648)
[    0.045939] pid_max: default: 32768 minimum: 301
[    0.050851] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.057349] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.067408] rcu: Hierarchical SRCU implementation.
[    0.073262] smp: Bringing up secondary CPUs ...
[    0.078693] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.078708] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
[    0.078842] CPU1 revision is: 00019556 (MIPS 34Kc)
[    0.105870] Synchronize counters for CPU 1: done.
[    0.130196] smp: Brought up 1 node, 2 CPUs
[    0.138402] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.148033] futex hash table entries: 512 (order: 2, 16384 bytes)
[    0.154493] pinctrl core: initialized pinctrl subsystem
[    0.161406] NET: Registered protocol family 16
[    0.183193] pinctrl-xway 1e100b10.pinmux: Init done
[    0.189331] dma-xway 1e104100.dma: Init done - hw rev: 8, ports: 5, channels: 24
[    0.223051] gpio-stp-xway 1e100bb0.stp: Init done
[    0.229328] usbcore: registered new interface driver usbfs
[    0.234919] usbcore: registered new interface driver hub
[    0.240287] usbcore: registered new device driver usb
[    0.248010] clocksource: Switched to clocksource MIPS
[    0.255435] NET: Registered protocol family 2
[    0.260710] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes)
[    0.268304] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.275314] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
[    0.281741] TCP: Hash tables configured (established 1024 bind 1024)
[    0.288315] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.294111] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.300703] NET: Registered protocol family 1
[    0.305578] gptu: totally 6 16-bit timers/counters
[    0.310493] gptu: misc_register on minor 63
[    0.314634] gptu: succeeded to request irq 126
[    0.319157] gptu: succeeded to request irq 127
[    0.323630] gptu: succeeded to request irq 128
[    0.328140] gptu: succeeded to request irq 129
[    0.332660] gptu: succeeded to request irq 130
[    0.337156] gptu: succeeded to request irq 131
[    0.341831] No VPEs reserved for AP/SP, not initialize VPE loader
[    0.341831] Pass maxvpes=<n> argument as kernel argument
[    0.353189] No TCs reserved for AP/SP, not initializing RTLX.
[    0.353189] Pass maxtcs=<n> argument as kernel argument
[    0.365983] Crashlog allocated RAM at address 0x3f00000
[    0.371550] workingset: timestamp_bits=14 max_order=15 bucket_order=1
[    0.387127] random: fast init done
[    0.393917] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.399688] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.418547] io scheduler noop registered
[    0.422391] io scheduler deadline registered (default)
[    0.429812] xway-rcu-gphy 1f203000.rcu:gphy@264: Failed to lookup gate clock
[    0.436868] xway-rcu-gphy: probe of 1f203000.rcu:gphy@264 failed with error -2
[    0.445610] 1e100c00.serial: ttyLTQ0 at MMIO 0x1e100c00 (irq = 112, base_baud = 0) is a lantiq,asc
[    0.454512] console [ttyLTQ0] enabled
[    0.454512] console [ttyLTQ0] enabled
[    0.461796] bootconsole [early0] disabled
[    0.461796] bootconsole [early0] disabled
[    0.473546] nand: device found, Manufacturer ID: 0x01, Chip ID: 0xf1
[    0.478423] nand: AMD/Spansion S34ML01G1
[    0.482304] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    0.489949] Scanning device for bad blocks
[    0.561382] 8 fixed-partitions partitions found on MTD device 14000000.nand
[    0.566917] Creating 8 MTD partitions on "14000000.nand":
[    0.572263] 0x000000000000-0x000000100000 : "uboot"
[    0.578760] 0x000000100000-0x000000140000 : "ubootconfigA"
[    0.584409] 0x000000140000-0x000000180000 : "ubootconfigB"
[    0.589979] 0x000000180000-0x0000001c0000 : "gphyfirmware"
[    0.595661] 0x0000001c0000-0x000007dc0000 : "ubi"
[    0.601702] 0x000007dc0000-0x000007ec0000 : "calibration"
[    0.607278] 0x000007ec0000-0x000007fc0000 : "factory"
[    0.612516] 0x000007fc0000-0x000008000000 : "res"
[    0.618520] libphy: Fixed MDIO Bus: probed
[    0.624387] wdt 1f8803f0.watchdog: Init done
[    0.634950] NET: Registered protocol family 10
[    0.641262] Segment Routing with IPv6
[    0.643677] NET: Registered protocol family 17
[    0.648022] 8021q: 802.1Q VLAN Support v1.8
[    0.762100] libphy: lantiq,xrx200-mdio: probed
[    0.770828] Intel XWAY PHY11G (xRX v1.2 integrated) 0:01: attached PHY driver [Intel XWAY PHY11G (xRX v1.2 integrated)] (mii_bus:phy_addr=0:01, irq=POLL)
[    0.784467] Intel XWAY PHY11G (xRX v1.2 integrated) 0:02: attached PHY driver [Intel XWAY PHY11G (xRX v1.2 integrated)] (mii_bus:phy_addr=0:02, irq=POLL)
[    0.798034] Intel XWAY PHY11G (xRX v1.2 integrated) 0:03: attached PHY driver [Intel XWAY PHY11G (xRX v1.2 integrated)] (mii_bus:phy_addr=0:03, irq=POLL)
[    0.811695] Intel XWAY PHY11G (xRX v1.2 integrated) 0:04: attached PHY driver [Intel XWAY PHY11G (xRX v1.2 integrated)] (mii_bus:phy_addr=0:04, irq=POLL)
[    0.826522] UBI: auto-attach mtd4
[    0.828494] ubi0: attaching mtd4
[    0.965920] ubi0: scanning is finished
[    0.998393] ubi0: attached mtd4 (name "ubi", size 124 MiB)
[    1.002513] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 129024 bytes
[    1.009277] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 512
[    1.015928] ubi0: VID header offset: 512 (aligned 512), data offset: 2048
[    1.022677] ubi0: good PEBs: 992, bad PEBs: 0, corrupted PEBs: 0
[    1.028617] ubi0: user volume: 8, internal volumes: 1, max. volumes count: 128
[    1.035797] ubi0: max/mean erase counter: 22/10, WL threshold: 4096, image sequence number: 0
[    1.044263] ubi0: available PEBs: 0, total reserved PEBs: 992, PEBs reserved for bad PEB handling: 20
[    1.053476] ubi0: background thread "ubi_bgt0d" started, PID 451
[    1.056929] block ubiblock0_1: created from ubi0:1(rootfs)
[    1.064841] ubiblock: device ubiblock0_1 (rootfs) set to be root fil[    1.078437] VFS: Mounted root (squashfs filesystem) readonly on device 254:0.
[    1.087888] Freeing unused kernel memory: 1272K
[    1.090953] This architecture does not have kernel memory protection.
[    1.097381] Run /sbin/init as init process
[    1.710313] init: Console is alive
[    1.712634] init: - watchdog -
[    2.260762] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    2.363496] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    2.375873] SCSI subsystem initialized
[    2.382639] ehci-platform: EHCI generic platform driver
[    2.392959] dwc2 1e101000.usb: 1e101000.usb supply vusb_d not found, using dummy regulator
[    2.399946] dwc2 1e101000.usb: Linked as a consumer to regulator.0
[    2.405948] dwc2 1e101000.usb: 1e101000.usb supply vusb_a not found, using dummy regulator
[    2.515554] dwc2 1e101000.usb: DWC OTG Controller
[    2.518859] dwc2 1e101000.usb: new USB bus registered, assigned bus number 1
[    2.525914] dwc2 1e101000.usb: irq 62, io mem 0x1e101000
[    2.532345] hub 1-0:1.0: USB hub found
[    2.534873] hub 1-0:1.0: 1 port detected
[    2.540098] dwc2 1e106000.usb: 1e106000.usb supply vusb_d not found, using dummy regulator
[    2.547211] dwc2 1e106000.usb: Linked as a consumer to regulator.0
[    2.553076] dwc2 1e106000.usb: 1e106000.usb supply vusb_a not found, using dummy regulator
[    2.663368] dwc2 1e106000.usb: DWC OTG Controller
[    2.666655] dwc2 1e106000.usb: new USB bus registered, assigned bus number 2
[    2.673694] dwc2 1e106000.usb: irq 91, io mem 0x1e106000
[    2.680277] hub 2-0:1.0: USB hub found
[    2.682692] hub 2-0:1.0: 1 port detected
[    2.691822] usbcore: registered new interface driver usb-storage
[    2.696621] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    2.707361] init: - preinit -
[    3.442607] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[    3.468992] random: procd: uninitialized urandom read (4 bytes read)
Press the [f] key and hit [enter] to enter failsafe mode
Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level

[    6.776380] mount_root: loading kmods from internal overlay
[    6.807248] kmodloader: loading kernel modules from //etc/modules-boot.d/*
[    6.814433] kmodloader: done loading kernel modules from //etc/modules-boot.d/*

[    7.131250] UBIFS (ubi0:7): background thread "ubifs_bgt0_7" started, PID 547
[    7.177702] UBIFS (ubi0:7): recovery needed
[    7.281073] UBIFS (ubi0:7): recovery completed
[    7.284237] UBIFS (ubi0:7): UBIFS: mounted UBI device 0, volume 7, name "rootfs_data"
[    7.291871] UBIFS (ubi0:7): LEB size: 129024 bytes (126 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[    7.301715] UBIFS (ubi0:7): FS size: 76898304 bytes (73 MiB, 596 LEBs), journal size 3870720 bytes (3 MiB, 30 LEBs)
[    7.312104] UBIFS (ubi0:7): reserved for root: 3632096 bytes (3546 KiB)
[    7.318679] UBIFS (ubi0:7): media format: w4/r0 (latest is w5/r0), UUID E54322D9-9216-42DA-8978-48C4D1E7F934, small LPT model
[    7.330385] block: attempting to load /tmp/ubifs_cfg/upper/etc/config/fstab
[    7.339166] block: extroot: not configured
[    7.359324] UBIFS (ubi0:7): un-mount UBI device 0
[    7.362612] UBIFS (ubi0:7): background thread "ubifs_bgt0_7" stops
[    7.374403] UBIFS (ubi0:7): background thread "ubifs_bgt0_7" started, PID 550
[    7.474588] UBIFS (ubi0:7): UBIFS: mounted UBI device 0, volume 7, name "rootfs_data"
[    7.480993] UBIFS (ubi0:7): LEB size: 129024 bytes (126 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[    7.490837] UBIFS (ubi0:7): FS size: 76898304 bytes (73 MiB, 596 LEBs), journal size 3870720 bytes (3 MiB, 30 LEBs)
[    7.501183] UBIFS (ubi0:7): reserved for root: 3632096 bytes (3546 KiB)
[    7.507755] UBIFS (ubi0:7): media format: w4/r0 (latest is w5/r0), UUID E54322D9-9216-42DA-8978-48C4D1E7F934, small LPT model
[    7.702534] block: attempting to load /tmp/ubifs_cfg/upper/etc/config/fstab
[    7.710420] block: extroot: not configured
[    7.728510] mount_root: switching to ubifs overlay
[    7.755991] overlayfs: upper fs does not support xattr, falling back to index=off and metacopy=off.
[    7.768605] urandom-seed: Seeding with /etc/urandom.seed
[    7.892252] procd: - early -
[    7.893842] procd: - watchdog -
[    8.574618] procd: - watchdog -
[    8.576911] procd: - ubus -
[    8.649092] random: ubusd: uninitialized urandom read (4 bytes read)
[    8.655781] random: ubusd: uninitialized urandom read (4 bytes read)
[    8.661237] random: ubusd: uninitialized urandom read (4 bytes read)
[    8.668980] procd: - init -
Please press Enter to activate this console.


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

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 OpenWrt SNAPSHOT, r13401-1d6aff7d75
 -----------------------------------------------------
=== 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@(none):/# [    9.671250] kmodloader: loading kernel modules from /etc/modules.d/*
[    9.688441] ntfs: driver 2.1.32 [Flags: R/O MODULE].
[    9.752787] xt_time: kernel timezone is -0000
[    9.785872] PPP generic driver version 2.4.2
[    9.791529] NET: Registered protocol family 24
[    9.810252] kmodloader: done loading kernel modules from /etc/modules.d/*
[    9.966157] urngd: v1.0.2 started.

50

(14 odpowiedzi, napisanych Sprzęt / Hardware)

Cześć,
próbuje uruchomić OpenWRT na tym routerze. Do tej pory bawiłem się obrazem initramfs, a teraz chciałem wgrać obraz do flash.
Hardware:
CPU: Lantiq GRX390
RAM: 128MB
Flash: 128MB NAND

Nie mam pojęcia do końca pojęcia jak zbootować obraz z uboota. Eksperymetalnie spróbowałem tylko wgrać obraz przez sysupgrade ze zbootowanego obrazu initramfs (tak jak to było dla BT Home Hub 5A). Efekt jest następujący:

root@OpenWrt:/tmp# sysupgrade openwrt-lantiq-xrx300-dlink_dwr-966-squashfs-sysup
grade.bin
Cannot save config while running from ramdisk.
Commencing upgrade. Closing all shell sessions.
Watchdog handover: fd=3
- watchdog -
killall: telnetd: no process killed
Sending TERM to remaining processes ... rpcd netifd odhcpd uhttpd ntpd dnsmasq ubusd urngd logd
Sending KILL to remaining processes ...
Performing system upgrade...
removing ubiblock0_1
[ 1098.723047] block ubiblock0_1: released
Volume ID 0, size 17 LEBs (2193408 bytes, 2.0 MiB), LEB size 129024 bytes (126.0 KiB), dynamic, name "kernel", alignment 1
Volume ID 1, size 16 LEBs (2064384 bytes, 1.9 MiB), LEB size 129024 bytes (126.0 KiB), dynamic, name "rootfs", alignment 1
Set volume size to 78188544
Volume ID 7, size 606 LEBs (78188544 bytes, 74.5 MiB), LEB size 129024 bytes (126.0 KiB), dynamic, name "rootfs_data", alignment 1
sysupgrade successful
umount: can't unmount /dev: Resource busy
umount: can't unmount /tmp: Resource busy
umount: can't unmount /: Invalid argument
[ 1100.210442] reboot: Res�
ROM VER: 1.0.0
CFG 06
NAND

DDR autotuning Rev 1.0
DDR size from 0xa0000000 - 0xa7ffffff
DDR check ok... start booting...



U-Boot 2010.06-dirty-LANTIQ-v-2.3.08 (Aug 14 2015 - 10:30:43)

CLOCK CPU 600M RAM 300M
16 Bit RAM
DRAM:  128 MiB
NAND:  ONFI flash detected
ONFI param page 0 valid
NAND device: Manufacturer ID: 0x01, Chip ID: 0xf1 (AMD S34ML01G1)
128 MiB
Bad block table found at page 65472, version 0x01
Bad block table found at page 65408, version 0x01
In:    serial
Out:   serial
Err:   serial
Net:   internal phy using 25Mhz clock
Internal phy firmware version: 0x8434
ar10 Switch

Type "run flash_nfs" to mount root filesystem over NFS

part1_err=0,part2_err=0
Hit any key to stop autoboot:  0
argv=1
partnum=1
Creating 1 MTD partitions on "nand0":
0x0000001c0000-0x000007dc0000 : "mtd=4"
UBI: attaching mtd1 to ubi0
UBI: physical eraseblock size:   131072 bytes (128 KiB)
UBI: logical eraseblock size:    129024 bytes
UBI: smallest flash I/O unit:    2048
UBI: sub-page size:              512
UBI: VID header offset:          512 (aligned 512)
UBI: data offset:                2048
UBI: attached mtd1 to ubi0
UBI: MTD device name:            "mtd=4"
UBI: MTD device size:            124 MiB
UBI: number of good PEBs:        992
UBI: number of bad PEBs:         0
UBI: max. allowed volumes:       128
UBI: wear-leveling threshold:    4096
UBI: number of internal volumes: 1
UBI: number of user volumes:     8
UBI: available PEBs:             11
UBI: total number of reserved PEBs: 981
UBI: number of PEBs reserved for bad PEB handling: 9
UBI: max/mean erase counter: 22/10
Volume kernel found at volume id 0
read 2097152 bytes from volume 0 to 80800000(buf address)
size=2172023,name=MIPS OpenWrt Linux-4.19.123
Bad kernel Checksum
CRC error , changing another booting partition from 1
Erasing redundant Nand...
Erasing at 0x160000 -- 100% complete.
Writing to redundant Nand... done

ROM VER: 1.0.0
CFG 06
NAND

DDR autotuning Rev 1.0
DDR size from 0xa0000000 - 0xa7ffffff
DDR check ok... start booting...



U-Boot 2010.06-dirty-LANTIQ-v-2.3.08 (Aug 14 2015 - 10:30:43)

CLOCK CPU 600M RAM 300M
16 Bit RAM
DRAM:  128 MiB
NAND:  ONFI flash detected
ONFI param page 0 valid
NAND device: Manufacturer ID: 0x01, Chip ID: 0xf1 (AMD S34ML01G1)
128 MiB
Bad block table found at page 65472, version 0x01
Bad block table found at page 65408, version 0x01
In:    serial
Out:   serial
Err:   serial
Net:   internal phy using 25Mhz clock
Internal phy firmware version: 0x8434
ar10 Switch

Type "run flash_nfs" to mount root filesystem over NFS

part1_err=1,part2_err=0

Wywala się na nieprawidłowej sumie CRC. Być może coś jest nie tak z partycją UBI, albo czegoś jeszcze brakuje. Ma ktoś pomysł jak rozwiązać ten problem?


partycje na oryginalnym obrazie:

root@home:/# cat /proc/mtd 
dev:    size   erasesize  name
mtd0: 00100000 00020000 "uboot"
mtd1: 00040000 00020000 "ubootconfigA"
mtd2: 00040000 00020000 "ubootconfigB"
mtd3: 00040000 00020000 "gphyfirmware"
mtd4: 07c00000 00020000 "system_sw"
mtd5: 00100000 00020000 "calibration"
mtd6: 00100000 00020000 "factory"
mtd7: 00040000 00020000 "res"
mtd8: 001b9000 0001f800 "kernel"
mtd9: 00fdf800 0001f800 "rootfs"
mtd10: 0140e800 0001f800 "data_vol"
mtd11: 00217800 0001f800 "kernelb"
mtd12: 0101e800 0001f800 "rootfsb"
mtd13: 0001f800 0001f800 "sysconfig"
mtd14: 00217800 0001f800 "defconfig"

bootlog

ROM VER: 1.0.0
CFG 06
NAND

ROM VER: 1.0.0
CFG 06
NAND

DDR autotuning Rev 1.0
DDR size from 0xa0000000 - 0xa7ffffff
DDR check ok... start booting...



U-Boot 2010.06-dirty-LANTIQ-v-2.3.08 (Aug 14 2015 - 10:30:43)

CLOCK CPU 600M RAM 300M
16 Bit RAM
DRAM:  128 MiB
NAND:  ONFI flash detected
ONFI param page 0 valid
NAND device: Manufacturer ID: 0x01, Chip ID: 0xf1 (AMD S34ML01G1)
128 MiB
Bad block table found at page 65472, version 0x01
Bad block table found at page 65408, version 0x01
In:    serial
Out:   serial
Err:   serial
Net:   internal phy using 25Mhz clock
Internal phy firmware version: 0x8434
ar10 Switch

Type "run flash_nfs" to mount root filesystem over NFS

part1_err=0,part2_err=0
Hit any key to stop autoboot:  0
argv=1
partnum=1
Creating 1 MTD partitions on "nand0":
0x0000001c0000-0x000007dc0000 : "mtd=4"
UBI: attaching mtd1 to ubi0
UBI: physical eraseblock size:   131072 bytes (128 KiB)
UBI: logical eraseblock size:    129024 bytes
UBI: smallest flash I/O unit:    2048
UBI: sub-page size:              512
UBI: VID header offset:          512 (aligned 512)
UBI: data offset:                2048
UBI: attached mtd1 to ubi0
UBI: MTD device name:            "mtd=4"
UBI: MTD device size:            124 MiB
UBI: number of good PEBs:        992
UBI: number of bad PEBs:         0
UBI: max. allowed volumes:       128
UBI: wear-leveling threshold:    4096
UBI: number of internal volumes: 1
UBI: number of user volumes:     7
UBI: available PEBs:             507
UBI: total number of reserved PEBs: 485
UBI: number of PEBs reserved for bad PEB handling: 9
UBI: max/mean erase counter: 20/9
Volume kernel found at volume id 0
read 2097152 bytes from volume 0 to 80800000(buf address)
size=1785792,name=MIPS LTQCPE Linux-3.10.12
UBI: mtd1 is detached from ubi0
Creating 1 MTD partitions on "nand0":
0x0000001c0000-0x000007dc0000 : "mtd=4"
UBI: attaching mtd1 to ubi0
UBI: physical eraseblock size:   131072 bytes (128 KiB)
UBI: logical eraseblock size:    129024 bytes
UBI: smallest flash I/O unit:    2048
UBI: sub-page size:              512
UBI: VID header offset:          512 (aligned 512)
UBI: data offset:                2048
UBI: attached mtd1 to ubi0
UBI: MTD device name:            "mtd=4"
UBI: MTD device size:            124 MiB
UBI: number of good PEBs:        992
UBI: number of bad PEBs:         0
UBI: max. allowed volumes:       128
UBI: wear-leveling threshold:    4096
UBI: number of internal volumes: 1
UBI: number of user volumes:     7
UBI: available PEBs:             507
UBI: total number of reserved PEBs: 485
UBI: number of PEBs reserved for bad PEB handling: 9
UBI: max/mean erase counter: 20/9
Volume rootfs found at volume id 1
read 16629760 bytes from volume 1 to 80800000(buf address)
rootfs CRC = 7E483624


Firmware_version=[DWR-966_v1.0.3CP_r03]

CRC OK, booting...
UBI: mtd1 is detached from ubi0
Creating 1 MTD partitions on "nand0":
0x0000001c0000-0x000007dc0000 : "mtd=4"
UBI: attaching mtd1 to ubi0
UBI: physical eraseblock size:   131072 bytes (128 KiB)
UBI: logical eraseblock size:    129024 bytes
UBI: smallest flash I/O unit:    2048
UBI: sub-page size:              512
UBI: VID header offset:          512 (aligned 512)
UBI: data offset:                2048
UBI: attached mtd1 to ubi0
UBI: MTD device name:            "mtd=4"
UBI: MTD device size:            124 MiB
UBI: number of good PEBs:        992
UBI: number of bad PEBs:         0
UBI: max. allowed volumes:       128
UBI: wear-leveling threshold:    4096
UBI: number of internal volumes: 1
UBI: number of user volumes:     7
UBI: available PEBs:             507
UBI: total number of reserved PEBs: 485
UBI: number of PEBs reserved for bad PEB handling: 9
UBI: max/mean erase counter: 20/9
Volume kernel found at volume id 0
read 0 bytes from volume 0 to 80800000(buf address)
Read [1806336] bytes
## Booting kernel from Legacy Image at 80800000 ...
   Image Name:   MIPS LTQCPE Linux-3.10.12
   Created:      2016-04-14   7:57:11 UTC
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:    1785792 Bytes = 1.7 MiB
   Load Address: 80002000
   Entry Point:  8000a970
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK

Starting kernel ...

[    0.000000] Linux version 3.10.12 (jackson@WNC-JPR233-BM4) (gcc version 4.8.1 20130401 (prerelease) (Linaro GCC 4.8-2013.04) ) #8 Thu Apr 14 15:56:55 CST 2016
[    0.000000] SoC: xRX330 rev 1.1
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 00019556 (MIPS 34Kc)
[    0.000000] adding memory size:267386880 from DT
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 0ff00000 @ 00000000 (usable)
[    1.150000] Switch API: PCE MicroCode loaded !!
[    1.150000] gphy_driver_init: fw_mode:11G-FW, no of phys:4, mode:0
mount: mounting none on /dev/pts failed: No such file or directory
rootdir=/
table='/etc/device_table.txt'
makedevs: line 64: can't create node dev/ram: File exists
makedevs: line 109: can't create node dev/vcc/: File exists
makedevs: line 111: can't create node dev/vc/: File exists
starting pid 611, tty '': '/etc/init.d/rcS S boot'
Switch antenna
The last switch is under INTernal antenna.
starting pid 655, tty '': '/sbin/getty 115200 ttyLTQ0'
System Init...
ECC failed: 0
ECC corrected: 0
Number of bad blocks: 0
Number of bbt blocks: 0
Block size 131072, page size 2048, OOB size 64
Dumping data starting at 0x00000000 and ending at 0x00100000...
cal_wlan0.bin
mac

(none) login: Using current ascii!!
user obj count 2
Module version: Can Not Connect To /tmp/cgi-2-sys!
sed: bad option in substitution expression
Jan  1 00:00:08 udevd[771]: error: runtime directory '/run/udev' not writable, for now falling back to '/dev/.udev'
Jan  1 00:00:08 udevd[772]: specified group 'tty' unknown

Jan  1 00:00:08 udevd[772]: specified group 'dialout' unknown

Jan  1 00:00:08 udevd[772]: specified group 'kmem' unknown

Jan  1 00:00:08 udevd[772]: specified group 'video' unknown

Jan  1 00:00:08 udevd[772]: specified group 'lp' unknown

Jan  1 00:00:08 udevd[772]: specified group 'disk' unknown

Jan  1 00:00:08 udevd[772]: specified group 'floppy' unknown

Jan  1 00:00:08 udevd[772]: specified group 'cdrom' unknown

Jan  1 00:00:08 udevd[772]: specified group 'tape' unknown

insmod: can't insert '/lib/modules/3.10.12/ltqmips_vrx318_e1.ko': Input/output error
Importing configuration...
upfwFlag: false
bootPar:A
curVer:DWR-966_v1.0.3CP_r03

oldVer:0

Firmware Upgrade: false
@@ import table name: FirewallNatConfig
 Polling Interval = 60
 Priority Threshold = 7
 Byte Rate based Management = 1
 Packet Rate based Management = 0
 Poll history = 1
 Maximum delete sessions = 30
 Mode = 0
@@ import table name: VoiceLine
@@ import table name: VoiceLine
@@ import table name: ethWanSetting
@@ import table name: SPI
@@ import table name: UrlFltrConfig
@@ import table name: FirewallDmz
@@ import table name: VoiceProfile
@@ import table name: wifiClient
@@ import table name: QoS
@@ import table name: RmtMgrConfig
@@ import table name: wifiProfile
@@ import table name: wifiProfile
@@ import table name: wifiProfile
@@ import table name: wifiProfile
@@ import table name: system
@@ import table name: VpnL2TPUserAccount
@@ import table name: ResetToDefault
@@ import table name: lteRadio
@@ import table name: SecurityConfig
@@ import table name: wifiSchedules
@@ import table name: tr69Config
@@ import table name: ntpConfig
@@ import table name: ApFwUpgrade
@@ import table name: accessMgmt
@@ import table name: sysLogInfo
@@ import table name: wifiAOCStrigger
@@ import table name: wifiAOCSstatus
@@ import table name: DhcpServerBasic
@@ import table name: RoutingConfig
@@ import table name: wifiRadio
@@ import table name: wifiRadio
@@ import table name: wifiAP
@@ import table name: wifiAP
@@ import table name: wifiAP
@@ import table name: wifiAP
@@ import table name: Services
@@ import table name: Services
@@ import table name: Services
@@ import table name: Services
@@ import table name: Services
@@ import table name: Services
@@ import table name: Services
@@ import table name: Services
@@ import table name: Services
@@ import table name: Services
@@ import table name: Services
@@ import table name: Services
@@ import table name: Services
@@ import table name: Services
@@ import table name: Services
@@ import table name: Services
@@ import table name: Services
@@ import table name: Services
@@ import table name: Services
@@ import table name: Services
@@ import table name: Services
@@ import table name: Services
@@ import table name: UPNP
@@ import table name: VpnConfig
@@ import table name: MultiLanguage
@@ import table name: MacTable
@@ import table name: MacTable
@@ import table name: MacTable
@@ import table name: MacTable
Loading USB Host mode driver
@@ import table name: MacTable
@@ import table name: MacTable
@@ import table name: ethWanSwitch
@@ import table name: Lan
@@ import table name: wifiWPS
@@ import table name: wifiWPS
@@ import table name: VpnPPTPUserAccount
@@ import table name: SambaSetting
@@ import table name: dlnaConfig
@@ import table name: ethWanStatus
@@ import table name: lteNwStatus
@@ import table name: lteNwStatus
@@ import table name: AuthCfg
@@ import table name: AuthCfg
@@ import table name: PeerToPeer
@@ import table name: DbgSetting
@@ import table name: wifiACLconfig
@@ import table name: lteNwProfile
@@ import table name: lteNwProfile
@@ import table name: FirewallConfig
@@ import table name: lteWanPriority
@@ import table name: ltePinStatus
@@ import table name: ltePinStatus
@@ import table name: SambaAccount
@@ import table name: SambaAccount
@@ import table name: wifiProfilecommit
@@ import table name: RemoteLog
@@ import table name: RemoteLog
@@ import table name: RemoteLog
@@ import table name: users
@@ import table name: VoiceLineSignaling
@@ import table name: VoiceLineSignaling
@@ import table name: crontab
@@ import table name: groups
@@ import table name: groups
@@ import table name: groups
@@ import table name: wifiStatus
@@ import table name: ddns
@@ import table name: VoiceProfileSignaling
@@ import table name: RoamingPDPType
@@ import table name: lteHwInfo
OK
Import DB : DONE
Found USB module connected on PCI(e)
insmod: can't insert '/lib/modules/3.10.12/usb-storage.ko': File exists
insmod lte modules .....
evtDsptchInit-120 :
evtDsptchInit-141 :
[   16.490000] ltq_gphy_firmware_config: fw_mode:11G-FW, no of phys:4,data_ptr:5440000
Network ok
disable PHY...
run script : firewall.sh
firewall init
run script : firewall_ipv6.sh
firewall_ipv6 init
run script : iptables_fw.sh
iptables_fw init
WWAN init with MAL manager ...
BR_MAC_ADDR= E8:CC:18:B8:F4:9D
run script : firewall_rule.sh
wlan_discover: PCI_DEVICES COUNT: 4
wlan_discover: PCI_ATH COUNT: 1
wlan_discover: PCI_LTQ COUNT: 0
wlan_discover: AHB_WLAN_COUNT: 1
wlan_discover: TOTAL WLAN COUNT: 2
wlan_discover: VALID PHY_CNT: 2
run script : filter_ipv6.sh
ipv6 filter init
run script : SessionLimit.sh
SessionLimit init
run script : filter.sh
filter init
run script : upnp_service.sh
upnp_service init
run script : forward.sh
forward init
run script : vpn_method.sh
vpn_method init
run script : urlfilter.sh
urlfilter init
Switch Init done
wlan_discover: highest discovered apIndex is 2
run script : schedule_rule.sh
schedule_rule init
run script : regmag.sh
regmag init
rc.bringup_wlan init
wlan_cmd =init
i=0
Initializing wave
run script : QosInit.sh
run script : dmz.sh
dmz init
sh: 0: unknown operand
net.ipv6.conf.all.disable_ipv6 = 1
IPv6 ENABLE is off
starting webs Daemon...dwatch: process[/usr/local/bin/webs]: 2596
successfully started  webs(pid2596)
Done
net.ipv6.conf.all.disable_ipv6 = 1
addr:192.168.1.1
killall: dnsmasq: no process killed
[um.c]pUserName:admin, pPassword:admin, pGroup:admin
setup accounts...
setup accounts...Enter Admin
.
tar: invalid gzip magic
tar: can't open '/tmp/eeprom.tar.gz': No such file or directory
dwatch: process[udhcpd]: 2747
successfully started  udhcpd(pid2747)
udhcpd (v1.17.1) started
mtlk module loaded in address: 0x86f00000
mtlkroot module loaded in address: 0x85510000
enable PHY...
LTETrig=
cat: can't open '/tmp/wifisetting_11n': No such file or directory
ifconfig: SIOCGIFFLAGS: No such device
rc.bringup_wlan start 0 1
START_VAP=0 , END_VAP=1
Starting Wave interface 0
sh: 2: unknown operand
[   52.730000] [RMNET:HI] rmnet_vnd_ioctl(): Unkown IOCTL 0x00008B01
drvhlpr.sh: drvhlpr terminated with status 4
ALERT #####################################################################################
ALERT ######### mtlk_set_wls_if: MAC of wlan0 is wrong. Must end with 0 or 8 ##########
ALERT ######### Number of supported VAPs may be limited due to this error #################
ALERT #####################################################################################
by pass mtlk_init_hostapd.sh
killing 4159
sh: can't kill pid 4159: No such process
WLANBeacon=100
WLANRTSTh=2346
WLANCh=0
WLANNetMode=bgn
WLANFortyMode=2040
WLANBoningCh=1
WLANTxoffset=0
WLANNetMode_int=23
WLANFortyMode_int=1
cat: can't open '/tmp/wifiDebug': No such file or directory
cant get the LTE bandinfo
WIFI ACL control script
Configuration file: /tmp/hostapd_1.conf
Using interface wlan0 with hwaddr e8:cc:18:b8:f4:9f and ssid "DWR-966_B8F49D"
WLANACLEn_1=0
WLANACLEn_2=0
disable the ACL
rc.bringup_wlan start 1 2
START_VAP=1 , END_VAP=2
Starting Wave interface 1
by pass mtlk_init_hostapd.sh
non boot phase
iptables: Bad rule (does a matching rule exist in that chain?).
interface ath1 does not exist!
interface ath1 does not exist!
udhcpd (v1.17.1) started
udhcpd: can't open '/var/lib/misc/udhcpd_br1.leases': No such file or directory
WIFI ACL control script
WLANACLEn_1=0
WLANACLEn_2=0
disable the ACL
no platform found
rc.bringup_wlan initac
wlan_cmd =initac
i=1
Initializing ath
[   80.230000] +HWT
[   80.230000] -HWT
[   80.230000] HTC Service:0x0300 ep:1 TX flow control disabled
[   80.240000] HTC Service:0x0100 ep:2 TX flow control disabled
[   80.260000] HTC TX lookup failed!
[   80.260000] HTC TX lookup failed!
[   80.270000] HTC TX lookup failed!
[   80.270000] HTC TX lookup failed!
[   80.270000] HTC TX lookup failed!
[   80.280000] HTC TX lookup failed!
[   80.280000] HTC TX lookup failed!
[   80.280000] HTC TX lookup failed!
[   80.290000] HTC TX lookup failed!
[   80.290000] HTC TX lookup failed!
[   80.290000] HTC TX lookup failed!
[   80.290000] HTC TX lookup failed!
[   80.300000] HTC TX lookup failed!
[   80.300000] HTC TX lookup failed!
[   80.300000] HTC TX lookup failed!
[   80.310000] HTC TX lookup failed!
[   80.310000] HTC TX lookup failed!
[   80.310000] HTC TX lookup failed!
[   80.320000] HTC TX lookup failed!
[   80.320000] HTC TX lookup failed!
[   80.320000] HTC TX lookup failed!
[   80.330000] HTC TX lookup failed!
[   80.330000] HTC TX lookup failed!
[   80.330000] HTC TX lookup failed!
[   80.340000] HTC TX lookup failed!
[   80.340000] HTC TX lookup failed!
[   80.340000] HTC TX lookup failed!
[   80.350000] HTC TX lookup failed!
[   80.350000] HTC TX lookup failed!
[   80.350000] HTC TX lookup failed!
[   80.360000] HTC TX lookup failed!
[   80.360000] HTC TX lookup failed!
[   80.360000] HTC TX lookup failed!
[   80.370000] HTC TX lookup failed!
[   80.370000] HTC TX lookup failed!
[   80.370000] HTC TX lookup failed!
[   80.380000] HTC TX lookup failed!
[   80.380000] HTC TX lookup failed!
[   80.380000] HTC TX lookup failed!
[   80.390000] HTC TX lookup failed!
[   80.390000] HTC TX lookup failed!
[   80.390000] HTC TX lookup failed!
[   80.400000] HTC TX lookup failed!
[   80.400000] HTC TX lookup failed!
[   80.400000] HTC TX lookup failed!
[   80.410000] HTC TX lookup failed!
[   80.410000] HTC TX lookup failed!
[   80.410000] HTC TX lookup failed!
[   80.420000] HTC TX lookup failed!
[   80.420000] HTC TX lookup failed!
[   80.420000] HTC TX lookup failed!
[   80.430000] HTC TX lookup failed!
[   80.430000] HTC TX lookup failed!
[   80.430000] HTC TX lookup failed!
[   80.440000] HTC TX lookup failed!
[   80.440000] HTC TX lookup failed!
[   80.440000] HTC TX lookup failed!
[   80.450000] HTC TX lookup failed!
[   80.450000] HTC TX lookup failed!
[   80.450000] HTC TX lookup failed!
[   80.460000] HTC TX lookup failed!
[   80.460000] HTC TX lookup failed!
[   80.460000] HTC TX lookup failed!
rc.bringup_wlan start 2 4
START_VAP=2 , END_VAP=4
Starting QCA interface
ath_wlan_ap_start 2
[   81.840000] [RMNET:HI] rmnet_vnd_ioctl(): Unkown IOCTL 0x00008B01
Create ath0 interface for device wifi0
[   81.940000] VAP device ath0 created
ath0
Radio is up
wifi interface wifi0 is up
ifconfig: SIOCGIFFLAGS: No such device
/etc/rc.d/ath_wlan_ap_start: line 1: [1: not found
Interface doesn't accept private ioctl...
AMPDU (8BE0): Operation not permitted
Interface doesn't accept private ioctl...
AMPDUFrames (8BE0): Operation not permitted
Interface doesn't accept private ioctl...
AMPDULim (8BE0): Operation not permitted
Error for wireless request "Set Frequency" (8B04) :
    SET failed on device ath0 ; Invalid argument.
/etc/rc.d/ath_wlan_ap_start: line 1: [1: not found
Making Topology File . . .
Starting QCA interface
ath_wlan_ap_start 3
[   86.370000] [RMNET:HI] rmnet_vnd_ioctl(): Unkown IOCTL 0x00008B01
Create ath1 interface for device wifi0
[   86.450000] VAP device ath1 created
ath1
Radio is up
wifi interface wifi0 is up
/etc/rc.d/ath_wlan_ap_start: line 1: [1: not found
Interface doesn't accept private ioctl...
AMPDU (8BE0): Operation not permitted
Interface doesn't accept private ioctl...
AMPDUFrames (8BE0): Operation not permitted
Interface doesn't accept private ioctl...
AMPDULim (8BE0): Operation not permitted
Error for wireless request "Set Frequency" (8B04) :
    SET failed on device ath1 ; Invalid argument.
/etc/rc.d/ath_wlan_ap_start: line 1: [1: not found
Making Topology File . . .
ath0      Link encap:Ethernet  HWaddr E8:CC:18:B8:F4:9E
cat: can't open '/tmp/wifisetting_11ac': No such file or directory
killing 5251
sh: can't kill pid 5251: No such process
WLANBeacon=100
WLANRTSTh=2346
WLANCh=0
WLANNetMode=ac
WLANFortyMode=80
WLANBoningCh=1
WLANNetMode_s=11AC
WLANFortyMode_s=VHT80
CHMODE=11ACVHT80
QCA9880 warming up 1 sec
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
QCA9880 warm up
non boot phase
Configuration file: /tmp/hostapd_ac.conf
ath0: Could not connect to kernel driver
Using interface ath0 with hwaddr e8:cc:18:b8:f4:9e and ssid 'DWR-966_5GHz_B8F49D'
WIFI ACL control script
WLANACLEn_1=0
WLANACLEn_2=0
disable the ACL
RUN led_config.sh
killall: ripd: no process killed
killall: syslogd: no process killed
killall: syslog-ng: no process killed
Power LED : delay_on=, delay_off=0, brightness=1
killall: send_radiosyslog.sh: no process killed
killall: send_voipsyslog.sh: no process killed
sh: can't kill pid 5423: No such process
--------------- EMI CMD START ---------------
writing 0x8000000f into address 0x1f2030c8
--------------- Disable Auto-polling ---------------
--------------- Disable port 0 GPHY CLKOUT ---------------
write dev=0x0, reg=0xd, data=0x1f
write dev=0x0, reg=0xe, data=0xea9
write dev=0x0, reg=0xd, data=0x401f
write dev=0x0, reg=0xe, data=0x15
--------------- RGMII slew rate control enable ---------------
write dev=0x0, reg=0xd, data=0x1f
write dev=0x0, reg=0xe, data=0xea8
write dev=0x0, reg=0xd, data=0x401f
write dev=0x0, reg=0xe, data=0x85
--------------- Enable Auto-polling ---------------
--------------- Restart auto-negotiation ---------------
--------------- EMI CMD END ---------------
--------------- Change Ethernet Port output voltage START ---------------
write dev=0x0, reg=0x13, data=0x501
write dev=0x2, reg=0x13, data=0x501
write dev=0x4, reg=0x13, data=0x501
write dev=0x1, reg=0x13, data=0x501
--------------- Change Ethernet Port output voltage END ---------------
event handler already exist.
Terminated
Not start VoIP Services...Done
TR69 is Disabled
killall: inadyn: no process killed
run script : upnp_service.sh
killall: miniupnpd: no process killed
UPNP Service on
BOOTLoader:U-Boot-2010.06-dirty-LANTIQ-v-2.3.08
CPU:P02003
Kernel:3.10.12
Software:DWR-966_v1.0.3CP_r03-1556-14Apr16
Branch:P02003-UGW-6.1
Tool Chain:4.8-linaro/0.9.33.2
PPA SubSystem version info:v3.0.0-0
PPA ppacmd utility tool info:2.9.0
PPE HAL driver info:128.4.3.1.0.0.2
Switch API Version: 2.0.1
Wave wlan version: 03.04.02.40_05_UGW_6.1
Wave wlan driver version: 03.04.02.00.25.c9c85872fd07
Wave wlan MAC FW version: FW_3.4.2_based_on_3.4.2.40_for_UGW_r3625
Wave300 wlan PHY version: 1668
AR10 wlan PHY version: 1796
Wave wlan scripts version:
Starting the cron deamon...crond started
/etc/rc.common: line 92: ./mnt/data/dbg_script.sh: not found

bootlog z openwrt:

ROM VER: 1.0.0  
CFG 06
NAND

DDR autotuning Rev 1.0
DDR size from 0xa0000000 - 0xa7ffffff
DDR check ok... start booting...



U-Boot 2010.06-dirty-LANTIQ-v-2.3.08 (Aug 14 2015 - 10:30:43)

CLOCK CPU 600M RAM 300M
16 Bit RAM
DRAM:  128 MiB  
NAND:  ONFI flash detected
ONFI param page 0 valid
NAND device: Manufacturer ID: 0x01, Chip ID: 0xf1 (AMD S34ML01G1)
128 MiB
Bad block table found at page 65472, version 0x01
Bad block table found at page 65408, version 0x01
In:    serial   
Out:   serial   
Err:   serial   
Net:   internal phy using 25Mhz clock
Internal phy firmware version: 0x8434
ar10 Switch

Type "run flash_nfs" to mount root filesystem over NFS

part1_err=0,part2_err=0
Hit any key to stop autoboot:  0
GRX330 # setenv loadaddr 0x84000000
GRX330 # run net_ram
Using ar10 Switch device
TFTP from server 192.168.1.100; our IP address is 192.168.1.1
Filename 'uImage'.
Load address: 0x84000000
Loading: #################################################################
         #################################################################
         #################################################################
         #################################################################
         ####################
done
Bytes transferred = 4109737 (3eb5a9 hex)
## Booting kernel from Legacy Image at 84000000 ...
   Image Name:   MIPS OpenWrt Linux-4.19.123
   Created:      2020-05-30  13:40:47 UTC
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:    4109673 Bytes = 3.9 MiB
   Load Address: 80002000
   Entry Point:  80002000
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK

Starting kernel ...

[    0.000000] Linux version 4.19.123 (aleksander@LAPTOP-OLEK) (gcc version 8.4.0 (OpenWrt GCC 8.4.0 r13400-d182e08d92)) #0 SMP Sat May 30 13:40:47 2020
[    0.000000] SoC: xRX330 rev 1.1
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 00019556 (MIPS 34Kc)
[    0.000000] MIPS: machine is D-Link DWR-966
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 08000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Detected 1 available secondary CPU(s)
[    0.000000] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] random: get_random_bytes called from start_kernel+0x98/0x4dc with crng_init=0
[    0.000000] percpu: Embedded 14 pages/cpu s26256 r8192 d22896 u57344
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 32480
[    0.000000] Kernel command line: console=ttyLTQ0,115200
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Writing ErrCtl register=0007fff0
[    0.000000] Readback ErrCtl register=0007fff0
[    0.000000] Memory: 119672K/131072K available (5091K kernel code, 201K rwdata, 1292K rodata, 3128K init, 227K bss, 11400K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000] NR_IRQS: 256
[    0.000000] CPU Clock: 600MHz
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 6370868154 ns
[    0.000009] sched_clock: 32 bits at 300MHz, resolution 3ns, wraps every 7158278654ns
[    0.007891] Calibrating delay loop... 397.82 BogoMIPS (lpj=795648)
[    0.045938] pid_max: default: 32768 minimum: 301
[    0.050851] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.057350] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.067410] rcu: Hierarchical SRCU implementation.
[    0.073260] smp: Bringing up secondary CPUs ...
[    0.078695] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.078710] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
[    0.078845] CPU1 revision is: 00019556 (MIPS 34Kc)
[    0.105870] Synchronize counters for CPU 1: done.
[    0.130196] smp: Brought up 1 node, 2 CPUs
[    0.138401] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.148033] futex hash table entries: 512 (order: 2, 16384 bytes)
[    0.154489] pinctrl core: initialized pinctrl subsystem
[    0.161390] NET: Registered protocol family 16
[    0.183192] pinctrl-xway 1e100b10.pinmux: Init done
[    0.189323] dma-xway 1e104100.dma: Init done - hw rev: 8, ports: 5, channels: 24
[    0.223147] gpio-stp-xway 1e100bb0.stp: Init done
[    0.229193] usbcore: registered new interface driver usbfs
[    0.234761] usbcore: registered new interface driver hub
[    0.240115] usbcore: registered new device driver usb
[    0.247900] clocksource: Switched to clocksource MIPS
[    0.254483] NET: Registered protocol family 2
[    0.260285] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes)
[    0.267895] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.274880] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
[    0.281308] TCP: Hash tables configured (established 1024 bind 1024)
[    0.287881] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.293656] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.300277] NET: Registered protocol family 1
[    0.490973] random: fast init done
[    3.860576] gptu: totally 6 16-bit timers/counters
[    3.865414] gptu: misc_register on minor 63
[    3.869576] gptu: succeeded to request irq 126
[    3.874055] gptu: succeeded to request irq 127
[    3.878583] gptu: succeeded to request irq 128
[    3.883111] gptu: succeeded to request irq 129
[    3.887608] gptu: succeeded to request irq 130
[    3.892124] gptu: succeeded to request irq 131
[    3.896782] No VPEs reserved for AP/SP, not initialize VPE loader
[    3.896782] Pass maxvpes=<n> argument as kernel argument
[    3.908149] No TCs reserved for AP/SP, not initializing RTLX.
[    3.908149] Pass maxtcs=<n> argument as kernel argument
[    3.920770] Crashlog allocated RAM at address 0x3f00000
[    3.926301] workingset: timestamp_bits=14 max_order=15 bucket_order=1
[    3.946423] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    3.952185] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    3.970800] io scheduler noop registered
[    3.974808] io scheduler deadline registered (default)
[    3.982465] xway-rcu-gphy 1f203000.rcu:gphy@264: Failed to lookup gate clock
[    3.989516] xway-rcu-gphy: probe of 1f203000.rcu:gphy@264 failed with error -2
[    3.998306] 1e100c00.serial: ttyLTQ0 at MMIO 0x1e100c00 (irq = 112, base_baud = 0) is a lantiq,asc
[    4.007214] console [ttyLTQ0] enabled
[    4.007214] console [ttyLTQ0] enabled
[    4.014516] bootconsole [early0] disabled
[    4.014516] bootconsole [early0] disabled
[    4.026147] nand: device found, Manufacturer ID: 0x01, Chip ID: 0xf1
[    4.031168] nand: AMD/Spansion S34ML01G1
[    4.034916] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    4.042476] Scanning device for bad blocks
[    4.114055] 8 fixed-partitions partitions found on MTD device 14000000.nand
[    4.119568] Creating 8 MTD partitions on "14000000.nand":
[    4.124920] 0x000000000000-0x000000100000 : "uboot"
[    4.131272] 0x000000100000-0x000000140000 : "ubootconfigA"
[    4.136825] 0x000000140000-0x000000180000 : "ubootconfigB"
[    4.142405] 0x000000180000-0x0000001c0000 : "gphyfirmware"
[    4.148099] 0x0000001c0000-0x000007dc0000 : "ubi"
[    4.154129] 0x000007dc0000-0x000007ec0000 : "calibration"
[    4.159703] 0x000007ec0000-0x000007fc0000 : "factory"
[    4.164886] 0x000007fc0000-0x000008000000 : "res"
[    4.170853] libphy: Fixed MDIO Bus: probed
[    4.176665] wdt 1f8803f0.watchdog: Init done
[    4.187343] NET: Registered protocol family 10
[    4.193591] Segment Routing with IPv6
[    4.196001] NET: Registered protocol family 17
[    4.200382] 8021q: 802.1Q VLAN Support v1.8
[    4.315256] libphy: lantiq,xrx200-mdio: probed
[    4.407436] Intel XWAY PHY11G (xRX v1.2 integrated) 0:01: attached PHY driver [Intel XWAY PHY11G (xRX v1.2 integrated)] (mii_bus:phy_addr=0:01, irq=POLL)
[    4.421004] Intel XWAY PHY11G (xRX v1.2 integrated) 0:02: attached PHY driver [Intel XWAY PHY11G (xRX v1.2 integrated)] (mii_bus:phy_addr=0:02, irq=POLL)
[    4.434645] Intel XWAY PHY11G (xRX v1.2 integrated) 0:03: attached PHY driver [Intel XWAY PHY11G (xRX v1.2 integrated)] (mii_bus:phy_addr=0:03, irq=POLL)
[    4.448286] Intel XWAY PHY11G (xRX v1.2 integrated) 0:04: attached PHY driver [Intel XWAY PHY11G (xRX v1.2 integrated)] (mii_bus:phy_addr=0:04, irq=POLL)
[    4.463226] UBI: auto-attach mtd4
[    4.465094] ubi0: attaching mtd4
[    4.602655] ubi0: scanning is finished
[    4.633808] ubi0: attached mtd4 (name "ubi", size 124 MiB)
[    4.637913] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 129024 bytes
[    4.644693] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 512
[    4.651337] ubi0: VID header offset: 512 (aligned 512), data offset: 2048
[    4.658059] ubi0: good PEBs: 992, bad PEBs: 0, corrupted PEBs: 0
[    4.664027] ubi0: user volume: 7, internal volumes: 1, max. volumes count: 128
[    4.671199] ubi0: max/mean erase counter: 22/9, WL threshold: 4096, image sequence number: 0
[    4.679579] ubi0: available PEBs: 496, total reserved PEBs: 496, PEBs reserved for bad PEB handling: 20
[    4.688962] ubi0: background thread "ubi_bgt0d" started, PID 450
[    4.692396] block ubiblock0_1: created from ubi0:1(rootfs)
[    4.700326] ubiblock: device ubiblock0_1 (rootfs) set to be root fil[    4.716918] Freeing unused kernel memory: 3128K
[    4.720032] This architecture does not have kernel memory protection.
[    4.726391] Run /init as init process
[    4.749993] init: Console is alive
[    4.752319] init: - watchdog -
[    4.776215] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    4.787516] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    4.799970] SCSI subsystem initialized
[    4.807099] ehci-platform: EHCI generic platform driver
[    4.817347] dwc2 1e101000.usb: 1e101000.usb supply vusb_d not found, using dummy regulator
[    4.824353] dwc2 1e101000.usb: Linked as a consumer to regulator.0
[    4.830301] dwc2 1e101000.usb: 1e101000.usb supply vusb_a not found, using dummy regulator
[    4.941437] dwc2 1e101000.usb: DWC OTG Controller
[    4.944798] dwc2 1e101000.usb: new USB bus registered, assigned bus number 1
[    4.951776] dwc2 1e101000.usb: irq 62, io mem 0x1e101000
[    4.958221] hub 1-0:1.0: USB hub found
[    4.960833] hub 1-0:1.0: 1 port detected
[    4.965830] dwc2 1e106000.usb: 1e106000.usb supply vusb_d not found, using dummy regulator
[    4.972964] dwc2 1e106000.usb: Linked as a consumer to regulator.0
[    4.978986] dwc2 1e106000.usb: 1e106000.usb supply vusb_a not found, using dummy regulator
[    5.089247] dwc2 1e106000.usb: DWC OTG Controller
[    5.092589] dwc2 1e106000.usb: new USB bus registered, assigned bus number 2
[    5.099567] dwc2 1e106000.usb: irq 91, io mem 0x1e106000
[    5.106004] hub 2-0:1.0: USB hub found
[    5.108659] hub 2-0:1.0: 1 port detected
[    5.117539] usbcore: registered new interface driver usb-storage
[    5.122403] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    5.132904] init: - preinit -
[    5.313955] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[    5.335358] random: procd: uninitialized urandom read (4 bytes read)
Press the [f] key and hit [enter] to enter failsafe mode
Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level
[    8.375591] lantiq,xrx200-net 1e108000.eth eth0: port 1 got link
[    8.380211] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[    9.494409] procd: - early -
[    9.496142] procd: - watchdog -
[   10.115971] procd: - watchdog -
[   10.118171] procd: - ubus -
[   10.128395] random: ubusd: uninitialized urandom read (4 bytes read)
[   10.170546] random: ubusd: uninitialized urandom read (4 bytes read)
[   10.176035] random: ubusd: uninitialized urandom read (4 bytes read)
[   10.183675] procd: - init -
Please press Enter to activate this console.
[   10.423117] lantiq,xrx200-net 1e108000.eth eth0: port 1 lost link
[   10.630847] kmodloader: loading kernel modules from /etc/modules.d/*
[   10.655773] ntfs: driver 2.1.32 [Flags: R/O MODULE].
[   10.739332] xt_time: kernel timezone is -0000
[   10.773743] PPP generic driver version 2.4.2
[   10.780828] NET: Registered protocol family 24
[   10.808201] kmodloader: done loading kernel modules from /etc/modules.d/*
[   11.021803] urngd: v1.0.2 started.
[   11.221157] random: crng init done
[   11.223147] random: 6 urandom warning(s) missed due to ratelimiting
[   23.101430] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   23.123812] br-lan: port 1(eth0.1) entered blocking state
[   23.127876] br-lan: port 1(eth0.1) entered disabled state
[   23.133826] device eth0.1 entered promiscuous mode
[   23.137941] device eth0 entered promiscuous mode
[   23.165468] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[   28.215590] lantiq,xrx200-net 1e108000.eth eth0: port 1 got link
[   28.220213] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   28.228115] br-lan: port 1(eth0.1) entered blocking state
[   28.232108] br-lan: port 1(eth0.1) entered forwarding state
[   28.239877] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready


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

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 OpenWrt SNAPSHOT, r13401-1d6aff7d75
 -----------------------------------------------------
=== 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.
--------------------------------------------------

USB i switch działa więc mogę wrzucić na niego dowolny obraz. Zrobiłem sobie też kopię wszystkich partycji i jak coś pójdzie nie tak przywrócenie oryginalnego softu nie jest problemem. smile

Kod który testuję jest na Githubie. Wszelkie uwagi milie widziane smile