Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ramips: add missing information to dlink headers #4096

Closed
wants to merge 1 commit into from

Conversation

Lucky1openwrt
Copy link
Contributor

This add header information needed so some of
the newer bootloader found in DIR-2660-A1 & A2
and a step closer to a web flash image
also fix a mislabelled flash partition type
by removing 2nd kernel & UBI partition

Signed-off-by: Alan Luck luckyhome2008@gmail.com

@adschm adschm added the target/ramips pull request/issue for ramips target label Apr 25, 2021
@adschm
Copy link
Member

adschm commented Apr 25, 2021

@bmork FYI

@basrieter
Copy link

I experience the same issues and can confirm these changes resolve the flashing problems.

@bmork
Copy link
Contributor

bmork commented Apr 26, 2021

Sorry about that. Should have fixed it uo while messing with the partition splitter. But I wonder: Did the behaviour change with my mtdsplit changes? I believe it should not.

Anyway, we can't currently have two partitions with automatic rootfs splitting AFAIK. To make that work, the splitter would have to be aware of which firmware partition the kernel was loaded from.

One final, and somewhat unrelated, note: I believe the "read-only" property on secondary firmware partitions, or other non-critical partitions, does more harm than good. It's not like we do arbitrary writes to the partition if it is writable. And worst case if we do is still a bootable system, since OpenWrt boots from the primary partition anyway. The problem with having read-only is that it makes it really hard to fix anything if the bootloader decides to boot the "wrong" partition for some reason. We have plenty of experience with this from the Unifi AP AC series. In theory, you can just install the kmod-mtd-rw package to override the read-only, But if the problem is a kernel vs rootfs mismatch, which often will be the issue, then that isn't straight forward.

So IMHO, read-only should be reserved for those few partitions we never want to modify and which are critical for the system, like the bootloader, device specific factory configuration, and calibration data.

@Lucky1openwrt
Copy link
Contributor Author

I didn't notice any change with mtdsplit
but I did think that while sysupgrade was getting confused when keeping setting
but didn't pin it down to anything
but think that having 2 kernel & UBI's was confusing maybe me more then It

this unit only boot's from firmware but the boot loader uses firmware2 as a backup
if it's uboot header checksum is valid & different from firmware2
it only backs up the amount of bytes in the uboot header but for openwrt it's not the whole thing
but if the main firmware checksum fails it copy's it back from firmware2

about read only
well they can be removed but kernal2 the boot loader has control over the start + size of 1st partition in uboot header

due to the DTSI covering a few models it's had to know which are used on witch models
but "private" that follows firmware on at lest the DIR-1960 is all "FF"s & unused
on my unit I have added it to firmware to make the room bigger but don't know about the others models
there as another unused reserved at the end also

I did try to setup concat partitioning but failed to get it to work
always failed on 2nd boot not being able to find the UBI partation so I gave up

but these 2 partition@2980000 & partition@7780000 could also be used for other things

@bmork
Copy link
Contributor

bmork commented Apr 26, 2021

this unit only boot's from firmware but the boot loader uses firmware2 as a backup
if it's uboot header checksum is valid & different from firmware2
it only backs up the amount of bytes in the uboot header but for openwrt it's not the whole thing
but if the main firmware checksum fails it copy's it back from firmware2

That sounds familiar. I am currently trying to add support for the ZyXEL NR7101, which also is based on MT7621. It has exactly the same behaviour. I believe it comes from the chipset SDK and therefore is a cross-vendor thing.

I tried to describe my observations of the scheme in the draft commit message. Scroll down to the section titled "Notes on the OEM/bootloader dual partition scheme" on
https://patchwork.ozlabs.org/project/openwrt/patch/20210419110056.6348-3-bjorn@mork.no/

The short version is that it's hard to make any good use of this scheme in OpenWrt. The best I've come up with is installing a working initramfs in the second partition. That will at least work as an emergency recovery installation.

We could reserve only a smaller part of the secondary partition for that recovery initramfs, with a fixed split, and use the rest for an additional UBI. But I'm not sure the additional complexity is worth it. And we'd have to make sure the reserved part is large enough to hold any kernel image we install in the primary partition, in case the bootloader decides to copy it to the secondary.

@Lucky1openwrt
Copy link
Contributor Author

yes was thinking of fixing the kernel size so if it got bigger someone would have to change it manually
& so they would change the same in the secondary partition
but after failing to get concat working i just let it as is

@kar200
Copy link
Contributor

kar200 commented Apr 27, 2021

I confirm this works for my device as well (DIR-853-A3) which is not part of openwrt yet.

Since the device does not have a way to boot into the emergency mode with the reset button (or any other button I tried except through console). I just have to compile openwrt with the patch included - encrypt the image with imgcrypt (a 32 bit binary found in the dlink gpl source code) and just flash it directly from the stock Dlink web interface.

check-size
IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs |\
append-metadata | check-size
IMAGE/factory.bin := append-kernel | append-rootfs | check-size
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whitespace issue here.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's fixed

IMAGE/factory.bin := append-kernel | append-rootfs | uimage-padhdr 96 |\
check-size
IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs |\
append-metadata | check-size
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hanging indent should be one tab only.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure may have fixed it

* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use SPDX license identifier instead.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tried to change it hope it's right

IMAGES += factory.bin
IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
IMAGE/factory.bin := append-kernel | pad-to $$(KERNEL_SIZE) | append-ubi | \
IMAGE/factory.bin := append-kernel | pad-to $$(KERNEL_SIZE) | append-ubi |\
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change seems unneeded and unrelated.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

was the only "Whitespace" thing i could find

Copy link

@basrieter basrieter Jun 6, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Lucky1openwrt So this needs to become IMAGE/factory.bin := append-kernel | pad-to $$(KERNEL_SIZE) | append-ubi | \

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So with a space between | and \.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, since this would mean it's not changed.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added space

@basrieter
Copy link

Any update on this? The device is actually really powerful and I would really like to start using it. But it would be great to have proper official images for it.

@Lucky1openwrt
Copy link
Contributor Author

I think it's just going to sit here

@Lucky1openwrt
Copy link
Contributor Author

@basrieter
Copy link

Thanks @Lucky1openwrt!

@adschm What is needed to get this moving again?

@adschm
Copy link
Member

adschm commented Jun 6, 2021

Well, first the remaining comment needs to be addressed.

Apart from that, people that review the proposed change.

@CodeFetch
Copy link
Contributor

@s-2 Can you please have a look?

@s-2
Copy link
Contributor

s-2 commented Jun 6, 2021

@s-2 Can you please have a look?

saw this one already (see my thumbs up in first post), can't say much about the uimage header though (this is not directly related to factory image encryption, but the payload itself), but I'm happy to see someone take care of these devices =)

@basrieter
Copy link

So if the whitespace issue is fixed, this could go in?

@basrieter
Copy link

Anyone willing to look into this and approve? @Lucky1openwrt fixed the whitespace issue.

@@ -144,6 +144,11 @@ define Build/uimage-padhdr
mv $@.new $@
endef

define Build/uimage-sgehdr
uimage_sgehdr -i $@ -o $@.new -m $(DEVICE_MODEL) -h $(DEVICE_VARIANT) -s V1.00000
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nitpick: two spaces after $@.new ...

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably introduced when removing the line wrap that should be here.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed space & added line wrap

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@adschm I guess the whitespace/line wrap issue is fixed now?

@basrieter
Copy link

Is this mergeable now? I really would like to have sysupgrades for this nice dual cpu router?

@Lucky1openwrt
Copy link
Contributor Author

I have done all I can

@basrieter
Copy link

basrieter commented Jul 6, 2021

@adschm Is there any way we can get this merged? @Lucky1openwrt made the changes with the whitespaces?

@kar200
Copy link
Contributor

kar200 commented Jul 12, 2021

Hi @Lucky1openwrt

Can you please add the DIR-853-A3 in the code?

@Lucky1openwrt
Copy link
Contributor Author

thanks @blocktrron

@Neustradamus
Copy link

Merged commit is:

@basrieter
Copy link

Nice. So we can now flash the development builds? And use sysupgrades?

@Lucky1openwrt
Copy link
Contributor Author

just in the master branch tho

@basrieter
Copy link

just in the master branch tho

Super. So will it appear as D-Link DIR-2660 A1 or D-Link DIR-2660 A2.

@Lucky1openwrt
Copy link
Contributor Author

@ymmijgno
Copy link

Does this work with the original A1 hardware as well?

