Page 51 of 64 FirstFirst ... 41495051525361 ... LastLast
Results 751 to 765 of 958

Thread: [HowTo] Install and configure Oleg's firmware

  1. #751
    Quote Originally Posted by wengi View Post
    Hi RDF,

    Informations needed!!
    Sorry, I should have been more informative!

    Quote Originally Posted by wengi View Post
    - Hardware?
    WL-500W (It's almost identical to the Premiums, that's why I post here. Ethernet cable on WAN and LAN1
    500 GB Lacie USB-HDD with external power.
    Partitions:
    part1=1GB swap,
    part2=1GB ipkg,
    part3=the rest

    Quote Originally Posted by wengi View Post
    - Firmware?
    1.9.2.7-d-r740

    Quote Originally Posted by wengi View Post
    - Full install of my HowTo?
    Not all. I did everything up to the HDD installation a few weeks ago. Yesterday I got a hard drive and followed from there in this order:
    • the whole HDD section (I copied your scripts, see below)
    • IPKG preparations and installation
    • the basic tools (programs) through ipkg
    • transmission through ipkg


    Everything went smooth!

  2. #752
    Quote Originally Posted by wengi View Post
    - log files (dmesg, syslog, anything else that could help).
    This is going to be lengthy... I have to divide into multiple posts. If you think we should discuss this in a different thread, please let me know. I almost feel like a spammer!

    dmesg
    Code:
    CPU revision is: 00029006
    Primary instruction cache 16kB, physically tagged, 2-way, linesize 16 bytes.
    Primary data cache 16kB, 2-way, linesize 16 bytes.
    Linux version 2.4.37.6 (root@localhost) (gcc version 3.4.6) #9 2009-10-30 20:22:17 MSK
    Setting the PFC to its default value
    Determined physical RAM map:
     memory: 02000000 @ 00000000 (usable)
    On node 0 totalpages: 8192
    zone(0): 8192 pages.
    zone(1): 0 pages.
    zone(2): 0 pages.
    Kernel command line: root=/dev/mtdblock2 rootfstype=squashfs,ext3 noinitrd init=/linuxrc console=ttyS0,115200
    CPU: BCM4704 rev 9 pkg 0 at 264 MHz
    Using 132.000 MHz high precision timer.
    Calibrating delay loop... 3.27 BogoMIPS
    Memory: 30080k/32768k available (1763k kernel code, 2688k reserved, 236k data, 88k init, 0k highmem)
    Dentry cache hash table entries: 4096 (order: 3, 32768 bytes)
    Inode cache hash table entries: 2048 (order: 2, 16384 bytes)
    Mount cache hash table entries: 512 (order: 0, 4096 bytes)
    Buffer cache hash table entries: 1024 (order: 0, 4096 bytes)
    Page-cache hash table entries: 8192 (order: 3, 32768 bytes)
    Checking for 'wait' instruction...  unavailable.
    POSIX conformance testing by UNIFIX
    PCI: Initializing host
    PCI: Fixing up bus 0
    PCI: Fixing up bridge
    PCI: Setting latency timer of device 01:00.0 to 64
    PCI: Fixing up bus 1
    Linux NET4.0 for Linux 2.4
    Based upon Swansea University Computer Society NET3.039
    Initializing RT netlink socket
    Starting kswapd
    Journalled Block Device driver loaded
    devfs: v1.12c (20020818) Richard Gooch (rgooch@atnf.csiro.au)
    devfs: boot_options: 0x1
    NTFS driver v1.1.22 [Flags: R/O]
    squashfs: version 3.0 (2006/03/15) Phillip Lougher
    pty: 256 Unix98 ptys configured
    Serial driver version 5.05c (2001-07-08) with MANY_PORTS SHARE_IRQ SERIAL_PCI enabled
    ttyS00 at 0xb8000300 (irq = 3) is a 16550A
    ttyS01 at 0xb8000400 (irq = 3) is a 16550A
    HDLC line discipline: version $Revision: 3.7 $, maxframe=4096
    N_HDLC line discipline registered.
    loop: loaded (max 8 devices)
    PPP generic driver version 2.4.2
    PPP Deflate Compression module registered
    PPP BSD Compression module registered
    MPPE/MPPC encryption/compression module registered
    PPPoL2TP kernel driver, V0.15.1
    PPTP driver version 0.8.4
    Physically mapped flash: Found an alias at 0x800000 for the chip at 0x0
    Physically mapped flash: Found an alias at 0x1000000 for the chip at 0x0
    Physically mapped flash: Found an alias at 0x1800000 for the chip at 0x0
     Amd/Fujitsu Extended Query Table v1.3 at 0x0040
     Flash Id: Vendor: 0x0001 Device: 0x007e
    number of CFI chips: 1
    cfi_cmdset_0002: Disabling fast programming due to code brokenness.
    Flash device: 0x800000 at 0x1c000000
    Physically mapped flash: squashfs filesystem found at block 915
    Creating 5 MTD partitions on "Physically mapped flash":
    0x00000000-0x00040000 : "boot"
    0x00040000-0x007f0000 : "linux"
    0x000e4c50-0x007f0000 : "rootfs"
    0x007f0000-0x00800000 : "nvram"
    0x003e0000-0x007f0000 : "flashfs"
    sflash: found no supported devices
    Initializing Cryptographic API
    NET4: Linux TCP/IP 1.0 for NET4.0
    IP Protocols: ICMP, UDP, TCP, IGMP
    IP: routing cache hash table of 4096 buckets, 32Kbytes
    TCP: Hash tables configured (established 2048 bind 4096)
    Linux IP multicast router 0.06 plus PIM-SM
    ip_conntrack version 2.1 (5953 buckets, 11906 max) - 328 bytes per conntrack
    ip_conntrack_pptp version 1.9 loaded
    ip_nat_pptp version 1.5 loaded
    ip_tables: (C) 2000-2002 Netfilter core team
    ipt_time loading
    NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
    NET4: Ethernet Bridge 008 for NET4.0
    802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
    All bugs added by David S. Miller <davem@redhat.com>
    VFS: Mounted root (squashfs filesystem) readonly.
    Mounted devfs on /dev
    Freeing unused kernel memory: 88k freed
    Algorithmics/MIPS FPU Emulator v1.5
    PCI: Setting latency timer of device 00:01.0 to 64
    unregister_netdevice: device eth0/8107f400 never was registered
    PCI: Setting latency timer of device 00:02.0 to 64
    unregister_netdevice: device eth0/8107f400 never was registered
    PCI: Setting latency timer of device 01:02.0 to 64
    PCI: Enabling device 01:02.0 (0004 -> 0006)
    eth0: Broadcom BCM4329 802.11 Wireless Controller 4.150.10.29
    device eth0 entered promiscuous mode
    br0: port 1(eth0) entering learning state
    br0: port 1(eth0) entering forwarding state
    br0: topology change detected, propagating
    usb.c: registered new driver usbdevfs
    usb.c: registered new driver hub
    usb-uhci.c: $Revision: 1.275 $ time 20:19:57 Oct 27 2009
    usb-uhci.c: High bandwidth mode enabled
    PCI: Enabling device 01:03.0 (0000 -> 0001)
    UHCI: Enabling VIA 6212 workarounds
    usb-uhci.c: USB UHCI at I/O 0x100, IRQ 12
    usb-uhci.c: Detected 2 ports
    usb.c: new USB bus registered, assigned bus number 1
    hub.c: USB hub found
    hub.c: 2 ports detected
    PCI: Enabling device 01:03.1 (0000 -> 0001)
    UHCI: Enabling VIA 6212 workarounds
    usb-uhci.c: USB UHCI at I/O 0x120, IRQ 12
    usb-uhci.c: Detected 2 ports
    usb.c: new USB bus registered, assigned bus number 2
    hub.c: USB hub found
    hub.c: 2 ports detected
    usb-uhci.c: v1.275:USB Universal Host Controller Interface driver
    PCI: Enabling device 01:03.2 (0000 -> 0002)
    ehci_hcd 01:03.2: PCI device 1106:3104
    ehci_hcd 01:03.2: irq 12, pci mem c0194000
    usb.c: new USB bus registered, assigned bus number 3
    EHCI: Enabling VIA 6212 workarounds
    ehci_hcd 01:03.2: USB 2.0 enabled, EHCI 1.00, driver 10 Dec 2004/2.4
    hub.c: USB hub found
    hub.c: 4 ports detected
    usb.c: registered new driver usblp
    printer.c: v0.13: USB Printer Device Class driver
    SCSI subsystem driver Revision: 1.00
    Initializing USB Mass Storage driver...
    usb.c: registered new driver usb-storage
    USB Mass Storage support registered.
    usb.c: deregistering driver usblp
    hub.c: new USB device 01:03.2-1, assigned address 2
    scsi0 : SCSI emulation for USB Mass Storage devices
      Vendor: Hitachi   Model: HDT721050SLA360   Rev:     
      Type:   Direct-Access                      ANSI SCSI revision: 02
    Attached scsi disk sda at scsi0, channel 0, id 0, lun 0
    SCSI device sda: 976773168 512-byte hdwr sectors (500108 MB)
    Partition check:
     /dev/scsi/host0/bus0/target0/lun0: p1 p2 p3
    WARNING: USB Mass Storage data integrity not assured
    USB Mass Storage device found at 2
    Adding Swap: 1060248k swap-space (priority -1)
    kjournald starting.  Commit interval 5 seconds
    EXT3 FS 2.4-0.9.19, 19 August 2002 on sd(8,2), internal journal
    EXT3-fs: mounted filesystem with ordered data mode.
    kjournald starting.  Commit interval 5 seconds
    EXT3 FS 2.4-0.9.19, 19 August 2002 on sd(8,3), internal journal
    EXT3-fs: mounted filesystem with ordered data mode.

  3. #753
    syslog.log
    Code:
    Jan  1 02:00:01 syslogd started: BusyBox v1.15.2
    Jan  1 02:00:01 kernel: klogd started: BusyBox v1.15.2 (2009-10-30 20:19:08 MSK)
    Jan  1 02:00:01 kernel: CPU revision is: 00029006
    Jan  1 02:00:01 kernel: Primary instruction cache 16kB, physically tagged, 2-way, linesize 16 bytes.
    Jan  1 02:00:01 kernel: Primary data cache 16kB, 2-way, linesize 16 bytes.
    Jan  1 02:00:01 kernel: Linux version 2.4.37.6 (root@localhost) (gcc version 3.4.6) #9 2009-10-30 20:22:17 MSK
    Jan  1 02:00:01 kernel: Setting the PFC to its default value
    Jan  1 02:00:01 kernel: Determined physical RAM map:
    Jan  1 02:00:01 kernel:  memory: 02000000 @ 00000000 (usable)
    Jan  1 02:00:01 kernel: On node 0 totalpages: 8192
    Jan  1 02:00:01 kernel: zone(0): 8192 pages.
    Jan  1 02:00:01 kernel: zone(1): 0 pages.
    Jan  1 02:00:01 dnsmasq[44]: started, version 2.51 cachesize 512
    Jan  1 02:00:01 dnsmasq[44]: compile time options: no-IPv6 GNU-getopt no-RTC no-DBus no-I18N DHCP no-scripts no-TFTP
    Jan  1 02:00:01 dnsmasq-dhcp[44]: DHCP, IP range 192.168.100.2 -- 192.168.100.254, lease time 1d
    Jan  1 02:00:01 dnsmasq[44]: read /etc/hosts - 2 addresses
    Jan  1 02:00:01 dnsmasq[44]: using nameserver 94.237.0.27#53
    Jan  1 02:00:01 dnsmasq[44]: using nameserver 94.237.0.26#53
    Jan  1 02:00:01 kernel: PCI: Enabling device 01:02.0 (0004 -> 0006)
    Jan  1 02:00:01 kernel: eth0: Broadcom BCM4329 802.11 Wireless Controller 4.150.10.29
    Jan  1 02:00:01 kernel: device eth0 entered promiscuous mode
    Jan  1 02:00:01 kernel: br0: port 1(eth0) entering learning state
    Jan  1 02:00:01 kernel: br0: port 1(eth0) entering forwarding state
    Jan  1 02:00:01 kernel: br0: topology change detected, propagating
    Jan  1 02:00:02 kernel: usb.c: registered new driver usbdevfs
    Jan  1 02:00:02 kernel: usb.c: registered new driver hub
    Jan  1 02:00:02 kernel: usb-uhci.c: $Revision: 1.275 $ time 20:19:57 Oct 27 2009
    Jan  1 02:00:02 kernel: usb-uhci.c: High bandwidth mode enabled
    Jan  1 02:00:02 kernel: PCI: Enabling device 01:03.0 (0000 -> 0001)
    Jan  1 02:00:02 kernel: UHCI: Enabling VIA 6212 workarounds
    Jan  1 02:00:02 kernel: usb-uhci.c: USB UHCI at I/O 0x100, IRQ 12
    Jan  1 02:00:02 kernel: usb-uhci.c: Detected 2 ports
    Jan  1 02:00:02 kernel: usb.c: new USB bus registered, assigned bus number 1
    Jan  1 02:00:02 kernel: hub.c: USB hub found
    Jan  1 02:00:02 kernel: hub.c: 2 ports detected
    Jan  1 02:00:02 kernel: PCI: Enabling device 01:03.1 (0000 -> 0001)
    Jan  1 02:00:02 kernel: UHCI: Enabling VIA 6212 workarounds
    Jan  1 02:00:02 kernel: usb-uhci.c: USB UHCI at I/O 0x120, IRQ 12
    Jan  1 02:00:02 kernel: usb-uhci.c: Detected 2 ports
    Jan  1 02:00:02 kernel: usb.c: new USB bus registered, assigned bus number 2
    Jan  1 02:00:02 kernel: hub.c: USB hub found
    Jan  1 02:00:02 kernel: hub.c: 2 ports detected
    Jan  1 02:00:02 kernel: usb-uhci.c: v1.275:USB Universal Host Controller Interface driver
    Jan  1 02:00:02 kernel: PCI: Enabling device 01:03.2 (0000 -> 0002)
    Jan  1 02:00:02 kernel: ehci_hcd 01:03.2: PCI device 1106:3104
    Jan  1 02:00:02 kernel: ehci_hcd 01:03.2: irq 12, pci mem c0194000
    Jan  1 02:00:02 kernel: usb.c: new USB bus registered, assigned bus number 3
    Jan  1 02:00:02 kernel: EHCI: Enabling VIA 6212 workarounds
    Jan  1 02:00:02 kernel: ehci_hcd 01:03.2: USB 2.0 enabled, EHCI 1.00, driver 10 Dec 2004/2.4
    Jan  1 02:00:02 kernel: hub.c: USB hub found
    Jan  1 02:00:02 kernel: hub.c: 4 ports detected
    Jan  1 02:00:02 kernel: usb.c: registered new driver usblp
    Jan  1 02:00:02 kernel: printer.c: v0.13: USB Printer Device Class driver
    Jan  1 02:00:03 kernel: SCSI subsystem driver Revision: 1.00
    Jan  1 02:00:03 kernel: Initializing USB Mass Storage driver...
    Jan  1 02:00:03 kernel: usb.c: registered new driver usb-storage
    Jan  1 02:00:03 kernel: USB Mass Storage support registered.
    Jan  1 02:00:03 kernel: usb.c: deregistering driver usblp
    Jan  1 02:00:03 kernel: hub.c: new USB device 01:03.2-1, assigned address 2
    Jan  1 02:00:04 kernel: scsi0 : SCSI emulation for USB Mass Storage devices
    Jan  1 02:00:04 kernel:   Vendor: Hitachi   Model: HDT721050SLA360   Rev:     
    Jan  1 02:00:04 kernel:   Type:   Direct-Access                      ANSI SCSI revision: 02
    Jan  1 02:00:04 kernel: Attached scsi disk sda at scsi0, channel 0, id 0, lun 0
    Jan  1 02:00:04 kernel: SCSI device sda: 976773168 512-byte hdwr sectors (500108 MB)
    Jan  1 02:00:04 kernel: Partition check:
    Jan  1 02:00:04 kernel:  /dev/scsi/host0/bus0/target0/lun0: p1 p2 p3
    Jan  1 02:00:13 kernel: Adding Swap: 1060248k swap-space (priority -1)
    Jan  1 02:00:13 kernel: kjournald starting.  Commit interval 5 seconds
    Jan  1 02:00:13 kernel: EXT3 FS 2.4-0.9.19, 19 August 2002 on sd(8,2), internal journal
    Jan  1 02:00:13 kernel: EXT3-fs: mounted filesystem with ordered data mode.
    Jan  1 02:00:13 kernel: kjournald starting.  Commit interval 5 seconds
    Jan  1 02:00:13 kernel: EXT3 FS 2.4-0.9.19, 19 August 2002 on sd(8,3), internal journal
    Jan  1 02:00:13 kernel: EXT3-fs: mounted filesystem with ordered data mode.
    Jan  1 02:00:13 USB storage: ext3 fs at /dev/discs/disc0/part3 mounted to /tmp/mnt/disc0_3
    Jan  1 02:00:13 rc.unslung: start service /opt/etc/init.d/S90transmission-daemon
    Jan  1 02:00:38 dnsmasq-dhcp[44]: DHCPREQUEST(br0) 192.168.100.38 00:1b:63:06:ea:1a 
    Jan  1 02:00:38 dnsmasq-dhcp[44]: DHCPACK(br0) 192.168.100.38 00:1b:63:06:ea:1a

  4. #754
    The final part of my post.

    $ ps w
    Code:
      PID USER       VSZ STAT COMMAND
        1 god        1312 S    /sbin/init 
        2 god           0 SW   [keventd]
        3 god           0 SWN  [ksoftirqd_CPU0]
        4 god           0 SW   [kswapd]
        5 god           0 SW   [bdflush]
        6 god           0 SW   [kupdated]
        7 god           0 SW   [mtdblockd]
       38 god        1108 S    httpd eth1 
       39 god        1072 S    nas /tmp/nas.lan.conf /tmp/nas.lan.pid lan 
       41 god        1516 S    syslogd -m 0 -O /tmp/syslog.log -S -l 7 -b 2 
       42 god        1516 S    klogd 
       44 nobody     832 S    dnsmasq 
       45 god           0 SW   [khubd]
       57 god        1316 S    watchdog 
       63 god           0 SW   [usb-storage-0]
       64 god           0 SW   [scsi_eh_0]
       73 god           0 SW   [kjournald]
       74 god           0 SW   [kjournald]
       84 god        6304 S N  /opt/bin/transmission-daemon -g /tmp/harddisk/transmission/config 
       85 god        6304 S N  /opt/bin/transmission-daemon -g /tmp/harddisk/transmission/config 
       86 god        6304 S N  /opt/bin/transmission-daemon -g /tmp/harddisk/transmission/config 
       97 god        1516 S    sh -c ps w > /tmp/syscmd.log 2>&1  
       98 god        1516 R    ps w
    As you can see dropbear should be running, because it's launched in /usr/local/sbin/post-firewall. I have disabled the default dropbear in the web GUI.



    $ lsmod
    Code:
        Tainted: P  
    usb-storage            63080   3
    sd_mod                 12660   6
    scsi_mod               72624   2 [usb-storage sd_mod]
    ehci-hcd               28212   0 (unused)
    usb-uhci               27412   0 (unused)
    usbcore                78840   1 [usb-storage ehci-hcd usb-uhci]
    ip_nat_ftp              3136   0 (unused)
    ip_conntrack_ftp        4584   1
    wl                    897336   0 (unused)
    No et module?!?



    $ ifconfig
    Code:
    br0       Link encap:Ethernet  HWaddr 00:1E:8C:72:28:ED  
              inet addr:192.168.100.1  Bcast:192.168.100.255  Mask:255.255.255.0
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:2909 errors:0 dropped:0 overruns:0 frame:0
              TX packets:4307 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:0 
              RX bytes:237804 (232.2 KiB)  TX bytes:4382975 (4.1 MiB)
    
    eth0      Link encap:Ethernet  HWaddr 00:1E:8C:72:28:ED  
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:2872 errors:0 dropped:0 overruns:0 frame:339
              TX packets:4439 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000 
              RX bytes:274156 (267.7 KiB)  TX bytes:4435594 (4.2 MiB)
              Interrupt:12 Base address:0x4000 
    
    lo        Link encap:Local Loopback  
              inet addr:127.0.0.1  Mask:255.0.0.0
              UP LOOPBACK RUNNING MULTICAST  MTU:16436  Metric:1
              RX packets:2806 errors:0 dropped:0 overruns:0 frame:0
              TX packets:2806 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:0 
              RX bytes:568755 (555.4 KiB)  TX bytes:568755 (555.4 KiB)
    No ethernet drivers? I suppose eth0 is the wireless card.



    $ route -an
    Code:
    Kernel IP routing table
    Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
    192.168.100.1   0.0.0.0         255.255.255.0   U     0      0        0 br0
    127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        0 lo


    $ netstat -an
    Code:
    Active Internet connections (servers and established)
    Proto Recv-Q Send-Q Local Address           Foreign Address         State       
    tcp        0      0 0.0.0.0:9091            0.0.0.0:*               LISTEN      
    tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      
    tcp        0      0 0.0.0.0:51413           0.0.0.0:*               LISTEN      
    tcp        0      0 0.0.0.0:53              0.0.0.0:*               LISTEN      
    tcp        0      0 192.168.100.1:80        192.168.100.38:55439    TIME_WAIT   
    tcp        0      0 192.168.100.1:80        192.168.100.38:55435    TIME_WAIT   
    tcp        0      0 192.168.100.1:80        192.168.100.38:55443    TIME_WAIT   
    tcp        0      0 192.168.100.1:80        192.168.100.38:55438    TIME_WAIT   
    tcp        0      0 192.168.100.1:80        192.168.100.38:55434    TIME_WAIT   
    tcp        0      0 192.168.100.1:80        192.168.100.38:55442    TIME_WAIT   
    tcp        0      0 192.168.100.1:80        192.168.100.38:55437    TIME_WAIT   
    tcp        0      0 192.168.100.1:80        192.168.100.38:55445    ESTABLISHED 
    tcp        0      0 192.168.100.1:80        192.168.100.38:55441    TIME_WAIT   
    tcp        0      0 192.168.100.1:80        192.168.100.38:55436    TIME_WAIT   
    tcp        0      0 192.168.100.1:80        192.168.100.38:55444    TIME_WAIT   
    tcp        0      0 192.168.100.1:80        192.168.100.38:55440    TIME_WAIT   
    udp        0      0 127.0.0.1:34954         0.0.0.0:*                           
    udp        0      0 0.0.0.0:53              0.0.0.0:*                           
    udp        0      0 0.0.0.0:67              0.0.0.0:*                           
    udp        0      0 0.0.0.0:51413           0.0.0.0:*                           
    Active UNIX domain sockets (servers and established)
    Proto RefCnt Flags       Type       State         I-Node Path
    unix  4      [ ]         DGRAM                       259 /dev/log
    unix  3      [ ]         STREAM     CONNECTED        595 
    unix  3      [ ]         STREAM     CONNECTED        594 
    unix  2      [ ]         DGRAM                       367 
    unix  2      [ ]         DGRAM                       366
    So httpd and transmission are listening. As you can see I'm controlling the router through httpd, as it is the only way to reach it.



    $ mount
    Code:
    rootfs on / type rootfs (rw)
    /dev/root on / type squashfs (ro)
    none on /dev type devfs (rw)
    proc on /proc type proc (rw)
    tmpfs on /tmp type tmpfs (rw,noatime)
    usbfs on /proc/bus/usb type usbfs (rw)
    /dev/discs/disc0/part2 on /opt type ext3 (rw,noatime)
    /dev/discs/disc0/part3 on /tmp/mnt/disc0_3 type ext3 (rw,noatime)
    All ok here?



    $ ls -la /usr/local/sbin/
    Code:
    total 312
    drwxr-xr-x 2 god root    220 Jan  1  2000 .
    drwxr-xr-x 5 god root    120 Jan  1  2000 ..
    -rwxr-xr-x 1 god root    268 Dec  2 17:06 ez-setup
    -rwxr-xr-x 1 god root   9836 Nov 18 15:30 knock
    -rwxr-xr-x 1 god root 273100 Nov 18 15:30 knockd
    -rwxr-xr-x 1 god root     24 Dec  2 18:50 post-boot
    -rwxr-xr-x 1 god root    798 Dec  3 09:25 post-firewall
    -rwxr-xr-x 1 god root     45 Dec  2 17:12 post-mount
    -rwxr-xr-x 1 god root      0 Nov 18 17:43 pre-boot
    -rwxr-xr-x 1 god root    330 Dec  2 17:11 pre-mount
    -rwxr-xr-x 1 god root    170 Dec  2 17:13 pre-shutdown
    These are my startup scripts. N.B. pre-boot is empty.



    $ cat /usr/local/sbin/post-boot
    Code:
    #!/bin/sh
    rmmod printer


    $ cat /usr/local/sbin/post-firewall
    Code:
    #!/bin/sh
    
    LAN_IP="$(nvram get lan_ipaddr)"
    #WAN_IP="$(nvram get wan_ipaddr)"
    
    # My own firewall rules:
    # remove the default DROP rule
    iptables -D INPUT -j DROP
    
    # Open ports for transmission
    iptables -A INPUT -p tcp --dport 51413 -j ACCEPT
    iptables -A INPUT -p udp --dport 51413 -j ACCEPT
    
    # append the default DROP rule
    iptables -A INPUT -j DROP
    
    # -------------------------------------------------
    
    # start dropbear on LAN
    /usr/sbin/dropbear -p $LAN_IP:22
    
    # start dropbear on WAN
    # -s = no password logins
    #/usr/sbin/dropbear -s -p $WAN_IP:2222
    
    # Launch knockd on WAN
    #/usr/local/sbin/knockd --daemon --interface eth1 --config /usr/local/etc/knockd/knockd.conf


    $ cat /usr/local/sbin/post-mount
    Code:
    #! /bin/sh
    
    /opt/etc/init.d/rc.unslung start
    One remark about starting rc.unslung in post-mount: now everytime I plug in a USB flash drive, a new process of transmission is launched because rc.unslung launches it.



    $ cat /usr/local/sbin/pre-mount
    Code:
    #! /bin/sh
    
    swapon -a
    
    # I commented out this part of wengi's script cause I want mail notification
    # when the file system needs checking. Don't know how to do it yet.
    #
    #for i in `awk '/ext3/{print($1)}' /etc/fstab` ; do
    #  if [ -b $i ] ; then
    #    grep -q $i /proc/mounts || e2fsck -p $i 2>&1 | logger -t e2fsck
    #  else
    #    logger -t fstab "$i is not attached"
    #  fi
    #done


    $ cat /usr/local/sbin/pre-shutdown
    Code:
    #! /bin/sh
    
    /opt/etc/init.d/rc.unslung stop
    
    sleep 10s
    
    for i in `cat /proc/mounts | awk '/ext3/{print($1)}'` ; do
      mount -oremount,ro $i
    done
      
    swapoff -a
      
    sleep 1s
    Thanks for reading!

  5. #755
    Join Date
    Feb 2005
    Location
    Germany - Frankfurt
    Posts
    1,548
    Hi,

    this is enough information

    But unfortunately dmesg would have been enough. There seems to be something wrong with either your hardware or the firmware.

    Regarding to dmesg you only have one network interface!!!!

    Just to give you an idea of what should be:
    Code:
    [admin@blechbuechse root]$ dmesg | grep -i eth
    NET4: Ethernet Bridge 008 for NET4.0
    eth0: Broadcom BCM47xx 10/100 Mbps Ethernet Controller 4.108.9.0
    eth1: Broadcom BCM47xx 10/100 Mbps Ethernet Controller 4.108.9.0
    eth2: Broadcom BCM4320 802.11 Wireless Controller 4.108.9.0
    device eth2 entered promiscuous mode
    device eth1 entered promiscuous mode
    br0: port 2(eth1) entering learning state
    br0: port 1(eth2) entering learning state
    br0: port 2(eth1) entering forwarding state
    br0: port 1(eth2) entering forwarding state
    br0: port 1(eth2) entering disabled state
    br0: port 1(eth2) entering disabled state
    device eth2 left promiscuous mode
    eth1: no IPv6 routers present
    [admin@blechbuechse root]$
    Well, i do not know the WL500W at all, but there must be more interfaces in dmesg!!!

    Assuming that your hardware is ok: Maybe there is a bug in 1.9.2.7-d-r740?
    Try version http://wl500g.googlecode.com/files/W...2.7-d-r893.trx to check this.

    wengi

    PS: Does this happen allways or just from time to time?
    Last edited by wengi; 03-12-2009 at 15:05.
    Übersicht aller HowTos --- HowTo Overview (mostly german)
    WL-HDD mit diesem Setup. --- WL-HDD with this setup.
    Kein Support per PM - Frage im jeweiligen Thread! --- No support via pm - ask in the according thread!
    Eine wirklich gute Idee erkennt man daran, dass ihre Verwirklichung von vorne herein ausgeschlossen erscheint. (Albert Einstein)

  6. #756
    Thanks for the reply! You are really quick seeing the core of the problem!
    And sorry for posting too much stuff... I just don't want another broken asus router. I've already had one broken asus before and I replaced it with this one. I would probably get a heart attack if it is a hardware issue.

    The situation is this:
    Before installing the USB hard drive this NEVER happened. That's about two or three weeks ago, and in the first week I rebooted the router quite often. Then I had probably max 10 day uptime and then few reboots. No problems.

    But when I installed the hard drive yesterday this started to happen. However it does not happen every time. Only sometimes when I reboot. I haven't figured out what causes this randomness.

    Here is what my dmesg says about ethernet devices in a WORKING system (i.e. right now):
    Code:
    $ dmesg | grep -i eth
    NET4: Ethernet Bridge 008 for NET4.0
    eth0: Broadcom BCM47xx 10/100 Mbps Ethernet Controller 4.150.10.29
    eth1: Broadcom BCM47xx 10/100 Mbps Ethernet Controller 4.150.10.29
    eth2: Broadcom BCM4329 802.11 Wireless Controller 4.150.10.29
    device eth0 entered promiscuous mode
    device eth2 entered promiscuous mode
    eth2: attempt to add interface with same source address.
    br0: port 2(eth2) entering learning state
    br0: port 1(eth0) entering learning state
    br0: port 2(eth2) entering forwarding state
    br0: port 1(eth0) entering forwarding state
    And the same from the non-working system for comparison:
    Code:
    unregister_netdevice: device eth0/8107f400 never was registered
    unregister_netdevice: device eth0/8107f400 never was registered
    eth0: Broadcom BCM4329 802.11 Wireless Controller 4.150.10.29
    device eth0 entered promiscuous mode
    br0: port 1(eth0) entering learning state
    br0: port 1(eth0) entering forwarding state
    Pequod:~ matti$ cat jorma | grep -i eth
    NET4: Ethernet Bridge 008 for NET4.0
    unregister_netdevice: device eth0/8107f400 never was registered
    unregister_netdevice: device eth0/8107f400 never was registered
    eth0: Broadcom BCM4329 802.11 Wireless Controller 4.150.10.29
    device eth0 entered promiscuous mode
    br0: port 1(eth0) entering learning state
    br0: port 1(eth0) entering forwarding state
    What do the two lines
    Code:
    unregister_netdevice: device eth0/8107f400 never was registered
    unregister_netdevice: device eth0/8107f400 never was registered
    really mean?

    That the kernel finds them but doesn't register???

    If this is a hardware problem why does it still sometimes work? And when it works the connection is fine. No dropped packets and full speed.

    The WL-500w has the same hardware as WL-500g Premium V1 except the wireless chip/card and the antennas.

    I really appreciate your help!

  7. #757
    Join Date
    Feb 2005
    Location
    Germany - Frankfurt
    Posts
    1,548
    Hi,

    this is the question! But i can not answer it
    I will try to point ily to this issue.
    If somebody has an idea this is our man

    wengi
    Übersicht aller HowTos --- HowTo Overview (mostly german)
    WL-HDD mit diesem Setup. --- WL-HDD with this setup.
    Kein Support per PM - Frage im jeweiligen Thread! --- No support via pm - ask in the according thread!
    Eine wirklich gute Idee erkennt man daran, dass ihre Verwirklichung von vorne herein ausgeschlossen erscheint. (Albert Einstein)

  8. #758
    Join Date
    Feb 2005
    Location
    Germany - Frankfurt
    Posts
    1,548
    Ily is quick
    Here is his answer:

    I apologize, that problem is hardware related, especially power supply (both HDD & router). As additional diagnostics, he can try to
    Code:
    cat /proc/bus/pci/devices
    if ethernet controller missed in list, problem in HW.
    Power Suply is a very (!!!!) good idea!
    Do you have any chance to check this?
    Maybe you have a stronger power suply for your asus?
    Your HDD has an external power suply but maybe there is still some power over usb.
    You could also try to use an USB Hub with power suply.
    Or try another hdd.

    Final: If this is a hardware issue that only comes up with your hdd attached we should try to seperate the hdd.

    wengi
    Übersicht aller HowTos --- HowTo Overview (mostly german)
    WL-HDD mit diesem Setup. --- WL-HDD with this setup.
    Kein Support per PM - Frage im jeweiligen Thread! --- No support via pm - ask in the according thread!
    Eine wirklich gute Idee erkennt man daran, dass ihre Verwirklichung von vorne herein ausgeschlossen erscheint. (Albert Einstein)

  9. #759
    Hi!

    How to check the power supply?
    I don't have any electric tools, but when I go back to my parents place at christmas holidays I can check with my dads tools

    Here's the output of
    $ cat /proc/bus/pci/devices | grep -i et
    Code:
    0008    14e44713        4       18001000        00000000        00000000        00000000        00000000   00000000 00000000        00001000        00000000        00000000        00000000        00000000        00000000    00000800        et
    0010    14e44713        5       18002000        00000000        00000000        00000000        00000000   00000000 00000000        00001000        00000000        00000000        00000000        00000000        00000000    00000800        et
    Does this mean everything is ok on HW side? The router is running without any problems now. I will try to see the proc...devices again when the problem occurs next time.

    I will definitely test it without the HDD to narrow down the cause of the problem. A broken power supply sounds like a good candidate because the problem is so random.

    Thanks again!

  10. #760
    Join Date
    Mar 2007
    Location
    Milano - Italy
    Posts
    164
    Can I use something like:

    Code:
    /opt/bin/nice -n-15 /opt/sbin/smbd
    in netbios-ssn, to have higher priority for Samba when used to play 1080p movies from Xtreamer ?

    I'm using ipkg installed Samba2 startd from xinetd.

    Thanks

  11. #761
    can we add a new tracker using transmission?
    how?

  12. #762
    Join Date
    Dec 2007
    Location
    The Netherlands - Eindhoven
    Posts
    1,767
    Quote Originally Posted by mataanjin View Post
    can we add a new tracker using transmission?
    how?
    no, you have to manually edit them...
    try: http://torrenteditor.com/ (online editor)
    or
    http://krypt.dyndns.org:81/torrent/maketorrent/ (torrent creator/editor)

  13. #763
    Join Date
    Mar 2007
    Location
    Milano - Italy
    Posts
    164
    Quote Originally Posted by QMax View Post
    Can I use something like:

    Code:
    /opt/bin/nice -n-15 /opt/sbin/smbd
    in netbios-ssn, to have higher priority for Samba ?

    Thanks
    I think I've solved simply adding a new line to /opt/etc/xinetd.d/netbios-ssn:

    Code:
    service netbios-ssn
    {
    disable = no
    socket_type = stream
    protocol = tcp
    port = 139
    user = root
    wait = no
    only_from = localhost 192.168.1.1/24
    server = /opt/sbin/smbd
    nice = -18
    }
    Now everytime smbd starts, from Top i can see NI -18.

    Max

  14. #764
    Hi Wengi,

    I'm planning to use an NTFS partition as the DATA partition, is this possible?
    Can this be done by installing ntfs-3g driver and editing the fstab file?
    Do you think my WL-520gU can handle this setup?

    Thanks,

  15. #765
    Join Date
    Feb 2005
    Location
    Germany - Frankfurt
    Posts
    1,548
    Hi,

    ntfs-3g is available via ipkg. This should work in theory if the driver is loaded before the partition is mounted.
    I never tried it

    Give us a feedback if and how it works.

    wengi
    Übersicht aller HowTos --- HowTo Overview (mostly german)
    WL-HDD mit diesem Setup. --- WL-HDD with this setup.
    Kein Support per PM - Frage im jeweiligen Thread! --- No support via pm - ask in the according thread!
    Eine wirklich gute Idee erkennt man daran, dass ihre Verwirklichung von vorne herein ausgeschlossen erscheint. (Albert Einstein)

Page 51 of 64 FirstFirst ... 41495051525361 ... LastLast

Similar Threads

  1. [Howto] Install DLNA media servers for Oleg firmware
    By ecaddict in forum WL-500gP Tutorials
    Replies: 18
    Last Post: 06-06-2017, 07:40
  2. Replies: 24
    Last Post: 05-05-2015, 07:42
  3. Replies: 28
    Last Post: 02-06-2013, 20:58
  4. Replies: 6
    Last Post: 21-09-2012, 17:06
  5. [Howto] Install kernel modules for Oleg firmware
    By ecaddict in forum WL-500gP Tutorials
    Replies: 0
    Last Post: 05-12-2011, 16:18

Tags for this Thread

Posting Permissions

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