RT-N18U and Entware

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


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

PostPosted: Sat Jul 24, 2021 16:21    Post subject: RT-N18U and Entware Reply with quote
Unable to continue past running generic.sh....

Installing Entware - DD-WRT Wiki
https://wiki.dd-wrt.com/wiki/index.php/Installing_Entware
Code:

For MIPSEL based devices (Broadcom, not dual core), this:

cd /opt (click enter)
wget http://bin.entware.net/mipselsf-k3.4/installer/generic.sh (click enter)
sh generic.sh (click enter)


Code:

Info: Opkg package manager deployment...
Connecting to bin.entware.net (104.21.91.83:80)
saving to '/opt/bin/opkg'
opkg                 100% |************************************************************************|  864k  0:00:00 ETA
'/opt/bin/opkg' saved
Connecting to bin.entware.net (104.21.91.83:80)
saving to '/opt/etc/opkg.conf'
opkg.conf            100% |************************************************************************|   150  0:00:00 ETA
'/opt/etc/opkg.conf' saved
Info: Basic packages installation...
./generic.sh: line 43: /opt/bin/opkg: Permission denied
./generic.sh: line 47: /opt/bin/opkg: Permission denied
Info: Congratulations!
Info: If there are no errors above then Entware was successfully initialized.
Info: Add /opt/bin & /opt/sbin to $PATH variable
Info: Add "/opt/etc/init.d/rc.unslung start" to startup script for Entware services to start
Info: Found a Bug? Please report at https://github.com/Entware/Entware/issues
root@ROUTER2:/opt# /opt/bin/opkg
-sh: /opt/bin/opkg: Permission denied
root@ROUTER2:/opt# /opt/bin/opkg update
-sh: /opt/bin/opkg: Permission denied

Code:
CPU
CPU Model
Broadcom BCM4708
CPU Cores
1
CPU Features
EDSP
CPU Clock
600 MHz

_________________
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
Sponsor
mwchang
DD-WRT Guru


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

PostPosted: Sat Jul 24, 2021 16:33    Post subject: Reply with quote
Oh well, "uname -a" solved the puzzle!
Code:

root@ROUTER2:/opt# uname -a
Linux ROUTER2 4.4.276 #3713 Thu Jul 22 02:41:29 +07 2021 armv7l DD-WRT

My CPU is not MIPSEL. Sorry....

Please lock post! Smile


_________________
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


Last edited by mwchang on Sat Jul 24, 2021 16:35; edited 1 time in total
eibgrad
DD-WRT Guru


Joined: 18 Sep 2010
Posts: 9157

PostPosted: Sat Jul 24, 2021 16:34    Post subject: Reply with quote
According to wikidevi, your RT-N18U is an arm-based routers, NOT mips. Therefore, the script you downloaded is compatible w/ the router, which is why it returns an error. You need the ARM version of that script instead.

https://wikidevi.wi-cat.ru/ASUS_RT-N18U

_________________
ddwrt-ovpn-split-basic.sh (UPDATED!) * ddwrt-ovpn-split-advanced.sh (UPDATED!) * ddwrt-ovpn-client-killswitch.sh * ddwrt-ovpn-client-watchdog.sh * ddwrt-ovpn-remote-access.sh * ddwrt-ovpn-client-backup.sh * ddwrt-mount-usb-drives.sh * ddwrt-blacklist-domains.sh * ddwrt-wol-port-forward.sh * ddwrt-dns-monitor.sh (NEW!)
mwchang
DD-WRT Guru


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

PostPosted: Sat Jul 24, 2021 16:35    Post subject: Reply with quote
eibgrad wrote:
According to wikidevi, your RT-N18U is an arm-based routers, NOT mips. Therefore, the script you downloaded is compatible w/ the router, which is why it returns an error. You need the ARM version of that script instead.

https://wikidevi.wi-cat.ru/ASUS_RT-N18U


Got it... thanks! Using ARM's generic.sh and opkg, it's working....

Could someone edit that Wiki to include the use of "uname -a" for checking CPU?

Installing Entware - DD-WRT Wiki
https://wiki.dd-wrt.com/wiki/index.php/Installing_Entware


_________________
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
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 14102
Location: Texas, USA

PostPosted: Sat Jul 24, 2021 17:01    Post subject: Reply with quote
Kinda funny, I didn't see who did the last edit or wrote that part, but they reference the status page which has the output of uname -a. Hopefully, my edit makes sense. You're welcome.
_________________
"Life is but a fleeting moment, a vapor that vanishes quickly; All is vanity"
Contribute To DD-WRT
Pogo - A minimal level of ability is expected and needed...
DD-WRT Releases 2023 (PolitePol)
DD-WRT Releases 2023 (RSS Everything)

----------------------
Linux User #377467 counter.li.org / linuxcounter.net
mwchang
DD-WRT Guru


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

PostPosted: Sun Jul 25, 2021 6:07    Post subject: Reply with quote
kernel-panic69 wrote:
Kinda funny, I didn't see who did the last edit or wrote that part, but they reference the status page which has the output of uname -a. Hopefully, my edit makes sense. You're welcome.


The Status page....I forgot!

The Installing Entware wiki needs to reference USB mounting as well because Entware needs /opt. And /opt is a result of formatting a partition in the USB drive.

USB storage - DD-WRT Wiki
https://wiki.dd-wrt.com/wiki/index.php/USB_storage

How to - Format and Partition External Storage Device - DD-WRT Wiki
https://wiki.dd-wrt.com/wiki/index.php/How_to_-_Format_and_Partition_External_Storage_Device

I think the USB mounting page is quite a mess. The Format Partition page didn't mention the use of Dropbear SSH and mkfs.* tools. A new wiki page should be created about using a SSH/Telnet session to do everything. And I might have the time.


_________________
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
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 14102
Location: Texas, USA

PostPosted: Sun Jul 25, 2021 10:32    Post subject: Reply with quote
USB formatting functionality is also in the webUI on *some* devices, I think? I agree, there are a lot of wikis that could stand some updating; perhaps retain old information and figure out which build was a transition and making note of that, etc. We can collaborate, I s'pose Cool
_________________
"Life is but a fleeting moment, a vapor that vanishes quickly; All is vanity"
Contribute To DD-WRT
Pogo - A minimal level of ability is expected and needed...
DD-WRT Releases 2023 (PolitePol)
DD-WRT Releases 2023 (RSS Everything)

----------------------
Linux User #377467 counter.li.org / linuxcounter.net
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