ts-7000
[Top] [All Lists]

Re: [ts-7000] hot-swapping JP2

To:
Subject: Re: [ts-7000] hot-swapping JP2
From: Robert Ernst <>
Date: Fri, 3 Nov 2006 09:43:16 +0100
Am Freitag, 3. November 2006 01:12 schrieb Joe Bouchard:
> On Thu, Nov 02, 2006 at 05:59:42PM -0000, gunghoiguana wrote:
> > Here's another obscure one:
> >
> > On the ts-7260, what's the word on setting jumper JP2 (the console
> > enable) while the board is on?  Is that safe?
> >
> > I ask because I have a relatively dumb device connected to COM1, and I
> > need the console disabled at boot time because it prints stuff that
> > the device misinterprets as commands--a few lines go to COM1 even when
> > the console is swapped to COM2.  It's not a problem to just disable
> > the console at boot time and connect JP2 if I need it later (usually
> > unnecessary, since I can log in over ethernet).
> >
> > If it's not safe to set JP2 while hot, is there a way to prevent
> > anything from printing to COM1 while JP2 is on?
>
> I don't know about hot swapping.  I'm using TS7200, so what I may not fit
> your 7260.  I have been able to swap console to com2 and don't get anything
> on com1 if I don't want it.  3 things have to be swapped to make this
> happen.  (1) is to add jumper to swap starting prompt to com2 (jumper 5
> maybe? I can't remember).  Then at redboot startup script, (2) set console
> to ttyAM1.  Finally, inside /etc/inittab, (3) comment out the getty on
> ttyAM0.  Works for me...

You still get the "Uncompressing linux..." message on COM1 since this is 
hardcoded in a header file of the linux kernel.
You have to change linux/include/asm-arm/arch-ep93xx/uncompress.h
and compile and install a new kernel. In detail,

you have to change the #defines for UARTx to:

#define UARTxFR                 UART2FR
#define UARTxDR                 UART2DR
#define UARTxCR                 UART2CR
#define UARTxRSR                UART2RSR
#define UARTxCR_L               UART2CR_L
#define UARTxCR_M               UART2CR_M
#define UARTxCR_H               UART2CR_H
#define SYSCON_DEVCFG_UxEN      SYSCON_DEVCFG_U2EN

and in the EnableUart(void), remove the line:

*HW_REG(UARTxMCR) = 0;

since UART2 has no modem control register

> (3) comment out the getty on ttyAM0.  Works for me...

Better change the line to ttyAM1 to have a console...



Robert



 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/ts-7000/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/ts-7000/join
    (Yahoo! ID required)

<*> To change settings via email:
     
    

<*> To unsubscribe from this group, send an email to:
    

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 

<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU