| To: | "Shmulik Ladkani" <jungoshmulik@gmail.com> |
|---|---|
| Subject: | Re: serial port 8250 messed up after coverting from little endian to big endian on kernel 2.6.31 |
| From: | myuboot@fastmail.fm |
| Date: | Mon, 02 Nov 2009 17:54:09 -0600 |
| Cc: | "Sergei Shtylyov" <sshtylyov@ru.mvista.com>, "Florian Fainelli" <florian@openwrt.org>, linux-kernel@vger.kernel.org, "linux-mips" <linux-mips@linux-mips.org>, shmulik@jungo.com |
| Dkim-signature: | v=1; a=rsa-sha1; c=relaxed/relaxed; d=messagingengine.com; h=message-id:from:to:cc:mime-version:content-transfer-encoding:content-type:in-reply-to:references:subject:date; s=smtpout; bh=3fA6qLwogNQIr5/OdupuPfyakQk=; b=aC91UXON69tfLkkFFIN6Nbdf7trptqTpi2AAyG+4oWdU38Iil6I68A7GtbINwbl2J1bgbJwY6goAaIctJtpeXSfN0CgP4tlxjQ1asCGoQyeDt6ex4qKyOEs7ABL5976rBH+2cTCZZ9Rly/u6ZZi7XxqMeDmAlIrpplEBz1J2zhQ= |
| In-reply-to: | <20091029102652.76d42b8c@pixies.home.jungo.com> |
| Original-recipient: | rfc822;linux-mips@linux-mips.org |
| References: | <1255735395.30097.1340523469@webmail.messagingengine.com><4AD906D8.3020404@caviumnetworks.com><1255996564.10560.1340920621@webmail.messagingengine.com><200910200817.24018.florian@openwrt.org><1256676013.24305.1342273367@webmail.messagingengine.com><20091028103551.0b4052d8@pixies.home.jungo.com><4AE82520.4090607@ru.mvista.com><1256758575.4093.1342456105@webmail.messagingengine.com> <20091029102652.76d42b8c@pixies.home.jungo.com> |
| Sender: | linux-mips-bounce@linux-mips.org |
The CONFIG_SWAP_IO_SPACE was set to Y, but I don't even see it using xconfig or menuconfig. So I set it manually to n into .config file and then did a compile - I am using buildroot. But somehow the value always comes back to y after I type in command "make". The kernel image still messes up the console after the console is handovered from early printk to really ttyS01. Thanks. On Thu, 29 Oct 2009 10:26 +0200, "Shmulik Ladkani" <jungoshmulik@gmail.com> wrote: > On Wed, 28 Oct 2009 14:36:15 -0500 myuboot@fastmail.fm wrote: > > I just tried UPIO_MEM32 without adding a offset of 3. But the result is > > bad - after the kernel initializes the serial console, the console print > > out messes up. The early printk is fine because the u-boot initialises > > the serial port fine. > > > > Did I miss anything? Thanks again for your help. > > I guess you did fine with UPIO_MEM32. > > Keeping the UPIO_MEM32 approach, I suggest also to fiddle Y/N with > CONFIG_SWAP_IO_SPACE (might be that you have it set to Y while you don't > really need it, or vice versa). > This is since 'readl' uses 'ioswabl' for (potential) byte-swapping of the > read > value. Take a look at asm/io.h and mangle-port.h. > > Most important, read your hardware documentation to determine correct > access > to the memory mapped serial registers. > > -- > Shmulik Ladkani Jungo Ltd. |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | mips64 smp kexec failed booting at timer interrupt, wilbur.chan |
|---|---|
| Next by Date: | [PATCH] MIPS: Make collection of FPU emulator statistics optional., David Daney |
| Previous by Thread: | mips64 smp kexec failed booting at timer interrupt, wilbur.chan |
| Next by Thread: | [PATCH] MIPS: Make collection of FPU emulator statistics optional., David Daney |
| Indexes: | [Date] [Thread] [Top] [All Lists] |