New Build - 11/11/2024 - r58662

Post new topic   Reply to topic    DD-WRT Forum Index -> X86 based Hardware
Author Message
blkt
DD-WRT Guru


Joined: 20 Jan 2019
Posts: 5905

PostPosted: Mon Nov 11, 2024 15:04    Post subject: New Build - 11/11/2024 - r58662 Reply with quote
Welcome to x86 / x64 r58662 beta release thread for reporting, feedback to developers & community benefit.
Please do not flash builds until installation is understood, risks involved and device specific recovery methods.
Avoid discussions, create threads for questions, general problems or use search; this thread is not for support.
List router model & version or revision, operating & wireless modes & exact filename/firmware image flashed.


CLI Flash: 'cd /tmp' then 'wget {file URL}' (http only) or 'curl -O {file URL}' (http, https, ftp) 'write {file} linux' then 'reboot'.

Downloads: HTTPS, FTP

Trac SVN: repository since last build r58627 (mirror)

OpenVPN 2.6.12: Changelog, Guides, Server, PBR, DNS, Kill Switch, Watchdog, Reverse PBR, Client, Multiple, tips, scripts.
WireGuard 1.0.20211208/Tools: Changelog, Guides, Client, Server, Adv, PBR, KS, tips, scripts. Thanks BS egc & eibgrad!

Notes: ...
r55799 r55819 r56029 r56119 r56182 r56237 r56326 r56359 r56380 r56490 r56721 r56820 r56932 r56941 r57200 r57447
r57538 r57564 r57595 r57707 r57753 r57793 r57834 r57956 r58070 r58124 r58163 r58207 r58244 r58283 r58362 r58381
r58389 r58464 r58531 r58568 r58627 r58662

Issues, observations, and/or workarounds reported:
WebUI: Clear history or use a portable. Temporary cache bypass: Ctrl+F5, Cmd+Shift+R or new private window/incognito.
Please report findings with steps needed to reproduce, configuration, clients, output, logs and important information below!

Important:
Detail issues & relevant configs, logs: syslog klog 'dmesg' 'cat /tmp/var/log/messages' nvram set console_debug=1, serial.
• Firewall NAT: 'iptables -vnL' 'iptables -t nat -vnL' 'iptables -t mangle -vnL' & 'cat /tmp/.ipt'. Debug Analyze: strace tcpdump.
• Gremlins: reboot. cold boot. Reset & reconfigure not restore backup. Search Trac & discuss in forum before opening tickets.
• Include operating & wireless modes (e.g. Gateway, Router, AP, SB, WDS, Mesh) and applicable configurations to reproduce.

Example Template:
Code:
[b]Router/Version: [/b]
[b]File/Kernel: [/b]
[b]Previous/Reset: [/b]
[b]Mode/Status: [/b]
[b]Issues/Errors: [/b]
Sponsor
Zyxx
DD-WRT Guru


Joined: 28 Dec 2018
Posts: 783

PostPosted: Tue Nov 12, 2024 10:40    Post subject: Reply with quote
Router/Version: industrial PC N4000 4GB RAM, 2*intel i226-v
File: dd-wrt_x64-webupgrade_full_vga_2GB.bin
Firmware: DD-WRT v3.0-r58662 std (11/11/24) (prev. DD-WRT v3.0-r58627 std (11/02/24))
Kernel: Linux 6.6.60-rt29 #440 SMP Mon Nov 11 08:54:50 +07 2024 x86_64
Mode: Gateway, SFE disabled, Wireguard for external access, WAN (PPPoE/VLAN7) to GPON Modem, samba/nfs to access USB3-ext4 SSD, Force reconnect 5:00 in the morning, using my own local NTP, CPU governor set to on demand by startup script.
Reset: No
Status: Installed at release.

Some parts of Syslog timestamp are minus one hour off (on all DD-WRT devices of mine.). Time in upper right corner is ok.

USB Disks are not mounted at boot / restart. Enabling / disabling of Core USB Support, USB Storage Support or Automatic Drive Mount does not fix this, also rebooting does not fix this. Have to disconnect the USB cable by hand and reconnect it, otherwhise sda is not shown in Webif, resulting in Samba and NFS shares to be not available.
After reconnection by hand everything comes online and disk is shown in Webif.
Cratebv212
DD-WRT User


