Posted: Tue Dec 23, 2014 7:56 Post subject: Re: [Howto] Install Optware on Atheros units (such as WNDR37
Hi all!
I am relatively new to coding and I cant say I know much. Still I venture into the depths of libs and dirs and sudos to make my life even harder lol.
In essence what do I want to obtain:
1. I have a WR1043ND v2.1 router
2. I flashed a DD-WRT firmware on it.
3. I have an external 2TB HDD with USB attached
4. I want to create a fully working Media Center from which I can stream video to other devices (TV, BluRay) and download movies onto from my computers.
So far so good - I can get everything to work. Boosted my speeds to nearly 85 Mbits wirelessly on D and 74Mbits on U.
BUT here comes the trouble - I cant get anything installed on the router as I am failing to understand (My lack of knowledge comes in here) how to get anything on it.
I tried with the HDD - I cant seem to be able to format it properly and fear losing data.
I repeated everything, this time with a USB flash drive of 1GB and it worked to a point but not afterwards.
Can someone help me out a little bit? Consider me an illiterate on the subject but strict follower so a step by step would be the best, if that does not eat too much of your time :S
dynek wrote:
1. Prepare the USB disk
Create an ext3 partition using GParted for instance - DONE
Under Services->USB:
* Enable Core USB Support
* Disable USB Printer Support (enable it if you need printing support)
* Enable USB Storage Support
* Enable Automatic Drive Mount
* Set Disk Mount Point to /mnt
* Click Apply Settings DONE
3. Plug the USB drive into the router and reboot it
* SSH into your box using user root and make sure, using mount, that your USB stick was mounted correctly (you can also check this on the web interface under Services->USB). DONE
4. Create and prepare necessary structure
* SSH into your box using user root if not already done at previous step:
cd /mnt
mkdir /sda_part1
cd /mnt/sda_part1
mkdir etc opt root
touch optware.enable
chmod 755 etc opt root
mkdir opt/lib
chmod 755 opt/lib
cp -a /etc/* /mnt/sda_part1/etc/
mount -o bind /mnt/sda_part1/etc /etc
mount -o bind /mnt/sda_part1/opt /jffsDONE
You will get the following output with error messages. You can't avoid it so don't worry about it.
ERROR: File not found: //usr/local/lib/ipkg/lists/whiterussian
You probably want to run `ipkg update'
ERROR: File not found: //usr/local/lib/ipkg/lists/non-free
You probably want to run `ipkg update'
ERROR: File not found: //usr/local/lib/ipkg/lists/backports
You probably want to run `ipkg update'
/bin/ipkg: line 1184: sort: not found
Unpacking libc...Done.
Configuring libc...Done.
ERROR: File not found: //usr/local/lib/ipkg/lists/whiterussian
You probably want to run `ipkg update'
ERROR: File not found: //usr/local/lib/ipkg/lists/non-free
You probably want to run `ipkg update'
ERROR: File not found: //usr/local/lib/ipkg/lists/backports
You probably want to run `ipkg update'
/bin/ipkg: line 1184: sort: not found
Unpacking opkg...Done.
Configuring opkg...Done.
Type the following lines to create the configuration file for opkg:
6. Set the startup script to make the changes take effect each time upon reboot
Under DD-WRT’s web interface, Administration->Commands, input the following commands in the window then click "Save Startup":
#!/bin/sh
sleep 5
if [ -f /mnt/sda_part1/optware.enable ]; then
mount -o bind /mnt/sda_part1/etc /etc
mount -o bind /mnt/sda_part1/root /tmp/root
mount -o bind /mnt/sda_part1/opt /opt
else
exit
fi
if [ -d /opt/usr ]; then
export LD_LIBRARY_PATH='/opt/lib:/opt/usr/lib:/lib:/usr/lib'
export PATH='/opt/bin:/opt/usr/bin:/opt/sbin:/opt/usr/sbin:/bin:/sbin:/usr/sbin:/usr/bin'
else
exit
fi
Note that some users have reported issues that they were able to fix by making the script sleep 10 seconds instead of 5.
7. Modification of the profile file
SSH into your box then copy/paste the commands below to PuTTY window to create a script running each time when user root logins:
After making the optware.tar.gz i tried doing it from scratch (not updating from a previous release) and it failed in the exact same point, not being able to run opkg despite of everything i tried. I'm also eager to see if someone did it the normal way.
After making the optware.tar.gz i tried doing it from scratch (not updating from a previous release) and it failed in the exact same point, not being able to run opkg despite of everything i tried. I'm also eager to see if someone did it the normal way.
Posted: Sun Jan 04, 2015 23:23 Post subject: USB spin down
I was going to attempt to use the USB port on my Buffalo_WZR-HP-G300NH for network storage. I was hoping that some of you with practical experience could answer a few questions.
I am concerned with saving energy and want a setup that will spin down to save power when the HD is not being accessed. Will this setup spin down for low power? Is it the responsibility of the WZR-HP-G300NH to spin the USB drive down or the USB drive to spin itself down, or both.
I will start with a 1TB drive and possibly go to a 2TB drive later, is this a problem.
Buffalo_WZR-HP-G300NH Ver 1
Atheros AR9132@400mhz
64 megs ram
32 megs flash
1 USB 2.0
hardware rev A0 A3
Hi ! Open-Wrt has just changed the location of needed files for this tutorial.
Futhermore, It seem to have a problem with my dd-wrt router (Netgear WNDR4300)
IPKG seem to be totally breaked.
I get the classical message at start when I launch "ipkg", but nothing when I try to update upgrade install.
How to follow this tutorial if IPKG doesn't work ?
The only limitation on the above is that you have to use barrier breaker 14.07 rc3 instead of snapshot and it only works if your dd-wrt build still has ipkg.
That means optware is not setup properly and opkg is not installed. BTW, which setup instructions are you following, this thread or the other thread that I suggested on my previous post?
Are there updated versions of these packages somewhere?
Ideally, I'm just trying to get `tee` installed on my DD-WRT router to be able to run an automated backup script. _________________ Buffalo WZR-HP-AG300H: DD-WRT v3.0-r32170 std (06/01/17)