My way to install software packages on WZR-HP-G300NH

Post new topic   Reply to topic    DD-WRT Forum Index -> Atheros WiSOC based Hardware
Goto page Previous  1, 2, 3, 4, 5  Next
Author Message
Lord Justice
DD-WRT Novice


Joined: 12 Jun 2010
Posts: 5

PostPosted: Fri Jun 18, 2010 17:14    Post subject: Reply with quote
I'm definitely not an expert, so someone feel free to correct me if I'm wrong, but here's what makes sense to me:

If the /jffs partition is in the router's internal memory, then it will not survive a firmware update.

If the /jffs partition is on an external storage device, it will survive. You'd just have to re-mount it afterwards, same as after rebooting the router.
Sponsor
happyantix
DD-WRT Novice


Joined: 15 Jun 2010
Posts: 9

PostPosted: Sat Jun 19, 2010 6:44    Post subject: Reply with quote
any luck getting samba working? heh
Lord Justice
DD-WRT Novice


Joined: 12 Jun 2010
Posts: 5

PostPosted: Sat Jun 19, 2010 7:03    Post subject: Reply with quote
happyantix wrote:
any luck getting samba working? heh


No. In fact I returned the TP-Link router to the store today and have gone back to my trusty Airlink 101, so I won't be checking on this thread or replying any more.

Best of luck to anyone else trying to get optware working on Atheros based hardware.
happyantix
DD-WRT Novice


Joined: 15 Jun 2010
Posts: 9

PostPosted: Sat Jun 19, 2010 7:22    Post subject: Reply with quote
the store i bought mine from does not accept returns :/

I was wondering if this guide would work?

http://wrt160nl.org/tutoeng.html

Its for a linksys wrt160nl but the specs are similar:


WRT160NL ar71xx Atheros AR9130 Atheros AR9100 (integrated)


and the TP-Link:
TL-WR1043ND ar71xx Atheros AR9132 Atheros AR9100 (integrated)


Or am i missing something completely because i am fairly noobish at this Smile
teixeirap
DD-WRT Novice


Joined: 27 Apr 2010
Posts: 21

PostPosted: Mon Jun 21, 2010 15:34    Post subject: Reply with quote
happyantix wrote:
the store i bought mine from does not accept returns :/

I was wondering if this guide would work?

http://wrt160nl.org/tutoeng.html

Its for a linksys wrt160nl but the specs are similar:


WRT160NL ar71xx Atheros AR9130 Atheros AR9100 (integrated)


and the TP-Link:
TL-WR1043ND ar71xx Atheros AR9132 Atheros AR9100 (integrated)


Or am i missing something completely because i am fairly noobish at this Smile


Nice find actually. I went though the script and it uses one of the same package repositories that I used (backfire/10.03) to install packages on the TPLink 1043ND, that said I believe this script should be able to work just fine on this router if that;s what you are interested in doing.

Unfortunately the samba server it installs is version 2 (which I have working anyway) not version 3.

I want version 3 for it's large file support.

Nice find again
happyantix
DD-WRT Novice


Joined: 15 Jun 2010
Posts: 9

PostPosted: Mon Jun 21, 2010 22:49    Post subject: Reply with quote
couldnt get it working using that guide either.. ended up selling my TP-LINK and ordering an N16 from the USA via a forwaring company for only $20 more.. good luck getting it working to all in this thread!
lscclchan
DD-WRT Novice


Joined: 22 Jun 2010
Posts: 3

PostPosted: Tue Jun 22, 2010 4:29    Post subject: Reply with quote
[quote="happyantix"]the store i bought mine from does not accept returns :/

I was wondering if this guide would work?

http://wrt160nl.org/tutoeng.html

Its for a linksys wrt160nl but the specs are similar:


WRT160NL ar71xx Atheros AR9130 Atheros AR9100 (integrated)


and the TP-Link:
TL-WR1043ND ar71xx Atheros AR9132 Atheros AR9100 (integrated)


Or am i missing something completely because i am fairly noobish at this Smile[/quote]

Thanks for your link. Somehow the guide works for my router TP-link TL-WR1043ND Built 14594. I can now access Transmission (BT client) via 192.168.1.1:9091 and the ftp server.

I simply ran the autoscripts from the guide and everything is ready to go.
happyantix
DD-WRT Novice


Joined: 15 Jun 2010
Posts: 9

PostPosted: Tue Jun 22, 2010 10:25    Post subject: Reply with quote
awesome! glad to hear it was of use to someone,

I will post the link in the main thread for the 1043nd
strubedo
DD-WRT Novice


Joined: 05 Jun 2010
Posts: 34

PostPosted: Tue Jun 22, 2010 21:51    Post subject: Re: My way to install software packages on WZR-HP-G300NH Reply with quote
Luyi wrote:
The Ipkg can't work on this router. Because this router is MIPS. The Ipkg Software source only have mipsel software.
So i want to install Openwrt's package in DD-WRT. But when you download packages and install it. It may be tell you symbol error.
I think DD-WRT and OpenWrt's running library are differnet cause this problem.
I copy OpenWrt's library to /jffs/lib. Then everything is work.
You can install opkg and use this to automatically download software packages from OpenWrt Software Source.

First you need compile openwrt and you can find lib or download my compile version.
copy their to /jffs/lib
Then execute this commands.
"export LD_LIBRARY_PATH=/jffs/lib:/jffs/usr/lib:/jffs/usr/local/lib" (When reboot you need to execute this again.)
"wget http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/opkg_513-1_ar71xx.ipk"
"ipkg install opkg_513-1_ar71xx.ipk"
"vi /jffs/etc/opkg.conf"
Change like this
Code:
src/gz snapshots http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/
dest root /jffs
dest ram /tmp
lists_dir ext /tmp/var/opkg-lists


Now you can use opkg to install software.
Run opkg you need -f /jffs/etc/opkg.conf
Example:"opkg update -f /jffs/etc/opkg.conf"

I use it to install transmission runs very well.
But i can't use it install samba3.


Where can I find your compile? Also could you give me some step by step assitance?
dstahlke
DD-WRT Novice


Joined: 23 Jun 2010
Posts: 4

PostPosted: Wed Jun 23, 2010 8:13    Post subject: Reply with quote
Here is what I did to get it working.

