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

TrzepakoTomato(Tomato 1.21 + conanxu mod 1.5)

Discussion in 'Tomato Firmware' started by wdca, Aug 3, 2008.

  1. wdca

    wdca Addicted to LI Member

    Greets All!
    This firmware - TrzepakoTomato is a mix-up of several features.
    -conanxu mod 1.5 (IP/MAC Bandwidth, pps, connection limiter, SPEEDMOD and so on...)
    -ipt_ROUTE & ipt_random
    For example you have 2(or more) gateways in the lan/wan and you want to one of them to handle http requests so you type(or add into scripts section):
    Code:
    iptables -A PREROUTING -t mangle -p tcp --dport 80 -j ROUTE --gw ip_address_of_another_gw
    Or if you want to split the udp traffic randomly between gateways:
    Code:
    # iptables -A PREROUTING -t mangle -p udp -m random --average 50 -j ROUTE --gw 10.0.0.1
    # iptables -A PREROUTING -t mangle -p udp -j ROUTE --gw 10.0.0.2
    
    # iptables -L PREROUTING -t mangle
    Chain PREROUTING (policy ACCEPT)
    target prot opt source destination
    ROUTE all -- anywhere anywhere random 50% ROUTE gw 10.0.0.1
    ROUTE all -- anywhere anywhere ROUTE gw 10.0.0.2
    -ipt_REDIRECT
    -ipt_QUOTE
    -Edited thttpd for user announcements.
    1. Format your jffs partition.
    2. Login and type:
    Code:
    cd /jffs/
    touch index.htm
    vi index.htm
    Type sth like that:
    Code:
    <html>
    <head>
    <title>Hello Samanta!</title>
    </head>
    <body>
    Would you like to bring me some coffee ;) ?<hr>
    </body>
    </html>
    
    3. Save and close the index.htm file (in vi use the :wq / :w; :q esc)
    Or download the file from an url:
    Code:
    wget http://www.somedomain.com/index.html
    4. Type into the scripts/shell:
    Code:
    iptables -t nat -A PREROUTING -p tcp --dport 80 -s ip_of_the_secretary -j REDIRECT --to-port 81
    5.Run the thttpd at the 81 port by typing into shell/scripts section.
    Code:
    httpd -p 81 -b
    http://tomato.drobniuch.pl/TrzepakoTomato.7z
    Support, questions an suggestions are WELCOME!
  2. CBR900

    CBR900 Addicted to LI Member

    I can not find the .trx file for my asus wl-500gp

    does it enable usb/memory/hdd?
  3. wdca

    wdca Addicted to LI Member

    Download again, i've had included the .trx file. Sorry for the mistake.

    There is no usb/memory/hdd support yet, but if you want I will include it in the next version(today/tomorrow).
  4. me2az

    me2az Networkin' Nut Member

    +1

    And p910nd print server.
  5. wdca

    wdca Addicted to LI Member

    I've had added the mmc support and the usb core module.
  6. Seraphin

    Seraphin Networkin' Nut Member

    Which GPIO's are used in your tomato-mod, or can someone choose the needed GPIO-Selection by himself?


    I did my SD/MMC Modifiction after this Tutorial: www.hendlsofen.de (German)/(English), so I used GPIO's 2,3,4 & 7. Will it work?
  7. CBR900

    CBR900 Addicted to LI Member

    10x alot

    I have a usb flash memory and I want to connect it to usb port of my asus wl-500gp.

    How can I use it?

    is it userfriendly---->GUI?

    can you inclould some pics.

    10x again
  8. wdca

    wdca Addicted to LI Member

    I do not have the possibility to check the usb support because i have wrt54gl.
    Login via ssh and type
    Code:
    # modprobe usbcore
    # lsmod
    Module                  Size  Used by
    usbcore                75720   0 (unused)
    mmc                    19800   0 (unused)
    
    I do not know which usb modules i should also build to support your usb port.
    Just try it out, and if doesn't works i will try to build additional modules and the lsusb binary.
    Thanks for your suggestions!
  9. wdca

    wdca Addicted to LI Member

    IMHO everything works fine
    Code:
    <4>[INFO] mmc_hardware_init: initializing GPIOs
    <4>[INFO] mmc_card_init: the period of a 380KHz frequency lasts 566 CPU cycles
    <4>[INFO] mmc_card_init: powering card on. sending 80 CLK
    <4>[INFO] mmc_card_init: 80 CLK sent in 47171 CPU cycles
    <4>[INFO] mmc_card_init: resetting card (CMD0)
    <4>[FATAL] mmc_card_init: invalid response from card: ff found, waiting for 01
    <4>[INFO] mmc_card_init: the period of a 380KHz frequency lasts 566 CPU cycles
    <4>[INFO] mmc_card_init: powering card on. sending 80 CLK
    <4>[INFO] mmc_card_init: 80 CLK sent in 46739 CPU cycles
    <4>[INFO] mmc_card_init: resetting card (CMD0)
    <4>[FATAL] mmc_card_init: invalid response from card: ff found, waiting for 01
    <4>[ERROR] mmc_init: got an error calling mmc_card_init: 01
    <4>[ERROR] mmc_check_media: change detected but was not able to initialize new card: ffffffff
    <6>usb.c: registered new driver usbdevfs
    <6>usb.c: registered new driver hub
    Put a pendrive into your usb slot and check your dmesg
    It should appear sth like that:
    Code:
    hub.c: new USB ice 01:02.0-1, assigned address 2
    printer.c: usblp0: USB Bidirectional printer  2 if 0 alt 0 proto 2 vid 0x04A9 pid 0x1094
    usb.c: USB disconnect on ice 01:02.0-1 address 2
    hub.c: new USB ice 01:02.0-1, assigned address 3
    printer.c: usblp1: USB Bidirectional printer  3 if 0 alt 0 proto 2 vid 0x04A9 pid 0x1094
  10. wdca

    wdca Addicted to LI Member

    Download again, i've implemented the uhci/ehci usb-storage and the sd modules.
    Just login via ssh and type:

    For USB 1.1, try running the UHCI drivers first:
    Code:
    modprobe usbcore
    modprobe uhci
    
    If you see the message:
    Code:
    modprobe: init_module: uhci: No such device
    
    then your hardware does not have a UHCI compliant device, so go to the next step:

    Code:
    modprobe usb-ohci
    
    If you see the message:
    Code:
    insmod: init_module: usb-ohci: No such device
    
    then your hardware does not have a OHCI compliant device, so go to next step:
    For USB 2.0, try running the EHCI/HCD drivers:
    Code:
    modprobe ehci-hcd
    
    If you see messages like this:
    Code:
    modprobe: unresolved symbol usb_calc_bus_time
    
    try loading usbcore and then try ehci-hcd again:
    Code:
    modprobe usbcore
    modprobe ehci-hcd
    modprobe sd_mod
    modprobe usb-storage
    
    
    Check the dmesg. I've included also scsci modules so, it's always a possibility to run a hard drive with your ASUS. If you have problems then replace the modprobe command with insmod command.

    If everything is all right you can finally mount and use your USB device (with relevant modules for your file system in memory and created directory for mount):
    Code:
    mount /dev/usb/? /mnt
    
    (replace "?" with your device id [check the /dev/usb/ dir]).

    Powered by OpenWRT Wiki :)
    I'm waiting for your reply, and i'm curious if it will work!
  11. powersquad

    powersquad Networkin' Nut Member

    I am getting access denied error when I click on the link to open the website...
  12. wdca

    wdca Addicted to LI Member

    Fixed.
  13. CBR900

    CBR900 Addicted to LI Member

    I am new to this ssh thing

    here my log after trying:

    # modprobe usbcore
    # lsmod
    Module Size Used by
    usbcore 81976 0 (unused)
    tomato_ct 1136 0 (unused)
    wl 423640 0 (unused)
    et 28088 0 (unused)
    ip_nat_ftp 3712 0 (unused)
    ip_conntrack_ftp 4936 1
    ip_nat_rtsp 6656 0 (unused)
    ip_conntrack_rtsp 6344 1
    ip_nat_h323 2904 0 (unused)
    ip_conntrack_h323 2888 1
    ip_nat_pptp 2668 0 (unused)
    ip_conntrack_pptp 3452 1
    ip_nat_proto_gre 1888 0 (unused)
    ip_conntrack_proto_gre 2776 0 [ip_nat_pptp ip_conntrack_pptp]
    # dmesg
    <4>CPU revision is: 00029006
    <4>Primary instruction cache 16kb, linesize 16 bytes (2 ways)
    <4>Primary data cache 16kb, linesize 16 bytes (2 ways)
    <4>Linux version 2.4.20 (root@sephiroth) (gcc version 3.2.3 with Broadcom modifications) #37 Mon Aug 4 12:53:54 CEST 2008
    <4>Setting the PFC value as 0x15
    <4>Determined physical RAM map:
    <4> memory: 02000000 @ 00000000 (usable)
    <4>On node 0 totalpages: 8192
    <4>zone(0): 8192 pages.
    <4>zone(1): 0 pages.
    <4>zone(2): 0 pages.
    <4>Kernel command line: root=/dev/mtdblock2 noinitrd console=ttyS0,115200
    <4>CPU: BCM4704 rev 9 at 264 MHz
    <4>Calibrating delay loop... 263.78 BogoMIPS
    <6>Memory: 30664k/32768k available (1340k kernel code, 2104k reserved, 108k data, 64k init, 0k highmem)
    <6>Dentry cache hash table entries: 4096 (order: 3, 32768 bytes)
    <6>Inode cache hash table entries: 2048 (order: 2, 16384 bytes)
    <4>Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
    <4>Buffer-cache hash table entries: 1024 (order: 0, 4096 bytes)
    <4>Page-cache hash table entries: 8192 (order: 3, 32768 bytes)
    <4>Checking for 'wait' instruction... unavailable.
    <4>POSIX conformance testing by UNIFIX
    <4>PCI: Fixing up bus 0
    <4>PCI: Fixing up bridge
    <4>PCI: Fixing up bus 1
    <6>Linux NET4.0 for Linux 2.4
    <6>Based upon Swansea University Computer Society NET3.039
    <4>Initializing RT netlink socket
    <4>Starting kswapd
    <6>devfs: v1.12c (20020818) Richard Gooch (rgooch@atnf.csiro.au)
    <6>devfs: boot_options: 0x1
    <6>squashfs: version 3.0 (2006/03/15) Phillip Lougher
    <4>pty: 256 Unix98 ptys configured
    <6>Serial driver version 5.05c (2001-07-08) with MANY_PORTS SHARE_IRQ SERIAL_PCI enabled
    <6>ttyS00 at 0xb8000300 (irq = 3) is a 16550A
    <6>ttyS01 at 0xb8000400 (irq = 0) is a 16550A
    <4>HDLC line discipline: version $Revision: 1.1.1.4 $, maxframe=4096
    <6>N_HDLC line discipline registered.
    <6>PPP generic driver version 2.4.2
    <7>Physically mapped flash: Found an alias at 0x800000 for the chip at 0x0
    <7>Physically mapped flash: Found an alias at 0x1000000 for the chip at 0x0
    <7>Physically mapped flash: Found an alias at 0x1800000 for the chip at 0x0
    <5> Amd/Fujitsu Extended Query Table v1.3 at 0x0040
    <5>number of CFI chips: 1
    <5>Flash device: 0x800000 at 0x1c000000
    <5>Creating 5 MTD partitions on "Physically mapped flash":
    <5>0x00000000-0x00040000 : "pmon"
    <5>0x00040000-0x007f0000 : "linux"
    <5>0x000e3084-0x00360000 : "rootfs"
    <5>0x00360000-0x007f0000 : "jffs2"
    <5>0x007f0000-0x00800000 : "nvram"
    <3>sflash: found no supported devices
    <6>NET4: Linux TCP/IP 1.0 for NET4.0
    <6>IP Protocols: ICMP, UDP, TCP, IGMP
    <6>IP: routing cache hash table of 512 buckets, 4Kbytes
    <6>TCP: Hash tables configured (established 2048 bind 4096)
    <6>Linux IP multicast router 0.06 plus PIM-SM
    <4>ip_conntrack version 2.1 (8092 buckets, 4096 max) - 368 bytes per conntrack
    <4>ip_tables: (C) 2000-2002 Netfilter core team
    <4>ipt_random match loaded
    <6>NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
    <6>NET4: Ethernet Bridge 008 for NET4.0
    <1>802.1Q VLAN Support v1.7 Ben Greear <greearb@candelatech.com>
    <1>All bugs added by David S. Miller <davem@redhat.com>
    <4>VFS: Mounted root (squashfs filesystem) readonly.
    <6>Mounted devfs on /dev
    <6>Freeing unused kernel memory: 64k freed
    <4>Algorithmics/MIPS FPU Emulator v1.5
    <4>nvram_commit(): init
    <4>nvram_commit(): end
    <4>ip_conntrack_pptp version 1.9 loaded
    <4>ip_nat_pptp version 1.5 loaded
    <4>ip_conntrack_rtsp v0.01 loading
    <4>ip_nat_rtsp v0.01 loading
    <4>eth0: Broadcom BCM47xx 10/100 Mbps Ethernet Controller 3.90.38.0
    <7>unregister_netdevice: device eth1/801f4400 never was registered
    <4>PCI: Enabling device 01:02.0 (0004 -> 0006)
    <4>eth1: Broadcom BCM4318 802.11 Wireless Controller 3.90.38.0
    <4>tomato_ct.c [Jun 16 2008 12:54:55]
    <6>vlan0: dev_set_promiscuity(master, 1)
    <6>device eth0 entered promiscuous mode
    <6>device vlan0 entered promiscuous mode
    <6>device eth1 entered promiscuous mode
    <6>br0: port 2(eth1) entering learning state
    <6>br0: port 1(vlan0) entering learning state
    <4>vlan1: Setting MAC address to .
    <6>br0: port 2(eth1) entering forwarding state
    <6>br0: topology change detected, propagating
    <6>br0: port 1(vlan0) entering forwarding state
    <6>br0: topology change detected, propagating
    <6>vlan1: add ========== mcast address to master interface
    <4>nvram_commit(): init
    <4>nvram_commit(): end
    <6>vlan1: del =========mcast address from master interface
    <6>vlan1: del ========= mcast address from vlan interface
    <6>br0: port 2(eth1) entering disabled state
    <6>br0: port 1(vlan0) entering disabled state
    <6>br0: port 1(vlan0) entering disabled state
    <6>device vlan0 left promiscuous mode
    <6>br0: port 2(eth1) entering disabled state
    <6>device eth1 left promiscuous mode
    <6>device eth1 entered promiscuous mode
    <6>br0: port 2(eth1) entering learning state
    <6>br0: port 1(vlan0) entering learning state
    <6>br0: port 2(eth1) entering forwarding state
    <6>br0: topology change detected, propagating
    <4>vlan1: Setting MAC address to ============.
    <6>br0: port 1(vlan0) entering forwarding state
    <6>br0: topology change detected, propagating
    <4>nvram_commit(): init
    <4>nvram_commit(): end
    <4>nvram_commit(): init
    <4>nvram_commit(): end
    <4>nvram_commit(): init
    <4>nvram_commit(): end
    <4>nvram_commit(): init
    <4>nvram_commit(): end
    <4>nvram_commit(): init
    <4>nvram_commit(): end
    <4>nvram_commit(): init
    <4>nvram_commit(): end
    <4>nvram_commit(): init
    <4>nvram_commit(): end
    <6>usb.c: registered new driver usbdevfs
    <6>usb.c: registered new driver hub
    # modprobe usbcore
    # modprobe uhci
    # modprobe usb-ohci
    # modprobe ehci-hcd
    #
    #

    what is next?
  14. wdca

    wdca Addicted to LI Member

    show me:
    Code:
    dmesg | tail 20
    Then type(and show me):
    Code:
    cd /dev/usb
    ls
    
    Then mount the usb in a directory.
    For example if there is a device in the /dev/usb/sth mount it using this command:
    Code:
    mount /dev/usb/sth /mnt/
    
    then type:
    Code:
    cd /mnt
    ls
    
    It should show you the directory listning of your pendrive.

    If you want to run a http server in the /mnt dir on port 8080 type
    Code:
    cd /mnt
    httpd -b -p 8080
  15. CBR900

    CBR900 Addicted to LI Member

    # dmesg | tail 20
    tail: 20: No such file or directory
    tail: no files


    # cd /dev/usb
    # ls


    # mount /dev/usb/sth /mnt/
    mount: Mounting /dev/usb/sth on /mnt/ failed: No such file or directory
    # cd /mnt
    # ls
    #
  16. wdca

    wdca Addicted to LI Member

    again (my mistake partly) type:
    Code:
    dmesg | tail -n 20
    Show the /dev dir by typing:
    Code:
    cd /dev
    ls
  17. CBR900

    CBR900 Addicted to LI Member

    after loading modprobe usb-storage:

    <6>usb.c: registered new driver usbdevfs
    <6>usb.c: registered new driver hub
    <7>ehci-hcd.c: 2002-May-07 USB 2.0 'Enhanced' Host Controller (EHCI) Driver
    <7>ehci-hcd.c: block sizes: qh 96 qtd 96 itd 128 sitd 64
    <4>PCI: Enabling device 01:03.2 (0000 -> 0002)
    <6>hcd.c: ehci-hcd @ 01:03.2, PCI device 1106:3104
    <6>hcd.c: irq 2, pci mem c00c5000
    <6>usb.c: new USB bus registered, assigned bus number 1
    <7>ehci-dbg.c: ehci_start hcs_params 0x2204 dbg=0 cc=2 pcc=2 ordered !ppc ports=4
    <7>ehci-dbg.c: ehci_start extended capabilities at pci 104
    <7>ehci-dbg.c: ehci_start hcc_params 0x6872 caching 7 uframes 256/512/1024
    <7>ehci-hcd.c: reset 80002 cmd (park)=0 ithresh=8 period=1024 Reset HALT
    <7>ehci-hcd.c: init 10001 cmd (park)=0 ithresh=1 period=1024 RUN
    <6>ehci-hcd.c: USB 2.0 support enabled, EHCI rev 1. 0
    <7>hcd.c: 01:03.2 root hub device address 1
    <7>usb.c: kmalloc IF 810e04c0, numif 1
    <7>usb.c: new device strings: Mfr=3, Product=2, SerialNumber=1
    <7>usb.c: USB device number 1 default language ID 0x0
    <6>Manufacturer: Linux 2.4.20 ehci-hcd
    <6>Product: PCI device 1106:3104
    <6>SerialNumber: 01:03.2
    <6>hub.c: USB hub found
    <6>hub.c: 4 ports detected
    <7>hub.c: standalone hub
    <7>hub.c: ganged power switching
    <7>hub.c: individual port over-current protection
    <7>hub.c: Single TT
    <7>hub.c: TT requires at most 8 FS bit times
    <7>hub.c: Port indicators are not supported
    <7>hub.c: power on to power good time: 0ms
    <7>hub.c: hub controller current requirement: 0mA
    <7>hub.c: port removable status: RRRR
    <7>hub.c: local power source is good
    <7>hub.c: no over-current condition exists
    <7>hub.c: enabling power on all ports
    <7>usb.c: hub driver claimed interface 810e04c0
    <7>usb.c: kusbd: /sbin/hotplug add 1
    <7>hub.c: port 1, portstatus 100, change 0, 12 Mb/s
    <7>ehci-hub.c: GetStatus port 2 status 0x1803 POWER speed=2 CSC CONNECT
    <7>hub.c: port 2, portstatus 501, change 1, 480 Mb/s
    <7>hub.c: port 2 connection change
    <7>hub.c: port 2, portstatus 501, change 1, 480 Mb/s
    <7>hub.c: port 2, portstatus 501, change 0, 480 Mb/s
    <7>hub.c: port 2, portstatus 501, change 0, 480 Mb/s
    <7>hub.c: port 2, portstatus 501, change 0, 480 Mb/s
    <7>hub.c: port 2, portstatus 501, change 0, 480 Mb/s
    <7>hub.c: port 2, portstatus 511, change 0, 480 Mb/s
    <7>hub.c: port 2 of hub 1 not reset yet, waiting 10ms
    <7>hub.c: port 2, portstatus 511, change 0, 480 Mb/s
    <7>hub.c: port 2 of hub 1 not reset yet, waiting 10ms
    <7>ehci-hub.c: 01:03.2 port 2 high speed
    <7>ehci-hub.c: GetStatus port 2 status 0x1005 POWER speed=0 PE CONNECT
    <7>hub.c: port 2, portstatus 503, change 10, 480 Mb/s
    <6>hub.c: new USB device 01:03.2-2, assigned address 2
    <7>usb.c: kmalloc IF 810e0540, numif 1
    <7>usb.c: new device strings: Mfr=1, Product=2, SerialNumber=3
    <7>usb.c: USB device number 2 default language ID 0x409
    <6>Manufacturer: 0
    <6>Product: USB DRIVE
    <6>SerialNumber: 00000000000161B0
    <7>usb.c: unhandled interfaces on device
    <4>usb.c: USB device 2 (vend/prod 0x4e8/0x111) is not claimed by any active driver.
    <4> Length = 18
    <4> DescriptorType = 01
    <4> USB version = 2.00
    <4> Vendor:product = 04e8:0111
    <4> MaxPacketSize0 = 64
    <4> NumConfigurations = 1
    <4> Device version = 2.00
    <4> Device Class:SubClass:protocol = 00:00:00
    <4> Per-interface classes
    <4>Configuration:
    <4> bLength = 9
    <4> bDescriptorType = 02
    <4> wTotalLength = 0027
    <4> bNumInterfaces = 01
    <4> bConfigurationValue = 01
    <4> iConfiguration = 00
    <4> bmAttributes = 80
    <4> MaxPower = 200mA
    <4>
    <4> Interface: 0
    <4> Alternate Setting: 0
    <4> bLength = 9
    <4> bDescriptorType = 04
    <4> bInterfaceNumber = 00
    <4> bAlternateSetting = 00
    <4> bNumEndpoints = 03
    <4> bInterface Class:SubClass:protocol = 08:06:50
    <4> iInterface = 00
    <4> Endpoint:
    <4> bLength = 7
    <4> bDescriptorType = 05
    <4> bEndpointAddress = 81 (in)
    <4> bmAttributes = 02 (Bulk)
    <4> wMaxPacketSize = 0200
    <4> bInterval = 00
    <4> Endpoint:
    <4> bLength = 7
    <4> bDescriptorType = 05
    <4> bEndpointAddress = 02 (out)
    <4> bmAttributes = 02 (Bulk)
    <4> wMaxPacketSize = 0200
    <4> bInterval = 00
    <4> Endpoint:
    <4> bLength = 7
    <4> bDescriptorType = 05
    <4> bEndpointAddress = 83 (in)
    <4> bmAttributes = 03 (Interrupt)
    <4> wMaxPacketSize = 0002
    <4> bInterval = 01
    <7>usb.c: kusbd: /sbin/hotplug add 2
    <7>hub.c: port 3, portstatus 100, change 0, 12 Mb/s
    <7>hub.c: port 4, portstatus 100, change 0, 12 Mb/s
    <6>SCSI subsystem driver Revision: 1.00
    <6>Initializing USB Mass Storage driver...
    <6>usb.c: registered new driver usb-storage
    <7>usb-storage: act_altsettting is 0
    <7>usb-storage: id_index calculated to be: 89
    <7>usb-storage: Array length appears to be: 91
    <7>usb-storage: USB Mass Storage device detected
    <7>usb-storage: Endpoints: In: 0x81a434e0 Out: 0x81a434f4 Int: 0x81a43508 (Period 1)
    <7>usb-storage: New GUID 04e8011100000000000161b0
    <7>usb-storage: GetMaxLUN command result is 1, data is 0
    <7>usb-storage: Transport: Bulk
    <7>usb-storage: Protocol: Transparent SCSI
    <7>usb-storage: *** thread sleeping.
    <6>scsi0 : SCSI emulation for USB Mass Storage devices
    <7>usb-storage: queuecommand() called
    <7>usb-storage: *** thread awakened.
    <7>usb-storage: Command INQUIRY (6 bytes)
    <7>usb-storage: 12 00 00 00 ff 00 00 00 c0 21 09 80
    <7>usb-storage: Bulk command S 0x43425355 T 0x1 Trg 0 LUN 0 L 255 F 128 CL 6
    <7>usb-storage: Bulk command transfer result=0
    <7>usb-storage: usb_stor_transfer_partial(): xfer 255 bytes
    <7>usb-storage: usb_stor_bulk_msg() returned 0 xferred 36/255
    <7>usb-storage: Bulk data transfer result 0x1
    <7>usb-storage: Attempting to get CSW...
    <7>usb-storage: Bulk status result = 0
    <7>usb-storage: Bulk status Sig 0x53425355 T 0x1 R 219 Stat 0x0
    <7>usb-storage: Fixing INQUIRY data to show SCSI rev 2
    <7>usb-storage: scsi cmd done, result=0x0
    <7>usb-storage: *** thread sleeping.
    <4> Vendor: Model: USB DRIVE Rev: 2.00
    <4> Type: Direct-Access ANSI SCSI revision: 02
    <7>usb-storage: queuecommand() called
    <7>usb-storage: *** thread awakened.
    <7>usb-storage: Bad target number (1/0)
    <7>usb-storage: *** thread sleeping.
    <7>usb-storage: queuecommand() called
    <7>usb-storage: *** thread awakened.
    <7>usb-storage: Bad target number (2/0)
    <7>usb-storage: *** thread sleeping.
    <7>usb-storage: queuecommand() called
    <7>usb-storage: *** thread awakened.
    <7>usb-storage: Bad target number (3/0)
    <7>usb-storage: *** thread sleeping.
    <7>usb-storage: queuecommand() called
    <7>usb-storage: *** thread awakened.
    <7>usb-storage: Bad target number (4/0)
    <7>usb-storage: *** thread sleeping.
    <7>usb-storage: queuecommand() called
    <7>usb-storage: *** thread awakened.
    <7>usb-storage: Bad target number (5/0)
    <7>usb-storage: *** thread sleeping.
    <7>usb-storage: queuecommand() called
    <7>usb-storage: *** thread awakened.
    <7>usb-storage: Bad target number (6/0)
    <7>usb-storage: *** thread sleeping.
    <7>usb-storage: queuecommand() called
    <7>usb-storage: *** thread awakened.
    <7>usb-storage: Bad target number (7/0)
    <7>usb-storage: *** thread sleeping.
    <7>WARNING: USB Mass Storage data integrity not assured
    <7>USB Mass Storage device found at 2
    <7>usb.c: usb-storage driver claimed interface 810e0540
    <6>USB Mass Storage support registered.
    #
  18. CBR900

    CBR900 Addicted to LI Member

    here:

    # dmesg | tail -n 20
    <7>usb-storage: queuecommand() called
    <7>usb-storage: *** thread awakened.
    <7>usb-storage: Bad target number (4/0)
    <7>usb-storage: *** thread sleeping.
    <7>usb-storage: queuecommand() called
    <7>usb-storage: *** thread awakened.
    <7>usb-storage: Bad target number (5/0)
    <7>usb-storage: *** thread sleeping.
    <7>usb-storage: queuecommand() called
    <7>usb-storage: *** thread awakened.
    <7>usb-storage: Bad target number (6/0)
    <7>usb-storage: *** thread sleeping.
    <7>usb-storage: queuecommand() called
    <7>usb-storage: *** thread awakened.
    <7>usb-storage: Bad target number (7/0)
    <7>usb-storage: *** thread sleeping.
    <7>WARNING: USB Mass Storage data integrity not assured
    <7>USB Mass Storage device found at 2
    <7>usb.c: usb-storage driver claimed interface 810e0540
    <6>USB Mass Storage support registered.


    #cd /dev
    #ls

    console kmem mtdblock ppp random tty
    cua log null ptmx root urandom
    full mem nvram pts scsi usb
    gpio mtd port pty tts zero
    #
  19. wdca

    wdca Addicted to LI Member

    We are home :) The usb support works and the driver found your usb hub. So...
    The device should be listened somewhere in the /dev dir.
    Show the listning of /dev/ and /dev/usb
  20. CBR900

    CBR900 Addicted to LI Member

    # cd /dev/usb
    # ls
    #
    #
  21. wdca

    wdca Addicted to LI Member

    show /mnt/mem & /mnt/scisi & /mnt/kmem
  22. CBR900

    CBR900 Addicted to LI Member

    # show
    -sh: show: not found
  23. wdca

    wdca Addicted to LI Member

    As you can see there is no show command :)
    Just type :) :
    Code:
    cd /mnt/mem
    ls
    cd /mnt/scsi
    ls
    cd /mnt/kmem
    ls
    Greets and thx :)
  24. CBR900

    CBR900 Addicted to LI Member

    # cd /mnt
    # ls
    # cd /mnt/mem
    -sh: cd: can't cd to /mnt/mem
    # ls
    # cd /mnt/scsi
    -sh: cd: can't cd to /mnt/scsi
    # ls
    # cd /mnt/kmem
    -sh: cd: can't cd to /mnt/kmem
    # ls
    #
  25. wdca

    wdca Addicted to LI Member

    Try:
    mount /dev/mem /mnt
    or
    mount /dev/kmem /mnt

    then type:
    cd /mnt
    ls
  26. CBR900

    CBR900 Addicted to LI Member

    # mount /dev/mem /mnt
    mount: Mounting /dev/mem on /mnt failed: Block device required
    # mount /dev/kmem /mnt
    mount: Mounting /dev/kmem on /mnt failed: Block device required
    #
    # cd /mnt
    # ls
    #
  27. wdca

    wdca Addicted to LI Member

    Eject and insert once again your pendrive and show me:
    Code:
    dmesg | tail
  28. CBR900

    CBR900 Addicted to LI Member

    After I removed my pendrive and connecting it again:

    # dmesg | tail
    <7>hub.c: port 2, portstatus 503, change 10, 480 Mb/s
    <6>hub.c: new USB device 01:03.2-2, assigned address 4
    <4>usb_control/bulk_msg: timeout
    <7>ehci-hcd.c: 01:03.2 urb_dequeue 81ab2940 qh state 1
    <7>hcd.c: giveback urb 81ab2940 status -2 len 0
    <7>hcd.c: 01:03.2: wait for giveback urb 81ab2940
    <3>usb.c: USB device not accepting new address=4 (error=-145)
    <7>ehci-hcd.c: 01:03.2: free_config devnum -1
    <7>hub.c: port 3, portstatus 100, change 0, 12 Mb/s
    <7>hub.c: port 4, portstatus 100, change 0, 12 Mb/s
    #
  29. wdca

    wdca Addicted to LI Member

    show me:
    Code:
    cd /mnt
    find
  30. CBR900

    CBR900 Addicted to LI Member

    here:

    # cd /mnt
    # find
    .
    #
  31. wdca

    wdca Addicted to LI Member

  32. CBR900

    CBR900 Addicted to LI Member

    too much lines /pty/m**

    ./pty/m254
    ./pty/m255
    ./pts
    ./pts/0
    ./tts
    ./tts/0
    ./tts/1
    ./cua
    ./cua/0
    ./cua/1
    ./ppp
    ./mtd
    ./mtd/0
    ./mtd/0ro
    ./mtd/1
    ./mtd/1ro
    ./mtd/2
    ./mtd/2ro
    ./mtd/3
    ./mtd/3ro
    ./mtd/4
    ./mtd/4ro
    ./mtdblock
    ./mtdblock/0
    ./mtdblock/1
    ./mtdblock/2
    ./mtdblock/3
    ./mtdblock/4
    ./gpio
    ./gpio/in
    ./gpio/out
    ./gpio/outen
    ./gpio/control
    ./nvram
    ./root
    ./log
    ./usb
    ./scsi
    ./scsi/host0
    ./scsi/host0/bus0
    ./scsi/host0/bus0/target0
    ./scsi/host0/bus0/target0/lun0
    ./scsi/host0/bus0/target0/lun0/disc
    ./discs
    ./discs/disc0
  33. wdca

    wdca Addicted to LI Member

  34. CBR900

    CBR900 Addicted to LI Member

    # cd /dev/
    # find >/www/list
    -sh: cannot create /www/list: Read-only file system
    #
  35. wdca

    wdca Addicted to LI Member

    try:
    Code:
    mount /mtd/0 /mnt
    mount /mtd/0ro /mnt
    mount /mtd/1 /mnt
    mount /mtd/1ro /mnt
    mount /mtd/2 /mnt
    mount /mtd/2ro /mnt
    mount /mtd/3 /mnt
    mount /mtd/3ro /mnt
    mount /mtd/4 /mnt
    mount /mtd/4ro /mnt
    mount /mtdblock /mnt
    mount /mtdblock/0 /mnt
    mount /mtdblock/1 /mnt
    mount /mtdblock/2 /mnt
    mount /mtdblock/3 /mnt
    mount /mtdblock/4 /mnt
    then:
    Code:
    cd /mnt
    ls
  36. wdca

    wdca Addicted to LI Member

    try also:
    Code:
    mount /discs/disc0 /mnt
    mount /scsi/host0/bus0/target0/lun0/disc /mnt
    cd /mnt/
    ls
  37. CBR900

    CBR900 Addicted to LI Member

    # mount /mtd/0 /mnt
    mount: Mounting /mtd/0 on /mnt failed: No such file or directory
    # mount /mtd/0ro /mnt
    mount: Mounting /mtd/0ro on /mnt failed: No such file or directory
    # mount /mtd/1 /mnt
    mount: Mounting /mtd/1 on /mnt failed: No such file or directory
    # mount /mtd/1ro /mnt
    mount: Mounting /mtd/1ro on /mnt failed: No such file or directory
    # mount /mtd/2 /mnt
    mount: Mounting /mtd/2 on /mnt failed: No such file or directory
    # mount /mtd/2ro /mnt
    mount: Mounting /mtd/2ro on /mnt failed: No such file or directory
    # mount /mtd/3 /mnt
    mount: Mounting /mtd/3 on /mnt failed: No such file or directory
    # mount /mtd/3ro /mnt
    mount: Mounting /mtd/3ro on /mnt failed: No such file or directory
    # mount /mtd/4 /mnt
    mount: Mounting /mtd/4 on /mnt failed: No such file or directory
    # mount /mtd/4ro /mnt
    mount: Mounting /mtd/4ro on /mnt failed: No such file or directory
    # mount /mtdblock /mnt
    mount: Mounting /mtdblock on /mnt failed: No such file or directory
    # mount /mtdblock/0 /mnt
    mount: Mounting /mtdblock/0 on /mnt failed: No such file or directory
    # mount /mtdblock/1 /mnt
    mount: Mounting /mtdblock/1 on /mnt failed: No such file or directory
    # mount /mtdblock/2 /mnt
    mount: Mounting /mtdblock/2 on /mnt failed: No such file or directory
    # mount /mtdblock/3 /mnt
    mount: Mounting /mtdblock/3 on /mnt failed: No such file or directory
    # mount /mtdblock/4 /mnt
    mount: Mounting /mtdblock/4 on /mnt failed: No such file or directory
    # cd /mnt
    # ls
    #
  38. CBR900

    CBR900 Addicted to LI Member

    # mount /discs/disc0 /mnt
    mount: Mounting /discs/disc0 on /mnt failed: No such file or directory
    # mount /scsi/host0/bus0/target0/lun0/disc /mnt
    mount: Mounting /scsi/host0/bus0/target0/lun0/disc on /mnt failed: No such file or directory
    # cd /mnt/
    # ls
  39. CBR900

    CBR900 Addicted to LI Member

    dmesg:

    <7>usb-storage: Unit Attention: not ready to ready transition
    <7>usb-storage: scsi cmd done, result=0x2
    <7>usb-storage: *** thread sleeping.
    <4>sda : READ CAPACITY failed.
    <4>sda : status = 1, message = 00, host = 0, driver = 08
    <4>Current sd00:00: sense key Unit Attention
    <4>Additional sense indicates Not ready to ready change,medium may have changed
    <4>sda : block size assumed to be 512 bytes, disk size 1GB.
    <6>Partition check:
    <6> /dev/scsi/host0/bus0/target0/lun0:<7>usb-storage: queuecommand() called
    <7>usb-storage: *** thread awakened.
    <7>usb-storage: Command READ_10 (10 bytes)
    <7>usb-storage: 28 00 00 00 00 00 00 00 08 00 a2 81
    <7>usb-storage: Bulk command S 0x43425355 T 0xf Trg 0 LUN 0 L 4096 F 128 CL 10
    <7>usb-storage: Bulk command transfer result=0
    <7>usb-storage: usb_stor_transfer_partial(): xfer 4096 bytes
    <7>ehci-q.c: ep 1-in qtd token 90008d40 --> status -32
    <7>hcd.c: giveback urb 81ab2740 status -32 len 0
    <7>usb-storage: usb_stor_bulk_msg() returned -32 xferred 0/4096
    <7>usb-storage: clearing endpoint halt for pipe 0xc0008280
    <7>usb-storage: usb_stor_clear_halt: result=0
    <7>usb-storage: usb_stor_transfer_partial(): unknown error
    <7>usb-storage: Bulk data transfer result 0x2
    <7>usb-storage: Attempting to get CSW...
    <7>usb-storage: Bulk status result = 0
    <7>usb-storage: Bulk status Sig 0x53425355 T 0xf R 4096 Stat 0x1
    <7>usb-storage: -- transport indicates command failure
    <7>usb-storage: Issuing auto-REQUEST_SENSE
    <7>usb-storage: Bulk command S 0x43425355 T 0xf Trg 0 LUN 0 L 18 F 128 CL 10
    <7>usb-storage: Bulk command transfer result=0
    <7>usb-storage: usb_stor_transfer_partial(): xfer 18 bytes
    <7>usb-storage: usb_stor_bulk_msg() returned 0 xferred 18/18
    <7>usb-storage: usb_stor_transfer_partial(): transfer complete
    <7>usb-storage: Bulk data transfer result 0x0
    <7>usb-storage: Attempting to get CSW...
    <7>usb-storage: Bulk status result = 0
    <7>usb-storage: Bulk status Sig 0x53425355 T 0xf R 0 Stat 0x0
    <7>usb-storage: -- Result from auto-sense is 0
    <7>usb-storage: -- code: 0x70, key: 0x6, ASC: 0x28, ASCQ: 0x0
    <7>usb-storage: Unit Attention: not ready to ready transition
    <7>usb-storage: scsi cmd done, result=0x2
    <7>usb-storage: *** thread sleeping.
    <4> I/O error: dev 08:00, sector 0
    <4> I/O error: dev 08:00, sector 0
    <4> unable to read partition table
    <7>hub.c: port 1, portstatus 100, change 0, 12 Mb/s
    <7>ehci-hub.c: GetStatus port 2 status 0x1002 POWER speed=0 CSC
    <7>hub.c: port 2, portstatus 100, change 1, 12 Mb/s
    <7>hub.c: port 2 connection change
    <7>hub.c: port 2, portstatus 100, change 1, 12 Mb/s
    <6>usb.c: USB disconnect on device 01:03.2-2 address 2
    <7>usb-storage: storage_disconnect() called
    <7>usb-storage: -- releasing main URB
    <7>usb-storage: -- usb_unlink_urb() returned -19
    <7>usb.c: kusbd: /sbin/hotplug remove 2
    <7>ehci-hcd.c: 01:03.2: free_config devnum 2
    <7>hub.c: port 3, portstatus 100, change 0, 12 Mb/s
    <7>hub.c: port 4, portstatus 100, change 0, 12 Mb/s
    <7>hub.c: port 1, portstatus 100, change 0, 12 Mb/s
    <7>ehci-hub.c: GetStatus port 2 status 0x1803 POWER speed=2 CSC CONNECT
    <7>hub.c: port 2, portstatus 501, change 1, 480 Mb/s
    <7>hub.c: port 2 connection change
    <7>hub.c: port 2, portstatus 501, change 1, 480 Mb/s
    <7>hub.c: port 2, portstatus 501, change 0, 480 Mb/s
    <7>hub.c: port 2, portstatus 501, change 0, 480 Mb/s
    <7>hub.c: port 2, portstatus 501, change 0, 480 Mb/s
    <7>hub.c: port 2, portstatus 501, change 0, 480 Mb/s
    <7>hub.c: port 2, portstatus 511, change 0, 480 Mb/s
    <7>hub.c: port 2 of hub 1 not reset yet, waiting 10ms
    <7>hub.c: port 2, portstatus 511, change 0, 480 Mb/s
    <7>hub.c: port 2 of hub 1 not reset yet, waiting 10ms
    <7>ehci-hub.c: 01:03.2 port 2 high speed
    <7>ehci-hub.c: GetStatus port 2 status 0x1005 POWER speed=0 PE CONNECT
    <7>hub.c: port 2, portstatus 503, change 10, 480 Mb/s
    <6>hub.c: new USB device 01:03.2-2, assigned address 3
    <4>usb_control/bulk_msg: timeout
    <7>ehci-hcd.c: 01:03.2 urb_dequeue 81ab2940 qh state 1
    <7>hcd.c: 01:03.2: wait for giveback urb 81ab2940
    <7>hcd.c: giveback urb 81ab2940 status -2 len 0
    <3>usb.c: USB device not accepting new address=3 (error=-145)
    <7>ehci-hcd.c: 01:03.2: free_config devnum -1
    <7>ehci-hub.c: 01:03.2 port 2 high speed
    <7>ehci-hub.c: GetStatus port 2 status 0x1005 POWER speed=0 PE CONNECT
    <7>hub.c: port 2, portstatus 503, change 10, 480 Mb/s
    <6>hub.c: new USB device 01:03.2-2, assigned address 4
    <4>usb_control/bulk_msg: timeout
    <7>ehci-hcd.c: 01:03.2 urb_dequeue 81ab2940 qh state 1
    <7>hcd.c: giveback urb 81ab2940 status -2 len 0
    <7>hcd.c: 01:03.2: wait for giveback urb 81ab2940
    <3>usb.c: USB device not accepting new address=4 (error=-145)
    <7>ehci-hcd.c: 01:03.2: free_config devnum -1
    <7>hub.c: port 3, portstatus 100, change 0, 12 Mb/s
    <7>hub.c: port 4, portstatus 100, change 0, 12 Mb/s
    <7>usb-storage: queuecommand() called
    <7>usb-storage: *** thread awakened.
    <7>usb-storage: Request is for removed device
    <7>usb-storage: scsi cmd done, result=0x2
    <7>usb-storage: *** thread sleeping.
    <6>Device not ready. Make sure there is a disc in the drive.
    <7>VFS: Disk change detected on device 08:00
    <7>usb-storage: queuecommand() called
    <7>usb-storage: *** thread awakened.
    <7>usb-storage: Request is for removed device
    <7>usb-storage: scsi cmd done, result=0x2
    <7>usb-storage: *** thread sleeping.
    <7>usb-storage: queuecommand() called
    <7>usb-storage: *** thread awakened.
    <7>usb-storage: Request is for removed device
    <7>usb-storage: scsi cmd done, result=0x2
    <7>usb-storage: *** thread sleeping.
    <7>usb-storage: queuecommand() called
    <7>usb-storage: *** thread awakened.
    <7>usb-storage: Request is for removed device
    <7>usb-storage: scsi cmd done, result=0x2
    <7>usb-storage: *** thread sleeping.
    <7>usb-storage: queuecommand() called
    <7>usb-storage: *** thread awakened.
    <7>usb-storage: Request is for removed device
    <7>usb-storage: scsi cmd done, result=0x2
    <7>usb-storage: *** thread sleeping.
    <4>sda : READ CAPACITY failed.
    <4>sda : status = 1, message = 00, host = 0, driver = 08
    <4>Info fld=0xa00 (nonstd), Current sd00:00: sense key Not Ready
    <4>sda : block size assumed to be 512 bytes, disk size 1GB.
    <6> /dev/scsi/host0/bus0/target0/lun0: I/O error: dev 08:00, sector 0
    <4> I/O error: dev 08:00, sector 0
    <7>usb-storage: queuecommand() called
    <7>usb-storage: *** thread awakened.
    <7>usb-storage: Request is for removed device
    <7>usb-storage: scsi cmd done, result=0x2
    <7>usb-storage: *** thread sleeping.
    <6>Device not ready. Make sure there is a disc in the drive.
    <7>VFS: Disk change detected on device 08:00
    <7>usb-storage: queuecommand() called
    <7>usb-storage: *** thread awakened.
    <7>usb-storage: Request is for removed device
    <7>usb-storage: scsi cmd done, result=0x2
    <7>usb-storage: *** thread sleeping.
    <7>usb-storage: queuecommand() called
    <7>usb-storage: *** thread awakened.
    <7>usb-storage: Request is for removed device
    <7>usb-storage: scsi cmd done, result=0x2
    <7>usb-storage: *** thread sleeping.
    <7>usb-storage: queuecommand() called
    <7>usb-storage: *** thread awakened.
    <7>usb-storage: Request is for removed device
    <7>usb-storage: scsi cmd done, result=0x2
    <7>usb-storage: *** thread sleeping.
    <7>usb-storage: queuecommand() called
    <7>usb-storage: *** thread awakened.
    <7>usb-storage: Request is for removed device
    <7>usb-storage: scsi cmd done, result=0x2
    <7>usb-storage: *** thread sleeping.
    <4>sda : READ CAPACITY failed.
    <4>sda : status = 1, message = 00, host = 0, driver = 08
    <4>Info fld=0xa00 (nonstd), Current sd00:00: sense key Not Ready
    <4>sda : block size assumed to be 512 bytes, disk size 1GB.
    <6> /dev/scsi/host0/bus0/target0/lun0: I/O error: dev 08:00, sector 0
    <4> I/O error: dev 08:00, sector 0
    <7>usb-storage: queuecommand() called
    <7>usb-storage: *** thread awakened.
    <7>usb-storage: Request is for removed device
    <7>usb-storage: scsi cmd done, result=0x2
    <7>usb-storage: *** thread sleeping.
    <6>Device not ready. Make sure there is a disc in the drive.
    <7>VFS: Disk change detected on device 08:00
    <7>usb-storage: queuecommand() called
    <7>usb-storage: *** thread awakened.
    <7>usb-storage: Request is for removed device
    <7>usb-storage: scsi cmd done, result=0x2
    <7>usb-storage: *** thread sleeping.
    <7>usb-storage: queuecommand() called
    <7>usb-storage: *** thread awakened.
    <7>usb-storage: Request is for removed device
    <7>usb-storage: scsi cmd done, result=0x2
    <7>usb-storage: *** thread sleeping.
    <7>usb-storage: queuecommand() called
    <7>usb-storage: *** thread awakened.
    <7>usb-storage: Request is for removed device
    <7>usb-storage: scsi cmd done, result=0x2
    <7>usb-storage: *** thread sleeping.
    <7>usb-storage: queuecommand() called
    <7>usb-storage: *** thread awakened.
    <7>usb-storage: Request is for removed device
    <7>usb-storage: scsi cmd done, result=0x2
    <7>usb-storage: *** thread sleeping.
    <4>sda : READ CAPACITY failed.
    <4>sda : status = 1, message = 00, host = 0, driver = 08
    <4>Info fld=0xa00 (nonstd), Current sd00:00: sense key Not Ready
    <4>sda : block size assumed to be 512 bytes, disk size 1GB.
    <6> /dev/scsi/host0/bus0/target0/lun0: I/O error: dev 08:00, sector 0
    <4> I/O error: dev 08:00, sector 0
    <7>usb-storage: queuecommand() called
    <7>usb-storage: *** thread awakened.
    <7>usb-storage: Request is for removed device
    <7>usb-storage: scsi cmd done, result=0x2
    <7>usb-storage: *** thread sleeping.
    <6>Device not ready. Make sure there is a disc in the drive.
    <7>VFS: Disk change detected on device 08:00
    <7>usb-storage: queuecommand() called
    <7>usb-storage: *** thread awakened.
    <7>usb-storage: Request is for removed device
    <7>usb-storage: scsi cmd done, result=0x2
    <7>usb-storage: *** thread sleeping.
    <7>usb-storage: queuecommand() called
    <7>usb-storage: *** thread awakened.
    <7>usb-storage: Request is for removed device
    <7>usb-storage: scsi cmd done, result=0x2
    <7>usb-storage: *** thread sleeping.
    <7>usb-storage: queuecommand() called
    <7>usb-storage: *** thread awakened.
    <7>usb-storage: Request is for removed device
    <7>usb-storage: scsi cmd done, result=0x2
    <7>usb-storage: *** thread sleeping.
    <7>usb-storage: queuecommand() called
    <7>usb-storage: *** thread awakened.
    <7>usb-storage: Request is for removed device
    <7>usb-storage: scsi cmd done, result=0x2
    <7>usb-storage: *** thread sleeping.
    <4>sda : READ CAPACITY failed.
    <4>sda : status = 1, message = 00, host = 0, driver = 08
    <4>Info fld=0xa00 (nonstd), Current sd00:00: sense key Not Ready
    <4>sda : block size assumed to be 512 bytes, disk size 1GB.
    <6> /dev/scsi/host0/bus0/target0/lun0: I/O error: dev 08:00, sector 0
    <4> I/O error: dev 08:00, sector 0
  40. wdca

    wdca Addicted to LI Member

    Code:
    mount /dev/mtd/0 /mnt
    mount /dev/mtd/0ro /mnt
    mount /dev/mtd/1 /mnt
    mount /dev/mtd/1ro /mnt
    mount /dev/mtd/2 /mnt
    mount /dev/mtd/2ro /mnt
    mount /dev/mtd/3 /mnt
    mount /dev/mtd/3ro /mnt
    mount /dev/mtd/4 /mnt
    mount /dev/mtd/4ro /mnt
    mount /dev/mtdblock /mnt
    mount /dev/mtdblock/0 /mnt
    mount /dev/mtdblock/1 /mnt
    mount /dev/mtdblock/2 /mnt
    mount /dev/mtdblock/3 /mnt
    mount /dev/mtdblock/4 /mnt
    mount /dev/discs/disc0 /mnt
    mount /dev/scsi/host0/bus0/target0/lun0/disc /mnt
    cd /mnt
    ls
    Sorry my mistake again ;]
  41. wdca

    wdca Addicted to LI Member

    Code:
    mount /dev/sda /mnt
    cd /mnt
    ls
  42. CBR900

    CBR900 Addicted to LI Member

    # mount /dev/mtd/0 /mnt
    mount: Mounting /dev/mtd/0 on /mnt failed: Block device required
    # mount /dev/mtd/0ro /mnt
    mount /dev/mtd/4 /mnt
    mount /dev/mtd/4ro /mnt
    mount /dev/mtdblock /mnt
    mount /dev/mtdblock/0 /mnt
    mount /dev/mtdblock/1 /mnt
    mount /dev/mtdblock/2 /mnt
    mount /dev/mtdblock/3 /mnt
    mount /dev/mtdblock/4 /mnt
    mount /dev/discs/disc0 /mnt
    mount /dev/scsi/host0/bus0/target0/lun0/disc /mnt
    cd /mnt
    lsmount: Mounting /dev/mtd/0ro on /mnt failed: Block device required
    # mount /dev/mtd/1 /mnt
    mount: Mounting /dev/mtd/1 on /mnt failed: Block device required
    # mount /dev/mtd/1ro /mnt
    mount: Mounting /dev/mtd/1ro on /mnt failed: Block device required
    # mount /dev/mtd/2 /mnt
    mount: Mounting /dev/mtd/2 on /mnt failed: Block device required
    # mount /dev/mtd/2ro /mnt
    mount: Mounting /dev/mtd/2ro on /mnt failed: Block device required
    # mount /dev/mtd/3 /mnt
    mount: Mounting /dev/mtd/3 on /mnt failed: Block device required
    # mount /dev/mtd/3ro /mnt
    mount: Mounting /dev/mtd/3ro on /mnt failed: Block device required
    # mount /dev/mtd/4 /mnt
    mount: Mounting /dev/mtd/4 on /mnt failed: Block device required
    # mount /dev/mtd/4ro /mnt
    mount: Mounting /dev/mtd/4ro on /mnt failed: Block device required
    # mount /dev/mtdblock /mnt
    # mount /dev/mtdblock/0 /mnt
    mount: /dev/mtdblock/0 is write-protected, mounting read-only
    mount: Mounting /dev/mtdblock/0 on /mnt failed: Invalid argument
    # mount /dev/mtdblock/1 /mnt
    mount: Mounting /dev/mtdblock/1 on /mnt failed: Invalid argument
    # mount /dev/mtdblock/2 /mnt
    mount: /dev/mtdblock/2 is write-protected, mounting read-only
    # mount /dev/mtdblock/3 /mnt
    mount: Mounting /dev/mtdblock/3 on /mnt failed: Invalid argument
    # mount /dev/mtdblock/4 /mnt
    mount: Mounting /dev/mtdblock/4 on /mnt failed: Invalid argument
    # mount /dev/discs/disc0 /mnt
    # mount /dev/scsi/host0/bus0/target0/lun0/disc /mnt
    mount: Mounting /dev/scsi/host0/bus0/target0/lun0/disc on /mnt failed: No medium found
    # cd /mnt
    # ls
    disc
    #
  43. CBR900

    CBR900 Addicted to LI Member

    # mount /dev/sda /mnt
    mount: Mounting /dev/sda on /mnt failed: No such file or directory
    # cd /mnt
    # ls
    disc
    #
  44. wdca

    wdca Addicted to LI Member

    Code:
    cd /mnt/disc
    ls
  45. CBR900

    CBR900 Addicted to LI Member

    # cd /mnt/disc
    -sh: cd: can't cd to /mnt/disc
    # ls
    disc
    #
  46. wdca

    wdca Addicted to LI Member

    Code:
    cd /dev/
    find | more
    
    copy the output, then paste, then rewind and paste again and so on :)

    I've got no clue where the device should be located :/
    The biggest lost i miss my mind the most[ozzy osbourne]
  47. CBR900

    CBR900 Addicted to LI Member

    # cd /dev/
    # find | more
    .
    ./.devfsd
    ./mem
    ./kmem
    ./null
    ./port
    ./zero
    ./full
    ./random
    ./urandom
    ./tty
    ./console
    ./ptmx
    ./pty
    ./pty/m0
    ./pty/m1
    ./pty/m2
    ./pty/m3
    ./pty/m4
    ./pty/m5
    ./pty/m6
    ./pty/m7
    ./pty/m8
    ./pty/m9
    --More--
    ./pty/m10
    ./pty/m11
    =
    =
    =
    =
    ./pty/m255
    ./pts
    ./pts/0
    ./tts
    ./tts/0
    ./tts/1
    ./cua
    ./cua/0
    ./cua/1
    ./ppp
    ./mtd
    ./mtd/0
    ./mtd/0ro
    ./mtd/1
    ./mtd/1ro
    ./mtd/2
    ./mtd/2ro
    ./mtd/3
    ./mtd/3ro
    ./mtd/4
    ./mtd/4ro
    ./mtdblock
    ./mtdblock/0
    ./mtdblock/1
    ./mtdblock/2
    ./mtdblock/3
    ./mtdblock/4
    ./gpio
    ./gpio/in
    ./gpio/out
    ./gpio/outen
    ./gpio/control
    ./nvram
    ./root
    ./log
    ./usb
    ./scsi
    ./scsi/host0
    ./scsi/host0/bus0
    ./scsi/host0/bus0/target0
    ./scsi/host0/bus0/target0/lun0
    ./scsi/host0/bus0/target0/lun0/disc
    ./discs
    ./discs/disc0
    #
    #
  48. njeske

    njeske LI Guru Member

    So is all this USB related code going to make it into a mod release? It'd be really cool if USB support was added to Tomato with a user friendly way to mount devices.
  49. wdca

    wdca Addicted to LI Member

    I'm currently working on that support. It's difficult for me because i do not have a usb related router. Today or tomorrow i will contact a guy with an Asus WL-500gP who tried to enable that support in the openwrt.
    As you can see the support works, it discovers the usb device ,but i don't know where it is located in the /dev dir.
    It will take some time to put things together.
  50. njeske

    njeske LI Guru Member

    great! thanks for all the work. it is definitely appreciated.
  51. CBR900

    CBR900 Addicted to LI Member


    thanks a lot for your support and time

    I hope to see it integrated in tomato webpage managment
  52. CBR900

    CBR900 Addicted to LI Member

    @wdca

    you got PM
  53. wdca

    wdca Addicted to LI Member

  54. peyton

    peyton Networkin' Nut Member

    I've just upgrade to your firmware and i have a question, what "IPID Adjust" is for ?
    I googled it but had no answers on what it can be.
    I like your firmware guy, just don't leave some spelling mistakes like this one "Traffic Menager". ;)

    Cheers
  55. wdca

    wdca Addicted to LI Member

    Sorry for the mistakes, i will fix the misspelling ;p
    IPID Adjust is for China area only.
  56. peyton

    peyton Networkin' Nut Member

    Okay thanks.
  57. wdca

    wdca Addicted to LI Member

  58. bingjiw

    bingjiw Networkin' Nut Member

    iptables ERROR: No chain/target/match by that name

    I am trying to use the new feature of user announcements.
    Just as the following part in the first post of this thread:
    When I run to the 4th step of "Type into the scripts/shell", I inputed the following command and executed:

    Code:
    iptables -t nat -A PREROUTING -p tcp --dport 80 -s 192.168.2.38 -j REDIRECT --to-port 81
    But I got such an error message as the red line below:
    Code:
    /jffs$ iptables -t nat -A PREROUTING -p tcp --dport 80 -s 192.168.2.38 -j REDIRECT --to-port 81
    [B][COLOR="Red"]iptables: No chain/target/match by that name[/COLOR][/B]
    While the client machine 192.168.2.38 is currently connected and it is on the Device List page of Tomato.

    My Tomato is running with the LAN settings of:
    Router IP Address 192.168.2.2
    Subnet Mask 255.255.255.0

    DHCP Server setting:
    Start 192.168.2.20
    End 192.168.2.49

    Do you know what's wrong with the iptables command?
    How to solve this problem?

    Thanks
  59. wdca

    wdca Addicted to LI Member

    Yes, i've deleted the REDIRECT module in the new version.
    You could use an older version of TrzepakoTomato or use DNAT instead.
    For example:
    Code:
    iptables -t nat -A PREROUTING -s 192.168.2.38 -p tcp --dport 80 -j DNAT --to 192.168.2.2:81
    Sorry, i've forgotten to mention it that i've deleted the module.
    In the new version i'm planing to install it again(to not confuse the people)
    Sorry again!
    GreetZ!
  60. non7top

    non7top Networkin' Nut Member

    Thanks a lot wdca for your work, i've just installed your version of tomato formware on my WL-500gP and I do realy like it. But still there is a few features I miss from Oleg's fw.
    First of course is usb support and here I can provide you with all possible help (including testing fw on router) to enable this feature.
    What i can see so far is the following:
    Code:
    <4>sda: Write Protect is off
    <6> /dev/scsi/host0/bus0/target0/lun0: unknown partition table
    <7>WARNING: USB Mass Storage data integrity not assured
    <7>USB Mass Storage device found at 2
    <7>usb.c: usb-storage driver claimed interface 81e7f5e0
    <6>USB Mass Storage support registered.
    
    Code:
    # ls /dev/scsi/host0/bus0/target0/lun0/ -l
    brw-------    1 root     root       8,   0 Jan  1  1970 disc
    crw-r-----    1 root     root      21,   0 Jan  1  1970 generic
    but there should be /dev/scsi/host0/bus0/target0/lun0/part1 which corresponds to first partition on the flash drive. I think that the kernel is missing support for dos partition table or sth like that, and also this flash drive was working fine on Olegs fw and on dd-wrt. Dmesg can be found here http://rafb.net/p/C4uEoN93.html

    And the second feature is support for Optware packaging system, but I think that it can be easily implemented after usb is working
  61. non7top

    non7top Networkin' Nut Member

    Ok, I've finally managed to mount my usb flash drive. But still there is an issue - partition table on the drive is not recognized.
    So my steps to make it working
    1. Format the whole drive on my pc
    mke2fs -j /dev/sde -I 128
    2. Insert the drive into router and type
    modprobe scsi_mod
    modprobe usb-storage
    modprobe sd_mod
    modprobe ext3
    3. And finally mount the drive
    mount /dev/scsi/host0/bus0/target0/lun0/disc /mnt

    But this way is kind of hackish, because the filesystem is created on top of the whole drive, without any partitions, so it will not be recognized by some Operating systems.

    My further steps will be to make Optware working.
    And thanks again wdca
  62. wdca

    wdca Addicted to LI Member

    Hi!
    Thanks very much for your work at running the usb driver.
    I will test and include your suggestions in the next few hours.
    Thanks again for your support!!!!!
  63. non7top

    non7top Networkin' Nut Member

    Here is my quick guide on how to make USB storage working on Tomato-enabled routers with usb hub, and the install optware on it
    1. Flash your router with TrzepakoTomato firmware v1.21.0006+
    2. Prepare your flash drive on Linux PC
    - Create two partitions with fdisk: swap and ext3 partition (100MB and 1900MB in my case)
    - Create swapspace 'mkswap /dev/sdf1'
    - Create ext3 filesystem on second partition 'mkfs.ext3 -I 128 /dev/sdf2 -L router' (note the -I 128)
    - Plug it into router
    3. Load kernel modules and mount partition
    - Connect to router via telnet and issue these commands
    Code:
    modprobe usbcore
    modprobe ehci-hcd
    modprobe scsi_mod
    modprobe usb-storage
    modprobe sd_mod
    modprobe ext3
    sleep 3
    
    mount /dev/scsi/host0/bus0/target0/lun0/part2 /mnt
    mkdir /mnt/opt-tomato
    mount -o bind /mnt/opt-tomato /opt
    you can add these lines to startup script
    4. Install optware
    wget http://www.wlan-sat.com/boleo/optware/optware-install-ddwrt.sh -O - | tr -d '\r' > /tmp/optware-install.sh
    sh /tmp/optware-install.sh
    Modify PATH variable
    export PATH=/opt/bin:/opt/sbin:$PATH
    unset LD_LIBRARY_PATH
    (note that you need to issue 2 last commands everytime you make new shell connection)

    For now there are still some things to implement, but wdca is working on them:
    - No web interface for operations with USB storage
    - No utilities for working with filesystems and partitions (fdisk, mke2fs, fsck, mkswap, swapon)
    - PATH variable needs to be set on every new shell
  64. CBR900

    CBR900 Addicted to LI Member

    Hi...

    I am very new to linux commands and I want to test the usb memory on my asus 500gp

    and I do not have a linux pc.

    Is there a windows program that can format in linux filesystem?

    help
  65. non7top

    non7top Networkin' Nut Member

    you can download any linux livecd and format flash drive from it. as far as I know PartitionMagic creates incompatible ext3 filesystem.
  66. CBR900

    CBR900 Addicted to LI Member

    I have knopix livecd 5.01

    But I do not know how to use.

    I run my pc from it....but as I said I do not know how to deal with it


    sorry :(
  67. wdca

    wdca Addicted to LI Member

    1. Search for LINUX BASiC in google :)
    2. Open Terminal or sth in Knopix
    3 Type the commands.
  68. CBR900

    CBR900 Addicted to LI Member

    Hi...

    I did these without problems:

    except
    [/QUOTE]
    - Create ext3 filesystem on second partition 'mkfs.ext3 -I 128 /dev/sdf2 -L router' (note the -I 128)
    [/QUOTE]

    I get error with inodes...I think it has to do with "I 128".

    I have a 1GB usb memory and I made 2 partitions (100MB swap and 900MB ext3)

    what should I change in the command to make it work? please help

    10x
    ========================================================



    update:

    I used mkfs.ext3 /dev/sdf2 and it formates it to ex3.

    and then I followed the remaining steps and got:

    # modprobe usbcore
    # modprobe usbcore
    # modprobe ehci-hcd
    # modprobe scsi_mod
    # modprobe usb-storage
    # modprobe sd_mod
    # modprobe sd_mod
    # modprobe ext3
    # modprobe ext3
    # sleep 3
    # mount /dev/scsi/host0/bus0/target0/lun0/part2 /mnt
    # mkdir /mnt/opt-tomato
    # mount -o bind /mnt/opt-tomato /opt
    # wget http://www.wlan-sat.com/boleo/optwar...stall-ddwrt.sh -O - | tr -d '\r' >
    /tmp/optware-install.sh
    wget: server returned error 404: HTTP/1.1 404 Not Found
    # wget http://www.wlan-sat.com/boleo/optwar...stall-ddwrt.sh -O - | tr -d '\r' >
    /tmp/optware-install.sh sh /tmp/optware-install.sh
    wget: server returned error 404: HTTP/1.1 404 Not Found
    # wget http://www.wlan-sat.com/boleo/optware/optware-install-ddwrt.sh -O - | tr
    -d '\r' > /tmp/optware-install.sh
    # sh /tmp/optware-install.sh
    Checking system config ...
    Using 84.235.124.8 as default gateway.
    Using the following nameserver(s):
    nameserver 127.0.0.1
    Installing package uclibc-opt_0.9.28-13_mipsel.ipk ...
    Connecting to ipkg.nslu2-linux.org[140.211.169.169]:80
    Updating /opt/etc/ld.so.cache
    Installing package ipkg-opt_0.99.163-10_mipsel.ipk ...
    Connecting to ipkg.nslu2-linux.org[140.211.169.169]:80
    wget: Unable to connect to remote host (140.211.169.169): Connection timed out
    tar: Short read
    tar: /tmp/control.tar.gz: No such file or directory
    tar: /tmp/data.tar.gz: No such file or directory
    /tmp/optware-install.sh: /tmp/optware-install.sh: 91: /opt/bin/ipkg: not found
    /tmp/optware-install.sh: /tmp/optware-install.sh: 92: /opt/bin/ipkg: not found
    /tmp/optware-install.sh: /tmp/optware-install.sh: 93: /opt/bin/ipkg: not found
    # export PATH=/opt/bin:/opt/sbin:$PATH
    # unset LD_LIBRARY_PATH
    # sh /tmp/optware-install.sh
    Checking system config ...
    Using 84.235.124.8 as default gateway.
    Using the following nameserver(s):
    nameserver 127.0.0.1
    Warning: /opt partition not empty!
    Installing package uclibc-opt_0.9.28-13_mipsel.ipk ...
    Connecting to ipkg.nslu2-linux.org[140.211.169.169]:80
    Updating /opt/etc/ld.so.cache
    Installing package ipkg-opt_0.99.163-10_mipsel.ipk ...
    Connecting to ipkg.nslu2-linux.org[140.211.169.169]:80
    Downloading http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/Package
    s.gz
    Inflating http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/Packages.
    gz
    Updated list of available packages in /opt/lib/ipkg/lists/optware
    Successfully terminated.
    Installing uclibc-opt (0.9.28-13) to /opt/...
    Downloading http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/uclibc-
    opt_0.9.28-13_mipsel.ipk
    package uclibc-opt suggests installing ipkg-opt
    Configuring uclibc-opt
    Updating /opt/etc/ld.so.cache
    Successfully terminated.
    Installing ipkg-opt (0.99.163-10) to /opt/...
    Downloading http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/ipkg-op
    t_0.99.163-10_mipsel.ipk
    Configuring ipkg-opt
    Successfully terminated.
    #


    Is that ok?
    What is next?
    How to access the usb memory from my pc?
    what steps to transfer files between pc and usb?

    10x
  69. fineghal

    fineghal Addicted to LI Member

    QoS Problems

    It could just be me - but I had SERIOUS QoS problems when using this mod - don't get me wrong it was great speed-wise but I set QoS by port - mac - IP with LOWEST on all and whenever the laptop had torrents running no one else could get to the internet (Mother's words... Sigh). I even turned on L7 and I2P filters (also lowest) outbound and inbound to no effect.

    Any ideas? I've switched back to vanilla 1.21 for now - whose qos seems to be a fair bit better.
  70. CBR900

    CBR900 Addicted to LI Member

    - Create ext3 filesystem on second partition 'mkfs.ext3 -I 128 /dev/sdf2 -L router' (note the -I 128)
    [/QUOTE]

    I get error with inodes...I think it has to do with "I 128".

    I have a 1GB usb memory and I made 2 partitions (100MB swap and 900MB ext3)

    what should I change in the command to make it work? please help

    10x
    ========================================================



    update:

    I used mkfs.ext3 /dev/sdf2 and it formates it to ex3.

    and then I followed the remaining steps and got:

    # modprobe usbcore
    # modprobe usbcore
    # modprobe ehci-hcd
    # modprobe scsi_mod
    # modprobe usb-storage
    # modprobe sd_mod
    # modprobe sd_mod
    # modprobe ext3
    # modprobe ext3
    # sleep 3
    # mount /dev/scsi/host0/bus0/target0/lun0/part2 /mnt
    # mkdir /mnt/opt-tomato
    # mount -o bind /mnt/opt-tomato /opt
    # wget http://www.wlan-sat.com/boleo/optwar...stall-ddwrt.sh -O - | tr -d '\r' >
    /tmp/optware-install.sh
    wget: server returned error 404: HTTP/1.1 404 Not Found
    # wget http://www.wlan-sat.com/boleo/optwar...stall-ddwrt.sh -O - | tr -d '\r' >
    /tmp/optware-install.sh sh /tmp/optware-install.sh
    wget: server returned error 404: HTTP/1.1 404 Not Found
    # wget http://www.wlan-sat.com/boleo/optware/optware-install-ddwrt.sh -O - | tr
    -d '\r' > /tmp/optware-install.sh
    # sh /tmp/optware-install.sh
    Checking system config ...
    Using 84.235.124.8 as default gateway.
    Using the following nameserver(s):
    nameserver 127.0.0.1
    Installing package uclibc-opt_0.9.28-13_mipsel.ipk ...
    Connecting to ipkg.nslu2-linux.org[140.211.169.169]:80
    Updating /opt/etc/ld.so.cache
    Installing package ipkg-opt_0.99.163-10_mipsel.ipk ...
    Connecting to ipkg.nslu2-linux.org[140.211.169.169]:80
    wget: Unable to connect to remote host (140.211.169.169): Connection timed out
    tar: Short read
    tar: /tmp/control.tar.gz: No such file or directory
    tar: /tmp/data.tar.gz: No such file or directory
    /tmp/optware-install.sh: /tmp/optware-install.sh: 91: /opt/bin/ipkg: not found
    /tmp/optware-install.sh: /tmp/optware-install.sh: 92: /opt/bin/ipkg: not found
    /tmp/optware-install.sh: /tmp/optware-install.sh: 93: /opt/bin/ipkg: not found
    # export PATH=/opt/bin:/opt/sbin:$PATH
    # unset LD_LIBRARY_PATH
    # sh /tmp/optware-install.sh
    Checking system config ...
    Using 84.235.124.8 as default gateway.
    Using the following nameserver(s):
    nameserver 127.0.0.1
    Warning: /opt partition not empty!
    Installing package uclibc-opt_0.9.28-13_mipsel.ipk ...
    Connecting to ipkg.nslu2-linux.org[140.211.169.169]:80
    Updating /opt/etc/ld.so.cache
    Installing package ipkg-opt_0.99.163-10_mipsel.ipk ...
    Connecting to ipkg.nslu2-linux.org[140.211.169.169]:80
    Downloading http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/Package
    s.gz
    Inflating http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/Packages.
    gz
    Updated list of available packages in /opt/lib/ipkg/lists/optware
    Successfully terminated.
    Installing uclibc-opt (0.9.28-13) to /opt/...
    Downloading http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/uclibc-
    opt_0.9.28-13_mipsel.ipk
    package uclibc-opt suggests installing ipkg-opt
    Configuring uclibc-opt
    Updating /opt/etc/ld.so.cache
    Successfully terminated.
    Installing ipkg-opt (0.99.163-10) to /opt/...
    Downloading http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/ipkg-op
    t_0.99.163-10_mipsel.ipk
    Configuring ipkg-opt
    Successfully terminated.
    #


    Is that ok?
    What is next?
    How to access the usb memory from my pc?
    what steps to transfer files between pc and usb?

    10x[/QUOTE]


    @wdca please help
  71. pswayze

    pswayze Networkin' Nut Member

    Hey man, it looks like you've been working hard on this. Someone sent me to this thread because they said your firmware can do what I want. So I want to show some sort of page when someone logs on to my Wi-Fi to tell them to play nice or they will not be allowed on the network. Kind of like the page you get when you get Wi-Fi at the airport. They don't need to be added to any sort of whitelist, I just want them to see this "Warning" page and then have access. Any suggestions? Is there anyway to do this?
  72. wdca

    wdca Addicted to LI Member

    I get error with inodes...I think it has to do with "I 128".

    I have a 1GB usb memory and I made 2 partitions (100MB swap and 900MB ext3)

    what should I change in the command to make it work? please help

    10x
    ========================================================



    update:

    I used mkfs.ext3 /dev/sdf2 and it formates it to ex3.

    and then I followed the remaining steps and got:

    # modprobe usbcore
    # modprobe usbcore
    # modprobe ehci-hcd
    # modprobe scsi_mod
    # modprobe usb-storage
    # modprobe sd_mod
    # modprobe sd_mod
    # modprobe ext3
    # modprobe ext3
    # sleep 3
    # mount /dev/scsi/host0/bus0/target0/lun0/part2 /mnt
    # mkdir /mnt/opt-tomato
    # mount -o bind /mnt/opt-tomato /opt
    # wget http://www.wlan-sat.com/boleo/optwar...stall-ddwrt.sh -O - | tr -d '\r' >
    /tmp/optware-install.sh
    wget: server returned error 404: HTTP/1.1 404 Not Found
    # wget http://www.wlan-sat.com/boleo/optwar...stall-ddwrt.sh -O - | tr -d '\r' >
    /tmp/optware-install.sh sh /tmp/optware-install.sh
    wget: server returned error 404: HTTP/1.1 404 Not Found
    # wget http://www.wlan-sat.com/boleo/optware/optware-install-ddwrt.sh -O - | tr
    -d '\r' > /tmp/optware-install.sh
    # sh /tmp/optware-install.sh
    Checking system config ...
    Using 84.235.124.8 as default gateway.
    Using the following nameserver(s):
    nameserver 127.0.0.1
    Installing package uclibc-opt_0.9.28-13_mipsel.ipk ...
    Connecting to ipkg.nslu2-linux.org[140.211.169.169]:80
    Updating /opt/etc/ld.so.cache
    Installing package ipkg-opt_0.99.163-10_mipsel.ipk ...
    Connecting to ipkg.nslu2-linux.org[140.211.169.169]:80
    wget: Unable to connect to remote host (140.211.169.169): Connection timed out
    tar: Short read
    tar: /tmp/control.tar.gz: No such file or directory
    tar: /tmp/data.tar.gz: No such file or directory
    /tmp/optware-install.sh: /tmp/optware-install.sh: 91: /opt/bin/ipkg: not found
    /tmp/optware-install.sh: /tmp/optware-install.sh: 92: /opt/bin/ipkg: not found
    /tmp/optware-install.sh: /tmp/optware-install.sh: 93: /opt/bin/ipkg: not found
    # export PATH=/opt/bin:/opt/sbin:$PATH
    # unset LD_LIBRARY_PATH
    # sh /tmp/optware-install.sh
    Checking system config ...
    Using 84.235.124.8 as default gateway.
    Using the following nameserver(s):
    nameserver 127.0.0.1
    Warning: /opt partition not empty!
    Installing package uclibc-opt_0.9.28-13_mipsel.ipk ...
    Connecting to ipkg.nslu2-linux.org[140.211.169.169]:80
    Updating /opt/etc/ld.so.cache
    Installing package ipkg-opt_0.99.163-10_mipsel.ipk ...
    Connecting to ipkg.nslu2-linux.org[140.211.169.169]:80
    Downloading http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/Package
    s.gz
    Inflating http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/Packages.
    gz
    Updated list of available packages in /opt/lib/ipkg/lists/optware
    Successfully terminated.
    Installing uclibc-opt (0.9.28-13) to /opt/...
    Downloading http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/uclibc-
    opt_0.9.28-13_mipsel.ipk
    package uclibc-opt suggests installing ipkg-opt
    Configuring uclibc-opt
    Updating /opt/etc/ld.so.cache
    Successfully terminated.
    Installing ipkg-opt (0.99.163-10) to /opt/...
    Downloading http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/ipkg-op
    t_0.99.163-10_mipsel.ipk
    Configuring ipkg-opt
    Successfully terminated.
    #


    Is that ok?
    What is next?
    How to access the usb memory from my pc?
    what steps to transfer files between pc and usb?

    10x[/QUOTE]


    @wdca please help[/QUOTE]
    1. You must not install optware, it's only for those guys who want to install frop ipkg.
    2. Follow only the steps
    Code:
    modprobe usbcore
    modprobe ehci-hcd
    modprobe scsi_mod
    modprobe usb-storage
    modprobe sd_mod
    modprobe ext3
    sleep 3
    
    mkdir /mnt/storage
    mount /dev/scsi/host0/bus0/target0/lun0/part2 /mnt/storage
    
    Now you can acces your pendrive/hdd at /mnt/storage
  73. wdca

    wdca Addicted to LI Member

    It's easy to be done but it's unfortunately time wasting and it's not practical. Sorry
    Best regards.
  74. CBR900

    CBR900 Addicted to LI Member

    [/QUOTE]

    @wdca please help[/QUOTE]
    1. You must not install optware, it's only for those guys who want to install frop ipkg.
    2. Follow only the steps
    Code:
    modprobe usbcore
    modprobe ehci-hcd
    modprobe scsi_mod
    modprobe usb-storage
    modprobe sd_mod
    modprobe ext3
    sleep 3
    
    mkdir /mnt/storage
    mount /dev/scsi/host0/bus0/target0/lun0/part2 /mnt/storage
    
    Now you can acces your pendrive/hdd at /mnt/storage[/QUOTE]

    What program to use to access the usb memory from my pc ?

    help please
  75. wdca

    wdca Addicted to LI Member

    What program to use to access the usb memory from my pc ?

    help please[/QUOTE]
    Follow the steps!
    Use LINUX to format your usb memory.^^^^^^^^^^^
  76. wdca

    wdca Addicted to LI Member

  77. Davka

    Davka Addicted to LI Member

    Maciek a kiedy można się spodziewać releasu z VPN? :D
    I brawa za Twoją pracę!
  78. CBR900

    CBR900 Addicted to LI Member

    I just installed TrzepakoTomato-1.21.0009.7z for my asus wl-500gp

    and I applied the following commands:
    Code:
    modprobe usbcore
    modprobe ehci-hcd
    modprobe scsi_mod
    modprobe usb-storage
    modprobe sd_mod
    modprobe ext3
    sleep 3
    
    mkdir /mnt/storage
    mount /dev/scsi/host0/bus0/target0/lun0/part2 /mnt/storage
    Now I need to know how to transfer files between usb memory and PC please

    10x alot
  79. wdca

    wdca Addicted to LI Member

    Wlasnie mecze VPN. Please speak ENG :p

    @CBR900
    You could use the http deamon to download the files. Mainly you must install optware to run ftp or smb deamon. I can't write a howto at this time because i do not have a ASUS router.
    Ask Vladimir (that guy who helped me to test USB [see other posts])
  80. non7top

    non7top Networkin' Nut Member

    Hey, I'm back here after i have my router died and resurrected with 9pin trick :)

    @CBR900
    For now there are now easy way to transfer files to/from router. You may need to install and configure samba package from Optware, but i haven't tried that so far.
    I hope wdca could add nfs support to the kernel, so linux users can access router storage easily. ^^

    @pswayze
    You should try dd-wrt, it has all such options

    @wdca
    I'm going to update firmware to the latest version and test, and after that i will add my comments and wishes about it ;)
  81. non7top

    non7top Networkin' Nut Member

    After some testing the latest version I can see lots of room for improvement :)
    1. USB storage debugging seems to be still enabled

    Sep 21 02:24:56 r usb-storage: Bulk data transfer result 0x0
    Sep 21 02:24:56 r usb-storage: Attempting to get CSW...
    Sep 21 02:24:56 r usb-storage: Bulk status result = 0
    Sep 21 02:24:56 r usb-storage: Bulk status Sig 0x53425355 T 0x7321 R 0 Stat 0x0
    Sep 21 02:24:56 r usb-storage: scsi cmd done, result=0x0
    Sep 21 02:24:56 r usb-storage: *** thread sleeping.
    Sep 21 02:24:56 r usb-storage: queuecommand() called
    Sep 21 02:24:56 r usb-storage: *** thread awakened.
    Sep 21 02:24:56 r usb-storage: Command WRITE_10 (10 bytes)
    Sep 21 02:24:56 r usb-storage: 2a 00 00 03 41 e0 00 00 08 00 dc 81
    Sep 21 02:24:56 r usb-storage: Bulk command S 0x43425355 T 0x7322 Trg 0 LUN 0 L 4096 F 0 CL 10
    Sep 21 02:24:56 r usb-storage: Bulk command transfer result=0
    Sep 21 02:24:56 r usb-storage: usb_stor_transfer_partial(): xfer 4096 bytes
    Sep 21 02:24:56 r usb-storage: usb_stor_bulk_msg() returned 0 xferred 4096/4096
    Sep 21 02:24:56 r usb-storage: usb_stor_transfer_partial(): transfer complete
    Sep 21 02:24:56 r usb-storage: Bulk data transfer result 0x0
    Sep 21 02:24:56 r usb-storage: Attempting to get CSW...
    Sep 21 02:24:56 r usb-storage: Bulk status result = 0
    Sep 21 02:24:56 r usb-storage: Bulk status Sig 0x53425355 T 0x7322 R 0 Stat 0x0
    Sep 21 02:24:56 r usb-storage: scsi cmd done, result=0x0
    Sep 21 02:24:56 r usb-storage: *** thread sleeping.

    2. There is no web interface for managing usb. I will take a closer look at how web interface pages are created
    3. passwd utility is missing ;) but it can be replaced by web interface (see #2)
    4. would be great to have nfs support in kernel

    i think wdca could split firmware builds into two branches: with and without usb, as usb support can increase the size of the image, while it is only required for asus routers. but its up to him to decide
  82. wdca

    wdca Addicted to LI Member

    1. That is strange, because i've had disabled the usb debugging.
    2. I've had only timie to fix small bugs
    4. Great idea !
    5. It's a good idea !
  83. CBR900

    CBR900 Addicted to LI Member

    Hi...

    While I was searching in the internet I found "USB and WebCAM support for DD-WRT"
    _http://www.dd-wrt.com/phpBB2/viewtopic.php?p=99564#99564

    I hope it can be helpful.
  84. mactogo

    mactogo Networkin' Nut Member

    @wdca et al.
    Thank you for your effort in this project. I believe usb support is the one major thing lacking from tomato firmware. I hope this will soon be perfected. I also hope usb printing can be incoroprated. Closely monitoring this thread for further developments. Keep up the good work!
  85. non7top

    non7top Networkin' Nut Member

    I've installed samba3 from Optware, but network copy performance is horrible^ abot 150-170 kB/c. Now i'm working on resolving this and waiting for nfs support in the firmware ;)
    btw writing to usb hdd is about 2-4mB/s
  86. non7top

    non7top Networkin' Nut Member

    @wdca
    any news?
  87. jo_gurt

    jo_gurt Networkin' Nut Member

    non7top, maybe some simple tutorial on installing optware and samba? I can't quite figure it out by myself. I'd really appreciate it. I've managed to mount my HDD on the Asus router powered by TrzepakoTomato 1.21 (greetz to warlock), but I get lost in all paths opt needs.

    My startup script...
    Code:
    modprobe usbcore
    modprobe usb-storage
    modprobe usb-ohci
    modprobe uhci
    modprobe sd_mod
    modprobe ext3
    
    mkdir /mnt/usb0
    mount /dev/scsi/host0/bus0/target0/lun0/part2 /mnt/usb0/
    mount -o bind /mnt/usb0/opt /opt
    
    export IPKG_CONF_DIR=/mnt/usb0/opt/etc
    ACTIVATE_SWAP=/dev/scsi/host0/bus0/target0/lun0/part1
    ...and ipkg.conf
    Code:
    Uncomment the following line for native packages feed (if any)
    #src/gz native http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/native/stable
    src/gz optware http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable
    dest /mnt/usb0/opt /mnt/usb0/opt
    option verbose-wget
    Can't even get ipkg to update.
  88. juggie

    juggie Networkin' Nut Member

    Would it be possible to build this for the ND drivers?
  89. jo_gurt

    jo_gurt Networkin' Nut Member

    OK, I managed to set up samba2 on my Asus, but copying is horribly slow - approx. 1MB/s or less :/
    Any ideas?

    EDIT:
    Code:
    # free
                  total         used         free       shared      buffers
      Mem:        30660        29924          736            0          596
     Swap:            0            0            0
    Total:        30660        29924          736
    #
    ...not so good.

    How can I activate swap partition?
  90. non7top

    non7top Networkin' Nut Member

    you need to install util-linux and maybe coreutils, then dd, mkswap, swapon
    and I also have very bad performance - also about 1mB/s. I will try to test ftp server hoping the speed will increase to 2-3mB/s. But the maximum speed of usb on asus is 4mb
    Code:
    free -k
                 total       used       free     shared    buffers     cached
    Mem:         30660      29804        856          0        704      20864
    -/+ buffers/cache:       8236      22424
    Swap:       511992      12380     499612
    
  91. wdca

    wdca Addicted to LI Member

  92. Toastman

    Toastman Super Moderator Staff Member Member

    Thanks Maciej!
  93. peyton

    peyton Networkin' Nut Member

  94. wdca

    wdca Addicted to LI Member

    TT-12(BIGGER image)it is designed for ASUS Premium v1:
    -USB
    -FIleSystem support
    -OpenVPN
    -TM
    TT-13(smaller image)it is designed for WRT54G/GL/GS
    It's without USB and FS support

    Greets :)
  95. mactogo

    mactogo Networkin' Nut Member

    If I may ask, is USB printer support also included in the firmware?
  96. wdca

    wdca Addicted to LI Member

    No it isn't. It will be included(near future), because many people are asking for the p910 drivers.
  97. dadaniel

    dadaniel LI Guru Member

    Thank you for that great peace of software, the new features are very great :)


    A few questions:

    What does 'Advanced - Application Limit' do? Does it mean I can restrict some ip for example to "only web-browsing"?
    Or does it mean i can block some programs?

    Is there an easy tool to generate the certificates for vpn client and server?

    What does IPID Adjust do?

    What does 'Limit unlisted machines' in ARP Binding do? Some people reported that unknown machines could access the internet even if that option is selected.


    greetings
    Daniel
  98. wdca

    wdca Addicted to LI Member

    Block programs
    openssl
    It's made to be for china are only.(Chinese government makes a censored version of the inet and IPID helps to bypass it).
    .
    It's the same as the Static ARP table effect
  99. peyton

    peyton Networkin' Nut Member

    I have a question about VPN.
    I'm in TLS mode.

    What do we have to put in DH parameters ?

    I generated (with openvpn) my CA, server certificate and my server key but the deamon quit when i tried to launch it with a error on DH parameters. :confused:
    (As i don't know what i have to put in it i left it blank.)

    Thanks in advance.
  100. CBR900

    CBR900 Addicted to LI Member

    Hi...

    please write a newbie howto for using USB pendrive in this TT-12

    10x alot

Share This Page