linux-sh.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Alexandre Courbot <alex@dcl.info.waseda.ac.jp>
To: linux-sh@vger.kernel.org
Subject: Re: [PATCH] sh-sci: Extend sh-sci driver with early console V2
Date: Thu, 22 Apr 2010 05:54:13 +0000	[thread overview]
Message-ID: <x2nea710c1b1004212254t37f887f9ua9f7f31def8f4d04@mail.gmail.com> (raw)
In-Reply-To: <20091214102442.13038.43809.sendpatchset@rxone.opensource.se>

[-- Attachment #1: Type: text/plain, Size: 1182 bytes --]

Hello everybody,

> > I'm in trouble with qemu-sh serial console.  Don't you have any
> > guide on this trouble?
>
> Yes, I think the defconfig is missing one thing. Please try setting
> CONFIG_SERIAL_SH_SCI_NR_UARTS=2. See below.

Indeed, I ran into the same problem as Kawasaki-san and got it fixed
by setting CONFIG_SERIAL_SH_SCI_NR_UARTS to 2 instead of 1. With this
value, I am able to boot correctly by using the "earlyprintk=sh-sci.1
console=ttySC1" kernel parameters. FYI, my qemu command-line is:

qemu-system-sh4 -M r2d -kernel arch/sh/boot/zImage -serial null
-serial stdio -append "earlyprintk=sh-sci.1 console=ttySC1"

Also, the r2dplus configuration file sets
CONFIG_SERIAL_SH_SCI_NR_UARTS to 1 currently - here is a patch that
fixes that. It is possible that other targets need this.

We are also trying to get the latest Linux to run on the SH2007
platform, and since the new serial driver boot fails during SCIF
intialization. I have attached a boot log of what is sent to the
serial line. The output gets cut right in the middle of displaying
status for sh-sci.1. Any clue on that issue would be greatly
appreciated.

Thanks,
Alex.

[-- Attachment #2: sh2007-bootlog.txt --]
[-- Type: text/plain, Size: 4639 bytes --]

SH IPL+g version 1.30 Jun 21 2007, Copyright (C) 2001-2007 Free Software Foundation, Inc.

This software comes with ABSOLUTELY NO WARRANTY; for details type `w'.
This is free software, and you are welcome to redistribute it under
certain conditions; type `l' for details.

128Mbyte memory
PCI: Starting intialization.
pci device 00: VID=0x1033 DID=0x0035
Initializing uPD720101 USB Interface
DSW[1..8]=0001 1110

Booting from network!
SMSC LAN911x Driver (v1.12)
LAN9118(rev:1) at 0xb0800000 ADDR: 00:10:0c:00:50:f2
Searching for server (BOOTP/DHCP)...
IP Address: 192.168.1.100
Server: 192.168.1.1, Gateway 192.168.1.1
Kernel to load: "/nfs/sh2007/boot/vmlinuz.sh2007"
HOSTNAME: sh2007-mitake
ROOT PATH: /nfs/sh2007
Loading Kernel: /nfs/sh2007/boot/vmlinuz.sh2007 at 0x88210000 .........................................................a
done
Setting GDB trap vector to 80000100
Linux version 2.6.34-rc2 (mitake@mitakei7) (gcc version 4.4.3 (Debian 4.4.3-3) ) #238 Thu Apr 15 17:31:45 JST 2010
Boot params:
... MOUNT_ROOT_RDONLY - 00000000
... RAMDISK_FLAGS     - 00000000
... ORIG_ROOT_DEV     - 00000000
... LOADER_TYPE       - 00000000
... INITRD_START      - 00000000
... INITRD_SIZE       - 00000000
bootconsole [bios0] enabled
Booting machvec: sh2007
Node 0: start_pfn = 0x8000, low = 0x10000
Zone PFN ranges:
 Normal   0x00008000 -> 0x00010000
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
   0: 0x00008000 -> 0x00010000
SH-2007 Setup...done.
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512
Kernel command line: console=ttySC1,115200 ip=dhcp root=/dev/nfs rw nfsroot=/nfs/sh2007,rsize=1024,wsize=1024 earlyprins
PID hash table entries: 512 (order: -1, 2048 bytes)
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
PVR=10200a00 CVR=73440010 PRR=00000920
I-cache : n_ways=4 n_sets=256 way_incr=8192
I-cache : entry_mask=0x00001fe0 alias_mask=0x00001000 n_aliases=2
D-cache : n_ways=4 n_sets=256 way_incr=8192
D-cache : entry_mask=0x00001fe0 alias_mask=0x00001000 n_aliases=2
Memory: 123392k/131072k available (3918k kernel code, 2323k data, 184k init)
virtual kernel memory layout:
   fixmap  : 0xdfff7000 - 0xdffff000   (  32 kB)
   vmalloc : 0xc0000000 - 0xdfff5000   ( 511 MB)
   lowmem  : 0x88000000 - 0x90000000   ( 128 MB) (cached)
           : 0xa0000000 - 0xc0000000   ( 512 MB) (uncached)
     .init : 0x8861a000 - 0x88648000   ( 184 kB)
     .data : 0x883d49e8 - 0x886199a0   (2323 kB)
     .text : 0x88001000 - 0x883d49e8   (3918 kB)
Hierarchical RCU implementation.
NR_IRQS:256 nr_irqs:256
Console: colour dummy device 80x25
 sh_tmu.0: used for clock events
 sh_tmu.0: used for periodic clock events
 sh_tmu.1: used as clock source
Calibrating delay loop (skipped)... 600.00 BogoMIPS PRESET (lpj=3000000)
Mount-cache hash table entries: 512
CPU: SH7780
NET: Registered protocol family 16
Performance Events: SH-4A support registered
HW Breakpoints: SH-4A UBC support registered
bio: create slab <bio-0> at 0
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
DMA: Registering sh_dmac handler (12 channels).
DMA: Registering DMA API.
Switching to clocksource sh_tmu.1
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
platform sh_tmu.0: used for oneshot clock events
TCP established hash table entries: 4096 (order: 3, 32768 bytes)
TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
TCP: Hash tables configured (established 4096 bind 4096)
TCP reno registered
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
NET: Registered protocol family 1
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
SH2007 PIO Driver v0.1
audit: initializing netlink socket (disabled)
type=2000 audit(946684800.170:1): initialized
msgmni has been set to 241
alg: No test for cipher_null (cipher_null-generic)
alg: No test for ecb(cipher_null) (ecb-cipher_null)
alg: No test for digest_null (digest_null-generic)
alg: No test for compress_null (compress_null-generic)
alg: No test for fcrypt (fcrypt-generic)
alg: No test for stdrng (krng)
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
Serial: 8250/16550 driver, 8 ports, IRQ sharing enabled
SuperH SCI(F) driver initialized
sh-sci.0: ttySC0 at MMIO 0xffe00000 (irq = 40) is a scif
sh-sci.1: ttySC1 at MMIO 0x

[-- Attachment #3: 0001-SH-Fixed-number-of-UARTs-in-r2dplus-config.patch --]
[-- Type: text/x-patch, Size: 824 bytes --]

From 18885a76e31aaccbaf78c43b42cdaf9031b3c13f Mon Sep 17 00:00:00 2001
From: Alexandre Courbot <gnurou@gmail.com>
Date: Mon, 19 Apr 2010 16:29:21 +0900
Subject: [PATCH] [SH] Fixed number of UARTs in r2dplus config

---
 arch/sh/configs/rts7751r2dplus_defconfig |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/sh/configs/rts7751r2dplus_defconfig b/arch/sh/configs/rts7751r2dplus_defconfig
index a8d538f..6d511d0 100644
--- a/arch/sh/configs/rts7751r2dplus_defconfig
+++ b/arch/sh/configs/rts7751r2dplus_defconfig
@@ -963,7 +963,7 @@ CONFIG_SERIAL_8250_RUNTIME_UARTS=4
 #
 # CONFIG_SERIAL_MAX3100 is not set
 CONFIG_SERIAL_SH_SCI=y
-CONFIG_SERIAL_SH_SCI_NR_UARTS=1
+CONFIG_SERIAL_SH_SCI_NR_UARTS=2
 CONFIG_SERIAL_SH_SCI_CONSOLE=y
 CONFIG_SERIAL_CORE=y
 CONFIG_SERIAL_CORE_CONSOLE=y
-- 
1.7.0.5


  parent reply	other threads:[~2010-04-22  5:54 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-14 10:24 [PATCH] sh-sci: Extend sh-sci driver with early console V2 Magnus Damm
2009-12-15  3:37 ` Paul Mundt
2010-04-11  7:40 ` Shin-ichiro KAWASAKI
2010-04-21  8:30 ` Magnus Damm
2010-04-22  5:54 ` Alexandre Courbot [this message]
2010-04-22  6:11 ` Magnus Damm
2010-04-22  6:22 ` Alexandre Courbot
2010-04-22  6:30 ` Paul Mundt
2010-04-22  7:09 ` Magnus Damm
2010-04-23  6:25 ` Alexandre Courbot
2010-04-23  7:26 ` Paul Mundt
2010-04-23 11:16 ` Alexandre Courbot
2010-04-25 12:30 ` Shin-ichiro KAWASAKI
2010-04-26  7:03 ` Paul Mundt

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=x2nea710c1b1004212254t37f887f9ua9f7f31def8f4d04@mail.gmail.com \
    --to=alex@dcl.info.waseda.ac.jp \
    --cc=linux-sh@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).