I still can access from port 21 ( I have disabled it into iptables) :(
How I can install/get gcc on my asus?
Printable View
Hi!
I am unable to add torrents to the download list, any ideas? All software is up to date to the latest versions.
i have a doubt regarding the disk connected to the router. after i follow the 4rd point of the tutorial and activate the swap and ipkg partitions can i start the router without the disk connected?
Good morning :)
I need help with php-mysql.
I know that in this forum somwhere is the answer, but I cant found :(
So ...
I have done thttpd and mysql by this tutorial
but
php version 5.2.10 ( now 5.2.11) isn't working with mysql version 4.1.22
Only php version which is working is 5.2.9
( this I noticed in php.php file. and I can't login to my webpage using mysql)
So what should I do, to solve the problem?
Thank You and I hope You understud something. My ENG is bad
This is definitly the wrong thread to ask php-mysql related things....
wengi
Hi,
should do this trick, it's the 'connection' bewtween php and mysql.Code:ipkg install php-mysql
As found in: http://www.wl500g.info/showthread.php?t=20306 which is found in the tutorial section.
(but, like wengi says.. this topic isn't about mysql/php)
Hi, i have a problem with the fdisk command i supose.
My hardware is: WL-500gP2, with Oleg 1.9.2.7-10-USB-1.71Code:[admin@asus root]$ df
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/root 3008 3008 0 100% /
[admin@asus root]$ fdisk /dev/discs/disc0/disc
Unable to open /dev/discs/disc0/disc
And a Hdd WD 1TB My Book. I have made the HDD ext3, ntfs, fat 32, swap...and all the same...where could i be wrong. Please
I what to make my Hdd a Server for Php mysql and apache.
Thank you in advance.
Hello and welcome to the forum,
Let us see if your hdd is recognized.
Please post the result of
Please replace the /result/of/first/ls with the output of first command.Code:ls -lah /dev/discs/
ls -lah /dev/result/of/first/ls
This should result in something like this:
Also post the result ofCode:[admin@blechbuechse root]$ ls -lah /dev/discs/
total 0
drwxr-xr-x 1 admin root 0 Jan 1 1970 .
drwxr-xr-x 1 admin root 0 Jan 1 1970 ..
lr-xr-xr-x 1 admin root 30 Jan 1 1970 disc0 -> ../ide/host0/bus0/target0/lun0
[admin@blechbuechse root]$ ls -lah /dev/ide/host0/bus0/target0/lun0/
total 0
drwxr-xr-x 1 admin root 0 Jan 1 1970 .
drwxr-xr-x 1 admin root 0 Jan 1 1970 ..
brw------- 1 admin root 3, 0 Jan 1 1970 disc
brw------- 1 admin root 3, 1 Jan 1 1970 part1
brw------- 1 admin root 3, 2 Jan 1 1970 part2
brw------- 1 admin root 3, 3 Jan 1 1970 part3
wengiCode:dmesg | grep -i usb
dmesg | grep -i ide
Thank you for your prompt reply, wengi !
I have my HDD formated and partioned - with Partition Magic in Wdos - like this:
1 - 400 GB NTFS
2 - 400 GB NTFS
3 - 99 GB FAT 32
this is the code you've asked me for
Code:[admin@asus root]$ ls -lah /dev/discs/
drwxr-xr-x 1 admin root 0 Jan 1 1970 .
drwxr-xr-x 1 admin root 0 Jan 1 1970 ..
lr-xr-xr-x 1 admin root 31 Jan 1 1970 disc0 -> ../scsi/host1/bus0/target0/lun0
[admin@asus root]$ ls -lah /dev/scsi/host1/bus0/target0/lun0
drwxr-xr-x 1 admin root 0 Jan 1 1970 .
drwxr-xr-x 1 admin root 0 Jan 1 1970 ..
brw------- 1 admin root 8, 0 Jan 1 1970 disc
Code:[admin@asus root]$ dmesg | grep -i usb
usb.c: USB disconnect on device 00:03.0-1.1 address 7
usb.c: kusbd: /sbin/hotplug remove 7
hub.c: new USB device 00:03.0-1.1, assigned address 8
usb.c: kmalloc IF 8190fa40, numif 1
usb.c: new device strings: Mfr=1, Product=2, SerialNumber=3
usb.c: USB device number 8 default language ID 0x409
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 8
usb.c: usb-storage driver claimed interface 8190fa40
usb.c: kusbd: /sbin/hotplug add 8
usb.c: USB disconnect on device 00:03.0-1.1 address 8
usb.c: kusbd: /sbin/hotplug remove 8
hub.c: new USB device 00:03.0-1.1, assigned address 9
usb.c: kmalloc IF 8190f900, numif 1
usb.c: new device strings: Mfr=1, Product=2, SerialNumber=3
usb.c: USB device number 9 default language ID 0x409
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 9
usb.c: usb-storage driver claimed interface 8190f900
usb.c: kusbd: /sbin/hotplug add 9
[admin@asus root]$ dmesg | grep -i ide
Hmm....
disc is there, but no partitions.
can you partition the disk with fdisk as stated in the tut?
(Not with external programs)
wengi
here is what i've tried to do...and didn't work...
If i tryCode:[admin@asus root]$ ls -lah /dev/discs/
drwxr-xr-x 1 admin root 0 Jan 1 1970 .
drwxr-xr-x 1 admin root 0 Jan 1 1970 ..
lr-xr-xr-x 1 admin root 31 Jan 1 1970 disc0 -> ../scsi/host1/bus0/target0/lun0
[admin@asus root]$
[admin@asus root]$ fdisk /dev/scsi/host1/bus0/target0/lun0
You will not be able to write the partition table.
Unable to read /dev/scsi/host1/bus0/target0/lun0
[admin@asus root]$ df
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/root 3008 3008 0 100% /
[admin@asus root]$
:(Code:[admin@asus root]$ fdisk /dev/discs/disc0/disc
Unable to open /dev/discs/disc0/disc
Sorry, no idea atm.
Could you try another hdd/usbstick?
Just to check if it is a general or particular problem.
wengi
i've tried with a 2gb usb stick formated FAT
i didn't made the hole process but it is able to make fdisk comands.
I have formated FAT the HDD, and made a partition of 2 GB and the ret of 900 GB unpartitioned, but i had the old problem...
Could be a problem with the hdd?
If i connect the hdd in the router just for file sharing...it can't be seen...i have enabled samba and FTP, NFS is Not enabled...
Do you have any ideea?
what settings/configuration should i restore if i need to use other hdd? (hw failure on old one)
well, you need to restore .. pretty much everything :) . My advice is to reset the device to defaults and follow again the wengi's tutorial. Since most of the progs + their configs were on the hdd (opt partition), you won't feel the difference.
Just like the others, my Samba stopped showing suddenly. Everything looks fine, no error logs, just not showing anymore.
Also i have the same problem with Mediatomb media server. Sometimes works, sometimes not. It was not listed in this tutorial, but i think it should, because it provides a complete solution along with the samba server and torrent client.
Hy wengi, great work . I installed latest olg's firmware on my WL500-gp by your tutorial and it works like a charm, no error . But i have an question:
Seems like transmission don't work with local peer discovery. I will tell you why:
My network is an country network (from Romania, it's called RDS) and if i download a torrent with my u torrent from win XP i get around 150-200k downl rate without local peer discovery, but if somebody from my network ( about 500.000 users) is on line with that file my transfer rate jumps to 1,5 mbs or even 2 mbs. That thing is not happening in transmission.
Is any way to make it work there too for increasing speed if somebody from my network shares the file ?
Thanks, hope you will have an answer . Good job. My congrats.
You can mail me if you want, i will give my email. 10x
Hi,
i am sorry but this is too transmission-special.
I know how to install and configure but have no idea about local peer discovery.
But one minute google results in:
http://forum.transmissionbt.com/view...php?f=3&t=5754
http://trac.transmissionbt.com/ticket/1394
Seems that transmission still does not support this feature.
wengi
Thank you very much for your answer, maybe transmissiond has it ? but i have another question for you cuz i am a newbie :) :
I want to make my asus router to play some mp3 files from my hdd mounted on the device and play it to an usb soundcard ( My router stands on my 5.1 media sistem and it would be easy to play music or an radio - streaming one -without turning computer on).
Can i do this ? I gogle it but i do not have an very good answer. (Cuz i am a newbie).
If i can, i wold need an linux player for router an drivers for the sound card , no ? The soundcard is ESS USB Audio from Konig (cmp-soundusb12).
PLEASE HELP IF YOU KNOW , AN IF YOU DON'T MAYBE YOU CAN GUIDE ME TO SOMEBODY ELSE !
THANK YOU FOR YOUR HELP !
I FOUND SOMETHING ON http://omgili.com/jmp/jHIAmI4hxg.9n1...FZUPNxH3FlaA-- BUT I DO NOT KNOW DEUTCH, and translated is rubbish ... HLP PLEASE
Never done that before.
Searching for soundcard here in the forum gives me an idea.
But i have no idea if this will work.
There is a german thread about that: http://wl500g.info/showthread.php?t=19813
This states that the newest firmware (http://code.google.com/p/wl500g/) should support soundcards.
"ipkg install libusb" ans "lsusb" should help if you get usb problems.
Then use
madplay
or
http://wl500g.info/showthread.php?t=4150
or
http://wl500g.info/showpost.php?p=62590&postcount=37
or
http://wl500g.info/showpost.php?p=111374&postcount=44
I think all the information is here in the forum. you have to read, learn and test.
wengi
thank you very much, but i do not know deutch :(( that is a problem for me
Hi,
three of the four links are english.
Where is your problem?
wengi
No problem here, just that the german forum seems to be more coplex on information on that thread, the others i read it. Thank you for your help.
As i said.
My knowledge with soundcards on routers is zero.
If you managed it to work you could write a short howto :)
wengi
Ok , i will do that 10x !
Thanks to your HOWTO I managed to install USB HDD yesterday!
However after the HDD installation when I reboot my Asus, it sometimes becomes crippled in a strange way. I mean some important modules & services are not loaded.
For example the et (ethernet) module is not loaded, so there is no LAN or WAN, and only way to access it is through wireless. Thank god the wl module was loaded!
Also dropbear wasn't started but httpd was, so I could access it and reboot again and then everything was normal
It seems to me that sometimes some startup scripts are loaded and sometimes not. Though I can't figure out why this happens???
Hi RDF,
Informations needed!!
- Hardware?
- Firmware?
- Full install of my HowTo?
- log files (dmesg, syslog, anything else that could help).
wengi
Sorry, I should have been more informative! :)
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
1.9.2.7-d-r740
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!
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.
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
The final part of my post.
$ 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.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
$ lsmod
No et module?!?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)
$ ifconfig
No ethernet drivers? I suppose eth0 is the wireless card.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)
$ 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
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.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
$ mount
All ok here?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)
$ ls -la /usr/local/sbin/
These are my startup scripts. N.B. pre-boot is empty.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
$ 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
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.Code:#! /bin/sh
/opt/etc/init.d/rc.unslung start
$ 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
Thanks for reading!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
Hi,
this is enough information :D:D:D
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:Well, i do not know the WL500W at all, but there must be more interfaces in dmesg!!!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]$
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?
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):
And the same from the non-working system for comparison: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
What do the two linesCode: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
really mean?Code:unregister_netdevice: device eth0/8107f400 never was registered
unregister_netdevice: device eth0/8107f400 never was registered
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!
Hi,
this is the question! But i can not answer it :eek::(
I will try to point ily to this issue.
If somebody has an idea this is our man :)
wengi
Ily is quick :)
Here is his answer:
Power Suply is a very (!!!!) good idea!Quote:
I apologize, that problem is hardware related, especially power supply (both HDD & router). As additional diagnostics, he can try to
if ethernet controller missed in list, problem in HW.Code:cat /proc/bus/pci/devices
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
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
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.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
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!
Can I use something like:
in netbios-ssn, to have higher priority for Samba when used to play 1080p movies from Xtreamer ?Code:/opt/bin/nice -n-15 /opt/sbin/smbd
I'm using ipkg installed Samba2 startd from xinetd.
Thanks