Odp: D-Link DWR-116 + OpenWRT
https://openwrt.org/toh/d-link/d-link_dwr-116 -> tam jest rozpiska
Mam: D-Linki DWR-921, DWR-118, DWR-116, TP-Link WDR-4900 v1, Checkpoint L-50, Linksysy 1900ACS, LB-Link BL-W1200,
Nie jesteś zalogowany. Proszę się zalogować lub zarejestrować.
eko.one.pl → Oprogramowanie / Software → D-Link DWR-116 + OpenWRT
Strony Poprzednia 1 … 9 10 11 12 13 … 20 Następna
Zaloguj się lub zarejestruj by napisać odpowiedź
https://openwrt.org/toh/d-link/d-link_dwr-116 -> tam jest rozpiska
1 - tx lub rx
2 - gnd
3 - vcc
4 - nc
5 - tx lub rx?
Tak na oko.
EDIT: blisko ![]()
Dziękuję. Jeszcze nie popsułam, ale żongluję softami więc muszę być przygotowana na reanimację ![]()
Próbuję skompilować LEDE, ale bez względu na wersję wyrzuca błąd w jednym miejscu:
make[8]: *** No rule to make target 'drivers/mtd/mtdsplit/mtdsplit_jimage.o', needed by 'drivers/mtd/mtdsplit/built-in.o'. Stop.
make[7]: *** [scripts/Makefile.build:476: drivers/mtd/mtdsplit] Error 2
make[6]: *** [scripts/Makefile.build:476: drivers/mtd] Error 2
make[5]: *** [Makefile:979: drivers] Error 2
make[5]: Leaving directory '/DANE2/DWR-116/source/build_dir/target-mipsel_24kc_musl-1.1.16/linux-ramips_mt7620/linux-4.4.147'
make[4]: *** [Makefile:27: /DANE2/DWR-116/source/build_dir/target-mipsel_24kc_musl-1.1.16/linux-ramips_mt7620/linux-4.4.147/.image] Error 2
make[4]: Leaving directory '/DANE2/DWR-116/source/target/linux/ramips'
make[3]: *** [Makefile:13: install] Error 2
make[3]: Leaving directory '/DANE2/DWR-116/source/target/linux'
make[2]: *** [target/Makefile:23: target/linux/install] Error 2
make[2]: Leaving directory '/DANE2/DWR-116/source'
make[1]: *** [target/Makefile:18: /DANE2/DWR-116/source/staging_dir/target-mipsel_24kc_musl-1.1.16/stamp/.target_install] Error 2
make[1]: Leaving directory '/DANE2/DWR-116/source'
make: *** [/DANE2/DWR-116/source/include/toplevel.mk:207: world] Błąd 2Patche r3948-5886a5060a i 84c1b786b9830c17034e5de915ce11965666febd nałożone, czy coś robię źle?
Nie masz obsługi jboota? Tego nie przeniosłaś.
Zaaplikowałam patch:
patch -i jboot.patch -p1
checking file package/utils/jboot-tools/Makefile
checking file package/utils/jboot-tools/README.md
checking file package/utils/jboot-tools/src/CMakeLists.txt
checking file package/utils/jboot-tools/src/jboot_config_read.cZnowu błąd:
make[8]: *** No rule to make target 'drivers/mtd/mtdsplit/mtdsplit_jimage.o', needed by 'drivers/mtd/mtdsplit/built-in.o'. Stop.
make[7]: *** [scripts/Makefile.build:476: drivers/mtd/mtdsplit] Error 2
make[6]: *** [scripts/Makefile.build:476: drivers/mtd] Error 2
make[5]: *** [Makefile:980: drivers] Error 2
make[5]: Leaving directory '/DANE2/DWR-116/lede/build_dir/target-mipsel_24kc_musl-1.1.16/linux-ramips_mt7620/linux-4.4.153'
make[4]: *** [Makefile:27: /DANE2/DWR-116/lede/build_dir/target-mipsel_24kc_musl-1.1.16/linux-ramips_mt7620/linux-4.4.153/.image] Error 2
make[4]: Leaving directory '/DANE2/DWR-116/lede/target/linux/ramips'
make[3]: *** [Makefile:13: install] Error 2
make[3]: Leaving directory '/DANE2/DWR-116/lede/target/linux'
make[2]: *** [target/Makefile:23: target/linux/install] Error 2
make[2]: Leaving directory '/DANE2/DWR-116/lede'
make[1]: *** [target/Makefile:18: /DANE2/DWR-116/lede/staging_dir/target-mipsel_24kc_musl-1.1.16/stamp/.target_install] Error 2
make[1]: Leaving directory '/DANE2/DWR-116/lede'
make: *** [/DANE2/DWR-116/lede/include/toplevel.mk:207: world] Błąd 2mkdir -p /DANE2/DWR-116/lede/bin/targets/ramips/mt7620 /DANE2/DWR-116/lede/build_dir/target-mipsel_24kc_musl-1.1.16/linux-ramips_mt7620/tmp
tar -cp --numeric-owner --owner=0 --group=0 --sort=name --mtime="@1535631054" -C /DANE2/DWR-116/lede/build_dir/target-mipsel_24kc_musl-1.1.16/root-ramips/ . | gzip -9n > /DANE2/DWR-116/lede/bin/targets/ramips/mt7620/lede-ramips-mt7620-device-dwr-116-a-rootfs.tar.gz
/DANE2/DWR-116/lede/staging_dir/host/bin/mksquashfs4 /DANE2/DWR-116/lede/build_dir/target-mipsel_24kc_musl-1.1.16/root-ramips /DANE2/DWR-116/lede/build_dir/target-mipsel_24kc_musl-1.1.16/linux-ramips_mt7620/root.squashfs -nopad -noappend -root-owned -comp xz -Xpreset 9 -Xe -Xlc 0 -Xlp 2 -Xpb 2 -b 256k -p '/dev d 755 0 0' -p '/dev/console c 600 0 0 5 1' -processors 1 -fixed-time 1535631054
Parallel mksquashfs: Using 1 processor
Creating 4.0 filesystem on /DANE2/DWR-116/lede/build_dir/target-mipsel_24kc_musl-1.1.16/linux-ramips_mt7620/root.squashfs, block size 262144.
Pseudo file "/dev" exists in source filesystem "/DANE2/DWR-116/lede/build_dir/target-mipsel_24kc_musl-1.1.16/root-ramips/dev".
Ignoring, exclude it (-e/-ef) to override.
[================================================================================================================================================================================================\] 1599/1599 100%
Exportable Squashfs 4.0 filesystem, xz compressed, data block size 262144
compressed data, compressed metadata, compressed fragments, no xattrs
duplicates are removed
Filesystem size 4398.70 Kbytes (4.30 Mbytes)
35.24% of uncompressed filesystem size (12480.67 Kbytes)
Inode table size 12188 bytes (11.90 Kbytes)
19.28% of uncompressed inode table size (63221 bytes)
Directory table size 17322 bytes (16.92 Kbytes)
42.83% of uncompressed directory table size (40444 bytes)
Number of duplicate files found 267
Number of inodes 1920
Number of files 1590
Number of fragments 36
Number of symbolic links 243
Number of device nodes 1
Number of fifo nodes 0
Number of socket nodes 0
Number of directories 86
Number of ids (unique uids + gids) 1
Number of uids 1
root (0)
Number of gids 1
root (0)
rm -f /DANE2/DWR-116/lede/build_dir/target-mipsel_24kc_musl-1.1.16/linux-ramips_mt7620/dwr-116-a-kernel.bin
cp /DANE2/DWR-116/lede/build_dir/target-mipsel_24kc_musl-1.1.16/linux-ramips_mt7620/vmlinux /DANE2/DWR-116/lede/build_dir/target-mipsel_24kc_musl-1.1.16/linux-ramips_mt7620/dwr-116-a-kernel.bin
mipsel-openwrt-linux-musl-cpp -nostdinc -x assembler-with-cpp -I/DANE2/DWR-116/lede/build_dir/target-mipsel_24kc_musl-1.1.16/linux-ramips_mt7620/linux-4.4.153/arch/mips/boot/dts -I/DANE2/DWR-116/lede/build_dir/target-mipsel_24kc_musl-1.1.16/linux-ramips_mt7620/linux-4.4.153/arch/mips/boot/dts/include -undef -D__DTS__ -o /DANE2/DWR-116/lede/build_dir/target-mipsel_24kc_musl-1.1.16/linux-ramips_mt7620/dwr-116-a-kernel.bin.dtb.tmp ../dts/DWR-116-A.dts
mipsel-openwrt-linux-musl-cpp: error: ../dts/DWR-116-A.dts: No such file or directory
mipsel-openwrt-linux-musl-cpp: warning: '-x assembler-with-cpp' after last input file has no effect
mipsel-openwrt-linux-musl-cpp: fatal error: no input files
compilation terminated.
make[5]: *** [Makefile:315: /DANE2/DWR-116/lede/build_dir/target-mipsel_24kc_musl-1.1.16/linux-ramips_mt7620/dwr-116-a-kernel.bin] Error 1
make[5]: Leaving directory '/DANE2/DWR-116/lede/target/linux/ramips/image'
make[4]: *** [Makefile:26: install] Error 2
make[4]: Leaving directory '/DANE2/DWR-116/lede/target/linux/ramips'
make[3]: *** [Makefile:13: install] Error 2
make[3]: Leaving directory '/DANE2/DWR-116/lede/target/linux'
make[2]: *** [target/Makefile:23: target/linux/install] Error 2
make[2]: Leaving directory '/DANE2/DWR-116/lede'
make[1]: *** [target/Makefile:18: /DANE2/DWR-116/lede/staging_dir/target-mipsel_24kc_musl-1.1.16/stamp/.target_install] Error 2
make[1]: Leaving directory '/DANE2/DWR-116/lede'
make: *** [/DANE2/DWR-116/lede/include/toplevel.mk:207: world] Błąd 2Którego patcha jeszcze brakuje? Nie mogę tego ogarnąć...
https://github.com/openwrt/openwrt/comm … a1ae702da6
A i dts nie masz: https://github.com/openwrt/openwrt/blob … 116-A1.dts
Ten patch nałożyłam już wcześniej:
patch -i 680e867d7f48bc326007e0b2bd8abba1ae702da6.patch -p1 --dry-run
checking file target/linux/generic/config-3.18
Reversed (or previously applied) patch detected! Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored
can't find file to patch at input line 39
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git a/target/linux/generic/config-4.14 b/target/linux/generic/config-4.14
|index 81b82a0fbd1..1048e3d0284 100644
|--- a/target/linux/generic/config-4.14
|+++ b/target/linux/generic/config-4.14
--------------------------
File to patch:
Skip this patch? [y]
Skipping patch.
1 out of 1 hunk ignored
checking file target/linux/generic/config-4.4
Reversed (or previously applied) patch detected! Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored
can't find file to patch at input line 63
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git a/target/linux/generic/config-4.9 b/target/linux/generic/config-4.9
|index 88742eb2a19..344749ec9e9 100644
|--- a/target/linux/generic/config-4.9
|+++ b/target/linux/generic/config-4.9
--------------------------
File to patch:
Skip this patch? [y]
Skipping patch.
1 out of 1 hunk ignored
checking file target/linux/generic/files/drivers/mtd/mtdsplit/Kconfig
Hunk #1 succeeded at 74 with fuzz 1 (offset 5 lines).
checking file target/linux/generic/files/drivers/mtd/mtdsplit/Makefile
Hunk #1 FAILED at 10.
1 out of 1 hunk FAILED
The next patch would create the file target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit_jimage.c,
which already exists! Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignoredDTS również na swoim miejscu:
ls /DANE2/DWR-116/lede/target/linux/ramips/dts/DWR-116-A1.dts
/DANE2/DWR-116/lede/target/linux/ramips/dts/DWR-116-A1.dtsProblem jest taki, że OpenWRT 18.06 jednak działa źle z DWR-116, po próbie pracy na tym doszłam do takiego wniosku. Jedynie LEDE jako tako ciągnie. Tylko, że nie idzie tego skompilować...
Pamiętam, że Cezary do swoich obrazów opartych na LEDE poprawiał patche. Pewnie trzeba coś zmodyfikować. Można by przygotować patche backportowe, skoro na 4.4 chodzi stabilnie.
Jaasne.
../dts/DWR-116-A.dts
DTS również na swoim miejscu:
ls /DANE2/DWR-116/lede/target/linux/ramips/dts/DWR-116-A1.dts /DANE2/DWR-116/lede/target/linux/ramips/dts/DWR-116-A1.dts
Widzisz różnicę w nazwie pliku?
Faktycznie jestem mało spostrzegawcza...
rm -f /DANE2/DWR-116/lede/build_dir/target-mipsel_24kc_musl-1.1.16/linux-ramips_mt7620/dwr-116-a-kernel.bin
cp /DANE2/DWR-116/lede/build_dir/target-mipsel_24kc_musl-1.1.16/linux-ramips_mt7620/vmlinux /DANE2/DWR-116/lede/build_dir/target-mipsel_24kc_musl-1.1.16/linux-ramips_mt7620/dwr-116-a-kernel.bin
mipsel-openwrt-linux-musl-cpp -nostdinc -x assembler-with-cpp -I/DANE2/DWR-116/lede/build_dir/target-mipsel_24kc_musl-1.1.16/linux-ramips_mt7620/linux-4.4.153/arch/mips/boot/dts -I/DANE2/DWR-116/lede/build_dir/target-mipsel_24kc_musl-1.1.16/linux-ramips_mt7620/linux-4.4.153/arch/mips/boot/dts/include -undef -D__DTS__ -o /DANE2/DWR-116/lede/build_dir/target-mipsel_24kc_musl-1.1.16/linux-ramips_mt7620/dwr-116-a-kernel.bin.dtb.tmp ../dts/DWR-116-A.dts
/DANE2/DWR-116/lede/build_dir/target-mipsel_24kc_musl-1.1.16/linux-ramips_mt7620/linux-4.4.153/scripts/dtc/dtc -O dtb -i../dts/ -o /DANE2/DWR-116/lede/build_dir/target-mipsel_24kc_musl-1.1.16/linux-ramips_mt7620/dwr-116-a-kernel.bin.dtb /DANE2/DWR-116/lede/build_dir/target-mipsel_24kc_musl-1.1.16/linux-ramips_mt7620/dwr-116-a-kernel.bin.dtb.tmp
ERROR (phandle_references): Reference to non-existent node or label "ephy_pins"
ERROR: Input tree has errors, aborting (use -f to force output)
make[5]: *** [Makefile:315: /DANE2/DWR-116/lede/build_dir/target-mipsel_24kc_musl-1.1.16/linux-ramips_mt7620/dwr-116-a-kernel.bin] Error 2
make[5]: Leaving directory '/DANE2/DWR-116/lede/target/linux/ramips/image'
make[4]: *** [Makefile:26: install] Error 2
make[4]: Leaving directory '/DANE2/DWR-116/lede/target/linux/ramips'
make[3]: *** [Makefile:13: install] Error 2
make[3]: Leaving directory '/DANE2/DWR-116/lede/target/linux'
make[2]: *** [target/Makefile:23: target/linux/install] Error 2
make[2]: Leaving directory '/DANE2/DWR-116/lede'
make[1]: *** [target/Makefile:18: /DANE2/DWR-116/lede/staging_dir/target-mipsel_24kc_musl-1.1.16/stamp/.target_install] Error 2
make[1]: Leaving directory '/DANE2/DWR-116/lede'
make: *** [/DANE2/DWR-116/lede/include/toplevel.mk:207: world] Błąd 2Czego jeszcze nie widzę?
Reference to non-existent node or label "ephy_pins"
Masz zły dts. Używasz czegoś czego nie było w starym kernelu / dtsi. Musisz sobie dtsi przerobić.
PS. https://dl.eko.one.pl/lede/17.01-SNAPSH … amips/dts/
Udało się, obraz gotowy, ale nie wszystko działa jak powinno:
PU: 0 PID: 3436 Comm: hostapd Not tainted 4.4.153 #0
Tue Nov 20 15:16:44 2018 kern.warn kernel: [ 179.390026] Stack : 803597f8 00000000 00000001 803a0000 80aafa3c 8039ed63 8033acd0 00000d6c
Tue Nov 20 15:16:44 2018 kern.warn kernel: [ 179.390026] 803e3438 00001328 0000003f 000008ff 00000021 8004b7d0 80340260 803a0000
Tue Nov 20 15:16:44 2018 kern.warn kernel: [ 179.390026] 00000003 00001328 8033e63c 81f8fafc 00000021 8004973c 00000000 00000000
Tue Nov 20 15:16:44 2018 kern.warn kernel: [ 179.390026] 00000001 00000000 00000000 00000000 00000000 00000000 00000000 00000000
Tue Nov 20 15:16:44 2018 kern.warn kernel: [ 179.390026] 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
Tue Nov 20 15:16:44 2018 kern.warn kernel: [ 179.390026] ...
Tue Nov 20 15:16:44 2018 kern.warn kernel: [ 179.460912] Call Trace:
Tue Nov 20 15:16:44 2018 kern.warn kernel: [ 179.465784] [<800149b4>] show_stack+0x54/0x88
Tue Nov 20 15:16:44 2018 kern.warn kernel: [ 179.474475] [<800255f4>] warn_slowpath_common+0xa0/0xd0
Tue Nov 20 15:16:44 2018 kern.warn kernel: [ 179.484895] [<80025650>] warn_slowpath_fmt+0x2c/0x38
Tue Nov 20 15:16:44 2018 kern.warn kernel: [ 179.494809] [<809c5ae4>] rt2800_vco_calibration+0x1fc/0x2418 [rt2800lib]
Tue Nov 20 15:16:44 2018 kern.warn kernel: [ 179.508184] [<809ce5bc>] rt2800_rfkill_poll+0x13b8/0x1768 [rt2800lib]
Tue Nov 20 15:16:44 2018 kern.warn kernel: [ 179.521072]
Tue Nov 20 15:16:44 2018 kern.warn kernel: [ 179.524031] ---[ end trace 1c58e07eac9807d9 ]---Z tego co przetestowałam to jedynie znośnie działające to Twoje stare obrazy LEDE, Cezary. Chyba nie ma sensu dalej walczyć z DWR-116.
Wywala Ci się na kalibracji radia? Wgraj mój na ten sprzęt i zobacz jak będzie działał.
Raz się spotkałem z czymś takim kiedy sterownik pobrał sobie wartość eepromu i nie potrafił tego zinterpretować. Ale to było wieki temu.
Już sprawdzałam, Twoje LEDE działa znakomicie, niestety nie umiem powtórzyć sukcesu pod aktualnym 17.01.6. Nie siedzę, aż tak głęboko w temacie. Cezary, może odświeżyłbyś trochę te patche i obrazy?
18.06 to żółw na DWR-116, tylko LEDE ratuje sytuację...
Łatki są aktualne. Od dawna nic w lede nie zmieniałem ani nie kompilowałem. Od momentu kiedy skompilowałem obrazy był kernel podbity, parę fixów na toolsy i tyle w sumie.
Może zmiany w najnowszym LEDE nie są rewolucyjne, ale własnym obrazie mogę upchnąć więcej.
Zrobiłam wszystko jeszcze raz, od początku. Nałożyłam potrzebne patche. Kompiluje się elegancko, ale wifi ma problem z kalibracją i wan nie działa (tzn. tylko nie pobiera adresu). Wersja LEDE nie ma znaczenia, cofnęłam się do starszych i to samo.
Thu Aug 30 14:10:56 2018 kern.info kernel: [ 6.843834] ieee80211 phy0: rt2x00lib_request_eeprom_file: Info - Loading EEPROM data from 'soc_wmac.eeprom'.
Thu Aug 30 14:10:56 2018 kern.warn kernel: [ 6.863852] rt2800_wmac 10180000.wmac: Direct firmware load for soc_wmac.eeprom failed with error -2
Thu Aug 30 14:10:56 2018 kern.warn kernel: [ 6.882075] rt2800_wmac 10180000.wmac: Falling back to user helper
Thu Aug 30 14:10:56 2018 kern.err kernel: [ 6.971788] firmware soc_wmac.eeprom: firmware_loading_store: map pages failed
Thu Aug 30 14:10:56 2018 kern.err kernel: [ 6.986458] ieee80211 phy0: rt2x00lib_request_eeprom_file: Error - Failed to request EEPROM.
Thu Aug 30 14:10:56 2018 kern.warn kernel: [ 7.003345] rt2800_wmac: probe of 10180000.wmac failed with error -11Cezary, Królik, musieliście robić jeszcze jakieś magiczne sztuczki skoro Wam LEDE wychodziło jak należy ![]()
Wszystkie zmiany które robiłem w obrazach mam udostępnione. Co jak co ale sterowników od mediateka to ja nie zmieniałem w żaden sposób.
To co pokazałaś - jak ci się nazywa (cat /tmp/sysinfo/*) urządzenie a jakich nazw używasz w skryptach? dwr-116-a1 czy dwr-116-a?
cat /tmp/sysinfo/*
dwr-116-a
D-Link DWR-116 A1/A2To teraz zobacz w skryptach np. lib/ramips.sh czy odwołujesz się do dwr-116-a czy do dwr-116-a1. I tak też w pozostałych rzeczach.
W szczególności: base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom czy masz tam dwr-116-a czy dwr-116-a1
cat /lib/ramips.sh | grep dwr-116
name="dwr-116-a"cat /etc/hotplug.d/firmware/10-rt2x00-eeprom | grep dwr-116
dwr-116-a)Jak powinno być?
dwr-116-a oczywiście. Przegrepuj sobie całe drzewo i zobaczy czy wszędzie tak masz.
Też poprawiałeś i dodawałeś brakujące patche z githuba? Bo nie wszystko jest u Ciebie przecież. Trzeba te patche przepisać na nowo, nie rozumiem tego zamieszania w nazewnictwie. Faktycznie strata czasu, obrazy i router idzie do kosza, dla mnie nieprzydatny i niewart walki.
Tak, przecież w lede tego nie ma. Czego nie ma u mnie?
Strony Poprzednia 1 … 9 10 11 12 13 … 20 Następna
Zaloguj się lub zarejestruj by napisać odpowiedź
eko.one.pl → Oprogramowanie / Software → D-Link DWR-116 + OpenWRT
Forum oparte o PunBB, wspierane przez Informer Technologies, Inc