The OpenWrt libs can come from here:
http://downloads.x-wrt.org/xwrt/kamikaze/snapshots/ar71xx/default/openwrt-ar71xx-generic-rootfs.tar.gz
There is another possibility (I don't know the difference):
http://downloads.x-wrt.org/xwrt/kamikaze/snapshots/ar71xx/default/openwrt-ar71xx-rootfs.tar.gz

Extract that archive (I did this on my computer, you can probably do it on your router).
Transfer "lib" from archive to /jffs/lib on router.

export LD_LIBRARY_PATH=/jffs/lib:/jffs/usr/lib:/jffs/usr/local/lib

cd /jffs
wget http://downloads.x-wrt.org/xwrt/kamikaze/snapshots/ar71xx/packages/opkg_528-1_ar71xx.ipk
ipkg install opkg_528-1_ar71xx.ipk

For this next step, I took Luyi's instruction but put everything under /jffs, including tmp and var. I hope this is OK, as I am just a noob.

vi /jffs/etc/opkg.conf
Code:

   src/gz snapshots http://downloads.x-wrt.org/xwrt/kamikaze/snapshots/ar71xx/packages
   dest root /jffs
   dest ram /jffs/tmp
   lists_dir ext /jffs/var/opkg-lists
   #option overlay_root /overlay


opkg -f /jffs/etc/opkg.conf update
Now install a package to see if it works:
opkg -f /jffs/etc/opkg.conf install nmap
nmap (you should get nmap's help page)

I haven't tried samba, transmission or any of those "big" packages.
dstahlke
DD-WRT Novice


Joined: 23 Jun 2010
Posts: 4

PostPosted: Wed Jun 23, 2010 9:41    Post subject: Reply with quote
This also appears to be needed (or else installing bash complains about not being able to write to /etc/shells):

export IPKG_INSTROOT=/jffs
s4tch
DD-WRT Novice


Joined: 07 Jun 2010
Posts: 4

PostPosted: Wed Jun 23, 2010 13:26    Post subject: Reply with quote
happyantix wrote:
I was wondering if this guide would work?

http://wrt160nl.org/tutoeng.html


Yes, it seems to work on TP-LINK 1043ND. I just have a little problem in transmission. I'm getting the following message:

Code:
"Error: Read-only file system"


I'm not a linux expert, I have no idea what to do with it. I'm using an ext3 formatted USB flash drive, and of course, it is not write protected. I got a guess on an other board, but changing preallocation value from 1 to 2 in config.json did not help. Any idea?
teixeirap
DD-WRT Novice


Joined: 27 Apr 2010
Posts: 21

PostPosted: Wed Jun 23, 2010 17:09    Post subject: Reply with quote
s4tch wrote:
happyantix wrote:
I was wondering if this guide would work?

http://wrt160nl.org/tutoeng.html


Yes, it seems to work on TP-LINK 1043ND. I just have a little problem in transmission. I'm getting the following message:

Code:
"Error: Read-only file system"


I'm not a linux expert, I have no idea what to do with it. I'm using an ext3 formatted USB flash drive, and of course, it is not write protected. I got a guess on an other board, but changing preallocation value from 1 to 2 in config.json did not help. Any idea?


Check if the drive is mounted as read-only (run mount on command line). If it shows are readonly there is your problem.

Now if you are mounting correctly in your startup scripts as read-write and you see after a while that the mounted drive is changing to read-only, check dmesg and look to see if there were any errors stating for instance that the volume is dirty and the kernel is remounting as read only.

Check to see if the problem is with your USB drive spinning-down (power-saving mode) if so, see http://www.dd-wrt.com/wiki/index.php/USB_storage (search for section Prevent Harddisk Spindown). I prefer another method which doesn't prevent spindown but works with it instead, see my post in the following thread: http://www.dd-wrt.com/phpBB2/viewtopic.php?t=57799
s4tch
DD-WRT Novice


Joined: 07 Jun 2010
Posts: 4

PostPosted: Thu Jun 24, 2010 7:47    Post subject: Reply with quote
teixeirap wrote:
Check to see if the problem is with your USB drive spinning-down (power-saving mode)


Thanks for your answer. I'm using a flash drive, so spinning-down cannot be an issue.

I'll check possible mounting problems the way you wrote.

EDIT: volume is 'rw', still trasmission sees it as read-only.

And that's what I get for dmesg:

Code:
<5>sd 0:0:0:0: [sda] 4005888 512-byte hardware sectors (2051 MB)
<5>sd 0:0:0:0: [sda] Write Protect is off
<7>sd 0:0:0:0: [sda] Mode Sense: 00 26 00 00
<3>sd 0:0:0:0: [sda] Assuming drive cache: write through
<5>sd 0:0:0:0: [sda] 4005888 512-byte hardware sectors (2051 MB)
<5>sd 0:0:0:0: [sda] Write Protect is off
<7>sd 0:0:0:0: [sda] Mode Sense: 00 26 00 00
<3>sd 0:0:0:0: [sda] Assuming drive cache: write through
<5>sd 0:0:0:0: [sda] Attached SCSI removable disk


These are my startup commands, as written in the guide:

Code:
sleep 5
mount /dev/scsi/host0/bus0/target0/lun0/part1 /mnt/
mount /mnt/etc /etc
mount /mnt/bin /bin
mount /mnt/dev /dev
mount /mnt/lib /lib
mount /mnt/usr /usr
mount /mnt/tmp /tmp
mount /mnt/jffs /jffs
sleep 3
/bin/sh /mnt/etc/rc.transmission
/bin/sh /mnt/etc/rc.pureftpd
teixeirap
DD-WRT Novice


Joined: 27 Apr 2010
Posts: 21

PostPosted: Thu Jun 24, 2010 15:58    Post subject: Reply with quote
s4tch wrote:
teixeirap wrote:
Check to see if the problem is with your USB drive spinning-down (power-saving mode)


Thanks for your answer. I'm using a flash drive, so spinning-down cannot be an issue.

I'll check possible mounting problems the way you wrote.

EDIT: volume is 'rw', still trasmission sees it as read-only.

And that's what I get for dmesg:

Code:
<5>sd 0:0:0:0: [sda] 4005888 512-byte hardware sectors (2051 MB)
<5>sd 0:0:0:0: [sda] Write Protect is off
<7>sd 0:0:0:0: [sda] Mode Sense: 00 26 00 00
<3>sd 0:0:0:0: [sda] Assuming drive cache: write through
<5>sd 0:0:0:0: [sda] 4005888 512-byte hardware sectors (2051 MB)
<5>sd 0:0:0:0: [sda] Write Protect is off
<7>sd 0:0:0:0: [sda] Mode Sense: 00 26 00 00
<3>sd 0:0:0:0: [sda] Assuming drive cache: write through
<5>sd 0:0:0:0: [sda] Attached SCSI removable disk


These are my startup commands, as written in the guide:

Code:
sleep 5
mount /dev/scsi/host0/bus0/target0/lun0/part1 /mnt/
mount /mnt/etc /etc
mount /mnt/bin /bin
mount /mnt/dev /dev
mount /mnt/lib /lib
mount /mnt/usr /usr
mount /mnt/tmp /tmp
mount /mnt/jffs /jffs
sleep 3
/bin/sh /mnt/etc/rc.transmission
/bin/sh /mnt/etc/rc.pureftpd


The last thing I can think of is to check if the user that transmission runs as has write permissions to the folders it uses or trying to use.

use 'ps' to see what user transmission is running as and 'ls -l' on the directories/folders to check permissions use 'chmod' to change them if needed
Goto page Previous  1, 2, 3, 4, 5  Next Display posts from previous:    Page 4 of 5
Post new topic   Reply to topic    DD-WRT Forum Index -> Atheros WiSOC 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