Joined: 14 Dec 2016
Posts: 125

PostPosted: Wed Nov 13, 2024 1:04    Post subject: Reply with quote
I haven't had any problems with the past few releases. I'm running a vostro 620 i7 2600 with 16g ram. I run 2 drives for nas and have 2.4g and 5g wifi without issue all in one case. The cpu running full speed is the only issue I've been have but fixed with the script found here. Not trying to sound like an ass but do you think it might be hardware related?
Zyxx
DD-WRT Guru


Joined: 28 Dec 2018
Posts: 783

PostPosted: Wed Nov 13, 2024 8:06    Post subject: Reply with quote
I'm honestly not 100% sure if this is hardware related or not.

At the beginning I had two external drives connected to this device.
Both are USB to sATA adapters where I added a old SSD of mine.

Currently only one is connected to the PC, the other USB Port does power a raspberry of mine.

The one currently in use, consists of this USB to sATA solution https://www.amazon.de/gp/product/B01D9KX8KG and an old OCZ vertex II 60GB ssd.

This combination worked flawless with a WRT 1900ACS v2 before and before this with a Netgear R7800.
All sporting DD-WRT.
Also two similar drives where connected to these routers without any nuisance.

After formatting those disks over and over (on several routers) redoing and checking the configuration... I did not know how to proceed here and figured I'd report this, to receive feedback of any kind.

The system is a mini PC I bought a few months ago from amazon (99€ seemed a very good deal):
https://www.amazon.de/gp/product/B0C28FDCRQ

