Page 1 of 2 12 LastLast
Results 1 to 15 of 17

Thread: Additional packages and Asus fw 1.8.1.9

  1. #1

    Question Additional packages and Asus fw 1.8.1.9

    Is it possible to use the additional packages provided on the phpwiki pages whith official firmware?

    I mean... using the init script option present at "USB Application - FTP Server" menu?

  2. #2
    Join Date
    Apr 2004
    Location
    Netherlands
    Posts
    1,308
    Yes, some of the additional packages can be used on official Asus firmwares. Other features can't be used because it requires kernel options or other customized packages in the firmware which are not present in the official ones.

    Copy for example the complete busybox to an attached USB stick/drive and you can start using the http server. Use the BootCmd's for setting the http daemon up.

  3. #3
    Quote Originally Posted by Styno
    Copy for example the complete busybox to an attached USB stick/drive and you can start using the http server. Use the BootCmd's for setting the http daemon up.
    Thanks for your repply... but it's still a little bit confuse for me ;-)

    > Must the usb stick be formatted in ext2 fs? If yes, is it possible from other os than linux... like win xp?
    > Do busybox and script files have to be stored in dedicated folders? If yes, which ones?

  4. #4
    Join Date
    Apr 2004
    Location
    Netherlands
    Posts
    1,308
    Quote Originally Posted by Spot
    > Must the usb stick be formatted in ext2 fs? If yes, is it possible from other os than linux... like win xp?
    No, an USB stick formatted in FAT32/16 will suffice. You can also use ext2 which you can create using PartitionMagic in Windows or, of course, using another linux box.
    > Do busybox and script files have to be stored in dedicated folders? If yes, which ones?
    No, you can put busyboxy in any folder on the stick. The script can be in the same or another folder.

    Some packages howerver, are compiled with statically linkt libraries with fixed paths. In those cases those paths are documented.
    Some packages require special kernel options enabled which are enabled in the custom firmwares but not in the official ones. If a package needs such an option it will not work and, generally, give an indicating error.

    Good luck trying.

  5. #5
    Quote Originally Posted by Styno
    No, an USB stick formatted in FAT32/16 will suffice. You can also use ext2 which you can create using PartitionMagic in Windows or, of course, using another linux box.
    No, you can put busyboxy in any folder on the stick. The script can be in the same or another folder.

    Some packages howerver, are compiled with statically linkt libraries with fixed paths. In those cases those paths are documented.
    Some packages require special kernel options enabled which are enabled in the custom firmwares but not in the official ones. If a package needs such an option it will not work and, generally, give an indicating error.

    Good luck trying.
    Last questions before my tests:
    > Do scripts have to be in the "linux style" or can I create them with note pad under windows?
    > How to localise the script under the "USB Application - FTP Server" menu: like /folder/script or like "drive letter":\folder\script?

  6. #6
    Join Date
    Apr 2004
    Location
    Netherlands
    Posts
    1,308
    Well, I feel you should find out yourself. You'll see soon enough.

    one hint: vi


  7. #7
    Quote Originally Posted by Styno
    Well, I feel you should find out yourself. You'll see soon enough.

    one hint: vi

    Using vi suppose that I can telnet to my router (or use linux).
    And telnet to the router is a little bit difficult on official fw without making a script, no?!

    So... do you think thant vi emulator exist for windows?!

    I'll go on test!
    Thanks for your starting help.

  8. #8
    Just found WinVI...
    I go back to work!!!

  9. #9
    Join Date
    Apr 2004
    Location
    Netherlands
    Posts
    1,308
    Quote Originally Posted by Spot
    Using vi suppose that I can telnet to my router (or use linux).
    And telnet to the router is a little bit difficult on official fw without making a script, no?!

    So... do you think thant vi emulator exist for windows?!

    I'll go on test!
    Thanks for your starting help.
    Ok, you got me. Telnetting is difficult to a router with no telnet server on it

    Well, bringing up a telnel daemon should be the first thing to do. Perhaps it can be done through the hidden admin page... Otherwise, get the GPL source and compile a telnet daemon in your own firmware. One thing is certain: telnet daemon makes your life a lot easier!

  10. #10
    Join Date
    Apr 2004
    Location
    Netherlands
    Posts
    1,308
    Search the forum on howto setup a telnet daemon in official firmware. Its been done before.

  11. #11
    Quote Originally Posted by Styno
    Search the forum on howto setup a telnet daemon in official firmware. Its been done before.
    OK for setting up telnetd from the hidden admin page...
    But KO from a script!

    System log report this:
    USB storage: start user specified script

    Here is my script (made with WinVI):
    cp /tmp/harddisk/busybox /tmp/busybox
    chmod a+x /tmp/busybox
    ln -s /tmp/busybox /tmp/sh
    cp /tmp/harddisk/telnetd /tmp/telnetd
    chmod a+x /tmp/telnetd
    /tmp/telnetd -d -l /tmp/sh &

    Do you know what's wrong?

  12. #12
    Join Date
    Nov 2003
    Location
    Eindhoven
    Posts
    2,407
    Quote Originally Posted by Spot
    OK for setting up telnetd from the hidden admin page...
    But KO from a script!

    System log report this:
    USB storage: start user specified script

    Here is my script (made with WinVI):
    cp /tmp/harddisk/busybox /tmp/busybox
    chmod a+x /tmp/busybox
    ln -s /tmp/busybox /tmp/sh
    cp /tmp/harddisk/telnetd /tmp/telnetd
    chmod a+x /tmp/telnetd
    /tmp/telnetd -d -l /tmp/sh &

    Do you know what's wrong?
    try this not sure if it works now..

    [root@SNOL init]$ cat /tmp/harddisk/telnetd
    #!/bin/sh
    #
    # usage: router WAN LAN
    #
    cp /tmp/harddisk/busybox /tmp/busybox

    chmod +x /tmp/busybox

    ln -s /tmp/busybox /tmp/sh
    ln -s /tmp/busybox /tmp/telnetd
    /tmp/telnetd -d -l /tmp/sh &

    My little Asus Collection: Too much to fit inhere, my 2 babies:WL500w 1.9.2.7-10(OLEG) VX2SE Yellow Lamborghini notebook



    WL500g Forum Asus Files OpenDir

    Asusforum.NL -- Asusforum.DE -- Asusforum.RU -- Asusforum.PL -- Asusforum.NET -- Asusforum.EU -- Asusforum.BE -- Asusforum.ES -- Asusforum.INFO

  13. #13
    Quote Originally Posted by Antiloop
    try this not sure if it works now..

    [root@SNOL init]$ cat /tmp/harddisk/telnetd
    #!/bin/sh
    #
    # usage: router WAN LAN
    #
    cp /tmp/harddisk/busybox /tmp/busybox

    chmod +x /tmp/busybox

    ln -s /tmp/busybox /tmp/sh
    ln -s /tmp/busybox /tmp/telnetd
    /tmp/telnetd -d -l /tmp/sh &
    No... the router doesn't execute any command.

    I've tried a script with a single line for easy test purpose:
    cp /tmp/harddisk/busybox /tmp/busybox
    But even this can't be executed in single.

    Is there specific syntax to start and finish script files?

  14. #14
    Join Date
    Nov 2003
    Location
    Eindhoven
    Posts
    2,407
    Quote Originally Posted by Spot
    No... the router doesn't execute any command.

    I've tried a script with a single line for easy test purpose:
    cp /tmp/harddisk/busybox /tmp/busybox
    But even this can't be executed in single.

    Is there specific syntax to start and finish script files?
    please try a
    Code:
    chmod +x /tmp/harddisk/scriptyouwanttoexecute
    before executing

    type this from the system command page
    Code:
    ./tmp/harddisk/scriptyouwanttoexecute

    My little Asus Collection: Too much to fit inhere, my 2 babies:WL500w 1.9.2.7-10(OLEG) VX2SE Yellow Lamborghini notebook



    WL500g Forum Asus Files OpenDir

    Asusforum.NL -- Asusforum.DE -- Asusforum.RU -- Asusforum.PL -- Asusforum.NET -- Asusforum.EU -- Asusforum.BE -- Asusforum.ES -- Asusforum.INFO

  15. #15
    Quote Originally Posted by Antiloop
    please try a
    Code:
    chmod +x /tmp/harddisk/scriptyouwanttoexecute
    before executing

    type this from the system command page
    Code:
    ./tmp/harddisk/scriptyouwanttoexecute
    It doesn't help me... script isn't executed.
    I presume I make mistakes while encoding my script... or saving it.
    Is there a log file somewhere that warn for errors?

Page 1 of 2 12 LastLast

Similar Threads

  1. Contributors needed for wl500g packages
    By Jean-Fabrice in forum WL-500g Custom Development
    Replies: 33
    Last Post: 13-07-2009, 23:20
  2. Unslung/WL500g packages available for Oleg's firmware
    By rwhitby in forum WL-500g Custom Development
    Replies: 136
    Last Post: 24-04-2009, 16:54
  3. Replies: 2
    Last Post: 16-04-2005, 11:57
  4. ipkg segfault on some uslung packages
    By Jean-Fabrice in forum WL-500g Q&A
    Replies: 6
    Last Post: 15-04-2005, 13:24
  5. Some packages I compiled
    By Jean-Fabrice in forum WL-500g Custom Development
    Replies: 7
    Last Post: 23-03-2005, 13:29

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •