Date: Tue, 29 Jun 2010 16:21:24 +0700 From: Ho Van Than <hvanthan@gmail.com> To: Andrew Turner <andrew@fubar.geek.nz> Cc: freebsd-arm@freebsd.org, Ravindra <ravindra.kulkarni@globaledgesoft.com> Subject: Re: Porting FreeBSD-S3c2410 Message-ID: <AANLkTim_piaoirv8em-ArBLIuX3qPfPTAgt5Vt2Jd9J-@mail.gmail.com> 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> <AANLkTikK0XMeWihh1T4S0F59G88dQiDmNBhD0lQD7HnE@mail.gmail.com> <20100629205741.4c72ff8f@bender>
next in thread | previous in thread | raw e-mail | index | archive | help
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: <s3c24x0 timer> on s3c24x00 ohci0: <S3C24x0 integrated OHCI controller> on s3c24x00 ohci0: [ITHREAD] usbus0 on ohci0 uart0: <s3c2410 class> on s3c24x00 uart0: [FILTER] uart0: console (115200,n,8,1) uart1: <s3c2410 class> on s3c24x00 uart1: [FILTER] uart2: <s3c2410 class> 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: <Samsung> at usbus0 uhub0: <Samsung OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> 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 <andrew@fubar.geek.nz> wrote: > On Tue, 29 Jun 2010 14:59:27 +0700 > Ho Van Than <hvanthan@gmail.com> 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 > >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTim_piaoirv8em-ArBLIuX3qPfPTAgt5Vt2Jd9J->