All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dea_RU <dryukovz@mail.ru>
To: linux-mips@linux-mips.org
Subject: Re: TI AR7 7200 - no boot
Date: Wed, 3 Mar 2010 02:59:49 -0800 (PST)	[thread overview]
Message-ID: <27766728.post@talk.nabble.com> (raw)
In-Reply-To: <201003031124.46336.florian@openwrt.org>



Florian Fainelli-4 wrote:
> 
> Hi,
> 
> You have one of these devices with bogus UART, (there are quite some out
> there)
> can you try with the following patch and tell me if that gives you an
> usable console:
> 
> diff --git a/arch/mips/ar7/platform.c b/arch/mips/ar7/platform.c
> index 246df7a..15cbeeb 100644
> --- a/arch/mips/ar7/platform.c
> +++ b/arch/mips/ar7/platform.c
> @@ -551,6 +551,7 @@ static int __init ar7_register_uarts(void)
>         uart_port.irq           = AR7_IRQ_UART0;
>         uart_port.mapbase       = AR7_REGS_UART0;
>         uart_port.membase       = ioremap(uart_port.mapbase, 256);
> +       uart_port.flags         = UPF_IOREMAP | UPF_BOOT_AUTOCONF;
> 
>         res = early_serial_setup(&uart_port);
>         if (res)
> @@ -562,6 +563,7 @@ static int __init ar7_register_uarts(void)
>                 uart_port.irq           = AR7_IRQ_UART1;
>                 uart_port.mapbase       = UR8_REGS_UART1;
>                 uart_port.membase       = ioremap(uart_port.mapbase, 256);
> +               uart_port.flags         = UPF_IOREMAP | UPF_BOOT_AUTOCONF;
> 
>                 res = early_serial_setup(&uart_port);
>                 if (res)
> 
> Thanks.
> -- 
> Regards, Florian
> 



after remark printk with message console color  line 2927 /drivers/char/vt.c

boot process stop with:
====================
....
Primary data cache 8kB, 4-way, VIPT, no aliases, linesize 16 bytes
Memory: 13172k/16384k available (1314k kernel code, 3212k reserved, 411k
data, 120k init, 0k highmem)
NR_IRQS:256
Calibrating delay loop... 
===============
next freeze on delay loop clculation !? IRQ not init correctly ??? 

maby after send byte over USART cpu set flag "USART TX buffer cleared"? and
kernel go to interput vector ???

=========

in kernel src 2.6.33 from mips.org patch based code not present !
/arch/mips/ar7/platform.c 

i added port number flags for version 2.6.33 ....

uart_port[0].flags         = UPF_IOREMAP | UPF_BOOT_AUTOCONF; 
uart_port[1].flags         = UPF_IOREMAP | UPF_BOOT_AUTOCONF; 

==============

after added flags and remark console collor booting stop with:

......
Primary data cache 8kB, 4-way, VIPT, no aliases, linesize 16 bytes
Memory: 13172k/16384k available (1314k kernel code, 3212k reserved, 411k
data, 120k init, 0k highmem)
NR_IRQS:256
Calibrating delay loop... 


-- 
View this message in context: http://old.nabble.com/TI-AR7-7200---no-boot-tp27766331p27766728.html
Sent from the linux-mips main mailing list archive at Nabble.com.

  reply	other threads:[~2010-03-03 10:59 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-03 10:11 TI AR7 7200 - no boot Dea_RU
2010-03-03 10:24 ` Florian Fainelli
2010-03-03 10:59   ` Dea_RU [this message]
2010-03-03 12:58     ` Dea_RU
2010-03-03 13:04       ` Florian Fainelli
2010-03-03 14:24         ` Dea_RU
2010-03-03 19:20           ` Dea_RU
2010-03-03 20:05             ` Florian Fainelli
2010-03-03 15:54         ` Alexander Clouter

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=27766728.post@talk.nabble.com \
    --to=dryukovz@mail.ru \
    --cc=linux-mips@linux-mips.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.