I have Optware working great on build 19342. I tried upgrading to a new version of DD-WRT firmware, but the Webgui becomes corrupted when I bind the Optware /etc folder, below:
Code:
mount -o bind /mnt/sda_part1/etc /etc
I suspect the new firmware has updated files and are not compatible with the original Optware /etc files.
How do you upgrade DD-WRT firmware without reinstalling Optware? Can I copy /etc/www to the Optware /etc folder? What else would I need to copy? Or, should I start over from scratch? Thanks!
I have Optware working great on build 19342. I tried upgrading to a new version of DD-WRT firmware, but the Webgui becomes corrupted when I bind the Optware /etc folder, below:
Code:
mount -o bind /mnt/sda_part1/etc /etc
I suspect the new firmware has updated files and are not compatible with the original Optware /etc files.
How do you upgrade DD-WRT firmware without reinstalling Optware? Can I copy /etc/www to the Optware /etc folder? What else would I need to copy? Or, should I start over from scratch? Thanks!
I just perform the last few commands (from page one here) after upgrading:
cp -a /etc/* /mnt/sda_part1/etc/
mount -o bind /mnt/sda_part1/etc /etc
If you don't copy the /etc your web will be corrupted. Also add the startup command.
That's what I was going to suggest. Cool you fixed it by yourself!
Sorry, could someone expand on this? I assumed it meant installing libc and opkg from 10.03 instead of trunk would resolve "opkg: can't handle reloc type 0x2f" but that didn't do it for me.
Posted: Sat Mar 16, 2013 11:58 Post subject: Please, help!
Dear friends! I have router wzr-hp-g300nh with DD-WRT firmware v24-sp2 (02/11/13) std - build 20675. I installed optware in it under manual in this topic. I want install optware packages. Input command in Putty: opkg install samba36-server_3.6.11-2_ar71xx.ipk and has result:
Collected errors:
* wfopen: samba36-server_3.6.11-2_ar71xx.ipk1-2_ar71xx.ipk: No such file or directory.
* pkg_init_from_file: Failed to extract control file from samba36-server_3.6.11-2_ar71xx.ipk1-2_ar71xx.ipk.
What is wrong? Thank's!
I have been studying things for well over two months. To date I have a TP-Link MR3020, Netgear WNDR3700, and a Netgear WNDR3800 running OpenWRT.
I have been able to setup a toolchain on Backtrack5R3 on a 32 bit platform for OpenWRT, download the entire trunk, and compile all the packages and kernel mods for the ar71xx target. I have flashed images to all three routers, installed opkg to an EXT4 mounted thumbdrive, and managed to get ACM, FTDI, and UVC functionality operational. All of this works across every router; no questions asked, no problems.
Now I would like to do the same thing for DD-WRT. Broadcom based routers enjoy the benefit of having pre-compiled mipsel.ipk packages and some of the builds even have the kernel mods built right in. A simple insmod command later and everything just works.
However all of my routers are Atheros based units and it seems I do not enjoy the same luxuries on DD-WRT that owners of a Broadcom router have nor the full functionality I enjoy with OpenWRT.
Thus far I have already downloaded the source from the SVN for DD-WRT. However I cannot get a functional cross complier to run nor find a coherent set of instructions in the wiki in order to do so. I do not want to modify a build with the Firmware Modification kit but rather compile images, packages, and the kernel mods fresh from the source. This way everything works without throwing libc, kernel version sum errors, and all sorts of other malformed garbage across my terminal.
Can anyone provide a clear set of commands to set up the cross compiler and do so without inserting comments?
If a clear set of instructions exists would you kindly post a link?
Thanks. Comments and input are greatly appreciated.
How do I start, stop, enable or disable a service. The service command is not valid.
In the version "Optware the right way" in a router broadcom this tool exists.
Quote:
service - show all services (enabled/disabled)
service <service name> - if "status" parameter is supported, will show service status, otherwise will show whether specified service is running
service <service name> on - Enable the script, allowing execution (chmod +x /opt/etc/init.d/S<servicescript>)
service <service name> off - Disable the script, disallowing execution (chmod -x /opt/etc/init.d/S<servicescript>)
service <service name> start - Start/execute the script, as long as service is enabled (i.e. permissions allow execution)
service <service name> stop Stop/kill the script, if the service is running
service <service name> restart Stop/kill the script, if the service is running, and then start/execute the script, as long as service is enabled
service <service name> <parameter> - Run the script with the parameter.
Joined: 23 Jun 2008 Posts: 71 Location: Brooklyn, NY
Posted: Mon Apr 15, 2013 5:05 Post subject:
Thank you for this nice tutorial but few issues.
1. Step 5 if you just do "ipkg libc_0.9.33.2-1_ar71xx.ipk opkg_618-3_ar71xx.ipk" nothing will happen prompt will give you error, you have to do INSTALL aka "ipkg install libc_0.9.33.2-1_ar71xx.ipk opkg_618-3_ar71xx.ipk" and only then you'll have "proper" errors you talking about.
2. For me personally I have one more error. After router reset after Step 8 I did opkg update and here is what I got:
Code:
root@Router root $ opkg update
opkg: '/opt/lib/libgcc_s.so.1' is not an ELF executable for MIPS
Downloading http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/Packages.gz.
Updated list of available packages in /opt/tmp/var/opkg-lists/snapshots.
root@Router root $
Anyone know how to fix this error , cause I don't even know what it is or what it does.
Thank you.
P.S I fixed problem with that libgcc_s.so.1 file.
I installed libc_0.9.33.2-1_ar71xx.ipk using command opkg install libc_0.9.33.2-1_ar71xx.ipk and now here is my outcome.
Code:
root@Router root $ opkg update
Downloading http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/Packages.gz.
Updated list of available packages in /opt/tmp/var/opkg-lists/snapshots.
root@Router root $
No errors. Next to learn on how to install , update and confugure all programs I can now install. (anyone said torrent client ?) _________________ =================================
|We Have What it Takes ...I think.|
=================================
Followed this tutorial, but then, cannot longer login using Telnet and i'm using same user/pass as on web gui.
Any ideas?
Please try:
- user: root
- password: <same as on web gui>
If it won't login, remove your USB flashdrive/HDD, reboot your router (or power cycle). Something might be wrong on Startup Command and it has to be redone.
Now, I wanted to install minidlna on my WNDR3700 because the DLNA-function from Netgear is driving me crazy... But I get the error
Code:
-sh: opkg: not found
I think this is because my router doesn't "recognize" the WAN-connection. It is connected to modem-router which is the DHCP-server and connected to the LAN-1-port of my Netgear. Is there a way to download the package and copy it on the Netgear or to get the Netgear "recognizing" the Internet connection?