Need help with startup commands

Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware
Author Message
Boundless
DD-WRT Novice


Joined: 06 Feb 2013
Posts: 5

PostPosted: Fri Dec 23, 2022 0:24    Post subject: Need help with startup commands Reply with quote
My Linksys EA6300 with Asus RT-AC68U dd-wrt firmware has some strange bug:

It boots up with disabled USB and opened 2.4G WiFi.

Going through the GUI and just hitting Save/Apply Changes - fixes this issue, after bootup. But I'd like not to do it manually after each router reboot.

Seems the best option is just to add/save some startup commands. Yet I can't find proper commands for:
1) Enable Core USB Support
startservice usb / usbcore - doesn't work. seems this service has some other name
2) Somehow reapply 2.4G WiFi settings so it become protected with already set password again.


Last edited by Boundless on Fri Dec 23, 2022 6:29; edited 1 time in total
Sponsor
dale_gribble39
DD-WRT Guru


Joined: 11 Jun 2022
Posts: 1952

PostPosted: Fri Dec 23, 2022 1:28    Post subject: Reply with quote
I see no mention of using Asus RT-AC68U firmware in the device wiki or installation how-to:

https://forum.dd-wrt.com/wiki/index.php/Linksys_EA6400

https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=172389&start=997

_________________
"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
Boundless
DD-WRT Novice


Joined: 06 Feb 2013
Posts: 5

PostPosted: Fri Dec 23, 2022 6:30    Post subject: Reply with quote
dale_gribble39 wrote:
I see no mention of using Asus RT-AC68U firmware in the device wiki or installation how-to:

https://forum.dd-wrt.com/wiki/index.php/Linksys_EA6400

https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=172389&start=997


My bad... It's 6300, not 6400 Rolling Eyes
P.S. Fixed my post.
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12917
Location: Netherlands

PostPosted: Fri Dec 23, 2022 7:29    Post subject: Reply with quote
I think you are using a Linksys EA6300 with alternative XVortex CFE to solve the 32 K NVRAM bug?

What buildnumber are you using, maybe it is already corrected

Current build is 51043, See the forum guidelines with helpful pointers about how to research your router, where and what firmware to download, where and how to post and many other helpful tips:
https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087

_________________
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
Boundless
DD-WRT Novice


Joined: 06 Feb 2013
Posts: 5

PostPosted: Fri Dec 23, 2022 9:14    Post subject: Reply with quote
egc wrote:
I think you are using a Linksys EA6300 with alternative XVortex CFE to solve the 32 K NVRAM bug?

What buildnumber are you using, maybe it is already corrected

Current build is 51043, See the forum guidelines with helpful pointers about how to research your router, where and what firmware to download, where and how to post and many other helpful tips:
https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087

Not quite sure about XVortex, because I've updated my router with that Asus dd-wrt firmware a long time ago. Since then I just occasionally update it with latest builds for Asus RT-AC68U. And it works like a charm, except those 2 issues that I've mentioned.

Build-number:
DD-WRT v3.0-r51043 std (12/19/22)
With older builds (even r4xxxx) this bug was still present.

So I think it's not about finding that perfect firmware. Much easier to fix this issue with startup commands.
hellf
DD-WRT Novice


Joined: 16 Apr 2010
Posts: 44
Location: Metavira

PostPosted: Fri Dec 23, 2022 14:44    Post subject: Reply with quote
The setting in the WebUI doesn't enable USB support for you?
Code:
nvram set usb_enable=1
should be equivalent, but maybe the GPIOs are connected different?
Wifi settings similar, read https://wiki.dd-wrt.com/wiki/index.php/Hardware
and you'll end up with something like
Code:
nvram set wl0_wpa_psk=12345678
dale_gribble39
DD-WRT Guru


Joined: 11 Jun 2022
Posts: 1952

PostPosted: Fri Dec 23, 2022 17:24    Post subject: Reply with quote
Even with your correction, I see nothing about using RT-AC68U firmware anywhere. You either use EA6300 or you use EA6350, dependent on version markings.

https://forum.dd-wrt.com/wiki/index.php/Linksys_EA6300

_________________
"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
Boundless
DD-WRT Novice


Joined: 06 Feb 2013
Posts: 5

PostPosted: Sun Dec 25, 2022 22:46    Post subject: Reply with quote
hellf wrote:
The setting in the WebUI doesn't enable USB support for you?
Code:
nvram set usb_enable=1
should be equivalent, but maybe the GPIOs are connected different?
Wifi settings similar, read https://wiki.dd-wrt.com/wiki/index.php/Hardware
and you'll end up with something like
Code:
nvram set wl0_wpa_psk=12345678

Thanks, this commands are something in a correct direction.
I've made it this way in startup commands:
nvram set usb_enable=1
nvram set wl0_wpa_psk=password
nvram commit

Yet it seems that apply missing. Because router boots up, then USB becomes enabled in UI, but it still doesn't work and WiFi is still opened. After I hit "Apply Settings" in the UI - everything goes ok.
Any hint how to "Apply Settings" via command, but not via reboot command?
hellf
DD-WRT Novice


Joined: 16 Apr 2010
Posts: 44
Location: Metavira

PostPosted: Mon Dec 26, 2022 11:02    Post subject: Reply with quote
Boundless wrote:
hellf wrote:
The setting in the WebUI doesn't enable USB support for you?
Code:
nvram set usb_enable=1
should be equivalent, but maybe the GPIOs are connected different?
Wifi settings similar, read https://wiki.dd-wrt.com/wiki/index.php/Hardware
and you'll end up with something like
Code:
nvram set wl0_wpa_psk=12345678

Thanks, this commands are something in a correct direction.
I've made it this way in startup commands:
nvram set usb_enable=1
nvram set wl0_wpa_psk=password
nvram commit

Yet it seems that apply missing. Because router boots up, then USB becomes enabled in UI, but it still doesn't work and WiFi is still opened. After I hit "Apply Settings" in the UI - everything goes ok.
Any hint how to "Apply Settings" via command, but not via reboot command?


IMHO You should really look what's wrong with your devices nvram..

More hints to hack instead of fixing:
https://wiki.dd-wrt.com/wiki/index.php/Useful_Scripts#Reset_Wireless_Radio
Code:
wl
would be reading the value set with
Code:
nvram set

, I assume.


For USB,
Code:
modprobe usbcore
? In a working state, see which modules are loaded
Code:
lsmod | grep usb
and then use
Code:
insmod $module
or
Code:
modprobe $module
to get the state you want from startup
Display posts from previous:    Page 1 of 1
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