R7000: SMB Broken in macOS

Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware
Goto page Previous  1, 2, 3, 4, 5, 6, 7  Next
Author Message
TCB13
DD-WRT User


Joined: 06 Jun 2010
Posts: 260
Location: Portugal

PostPosted: Wed Oct 25, 2023 14:47    Post subject: Reply with quote
egc wrote:
Because of size constraints debugging/printing is often disabled, it has to fit in 8 MB.
So not bad taste but a sensible trade off.

If you are not satisfied you can always ask your money back and go elsewhere Wink


Now that we got that out of the way, how can we debug it?

I've access to multiple macOS versions and I also know that macOS Mojave 10.14.6 was the last version that worked fine.

_________________
1x Netgear R7800 (latest); 3x Netgear R7000 (latest); 2x Asus RT-N16 (v3.0-r47656); 2x Fonera 2100 (v3.0-r45454).
Sponsor
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12922
Location: Netherlands

PostPosted: Wed Oct 25, 2023 15:39    Post subject: Reply with quote
I honestly do not know, maybe it needs extra compile options maybe you need the userspace tools to enable debugging, anyway you probably need to compile yourself.

Alternatively you have to persuade our head of development to spend time on this.

I personally stay clear of ksmbd it has been buggy from the start. I bought a 5 disk QNAP pro NAS which does the work Smile

Some routers I have and administer have an USB stick for /opt /jfss and swap for local use but that is it.

It is possible that the "real" ksmbd version we are using on Kernel 6.1 is less buggy, I will try it out in the future.
But K6.1 will not come to Broadcom in the near future so no use to wait for that Sad

_________________
Routers:Netgear R7000, R6400v1, R6400v2, EA6900 (XvortexCFE), E2000, E1200v1, WRT54GS v1.
Install guide R6400v2, R6700v3,XR300:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800/XR500: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Forum Guide Lines (important read):https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
TCB13
DD-WRT User


Joined: 06 Jun 2010
Posts: 260
Location: Portugal

PostPosted: Wed Oct 25, 2023 21:42    Post subject: Reply with quote
egc wrote:
I honestly do not know, maybe it needs extra compile options maybe you need the userspace tools to enable debugging, anyway you probably need to compile yourself.

Alternatively you have to persuade our head of development to spend time on this.

I personally stay clear of ksmbd it has been buggy from the start. I bought a 5 disk QNAP pro NAS which does the work Smile

Some routers I have and administer have an USB stick for /opt /jfss and swap for local use but that is it.

It is possible that the "real" ksmbd version we are using on Kernel 6.1 is less buggy, I will try it out in the future.
But K6.1 will not come to Broadcom in the near future so no use to wait for that Sad


Interesting, do you think we'll get kernel 6.x in the R7000 and will it be worth it? Maybe the boot time will increase even more.

_________________
1x Netgear R7800 (latest); 3x Netgear R7000 (latest); 2x Asus RT-N16 (v3.0-r47656); 2x Fonera 2100 (v3.0-r45454).
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12922
Location: Netherlands

PostPosted: Thu Oct 26, 2023 5:34    Post subject: Reply with quote
It is unlikely Kernel 6.1 is coming to Broadcom at least not any time soon.
The closed source drivers are for Kernel 2.6.
That is also the reason Fresh Tomato and Asus WRT Merlin are stuck on kernel 2.6.

So it is actually a miracle we were able to upgrade to K 4.4. But it took a major effort to do that.

Besides K 4.4 is still supported as SLTS release so no need to upgrade.

So I would not count on an upgrade for Broadcom.

_________________
Routers:Netgear R7000, R6400v1, R6400v2, EA6900 (XvortexCFE), E2000, E1200v1, WRT54GS v1.
Install guide R6400v2, R6700v3,XR300:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800/XR500: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Forum Guide Lines (important read):https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
jose_rui_sa
DD-WRT Novice


Joined: 24 Apr 2012
Posts: 33

PostPosted: Thu Jan 04, 2024 19:01    Post subject: Reply with quote
so no updates on this matter?
dale_gribble39
DD-WRT Guru


Joined: 11 Jun 2022
Posts: 1959

PostPosted: Thu Jan 04, 2024 19:53    Post subject: Reply with quote
Keep in mind that if your router is not on the Linux 6.x kernel, that it will use a backported version, so some upstream changes may not be required... but here is what is publicly visible:

https://svn.dd-wrt.com/browser/src/router/smbd

https://github.com/namjaejeon/ksmbd

