Page 4 of 4 FirstFirst ... 234
Results 46 to 51 of 51

Thread: Howto add serial port to WL-500gx/gp

  1. #46
    Quote Originally Posted by stereo47 View Post
    Still one question, is it so that the serial port cannot be used if terminal output is on (left as "console=ttyS0,115200")?
    Sorry, can't test for now.
    Quote Originally Posted by stereo47 View Post
    And if I set it to console=null, would that make it impossible to flash the Asus from serial?
    No! Bootloader still works. But if you don't believe me, you can always clean NVRAM settings by Reset button.
    Quote Originally Posted by stereo47 View Post
    Or does it only switch off terminal output after the bootloader, or what?
    Yes. Bootloader is still using those port. So your Arduino device must ignore some garbage and wait till router finish booting. console=null is a kernel switch, so port will be silent only when CFE starts kernel.
    Last edited by ryzhov_al; 10-02-2012 at 22:19. Reason: spell check

  2. #47
    Okay, great! Then this is just what I need, thanks!

    Actually I'm using Openwrt Backfire at the moment, and I'm quite sure it works in the same way, here is the command for openwrt if someone else needs it: https://forum.openwrt.org/viewtopic.php?id=15165

  3. #48

    serial port help

    wl500gp v2


    hi, I have a problem with my wl500gp v2. I am successfully connected to the router via serial port, but I dont know how to rescue nvram. My question is, how upload firmware via serial port. I use nokia cable dku-5. I add to the supplication of the putty log. I do not know what to do. my English is not very good. Please help, thanks a lot.

    Code:
    =~=~=~=~=~=~=~=~=~=~=~= PuTTY log 2012.06.27 00:27:29 =~=~=~=~=~=~=~=~=~=~=~=
    Connection dropped... 
    Attempting connect... 
     Decompressing..........done
    
    
    CFE version 1.0.37 for BCM947XX (32bit,SP,LE)
    Build Date: Mon Jan 28 10:52:32 CST 2008 (root@localhost.localdomain)
    Copyright (C) 2000,2001,2002,2003 Broadcom Corporation.
    
    Initializing Arena
    Initializing Devices.
    Boot partition size = 131072(0x20000)
    et0: Broadcom BCM47xx 10/100 Mbps Ethernet Controller 4.130.31.0
    CPU type 0x29029: 240MHz
    Total memory: 32768 KBytes
    
    Total memory used by CFE:  0x80400000 - 0x80497FF0 (622576)
    Initialized Data:          0x8042F370 - 0x80431830 (9408)
    BSS Area:                  0x80431830 - 0x80431FF0 (1984)
    Local Heap:                0x80431FF0 - 0x80495FF0 (409600)
    Stack Area:                0x80495FF0 - 0x80497FF0 (8192)
    Text (code) segment:       0x80400000 - 0x8042F370 (193392)
    Boot area (physical):      0x00498000 - 0x004D8000
    Relocation Factor:         I:00000000 - D:00000000
    
    Device eth0:  hwaddr BC-AE-C5-C4-29-9F, ipaddr 192.168.0.1, mask 255.255.255.0
            gateway not set, nameserver not set
    Null Rescue Flag.
    Loader:raw Filesys:tftp Dev:eth0 File:: Options:(null)
    Loading: TFTP Server.
    Failed.
    Could not load :: Timeout occured
    Loader:raw Filesys:raw Dev:flash0.os File: Options:(null)
    Loading: .. 3740 bytes read
    Entry at 0x80001000
    Closing network.
    Starting program at 0x80001000
    CPU revision is: 00029029
    
    Linux version 2.4.35 (root@dd-wrt) (gcc version 3.4.6 (OpenWrt-2.0)) #2097 Sat May 24 14:47:53 CEST 2008
    
    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,jffs2 noinitrd console=ttyS0,115200
    
    CPU: BCM5354 rev 3 at 240 MHz
    
    Using 120.000 MHz high precision timer.
    
    Calibrating delay loop... 239.20 BogoMIPS
    
    Page-cache hash table entries: 8192 (order: 3, 32768 bytes)
    
    Checking for 'wait' instruction...  unavailable.
    
    POSIX conformance testing by UNIFIX
    
    PCI: no core
    
    PCI: Fixing up bus 0
    
    Initializing RT netlink socket
    
    Starting kswapd
    
    pty: 256 Unix98 ptys configured
    
    Broadcom Watchdog Timer: 0.05, timer margin: 30 sec
    
    sb_doattach: incoming bus is PCI but it's a lie, switching to SB devid:0x4318
    
    Flash device: 0x800000 at 0x1c000000
    
    bootloader size: 131072
    
    Physically mapped flash: Filesystem type: squashfs, size=0x4dad0a
    
    mtd: partition "rootfs" doesn't start on an erase block boundary -- force read-only
    
    ip_conntrack version 2.1 (512 buckets, 4096 max) - 336 bytes per conntrack
    
    ip_tables: (C) 2000-2002 Netfilter core team
    
    ipt_random match loaded
    
    netfilter PSD loaded - (c) astaro AG
    
    ipt_IPV4OPTSSTRIP loaded
    
    VFS: Mounted root (squashfs filesystem) readonly.
    
    Booting device: Linksys WRT54G/GL/GS
    boardflags are 0x0750
    sh: cannot create /proc/switch/eth1/reset: nonexistent directory
    Unlocking ddwrt ...
    set port 0 to AUTO
    set port 1 to AUTO
    set port 2 to AUTO
    set port 3 to AUTO
    set port 4 to AUTO
    register_vlan_device: ALREADY had VLAN registered
    
    vconfig: ioctl error for add: Invalid argument
    ifconfig: SIOCSIFADDR: No such device
    register_vlan_device: ALREADY had VLAN registered
    
    vconfig: ioctl error for add: Invalid argument
    ifconfig: SIOCSIFADDR: No such device
    set port 5 to AUTO
    eth1: Operation not supported
    wl0.2: No such device
    wl0.3: No such device
    eth1: Invalid argument
    eth1: Invalid argument
    br0: Bad file descriptor
    vlan0: dev_set_promiscuity(master, 1)
    
    device eth0 entered promiscuous mode
    
    device vlan0 entered promiscuous mode
    
    br0: Bad file descriptor
    eth1: Operation not supported
    wl0.2: No such device
    wl0.3: No such device
    eth1: Invalid argument
    eth1: Invalid argument
    device eth1 entered promiscuous mode
    
    device wl0.1 entered promiscuous mode
    
    SIOCGIFFLAGS: No such device
    SIOCGIFFLAGS: No such device
    SIOCGIFFLAGS: No such device
    SIOCGIFFLAGS: No such device
    Key is a RSA key
    Wrote key to '/tmp/root/.ssh/ssh_host_rsa_key'
    Key is a DSS key
    Wrote key to '/tmp/root/.ssh/ssh_host_dss_key'
    device vlan1 entered promiscuous mode
    
    vlan1: Setting MAC address to  bc ae c5 c4 29 a0.
    
    vlan1: dev_set_promiscuity(master, 1)
    
    vlan1: dev_set_allmulti(master, 1)
    
    vlan1: dev_set_promiscuity(master, -1)
    
    device vlan1 left promiscuous mode
    
    vlan1: dev_set_allmulti(master, -1)
    
    vlan1: No such process
    SIOCGIFFLAGS: No such device
    SIOCGIFFLAGS: No such device
    SIOCGIFFLAGS: No such device
    SIOCGIFFLAGS: No such device
    SIOCGIFFLAGS: No such device
    SIOCGIFFLAGS: No such device
    SIOCGIFFLAGS: No such device
    SIOCGIFFLAGS: No such device
    sh: /tmp/.rc_startup: not found
    /tmp/smbshare
    The Milkfish Router Services
    ERROR: Necessary service setting not found: milkfish_username - aborting.
    The Milkfish Router Services
    Restoring SIP ddsubscriber database from NVRAM...
    Empty.
    The Milkfish Router Services
    Restoring SIP ddaliases database from NVRAM...
    Empty.
    n
    DD-WRT v24 mega (c) 2008 NewMedia-NET GmbH
    Release: 05/24/08 (SVN revision: 9526)
    ˙
    Etasix login: Launching VPN process
    Process launched
    Waiting.......
     Decompressing..........done
    
    
    CFE version 1.0.37 for BCM947XX (32bit,SP,LE)
    Build Date: Mon Jan 28 10:52:32 CST 2008 (root@localhost.localdomain)
    Copyright (C) 2000,2001,2002,2003 Broadcom Corporation.
    
    Initializing Arena
    Initializing Devices.
    Boot partition size = 131072(0x20000)
    et0: Broadcom BCM47xx 10/100 Mbps Ethernet Controller 4.130.31.0
    CPU type 0x29029: 240MHz
    Total memory: 32768 KBytes
    
    Total memory used by CFE:  0x80400000 - 0x80497FF0 (622576)
    Initialized Data:          0x8042F370 - 0x80431830 (9408)
    BSS Area:                  0x80431830 - 0x80431FF0 (1984)
    Local Heap:                0x80431FF0 - 0x80495FF0 (409600)
    Stack Area:                0x80495FF0 - 0x80497FF0 (8192)
    Text (code) segment:       0x80400000 - 0x8042F370 (193392)
    Boot area (physical):      0x00498000 - 0x004D8000
    Relocation Factor:         I:00000000 - D:00000000
    
    Device eth0:  hwaddr BC-AE-C5-C4-29-9F, ipaddr 192.168.0.1, mask 255.255.255.0
            gateway not set, nameserver not set
    Null Rescue Flag.
    Hello!! Enter Rescue Mode: (by Force)
    
    Reading :: TFTP Server.
    Failed.: Timeout occured
    Reading :: TFTP Server.
    Failed.: Timeout occured
    Reading :: TFTP Server.
    Failed.: Timeout occured
    Reading :: TFTP Server.
    Failed.: Timeout occured
    Reading :: TFTP Server.
    Failed.: Timeout occured
    Reading :: TFTP Server.
     Decompressing..........done
    
    
    CFE version 1.0.37 for BCM947XX (32bit,SP,LE)
    Build Date: Mon Jan 28 10:52:32 CST 2008 (root@localhost.localdomain)
    Copyright (C) 2000,2001,2002,2003 Broadcom Corporation.
    
    Initializing Arena
    Initializing Devices.
    Boot partition size = 131072(0x20000)
    et0: Broadcom BCM47xx 10/100 Mbps Ethernet Controller 4.130.31.0
    CPU type 0x29029: 240MHz
    Total memory: 32768 KBytes
    
    Total memory used by CFE:  0x80400000 - 0x80497FF0 (622576)
    Initialized Data:          0x8042F370 - 0x80431830 (9408)
    BSS Area:                  0x80431830 - 0x80431FF0 (1984)
    Local Heap:                0x80431FF0 - 0x80495FF0 (409600)
    Stack Area:                0x80495FF0 - 0x80497FF0 (8192)
    Text (code) segment:       0x80400000 - 0x8042F370 (193392)
    Boot area (physical):      0x00498000 - 0x004D8000
    Relocation Factor:         I:00000000 - D:00000000
    
    Device eth0:  hwaddr BC-AE-C5-C4-29-9F, ipaddr 192.168.0.1, mask 255.255.255.0
            gateway not set, nameserver not set
    Null Rescue Flag.
    Hello!! Enter Rescue Mode: (by Force)
    
    
    Failed.: Timeout occured
    Reading :: TFTP Server.
    Failed.: Timeout occured

  4. #49
    The power supply for my wl500gx was busted so I bought a new switching 5v/2A supply. Usually on start up I think it doesn't supply enough current and all the LEDs started flickering. Turning the power on and off a couple times resolves this. However, I recently forgot the password and tried to reset the router. But I think the NVRAM values got corrupted because now there's no power or WiFi LED, and the WAN + LAN acts like a switch.

    So I'm thinking of using the serial port to unbrick it. I went to buy a PL2303 USB module. Can I just connect the headers on the module to the headers on the wl500gx and the USB end to my PC?

  5. #50
    Join Date
    Dec 2005
    Location
    Prague, Czech republic
    Posts
    3
    yes, of course. Use of 3 wires (GND, TxD, RxD) is ok

  6. #51

    Talking

    Quote Originally Posted by pavrda View Post
    yes, of course. Use of 3 wires (GND, TxD, RxD) is ok
    Thanks. I'll try once my new 5V/3A power supply and PL2303 module arrives.

Page 4 of 4 FirstFirst ... 234

Similar Threads

  1. Alle Howto's, all howto's
    By newbiefan in forum German Discussion - Deutsch (DE)
    Replies: 17
    Last Post: 29-03-2013, 14:57
  2. Use an USB-serial port converter
    By Technik in forum WL-500g/WL-500gx Tutorials
    Replies: 39
    Last Post: 24-04-2012, 11:54
  3. Virtual serial port (CDC Class)
    By Snail.cz in forum WL-500gP Q&A
    Replies: 3
    Last Post: 09-03-2009, 17:42
  4. WL-500gx with openwrt pre-rc5 howto webserver?
    By ye_old in forum WL-500g Custom Development
    Replies: 1
    Last Post: 22-03-2006, 13:54
  5. Serial port for WL-500g
    By sveasoft in forum WL-500g Pics & Specs
    Replies: 6
    Last Post: 08-03-2005, 22:39

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
  •