From owner-freebsd-arm@FreeBSD.ORG Mon Sep 19 11:07:00 2011 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 8B7DA1065708 for ; Mon, 19 Sep 2011 11:07:00 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 78D168FC25 for ; Mon, 19 Sep 2011 11:07:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p8JB70E0073437 for ; Mon, 19 Sep 2011 11:07:00 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p8JB6xrW073435 for freebsd-arm@FreeBSD.org; Mon, 19 Sep 2011 11:06:59 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 19 Sep 2011 11:06:59 GMT Message-Id: <201109191106.p8JB6xrW073435@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-arm@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-arm@FreeBSD.org 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: Mon, 19 Sep 2011 11:07:00 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o arm/160431 arm [patch] Disable interrupts during busdma cache sync op o arm/158950 arm arm/sheevaplug fails fsx when mmap operations are enab o arm/156814 arm OpenRD Ultimate does not boot on DB-88F6XXX or SHEEVAP o arm/156496 arm [patch] Minor bugfixes and enhancements to mmc and mmc o arm/155894 arm [patch] Enable at91 booting from SDHC (high capacity) o arm/155214 arm [patch] MMC/SD IO slow on Atmel ARM with modern large o arm/154227 arm [geli] using GELI leads to panic on ARM o arm/154189 arm lang/perl5.12 doesn't build on arm o arm/153380 arm Panic / translation fault with wlan on ARM o arm/150581 arm [irq] Unknown error generates IRQ address decoding err o arm/149288 arm mail/dovecot causes panic during configure on Sheevapl o arm/134368 arm [patch] nslu2_led driver for the LEDs on the NSLU2 p arm/134338 arm [patch] Lock GPIO accesses on ixp425 13 problems total. From owner-freebsd-arm@FreeBSD.ORG Tue Sep 20 06:03:54 2011 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 7341F106564A for ; Tue, 20 Sep 2011 06:03:54 +0000 (UTC) (envelope-from ntai@smartfruit.com) Received: from hapkido.dreamhost.com (hapkido.dreamhost.com [66.33.216.122]) by mx1.freebsd.org (Postfix) with ESMTP id 46A2B8FC1B for ; Tue, 20 Sep 2011 06:03:54 +0000 (UTC) Received: from homiemail-a73.g.dreamhost.com (caiajhbdccah.dreamhost.com [208.97.132.207]) by hapkido.dreamhost.com (Postfix) with ESMTP id 992DD17E876 for ; Mon, 19 Sep 2011 22:37:13 -0700 (PDT) Received: from homiemail-a73.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a73.g.dreamhost.com (Postfix) with ESMTP id E3C0C1F0086 for ; Mon, 19 Sep 2011 22:37:12 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=smartfruit.com; h=message-id:date :from:mime-version:to:subject:content-type: content-transfer-encoding; q=dns; s=smartfruit.com; b=LfqsvRwf5h 9JEGWWUW+BxJjMSxNGf6RVhfGVOD4M+rDhxPxNSga+Ghuord53PsIVMoE2SpeK5F OQ955r7noFsB8uCN9xnkCzZg4UdbRGAfYSsAFOsT35Ky7D4/7IR2iytmgXmpNsXu YdvcUfZvWIJpPYTu0k8Dg8NYXK5NFCgv8= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=smartfruit.com; h= message-id:date:from:mime-version:to:subject:content-type: content-transfer-encoding; s=smartfruit.com; bh=/asBGPeLgNWUrEQg ubfAaD7os48=; b=JrHwSuGPaHeSpviBerkdthNUwh/QRq8x6XA/HPqibtZipNkr eZzi5o7MoMo5GR3dbdKZpD8qqZB3fls3IvWpGvQXTWzJ6TsyDGmoslgnYMEc+L9u rqX/beqn3ArnQaCbOlaXkPP95358Y7Nv7R7MyYTG6seSn1gSBKgsITl9jm8= Received: from nile.smartfruit.com (pool-173-76-33-234.bstnma.fios.verizon.net [173.76.33.234]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: smtpguy@smartfruit.com) by homiemail-a73.g.dreamhost.com (Postfix) with ESMTPSA id B793A1F0083 for ; Mon, 19 Sep 2011 22:37:12 -0700 (PDT) Received: from akhenaten.smartfruit.com ([192.168.10.17]) by nile.smartfruit.com with esmtp (Exim 4.72 (FreeBSD)) (envelope-from ) id 1R5t1C-000MvV-GW for freebsd-arm@freebsd.org; Tue, 20 Sep 2011 01:37:18 -0400 Message-ID: <4E782686.6070500@smartfruit.com> Date: Tue, 20 Sep 2011 01:37:10 -0400 From: Naoyuki Tai User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10 MIME-Version: 1.0 To: freebsd-arm@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: GlobalScale DreamPlug + FreeBSD 8.2 release 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, 20 Sep 2011 06:03:54 -0000 Hello, I'm new to the FreeBSD/arm, bought a DreamPlug from GlobalScale, hoping to turn it into a FreeBSD file server. I followed the "http://wiki.freebsd.org/FreeBSDMarvell", and created kernel.bin. After giving it a "go", it hangs. I must have built the kernel.bin wrong but I have no clue as to what I did wrong. Any clue/help is appreciated. Thanks! -- Tai U-Boot 2011.06-02334-g8f495d9-dirty (May 31 2011 - 02:06:26) Marvell-DreamPlug SoC: Kirkwood 88F6281_A0 CPU running @ 1200Mhz L2 running @ 400Mhz SysClock = 400Mhz , TClock = 200Mhz DRAM: 512 MiB SF: Detected MX25L1606 with page size 256, total 1 MiB In: serial Out: serial Err: serial Net: egiga0, egiga1 88E1116 Initialized on egiga0 88E1116 Initialized on egiga1 Hit any key to stop autoboot: 0 Marvell>> setenv serverip 192.168.10.3 Marvell>> setenv ipaddr 192.168.10.55 Marvell>> tftpboot 6400000 arm/kernel.bin Using egiga0 device TFTP from server 192.168.10.3; our IP address is 192.168.10.55 Filename 'arm/kernel.bin'. Load address: 0x6400000 Loading: ################################################################# ################################################################# ################################################################# ############################ done Bytes transferred = 3272884 (31f0b4 hex) Marvell>> go 0x6400000 ## Starting application at 0x06400000 ... From owner-freebsd-arm@FreeBSD.ORG Tue Sep 20 13:25:58 2011 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 6C16F1065672 for ; Tue, 20 Sep 2011 13:25:58 +0000 (UTC) (envelope-from ray@dlink.ua) Received: from dlink.ua (smtp.dlink.ua [193.138.187.146]) by mx1.freebsd.org (Postfix) with ESMTP id EF3258FC0C for ; Tue, 20 Sep 2011 13:25:57 +0000 (UTC) Received: from gw-lan1.kiev.dlink.ua ([192.168.10.10] helo=terran.dlink.ua) by dlink.ua with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1R6010-0002Lc-UV; Tue, 20 Sep 2011 16:05:35 +0300 Date: Tue, 20 Sep 2011 16:05:44 +0300 From: Aleksandr Rybalko To: Naoyuki Tai Message-Id: <20110920160544.b8d6d969.ray@dlink.ua> In-Reply-To: <4E782686.6070500@smartfruit.com> References: <4E782686.6070500@smartfruit.com> Organization: D-Link X-Mailer: Sylpheed 2.7.1 (GTK+ 2.20.1; i386-portbld-freebsd8.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-arm@freebsd.org Subject: Re: GlobalScale DreamPlug + FreeBSD 8.2 release 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, 20 Sep 2011 13:25:58 -0000 On Tue, 20 Sep 2011 01:37:10 -0400 Naoyuki Tai wrote: >> Hello, >> >> I'm new to the FreeBSD/arm, bought a DreamPlug from GlobalScale, >> hoping to turn it into a FreeBSD file server. >> >> I followed the "http://wiki.freebsd.org/FreeBSDMarvell", and created >> kernel.bin. After giving it a "go", it hangs. >> >> I must have built the kernel.bin wrong but I have no clue as to what >> I did wrong. >> Any clue/help is appreciated. >> >> Thanks! >> >> -- Tai >> >> U-Boot 2011.06-02334-g8f495d9-dirty (May 31 2011 - 02:06:26) >> Marvell-DreamPlug >> >> SoC: Kirkwood 88F6281_A0 >> CPU running @ 1200Mhz L2 running @ 400Mhz >> SysClock = 400Mhz , TClock = 200Mhz >> DRAM: 512 MiB >> SF: Detected MX25L1606 with page size 256, total 1 MiB >> In: serial >> Out: serial >> Err: serial >> Net: egiga0, egiga1 >> 88E1116 Initialized on egiga0 >> 88E1116 Initialized on egiga1 >> Hit any key to stop autoboot: 0 >> Marvell>> setenv serverip 192.168.10.3 >> Marvell>> setenv ipaddr 192.168.10.55 >> Marvell>> tftpboot 6400000 arm/kernel.bin >> Using egiga0 device >> TFTP from server 192.168.10.3; our IP address is 192.168.10.55 >> Filename 'arm/kernel.bin'. >> Load address: 0x6400000 >> Loading: >> ################################################################# >> ################################################################# >> ################################################################# >> ############################ >> done >> Bytes transferred = 3272884 (31f0b4 hex) >> Marvell>> go 0x6400000 >> ## Starting application at 0x06400000 ... >> >> >> >> _______________________________________________ >> freebsd-arm@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-arm >> To unsubscribe, send any mail to >> "freebsd-arm-unsubscribe@freebsd.org" Hi, Did you try address 0x900000 instead of 6400000? WBW -- Alexandr Rybalko aka Alex RAY From owner-freebsd-arm@FreeBSD.ORG Tue Sep 20 14:12:11 2011 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 C82241065670 for ; Tue, 20 Sep 2011 14:12:11 +0000 (UTC) (envelope-from ntai@smartfruit.com) Received: from homiemail-a73.g.dreamhost.com (caiajhbdcaid.dreamhost.com [208.97.132.83]) by mx1.freebsd.org (Postfix) with ESMTP id A28778FC12 for ; Tue, 20 Sep 2011 14:12:11 +0000 (UTC) Received: from homiemail-a73.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a73.g.dreamhost.com (Postfix) with ESMTP id 0641E1F0089 for ; Tue, 20 Sep 2011 07:12:11 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=smartfruit.com; h=content-type:to :subject:references:date:mime-version:content-transfer-encoding :from:message-id:in-reply-to; q=dns; s=smartfruit.com; b=W4W/QEq ZyRJYoxuBRBdBnD7J5oRGDvKPsXyj0Lh2QrPc4MegeXKHw75jTPtE57Elh9iLF6R +jOuuk56spLNBhnn4Hskb75a9zFRuwEA2d7QUVxY8hsdn5q1zjaim2NQe2AW8sUm MbdECuPH8hulgiDOGqG/bcDEw/MQm3LJW4Fw= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=smartfruit.com; h= content-type:to:subject:references:date:mime-version :content-transfer-encoding:from:message-id:in-reply-to; s= smartfruit.com; bh=vSk0NUM9LaZwfKfb0BIr/OAx0io=; b=dEa+B2uEhglke CfXG0cO9B2zq0EJiY2RY6DJmgY3KVBrQ2hzkTp/HyZgfzdbJqQsKKUhkpk/017/J 4NSMY7Q6lW7y8Rps+WxyFWdAbkaZOT6IYqCNGI4aZwRqjl8fRC8wb/Y3VguMYpQX nKpBQ75TE3Ko3yE2L+ycjhISuRXLTY= Received: from luxor.smartfruit.com (pool-173-76-33-234.bstnma.fios.verizon.net [173.76.33.234]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: smtpguy@smartfruit.com) by homiemail-a73.g.dreamhost.com (Postfix) with ESMTPSA id 3D8621F00A8 for ; Tue, 20 Sep 2011 07:12:09 -0700 (PDT) Content-Type: text/plain; charset=us-ascii; format=flowed; delsp=yes To: freebsd-arm@freebsd.org References: <4E782686.6070500@smartfruit.com> <20110920160544.b8d6d969.ray@dlink.ua> Date: Tue, 20 Sep 2011 10:12:07 -0400 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: "Naoyuki Tai" Message-ID: In-Reply-To: <20110920160544.b8d6d969.ray@dlink.ua> User-Agent: Opera Mail/11.01 (FreeBSD) Subject: Re: GlobalScale DreamPlug + FreeBSD 8.2 release 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, 20 Sep 2011 14:12:12 -0000 On Tue, 20 Sep 2011 09:05:44 -0400, Aleksandr Rybalko wrote: > On Tue, 20 Sep 2011 01:37:10 -0400 > Naoyuki Tai wrote: > >>> Hello, >>> >>> I'm new to the FreeBSD/arm, bought a DreamPlug from GlobalScale, >>> hoping to turn it into a FreeBSD file server. >>> >>> I followed the "http://wiki.freebsd.org/FreeBSDMarvell", and created >>> kernel.bin. After giving it a "go", it hangs. >>> >>> I must have built the kernel.bin wrong but I have no clue as to what >>> I did wrong. >>> Any clue/help is appreciated. >>> >>> Thanks! >>> >>> -- Tai >>> >>> U-Boot 2011.06-02334-g8f495d9-dirty (May 31 2011 - 02:06:26) >>> Marvell-DreamPlug >>> >>> SoC: Kirkwood 88F6281_A0 >>> CPU running @ 1200Mhz L2 running @ 400Mhz >>> SysClock = 400Mhz , TClock = 200Mhz >>> DRAM: 512 MiB >>> SF: Detected MX25L1606 with page size 256, total 1 MiB >>> In: serial >>> Out: serial >>> Err: serial >>> Net: egiga0, egiga1 >>> 88E1116 Initialized on egiga0 >>> 88E1116 Initialized on egiga1 >>> Hit any key to stop autoboot: 0 >>> Marvell>> setenv serverip 192.168.10.3 >>> Marvell>> setenv ipaddr 192.168.10.55 >>> Marvell>> tftpboot 6400000 arm/kernel.bin >>> Using egiga0 device >>> TFTP from server 192.168.10.3; our IP address is 192.168.10.55 >>> Filename 'arm/kernel.bin'. >>> Load address: 0x6400000 >>> Loading: >>> ################################################################# >>> ################################################################# >>> ################################################################# >>> ############################ >>> done >>> Bytes transferred = 3272884 (31f0b4 hex) >>> Marvell>> go 0x6400000 >>> ## Starting application at 0x06400000 ... >>> > > Hi, > > Did you try address 0x900000 instead of 6400000? > > WBW I tried 90000 and it works. Thanks. I don't understand the memory space allocation. 640000 is used for the linux, and I imagined that's the base address for kernel. Where can I learn the reason why it's 90000? Thanks! -- Tai From owner-freebsd-arm@FreeBSD.ORG Tue Sep 20 14:35:18 2011 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 47439106566B for ; Tue, 20 Sep 2011 14:35:18 +0000 (UTC) (envelope-from ray@dlink.ua) Received: from dlink.ua (smtp.dlink.ua [193.138.187.146]) by mx1.freebsd.org (Postfix) with ESMTP id C695F8FC18 for ; Tue, 20 Sep 2011 14:35:17 +0000 (UTC) Received: from gw-lan1.kiev.dlink.ua ([192.168.10.10] helo=terran.dlink.ua) by dlink.ua with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1R61Pm-0003BE-Oe; Tue, 20 Sep 2011 17:35:15 +0300 Date: Tue, 20 Sep 2011 17:35:23 +0300 From: Aleksandr Rybalko To: "Naoyuki Tai" Message-Id: <20110920173523.4043c0be.ray@dlink.ua> In-Reply-To: References: <4E782686.6070500@smartfruit.com> <20110920160544.b8d6d969.ray@dlink.ua> Organization: D-Link X-Mailer: Sylpheed 2.7.1 (GTK+ 2.20.1; i386-portbld-freebsd8.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-arm@freebsd.org Subject: Re: GlobalScale DreamPlug + FreeBSD 8.2 release 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, 20 Sep 2011 14:35:18 -0000 On Tue, 20 Sep 2011 10:12:07 -0400 "Naoyuki Tai" wrote: >> On Tue, 20 Sep 2011 09:05:44 -0400, Aleksandr Rybalko >> wrote: >> >> > On Tue, 20 Sep 2011 01:37:10 -0400 >> > Naoyuki Tai wrote: >> > >> >>> Hello, >> >>> >> >>> I'm new to the FreeBSD/arm, bought a DreamPlug from GlobalScale, >> >>> hoping to turn it into a FreeBSD file server. >> >>> >> >>> I followed the "http://wiki.freebsd.org/FreeBSDMarvell", and >> >>> created kernel.bin. After giving it a "go", it hangs. >> >>> >> >>> I must have built the kernel.bin wrong but I have no clue as to >> >>> what I did wrong. >> >>> Any clue/help is appreciated. >> >>> >> >>> Thanks! >> >>> >> >>> -- Tai >> >>> >> >>> U-Boot 2011.06-02334-g8f495d9-dirty (May 31 2011 - 02:06:26) >> >>> Marvell-DreamPlug >> >>> >> >>> SoC: Kirkwood 88F6281_A0 >> >>> CPU running @ 1200Mhz L2 running @ 400Mhz >> >>> SysClock = 400Mhz , TClock = 200Mhz >> >>> DRAM: 512 MiB >> >>> SF: Detected MX25L1606 with page size 256, total 1 MiB >> >>> In: serial >> >>> Out: serial >> >>> Err: serial >> >>> Net: egiga0, egiga1 >> >>> 88E1116 Initialized on egiga0 >> >>> 88E1116 Initialized on egiga1 >> >>> Hit any key to stop autoboot: 0 >> >>> Marvell>> setenv serverip 192.168.10.3 >> >>> Marvell>> setenv ipaddr 192.168.10.55 >> >>> Marvell>> tftpboot 6400000 arm/kernel.bin >> >>> Using egiga0 device >> >>> TFTP from server 192.168.10.3; our IP address is 192.168.10.55 >> >>> Filename 'arm/kernel.bin'. >> >>> Load address: 0x6400000 >> >>> Loading: >> >>> ################################################################# >> >>> ################################################################# >> >>> ################################################################# >> >>> ############################ >> >>> done >> >>> Bytes transferred = 3272884 (31f0b4 hex) >> >>> Marvell>> go 0x6400000 >> >>> ## Starting application at 0x06400000 ... >> >>> >> > >> > Hi, >> > >> > Did you try address 0x900000 instead of 6400000? >> > >> > WBW >> >> I tried 90000 and it works. >> Thanks. >> >> I don't understand the memory space allocation. 640000 is used >> for the linux, and I imagined that's the base address for kernel. >> >> Where can I learn the reason why it's 90000? 0x00000000 is physical memory location, so if MMU turned off, memory operations not translated (virtual <--> physical). Physical memory location may vary between different ARM CPUs, IIRC. But for Kirkwood - this is true. And also important which base we set in kernel while compiling, because code may start to work on every location, but first jump will call some black hole :) >> Thanks! >> >> -- Tai >> _______________________________________________ >> freebsd-arm@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-arm >> To unsubscribe, send any mail to >> "freebsd-arm-unsubscribe@freebsd.org" -- Alexandr Rybalko aka Alex RAY From owner-freebsd-arm@FreeBSD.ORG Tue Sep 20 14:42:05 2011 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 7546F106566C for ; Tue, 20 Sep 2011 14:42:05 +0000 (UTC) (envelope-from ntai@smartfruit.com) Received: from homiemail-a70.g.dreamhost.com (caiajhbdcbbj.dreamhost.com [208.97.132.119]) by mx1.freebsd.org (Postfix) with ESMTP id 4F19E8FC0A for ; Tue, 20 Sep 2011 14:42:05 +0000 (UTC) Received: from homiemail-a70.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a70.g.dreamhost.com (Postfix) with ESMTP id EDFD0768098; Tue, 20 Sep 2011 07:42:04 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=smartfruit.com; h=content-type:to :cc:subject:references:date:mime-version :content-transfer-encoding:from:message-id:in-reply-to; q=dns; s=smartfruit.com; b=DoEAd29Gb7Fq2Aznl05R8m+xSuRuMK0ODRAhKOj7lyY 7RXQbzeT+crCYFXXDaKny4eaAl6lpnBH/jFKM5T4jNWdUZkYB3i/6kkq0K5QWrqN b575lubYIy1C4jj3sQLoBhmI0l2C+gf/odfqpVLPG24+LKPqlphqQbWxOVO3tIGk = DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=smartfruit.com; h= content-type:to:cc:subject:references:date:mime-version :content-transfer-encoding:from:message-id:in-reply-to; s= smartfruit.com; bh=//hQ22poPYWzOhMJTPo86n4tXIw=; b=sGY6oypN1B7VK 7xwpWPjOPsHmzVgnqPu3ght3jsiAsFyEvB4JtEl7mD9Sgw76xINtozbPGEe6fpHC cq4R1P6qrM98JSpId/D7XZJIMSTuVfddCldN8tYfBI5P1z5Y1l69iyrl7tkxARzo 9cSjjuwoKVSJEHKEbCzkz8PFFSLmKs= Received: from luxor.smartfruit.com (pool-173-76-33-234.bstnma.fios.verizon.net [173.76.33.234]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: smtpguy@smartfruit.com) by homiemail-a70.g.dreamhost.com (Postfix) with ESMTPSA id 847AA76807F; Tue, 20 Sep 2011 07:42:04 -0700 (PDT) Content-Type: text/plain; charset=us-ascii; format=flowed; delsp=yes To: "Aleksandr Rybalko" References: <4E782686.6070500@smartfruit.com> <20110920160544.b8d6d969.ray@dlink.ua> <20110920173523.4043c0be.ray@dlink.ua> Date: Tue, 20 Sep 2011 10:42:02 -0400 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: "Naoyuki Tai" Message-ID: In-Reply-To: <20110920173523.4043c0be.ray@dlink.ua> User-Agent: Opera Mail/11.01 (FreeBSD) Cc: freebsd-arm@freebsd.org Subject: Re: GlobalScale DreamPlug + FreeBSD 8.2 release 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, 20 Sep 2011 14:42:05 -0000 On Tue, 20 Sep 2011 10:35:23 -0400, Aleksandr Rybalko wrote: > On Tue, 20 Sep 2011 10:12:07 -0400 > "Naoyuki Tai" wrote: > >>> On Tue, 20 Sep 2011 09:05:44 -0400, Aleksandr Rybalko >>> wrote: >>> >>> > On Tue, 20 Sep 2011 01:37:10 -0400 >>> > Naoyuki Tai wrote: >>> > >>> >>> Hello, >>> >>> >>> >>> I'm new to the FreeBSD/arm, bought a DreamPlug from GlobalScale, >>> >>> hoping to turn it into a FreeBSD file server. >>> >>> >>> >>> I followed the "http://wiki.freebsd.org/FreeBSDMarvell", and >>> >>> created kernel.bin. After giving it a "go", it hangs. >>> >>> >>> >>> I must have built the kernel.bin wrong but I have no clue as to >>> >>> what I did wrong. >>> >>> Any clue/help is appreciated. >>> >>> >>> >>> Thanks! >>> >>> >>> >>> -- Tai >>> >>> >>> >>> U-Boot 2011.06-02334-g8f495d9-dirty (May 31 2011 - 02:06:26) >>> >>> Marvell-DreamPlug >>> >>> >>> >>> SoC: Kirkwood 88F6281_A0 >>> >>> CPU running @ 1200Mhz L2 running @ 400Mhz >>> >>> SysClock = 400Mhz , TClock = 200Mhz >>> >>> DRAM: 512 MiB >>> >>> SF: Detected MX25L1606 with page size 256, total 1 MiB >>> >>> In: serial >>> >>> Out: serial >>> >>> Err: serial >>> >>> Net: egiga0, egiga1 >>> >>> 88E1116 Initialized on egiga0 >>> >>> 88E1116 Initialized on egiga1 >>> >>> Hit any key to stop autoboot: 0 >>> >>> Marvell>> setenv serverip 192.168.10.3 >>> >>> Marvell>> setenv ipaddr 192.168.10.55 >>> >>> Marvell>> tftpboot 6400000 arm/kernel.bin >>> >>> Using egiga0 device >>> >>> TFTP from server 192.168.10.3; our IP address is 192.168.10.55 >>> >>> Filename 'arm/kernel.bin'. >>> >>> Load address: 0x6400000 >>> >>> Loading: >>> >>> ################################################################# >>> >>> >>> ################################################################# >>> >>> >>> ################################################################# >>> >>> ############################ >>> >>> done >>> >>> Bytes transferred = 3272884 (31f0b4 hex) >>> >>> Marvell>> go 0x6400000 >>> >>> ## Starting application at 0x06400000 ... >>> >>> >>> > >>> > Hi, >>> > >>> > Did you try address 0x900000 instead of 6400000? >>> > >>> > WBW >>> >>> I tried 90000 and it works. >>> Thanks. >>> >>> I don't understand the memory space allocation. 640000 is used >>> for the linux, and I imagined that's the base address for kernel. >>> >>> Where can I learn the reason why it's 90000? > > 0x00000000 is physical memory location, so if MMU turned off, memory > operations not translated (virtual <--> physical). Physical memory > location may vary between different ARM CPUs, IIRC. > But for Kirkwood - this is true. > > And also important which base we set in kernel while compiling, > because code may start to work on every location, but first jump will > call some black hole :) > > >>> Thanks! >>> >>> -- Tai Got it. It is mentioned in /usr/src/sys/arm/mv/kirkwood/std.kirkwood makeoptions KERNPHYSADDR=0x00900000 Thanks. -- Using Opera's revolutionary email client: http://www.opera.com/mail/ From owner-freebsd-arm@FreeBSD.ORG Tue Sep 20 23:36:39 2011 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 CD61F1065672 for ; Tue, 20 Sep 2011 23:36:39 +0000 (UTC) (envelope-from mrossi@swin.edu.au) Received: from outbound.icp-osb-irony-out7.iinet.net.au (outbound.icp-osb-irony-out7.iinet.net.au [203.59.1.108]) by mx1.freebsd.org (Postfix) with ESMTP id 426028FC08 for ; Tue, 20 Sep 2011 23:36:38 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApMBABMceU58qM1L/2dsb2JhbAAMNqotAQEBAQIBJxFAARALDQEKCRYPCQMCAQIBRQYKAwEFAgEBh3MGqjOIf4JJhDQEk0uFPYwE X-IronPort-AV: E=Sophos;i="4.68,413,1312128000"; d="scan'208";a="41409549" Received: from unknown (HELO [192.168.15.65]) ([124.168.205.75]) by outbound.icp-osb-irony-out7.iinet.net.au with ESMTP/TLS/DHE-RSA-CAMELLIA256-SHA; 21 Sep 2011 07:08:33 +0800 Message-ID: <4E791CFA.7080703@swin.edu.au> Date: Wed, 21 Sep 2011 09:08:42 +1000 From: Mattia Rossi Organization: Swinburne University of Technology User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:6.0) Gecko/20110812 Thunderbird/6.0 MIME-Version: 1.0 To: Naoyuki Tai References: <4E782686.6070500@smartfruit.com> <20110920160544.b8d6d969.ray@dlink.ua> <20110920173523.4043c0be.ray@dlink.ua> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-arm@freebsd.org Subject: Re: GlobalScale DreamPlug + FreeBSD 8.2 release X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: mrossi@swin.edu.au List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Sep 2011 23:36:40 -0000 On 21/09/11 00:42, Naoyuki Tai wrote: > On Tue, 20 Sep 2011 10:35:23 -0400, Aleksandr Rybalko wrote: > >> On Tue, 20 Sep 2011 10:12:07 -0400 >> "Naoyuki Tai" wrote: >> >>>> On Tue, 20 Sep 2011 09:05:44 -0400, Aleksandr Rybalko >>>> wrote: >>>> >>>> > On Tue, 20 Sep 2011 01:37:10 -0400 >>>> > Naoyuki Tai wrote: >>>> > >>>> >>> Hello, >>>> >>> >>>> >>> I'm new to the FreeBSD/arm, bought a DreamPlug from GlobalScale, >>>> >>> hoping to turn it into a FreeBSD file server. >>>> >>> >>>> >>> I followed the "http://wiki.freebsd.org/FreeBSDMarvell", and >>>> >>> created kernel.bin. After giving it a "go", it hangs. >>>> >>> >>>> >>> I must have built the kernel.bin wrong but I have no clue as to >>>> >>> what I did wrong. >>>> >>> Any clue/help is appreciated. >>>> >>> >>>> >>> Thanks! >>>> >>> >>>> >>> -- Tai >>>> >>> >>>> >>> U-Boot 2011.06-02334-g8f495d9-dirty (May 31 2011 - 02:06:26) >>>> >>> Marvell-DreamPlug >>>> >>> >>>> >>> SoC: Kirkwood 88F6281_A0 >>>> >>> CPU running @ 1200Mhz L2 running @ 400Mhz >>>> >>> SysClock = 400Mhz , TClock = 200Mhz >>>> >>> DRAM: 512 MiB >>>> >>> SF: Detected MX25L1606 with page size 256, total 1 MiB >>>> >>> In: serial >>>> >>> Out: serial >>>> >>> Err: serial >>>> >>> Net: egiga0, egiga1 >>>> >>> 88E1116 Initialized on egiga0 >>>> >>> 88E1116 Initialized on egiga1 >>>> >>> Hit any key to stop autoboot: 0 >>>> >>> Marvell>> setenv serverip 192.168.10.3 >>>> >>> Marvell>> setenv ipaddr 192.168.10.55 >>>> >>> Marvell>> tftpboot 6400000 arm/kernel.bin >>>> >>> Using egiga0 device >>>> >>> TFTP from server 192.168.10.3; our IP address is 192.168.10.55 >>>> >>> Filename 'arm/kernel.bin'. >>>> >>> Load address: 0x6400000 >>>> >>> Loading: >>>> >>> ################################################################# >>>> >>> ################################################################# >>>> >>> ################################################################# >>>> >>> ############################ >>>> >>> done >>>> >>> Bytes transferred = 3272884 (31f0b4 hex) >>>> >>> Marvell>> go 0x6400000 >>>> >>> ## Starting application at 0x06400000 ... >>>> >>> >>>> > >>>> > Hi, >>>> > >>>> > Did you try address 0x900000 instead of 6400000? >>>> > >>>> > WBW >>>> >>>> I tried 90000 and it works. >>>> Thanks. >>>> >>>> I don't understand the memory space allocation. 640000 is used >>>> for the linux, and I imagined that's the base address for kernel. >>>> >>>> Where can I learn the reason why it's 90000? >> >> 0x00000000 is physical memory location, so if MMU turned off, memory >> operations not translated (virtual <--> physical). Physical memory >> location may vary between different ARM CPUs, IIRC. >> But for Kirkwood - this is true. >> >> And also important which base we set in kernel while compiling, >> because code may start to work on every location, but first jump will >> call some black hole :) >> >> >>>> Thanks! >>>> >>>> -- Tai > > > Got it. It is mentioned in > > /usr/src/sys/arm/mv/kirkwood/std.kirkwood > > makeoptions KERNPHYSADDR=0x00900000 > > Thanks. > Good to know, I have a dreamplug as well, but didn't have the time to tinker with it so far. As I see it, the dreamplug has 2 major problems which might make FreeBSD on it unusable for my purposes: a) the SPI flash is only 1MB, which means 300K are used for uboot, and there are only 700K left for the kernel. I've not been able to get a FreeBSD kernel under 1MB, even without any non crucial options in it. What's the workaroound for that? b) NAND support. World needs to reside on the NAND flash. Does that already work? I would love to be just a bit behind and to hear people come up and say: no it's all solved :-) Mat From owner-freebsd-arm@FreeBSD.ORG Wed Sep 21 14:04:37 2011 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 63DF01065674 for ; Wed, 21 Sep 2011 14:04:37 +0000 (UTC) (envelope-from ntai@smartfruit.com) Received: from homiemail-a34.g.dreamhost.com (caiajhbdcbhh.dreamhost.com [208.97.132.177]) by mx1.freebsd.org (Postfix) with ESMTP id 4184C8FC12 for ; Wed, 21 Sep 2011 14:04:37 +0000 (UTC) Received: from homiemail-a34.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a34.g.dreamhost.com (Postfix) with ESMTP id E5CE91006E for ; Wed, 21 Sep 2011 07:04:36 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=smartfruit.com; h=content-type :subject:to:mime-version:content-transfer-encoding:from:date: message-id; q=dns; s=smartfruit.com; b=A6paryOAbmKSeOBoLyYSZlgXX WDJYrfkFF3lkGY/n90N3Wo3B6x5TQAOehVxv7szezT4QfP/JtJh1nSa26shi9sPd DZP5Eom6XIo29ENRCBRvZKcEQZENZaR25DtU8rZ6LI7w06mRl5nBQqmrHOOdVNBh 3PNpmmbgE+ijryY1Qs= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=smartfruit.com; h= content-type:subject:to:mime-version:content-transfer-encoding :from:date:message-id; s=smartfruit.com; bh=Wfd+2hSrhPrn+QS9uQKY rgAJTg8=; b=hkEBEBsCt7XaibkknKCBLg0CcLxLGl8K3oZCObmO0iaBSG6TiY1F Q1GB8QzOlkGs73JoBwq3bJgT/JfpPGm/j5f+FrZRyYkhQEGuMpCKZPjDy8O+sG2T FEcvS9yAYKBQnKg1JAPn7v6SvlzV36ktBPeMYOKpQlvcCiPUp3/Hq3w= Received: from luxor.smartfruit.com (pool-173-76-33-234.bstnma.fios.verizon.net [173.76.33.234]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: smtpguy@smartfruit.com) by homiemail-a34.g.dreamhost.com (Postfix) with ESMTPSA id 7C42510060 for ; Wed, 21 Sep 2011 07:04:36 -0700 (PDT) Content-Type: text/plain; charset=us-ascii; format=flowed; delsp=yes To: freebsd-arm@freebsd.org MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: "Naoyuki Tai" Date: Wed, 21 Sep 2011 10:04:26 -0400 Message-ID: User-Agent: Opera Mail/11.01 (FreeBSD) Subject: How can I cross-compile the packages for ARM on i386 FreeBSD? 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: Wed, 21 Sep 2011 14:04:37 -0000 I'm running my DreamPlug off of a 4GB USB stick. First partition is a small DOS partition for kernel.bin, and the rest (/dev/sd2s2a) is the root partition. (I'll switch to larger SD card at some point.) With the root file system compiled into the kernel, (options ROOTDEVNAME=\"ufs:/dev/da2s2a\") The first snag was that I could not use the portsnap. After googling a little, I found out that disabling the clustering of file I/O may fix it. cat /etc/fstab /dev/da2s2a / ufs rw,noclusterr,noclusterw 1 1 After finding this out, I noticed http://www.plugcomputer.org/plugwiki/index.php/FreeBSD_8.0_Setup uses these mount option flags. (doh!) Anyhow, at this point, I can probably compile every port. But it would be really time consuming to do so on the DreamPlug. I'd like to learn how I can build the packages for the ARM on the Intel FreeBSD 8.2 where I compiled the kernel for ARM. Could someone point the direction for me? Thanks. -- Tai From owner-freebsd-arm@FreeBSD.ORG Thu Sep 22 00:14:18 2011 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 15664106566C for ; Thu, 22 Sep 2011 00:14:18 +0000 (UTC) (envelope-from mrossi@swin.edu.au) Received: from gpo2.cc.swin.edu.au (gpo2.cc.swin.edu.au [136.186.1.31]) by mx1.freebsd.org (Postfix) with ESMTP id A47DA8FC0C for ; Thu, 22 Sep 2011 00:14:17 +0000 (UTC) Received: from mrossi.caia.swin.edu.au (mrossi.caia.swin.edu.au [136.186.229.109]) by gpo2.cc.swin.edu.au (8.14.3/8.14.3) with ESMTP id p8M0DkX7025136; Thu, 22 Sep 2011 10:13:47 +1000 Message-ID: <4E7A7DB8.3040804@swin.edu.au> Date: Thu, 22 Sep 2011 10:13:44 +1000 From: Mattia Rossi User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:6.0) Gecko/20110824 Thunderbird/6.0 MIME-Version: 1.0 To: Naoyuki Tai References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-arm@freebsd.org Subject: Re: How can I cross-compile the packages for ARM on i386 FreeBSD? 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: Thu, 22 Sep 2011 00:14:18 -0000 Here you'll find my experience with cross-compiling: http://matrossi.blogspot.com/2011/08/cross-compiling-ports-for-arm-under.html You need to play with the configure args and the -rpath an -L settings a bit, and compile one port a at a time (each dependency by itself) for best results. The end of cross-compiling came to me in the form of perl.. Mat On 22/09/2011 00:04, Naoyuki Tai wrote: > > I'm running my DreamPlug off of a 4GB USB stick. First partition is > a small DOS partition for kernel.bin, and the rest (/dev/sd2s2a) is > the root partition. (I'll switch to larger SD card at some point.) > > With the root file system compiled into the kernel, > (options ROOTDEVNAME=\"ufs:/dev/da2s2a\") > > The first snag was that I could not use the portsnap. > After googling a little, I found out that disabling the clustering > of file I/O may fix it. > > cat /etc/fstab > /dev/da2s2a / ufs rw,noclusterr,noclusterw 1 1 > > After finding this out, I noticed > > http://www.plugcomputer.org/plugwiki/index.php/FreeBSD_8.0_Setup > > uses these mount option flags. (doh!) > > > Anyhow, at this point, I can probably compile every port. But it > would be really time consuming to do so on the DreamPlug. > > I'd like to learn how I can build the packages for the ARM on > the Intel FreeBSD 8.2 where I compiled the kernel for ARM. > Could someone point the direction for me? > > Thanks. > > -- Tai > _______________________________________________ > freebsd-arm@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-arm > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org" From owner-freebsd-arm@FreeBSD.ORG Thu Sep 22 09:30:50 2011 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 0A2D1106566B for ; Thu, 22 Sep 2011 09:30:50 +0000 (UTC) (envelope-from ray@dlink.ua) Received: from dlink.ua (smtp.dlink.ua [193.138.187.146]) by mx1.freebsd.org (Postfix) with ESMTP id 86E198FC12 for ; Thu, 22 Sep 2011 09:30:49 +0000 (UTC) Received: from gw-lan1.kiev.dlink.ua ([192.168.10.10] helo=terran.dlink.ua) by dlink.ua with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1R6fc9-0003vY-Ky; Thu, 22 Sep 2011 12:30:43 +0300 Date: Thu, 22 Sep 2011 12:30:57 +0300 From: Aleksandr Rybalko To: Mattia Rossi Message-Id: <20110922123057.7da863a0.ray@dlink.ua> In-Reply-To: <4E7A7DB8.3040804@swin.edu.au> References: <4E7A7DB8.3040804@swin.edu.au> Organization: D-Link X-Mailer: Sylpheed 2.7.1 (GTK+ 2.20.1; i386-portbld-freebsd8.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-arm@freebsd.org Subject: Re: How can I cross-compile the packages for ARM on i386 FreeBSD? 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: Thu, 22 Sep 2011 09:30:50 -0000 On Thu, 22 Sep 2011 10:13:44 +1000 Mattia Rossi wrote: >> Here you'll find my experience with cross-compiling: >> >> http://matrossi.blogspot.com/2011/08/cross-compiling-ports-for-arm-under.html >> >> You need to play with the configure args and the -rpath an -L >> settings a bit, and compile one port a at a time (each dependency by >> itself) for best results. >> >> The end of cross-compiling came to me in the form of perl.. >> >> Mat >> >> On 22/09/2011 00:04, Naoyuki Tai wrote: >> > >> > I'm running my DreamPlug off of a 4GB USB stick. First partition is >> > a small DOS partition for kernel.bin, and the rest (/dev/sd2s2a) is >> > the root partition. (I'll switch to larger SD card at some point.) >> > >> > With the root file system compiled into the kernel, >> > (options ROOTDEVNAME=\"ufs:/dev/da2s2a\") >> > >> > The first snag was that I could not use the portsnap. >> > After googling a little, I found out that disabling the clustering >> > of file I/O may fix it. >> > >> > cat /etc/fstab >> > /dev/da2s2a / ufs rw,noclusterr,noclusterw 1 1 >> > >> > After finding this out, I noticed >> > >> > http://www.plugcomputer.org/plugwiki/index.php/FreeBSD_8.0_Setup >> > >> > uses these mount option flags. (doh!) >> > >> > >> > Anyhow, at this point, I can probably compile every port. But it >> > would be really time consuming to do so on the DreamPlug. >> > >> > I'd like to learn how I can build the packages for the ARM on >> > the Intel FreeBSD 8.2 where I compiled the kernel for ARM. >> > Could someone point the direction for me? >> > >> > Thanks. >> > >> > -- Tai >> > _______________________________________________ >> > freebsd-arm@freebsd.org mailing list >> > http://lists.freebsd.org/mailman/listinfo/freebsd-arm >> > To unsubscribe, send any mail to >> > "freebsd-arm-unsubscribe@freebsd.org" >> >> >> _______________________________________________ >> freebsd-arm@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-arm >> To unsubscribe, send any mail to >> "freebsd-arm-unsubscribe@freebsd.org" Hi folks, I wrote small howto "How incorrectly cross build FreeBSD ports" http://ray-freebsd.blogspot.com/2011/09/cross-compiling-ports-for-freebsd.html Hope this will help WBW -- Alexandr Rybalko aka Alex RAY From owner-freebsd-arm@FreeBSD.ORG Fri Sep 23 05:10:05 2011 Return-Path: Delivered-To: freebsd-arm@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AB571106564A for ; Fri, 23 Sep 2011 05:10:05 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 823A08FC18 for ; Fri, 23 Sep 2011 05:10:05 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p8N5A5Kh063239 for ; Fri, 23 Sep 2011 05:10:05 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p8N5A5vQ063238; Fri, 23 Sep 2011 05:10:05 GMT (envelope-from gnats) Date: Fri, 23 Sep 2011 05:10:05 GMT Message-Id: <201109230510.p8N5A5vQ063238@freefall.freebsd.org> To: freebsd-arm@FreeBSD.org From: Naoyuki Tai Cc: Subject: Re: arm/154189: lang/perl5.12 doesn't build on arm X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Naoyuki Tai List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Sep 2011 05:10:05 -0000 The following reply was made to PR arm/154189; it has been noted by GNATS. From: Naoyuki Tai To: bug-followup@FreeBSD.org, kvedulv@kvedulv.de Cc: Subject: Re: arm/154189: lang/perl5.12 doesn't build on arm Date: Fri, 23 Sep 2011 00:42:41 -0400 --20cf30781540855aea04ad94704f Content-Type: text/plain; charset=UTF-8 I have built miniperl that runs by removing "-DPIC -fPIC" from the c flags everywhere. After "make build" fails at miniperl core dump, I removed the *.o, and removed "-DPIC -fPIC" from make files, cflags, etc. Then, I restarted the build in the work/perl-5-12.4 directory with gmake. This builds miniperl that runs. miniperl crashes regardless of debug or optimized build. So, this is not a compiler optimization problem. From those two, the reason of miniperl core dump may be because the objects compiled with -fPIC is not compatible with static-linked miniperl, or miniperl thinking it's statically linked. I suspect that the register for PIC is not either properly set, or the it's using wrong register for PIC access. On Intel machine, the objects compiled with -fPIC links fine with miniperl. Someone with the knowledge of ARM linkage model should be able to at least diag the issue more precisely, or suggest appropriate compile/link options. Another possible work around is to build the perl as statically linked binary and not create libperl.so. -- Tai --20cf30781540855aea04ad94704f Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable I have built miniperl that runs by removing=C2=A0 "-DPIC -fPIC" f= rom the c flags everywhere.
After "make build" fails at minipe= rl core dump, I removed the *.o, and removed "-DPIC -fPIC" from m= ake files, cflags, etc.
Then, I restarted the build in the work/perl-5-12.4 directory with gmake.This builds miniperl that runs.