https://github.com/namjaejeon/ksmbd-tools

_________________
"The woods are lovely, dark and deep,
But I have promises to keep,
And miles to go before I sleep,
And miles to go before I sleep." - Robert Frost

"I am one of the noticeable ones - notice me" - Dale Frances McKenzie Bozzio

<fact>code knows no gender</fact>

This is me, knowing I've ruffled your feathers, and not giving a ****
Some people are still hard-headed.

--------------------------------------
Mac Pro (Mid 2012) - Two 2.4GHz 6-Core Intel Xeon E5645 processors 64GB 1333MHz DDR3 ECC SDRAM OpenSUSE Leap 15.5
jose_rui_sa
DD-WRT Novice


Joined: 24 Apr 2012
Posts: 33

PostPosted: Thu Jan 04, 2024 19:57    Post subject: Reply with quote
my kernel 4.4.302-st45...
mwchang
DD-WRT Guru


Joined: 26 Mar 2013
Posts: 1858
Location: Hung Hom, Hong Kong

PostPosted: Fri Jan 05, 2024 6:04    Post subject: Reply with quote
Could MacOS and Apple devices use Bonjour(mDNS/Avahi) to connect to Samba?

DD-WRT :: View topic - Updates on the problem affecting Samba
https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=335663&start=4

_________________
Router: Asus RT-N18U (rev. A1)

Drink, Blink, Stretch! Live long and prosper! May the Force and farces be with you!

Facebook: https://www.facebook.com/changmanwai
Website: https://sites.google.com/site/changmw
SETI@Home profile: http://setiathome.berkeley.edu/view_profile.php?userid=211832
GitHub: https://github.com/changmw/changmw
TCB13
DD-WRT User


Joined: 06 Jun 2010
Posts: 260
Location: Portugal

PostPosted: Fri Jan 05, 2024 11:04    Post subject: Reply with quote
mwchang wrote:
Could MacOS and Apple devices use Bonjour(mDNS/Avahi) to connect to Samba?

DD-WRT :: View topic - Updates on the problem affecting Samba
https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=335663&start=4


We’ve been over this in the past. This has nothing do with mDNS as you can always bypass it using the “connect to menu” and by specifying an IP and doesn’t work.

What you’re describing on your post seems to be a new issue that DD-WRT now has or a resurgence of something… bugs in DD-WRT, how shocking 😂

_________________
1x Netgear R7800 (latest); 3x Netgear R7000 (latest); 2x Asus RT-N16 (v3.0-r47656); 2x Fonera 2100 (v3.0-r45454).
mwchang
DD-WRT Guru


Joined: 26 Mar 2013
Posts: 1858
Location: Hung Hom, Hong Kong

PostPosted: Fri Jan 05, 2024 11:58    Post subject: Reply with quote
TCB13 wrote:
What you’re describing on your post seems to be a new issue that DD-WRT now has or a resurgence of something… bugs in DD-WRT, how shocking 😂

The problem was with Fedora, not DD-WRT. The Avahi/mDNS/Bonjour in DD-WRT should work fine.

And if MacOS and Apple devices could use Bonjour, maybe they would not need to use Connect To menu via IP addresses, but names. I don't know much about Bonjour.

_________________
Router: Asus RT-N18U (rev. A1)

Drink, Blink, Stretch! Live long and prosper! May the Force and farces be with you!

Facebook: https://www.facebook.com/changmanwai
Website: https://sites.google.com/site/changmw
SETI@Home profile: http://setiathome.berkeley.edu/view_profile.php?userid=211832
GitHub: https://github.com/changmw/changmw
TCB13
DD-WRT User


Joined: 06 Jun 2010
Posts: 260
Location: Portugal

PostPosted: Fri Jan 05, 2024 12:05    Post subject: Reply with quote
mwchang wrote:

And if MacOS and Apple devices could use Bonjour, maybe they would not need to use Connect To menu via IP addresses, but names. I don't know much about Bonjour.


mDNS/Bonjour is just a way to resolve something like nas.local into an IP address, nothing more. At the end of the day the system will still run into the same issue where the Samba implementation in DD-WRT is broken.

_________________
1x Netgear R7800 (latest); 3x Netgear R7000 (latest); 2x Asus RT-N16 (v3.0-r47656); 2x Fonera 2100 (v3.0-r45454).
mwchang
DD-WRT Guru


Joined: 26 Mar 2013
Posts: 1858
Location: Hung Hom, Hong Kong

