| To: | myuboot@fastmail.fm |
|---|---|
| Subject: | Re: serial port 8250 messed up after coverting from little endian to big endian on kernel 2.6.31 |
| From: | Shmulik Ladkani <jungoshmulik@gmail.com> |
| Date: | Thu, 29 Oct 2009 10:26:52 +0200 |
| 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-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:cc:subject :message-id:in-reply-to:references:x-mailer:mime-version :content-type:content-transfer-encoding; bh=/Q9vrteFRVsSZbjhYQWyCcq7dws658gDsT2HMDk8yTo=; b=czzOqxGGYZIw3PgFcHWtimGwqMeOGJIIEio8oRHjKn9ZXMM82+oDOA6lAiQI3M8wpj mvlhMvhhOQnJ7Am/i3ypNivLBSAAYVpl5FDa/4nk6bgm4pPtiEf+9Px+pqWIcpugoPb8 UEimLcKJqUMzZau1S/33EHcRRJEYRhL4vIKfA= |
| Domainkey-signature: | a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:in-reply-to:references:x-mailer :mime-version:content-type:content-transfer-encoding; b=C/YPrWdsbVC/xE91YxTKqz0/m3k8uM8meJNO/LuBkFjrxuSOM9h+clTmxJCJoTu6It Dc6hJjZGKIM9sfLH2B/54yJO4w1sXKT6HkxIgHqznaykWPHE+lXevLYVfBBPMm3IMsjs Jg7FYr8gT4mMRFw8vTSUNnqjUV54iNUWcREuo= |
| In-reply-to: | <1256758575.4093.1342456105@webmail.messagingengine.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> |
| Sender: | linux-mips-bounce@linux-mips.org |
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. |
| Previous by Date: | [PATCH] MIPS: Add option to pass return address location to _mcount, Wu Zhangjin |
|---|---|
| Next by Date: | Re: [PATCH -v1] MIPS: a few of fixups and cleanups for the compressed kernel support, David Daney |
| Previous by Thread: | Re: serial port 8250 messed up after coverting from little endian to big endian on kernel 2.6.31, myuboot |
| Next by Thread: | Re: [PATCH 1/2] alchemy: add au1000-eth platform device, Florian Fainelli |
| Indexes: | [Date] [Thread] [Top] [All Lists] |