1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

custom firmware for WRT350n V2

Discussion in 'Other Firmware Projects' started by sconk, May 20, 2008.

  1. sconk

    sconk Network Guru Member

    Hi i have now one more time spendt some time on building a firmware for the wrt350n

    This time i have done som more testing and made support for fonz fun_plug whits is a addon for the D-Link DNS-323 NAS whit support for transmission/cluch, lighttpd, mysql, php.

    What you have to do is have a usb disk whit one fat32 partition name it disk or something and one whit ext2

    The download the firmware image from http://home.sconk.se/fun_plug-fw/WRT350N-EU-ETSI-2.00.17.img.zip

    Place the fun_plug file in the fat32 share
    download fun_plug.tgz from http://www.inreto.de/dns323/fun-plug/0.5/

    And put that in the fat32 also.
    now upload the firmware in the firmware upgrade menu and you will have telnet running and can start playing.

    If you need help just write in the topic and i will try take the time to help :)
     
  2. ditansu

    ditansu Addicted to LI Member

    Thank you Sconk for your grate job but I have the troubles with your solution:
    I do:
    1) Download all what you said.
    2) Restore factory settings for wrt350n V2
    3) Format Western Digital storage into fat32 format.
    4) Attach WD to wrt350n
    5) Write name for WD “BOOK1”
    6) Create a new ‘share’ with name “disk”
    7) Copy fun_plug and fun_plug.tgz into this share
    8) Upgrade image on ‘WRT350N-fun_plug.img’
    9) For any case reload WRT350N
    10) Scan wrt’s IP-address (192.168.1.1.) and see only three open ports: 80(http), 139 (ntbios-ssn), 445 (microsoft-ds)
    I can’t connect to 23 or 33 port and no any new files on storage. However all standard possibilities are presenting.
    I have two questions:
    What I do wrong?
    Into fun_plug you write this command: ‘mount /dev/sda3 /share/sda3’, are you sure that storage it is /dev/sda3 ??? maybe it is sda1 or sda2?
     
  3. shadysandman

    shadysandman Addicted to LI Member

    I too am having trouble?

    Hi,

    I formatted my HDD as you said 1x FAT32 partition for the shared drive and another which was formatted EXT2. Copied the fun_plug file and the .tgz file to my FAT32 partition flashed with your updated firmware as described but I donot have a telnet session started. For some reason the script appeared to unpack the .tgz to the FAT32 share as I can view all the files.

    I assume this is to be the problem as to why it is unable to launch the telnet session. I know generally speaking a drive prefixed by sd ie(sda1) is usually a sata drive. My USB enclosure contains an PATA drive so I would figure it maybe something like hda1. Is this likely to be the root of the problem. But again thanks for the script, really would love to get it working though :confused:
     
  4. sconk

    sconk Network Guru Member

    try change sda3 to sda1 or sda2

    im on vacation right now i will try make a firmware that can print som info about what to use later this week
     
  5. shadysandman

    shadysandman Addicted to LI Member

    hmmm, I have tried sda1 and sda2. Neither seems to work. The only thing that occurs after rebooting the router is a log file drops into the samba share stating that date: applet cannot be found.
     
  6. sconk

    sconk Network Guru Member

  7. shadysandman

    shadysandman Addicted to LI Member

    I have read up on busybox a bit and it seems to me that busybox is attempting to use the date (applet) and it isn't able to find it. Anyway I shall try this new firmware when I arrive home tonight and post the log back. This is a piece from the log after using your initial firmware.

    date: applet not found
    mount --bind /share/sda1/ffp /ffp
    chown: applet not found
    chmod: /ffp/bin/busybox: Operation not permitted
    * Running /ffp/etc/rc ...
    /tmp/share/MYHD/fun_plug: /tmp/share/MYHD/fun_plug: 56: /ffp/etc/rc: not found
    * OK
    **** fun_plug script for DNS-323 (2008-04-13 tp@fonz.de) ****
    date: applet not found
    mount --bind /share/sda1/ffp /ffp
    chown: applet not found
    chmod: /ffp/bin/busybox: Operation not permitted
    * Running /ffp/etc/rc ...
    /tmp/share/MYHD/fun_plug: /tmp/share/MYHD/fun_plug: 56: /ffp/etc/rc: not found
     
  8. shadysandman

    shadysandman Addicted to LI Member

    My Log

    lun 0
    usb-storage: device scan complete
    device eth0 entered promiscuous mode
    br0: port 1(eth0) entering learning state
    br0: topology change detected, propagating
    br0: port 1(eth0) entering forwarding state
    lock init
    create wsc_cfb entry
    create wsc_cfb entry
    create wsc_iechange entry
    create wsc_userset entry
    ath_hal: 0.9.14.25 (AR5416, DEBUG)
    wlan: 0.8.4.2 (Atheros/multi-bss)
    ath_rate_atheros: Version 2.0.1
    Copyright (c) 2001-2004 Atheros Communications, Inc, All Rights Reserved
    ath_dfs: Version 2.0.0
    Copyright (c) 2005-2006 Atheros Communications, Inc. All Rights Reserved
    ath_pci: 0.9.4.5 (Atheros/multi-bss)
    Chan Freq RegPwr HT CTL CTL_U CTL_L DFS
    1 2412n 20 HT20 1 0 1 N
    1 2412n 20 HT40 1 0 1 N
    2 2417n 20 HT40 1 0 1 N
    3 2422n 20 HT40 1 1 1 N
    4 2427n 20 HT40 1 1 1 N
    5 2432n 20 HT40 1 1 1 N
    6 2437n 20 HT40 1 1 1 N
    7 2442n 20 HT40 1 1 1 N
    8 2447n 20 HT40 1 1 1 N
    9 2452n 20 HT40 1 1 1 N
    10 2457n 20 HT40 1 1 1 N
    11 2462n 20 HT40 1 1 1 N
    12 2467n 20 HT40 1 1 0 N
    13 2472n 20 HT40 1 1 0 N
    register_simple_config_callback called
    wifi0: 11ng rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
    wifi0: 11ng MCS: 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15
    wifi0: mac 13.2 phy 8.1 radio 13.0
    wifi0: Use hw queue 1 for WME_AC_BE traffic
    wifi0: Use hw queue 0 for WME_AC_BK traffic
    wifi0: Use hw queue 2 for WME_AC_VI traffic
    wifi0: Use hw queue 3 for WME_AC_VO traffic
    wifi0: Use hw queue 8 for CAB traffic
    wifi0: Use hw queue 9 for beacons
    wifi0: Atheros 5416 PCI: mem=0xe8000000, irq=36 hw_base=0xc2860000
    ar5416SetPowerPerRateTable() syn 2412 ctl 2412 ext 2412 is40 0
    6mb OFDM 16.0 dBm | 9mb OFDM 16.0 dBm | 12mb OFDM 16.0 dBm | 18mb OFDM 16.0 dBm
    24mb OFDM 16.0 dBm | 36mb OFDM 16.0 dBm | 48mb OFDM 16.0 dBm | 54mb OFDM 15.0 dBm
    1L CCK 16.0 dBm | 2L CCK 16.0 dBm | 2S CCK 16.0 dBm | 5.5L CCK 16.0 dBm
    5.5S CCK 16.0 dBm | 11L CCK 16.0 dBm | 11S CCK 16.0 dBm | XR 16.0 dBm
    HT20mcs 0 16.0 dBm | HT20mcs 1 16.0 dBm | HT20mcs 2 16.0 dBm | HT20mcs 3 16.0 dBm
    HT20mcs 4 16.0 dBm | HT20mcs 5 16.0 dBm | HT20mcs 6 13.0 dBm | HT20mcs 7 6.0 dBm
    HT40mcs 0 0.0 dBm | HT40mcs 1 0.0 dBm | HT40mcs 2 0.0 dBm | HT40mcs 3 0.0 dBm
    HT40mcs 4 0.0 dBm | HT40mcs 5 0.0 dBm | HT40mcs 6 0.0 dBm | HT40mcs 7 0.0 dBm
    Dup CCK 0.0 dBm | Dup OFDM 0.0 dBm | Ext CCK 0.0 dBm | Ext OFDM 0.0 dBm
    2xAntennaReduction: 0, 2xMaxRegulatory: 40, 2xPowerLimit: 60
    2xMaxPowerLevel: 32 (HT20)
    TPC Enabled 1 1 0
    ar5416SetPowerPerRateTable() syn 2412 ctl 2412 ext 2412 is40 0
    6mb OFDM 16.0 dBm | 9mb OFDM 16.0 dBm | 12mb OFDM 16.0 dBm | 18mb OFDM 16.0 dBm
    24mb OFDM 16.0 dBm | 36mb OFDM 16.0 dBm | 48mb OFDM 16.0 dBm | 54mb OFDM 15.0 dBm
    1L CCK 16.0 dBm | 2L CCK 16.0 dBm | 2S CCK 16.0 dBm | 5.5L CCK 16.0 dBm
    5.5S CCK 16.0 dBm | 11L CCK 16.0 dBm | 11S CCK 16.0 dBm | XR 16.0 dBm
    HT20mcs 0 16.0 dBm | HT20mcs 1 16.0 dBm | HT20mcs 2 16.0 dBm | HT20mcs 3 16.0 dBm
    HT20mcs 4 16.0 dBm | HT20mcs 5 16.0 dBm | HT20mcs 6 13.0 dBm | HT20mcs 7 6.0 dBm
    HT40mcs 0 0.0 dBm | HT40mcs 1 0.0 dBm | HT40mcs 2 0.0 dBm | HT40mcs 3 0.0 dBm
    HT40mcs 4 0.0 dBm | HT40mcs 5 0.0 dBm | HT40mcs 6 0.0 dBm | HT40mcs 7 0.0 dBm
    Dup CCK 0.0 dBm | Dup OFDM 0.0 dBm | Ext CCK 0.0 dBm | Ext OFDM 0.0 dBm
    2xAntennaReduction: 0, 2xMaxRegulatory: 40, 2xPowerLimit: 60
    2xMaxPowerLevel: 32 (LEG)
    device ath0 entered promiscuous mode
    wsc_daemon_init
    create wsc_pushbutton entry
    lock_write_proc: count = 260 sizeof(wsc_cfb)=260
    wsc_enable=1
    wsc_context=1
    wsc_version=0x10
    wsc_devcfstat=1
    wsc_admin.role=0
    wsc_admin.pwdMode=1
    wsc_admin.wsc_pin=00000000
    wsc_admin.seesionTimeout=120
    wsc_admin.retransmitTimeout=15
    wsc_admin.retryLimit=300
    wsc_admin.messageTimeout=0
    wsc_admin.configured=0
    wsc_admin.pbcIsRunning=0
    wsc_admin.selectedReg=0
    wsc_admin.selectedRegTime=0
    wsc_admin.selectRegConfigMethod=0
    wsc_admin.selectRegDevPwdId=0
    wsc_admin.selfPbcPressed=0
    wsc_admin.selfPbcPressedTime=0
    wsc_mac=00:1a:70:95:86:d8
    wsc_manfa=LINKSYS
    wsc_ssid=linksys
    wsc_modelname=WRT350Nv2
    wsc_modelnumber=WSC0001
    wsc_serialnumber=0001000004E044
    wsc_devicename=LINKSYS-WRT350Nv2
    wsc_encrytype=8
    lock_write_proc: count = 28 sizeof(wsc_cfb)=28
    role=0
    pwdMode=0
    wsc_context=1
    wsc_iechanged=0
    configured=1
    selectedReg=0
    selectRegConfigMethod=0x00
    selectRegDevPwdId=0x00
    wsc_admin.wsc_pin=00000000
    ar5416SetPowerPerRateTable() syn 2412 ctl 2412 ext 2412 is40 0
    6mb OFDM 16.0 dBm | 9mb OFDM 16.0 dBm | 12mb OFDM 16.0 dBm | 18mb OFDM 16.0 dBm
    24mb OFDM 16.0 dBm | 36mb OFDM 16.0 dBm | 48mb OFDM 16.0 dBm | 54mb OFDM 15.0 dBm
    1L CCK 16.0 dBm | 2L CCK 16.0 dBm | 2S CCK 16.0 dBm | 5.5L CCK 16.0 dBm
    5.5S CCK 16.0 dBm | 11L CCK 16.0 dBm | 11S CCK 16.0 dBm | XR 16.0 dBm
    HT20mcs 0 16.0 dBm | HT20mcs 1 16.0 dBm | HT20mcs 2 16.0 dBm | HT20mcs 3 16.0 dBm
    HT20mcs 4 16.0 dBm | HT20mcs 5 16.0 dBm | HT20mcs 6 13.0 dBm | HT20mcs 7 6.0 dBm
    HT40mcs 0 0.0 dBm | HT40mcs 1 0.0 dBm | HT40mcs 2 0.0 dBm | HT40mcs 3 0.0 dBm
    HT40mcs 4 0.0 dBm | HT40mcs 5 0.0 dBm | HT40mcs 6 0.0 dBm | HT40mcs 7 0.0 dBm
    Dup CCK 0.0 dBm | Dup OFDM 0.0 dBm | Ext CCK 0.0 dBm | Ext OFDM 0.0 dBm
    2xAntennaReduction: 0, 2xMaxRegulatory: 40, 2xPowerLimit: 60
    2xMaxPowerLevel: 32 (HT20)
    TPC Enabled 1 1 0
    Force rf_pwd_icsyndiv to 1 on 2412 (1 2)
    ath_newstate: Resetting VAP dfswait_run
    ath_newstate: Resetting VAP dfswait_run
    ar5416SetPowerPerRateTable() syn 2437 ctl 2427 ext 2447 is40 1
    6mb OFDM 16.0 dBm | 9mb OFDM 16.0 dBm | 12mb OFDM 16.0 dBm | 18mb OFDM 16.0 dBm
    24mb OFDM 16.0 dBm | 36mb OFDM 16.0 dBm | 48mb OFDM 16.0 dBm | 54mb OFDM 15.0 dBm
    1L CCK 16.0 dBm | 2L CCK 16.0 dBm | 2S CCK 16.0 dBm | 5.5L CCK 16.0 dBm
    5.5S CCK 16.0 dBm | 11L CCK 16.0 dBm | 11S CCK 16.0 dBm | XR 16.0 dBm
    HT20mcs 0 16.0 dBm | HT20mcs 1 16.0 dBm | HT20mcs 2 16.0 dBm | HT20mcs 3 16.0 dBm
    HT20mcs 4 16.0 dBm | HT20mcs 5 16.0 dBm | HT20mcs 6 13.0 dBm | HT20mcs 7 6.0 dBm
    HT40mcs 0 16.0 dBm | HT40mcs 1 16.0 dBm | HT40mcs 2 16.0 dBm | HT40mcs 3 16.0 dBm
    HT40mcs 4 16.0 dBm | HT40mcs 5 16.0 dBm | HT40mcs 6 13.0 dBm | HT40mcs 7 6.0 dBm
    Dup CCK 16.0 dBm | Dup OFDM 16.0 dBm | Ext CCK 16.0 dBm | Ext OFDM 16.0 dBm
    2xAntennaReduction: 0, 2xMaxRegulatory: 40, 2xPowerLimit: 60
    2xMaxPowerLevel: 32 (HT40)
    TPC Enabled 1 1 0
    Force rf_pwd_icsyndiv to 2 on 2437 (1 2)
    ath_chan_set: Changing to channel 2427, Flags 30080, PF 0
    make a wpa2 ie :

    30 <1>14 <1>01 <1>00 <1>00 <1>0f <1>ac <1>04 <1>01 <1>00 <1>00 <1>0f <1>ac <1>04 <1>01 <1>00
    00 <1>0f <1>ac <1>02 <1>00 <1>00 <1>make a wpa ie :

    dd <1>16 <1>00 <1>50 <1>f2 <1>01 <1>01 <1>00 <1>00 <1>50 <1>f2 <1>04 <1>01 <1>00 <1>00 <1>50
    f2 <1>04 <1>01 <1>00 <1>00 <1>50 <1>f2 <1>02 <6>br0: port 2(ath0) entering learning state
    br0: topology change detected, propagating
    br0: port 2(ath0) entering forwarding state
    download uses obsolete (PF_INET,SOCK_PACKET)
    FAT: utf8 is not a recommended IO charset for FAT filesystems, filesystem will be case sensitive!
    HTB: quantum of class 10001 is big. Consider r2q change.
    HTB: quantum of class 10010 is big. Consider r2q change.
    HTB: quantum of class 10001 is big. Consider r2q change.
    HTB: quantum of class 10010 is big. Consider r2q change.
    device eth1 entered promiscuous mode
    device br0 entered promiscuous mode
     
  9. sconk

    sconk Network Guru Member

    looks like you not have a disk connected.

    i gets something like
    Vendor: SAMSUNG Model: SP2504C Rev:
    Type: Direct-Access ANSI SCSI revision: 02
    SCSI device sda: 488395055 512-byte hdwr sectors (250058 MB)
    sdkp->device->removable = 0
    sda: assuming drive cache: write through
    SCSI device sda: 488395055 512-byte hdwr sectors (250058 MB)
    sdkp->device->removable = 0
    sda: assuming drive cache: write through
    sda: sda1 sda2 sda4
    Attached scsi disk sda at scsi0, channel 0, id 0, lun 0
    usb-storage: device scan complete
     
  10. shadysandman

    shadysandman Addicted to LI Member

    Cheers for that, I thought along the same lines after seeing the log. It might be a dodgy controller in the case. I have another drive which I will try out.. It does seem strange thats I can view the HDD via Samba/Ftp though.
     
  11. sconk

    sconk Network Guru Member

    try restart the router. and see if it works then.
     
  12. shadysandman

    shadysandman Addicted to LI Member

    The plot thickens, the only way I get the router to detect the HDD immediately at boot is to unplug the WAN. The ammended logs show this.

    SCSI device sda: 312581808 512-byte hdwr sectors (160042 MB)
    sdkp->device->removable = 0
    sda: assuming drive cache: write through
    SCSI device sda: 312581808 512-byte hdwr sectors (160042 MB)
    sdkp->device->removable = 0
    sda: assuming drive cache: write through
    sda: sda1 sda2 < sda5 >
    Attached scsi disk sda at scsi0, channel 0, id 0, lun 0
    usb-storage: device scan complete
    br0: port 1(eth0) entering learning state
    br0: topology change detected, propagating
    br0: port 1(eth0) entering forwarding state
    lock init

    Which is as it should be, sda1 which is fat32 and sda2 which is ext2, dunno what the <sda5> business is I only have two partitions on here. What happens now is that even with my WAN unplugged the router stops responding. Left it for 25minutes and it was still hung couldn't access Samba/FTP or web interface...... Just doesnt appear to be doing anything.
     
  13. shadysandman

    shadysandman Addicted to LI Member

    restarted multiple times too just does the same thing
     
  14. shadysandman

    shadysandman Addicted to LI Member

    Progress --

    Plugin installed now re_partitioned to remove that <sda5> leaving sda1 and sda2.

    Have a couple errors in the ffp.log as noted below:

    **** fun_plug script for DNS-323 (2008-04-13 tp@fonz.de) ****
    mount --bind /share/sda2/ffp /ffp
    mount: Mounting /share/sda2/ffp on /ffp failed: No such file or directory
    * Installing /share/DISK/fun_plug.tgz ...
    .
    bin
    bin/busybox
    bin/install-busybox-links.sh
    bin/[
    bin/[[
    bin/addgroup
    bin/adduser
    bin/ar
    bin/arping
    bin/ash
    bin/awk
    bin/basename
    bin/bbconfig
    bin/bunzip2
    bin/bzcat
    bin/bzip2
    bin/cal
    bin/cat
    bin/catv
    bin/chgrp
    bin/chmod
    bin/chown
    bin/chrt
    bin/chvt
    bin/cksum ...........
    And
    tmp
    libexec
    libexec/ssh-keysign
    libexec/sftp-server
    * OK
    /ffp/etc/rc: Not found or not executable

    But this is still progress, no more hanging router.
     
  15. sconk

    sconk Network Guru Member

    i will look at it later today im at work right now it looks like i have the same probelms after i formated my drive.
     
  16. shadysandman

    shadysandman Addicted to LI Member

    Rebooted and now it appears to be starting. Only slight problem is that chown seems not to be found.... But from what I can tell it seems telnetd is started.

    mount --bind /share/sda2/ffp /ffp
    chown: applet not found
    * Running /ffp/etc/rc ...
    * /ffp/start/rcS.sh ...
    chmod: /dev/tty: Read-only file system
    chmod: /dev/null: Read-only file system
    groupadd: unable to lock group file
    chgrp: unknown group name: utmp
    * /ffp/start/adjtimex.sh inactive
    * /ffp/start/passwd.sh ...
    Saving /etc/passwd to /etc/passwd.orig ...
    cp: cannot create '/etc/passwd.orig': Read-only file system
    Changing shells: /bin/sh -> /ffp/bin/sh ...
    sed: cannot create temp file /etc/passwdfcJsrv: Read-only file system
    Updating /etc/shadow ...
    pwconv: can't lock passwd file
    * /ffp/start/shells.sh ...
    grep: /etc/shells: No such file or directory
    /ffp/start/shells.sh: line 30: cannot create /etc/shells: Read-only file system
    grep: /etc/shells: No such file or directory
    /ffp/start/shells.sh: line 30: cannot create /etc/shells: Read-only file system
    * /ffp/start/syslogd.sh inactive
    * /ffp/start/SERVERS.sh inactive
    * /ffp/start/usbdisk.sh inactive
    * /ffp/start/portmap.sh inactive
    * /ffp/start/unfsd.sh inactive
    * /ffp/start/nfsd.sh inactive
    * /ffp/start/ntpd.sh inactive
    * /ffp/start/LOGIN.sh inactive
    * /ffp/start/telnetd.sh ...
    Starting /ffp/sbin/telnetd -l /ffp/bin/sh
    * /ffp/start/sshd.sh inactive
    * /ffp/start/rsyncd.sh inactive
    * /ffp/start/mediatomb.sh inactive
    * /ffp/start/kickwebs.sh inactive
    * /ffp/start/lighttpd.sh inactive
    * /ffp/start/inetd.sh inactive
    * OK
     
  17. shadysandman

    shadysandman Addicted to LI Member

    ditansu, You noted that you created a FAT32 partition but you have no ext2(Linux) partition mentioned. You need to have that partition for the script to unpack and install the linux executable files to.
     
  18. shadysandman

    shadysandman Addicted to LI Member

    After all the trial and error, I have got this firmware working. Have got lighttpd and mysqld going. Cannot figure out the PHP side of things though.
    The normal scripts cannot install updates due to the flash mem being read only, no file permissions are able to be changed etc.
     
  19. sconk

    sconk Network Guru Member

    no there are some issuses whit the flash system is not the same as the dlink dns-323 where it got the scripts from.

    i have just made it to get lighttpd and transmission to work
     
  20. ditansu

    ditansu Addicted to LI Member

    Yes I have already seen it but no have time for try once more. In fact I'd like get a web torrent client, How you think it is realy start a torrent client on this device ?
     
  21. ditansu

    ditansu Addicted to LI Member

    Could you describe step-by-step, what you did for success?
     
  22. tszyman1

    tszyman1 Network Guru Member

    Guys,

    In the meantime I wrote Linksys support and gave them an info about my router working very unstable. They have sent me the new firmware 2.00.19. I works slighly better but it also hangs sometimes.
     
  23. shadysandman

    shadysandman Addicted to LI Member

    Hmmm, I managed to acquire an old laptop of which I have now setup Debian and serve my torrents and more off of that. The router just does what it knows (Routing),
    However I did manage to chroot Debian onto the router after using this fun_plug technique.

    Still there were some things it was unable to do due to the architecture of the router, hence I have now resolved to using external hardware..... :halo:
     
  24. shadysandman

    shadysandman Addicted to LI Member

    Howto

    1. Download this http://home.sconk.se:8080/fun_plug-fw/WRT350N-EU-ETSI-2.00.17.img.zip
    2. Download the fun_plug.tgz
    3. Now for the fun part, Partition HDD two primary partitions, one FAT32 named disk and the other for fun_plug formatted in EXT2 (Linux File System).
    4. Copy fun_plug file from sconk's firmware to the root of the FAT32 partition.
    5. Copy the fun_plug.tgz file to the root of the FAT32 partition also.
    6. Upgrade the routers firmware with Sconk's firmware. If you use the router externally on the WAN then disconnect your internet(WAN) cable.

    The above is very important as the router doesn't load the Harddrive at boot if the WAN is connected, don't ask me why but thats how it is....

    When the router reboots it shall load the fun_plug script and you will then be able to telnet onto the router.
     
  25. shadysandman

    shadysandman Addicted to LI Member

    Once all of the above has been completed then you should now be able to have some fun experimenting with it.
     
  26. shadysandman

    shadysandman Addicted to LI Member

  27. ditansu

    ditansu Addicted to LI Member

  28. ladril

    ladril Guest

    Ok i managed right all the steps. What are my possibilities now? Someone can explain me what i can do? Thanks a lot :D

    Tommy

    P.S. Anyone tested the new beta one?? i think 2.0.0.19.
     
  29. DrTronic

    DrTronic Addicted to LI Member

  30. sconk

    sconk Network Guru Member

    i might have it somewhere :)
     
  31. sconk

    sconk Network Guru Member

  32. DrTronic

    DrTronic Addicted to LI Member

    Thank you for the URL, works like a charm!
     
  33. shadysandman

    shadysandman Addicted to LI Member

  34. kmper

    kmper LI Guru Member

    anyone post the fun_plug file, plz?
    the file from http://www.inreto.de/dns323/fun-plug/0.5/ doesn't work.


    #!/bin/sh

    # switch to safe working directory on ramdisk
    cd /

    # write a log, in case sth goes wrong
    FFP_LOG=/mnt/HD_a2/ffp.log
    #FFP_LOG=/dev/null
    exec >>$FFP_LOG 2>&1

    # real path to ffp
    FFP_PATH=/mnt/HD_a2/ffp

    # where to search for the install tarball
    FFP_TARBALL=/mnt/HD_a2/fun_plug.tgz

    # setup script (used for ffp on USB disk)
    FFP_SETUP_SCRIPT=/mnt/HD_a2/.bootstrap/setup.sh

    # rc file path
    FFP_RC=/ffp/etc/rc


    echo "**** fun_plug script for DNS-323 (2008-08-11 tp@fonz.de) ****"
    date


    # check for setup script. an example use for this is to load USB
    # kernel modules and mount a USB storage device. The script is
    # sourced, that means you can change variables, e.g. FFP_PATH to point
    # to the USB device.
    if [ -x $FFP_SETUP_SCRIPT ]; then
    echo "* Running $FFP_SETUP_SCRIPT ..."
    . $FFP_SETUP_SCRIPT
    fi

    # create /ffp link
    echo "ln -snf $FFP_PATH /ffp"
    ln -snf $FFP_PATH /ffp

    # install tarball
    if [ -r $FFP_TARBALL ]; then
    echo "* Installing $FFP_TARBALL ..."
    mkdir -p $FFP_PATH && tar xzf $FFP_TARBALL -C $FFP_PATH && /ffp/bin/tar xzf $FFP_TARBALL -C $FFP_PATH
    if [ $? -eq 0 ]; then
    echo "* OK"
    fi
    rm $FFP_TARBALL
    fi

    # suid busybox
    if [ -x /ffp/bin/busybox ]; then
    chown root.root /ffp/bin/busybox
    chmod 0755 /ffp/bin/busybox
    chmod u+s /ffp/bin/busybox
    fi

    # run fun_plug.init, if present
    if [ -x /ffp/etc/fun_plug.init ]; then
    echo "* Running /ffp/etc/fun_plug.init ..."
    /ffp/etc/fun_plug.init
    fi

    # run fun_plug.local, if present
    if [ -x /ffp/etc/fun_plug.local ]; then
    echo "* Running /ffp/etc/fun_plug.local ..."
    /ffp/etc/fun_plug.local
    fi

    # run commands
    if [ -x $FFP_RC ]; then
    echo "* Running $FFP_RC ..."
    $FFP_RC
    echo "* OK"
    else
    echo "$FFP_RC: Not found or not executable"
    fi
     
  35. kmper

    kmper LI Guru Member

    i found one




    #!/bin/sh

    #mount ext2 disk
    mkdir /share/sda3
    mount /dev/sda3 /share/sda3

    # write a log, in case sth goes wrong
    FFP_LOG=/share/sda3/ffp.log
    exec >>$FFP_LOG 2>&1

    # real path to ffp
    FFP_PATH=/share/sda3/ffp

    # prefix used to compile ffp packages
    FFP_PREFIX=/ffp

    eval $(nvram get partition_name)

    # where to search for the install tarball
    FFP_TARBALL=/share/$name/fun_plug.tgz

    # rc file path
    FFP_RC=$FFP_PREFIX/etc/rc

    echo "**** fun_plug script for DNS-323 (2008-04-13 tp@fonz.de) ****"
    date

    # first, create FFP_PREFIX link
    echo "mount --bind $FFP_PATH $FFP_PREFIX"
    mount --bind $FFP_PATH $FFP_PREFIX

    # install tarball
    if [ -r $FFP_TARBALL ]; then
    echo "* Installing $FFP_TARBALL ..."
    mkdir -p $FFP_PATH && tar xzvf $FFP_TARBALL -C $FFP_PATH
    if [ $? -eq 0 ]; then
    echo "* OK"
    fi
    rm $FFP_TARBALL
    fi

    # suid busybox
    if [ -x $FFP_PREFIX/bin/busybox ]; then
    chown root.root $FFP_PREFIX/bin/busybox
    chmod 0755 $FFP_PREFIX/bin/busybox
    chmod u+s $FFP_PREFIX/bin/busybox
    fi

    # run commands
    if [ -x $FFP_RC ]; then
    echo "* Running $FFP_RC ..."
    $FFP_RC
    echo "* OK"
    else
    echo "$FFP_RC: Not found or not executable"
    fi
     
  36. kmper

    kmper LI Guru Member

    but it doesn't work.

    it seems like that the fw can't find my ext2 partition.i just do it step-by-step.

    1. Download this http://home.sconk.se:8080/fun_plug-f....00.17.img.zip
    2. Download the fun_plug.tgz
    3. Now for the fun part, Partition HDD two primary partitions, one FAT32 named disk and the other for fun_plug formatted in EXT2 (Linux File System).
    4. Copy fun_plug file from sconk's firmware to the root of the FAT32 partition.
    5. Copy the fun_plug.tgz file to the root of the FAT32 partition also.
    6. Upgrade the routers firmware with Sconk's firmware. If you use the router externally on the WAN then disconnect your internet(WAN) cable.

    The above is very important as the router doesn't load the Harddrive at boot if the WAN is connected, don't ask me why but thats how it is....

    When the router reboots it shall load the fun_plug script and you will then be able to telnet onto the router.
     
  37. kmper

    kmper LI Guru Member

    with new fw ,WRT350N-EU-ETSI-2.00.19.img


    ~ # fdisk -l

    Disk /dev/sda: 2040 MB, 2040528896 bytes
    255 heads, 63 sectors/track, 248 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes

    Device Boot Start End Blocks Id System
    /dev/sda1 1 32 257008+ b Win95 FAT32
    /dev/sda2 33 248 1735020 83 Linux
    ~ #



    ~ # mkdir /tmp/sd
    ~ # mount /dev/sda2 /tmp/sd
    mount: Mounting /dev/sda2 on /tmp/sd failed: Invalid argument
    ~ # mount /dev/sda2 /tmp/sd -t ext2
    mount: Mounting /dev/sda2 on /tmp/sd failed: No such device
     
  38. kmper

    kmper LI Guru Member

    it works now ,thanks.
     
  39. kmper

    kmper LI Guru Member

    i met the same err, how to fix it ?
     
  40. kmper

    kmper LI Guru Member

    i tried all the firmwares.
    only this one from http://upit.jtw.dk/dl/dw1/ works,but there is not any fun_plug file ,nor ffp folder in the fireware.

    mount --bind /share/sda2/ffp /ffp
    mount: Mounting /share/sda2/ffp on /ffp failed: No such file or directory


    with other firmwares i can't have telnet runnning.
     
  41. joelang6126

    joelang6126 Addicted to LI Member

    Twonky Server on WRT350N

    Hi Guys

    Is it possible to install Twonky media serve on WRT350N V2.0, if so how ould I go about it?
     
  42. shadysandman

    shadysandman Addicted to LI Member

  43. the_one.89

    the_one.89 Guest

    2TB HDD (NTFS) Support?

    I'm new in this forum, so first of all: Hi everybody!!!

    I hope this is the right place for a question, if not sorry...

    I have a problem, my WRT350n v2 does not detect my attached USB HDD.
    I tried it with FAT32 and NTFS filesystem, but both was not working.

    I asked the linksys support, they told me the router can only use HDDs up to 500GB.
    So I formated the disk with multiple partitions (less than 500GB) only for testing... the router accepted the disk but NTFS only with Read-only-access, and in FAT32-partitions i had the write-permissions only in the root-folders.

    And here's my question:
    Is it possible (with a custom firmware) to use the 2TB disk correct with full read/write-permissions. I would prefer a filesystem without a filesize limitation of 4GB :wink:

    (sorry for my bad english)
     

Share This Page