Posted: Wed Jun 24, 2015 18:38 Post subject: D-Link DIR-860L A1: Known defects
Hi everyone
Listed below is some known defects with respect to D-Link DIR-860L A1.
Write in this thread every time you have either tested a new beta build of DD-WRT and mention whether some of the listed defects below are corrected or not.
Also if you have found new defects please write and I will update this post so we have an up-to-date list. Be sure to post the specific build that you are using so your post will make sense and be useful.
Hopefully someone will pick up this list and put the defects on their way to get fixed since it is currently impossible to register at http://svn.dd-wrt.com/register (you are likely going to get a trac/captcha error so that you are not able to e.g. post defects/bugs.)
Should someone know how to create a trac account on http://svn.dd-wrt.com/ I would also like to hear more about that!
*UPDATE 2*
1. and 3. BrainSlayer has applied this patch http://svn.dd-wrt.com/changeset/27480 that should fix the issues concerning the USB port as well as the Power and WAN LEDs of DIR-860L A1. The fix is available in the next upcoming beta. Stay tuned...
*UPDATE*
Fix just waiting to be patched into DD-WRT
To fix the known defects about missing LED and USB functionality concerning points 1 and 3 below the following will most likely fix it:
Code:
case ROUTER_DLINK_DIR860:
power_gpio = 0x101; // power led green
diag_gpio = 0x100; // power led orange
diag_gpio_disabled = 0x101; // power led green
connected_gpio = 0x104; // wan led green
disconnected_gpio = 0x103; // wan led orange
usb_power = 0x00a; // usb power
break;
KrypteX has said to make a ticket on http://svn.dd-wrt.com so it hopefully and eventually will get fixed.
Concerning point 2 maybe BrainSlayer can confirm if the CPU of DIR-860L A1 is only single core or not.
Known defects
1) LEDs
Power LED:
Both orange LED and green LED are on after boot making it hard to see the green LED as well as to interpret the state.
WAN/Internet LED:
Both orange and green LEDs are off all the time so it is not possible to see if the Internet connection (or connection to the next gateway) is established.
It has not worked on any of the dd-wrt builds I have tried to date (last time it was build 27396 from 06/20/2015 https://www.dd-wrt.com/phpBB2/viewtopic.php?p=971434 )
, but I have found the GPIOs to switch on and off the LEDs!
For the DIR-860L A1:
gpio disable => LED is on
gpio enable => LED is off
Power LED:
Orange gpio: 0
Green gpio: 1
WAN/Internet LED:
Orange gpio: 3
Green gpio: 4
2) Only 1 CPU core is running although 2 are found
The dd-wrt Status - Router page shows under section "CPU": CPU Cores 1
From dmesg I have copy pasted this:
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
Calibrating local timer... 399.73MHz.
2 cores has been found
Setting up static identity map for 0xc00126c0 - 0xc00126f4
L310 cache controller enabled
l2x0: 16 ways, CACHE_ID 0x410000c8, AUX_CTRL 0x7a530000, Cache size: 262144 B
CPU1: failed to boot: -38
Brought up 1 CPUs
SMP: Total of 1 processors activated (1594.16 BogoMIPS).
It would be nice to have both of the 2 cores running as it has been seen on other dd-wrt routers.
is the DIR-860L A1 Broadcom BCM47081@800
better than the B1 Mediatek MT7621AT@880?
I know that the B1 is the first to get ddwrt support(and clocked at higher speed), but I thought Broadcom had better support?
back to the topic, I searched everywhere and I can't seemed to find the official data for this BCM47081. Some place even assuming it to be the single core version of BCM4708. It will be nice if we could find out that and prove it to be ddwrt problem _________________ Atheros:
D-Link DIR-615 I1 ........ DD-WRT 27396
Broadcom:
Linksys WRT54G V6 ...... DD-WRT 14929
is the DIR-860L A1 Broadcom BCM47081@800
better than the B1 Mediatek MT7621AT@880?
You can't really say which is better, but I'd go with the Broadcom model, because Mediatek/Ralink still can't Autoselect the Host AP's channel in Repeater mode: http://svn.dd-wrt.com/ticket/3809
That's right there a deal breaker for me. _________________ THERE ARE NO STRANGERS HERE; ONLY FRIENDS YOU HAVEN'T YET MET.
________________________________________________________________________________________________________
DD-WRT CHANGELOG | DEVICES | DD-WRT BUILDS | KONG BUILDS | UNOFFICIAL BUILDS | DD-WRT in VIRTUALBOX
Posted: Fri Jun 26, 2015 21:16 Post subject: Please patch src/router/libutils/utils.c
Regarding the LEDs I guess we need to add this as a patch to utils.c in src/router/libutils/
in the led_control function to get working LEDs:
Code:
case ROUTER_DLINK_DIR860:
power_gpio = 0x101; // power led green
diag_gpio = 0x100; // power led orange
diag_gpio_disabled = 0x101; // power led green
connected_gpio = 0x104; // wan led green
disconnected_gpio = 0x103; // wan led orange
break;
, however I have no cross compile environment set up to test it, but maybe some kind soul would add it as a feature request to http://svn.dd-wrt.com/ , because it is my best judgement that it should work.
Of course there is no guarantee that it works, but it is the right place to add and it is the GPIOs to use and they are negated as needed (0x1##) meaning disable to switch on the LEDs and vice versa.
Also I do not know if the problem Edr mentions above about USB is because usb_power and/or usb_power1 are not set. (Edr has not yet answered and confirmed with regards to my questions above.) Maybe someone knows that?
Although there are no LEDs for USB on DIR860L it may be the case that usb_power and/or usb_power1 control USB power as hinted in the led_control function since it is specified for
"case ROUTER_DLINK_DIR868:" as "usb_power = 0x00a;"
(D-Link DIR-868L does also not have USB LEDs - that is why!)
Concerning the dual core cpu problem. Could it e.g. be that the boot loader (or the kernel) does not initialize the CPU correctly?
(Totally unrelated, but just an example about a failed initialization of an arm CPU http://www.spinics.net/lists/arm-kernel/msg351208.html - I know nothing about how to initialize arm CPUs. )
Happy hacker greetings go to:
BrainSlayer, <Kong> and KrypteX
If this is the case, the router should not be advertised as a dual core unless it it running both cores.
it says Dual-Band not dual core!
The chip itself is dual core and capable of running two radios. Whether or not Dlink chose to implement both cores is another story.
stratagx_bcm4708_pressppt_final (1)_575px.png
Description:
Filesize:
106.28 KB
Viewed:
52826 Time(s)
_________________ Segment 1 XR700 10Gb LAN, 1Gb WAN ISP BS
Wired AP 1 Unifi Wifi 6 LR US 1Gb LAN
Wired AP 2 Unifi Wifi 6 LR US 1Gb LAN
Wired AP 3 Unifi Wifi 6 LR US 1Gb LAN
Syslog Services Asustor 7110T NAS 10GB
NetGear XS716T 10GB Switch
download1.dd-wrt.com/dd-wrtv2/downloads/betas/ (Brain Slayer)
YAMon https://usage-monitoring.com/index.php
2) USB
Edr concerning USB I guess one can try to call:
gpio disable #
and maybe gpio enable #
where # is some of the other gpio numbers and then try to call lsusb or see if something happens when calling dmesg etc.
WARNING
The only problem is that you might brick your router like I just did
It was about when I wrote:
gpio disable 10 or gpio disable 11 (likely 11)
, then the router started to flash the power LED (The yellow LED switched on and off and the green lighted constantly)
So I guess I have to unbrick it this way: http://forums.dlink.com/index.php?topic=44909.0
BCM47081 presumed to be quite similar
to BCM4708 (perhaps single-core only)
what we need is the solid prove of that BCM47081, maybe someone could hack into the oem firmware to see...(and even if that is single core,was the other core been physically removed or disabled via software)
a_l wrote:
1) Dual core!
...
4 x Gigabit LAN-portar, 1 x Gigabit WAN-port
Processor 1 GHz ARM® Cortex™-A9 dual-core
128MB DDR2 arbetsminne
128MB NAND Flashminne
1 x USB 3.0 port
...
BCM47081 presumed to be quite similar
to BCM4708 (perhaps single-core only)
what we need is the solid prove of that BCM47081, maybe someone could hack into the oem firmware to see...(and even if that is single core,was the other core been physically removed or disabled via software)
a_l wrote:
1) Dual core!
...
4 x Gigabit LAN-portar, 1 x Gigabit WAN-port
Processor 1 GHz ARM® Cortex™-A9 dual-core
128MB DDR2 arbetsminne
128MB NAND Flashminne
1 x USB 3.0 port
...
▲ network SoC Broadcom BCM47081, BCM4708 single-core version of, 800MHz.
On the same page just above this text the image shows that BCM47081 might be the same as BCM47081A0 depending on how many letters that is read.
I guess the only thing left is to get USB fixed then. I have yet to de-brick my router so maybe someone else can figure out how to get USB working, because I'll be busy this weekend.
BCM47081 presumed to be quite similar
to BCM4708 (perhaps single-core only)
what we need is the solid prove of that BCM47081, maybe someone could hack into the oem firmware to see...(and even if that is single core,was the other core been physically removed or disabled via software)
a_l wrote:
1) Dual core!
...
4 x Gigabit LAN-portar, 1 x Gigabit WAN-port
Processor 1 GHz ARM® Cortex™-A9 dual-core
128MB DDR2 arbetsminne
128MB NAND Flashminne
1 x USB 3.0 port
...
▲ network SoC Broadcom BCM47081, BCM4708 single-core version of, 800MHz.
On the same page just above this text the image shows that BCM47081 might be the same as BCM47081A0 depending on how many letters that is read.
I guess the only thing left is to get USB fixed then. I have yet to de-brick my router so maybe someone else can figure out how to get USB working, because I'll be busy this weekend.
You donated a DIR-860L A1 to BrainSlayer No better support than doing that....hopely we could get a more stable version than the current beta in the future.
regarding the core, I wonder if there is any hardware hacker who will bother to figure out what really happened. _________________ Atheros:
D-Link DIR-615 I1 ........ DD-WRT 27396
Broadcom:
Linksys WRT54G V6 ...... DD-WRT 14929
Posted: Sat Jun 27, 2015 11:57 Post subject: Got USB to work! :-)
Hi people
I managed to unbrick the router easily.
I just had to do a normal reset of the router and that was enough to bring it back to a normal unconfigured dd-wrt state.
But the best part!
I managed to get my USB port online (with power) and access to the content of an old USB stick!
The trick was to call:
gpio enable 10
(the same as 0x00a in hex - Just as for the DIR-868L A1)
Afterwards /tmp/mnt/sda was mounted with the content of my old USB 2 stick (fat32 formatted).
To unmount I pressed the WPS button (I have chosen so from the GUI: Services - USB - Use SES Button to remove drives)
Afterwards the stick was unmounted!
This all concludes that to get both LEDs and USB to work we need BrainSlayer or someone with commit access to add this (if they agree )
Code:
case ROUTER_DLINK_DIR860:
power_gpio = 0x101; // power led green
diag_gpio = 0x100; // power led orange
diag_gpio_disabled = 0x101; // power led green
connected_gpio = 0x104; // wan led green
disconnected_gpio = 0x103; // wan led orange
usb_power = 0x00a; // usb power
break;
Maybe KrypteX can help us to get a bug report on svn.dd-wrt.com?
Thanks in advance!