Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Fri, 9 Nov 2001 11:18:28 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Fri, 9 Nov 2001 11:18:19 -0500 Received: from ns.sysgo.de ([213.68.67.98]:35057 "EHLO dagobert.svc.sysgo.de") by vger.kernel.org with ESMTP id ; Fri, 9 Nov 2001 11:18:10 -0500 Content-Type: Multipart/Mixed; charset="iso-8859-1"; boundary="------------Boundary-00=_GYJJ32HA1OBBG12CVE3K" From: Robert Kaiser Reply-To: rkaiser@sysgo.de Organization: Sysgo RTS GmbH To: Subject: Re: Kernel booting on serial console ... crawling Date: Fri, 9 Nov 2001 17:18:16 +0100 X-Mailer: KMail [version 1.2] In-Reply-To: In-Reply-To: Cc: Anders Larsen , , MIME-Version: 1.0 Message-Id: <01110917181600.03671@rob> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org --------------Boundary-00=_GYJJ32HA1OBBG12CVE3K Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit Hi Robert, Am Freitag, 9. November 2001 13:27 schrieben Sie: > On Fri, 9 Nov 2001, Robert Kaiser wrote: > > Is this an AMD Elan's built-in serial port, perchance ? > > I got a patch for the Elan's serial port from Jason Sodergren some days > ago, but it's not clear to me what exactly the problem is with this port. > I'm using the serial console on a DIL/Net-PC without any problems so far. > Perhaps it might be a good idea to join forces and try to get a patch for > the Elan series into the main kernel? > > However, my current affords can be found on > > http://www.schwebel.de/software/dnp/index_en.html > > This currently implements a new CPU configuration parameter and a fix for > the clock on the Elan CPUs. This is interesting, I was not aware of the different clock frequency issue. Anyway, the patch I am using to fix the crawling console output symptom on the Elan is entirely different (see attachment). It was originally posted by Anders Larsen and we have been using it with good success in our embedded Linux product for quite a while now. The comments in the source describe the problem. Interestingly, even the latest AMD Elan product (SC520) seems to have this problem too. Rob ---------------------------------------------------------------- Robert Kaiser email: rkaiser@sysgo.de SYSGO RTS GmbH Am Pfaffenstein 14 phone: (49) 6136 9948-762 D-55270 Klein-Winternheim / Germany fax: (49) 6136 9948-10 --------------Boundary-00=_GYJJ32HA1OBBG12CVE3K Content-Type: text/x-c; charset="iso-8859-1"; name="patch-AMD-elan-serial" Content-Transfer-Encoding: base64 Content-Description: AMD Elan Workaround Content-Disposition: attachment; filename="patch-AMD-elan-serial" SW5kZXg6IHN5c2dvL2VsaW5vcy9saW51eC9kcml2ZXJzL2NoYXIvc2VyaWFsLmMNCmRpZmYgLWMg c3lzZ28vZWxpbm9zL2xpbnV4L2RyaXZlcnMvY2hhci9zZXJpYWwuYzoxLjIgc3lzZ28vZWxpbm9z L2xpbnV4L2RyaXZlcnMvY2hhci9zZXJpYWwuYzoxLjMNCioqKiBzeXNnby9lbGlub3MvbGludXgv ZHJpdmVycy9jaGFyL3NlcmlhbC5jOjEuMglXZWQgTWF5IDE3IDE0OjA3OjAwIDIwMDANCi0tLSBz eXNnby9lbGlub3MvbGludXgvZHJpdmVycy9jaGFyL3NlcmlhbC5jCVdlZCBKdW4gIDcgMTU6MTk6 NTMgMjAwMA0KKioqKioqKioqKioqKioqDQoqKiogNjA3LDYxMiAqKioqDQotLS0gNjA3LDYxMyAt LS0tDQogIAlpbnQgc3RhdHVzOw0KICAJc3RydWN0IGFzeW5jX3N0cnVjdCAqIGluZm87DQogIAlp bnQgcGFzc19jb3VudGVyID0gMDsNCisgCWludCBpaXI7DQogIAlzdHJ1Y3QgYXN5bmNfc3RydWN0 ICplbmRfbWFyayA9IDA7DQogICNpZmRlZiBDT05GSUdfU0VSSUFMX01VTFRJUE9SVAkNCiAgCWlu dCBmaXJzdF9tdWx0aSA9IDA7DQoqKioqKioqKioqKioqKioNCioqKiA2MjcsNjM1ICoqKioNCiAg CQlmaXJzdF9tdWx0aSA9IGluYihtdWx0aS0+cG9ydF9tb25pdG9yKTsNCiAgI2VuZGlmDQogIA0K ICAJZG8gew0KICAJCWlmICghaW5mby0+dHR5IHx8DQohIAkJICAgICh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AkJaWYgKHBhc3NfY291bnRlcisrID4gUlNfSVNSX1BBU1NfTElNSVQpIHsNCioqKioq KioqKioqKioqKg0KKioqIDcxNyw3MjMgKioqKg0KICAjZW5kaWYNCiAgCQkJYnJlYWs7DQogIAkJ fQ0KISAJfSB3aGlsZSAoIShzZXJpYWxfaW4oaW5mbywgVUFSVF9JSVIpICYgVUFSVF9JSVJfTk9f SU5UKSk7DQogIAlpbmZvLT5sYXN0X2FjdGl2ZSA9IGppZmZpZXM7DQogICNpZmRlZiBDT05GSUdf U0VSSUFMX01VTFRJUE9SVAkNCiAgCWlmIChtdWx0aS0+cG9ydF9tb25pdG9yKQ0KLS0tIDc0Miw3 NDggLS0tLQ0KICAjZW5kaWYNCiAgCQkJYnJlYWs7DQogIAkJfQ0KISAJfSB3aGlsZSAoISgoaWly ID0gc2VyaWFsX2luKGluZm8sIFVBUlRfSUlSKSkgJiBVQVJUX0lJUl9OT19JTlQpKTsNCiAgCWlu Zm8tPmxhc3RfYWN0aXZlID0gamlmZmllczsNCiAgI2lmZGVmIENPTkZJR19TRVJJQUxfTVVMVElQ T1JUCQ0KICAJaWYgKG11bHRpLT5wb3J0X21vbml0b3IpDQo= --------------Boundary-00=_GYJJ32HA1OBBG12CVE3K-- - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/