From owner-freebsd-arm@FreeBSD.ORG Tue Jun 29 09:21:33 2010 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CDC511065676 for ; Tue, 29 Jun 2010 09:21:33 +0000 (UTC) (envelope-from hvanthan@gmail.com) Received: from mail-px0-f182.google.com (mail-px0-f182.google.com [209.85.212.182]) by mx1.freebsd.org (Postfix) with ESMTP id 9D5348FC08 for ; Tue, 29 Jun 2010 09:21:33 +0000 (UTC) Received: by pxi3 with SMTP id 3so948133pxi.13 for ; Tue, 29 Jun 2010 02:21:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=5/GLHJPQJwFd4DmhAW/ASaUBCAf4/iqBin9zhyffi8g=; b=GyxhEIH4KU4rYuglmN7NkjDF+56rXFZTCy97Jt9gJaMSRoNrqNOFjqUsXDWo9C5Huh SG1GedjIUS4/NAzoDhte87iQR0eYwRlLVvBSmhb+3F9lDs9I3lBPZHaamIlgD1vq162y kK5OrNs9pM0GfjBPGhJvpspHXyhTJSDdg2kGg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=hXuzXDiDiaNH66vQNQAK3UJQrZYk8IPBv+u3SFjo6JMA9WtHqj1kihqui18acD/ry3 1SICbyGUcvbcyfJAF4blH7AYSVXRAPbr26gFLsOC9OeiVGaAZ3gwK8DZTCxqZ6m+y9C8 r5hAPYqCCPKH3nOrGHudK0rInjReXCj9ap5tQ= MIME-Version: 1.0 Received: by 10.115.39.29 with SMTP id r29mr7013194waj.22.1277803284130; Tue, 29 Jun 2010 02:21:24 -0700 (PDT) Received: by 10.114.209.15 with HTTP; Tue, 29 Jun 2010 02:21:24 -0700 (PDT) In-Reply-To: <20100629205741.4c72ff8f@bender> References: <4C28B426.8050703@globaledgesoft.com> <20100629093417.2d696824@bender> <4C297B66.1020200@globaledgesoft.com> <20100629180756.40313ead@bender> <4C299426.7000402@globaledgesoft.com> <20100629190016.6b9e8b61@bender> <20100629205741.4c72ff8f@bender> Date: Tue, 29 Jun 2010 16:21:24 +0700 Message-ID: From: Ho Van Than To: Andrew Turner Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-arm@freebsd.org, Ravindra Subject: Re: Porting FreeBSD-S3c2410 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Jun 2010 09:21:33 -0000 Hi, Thanks very much, I changed follow your comment and kernel work well, I will try to make ramdisk. utu-bootloader=>>>tftp 30000000 kernel.boot dm9000 i/o: 0x18000300, id: 0x90000a46 MAC: 00:02:c2:00:d7:7f TFTP from server 192.168.1.253; our IP address is 192.168.1.122 Filename 'kernel.boot'. Load address: 0x30000000 Loading: ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ############################################################## done Bytes transferred = 3312627 (328bf3 hex) utu-bootloader=>>>bootm ## Booting image at 30000000 ... Image Name: FreeBSD Created: 2010-06-29 9:06:42 UTC Image Type: ARM Unknown OS Kernel Image (uncompressed) Data Size: 3312563 Bytes = 3.2 MB Load Address: 30008000 Entry Point: 300080e0 Verifying Checksum ... OK OK Starting kernel ... KDB: debugger backends: ddb KDB: current backend: ddb Copyright (c) 1992-2010 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 is a registered trademark of The FreeBSD Foundation. FreeBSD 9.0-CURRENT #3: Tue Jun 29 09:07:28 UTC 2010 root@minh_BSD:/usr/obj/arm/usr/src/sys/LN2410SBC arm WARNING: WITNESS option enabled, expect reduced performance. CPU: ARM920T rev 0 (ARM9TDMI core) DC enabled IC enabled WB enabled LABT 16KB/32B 64-way Instruction cache 16KB/32B 64-way write-back-locking-A Data cache real memory = 67108864 (64 MB) avail memory = 60436480 (57 MB) s3c24x00 on motherboard s3c24x00: Found S3C2440A CPU (Chip ID: 0x32440001) s3c24x00: fclk 405 MHz hclk 101 MHz pclk 50 MHz timer0: on s3c24x00 ohci0: on s3c24x00 ohci0: [ITHREAD] usbus0 on ohci0 uart0: on s3c24x00 uart0: [FILTER] uart0: console (115200,n,8,1) uart1: on s3c24x00 uart1: [FILTER] uart2: on s3c24x00 uart2: [FILTER] clock: hz=100 PCLK=50625000 prescaler=2 tc=15820 timer0: [FILTER] Timecounter "s3c24x0 timer" frequency 1582031 Hz quality 1000 Timecounters tick every 10.000 msec usbus0: 12Mbps Full Speed USB v1.0 WARNING: WITNESS option enabled, expect reduced performance. Root mount waiting for: usbus0 ugen0.1: at usbus0 uhub0: on usbus0 uhub0: 2 ports with 2 removable, self powered Root mount waiting for: usbus0 lock order reversal: 1st 0xc03f45e0 pmap (pmap) @ /usr/src/sys/arm/arm/pmap.c:2904 2nd 0xc0487608 PV ENTRY (UMA zone) @ /usr/src/sys/vm/uma_core.c:2524 KDB: stack backtrace: On Tue, Jun 29, 2010 at 3:57 PM, Andrew Turner wrote: > On Tue, 29 Jun 2010 14:59:27 +0700 > Ho Van Than wrote: > ... > > 4. Make image (That command I using Linux OS) > > mkimage -A arm -O freebsd -T kernel -C none -a 30008000 -e 300080e0 > > -n "FreeBSD" -d kernel kernel.boot > This looks correct. You will need to adjust KERNPHYSADDR in > sys/arm/s3c2xx0/std.ln2410sbc to 0x30008000 and KERNVIRTADDR to > 0xc0008000 if you are using this address. > > ... > > utu-bootloader=>>>bootm > > ## Booting image at 30000000 ... > > Image Name: FreeBSD > > Created: 2010-06-29 7:25:23 UTC > > Image Type: ARM Unknown OS Kernel Image (uncompressed) > > Data Size: 3312563 Bytes = 3.2 MB > > Load Address: 30008000 > > Entry Point: 30008000 > The entry point is wrong, it should 0x300080e0. Are you booting > the same kernel you built above? The entry points are different. > > Andrew > > -- > Andrew Turner > WhiteQueue Consulting http://whitequeue.com/ > Custom FreeBSD and Linux development > >