The (JMicron if I'm not mistaken) sATA bridge seems to be recognized as USB to ATA/ATAPI Bridge, at least according to
Code:

root@N4000:/sys/bus/usb/devices/usb1/driver/usb2/2-2# cat product
USB to ATA/ATAPI Bridge


The Host itself uses a normal intel USB Controller, as far as my google foo was able to take me:

Code:

root@N4000:/sys/bus/usb/devices/usb1/driver/usb2/2-2# lspci |grep USB
00:15.0 USB controller: Intel Corporation Celeron/Pentium Silver Processor USB 3.0 xHCI Controller (rev 03)


It should work, I think.

My current idea is to figure out what module is in charge for USB and unload and reload it by script.
But should I refrain from reporting this? No idea, maybe it is time, since I'm the only one :/

--EDIT--
I went ahead and figured which drivers are in charge, "usb-storage" and / or "hub":

Code:

root@N4000:/sys/kernel/debug/usb# cat devices

T:  Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=480  MxCh= 9
B:  Alloc=  0/800 us ( 0%), #Int=  0, #Iso=  0
D:  Ver= 2.00 Cls=09(hub  ) Sub=00 Prot=01 MxPS=64 #Cfgs=  1
P:  Vendor=1d6b ProdID=0002 Rev= 6.06
S:  Manufacturer=Linux 6.6.60-rt29 xhci-hcd
S:  Product=xHCI Host Controller
S:  SerialNumber=0000:00:15.0
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=  0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   4 Ivl=256ms

T:  Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=5000 MxCh= 7
B:  Alloc=  0/800 us ( 0%), #Int=  0, #Iso=  0
D:  Ver= 3.00 Cls=09(hub  ) Sub=00 Prot=03 MxPS= 9 #Cfgs=  1
P:  Vendor=1d6b ProdID=0003 Rev= 6.06
S:  Manufacturer=Linux 6.6.60-rt29 xhci-hcd
S:  Product=xHCI Host Controller
S:  SerialNumber=0000:00:15.0
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=  0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   4 Ivl=256ms

T:  Bus=02 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#=  4 Spd=5000 MxCh= 0
D:  Ver= 3.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 9 #Cfgs=  1
P:  Vendor=152d ProdID=0578 Rev= 5.08
S:  Manufacturer=JMicron
S:  Product=USB to ATA/ATAPI Bridge
S:  SerialNumber=0123456789ABCDEF
C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=896mA
I:* If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
E:  Ad=81(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms
E:  Ad=02(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms
I:  If#= 0 Alt= 1 #EPs= 4 Cls=08(stor.) Sub=06 Prot=62 Driver=usb-storage
E:  Ad=01(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms
E:  Ad=82(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms
E:  Ad=83(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms
E:  Ad=04(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms


Also I had a closer look into the PCI device driver in charge "xhci_hcd":
Code:

root@N4000:/sys/kernel/debug/usb# lspci
00:00.0 Host bridge: Intel Corporation Gemini Lake Host Bridge (rev 03)
00:02.0 VGA compatible controller: Intel Corporation GeminiLake [UHD Graphics 600] (rev 03)
00:0e.0 Audio device: Intel Corporation Celeron/Pentium Silver Processor High Definition Audio (rev 03)
00:0f.0 Communication controller: Intel Corporation Celeron/Pentium Silver Processor Trusted Execution Engine Interface (rev 03)
00:12.0 SATA controller: Intel Corporation Celeron/Pentium Silver Processor SATA Controller (rev 03)
00:13.0 PCI bridge: Intel Corporation Gemini Lake PCI Express Root Port (rev f3)
00:14.0 PCI bridge: Intel Corporation Gemini Lake PCI Express Root Port (rev f3)
00:14.1 PCI bridge: Intel Corporation Gemini Lake PCI Express Root Port (rev f3)
00:15.0 USB controller: Intel Corporation Celeron/Pentium Silver Processor USB 3.0 xHCI Controller (rev 03)
00:1c.0 SD Host controller: Intel Corporation Celeron/Pentium Silver Processor SDA Standard Compliant SD Host Controller (rev 03)
00:1f.0 ISA bridge: Intel Corporation Celeron/Pentium Silver Processor LPC Controller (rev 03)
00:1f.1 SMBus: Intel Corporation Celeron/Pentium Silver Processor Gaussian Mixture Model (rev 03)
01:00.0 Non-Volatile memory controller: Silicon Motion, Inc. SM2263EN/SM2263XT (DRAM-less) NVMe SSD Controllers (rev 03)
02:00.0 Ethernet controller: Intel Corporation Ethernet Controller I226-V (rev 04)
03:00.0 Ethernet controller: Intel Corporation Ethernet Controller I226-V (rev 04)

root@N4000:/sys/kernel/debug/usb# lspci -s 00:15.0 -vvv
00:15.0 USB controller: Intel Corporation Celeron/Pentium Silver Processor USB 3.0 xHCI Controller (rev 03) (prog-if 30 [XHCI])
        Subsystem: Intel Corporation Device 7270
        Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
        Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
        Latency: 0
        Interrupt: pin A routed to IRQ 132
        Region 0: Memory at a1600000 (64-bit, non-prefetchable) [size=64K]
        Capabilities: [70] Power Management version 2
                Flags: PMEClk- DSI- D1- D2- AuxCurrent=375mA PME(D0-,D1-,D2-,D3hot+,D3cold+)
                Status: D0 NoSoftRst+ PME-Enable- DSel=0 DScale=0 PME-
        Capabilities: [80] MSI: Enable+ Count=1/8 Maskable- 64bit+
                Address: 00000000fee003d8  Data: 0000
        Capabilities: [90] Vendor Specific Information: Len=14 <?>
        Kernel driver in use: xhci_hcd



So I went ahead and looked into lsmod. According to its output those drivers aren't loaded.
When trying to unload them with rmmod, I get no such file/directory error.
This had me curious, those modules arent available at /lib/modules/6.6.60-rt29 too.
So they are built into the kernel.

My knowledge ends here, but I know it is somehow possible to unbind a device and rebind it.
I'll research this way further and update this post.
Zyxx
DD-WRT Guru


Joined: 28 Dec 2018
Posts: 783

PostPosted: Tue Nov 26, 2024 17:46    Post subject: Reply with quote
I stopped exploring the "unlist modules" route.

My solution is simple:
/dev/sda was always available after each reboot, but the "Automatic Drive Mount" seemingly only worked after disconnecting and reattaching the disk by hand.

I solved it with adding mkdir and mount commands to startup and disabling the "Automatic Drive Mount" feature in "Services" --> "USB".

If someone is interested, this is my final "construct" I added to "Administration" --> "Commands" --> "Startup":

Code:
# mount USB disk if available
echo "if [ -e /dev/sda ]; then echo "/dev/sda available, mounting it">>/var/log/messages; mkdir -p /mnt/sda; mount /dev/sda /mnt/sda; else echo
 "/dev/sda missing, nothing to mount">>/var/log/messages; fi" > /tmp/zyxx.sh
chmod +x /tmp/zyxx.sh
/bin/sh /tmp/zyxx.sh


Please note:
If you try to use this script a "modprobe ext4" might be in need if this module isn't already active and your disk is also ext4 formatted.
Ofc this is meant for /dev/sda, if your disk isn't listed there or you try to use this for sdXYZ, you have to edit this.
flood404
DD-WRT User


Joined: 18 Dec 2013
Posts: 401

PostPosted: Sun Dec 08, 2024 2:46    Post subject: Reply with quote
Cratebv212 wrote:
I haven't had any problems with the past few releases. I'm running a vostro 620 i7 2600 with 16g ram. I run 2 drives for nas and have 2.4g and 5g wifi without issue all in one case. The cpu running full speed is the only issue I've been have but fixed with the script found here. Not trying to sound like an ass but do you think it might be hardware related?



It's not hardware related it was a choice from the Dev to not to slow it down. I think there was inconsistent speed issues or crashes cause of the throttle control and it was disabled for now.

Fair warning. I have use the Startup command that Sp!derman did and it was causing the system to randomly crash with a Kernel Panic. I think my command was more stable which I need to test. Not sure why. I removed the command and let the cpu run at full speed. It has a really decent cooler so heat will never be an issue for it. It's been stable for over 2 days now.
Zyxx
DD-WRT Guru


Joined: 28 Dec 2018
Posts: 783

PostPosted: Mon Dec 09, 2024 8:50    Post subject: Reply with quote
@flood404:

I think you missunderstood the answer.
The reply was meant towards my "why the heck does this USB drive not automount?!?".

X86 running on full power since a few months is known and we thought it to be a bug or such, hence the script and its sticky here.

It being done on purpose is nice to know, thank you Smile
Do you know by any chance if it is considered to make it a switch in the webinterface by chance?
flood404
DD-WRT User


Joined: 18 Dec 2013
Posts: 401

PostPosted: Tue Dec 10, 2024 2:36    Post subject: Reply with quote
I thought you meant the CPU being ran at the fastest speed possible.



Now for the automatic drive mount on a reboot. This has been an issue for years now. The best answer I can give you is to put in startup commands to mount it or commands to reset the USB ports so the drive's are detected.


I think I did this long time ago when I was using USB storage where I would use a command similar to this. But the USB device path was used instead. This is for my SATA connected drives to the system.

mkdir /tmp/mydisc

mount -o rw /dev/sda1 /tmp/mydisc

Change the sda1 to the device of your usb stick it may mount them on reboot. Save as a startup command. I could try it this weekend when I am not at work to see if I can figure out something.
Zyxx
DD-WRT Guru


Joined: 28 Dec 2018
Posts: 783

PostPosted: Tue Dec 10, 2024 7:22    Post subject: Reply with quote
Thank you Smile

Yeah I figured so and made a script for mounting at startup:

Code:

# mount USB disk if available
echo "if [ -e /dev/sda ]; then echo "/dev/sda available, mounting it">>/var/log/messages; mkdir -p /mnt/sda; mount /dev/sda /mnt/sda; else echo
 "/dev/sda missing, nothing to mount">>/var/log/messages; fi" > /tmp/zyxx.sh
chmod +x /tmp/zyxx.sh
/bin/sh /tmp/zyxx.sh


Maybe this is also an issue, cause the SSD used is an old sandforce driven OCZ Vertex 2, I don't know. But script works.

If it is possible to reset USB Ports by Script, then I had no luck finding it yet :/
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> X86 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 cannot attach files in this forum
You cannot download files in this forum