PostPosted: Sat Jan 06, 2024 7:38    Post subject: Reply with quote
TCB13 wrote:
mDNS/Bonjour is just a way to resolve something like nas.local into an IP address, nothing more. At the end of the day the system will still run into the same issue where the Samba implementation in DD-WRT is broken.

ksmbd (kernel-mode Samba) is not quite broken, just that it's not like the full-featured Samba 4. It's still a work-in-progress. ksmbd is also NOT developed by the original Samba programmers.

It's working with Window$ and Linux, notably public shares. Smile

You might consider installing the full Samba 4 from Entware instead, which has a larger memory footprint.

ksmbd bugs - Google Search
https://www.google.com/search?q=ksmbd+bugs

_________________
Router: Asus RT-N18U (rev. A1)

Drink, Blink, Stretch! Live long and prosper! May the Force and farces be with you!

Facebook: https://www.facebook.com/changmanwai
Website: https://sites.google.com/site/changmw
SETI@Home profile: http://setiathome.berkeley.edu/view_profile.php?userid=211832
GitHub: https://github.com/changmw/changmw
TCB13
DD-WRT User


Joined: 06 Jun 2010
Posts: 260
Location: Portugal

PostPosted: Sat Jan 06, 2024 13:37    Post subject: Reply with quote
mwchang wrote:
ksmbd (kernel-mode Samba) is not quite broken, just that it's not like the full-featured Samba 4. It's still a work-in-progress. ksmbd is also NOT developed by the original Samba programmers.

It's working with Window$ and Linux, notably public shares. Smile


It is broken under DD-WRT. I've been in contact with namjaejeon, the lead maintainer of ksmbd, we did a lot of tests with macOS including with the version that comes with DD-WRT and but running on Debian 12 and it works just fine. Also posted here: https://forum.dd-wrt.com/phpBB2/viewtopic.php?p=1291878#1291878 follow the conversion after that.

The issue seems to be with DD-WRT's backport / hacks required make it work on an older kernels. Maybe something got broken and/or is missing.

Also, under OpenWRT (R7800), kernel 5.15, ksmbd works fine out of the box.

_________________
1x Netgear R7800 (latest); 3x Netgear R7000 (latest); 2x Asus RT-N16 (v3.0-r47656); 2x Fonera 2100 (v3.0-r45454).
mwchang
DD-WRT Guru


Joined: 26 Mar 2013
Posts: 1858
Location: Hung Hom, Hong Kong

PostPosted: Sat Jan 06, 2024 14:07    Post subject: Reply with quote
TCB13 wrote:
It is broken under DD-WRT. I've been in contact with namjaejeon, the lead maintainer of ksmbd, we did a lot of tests with macOS including with the version that comes with DD-WRT and but running on Debian 12 and it works just fine. Also posted here: https://forum.dd-wrt.com/phpBB2/viewtopic.php?p=1291878#1291878 follow the conversion after that.

The issue seems to be with DD-WRT's backport / hacks...

I can asure that ksmbd is working fine in my setup. I do NOT use MacOS.

Since you know all the right people, you are in a much better position to HELP than me. So solve the puzzle instead of blaming DD-WRT! Smile

And don't forget about the standalone Samba.

(BTW, is ksmbd really being coded by South Korean? Well.... )

_________________
Router: Asus RT-N18U (rev. A1)

Drink, Blink, Stretch! Live long and prosper! May the Force and farces be with you!

Facebook: https://www.facebook.com/changmanwai
Website: https://sites.google.com/site/changmw
SETI@Home profile: http://setiathome.berkeley.edu/view_profile.php?userid=211832
GitHub: https://github.com/changmw/changmw
TCB13
DD-WRT User


Joined: 06 Jun 2010
Posts: 260
Location: Portugal

PostPosted: Sat Jan 06, 2024 14:09    Post subject: Reply with quote
mwchang wrote:
Since you know all the right people, you are in a much better position to HELP than me. So solve the puzzle instead of blaming DD-WRT! Smile


There's nothing to be solved in ksmbd. This is an issue with the backport that was done in DD-WRT and it only affects DD-WRT running on older kernels + macOS.

Read what egc said. Rolling Eyes

Mod edit/note: Please refrain from swearing, thanks. -KP

_________________
1x Netgear R7800 (latest); 3x Netgear R7000 (latest); 2x Asus RT-N16 (v3.0-r47656); 2x Fonera 2100 (v3.0-r45454).
Goto page Previous  1, 2, 3, 4, 5, 6, 7  Next Display posts from previous:    Page 5 of 7
Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum