Received: from mail.onstor.com (66.201.51.107) by exch1.onstor.net
 (10.0.0.225) with Microsoft SMTP Server id 8.1.311.2; Sat, 24 Jan 2009
 15:21:42 -0800
Received: from dalesmta2-2.messageone.com ([129.41.169.249]) by
 mail.onstor.com with Microsoft SMTPSVC(6.0.3790.3959);	 Sat, 24 Jan 2009
 15:21:40 -0800
Received: from ftp.linux-mips.org (ftp.linux-mips.org [213.58.128.207])	by
 dalesmta2-2.messageone.com (8.13.8/8.13.8) with ESMTP id n0ONLZ7T015551	for
 <andy.sharp@onstor.com>; Sat, 24 Jan 2009 17:21:35 -0600
Received: from localhost.localdomain ([127.0.0.1]:34793 "EHLO
	ftp.linux-mips.org") by ftp.linux-mips.org with ESMTP	id S21366331AbZAXXUz
 (ORCPT <rfc822;andy.sharp@onstor.com>);	Sat, 24 Jan 2009 23:20:55 +0000
Received: with ECARTIS (v1.0.0; list linux-mips); Sat, 24 Jan 2009 23:20:38
 +0000 (GMT)
Received: from mail.bugwerft.de ([212.112.241.193]:37595 "EHLO
	mail.bugwerft.de") by ftp.linux-mips.org with ESMTP	id S21366305AbZAXXUg
 (ORCPT <rfc822;linux-mips@linux-mips.org>);	Sat, 24 Jan 2009 23:20:36 +0000
Received: from localhost (localhost.localdomain [127.0.0.1])	by
 mail.bugwerft.de (Postfix) with ESMTP id 84C1E8F849D;	Sun, 25 Jan 2009
 00:20:30 +0100 (CET)
Received: from mail.bugwerft.de ([127.0.0.1])	by localhost (mail.bugwerft.de
 [127.0.0.1]) (amavisd-new, port 10024)	with ESMTP id uUijuvTGdGZo; Sun, 25
 Jan 2009 00:20:29 +0100 (CET)
Received: from [10.1.1.26] (ip-77-25-15-184.web.vodafone.de [77.25.15.184])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))	(No client
 certificate requested)	by mail.bugwerft.de (Postfix) with ESMTP id
 82BC78F849C;	Sun, 25 Jan 2009 00:20:27 +0100 (CET)
From: Frank Neuber <frank.neuber@kernelport.de>
To: Manuel Lauss <mano@roarinelk.homelinux.net>
CC: "linux-mips@linux-mips.org" <linux-mips@linux-mips.org>
Sender: "linux-mips-bounce@linux-mips.org" <linux-mips-bounce@linux-mips.org>
Date: Sat, 24 Jan 2009 15:20:24 -0800
Subject: Re: Au1550 with kernel linux-2.6.28.1
Thread-Topic: Au1550 with kernel linux-2.6.28.1
Thread-Index: Acl+eoSAGiRU+99hRWyMwdGwoTYu3A==
Message-ID: <1232839224.28527.336.camel@t60p>
References: <1232739600.28527.289.camel@t60p>
	 <20090124085734.5b6b5c66@scarran.roarinelk.net>
	 <1232787448.28527.302.camel@t60p>
In-Reply-To: <1232787448.28527.302.camel@t60p>
Accept-Language: en-US
Content-Language: en-US
X-MS-Exchange-Organization-AuthAs: Internal
X-MS-Exchange-Organization-AuthMechanism: 0b
X-MS-Exchange-Organization-AuthSource: exch1.onstor.net
X-MS-Has-Attach:
X-Auto-Response-Suppress: All
X-MS-TNEF-Correlator:
x-originalarrivaltime: 24 Jan 2009 23:21:40.0734 (UTC)
 FILETIME=[831919E0:01C97E7A]
errors-to: linux-mips-bounce@linux-mips.org
x-ems-proccessed: 2K3Xl1OQTInXD6xxuA8z3Q==
x-ems-stamp: VGqjYFmZezObtUrQ9iBscg==
x-messageone-virus-version: vendor=fsecure
 engine=4.65.7400:2.4.4,1.2.40,4.0.164
 definitions=2009-01-24_06:2009-01-21,2009-01-24,2009-01-24 signatures=0
x-messageone-virus-scanned: Clean
x-messageone-envelope-sender: linux-mips-bounce@linux-mips.org
x-messageone-spam-details: rule=m773emszm_notspam policy=m773emszm score=0
 spamscore=0 ipscore=0 phishscore=0 bulkscore=0 adultscore=0 classifier=spam
 adjust=0 reason=mlx engine=3.1.0-0810130000 definitions=main-0901240170
x-messageone-spam-score: 0
x-messageone-spam-bar:
x-list: linux-mips
x-archive-position: 21810
x-ecartis-version: Ecartis v1.0.0
x-original-sender: frank.neuber@kernelport.de
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0

Hi Manuel,
after trying the standard early printk without luck I implemented my
own:
=20
--- kernel/printk.c.orig        2009-01-24 23:48:08.000000000 +0100
+++ kernel/printk.c     2009-01-24 23:49:42.000000000 +0100
@@ -481,8 +481,30 @@
        _call_console_drivers(start_print, end, msg_level);
 }
=20
+#include <linux/serial_8250.h>
+#include <asm/mach-au1x00/au1000.h>
+
+void serial_putc (const char c)
+{
+        volatile u32 *uart_lsr =3D (volatile u32*)(UART0_ADDR+UART_LSR);
+        volatile u32 *uart_tx =3D (volatile u32*)(UART0_ADDR+UART_TX);
+
+        if (c =3D=3D '\n') serial_putc ('\r');
+
+        /* Wait for fifo to shift out some bytes */
+        while((*uart_lsr&UART_LSR_THRE)=3D=3D0);
+
+        *uart_tx =3D (u32)c;
+}
+
 static void emit_log_char(char c)
 {
+#if 1
+        if (c =3D=3D '\n'){
+                serial_putc('\r');
+        }
+        serial_putc(c);
+#endif
        LOG_BUF(log_end) =3D c;
        log_end++;
        if (log_end - log_start > log_buf_len)

The same result, I see nothing :-(

This means I run into trouble in the very early assembler part of the
kernel. I know the ARM kernel has some debug features implemented (using
the serial port).
Has the mips kernel a comparable debug possebility?

I striped down the defconfig as you sad and start the kernel using
uboot:

tc# bootm 0x80500000
## Booting image at 80500000 ...
   Image Name:   Linux-2.6.28.1
   Created:      2009-01-24  21:39:57 UTC
   Image Type:   MIPS Linux Kernel Image (gzip compressed)
   Data Size:    894213 Bytes =3D 873.3 kB
   Load Address: 80100000
   Entry Point:  80104690
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK

Starting kernel ...

Could the entry point be the problem? He is very close to the load
address. Because I have no JTAG for mips it is not easy to check what is
going on here ....=20

Now I have no idea what can I do next ...

Kind Regards,
 Frank



