From owner-freebsd-small@FreeBSD.ORG Tue Jun 10 12:54:11 2003 Return-Path: Delivered-To: freebsd-small@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 36C5A37B401; Tue, 10 Jun 2003 12:54:11 -0700 (PDT) Received: from server.soekris.com (dsl-sj-66-219-69-164.broadviewnet.net [66.219.69.164]) by mx1.FreeBSD.org (Postfix) with ESMTP id 10F0343FA3; Tue, 10 Jun 2003 12:54:10 -0700 (PDT) (envelope-from soren@soekris.com) Received: from soekris.com (1.4.soekris.com [192.168.1.4] (may be forged)) by server.soekris.com (8.9.2/8.9.2) with ESMTP id MAA92755; Tue, 10 Jun 2003 12:54:14 -0700 (PDT) (envelope-from soren@soekris.com) Message-ID: <3EE63760.6040209@soekris.com> Date: Tue, 10 Jun 2003 12:54:08 -0700 From: Soren Kristensen Organization: Soekris Engineering User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.2) Gecko/20030208 Netscape/7.02 X-Accept-Language: en-us, en, da MIME-Version: 1.0 To: freebsd-hackers@freebsd.org, freebsd-small@freebsd.org Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: Looking for FreeBSD kernel debugging help X-BeenThere: freebsd-small@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Jun 2003 19:54:11 -0000 Hi Everybody, I've been working like a madman on bringing up a new Geode SC1100 based embedded board, but are stalled right now, and need help for debugging with FreeBSD.... The hardware basically seems to be working just fine, and I can boot both MS-DOS and OpenBSD 2.9 from a CompactFlash. But I can't boot FreeBSD, and need to find out why, and I'm looking for somebody that can help me, as I'm just the hardware guy.... When booting freeBSD I get: Type '?' for a list of commands, 'help' for more detailed help. ok boot -v Copyright (c) 1992-2001 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 4.4-RELEASE #1: Sun Jun 8 19:08:24 PDT 2003 soren@Server600.soekris.com:/usr/src/sys/compile/KERN_NSC Calibrating clock(s) ... TSC clock: 266667486 Hz, i8254 clock: 1193267 Hz CLK_USE_I8254_CALIBRATION not specified - using default frequency Timecounter "i8254" frequency 1193182 Hz CLK_USE_TSC_CALIBRATION not specified - using old calibration method CPU: Cyrix GXm (266.65-MHz 586-class CPU) Origin = "CyrixInstead" Id = 0x540 DIR=0x81b7 Stepping=8 Revision=1 real memory = 134217728 (131072K bytes) Physical memory chunk(s): 0x00001000 - 0x0009efff, 647168 bytes (158 pages) 0x003c1000 - 0x07ff7fff, 130248704 bytes (31799 pages) avail memory = 126984192 (124008K bytes) bios32: Found BIOS32 Service Directory header at 0xc00f0080 bios32: Entry = 0xf00c0 (c00f00c0) Rev = 0 Len = 1 pcibios: PCI BIOS entry at 0xe1 Other BIOS signatures found: ACPI: 00000000 Preloaded elf kernel "kernel" at 0xc039b000. md0: Malloc disk Creating DISK md0 Math emulator present pci_open(1): mode 1 addr port (0x0cf8) is 0x800090d0 pci_open(1a): mode1res=0x80000000 (0x80000000) pci_cfgcheck: device 0 [class=060000] [hdr=00] is there (id=00011078) And there it just hangs forever.... Normally it would continue with: npx0: on motherboard npx0: INT 16 interface pcib0: on motherboard . . . So it looks like it hangs between first PCI check probe and printing the NPX info. The question is, what hardware specific could there be that could hang ? It's probably PCI config or floating point related, I tried to follow the source, but couldn't really.... Some additional info: The PCI bus seems fine, I can netboot, but it then hangs the same place. Same with a 4.2-release and 4.8-release. Same with and without NSC VSA extension. Same with GENERIC kernel. I did some search on the net, and all info indicated that a stock FreeBSD should work, although a patch for the TSC counter is needed for optimal performance and a patch if you use the Video (which the SC1100 don't have). I have tried every single register in the SC1100 chip (And there are tons of them...) I also tried changed the chip ID from "Geode by NSC" to "CyrixInstead", but that just resulted in FreeBSD recognizing the CPU and providing a little better CPU information. More info on the hardware at: http://www.soekris.com/net4801.htm So I need: All qualified help pinpointing the problem. Or a kernel hacker that can come by Morgan Hill, CA and debug the FreeBSD kernel telling me exactly where and why it hangs. Once I know that, it's usually easy to fix. I'm prepared to pay for solving the problem, cash and/or net4801 hardware.... Regards, Soren From owner-freebsd-small@FreeBSD.ORG Tue Jun 10 19:38:16 2003 Return-Path: Delivered-To: freebsd-small@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2BAD537B401 for ; Tue, 10 Jun 2003 19:38:15 -0700 (PDT) Received: from smtp8.access.co.jp (smtp8.access.co.jp [157.78.36.253]) by mx1.FreeBSD.org (Postfix) with SMTP id CD11B43FCB for ; Tue, 10 Jun 2003 19:38:13 -0700 (PDT) (envelope-from iap_sraja@access.co.jp) Received: (qmail 11819 invoked from network); 11 Jun 2003 11:38:13 +0900 Received: from unknown (HELO smtp5.access.co.jp) (157.78.36.243) by 0 with SMTP; 11 Jun 2003 11:38:13 +0900 Received: (qmail 18247 invoked by alias); 11 Jun 2003 11:38:12 +0900 Received: (qmail 18229 invoked from network); 11 Jun 2003 11:38:12 +0900 Received: from unknown (HELO ADMIN) (157.78.69.163) by 0 with SMTP; 11 Jun 2003 11:38:12 +0900 MIME-Version: 1.0 Message-Id: <3EE69613.000387.01384@ADMIN.access.co.jp> Date: Wed, 11 Jun 2003 11:38:11 +0900 Content-Type: Multipart/related; type="multipart/alternative"; boundary="------------Boundary-00=_NZPAGE1L3SH3LVC00000" X-Mailer: IncrediMail 2001 (2001155.2001155) From: "Raja Saleru" X-FID: FLAVOR00-NONE-0000-0000-000000000000 X-FVER: 3.0 X-CNT: ; X-Priority: 3 To: "freebsd-small@freebsd.org" , "freebsd-hackers@freebsd.org" X-Content-Filtered-By: Mailman/MimeDel 2.1.1 Subject: GDB - Query Section Offset X-BeenThere: freebsd-small@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Jun 2003 02:38:16 -0000 --------------Boundary-00=_NZPAGE1L3SH3LVC00000 Content-Type: Text/Plain; charset="shift_jis" Content-Transfer-Encoding: quoted-printable Hi, I have query related gdb and gdbserver communication.=0D =0D Query Section Offset(qOffset)=0D =0D This request sent by the gdb to determine what relocation, if any, the target applies to applications and data during the download process. =20 Target responds with the offsets it applies to the application`s .text, =20 data, .bss sections.=0D =0D Does this request supports in cross compiled gdbserver for sh-elf ?=0D =0D where this request is implemented in gdb ? which source file / function ?= =0D =0D Where the corresponding request is handled in gdbserver ? which source fi= le / function ?=0D =0D If the gdbserver doesn't returning the requested value... I can I implemented the same ?=0D Any example code if possible.=0D =0D Any more details regarding this will be usefull.=0D =0D Regards=0D Raja Saleru --------------Boundary-00=_NZPAGE1L3SH3LVC00000-- From owner-freebsd-small@FreeBSD.ORG Wed Jun 11 01:52:32 2003 Return-Path: Delivered-To: freebsd-small@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4EF3237B411; Wed, 11 Jun 2003 01:52:32 -0700 (PDT) Received: from server.soekris.com (dsl-sj-66-219-69-164.broadviewnet.net [66.219.69.164]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7AAD943F3F; Wed, 11 Jun 2003 01:52:31 -0700 (PDT) (envelope-from soren@soekris.com) Received: from soekris.com (1.4.soekris.com [192.168.1.4] (may be forged)) by server.soekris.com (8.9.2/8.9.2) with ESMTP id BAA00874; Wed, 11 Jun 2003 01:52:36 -0700 (PDT) (envelope-from soren@soekris.com) Message-ID: <3EE6EDCE.3040006@soekris.com> Date: Wed, 11 Jun 2003 01:52:30 -0700 From: Soren Kristensen Organization: Soekris Engineering User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.2) Gecko/20030208 Netscape/7.02 X-Accept-Language: en-us, en, da MIME-Version: 1.0 To: freebsd-hackers@freebsd.org, freebsd-small@freebsd.org References: <3EE63760.6040209@soekris.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: Looking for FreeBSD kernel debugging help X-BeenThere: freebsd-small@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Jun 2003 08:52:32 -0000 Hi Everybody, First, thanks to everybody offering tips and help. The good news is that the problem is solved. I couldn't wait, so I finally decided to learn a little FreeBSD kernel debugging. After reading lots of not very comprehensive man pages and other guides, I got a 4.4 kernel compiled with ddb and set up remote debugging over the 2nd serial port with gdb. Again, after reading even more on using gdb, I set a bunch of breakpoints a did a little tracing and got the problem localized to a PCI configuration problem, probably a undocumented hardware bug in the Geode SC1100 processor combined with not very smart PCI config code in FreeBSD. I have patched FreeBSD to boot on the net4801 board, more details after I know exactly what's the issue is. Lesson learned: Advanced FreeBSD documentation sucks if you're not a kernel hacker, but remote kernel debugging works great and are actually kinda fun.... Regards, Soren Kristensen From owner-freebsd-small@FreeBSD.ORG Wed Jun 11 03:01:48 2003 Return-Path: Delivered-To: freebsd-small@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 27CFB37B407; Wed, 11 Jun 2003 03:01:48 -0700 (PDT) Received: from cain.gsoft.com.au (cain.gsoft.com.au [203.31.81.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id AD3C943FE0; Wed, 11 Jun 2003 03:01:39 -0700 (PDT) (envelope-from doconnor@gsoft.com.au) Received: from localhost (localhost [127.0.0.1]) by cain.gsoft.com.au (8.12.9/8.12.8) with ESMTP id h5BA1YDo024224; Wed, 11 Jun 2003 19:31:35 +0930 (CST) (envelope-from doconnor@gsoft.com.au) From: "Daniel O'Connor" To: Soren Kristensen Date: Wed, 11 Jun 2003 19:31:33 +0930 User-Agent: KMail/1.5 References: <3EE63760.6040209@soekris.com> <3EE6EDCE.3040006@soekris.com> In-Reply-To: <3EE6EDCE.3040006@soekris.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200306111931.33833.doconnor@gsoft.com.au> X-Spam-Score: -1.2 () CARRIAGE_RETURNS,IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES,SPAM_PHRASE_03_05,USER_AGENT X-Scanned-By: MIMEDefang 2.16 (www . roaringpenguin . com / mimedefang) cc: freebsd-hackers@freebsd.org cc: freebsd-small@freebsd.org Subject: Re: Looking for FreeBSD kernel debugging help X-BeenThere: freebsd-small@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Jun 2003 10:01:48 -0000 On Wed, 11 Jun 2003 18:22, Soren Kristensen wrote: > Lesson learned: > > Advanced FreeBSD documentation sucks if you're not a kernel hacker, but > remote kernel debugging works great and are actually kinda fun.... Procedural things are more likely to be usefully documented in the handbook or FAQ (or The Complete FreeBSD), rather than a specific man page. They can be a bit stale though :( Serial GDB is very nice.. You can even do firewire debugging, but I guess you guys can't really use that :) (Firewire mini-PCI board? 8-) -- Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 9A8C 569F 685A D928 5140 AE4B 319B 41F4 5D17 FDD5 From owner-freebsd-small@FreeBSD.ORG Wed Jun 11 03:26:24 2003 Return-Path: Delivered-To: freebsd-small@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8E63537B401; Wed, 11 Jun 2003 03:26:24 -0700 (PDT) Received: from heron.mail.pas.earthlink.net (heron.mail.pas.earthlink.net [207.217.120.189]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0A2B443F93; Wed, 11 Jun 2003 03:26:24 -0700 (PDT) (envelope-from tlambert2@mindspring.com) Received: from user-38lc0s4.dialup.mindspring.com ([209.86.3.132] helo=mindspring.com) by heron.mail.pas.earthlink.net with asmtp (SSLv3:RC4-MD5:128) (Exim 3.33 #1) id 19Q2nu-0002FN-00; Wed, 11 Jun 2003 03:26:07 -0700 Message-ID: <3EE702CD.F8BEB94B@mindspring.com> Date: Wed, 11 Jun 2003 03:22:05 -0700 From: Terry Lambert X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Daniel O'Connor References: <3EE63760.6040209@soekris.com> <3EE6EDCE.3040006@soekris.com> <200306111931.33833.doconnor@gsoft.com.au> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-ELNK-Trace: b1a02af9316fbb217a47c185c03b154d40683398e744b8a42fb2a6bd6da68d16d99841493086556a350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c cc: freebsd-small@freebsd.org cc: freebsd-hackers@freebsd.org Subject: Re: Looking for FreeBSD kernel debugging help X-BeenThere: freebsd-small@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Jun 2003 10:26:24 -0000 Daniel O'Connor wrote: > Serial GDB is very nice.. You can even do firewire debugging, but I guess you > guys can't really use that :) > (Firewire mini-PCI board? 8-) Someone should port the network debugging from Darwin using the tiny IP stack from NetBSD. -- Terry From owner-freebsd-small@FreeBSD.ORG Wed Jun 11 07:33:50 2003 Return-Path: Delivered-To: freebsd-small@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2318D37B401; Wed, 11 Jun 2003 07:33:50 -0700 (PDT) Received: from revelstoke.panasas.com (gw2.panasas.com [65.194.124.178]) by mx1.FreeBSD.org (Postfix) with ESMTP id D924F43FCB; Wed, 11 Jun 2003 07:33:48 -0700 (PDT) (envelope-from nlanza@premodern.org) Received: from revelstoke.panasas.com (localhost [127.0.0.1]) h5BEXl6i066561; Wed, 11 Jun 2003 10:33:47 -0400 (EDT) (envelope-from nlanza@premodern.org) Received: (from nlanza@localhost) by revelstoke.panasas.com (8.12.6/8.12.6/Submit) id h5BEXj4C066560; Wed, 11 Jun 2003 10:33:45 -0400 (EDT) X-Authentication-Warning: revelstoke.panasas.com: nlanza set sender to nlanza@premodern.org using -f From: Nat Lanza To: Terry Lambert In-Reply-To: <3EE702CD.F8BEB94B@mindspring.com> References: <3EE63760.6040209@soekris.com> <3EE6EDCE.3040006@soekris.com> <200306111931.33833.doconnor@gsoft.com.au> <3EE702CD.F8BEB94B@mindspring.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit Organization: Message-Id: <1055342024.66473.4.camel@revelstoke.panasas.com> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.4 Date: 11 Jun 2003 10:33:45 -0400 cc: Daniel O'Connor cc: freebsd-small@freebsd.org cc: freebsd-hackers@freebsd.org Subject: Re: Looking for FreeBSD kernel debugging help X-BeenThere: freebsd-small@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Jun 2003 14:33:50 -0000 On Wed, 2003-06-11 at 06:22, Terry Lambert wrote: > Someone should port the network debugging from Darwin using > the tiny IP stack from NetBSD. Well, there's this: http://ipgdb.sourceforge.net/ > IPGDB is a collection of extensions to GDB and FreeBSD-4.3 > to allow two-machine kernel debugging over UDP. It behaves > much like two-machine kernel debugging over serial ports. > > These extensions can easily be applied to other releases of > FreeBSD. With a little bit of modification, these extension > can be applied to other BSD variants. It hasn't been updated in a while, but it's definitely a start. It works pretty well for 4.3, and I know it's been updated to work with 4.6 (though possibly not in the sourceforge distribution). --nat From owner-freebsd-small@FreeBSD.ORG Sat Jun 14 02:51:58 2003 Return-Path: Delivered-To: freebsd-small@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EFA5037B40B for ; Sat, 14 Jun 2003 02:51:57 -0700 (PDT) Received: from hotmail.com (bay3-f33.bay3.hotmail.com [65.54.169.33]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7873443FDD for ; Sat, 14 Jun 2003 02:51:57 -0700 (PDT) (envelope-from anqinger@msn.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Sat, 14 Jun 2003 02:51:57 -0700 Received: from 218.22.21.27 by by3fd.bay3.hotmail.msn.com with HTTP; Sat, 14 Jun 2003 09:51:57 GMT X-Originating-IP: [218.22.21.27] X-Originating-Email: [anqinger@msn.com] From: "Chen Hao" To: freebsd-small@freebsd.org Date: Sat, 14 Jun 2003 17:51:57 +0800 Mime-Version: 1.0 Content-Type: text/plain; charset=gb2312; format=flowed Message-ID: X-OriginalArrivalTime: 14 Jun 2003 09:51:57.0385 (UTC) FILETIME=[97ED1B90:01C3325A] Subject: Some problems X-BeenThere: freebsd-small@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 Jun 2003 09:51:58 -0000 Hello: I want to know how to change the root passward in PicoBSD. When I changed the root passward using the command "passwd", the system informed that the disk is full, write fail.( I boot system from floppy ) Does the source for PicoBSD is open? If yes, where can I get it? Does the PicoBSD support some add-ons such as gcc or perl? _________________________________________________________________ Ãâ·ÑÏÂÔØ MSN Explorer: http://explorer.msn.com/lccn/