Loading ...
Sorry, an error occurred while loading the content.

J2 is definitely a serial port

Expand Messages
  • paulbart1234
    I ve connected a serial adapter (TTL- RS232 level converter) to J2 (after adding 4-pin header) and can successfully enter Redboot serial terminal mode (press
    Message 1 of 6 , Aug 10, 2004
    • 0 Attachment
      I've connected a serial adapter (TTL->RS232 level converter) to "J2"
      (after adding 4-pin header) and can successfully enter Redboot
      serial terminal mode (press ^C within first 2 seconds of boot).
      From there, you should be able to (for example) TFTP new code from a
      server (in case you corrupted your Flash).

      Or, if they haven't disabled the 'boot script' feature (which it
      looks like they possibly did), you could set it up to always TFTP
      its code from a server - instead of Flash (of course, it needs to
      get Redboot from Flash - the rest can come over the network).

      This is all based on my past experience with Redboot - I'll
      experiment now and see what it supports.

      Here's the pinout for the "J2" serial port:

      Pin 1 - 3.3V
      Pin 2 - RXD (from serial terminal program to NSLU2)
      Pin 3 - TXD (from NSLU2 to serial terminal program)
      Pin 4 - GND

      By default, both Redboot and the Linux kernel use 115200,8,n,1
      settings.

      As I said, you need an RS232 level shifter (to convert TTL levels to
      +/-12V as needed by RS232 serial ports. I believe both Maxxim (sp?)
      and Dallas Semiconductor sell the chips. Or, the converters could
      be there as 'off the shelf' adapters (for developers) I suppose.

      I've pasted the output of the boot process at the end of this
      message. I didn't have a hard drive attached. I also hit ^C when
      Redboot started (so I could get control before the kernel boot),
      then manually booted the kernel.

      Note that after it booted, there wasn't a login prompt. I don't
      know if this is because it was missing the hard drive, or if it's
      because the serial terminal console doesn't need a login.

      I'll keep messing with this and let everyone know what else I find.

      - Paulb


      +Ethernet eth0: MAC address 00:04:5a:0f:a1:9e
      IP: 192.168.0.1/255.255.255.0, Gateway: 192.168.0.1
      Default server: 0.0.0.0, DNS server IP: 0.0.0.0

      RedBoot(tm) bootstrap and debug environment [ROMRAM]
      Red Hat certified release, version 1.92 - built 15:16:07, Feb 3 2004

      Platform: IXDP425 Development Platform (XScale)
      Copyright (C) 2000, 2001, 2002, Red Hat, Inc.

      RAM: 0x00000000-0x02000000, 0x000723a0-0x01ff3000 available
      FLASH: 0x50000000 - 0x50800000, 64 blocks of 0x00020000 bytes each.
      == Executing boot script in 2.000 seconds - enter ^C to abort
      ^C
      RedBoot> ^C
      RedBoot> help
      go to assign mode
      assign
      Set/Query the system console baud rate
      baudrate [-b <rate>]
      sercomm boot flow
      boot
      Manage machine caches
      cache [ON | OFF]
      Display/switch console channel
      channel [-1|<channel number>]
      Compute a 32bit checksum [POSIX algorithm] for a range of memory
      cksum -b <location> -l <length>
      Display (hex dump) a range of memory
      dump -b <location> [-l <length>] [-s] [-1|2|4]
      Execute an image - with MMU off
      exec [-w timeout] [-b <load addr> [-l <length>]]
      [-r <ramdisk addr> [-s <ramdisk length>]]
      [-c "kernel command line"] [<entry_point>]
      Manage FLASH images
      fis {cmds}
      Execute code at a location
      go [-w <timeout>] [entry]
      Help about help?
      help [<topic>]
      Set/change IP addresses
      ip_address [-l <local_ip_address>] [-h <server_address>]
      Load a file
      load [-r] [-v] [-d] [-h <host>] [-m <varies>] [-c
      <channel_number>]
      [-b <base_address>] <file_name>
      Compare two blocks of memory
      mcmp -s <location> -d <location> -l <length> [-1|-2|-4]
      Fill a block of memory with a pattern
      mfill -b <location> -l <length> -p <pattern> [-1|-2|-4]
      move kernel&ramdisk to ram
      move
      Network connectivity test
      ping [-v] [-n <count>] [-l <length>] [-t <timeout>] [-r <rate>]
      [-i <IP_addr>] -h <IP_addr>
      Reset the system
      reset
      Set/Read MAC address for NPE ethernet ports
      set_npe_mac [-p <portnum>] [xx:xx:xx:xx:xx:xx]
      go to upgrade mode
      upgrade
      Display RedBoot version information
      version
      Display (hex dump) a range of memory
      x -b <location> [-l <length>] [-s] [-1|2|4]
      RedBoot> boot
      have eRcOmM copy kernel code from flash to RAM
      copy ramdisk file from flash to RAM
      run kernel RedBoot>
      RedBoot>
      RedBoot>
      RedBoot>
      RedBoot>
      RedBoot>
      RedBoot> go
      Uncompressing
      Linux...........................................................
      done, booting the kernel.

      Linux version 2.4.22-xfs (root@sure_linux) (gcc version 3.2.1) #377
      Fri Jul 2 09:02:32 CST 2004

      CPU: XScale-IXP425/IXC1100 revision 1

      Machine: Intel IXDP425 Development Platform

      Warning: bad configuration page, trying to continue

      Security risk: creating user accessible mapping for 0x60000000 at
      0xff00f000

      Security risk: creating user accessible mapping for 0x51000000 at
      0xf1000000

      On node 0 totalpages: 8192

      zone(0): 8192 pages.

      zone(1): 0 pages.

      zone(2): 0 pages.

      Kernel command line: console=ttyS0,115200 root=/dev/ram0
      initrd=0x01000000,10M mem=32M@0x00000000

      Calibrating delay loop... 131.48 BogoMIPS

      Memory: 32MB = 32MB total

      Memory: 20204KB available (1454K code, 244K data, 236K init)

      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)

      POSIX conformance testing by UNIFIX

      PCI Autoconfig: Found Bus 0, Device 1, Function 0

      PCI Autoconfig: BAR 0, Mem, size=0x1000, address=0x4bfff000

      PCI Autoconfig: Found Bus 0, Device 1, Function 1

      PCI Autoconfig: BAR 0, Mem, size=0x1000, address=0x4bffe000

      PCI Autoconfig: Found Bus 0, Device 1, Function 2

      PCI Autoconfig: BAR 0, Mem, size=0x100, address=0x4bffdf00

      PCI: bus0: Fast back to back transfers disabled

      Linux NET4.0 for Linux 2.4

      Based upon Swansea University Computer Society NET3.039

      Initializing RT netlink socket

      Starting kswapd

      VFS: Disk quotas vdquot_6.5.1

      Journalled Block Device driver loaded

      i2c-core.o: i2c core module

      i2c-dev.o: i2c /dev entries driver module

      i2c-core.o: driver i2c-dev dummy driver registered.

      i2c-algo-bit.o: i2c bit algorithm module version 2.6.1 (20010830)

      pty: 256 Unix98 ptys configured

      Serial driver version 5.05c (2001-07-08) with MANY_PORTS SHARE_IRQ
      SERIAL_PCI enabled

      ttyS00 at 0xff000003 (irq = 15) is a XScale UART

      ttyS01 at 0xff001003 (irq = 13) is a XScale UART

      RAMDISK driver initialized: 16 RAM disks of 16384K size 1024
      blocksize

      SCSI subsystem driver Revision: 1.00

      * host:<NULL>

      cfi_cmdset_0001: Erase suspend on write enabled

      Using buffer write method

      Using static MTD partitions.

      Creating 4 MTD partitions on "IXP425 Flash":

      0x00000000-0x00040000 : "RedBoot "

      0x00040000-0x00060000 : "System Configuration"

      0x00060000-0x00160000 : "Kernel"

      0x00160000-0x00800000 : "Ramdisk"

      usb.c: registered new driver hub

      pci probe begin

      ehci_hcd 00:01.2: NEC Corporation USB 2.0

      ehci_hcd 00:01.2: irq 26, pci mem c3801f00

      usb.c: new USB bus registered, assigned bus number 1

      PCI: 00:01.2 PCI cache line size set incorrectly (0 bytes) by
      BIOS/FW.

      PCI: 00:01.2 PCI cache line size corrected to 32.

      ehci_hcd 00:01.2: USB 2.0 enabled, EHCI 1.00, driver 2003-Jun-19/2.4

      hub.c: USB hub found

      hub.c: 5 ports detected

      pci probe ok

      host/usb-uhci.c: $Revision: 1.1 $ time 09:03:03 Jul 2 2004

      host/usb-uhci.c: High bandwidth mode enabled

      host/usb-uhci.c: v1.275:USB Universal Host Controller Interface
      driver

      host/usb-ohci.c: USB OHCI at membase 0xc3809000, IRQ 28

      host/usb-ohci.c: usb-00:01.0, NEC Corporation USB

      usb.c: new USB bus registered, assigned bus number 2

      hub.c: USB hub found

      hub.c: 3 ports detected

      host/usb-ohci.c: USB OHCI at membase 0xc380f000, IRQ 27

      host/usb-ohci.c: usb-00:01.1, NEC Corporation USB (#2)

      usb.c: new USB bus registered, assigned bus number 3

      hub.c: USB hub found

      hub.c: 2 ports detected

      Initializing USB Mass Storage driver...

      usb.c: registered new driver usb-storage

      USB Mass Storage support registered.

      i2c-dev.o: Registered 'IXP425 I2C Adapter' as minor 0

      i2c-core.o: adapter IXP425 I2C Adapter registered as adapter 0.

      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 2048 bind 4096)

      IP-Config: No network devices available.

      NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.

      NetWinder Floating Point Emulator V0.97 (double precision)

      RAMDISK: Compressed image found at block 0

      Freeing initrd memory: 10240K

      VFS: Mounted root (ext2 filesystem) readonly.

      Freeing init memory: 236K

      Insmod ixp400
      Using /lib/modules/2.4.22-xfs/kernel/drivers/ixp400/ixp400.o
      Warning: loading ixp400 will taint the kernel: no license
      See http://www.tux.org/lkml/#export-tainted for information about
      tainted modules
      Module init.

      Insmod ixp425
      Using /lib/modules/2.4.22-xfs/kernel/drivers/net/ixp425_eth.o
      ixp425_eth:

      Initializing IXP425 NPE Ethernet driver software v. 1.1

      ixp425_eth: CPU clock speed (approx) = 0 MHz

      [error] ixEthMiiPhyScan : unexpected Mii PHY ID 00008201

      ixp425_eth: ixp0 is using the PHY at address 0

      ixp425_eth: ixp1 is using the PHY at address 1

      ixp425_eth: ixEthMiiLinkStatus failed on PHY0.

      Can't determine

      the auto negotiated parameters. Using default values.

      BusyBox v0.60.4 (2004.07.01-03:05+0000) Built-in shell (ash)
      Enter 'help' for a list of built-in commands.

      # Creating ramfs for /var/lock/samba:
      Limit the space of log folder:
      Starting Hostname :
      OK
      Starting Modules :
      Using /lib/modules/pbuttons.o
      enable_irq(22) unbalanced from c38b11bc

      Using /lib/modules/rbuttons.o
      Starting Modules :
      Using /lib/modules/2.4.22-xfs/kernel/drivers/char/x1226-rtc.o
      X1226: I2C based RTC driver.

      i2c-core.o: driver X1226 registered.

      X1226: found X1226 on IXP425 I2C Adapter

      i2c-core.o: client [X1226] registered to adapter [IXP425 I2C Adapter]
      (pos. 0).

      atr is 0

      Setting LAN media type :
      Starting Set CGI_ds.conf:
      OK
      Restore time and timezone:
      08/11/2004-19:51:40
      OK
      Restore usrgrpshares:
      OK
      Generating telnet password:
      OK
      Starting WEB Server:
      OK
      OK
      Starting samba:
      Starting download:
      download uses obsolete (PF_INET,SOCK_PACKET)

      ixp425_eth: ixp0: Entering promiscuous mode

      device ixp0 entered promiscuous mode

      Starting INET Server:
      OK
      Creating ramfs for /tmp:
      Starting QuickSet Daemon :
      OK
      OK
      Starting Crond :
      Starting Rest Task :
      LinkSys_NetHD: boot complete!
      Checking quotas. This may take some time.

      OK
      Done.
      Turning on quota.
      Checking disk status :

      # ls
      bin dev etc home
      lib lost+found mnt proc
      sbin share tmp upload
      usr var
      #
    • rwhitby
      ... to ... (sp?) ... See my WRT54G Dual Serial Port Mod page (http://www.rwhitby.net/wrt54gs/serial.html) for details of how I added dual serial ports to the
      Message 2 of 6 , Aug 10, 2004
      • 0 Attachment
        --- In nslu2-linux@yahoogroups.com, "paulbart1234" <paulbart@b...>
        wrote:
        > Here's the pinout for the "J2" serial port:
        >
        > Pin 1 - 3.3V
        > Pin 2 - RXD (from serial terminal program to NSLU2)
        > Pin 3 - TXD (from NSLU2 to serial terminal program)
        > Pin 4 - GND
        >
        > By default, both Redboot and the Linux kernel use 115200,8,n,1
        > settings.
        >
        > As I said, you need an RS232 level shifter (to convert TTL levels
        to
        > +/-12V as needed by RS232 serial ports. I believe both Maxxim
        (sp?)
        > and Dallas Semiconductor sell the chips. Or, the converters could
        > be there as 'off the shelf' adapters (for developers) I suppose.

        See my WRT54G Dual Serial Port Mod page
        (http://www.rwhitby.net/wrt54gs/serial.html) for details of how I
        added dual serial ports to the Linksys WRT54G. You can use the same
        converter board here (or just use a single port converter kit from
        the same company).

        Jim, is there anywhere on the case where one could mount a DB9
        connector? See the web page above for ideas :-)

        -- Rod
      • Jim Buzbee
        ... Me? I haven t even cracked the case on mine yet. It doesn t look like there is a lot of space though. It s a tiny little box. We ve had a very productive
        Message 3 of 6 , Aug 10, 2004
        • 0 Attachment
          On Aug 10, 2004, at 6:10 PM, rwhitby wrote:

          > --- In nslu2-linux@yahoogroups.com, "paulbart1234" <paulbart@b...>
          > wrote:
          >> Here's the pinout for the "J2" serial port:
          >>
          >> Pin 1 - 3.3V
          >> Pin 2 - RXD (from serial terminal program to NSLU2)
          >> Pin 3 - TXD (from NSLU2 to serial terminal program)
          >> Pin 4 - GND
          >>
          >> By default, both Redboot and the Linux kernel use 115200,8,n,1
          >> settings.
          >>
          >> As I said, you need an RS232 level shifter (to convert TTL levels
          > to
          >> +/-12V as needed by RS232 serial ports. I believe both Maxxim
          > (sp?)
          >> and Dallas Semiconductor sell the chips. Or, the converters could
          >> be there as 'off the shelf' adapters (for developers) I suppose.
          >
          > See my WRT54G Dual Serial Port Mod page
          > (http://www.rwhitby.net/wrt54gs/serial.html) for details of how I
          > added dual serial ports to the Linksys WRT54G. You can use the same
          > converter board here (or just use a single port converter kit from
          > the same company).
          >
          > Jim,
          > is there anywhere on the case where one could mount a DB9
          > connector? See the web page above for ideas :-)


          Me? I haven't even cracked the case on mine yet. It doesn't look
          like there is a lot of space though. It's a tiny little box.


          We've had a very productive day today! Serial ports and custom flashes!

          Jim



          >
          > -- Rod
          >
          >
          >
          >
          >
          > Yahoo! Groups Links
          >
          >
          >
          >
          >
        • rwhitby
          ... same ... Sorry, I meant Paul :-) ... flashes! Indeed! My thanks to everyone for contributing and making this a very productive group. -- Rod
          Message 4 of 6 , Aug 10, 2004
          • 0 Attachment
            --- In nslu2-linux@yahoogroups.com, Jim Buzbee <jbuzbee@n...> wrote:
            > > See my WRT54G Dual Serial Port Mod page
            > > (http://www.rwhitby.net/wrt54gs/serial.html) for details of how I
            > > added dual serial ports to the Linksys WRT54G. You can use the
            same
            > > converter board here (or just use a single port converter kit from
            > > the same company).
            > >
            > > Jim,
            > > is there anywhere on the case where one could mount a DB9
            > > connector? See the web page above for ideas :-)
            >
            >
            > Me? I haven't even cracked the case on mine yet. It doesn't look
            > like there is a lot of space though. It's a tiny little box.

            Sorry, I meant Paul :-)

            > We've had a very productive day today! Serial ports and custom
            flashes!

            Indeed! My thanks to everyone for contributing and making this a
            very productive group.

            -- Rod
          • rwhitby
            ... little box. Do you think an A232DB kit from http://www.compsys1.com/workbench/On_top_of_the_Bench/Max233_Adapter/m ax233_adapter.html would fit on the top
            Message 5 of 6 , Aug 10, 2004
            • 0 Attachment
              --- In nslu2-linux@yahoogroups.com, Jim Buzbee <jbuzbee@n...> wrote:
              > > is there anywhere on the case where one could mount a DB9
              > > connector?
              > It doesn't look like there is a lot of space though. It's a tiny
              little box.

              Do you think an A232DB kit from
              http://www.compsys1.com/workbench/On_top_of_the_Bench/Max233_Adapter/m
              ax233_adapter.html would fit on the top of the case, just behind the
              LEDs on the corner, and extending across the PCB between the LEDs and
              the big capacitor?

              -- Rod
            • Guido Lehwalder
              ... Hi, I did see a otheer idea for a cheap RS232-Level-Converter which is used on the MeshCube (www.meshcube.org) The people from this project did use a
              Message 6 of 6 , Aug 24, 2004
              • 0 Attachment
                --- In nslu2-linux@yahoogroups.com, "paulbart1234" <paulbart@b...> wrote:
                >
                > Here's the pinout for the "J2" serial port:
                >
                > Pin 1 - 3.3V
                > Pin 2 - RXD (from serial terminal program to NSLU2)
                > Pin 3 - TXD (from NSLU2 to serial terminal program)
                > Pin 4 - GND

                Hi,

                I did see a otheer idea for a cheap RS232-Level-Converter
                which is used on the MeshCube (www.meshcube.org)

                The people from this project did use a simple data-cable for a Siemens
                GSM celluar phone... see here:
                http://www.meshcube.de/meshwiki/ModifiedMobileSerCable

                or for a selfmade version of a pcb take a look at this Page:
                http://www.meshcube.de/meshwiki/Serial_20Cable

                Could that litte thing work also on a NSLU2?

                Dont know if it will work with 115200 Baud....
                But on Ebay it only did cost about 2EUR + Postage :-))

                Bye from Germany
                Guido.
              Your message has been successfully submitted and would be delivered to recipients shortly.