@Lucky1openwrt
Copy link
Contributor Author

if your uboot needs it then yes
early models didn't but later one's do

@ymmijgno
Copy link

Meaning it is not backward compatible with early A1 hardware?

@Lucky1openwrt
Copy link
Contributor Author

meaning it's was not needed on the earlier boot loaders
but will work fine it just fills in fields to match the dlink firmware

@ads119
Copy link

ads119 commented Feb 19, 2022

Hi,

I spent 20 hours trying to find more information on how to make a D-link DIR 853 A2 device work with OpenWRT and I still couldn't, sorry if I apologize if I'm not searching right, but can you help me find it, I need make this equipment urgently.

Thanks in advance for all your help.

@Lucky1openwrt
Copy link
Contributor Author

you need to capture the boot log from the serial console
to get information on flash chips partition layouts and hardware
and it not going to be quick '
I don't think the radios that are in the a3 & a1 are work very well anyway
the switch in these devices is only now getting lots of work done to it
even these devices that are listed to have supper are well not that good atm

can't even find inf on the A2 and they differ in different parts of the world

@basrieter
Copy link

basrieter commented Feb 19, 2022

@Lucky1openwrt I just tried the latest 21.02.2 build and notice that the new headers for the A2 or not in the sysupgrade packages. https://firmware-selector.openwrt.org/?version=21.02.2&target=ramips%2Fmt7621&id=dlink_dir-2660-a1.

The weird thing is that the snapshot versions do contain the headers in sysupgrade images.

@Lucky1openwrt
Copy link
Contributor Author

the fix is only in the master branch
I don't know if the sysupgrade image needs it or not as i don't have this model and can't test it
I know it is needed for the upload of the factory image from the recovery page

@Lucky1openwrt
Copy link
Contributor Author

you are welcome to make a pull request to v21 but I imaging v22 well be out before it's even looked at

@basrieter
Copy link

What is the risk if I try and the headers do not match?

@Lucky1openwrt
Copy link
Contributor Author

if it's not checked on boot then sydupgrade image will just work
if it checks & failed then you have to upload a factory image again via recovery
it may even just go to the recover page

@basrieter
Copy link

basrieter commented Feb 19, 2022

if it's not checked on boot then sydupgrade image will just work if it checks & failed then you have to upload a factory image again via recovery it may even just go to the recover page

