Results 1 to 15 of 74

Thread: Make an expansion board with a serial port(s) for WL-500b/g

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Problem whith serial

    I have a uart/driver with a 1.8432MHZ xtal.
    I can see the linux boot process, but I can't get the PMON boot. Neither if I press reset during power up, in this case I didn't get a byte.

    The PC terminal I configure it with:
    setserial /dev/ttyS0 divisor 7
    setserial /dev/ttyS0 spd_cust
    stty speed 38400 < /dev/ttyS0
    To get the custom 16457 baud rate.

    This is what I get:

    CPU revision is: 00024000
    Loading BCM4710 MMU routines.
    Primary instruction cache 8kb, linesize 16 bytes (2 ways)
    Primary data cache 4kb, linesiôe 16 bytes (2 ways)
    Linux version 2.4.20 (root@localhost.localdomain) (gcc version 3.2.3 with Broadcom m4
    Determined physical RAM map:
    memory: 01000000 @ 00000000 (usable)
    On node 0 totalpages: 4096
    ...

    Any ideas?

  2. Hi everybody!

    I've made this expansion board for my WAP54G v1.1 and it works too. I use a "home made" HF generator in order to have the required frequency for the UM82450 since I can't find a 12.750MHz Xtal.

    The only problem is that I can't see anything else than that:

    Code:
    CPU revision is: 00024000
    Loading BCM4710 MMU routines.
    Primary instruction cache 8kb, linesize 16 bytes (2 ways)
    Primary data cache 4kb, linesize 16 bytes (2 ways)
    Linux version 2.4.20 (root@pcnote) (gcc version 3.3.3) #1 Wed Sep 14 05:26:07 CEST 2005
    Determined physical RAM map:
     memory: 00800000 @ 00000000 (usable)
    On node 0 totalpages: 2048
    zone(0): 2048 pages.
    zone(1): 0 pages.
    zone(2): 0 pages.
    Kernel command line: root=/dev/mtdblock2 rootfstype=squashfs init=/etc/preinit noinitrd console=ttyS0,115200
    CPU: BCM4710 rev 0 at 125 MHz
    Calibrating delay loop... 82.94 BogoMIPS
    Memory: 6280k/8192k available (1399k kernel code, 1912k reserved, 100k data, 64k init, 0k highmem)
    Dentry cache hash table entries: 1024 (order: 1, 8192 bytes)
    Inode cache hash table entries: 512 (order: 0, 4096 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: 2048 (order: 1, 8192 bytes)
    Checking for 'wait' instruction...  unavailable.
    POSIX conformance testing by UNIFIX
    PCI: Disabled
    PCI: Fixing up bus 0
    Linux NET4.0 for Linux 2.4
    Based upon Swansea University Computer Society NET3.039
    Initializing RT netlink socket
    Starting kswapd
    devfs: v1.12c (20020818) Richard Gooch (rgooch@atnf.csiro.au)
    devfs: boot_options: 0x1
    JFFS2 version 2.2. (C) 2001-2003 Red Hat, Inc.
    Squashfs 2.1-r2 (released 2004/12/15) (C) 2002-2004 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 0xbf800008 (irq = 2) is a 16450
    PPP generic driver version 2.4.2
    Physically mapped flash: Found 1 x16 devices at 0x0 in 16-bit bank
     Amd/Fujitsu Extended Query Table at 0x0040
    number of CFI chips: 1
    cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.
    Flash device: 0x200000 at 0x1fc00000
    Physically mapped flash: squashfs filesystem found at block 739
    Creating 5 MTD partitions on "Physically mapped flash":
    0x00000000-0x00040000 : "pmon"
    0x00040000-0x001f0000 : "linux"
    0x000b8fa0-0x0015c7a0 : "rootfs"
    mtd: partition "rootfs" doesn't start on an erase block boundary -- force read-only
    0x001f0000-0x00200000 : "nvram"
    0x00160000-0x001f0000 : "OpenWrt"
    sflash: chipcommon not found
    NET4: Linux TCP/IP 1.0 for NET4.0
    IP Protocols: ICMP, UDP, TCP, IGMP
    IP: routing cache hash table of 512 buckets, 4Kbytes
    TCP: Hash tables configured (established 512 bind 1024)
    IPv4 over IPv4 tunneling driver
    Linux IP multicast router 0.06 plus PIM-SM
    ip_conntrack version 2.1 (5953 buckets, 5953 max) - 352 bytes per conntrack
    ip_tables: (C) 2000-2002 Netfilter core team
    NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
    NET4: Ethernet Bridge 008 for NET4.0
    Bridge firewalling registered
    802.1Q VLAN Support v1.7 Ben Greear <greearb@candelatech.com>
    All bugs added by David S. Miller <davem@redhat.com>
    cryptoapi: loaded
    VFS: Mounted root (squashfs filesystem) readonly.
    Mounted devfs on /dev
    Freeing unused kernel memory: 64k freed
    I bricked my AP with a bad firmware and now it reboots itself every minute, and I can't upload anything since I don't know which IP my AP is using (it's not the default IP and I can't reset it by pressing the RESET button).

    What can I do to read it's IP from the RS232 terminal?
    Last edited by todd_terry; 14-04-2006 at 18:39.

  3. #3
    According to OpenWRT wiki, this works on any device with the 20pin connector

    Has anyone tried this on the WL-HDD?

  4. #4

    Question

    Quote Originally Posted by futaris View Post
    Has anyone tried this on the WL-HDD?
    Not yet - I would like to, but I've got a question left beforehand: in the
    schematic from Technik, why is CS0 on the UART connected to VCC
    and CS1 to A3? I somehow expected it to be the other way round..

    Floe

  5. #5

    Exclamation

    As a follow-up, I built a circuit based on Technik's schematic, attached it to my WL-HDD and it works

    More details can be found here: OpenWRT Forum

    Florian

Similar Threads

  1. Howto add serial port to WL-500gx/gp
    By Josephus in forum WL-500g/WL-500gx Tutorials
    Replies: 50
    Last Post: 05-11-2012, 11:32
  2. Use an USB-serial port converter
    By Technik in forum WL-500g/WL-500gx Tutorials
    Replies: 39
    Last Post: 24-04-2012, 10:54
  3. Serial port for WL-500g
    By sveasoft in forum WL-500g Pics & Specs
    Replies: 6
    Last Post: 08-03-2005, 21: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
  •