miniperl crashes regardless of deb= ug or optimized build.
So, this is not a compiler optimization problem.=

From those two, the reason of miniperl core dump may be because the obj= ects compiled with -fPIC is not compatible with static-linked miniperl, or = miniperl thinking it's statically linked.
I suspect that the registe= r for PIC is not either properly set, or the it's using wrong register = for PIC access.

On Intel machine, the objects compiled with -fPIC links fine with minip= erl.

Someone with the knowledge of ARM linkage model should be able = to at least diag the issue more precisely, or suggest appropriate compile/l= ink options.

Another possible work around is to build the perl as statically linked = binary and not create libperl.so.

-- Tai

--20cf30781540855aea04ad94704f-- From owner-freebsd-arm@FreeBSD.ORG Fri Sep 23 20:23:03 2011 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 28CCC1065674 for ; Fri, 23 Sep 2011 20:23:03 +0000 (UTC) (envelope-from ray@ddteam.net) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id AE5B18FC0C for ; Fri, 23 Sep 2011 20:23:02 +0000 (UTC) Received: by fxg9 with SMTP id 9so5399514fxg.13 for ; Fri, 23 Sep 2011 13:23:01 -0700 (PDT) Received: by 10.223.65.141 with SMTP id j13mr5563574fai.101.1316807867472; Fri, 23 Sep 2011 12:57:47 -0700 (PDT) Received: from rnote.ddteam.net (40-156-133-95.pool.ukrtel.net. [95.133.156.40]) by mx.google.com with ESMTPS id a7sm12147511fam.22.2011.09.23.12.57.45 (version=SSLv3 cipher=OTHER); Fri, 23 Sep 2011 12:57:46 -0700 (PDT) Date: Fri, 23 Sep 2011 22:57:40 +0300 From: Aleksandr Rybalko To: mrossi@swin.edu.au Message-Id: <20110923225740.d083838b.ray@ddteam.net> In-Reply-To: <4E791CFA.7080703@swin.edu.au> References: <4E782686.6070500@smartfruit.com> <20110920160544.b8d6d969.ray@dlink.ua> <20110920173523.4043c0be.ray@dlink.ua> <4E791CFA.7080703@swin.edu.au> X-Mailer: Sylpheed 3.1.0 (GTK+ 2.24.5; amd64-portbld-freebsd9.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-arm@freebsd.org Subject: Re: GlobalScale DreamPlug + FreeBSD 8.2 release 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: Fri, 23 Sep 2011 20:23:03 -0000 On Wed, 21 Sep 2011 09:08:42 +1000 Mattia Rossi wrote: > On 21/09/11 00:42, Naoyuki Tai wrote: > > On Tue, 20 Sep 2011 10:35:23 -0400, Aleksandr Rybalko > > wrote: > > > >> On Tue, 20 Sep 2011 10:12:07 -0400 > >> "Naoyuki Tai" wrote: > >> > >>>> On Tue, 20 Sep 2011 09:05:44 -0400, Aleksandr Rybalko > >>>> wrote: > >>>> > >>>> > On Tue, 20 Sep 2011 01:37:10 -0400 > >>>> > Naoyuki Tai wrote: > >>>> > > >>>> >>> Hello, > >>>> >>> > >>>> >>> I'm new to the FreeBSD/arm, bought a DreamPlug from > >>>> >>> GlobalScale, hoping to turn it into a FreeBSD file server. > >>>> >>> > >>>> >>> I followed the "http://wiki.freebsd.org/FreeBSDMarvell", and > >>>> >>> created kernel.bin. After giving it a "go", it hangs. > >>>> >>> > >>>> >>> I must have built the kernel.bin wrong but I have no clue as > >>>> >>> to what I did wrong. > >>>> >>> Any clue/help is appreciated. > >>>> >>> > >>>> >>> Thanks! > >>>> >>> > >>>> >>> -- Tai > >>>> >>> > >>>> >>> U-Boot 2011.06-02334-g8f495d9-dirty (May 31 2011 - 02:06:26) > >>>> >>> Marvell-DreamPlug > >>>> >>> > >>>> >>> SoC: Kirkwood 88F6281_A0 > >>>> >>> CPU running @ 1200Mhz L2 running @ 400Mhz > >>>> >>> SysClock = 400Mhz , TClock = 200Mhz > >>>> >>> DRAM: 512 MiB > >>>> >>> SF: Detected MX25L1606 with page size 256, total 1 MiB > >>>> >>> In: serial > >>>> >>> Out: serial > >>>> >>> Err: serial > >>>> >>> Net: egiga0, egiga1 > >>>> >>> 88E1116 Initialized on egiga0 > >>>> >>> 88E1116 Initialized on egiga1 > >>>> >>> Hit any key to stop autoboot: 0 > >>>> >>> Marvell>> setenv serverip 192.168.10.3 > >>>> >>> Marvell>> setenv ipaddr 192.168.10.55 > >>>> >>> Marvell>> tftpboot 6400000 arm/kernel.bin > >>>> >>> Using egiga0 device > >>>> >>> TFTP from server 192.168.10.3; our IP address is > >>>> >>> 192.168.10.55 Filename 'arm/kernel.bin'. > >>>> >>> Load address: 0x6400000 > >>>> >>> Loading: > >>>> >>> ################################################################# > >>>> >>> ################################################################# > >>>> >>> ################################################################# > >>>> >>> ############################ > >>>> >>> done > >>>> >>> Bytes transferred = 3272884 (31f0b4 hex) > >>>> >>> Marvell>> go 0x6400000 > >>>> >>> ## Starting application at 0x06400000 ... > >>>> >>> > >>>> > > >>>> > Hi, > >>>> > > >>>> > Did you try address 0x900000 instead of 6400000? > >>>> > > >>>> > WBW > >>>> > >>>> I tried 90000 and it works. > >>>> Thanks. > >>>> > >>>> I don't understand the memory space allocation. 640000 is used > >>>> for the linux, and I imagined that's the base address for kernel. > >>>> > >>>> Where can I learn the reason why it's 90000? > >> > >> 0x00000000 is physical memory location, so if MMU turned off, > >> memory operations not translated (virtual <--> physical). Physical > >> memory location may vary between different ARM CPUs, IIRC. > >> But for Kirkwood - this is true. > >> > >> And also important which base we set in kernel while compiling, > >> because code may start to work on every location, but first jump > >> will call some black hole :) > >> > >> > >>>> Thanks! > >>>> > >>>> -- Tai > > > > > > Got it. It is mentioned in > > > > /usr/src/sys/arm/mv/kirkwood/std.kirkwood > > > > makeoptions KERNPHYSADDR=0x00900000 > > > > Thanks. > > > > Good to know, I have a dreamplug as well, but didn't have the time to > tinker with it so far. As I see it, the dreamplug has 2 major > problems which might make FreeBSD on it unusable for my purposes: > > a) the SPI flash is only 1MB, which means 300K are used for uboot, > and there are only 700K left for the kernel. I've not been able to > get a FreeBSD kernel under 1MB, even without any non crucial options > in it. In most cases U-Boot use 2-4 64K blocks, mostly 3 with another one block for environment, so i bet in your case 256K. If so and if U-Boot support LZMA it possible to fit LZMA-ed kernel into 768K left. If not, you will need to flash loader instead of kernel (but seems we need to teach loader for NAND support, or pass FS queries to U-Boot) > > What's the workaroound for that? > > b) NAND support. World needs to reside on the NAND flash. Does that > already work? I bet, depend on SPI flash size 1M, your flashed U-Boot can use NAND for boot. If so, you will be able to store read-only FS on NAND+kernel or kernel+RAMdisk for now. > > I would love to be just a bit behind and to hear people come up and > say: no it's all solved :-) No way, without you this will never happen :) > > Mat WBW -- Aleksandr Rybalko From owner-freebsd-arm@FreeBSD.ORG Sat Sep 24 05:20:03 2011 Return-Path: Delivered-To: freebsd-arm@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9FABF106566C for ; Sat, 24 Sep 2011 05:20:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 6CD4E8FC14 for ; Sat, 24 Sep 2011 05:20:03 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p8O5K3ov038789 for ; Sat, 24 Sep 2011 05:20:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p8O5K3pF038784; Sat, 24 Sep 2011 05:20:03 GMT (envelope-from gnats) Date: Sat, 24 Sep 2011 05:20:03 GMT Message-Id: <201109240520.p8O5K3pF038784@freefall.freebsd.org> To: freebsd-arm@FreeBSD.org From: Naoyuki Tai Cc: Subject: Re: arm/154189: lang/perl5.12 doesn't build on arm X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Naoyuki Tai List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Sep 2011 05:20:03 -0000 The following reply was made to PR arm/154189; it has been noted by GNATS. From: Naoyuki Tai To: bug-followup@FreeBSD.org, kvedulv@kvedulv.de Cc: Subject: Re: arm/154189: lang/perl5.12 doesn't build on arm Date: Sat, 24 Sep 2011 01:11:32 -0400 After spending some more time on this, I can reasonably conclude that this is a compiler bug. First off, the build succeeds if "-fstack-protector" is not used. Here is the locale.s from locale.s of perl5-10.1, without stack protector. (Sorry I'm using perl5.10.1 for this example, but 5.10 and 5.12 crashes same way.) Perl_new_collate: @ args = 0, pretend = 0, frame = 104 @ frame_needed = 1, uses_anonymous_args = 0 mov ip, sp stmfd sp!, {r4, r5, r6, fp, ip, lr, pc} sub fp, ip, #4 sub sp, sp, #104 ldr r6, .L48 .LPIC2: add r6, pc, r6 subs r5, r0, #0 bne .L31 ldr r3, .L48+4 And the data segment .L48 is L48: .word _GLOBAL_OFFSET_TABLE_-(.LPIC2+8) .word PL_collation_name(GOT) Here is the assembler output of locale.c with the -fstack-protector. Perl_new_collate: @ args = 0, pretend = 0, frame = 104 @ frame_needed = 1, uses_anonymous_args = 0 mov ip, sp stmfd sp!, {r4, r5, r6, fp, ip, lr, pc} sub fp, ip, #4 sub sp, sp, #104 ldr r6, .L49 .LPIC2: add r6, pc, r6 ldr r3, .L49+4 And the data segment is .L49: .word _GLOBAL_OFFSET_TABLE_-(.LPIC2+8) .word __stack_chk_guard(GOT) .word PL_collation_name(GOT) Notice the last "ldr r3, .L49+4". It is loading r3 register from __stack_chk_guard(GOT) instead of PL_collation_name(GOT). So, I think that the arm backend has a bug that it is producing wrong offsets in the data segment when the stack protector is used. After noticing this, I took out the "-fstack-protector" from build and the build succeeds. It may be the problem that the combination of -fPIC and -fstack-protector is used. In any case, it is clear that the GCC's arm backend has a bug. cc --version cc (GCC) 4.2.1 20070719 [FreeBSD] Copyright (C) 2007 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -- Tai