I think I tested it way back and it will go to recovery. So I should wait for 22 or use a snapshot (which gave me issues with opkg update in the past.

EDIT: I see that also the factory images don't have the headers. I must have mixed up the files.

@Lucky1openwrt
Copy link
Contributor Author

Lucky1openwrt commented Feb 19, 2022

i just tested the current master to test the new switch driver
but the wifi driver is bad & only seems to work at 20Mhz download
super slow that was an EA8100 linksys still MT7621 & MT7615N's

@basrieter
Copy link

The master = snapshot right? So I should really stick to 21.02.2 then?

@Lucky1openwrt
Copy link
Contributor Author

in this case the master only has snapshots
but there are 21.02 snapshot's and v19's as well

@Lucky1openwrt
Copy link
Contributor Author

I'll manually fix the header in V2102.2 when i get a chance

@basrieter
Copy link

I really wish they would back port it to 21.02.x

@basrieter
Copy link

i just tested the current master to test the new switch driver but the wifi driver is bad & only seems to work at 20Mhz download super slow that was an EA8100 linksys still MT7621 & MT7615N's

So the WIFI driver sucks in the 22.x.x snapshots.

@ads119
Copy link

ads119 commented Feb 19, 2022

você precisa capturar o log de inicialização do console serial para obter informações sobre layouts de partição de chips flash e hardware e não será rápido ' não acho que os rádios que estão no a3 e a1 funcionem muito bem de qualquer maneira o switch nestes dispositivos só agora está sendo feito muito trabalho, mesmo esses dispositivos listados para jantar não são tão bons assim

nem consigo encontrar informações no A2 e eles diferem em diferentes partes do mundo

@ads119
Copy link

ads119 commented Feb 19, 2022

This my device:
Model Name: DIR-853 Hardware Version: A2
Firmware Version: 1.20

I accessed the router via Wireless (http://192.168.0.1) and managed to get this log below... Does it help to understand how I should proceed to make Open WRT work on this model of equipment? Sorry, I don't quite understand yet.

2020-07-14 12:55:40 [SYSLOG]: start BusyBox v1.12.1
2020-07-14 12:55:40 [MLD]: mrib_mld_source: failed to detect local source address on 13
2020-07-14 12:55:40 [MLD]: mrib_mld_source: failed to detect local source address on 15
2020-07-14 12:55:40 [MLD]: mrib_mld_source: failed to detect local source address on 16
2020-07-14 12:56:07 [RC]: RC start
total used free shared buffers
Mem: 120980 79256 41724 0 0
Swap: 0 0 0
Total: 120980 79256 41724
PID USER VSZ STAT COMMAND
1 admin 4784 R /sbin/preinit
2 admin 0 SW [kthreadd]
3 admin 0 SW [ksoftirqd/0]
4 admin 0 SW [kworker/0:0]
5 admin 0 SW< [kworker/0:0H]
6 admin 0 SW [kworker/u8:0]
7 admin 0 SW [migration/0]
8 admin 0 SW [rcu_bh]
9 admin 0 SW [rcu_sched]
10 admin 0 SW [migration/1]
11 admin 0 SW [ksoftirqd/1]
12 admin 0 SW [kworker/1:0]
13 admin 0 SW< [kworker/1:0H]
14 admin 0 SW [migration/2]
15 admin 0 SW [ksoftirqd/2]
16 admin 0 SW [kworker/2:0]
17 admin 0 SW< [kworker/2:0H]
18 admin 0 SW [migration/3]
19 admin 0 SW [ksoftirqd/3]
20 admin 0 SW [kworker/3:0]
21 admin 0 SW< [kworker/3:0H]
22 admin 0 SW< [khelper]
23 admin 0 SW [kdevtmpfs]
24 admin 0 SW< [netns]
25 admin 0 SW< [writeback]
26 admin 0 SW< [bioset]
27 admin 0 SW< [kblockd]
28 admin 0 SW [khubd]
29 admin 0 SW [kworker/3:1]
30 admin 0 SW [kworker/2:1]
31 admin 0 SW [kworker/1:1]
32 admin 0 SW [kworker/0:1]
33 admin 0 SW [kswapd0]
34 admin 0 SWN [ksmd]
35 admin 0 SW [fsnotify_mark]
36 admin 0 SW< [crypto]
43 admin 0 SW [kworker/u8:1]
48 admin 0 SW< [deferwq]
49 admin 0 SWN [jffs2_gcd_mtd6]
57 admin 1132 S tw_hotplug
63 admin 5592 S nvram_daemon
439 admin 3972 S stad 1
441 admin 3976 S stad 2
454 admin 4784 S /sbin/preinit
542 admin 944 S nl_server -i br0 -s dlinkrouter -s dlinkrouterEEBA -s
543 admin 932 S nl_server -i br0 -s dlinkrouter -s dlinkrouterEEBA -s
549 admin 1424 S dnsmasq -C /tmp/dnsmasq.conf -6 /tmp/dnsmasq_dhcp_eve
550 admin 1416 S dnsmasq -C /tmp/dnsmasq.conf -6 /tmp/dnsmasq_dhcp_eve
570 admin 4804 S /bin/lighttpd -f /etc_ro/lighttpd/lighttpd.conf -m /e
571 admin 5572 S /bin/prog.cgi
574 admin 1904 S dhcp6s -c /tmp/dhcp6s.conf -k /tmp/dhcp6sctlkey br0
576 admin 1032 S radvd -m none -C /tmp/radvd.conf
584 admin 1700 S syslogd -L
591 admin 980 S omcproxy -e3 eth3 br0 br2 br3 scope=realm
639 admin 0 SW [RtmpCmdQTask]
640 admin 0 SW [RtmpWscTask]
641 admin 0 SW [HwCtrlTask]
642 admin 0 SW [ser_task]
643 admin 0 SW [kworker/1:2]
660 admin 0 SW [RtmpMlmeTask]
709 admin 1464 S bndstrg2 -i ra0 -i rax0
1164 admin 1320 S mDNSResponder -b -i br0 -f /tmp/mdns_resp.conf -e dli
1219 admin 4144 S timer
1847 admin 1704 S sh -c ps >> /etc_ro/lighttpd/www/web/messages
1848 admin 1704 R ps
br0 Link encap:Ethernet HWaddr C4:E9:0A:4C:EE:BA
inet addr:192.168.0.1 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::c6e9:aff:fe4c:eeba/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1964 errors:0 dropped:0 overruns:0 frame:0
TX packets:681 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:143648 (140.2 KiB) TX bytes:654412 (639.0 KiB)

br1 Link encap:Ethernet HWaddr C4:E9:0A:4C:EE:BE
inet addr:192.168.7.1 Bcast:192.168.7.255 Mask:255.255.255.0
inet6 addr: fe80::603e:50ff:fe8c:37e5/64 Scope:Link
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:408 (408.0 B)

br2 Link encap:Ethernet HWaddr C4:E9:0A:4C:EE:BF
inet6 addr: fe80::f4de:acff:fed9:db6c/64 Scope:Link
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:568 (568.0 B)

br3 Link encap:Ethernet HWaddr C4:E9:0A:4C:EE:C0
inet6 addr: fe80::f0b2:a7ff:fe31:b11/64 Scope:Link
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:568 (568.0 B)

eth2 Link encap:Ethernet HWaddr C4:E9:0A:4C:EE:BA
inet6 addr: fe80::c6e9:aff:fe4c:eeba/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1741 errors:0 dropped:0 overruns:0 frame:0
TX packets:2805 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:156121 (152.4 KiB) TX bytes:309541 (302.2 KiB)
Interrupt:3

eth2.1 Link encap:Ethernet HWaddr C4:E9:0A:4C:EE:BA
inet6 addr: fe80::c6e9:aff:fe4c:eeba/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:265 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:37189 (36.3 KiB)

eth2.2 Link encap:Ethernet HWaddr C4:E9:0A:4C:EE:BA
inet6 addr: fe80::c6e9:aff:fe4c:eeba/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:266 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:37259 (36.3 KiB)

eth2.3 Link encap:Ethernet HWaddr C4:E9:0A:4C:EE:BA
inet6 addr: fe80::c6e9:aff:fe4c:eeba/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:265 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:37189 (36.3 KiB)

eth2.4 Link encap:Ethernet HWaddr C4:E9:0A:4C:EE:BA
inet6 addr: fe80::c6e9:aff:fe4c:eeba/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:265 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:37189 (36.3 KiB)

eth3 Link encap:Ethernet HWaddr C4:E9:0A:4C:EE:BD
inet6 addr: fe80::c6e9:aff:fe4c:eebd/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3 errors:0 dropped:0 overruns:0 frame:0
TX packets:5 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:238 (238.0 B) TX bytes:558 (558.0 B)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

ra0 Link encap:Ethernet HWaddr C4:E9:0A:4C:EE:BC
inet6 addr: fe80::c6e9:aff:fe4c:eebc/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:4

rax0 Link encap:Ethernet HWaddr C4:E9:0A:4C:EE:BB
inet6 addr: fe80::c6e9:aff:fe4c:eebb/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2089 errors:0 dropped:0 overruns:0 frame:0
TX packets:938 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:177562 (173.4 KiB) TX bytes:652296 (637.0 KiB)

@Lucky1openwrt
Copy link
Contributor Author

Lucky1openwrt commented Feb 20, 2022

So the WIFI driver sucks in the 22.x.x snapshots.

the wifi driver in the Master snapshot didn't work 2 day's ago for me well stuck at 20Mhz only
they may have fixed it by now it's a day later
that's all i can tell you

they have not branched v22 yet but i think it's soon

just to clarify a Snapshot is a compilation of the current state of each branch
there is a Master Snapshot and a V21.02 Snapshot & I think even still a V19.07 snapshot

here is the 21.02.2 factory with the header modification
http://luckys.onmypc.net/openwrt/DIR-2660/openwrt-21.02.2-ramips-mt7621-dlink_dir-2660-a1-squashfs-factory.bin

@basrieter
Copy link

Thanks! Is it possible to also create a sysupgrade image?

@Lucky1openwrt
Copy link
Contributor Author

Lucky1openwrt commented Feb 20, 2022

Thanks! Is it possible to also create a sysupgrade image?

i can edit the header in the image but don't know the checksum stuff to do it manually

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
target/ramips pull request/issue for ramips target
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet