From owner-freebsd-arm@FreeBSD.ORG Mon May 2 11:06:55 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 0AB5B106567A for ; Mon, 2 May 2011 11:06:55 +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 ED9458FC18 for ; Mon, 2 May 2011 11:06:54 +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 p42B6snI064030 for ; Mon, 2 May 2011 11:06:54 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p42B6sk3064028 for freebsd-arm@FreeBSD.org; Mon, 2 May 2011 11:06:54 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 2 May 2011 11:06:54 GMT Message-Id: <201105021106.p42B6sk3064028@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, 02 May 2011 11:06:55 -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/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/154306 arm named crashes with signal 11 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 11 problems total. From owner-freebsd-arm@FreeBSD.ORG Mon May 2 16:40:11 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 A37D31065674 for ; Mon, 2 May 2011 16:40:11 +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 155998FC15 for ; Mon, 2 May 2011 16:40:11 +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 p42GeALm070047 for ; Mon, 2 May 2011 16:40:10 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p42GeAvI070046; Mon, 2 May 2011 16:40:10 GMT (envelope-from gnats) Resent-Date: Mon, 2 May 2011 16:40:10 GMT Resent-Message-Id: <201105021640.p42GeAvI070046@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-arm@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Damjan Marion Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E22F01065673 for ; Mon, 2 May 2011 16:38:45 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id D11FE8FC14 for ; Mon, 2 May 2011 16:38:45 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.4/8.14.4) with ESMTP id p42GcjeE071074 for ; Mon, 2 May 2011 16:38:45 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id p42Gcj7f071073; Mon, 2 May 2011 16:38:45 GMT (envelope-from nobody) Message-Id: <201105021638.p42Gcj7f071073@red.freebsd.org> Date: Mon, 2 May 2011 16:38:45 GMT From: Damjan Marion To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: arm/156771: FreeBSD/arm fails to build trampoline code with clang due to missing -ffreestanding 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, 02 May 2011 16:40:11 -0000 >Number: 156771 >Category: arm >Synopsis: FreeBSD/arm fails to build trampoline code with clang due to missing -ffreestanding >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-arm >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon May 02 16:40:10 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Damjan Marion >Release: -CURRENT >Organization: n/a >Environment: >Description: clang compiler produces optimized code which calls memset which is missing when kernel.trampoline is linked. inflate-tramp.o: In function `inflate_dynamic': /Volumes/data/src/freebsd/sys/kern/inflate.c:(.text+0x538): undefined reference to `memset' inflate-tramp.o: In function `huft_build': /Volumes/data/src/freebsd/sys/kern/inflate.c:(.text+0xb1c): undefined reference to `memset' This can be avoided by passing -ffreestanding (diff attached). >How-To-Repeat: >Fix: diff --git a/sys/conf/Makefile.arm b/sys/conf/Makefile.arm index 756945d..d067fb3 100644 --- a/sys/conf/Makefile.arm +++ b/sys/conf/Makefile.arm @@ -108,7 +108,7 @@ ${KERNEL_KO}.tramp: ${KERNEL_KO} $S/$M/$M/inckern.S $S/$M/$M/elf_trampoline.c gzip -9 ${KERNEL_KO}.tmp eval $$(stat -s ${KERNEL_KO}.tmp.gz) && \ echo "#define KERNCOMPSIZE $$st_size" >>opt_kernname.h - ${CC} -O2 -DKZIP -I. -I$S -c $S/kern/inflate.c -o inflate-tramp.o + ${CC} -O2 -ffreestanding -DKZIP -I. -I$S -c $S/kern/inflate.c -o inflate-tramp.o ${CC} -O -nostdlib -I. -I$S -Xlinker -T -Xlinker ldscript.$M.tramp \ -DKZIP tmphack.S $S/$M/$M/elf_trampoline.c inflate-tramp.o \ $S/$M/$M/inckern.S ${FILES_CPU_FUNC} -o ${KERNEL_KO}.gz.tramp >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-arm@FreeBSD.ORG Tue May 3 12:58:15 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 7A63C106564A for ; Tue, 3 May 2011 12:58:15 +0000 (UTC) (envelope-from damjan.marion@gmail.com) Received: from mail-ey0-f182.google.com (mail-ey0-f182.google.com [209.85.215.182]) by mx1.freebsd.org (Postfix) with ESMTP id F28EC8FC12 for ; Tue, 3 May 2011 12:58:14 +0000 (UTC) Received: by eyg7 with SMTP id 7so14566eyg.13 for ; Tue, 03 May 2011 05:58:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:content-type:content-transfer-encoding :subject:date:message-id:to:mime-version:x-mailer; bh=4AN7vFIj0pPkGWZU8OLGiUfUK1zbD9DcJ1SEIulYG7w=; b=qZu7/3HiSIAHs6o1xlcxe1gYMRHI26pmXcpvmVMJO4ghoagvWBAzq7jKkx6Rl1OxLI kNIhq8QLFY7h7Z9i20oXjNBZBPa92vxGRzrTkwXO/R8OuaFasfBQrQx95E+8dsi0QoSi 0ubw+C084av/BgmVaBOjphlc2LqCkNm2NMfoc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:content-type:content-transfer-encoding:subject:date:message-id :to:mime-version:x-mailer; b=hbjemR71Y6RyJj7gxqzT+/HOLMxjbXcEOj8Ph7Z4SnTxUbXdoTJA1tAb7dcWLjEgxt ORIr3ioBKA7+pjum+t67ItFzbAQOE96BHbcx28P4kmsVu2oUcMuFjwwNYJx4oypbHxdL rcy8cmBBW9HptvERxmNRSNfAbPK4j5vZkfVXs= Received: by 10.14.7.198 with SMTP id 46mr3985597eep.108.1304427493629; Tue, 03 May 2011 05:58:13 -0700 (PDT) Received: from [192.168.123.4] (cpe-109-60-66-194.zg3.cable.xnet.hr [109.60.66.194]) by mx.google.com with ESMTPS id s49sm43612eei.5.2011.05.03.05.58.12 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 03 May 2011 05:58:12 -0700 (PDT) From: Damjan Marion Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Date: Tue, 3 May 2011 14:58:10 +0200 Message-Id: <0CF48E36-0611-4CB9-BAAD-F078CA063DB5@gmail.com> To: freebsd-arm@freebsd.org Mime-Version: 1.0 (Apple Message framework v1084) X-Mailer: Apple Mail (2.1084) Subject: remote gdb 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, 03 May 2011 12:58:15 -0000 Hi, I would like to setup remote debugging session but seems that my serial = console is not seen as a debug interface. GDB: no debug ports present and db> gdb The remote GDB backend could not be selected. I tried to pass hint.uart.0.flags=3D"0x90" trough hints file but no = luck. Is there a way to get remote gdb running? Thanks, Damjan=20= From owner-freebsd-arm@FreeBSD.ORG Tue May 3 20:42:06 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 C49A4106566C for ; Tue, 3 May 2011 20:42:05 +0000 (UTC) (envelope-from damjan.marion@gmail.com) Received: from mail-ey0-f182.google.com (mail-ey0-f182.google.com [209.85.215.182]) by mx1.freebsd.org (Postfix) with ESMTP id 198BA8FC19 for ; Tue, 3 May 2011 20:42:04 +0000 (UTC) Received: by eyg7 with SMTP id 7so202682eyg.13 for ; Tue, 03 May 2011 13:42:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:content-type:content-transfer-encoding :subject:date:message-id:to:mime-version:x-mailer; bh=/mBbzQcmQywuOgO4W8RhU3n0iHWxX69XyuOsMqfDnBs=; b=o9C/3uyC2GIyepAfBpE7BWZpdAYnaFkv57FqimfThOEGTYyMmfIpFtSBu66IINo77z /gRrh1nfVwumukz+ZToc9XCq66Qfbvqo9b06v8kTTegB8Ey4Qg4hSmzjjKqEyflLWINS CMfeR1h25eMbIvHrWhJu1NcE9WGWiUlo8C9F0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:content-type:content-transfer-encoding:subject:date:message-id :to:mime-version:x-mailer; b=dyOG/4Ws5D6fg77NiFJX3RpzPE/u6aUN9Rq1zt+Gm7L7d7ZmHhJCmvrEhLkModbC97 n5ggURpMEsWvQd9If2tg4JPK+d+PnXwifkNvB1tDh/aEXn1vyHVLmpp1MNtD5AvUqs8e 6c6MrfGzlsXhrKH1Yx3KzjBUQZ/fxssKNmQso= Received: by 10.213.101.11 with SMTP id a11mr216074ebo.86.1304455323799; Tue, 03 May 2011 13:42:03 -0700 (PDT) Received: from [192.168.123.4] (cpe-109-60-66-194.zg3.cable.xnet.hr [109.60.66.194]) by mx.google.com with ESMTPS id c14sm311916eeb.25.2011.05.03.13.42.01 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 03 May 2011 13:42:02 -0700 (PDT) From: Damjan Marion Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Date: Tue, 3 May 2011 22:42:00 +0200 Message-Id: To: freebsd-arm@freebsd.org, raj@semihalf.com Mime-Version: 1.0 (Apple Message framework v1084) X-Mailer: Apple Mail (2.1084) Cc: Subject: Few issues with Marvell code 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, 03 May 2011 20:42:06 -0000 Hi, During my attempt to bring up 88F5181L I found few issues with current = marvell code: 1. There is a typo in sys/arm/mv/common.c - { "mvrl,pcie", &decode_win_pcie_setup, NULL }, + { "mrvl,pcie", &decode_win_pcie_setup, NULL }, 2. Even if this is fixed, decode_win_pcie_setup will not be executed as = in FDT file pci tree sits outside of SOC tree 3. CPU decode windows setup in FDT localbus tree is missing target, = instead target is hardcoded to 1: cpu_win_tbl[t].target =3D 1;=20 On other side 1st column looks like a sequence. Is this 1st column = needed?=20 Can we extend this definition to also have target defined? I.e. In case of 88F5181L I need to add following window, and it will be = more convenient to do that in FDT file. cpu_win_tbl[++t].target =3D 0x04; cpu_win_tbl[t].attr =3D 0x79; cpu_win_tbl[t].base =3D 0xf0000000; cpu_win_tbl[t].size =3D 0x01000000; cpu_win_tbl[t].remap =3D -1; Thanks, Damjan= From owner-freebsd-arm@FreeBSD.ORG Tue May 3 22:12:21 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 ED666106564A for ; Tue, 3 May 2011 22:12:21 +0000 (UTC) (envelope-from marcel@xcllnt.net) Received: from mail.xcllnt.net (mail.xcllnt.net [70.36.220.4]) by mx1.freebsd.org (Postfix) with ESMTP id AAB508FC0C for ; Tue, 3 May 2011 22:12:21 +0000 (UTC) Received: from dhcp-192-168-2-13.wifi.xcllnt.net (atm.xcllnt.net [70.36.220.6]) (authenticated bits=0) by mail.xcllnt.net (8.14.4/8.14.4) with ESMTP id p43Le09s019345 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Tue, 3 May 2011 14:40:06 -0700 (PDT) (envelope-from marcel@xcllnt.net) Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii From: Marcel Moolenaar In-Reply-To: <0CF48E36-0611-4CB9-BAAD-F078CA063DB5@gmail.com> Date: Tue, 3 May 2011 14:36:02 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: <92565B06-07BA-4684-B463-8979AF6C24E1@xcllnt.net> References: <0CF48E36-0611-4CB9-BAAD-F078CA063DB5@gmail.com> To: Damjan Marion X-Mailer: Apple Mail (2.1084) Cc: freebsd-arm@freebsd.org Subject: Re: remote gdb 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, 03 May 2011 22:12:22 -0000 On May 3, 2011, at 5:58 AM, Damjan Marion wrote: >=20 > Hi, >=20 > I would like to setup remote debugging session but seems that my = serial console is not seen as a debug interface. >=20 > GDB: no debug ports present >=20 > and >=20 > db> gdb > The remote GDB backend could not be selected. >=20 > I tried to pass hint.uart.0.flags=3D"0x90" trough hints file but no = luck. Try: set hw.uart.dbgport=3D"mm:0xf1012000" or: set hw.uart.dbgport=3D"mm:0xf1012100,br:115200" depending on which UART you want to use. Note that for UART1 I also specified the baudrate because it's less likely that the second UART is properly initialized. FYI, --=20 Marcel Moolenaar marcel@xcllnt.net From owner-freebsd-arm@FreeBSD.ORG Wed May 4 13:30:17 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 B269010656B6 for ; Wed, 4 May 2011 13:30:17 +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 D168C8FC0C for ; Wed, 4 May 2011 13:30:10 +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 p44DUAHF000882 for ; Wed, 4 May 2011 13:30:10 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p44DUA4g000881; Wed, 4 May 2011 13:30:10 GMT (envelope-from gnats) Resent-Date: Wed, 4 May 2011 13:30:10 GMT Resent-Message-Id: <201105041330.p44DUA4g000881@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-arm@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Arnaud Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 199001065677 for ; Wed, 4 May 2011 13:21:47 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id 07FE58FC1F for ; Wed, 4 May 2011 13:21:47 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.4/8.14.4) with ESMTP id p44DLkhp085850 for ; Wed, 4 May 2011 13:21:46 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id p44DLk0e085841; Wed, 4 May 2011 13:21:46 GMT (envelope-from nobody) Message-Id: <201105041321.p44DLk0e085841@red.freebsd.org> Date: Wed, 4 May 2011 13:21:46 GMT From: Arnaud To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: arm/156814: OpenRD Ultimate does not boot on DB-88F6XXX or SHEEVAPLUG kernel configurations 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, 04 May 2011 13:30:17 -0000 >Number: 156814 >Category: arm >Synopsis: OpenRD Ultimate does not boot on DB-88F6XXX or SHEEVAPLUG kernel configurations >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-arm >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed May 04 13:30:10 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Arnaud >Release: 9.0-CURRENT >Organization: Ecole Normale Superieure >Environment: FreeBSD OpenRD-Ultimate 9.0-CURRENT FreeBSD 9.0-CURRENT #0: Tue May 3 14:31:36 UTC 2011 root@OpenRD-Ultimate:/usr/obj/usr/src/sys/OPENRD-FBSD9 arm >Description: Hi, I was not able to boot my OpenRD Ultimate using DB-88F6XXX or SHEEVAPLUG kernels which are designed for device configurations close to mine. Here is the solution I found, notably based on N.Shigemura work. Two problems have been solved: - boot by modifying the FDT - use the two mge network interfaces >How-To-Repeat: Load one of these kernels, it should freeze the openrd box >Fix: Referring to an almost 1 year old thread (http://markmail.org/message/4vjllpvhotkshg6n), I have been able to have a working configuration with those modifications : - create an OPENRD kernel config based on DB-88F6XXX - using the openrd.dts file (written by N.Shigemura) - applying the patch of N.shigemura on mge driver - patching mgevar headers I send you a diff of my modifications. I am aware that some of these modifications could be a step back in developments that have been made during last months. I hope it will help developers. Regards. Patch attached with submission follows: diff -Nur src/sys/arm/conf/OPENRD src/sys/arm/conf/OPENRD --- src/sys/arm/conf/OPENRD 1970-01-01 00:00:00.000000000 +0000 +++ src/sys/arm/conf/OPENRD 2011-05-04 13:57:37.000000000 +0000 @@ -0,0 +1,90 @@ +# +# Custom kernel for Marvell OpenRD devices. +# +# +# + +ident OPENRD +include "../mv/kirkwood/std.db88f6xxx" + +options SOC_MV_KIRKWOOD +makeoptions MODULES_OVERRIDE="" + +#makeoptions DEBUG=-g #Build kernel with gdb(1) debug symbols +makeoptions WERROR="-Werror" + +options SCHED_4BSD #4BSD scheduler +options INET #InterNETworking +options INET6 #IPv6 communications protocols +options FFS #Berkeley Fast Filesystem +options NFSCLIENT #Network Filesystem Client +options NFSLOCKD #Network Lock Manager +options NFS_ROOT #NFS usable as /, requires NFSCLIENT +options BOOTP +options BOOTP_NFSROOT +options BOOTP_NFSV3 +options BOOTP_WIRED_TO=mge0 + +#options ROOTDEVNAME=\"ufs:/dev/da0a\" + +options SYSVSHM #SYSV-style shared memory +options SYSVMSG #SYSV-style message queues +options SYSVSEM #SYSV-style semaphores +options _KPOSIX_PRIORITY_SCHEDULING #Posix P1003_1B real-time extensions +options MUTEX_NOINLINE +options RWLOCK_NOINLINE +options NO_FFS_SNAPSHOT +options NO_SWAPPING + +# Debugging +options ALT_BREAK_TO_DEBUGGER +options DDB +#options DEADLKRES #Enable the deadlock resolver +options DIAGNOSTIC +#options INVARIANTS #Enable calls of extra sanity checking +#options INVARIANT_SUPPORT #Extra sanity checks of internal structures, required by INVARIANTS +options KDB +options WITNESS #Enable checks to detect deadlocks and cycles +options WITNESS_SKIPSPIN #Don't run witness on spinlocks for speed +#options WITNESS_KDB + +device pci + +# Pseudo devices +device loop +device md +device pty +device random + +# Serial ports +device uart + +# Networking +device ether +device mge # Marvell Gigabit Ethernet controller +device mii +device e1000phy +device bpf + +# USB +options USB_DEBUG # enable debug msgs +device usb +device ehci +device umass +device scbus +device pass +device da + +# I2C (TWSI) +device iic +device iicbus + +# SATA +device mvs +device ata +device atadisk + +# Flattened Device Tree +options FDT +options FDT_DTB_STATIC +makeoptions FDT_DTS_FILE=openrd.dts diff -Nur src/sys/boot/fdt/dts/openrd.dts src/sys/boot/fdt/dts/openrd.dts --- src/sys/boot/fdt/dts/openrd.dts 1970-01-01 00:00:00.000000000 +0000 +++ src/sys/boot/fdt/dts/openrd.dts 2011-05-04 13:52:17.000000000 +0000 @@ -0,0 +1,354 @@ +/* + * Copyright (c) 2009-2010 The FreeBSD Foundation + * All rights reserved. + * + * This software was developed by Semihalf under sponsorship from + * the FreeBSD Foundation. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + * + * OpenRD-Client/Ultimate Device Tree Source. + * + * $FreeBSD$ + */ + +/dts-v1/; + +/ { + model = "mrvl,OpenRD-CL"; + compatible = "OpenRD-CL"; + #address-cells = <1>; + #size-cells = <1>; + + aliases { + ethernet0 = &enet0; + ethernet1 = &enet1; + mpp = &MPP; + pci0 = &pci0; + serial0 = &serial0; + serial1 = &serial1; + soc = &SOC; + sram = &SRAM; + }; + + cpus { + #address-cells = <1>; + #size-cells = <0>; + + cpu@0 { + device_type = "cpu"; + compatible = "ARM,88FR131"; + reg = <0x0>; + d-cache-line-size = <32>; // 32 bytes + i-cache-line-size = <32>; // 32 bytes + d-cache-size = <0x4000>; // L1, 16K + i-cache-size = <0x4000>; // L1, 16K + timebase-frequency = <0>; + bus-frequency = <0>; + clock-frequency = <0>; + }; + }; + + memory { + device_type = "memory"; + reg = <0x0 0x20000000>; // 512M@0x0 + }; + + localbus@f1000000 { + #address-cells = <2>; + #size-cells = <1>; + compatible = "mrvl,lbc"; + + /* This reflects CPU decode windows setup. */ + ranges = <0x0 0x0f 0xf9300000 0x00100000 + 0x1 0x1e 0xfa000000 0x00100000 + 0x2 0x1d 0xfa100000 0x02000000 + 0x3 0x1b 0xfc100000 0x00000400>; + + nor@0,0 { + #address-cells = <1>; + #size-cells = <1>; + compatible = "cfi-flash"; + reg = <0x0 0x0 0x00100000>; + bank-width = <2>; + device-width = <1>; + }; + + led@1,0 { + #address-cells = <1>; + #size-cells = <1>; + compatible = "led"; + reg = <0x1 0x0 0x00100000>; + }; + + nor@2,0 { + #address-cells = <1>; + #size-cells = <1>; + compatible = "cfi-flash"; + reg = <0x2 0x0 0x02000000>; + bank-width = <2>; + device-width = <1>; + }; + + nand@3,0 { + #address-cells = <1>; + #size-cells = <1>; + reg = <0x3 0x0 0x00100000>; + bank-width = <2>; + device-width = <1>; + }; + }; + + SOC: soc88f6281@f1000000 { + #address-cells = <1>; + #size-cells = <1>; + compatible = "simple-bus"; + ranges = <0x0 0xf1000000 0x00100000>; + bus-frequency = <0>; + + PIC: pic@20200 { + interrupt-controller; + #address-cells = <0>; + #interrupt-cells = <1>; + reg = <0x20200 0x3c>; + compatible = "mrvl,pic"; + }; + + timer@20300 { + compatible = "mrvl,timer"; + reg = <0x20300 0x30>; + interrupts = <1>; + interrupt-parent = <&PIC>; + mrvl,has-wdt; + }; + + MPP: mpp@10000 { + #pin-cells = <2>; + compatible = "mrvl,mpp"; + reg = <0x10000 0x34>; + pin-count = <50>; + pin-map = < + 0 1 /* MPP[0]: NF_IO[2] */ + 1 1 /* MPP[1]: NF_IO[3] */ + 2 1 /* MPP[2]: NF_IO[4] */ + 3 1 /* MPP[3]: NF_IO[5] */ + 4 1 /* MPP[4]: NF_IO[6] */ + 5 1 /* MPP[5]: NF_IO[7] */ + 6 1 /* MPP[6]: SYSRST_OUTn */ + 7 0 /* MPP[7]: GPO[7] */ + 8 1 /* MPP[8]: TW_SDA */ + 9 1 /* MPP[9]: TW_SCK */ + 10 3 /* MPP[10]: UA0_TXD */ + 11 3 /* MPP[11]: UA0_RXD */ + 12 1 /* MPP[12]: SD_CLK */ + 13 1 /* MPP[13]: SD_CMD */ + 14 1 /* MPP[14]: SD_D[0] */ + 15 1 /* MPP[15]: SD_D[1] */ + 16 1 /* MPP[16]: SD_D[2] */ + 17 1 /* MPP[17]: SD_D[3] */ + 18 1 /* MPP[18]: NF_IO[0] */ + 19 1 /* MPP[19]: NF_IO[1] */ + 20 3 /* MPP[20]: GE1[0] */ + 21 3 /* MPP[21]: GE1[1] */ + 22 3 /* MPP[22]: GE1[2] */ + 23 3 /* MPP[23]: GE1[3] */ + 24 3 /* MPP[24]: GE1[4] */ + 25 3 /* MPP[25]: GE1[5] */ + 26 3 /* MPP[26]: GE1[6] */ + 27 3 /* MPP[27]: GE1[7] */ + 28 0 /* MPP[28]: GPIO[28] */ + 29 1 /* MPP[29]: TSMP[9] */ + 30 3 /* MPP[30]: GE1[10] */ + 31 3 /* MPP[31]: GE1[11] */ + 32 3 /* MPP[32]: GE1[12] */ + 33 3 /* MPP[33]: GE1[13] */ + 34 0 /* MPP[34]: GPIO[34] */ + 35 2 /* MPP[35]: TDM_CH0_TX_QL */ + 36 2 /* MPP[36]: TDM_SPI_CS1 */ + 37 2 /* MPP[37]: TDM_CH2_TX_QL */ + 38 2 /* MPP[38]: TDM_CH2_RX_QL */ + 39 4 /* MPP[39]: AU_I2SBCLK */ + 40 4 /* MPP[40]: AU_I2SDO */ + 41 4 /* MPP[41]: AU_I2SLRCLK */ + 42 4 /* MPP[42]: AU_I2SMCLK */ + 43 4 /* MPP[43]: AU_I2SDI */ + 44 4 /* MPP[44]: AU_EXTCLK */ + 45 2 /* MPP[45]: TDM_PCLK */ + 46 2 /* MPP[46]: TDM_FS */ + 47 2 /* MPP[47]: TDM_DRX */ + 48 2 /* MPP[48]: TDM_DTX */ + 49 2>; /* MPP[49]: TDM_CH0_TX_QL */ + }; + + GPIO: gpio@10100 { + #gpio-cells = <3>; + compatible = "mrvl,gpio"; + reg = <0x10100 0x20>; + gpio-controller; + interrupts = <35 36 37 38 39 40 41>; + interrupt-parent = <&PIC>; + }; + + rtc@10300 { + compatible = "mrvl,rtc"; + reg = <0x10300 0x08>; + }; + + twsi@11000 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "mrvl,twsi"; + reg = <0x11000 0x20>; + interrupts = <43>; + interrupt-parent = <&PIC>; + }; + + enet0: ethernet@72000 { + #address-cells = <1>; + #size-cells = <1>; + model = "V2"; + compatible = "mrvl,ge"; + reg = <0x72000 0x2000>; + ranges = <0x0 0x72000 0x2000>; + local-mac-address = [ 00 00 00 00 00 00 ]; + interrupts = <12 13 14 11 46>; + interrupt-parent = <&PIC>; + + mdio@0 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "mrvl,mdio"; + }; + }; + + enet1: ethernet@76000 { + #address-cells = <1>; + #size-cells = <1>; + model = "V2"; + compatible = "mrvl,ge"; + reg = <0x76000 0x2000>; + ranges = <0x0 0x76000 0x2000>; + local-mac-address = [ 00 00 00 00 00 00 ]; + interrupts = <16 17 18 15 47>; + interrupt-parent = <&PIC>; + + mdio@1 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "mrvl,mdio"; + }; + }; + + serial0: serial@12000 { + compatible = "ns16550"; + reg = <0x12000 0x20>; + reg-shift = <2>; + clock-frequency = <0>; + interrupts = <33>; + interrupt-parent = <&PIC>; + }; + + serial1: serial@12100 { + compatible = "ns16550"; + reg = <0x12100 0x20>; + reg-shift = <2>; + clock-frequency = <0>; + interrupts = <34>; + interrupt-parent = <&PIC>; + }; + + crypto@30000 { + compatible = "mrvl,cesa"; + reg = <0x30000 0x10000>; + interrupts = <22>; + interrupt-parent = <&PIC>; + }; + + usb@50000 { + compatible = "mrvl,usb-ehci", "usb-ehci"; + reg = <0x50000 0x1000>; + interrupts = <48 19>; + interrupt-parent = <&PIC>; + }; + + xor@60000 { + compatible = "mrvl,xor"; + reg = <0x60000 0x1000>; + interrupts = <5 6 7 8>; + interrupt-parent = <&PIC>; + }; + + sata@80000 { + compatible = "mrvl,sata"; + reg = <0x80000 0x6000>; + interrupts = <21>; + interrupt-parent = <&PIC>; + }; + }; + + SRAM: sram@fd000000 { + compatible = "mrvl,cesa-sram"; + reg = <0xfd000000 0x00100000>; + }; + + chosen { + stdin = "serial0"; + stdout = "serial0"; + }; + + pci0: pcie@f1040000 { + compatible = "mrvl,pcie"; + device_type = "pci"; + #interrupt-cells = <1>; + #size-cells = <2>; + #address-cells = <3>; + reg = <0xf1040000 0x2000>; + bus-range = <0 255>; + ranges = <0x02000000 0x0 0xf4000000 0xf4000000 0x0 0x04000000 + 0x01000000 0x0 0x00000000 0xf1100000 0x0 0x00100000>; + clock-frequency = <33333333>; + interrupt-parent = <&PIC>; + interrupts = <44>; + interrupt-map-mask = <0xf800 0x0 0x0 0x7>; + interrupt-map = < + /* IDSEL 0x1 */ + 0x0800 0x0 0x0 0x1 &PIC 0x9 + 0x0800 0x0 0x0 0x2 &PIC 0x9 + 0x0800 0x0 0x0 0x3 &PIC 0x9 + 0x0800 0x0 0x0 0x4 &PIC 0x9 + >; + pcie@0 { + reg = <0x0 0x0 0x0 0x0 0x0>; + #size-cells = <2>; + #address-cells = <3>; + device_type = "pci"; + ranges = <0x02000000 0x0 0xf4000000 + 0x02000000 0x0 0xf4000000 + 0x0 0x04040000 + + 0x01000000 0x0 0x0 + 0x01000000 0x0 0x0 + 0x0 0x00100000>; + }; + }; +}; + diff -Nur src/sys/dev/mge/if_mge.c src/sys/dev/mge/if_mge.c --- src/sys/dev/mge/if_mge.c 2011-05-04 13:45:36.000000000 +0000 +++ src/sys/dev/mge/if_mge.c 2011-05-04 13:52:59.000000000 +0000 @@ -626,10 +626,9 @@ mge_attach(device_t dev) { struct mge_softc *sc; - struct mii_softc *miisc; struct ifnet *ifp; uint8_t hwaddr[ETHER_ADDR_LEN]; - int i, error, phy; + int i, error; sc = device_get_softc(dev); sc->dev = dev; @@ -642,8 +641,8 @@ mge_ver_params(sc); /* Get phy address from fdt */ - if (fdt_get_phyaddr(sc->node, &phy) != 0) - return (ENXIO); + if (fdt_get_phyaddr(sc->node, &sc->phyaddr) != 0) + sc->phyaddr = -1; /* Initialize mutexes */ mtx_init(&sc->transmit_lock, device_get_nameunit(dev), "mge TX lock", MTX_DEF); @@ -674,6 +673,9 @@ sc->tx_ic_time = 768; mge_add_sysctls(sc); + if (sc->phyaddr == -1) + sc->phyaddr = MGE_READ(sc, MGE_REG_PHYDEV); + /* Allocate network interface */ ifp = sc->ifp = if_alloc(IFT_ETHER); if (ifp == NULL) { @@ -708,7 +710,7 @@ /* Attach PHY(s) */ error = mii_attach(dev, &sc->miibus, ifp, mge_ifmedia_upd, - mge_ifmedia_sts, BMSR_DEFCAPMASK, phy, MII_OFFSET_ANY, 0); + mge_ifmedia_sts, BMSR_DEFCAPMASK, sc->phyaddr, MII_OFFSET_ANY, 0); if (error) { device_printf(dev, "attaching PHYs failed\n"); mge_detach(dev); @@ -717,8 +719,7 @@ sc->mii = device_get_softc(sc->miibus); /* Tell the MAC where to find the PHY so autoneg works */ - miisc = LIST_FIRST(&sc->mii->mii_phys); - MGE_WRITE(sc, MGE_REG_PHYDEV, miisc->mii_phy); + MGE_WRITE(sc, MGE_REG_PHYDEV, sc->phyaddr); /* Attach interrupt handlers */ for (i = 0; i < 2; ++i) { @@ -868,8 +869,7 @@ struct mge_softc *sc = arg; struct mge_desc_wrapper *dw; volatile uint32_t reg_val; - int i, count; - + int i; MGE_GLOBAL_LOCK_ASSERT(sc); @@ -949,17 +949,6 @@ reg_val = MGE_READ(sc, MGE_PORT_SERIAL_CTRL); reg_val |= PORT_SERIAL_ENABLE; MGE_WRITE(sc, MGE_PORT_SERIAL_CTRL, reg_val); - count = 0x100000; - for (;;) { - reg_val = MGE_READ(sc, MGE_PORT_STATUS); - if (reg_val & MGE_STATUS_LINKUP) - break; - DELAY(100); - if (--count == 0) { - if_printf(sc->ifp, "Timeout on link-up\n"); - break; - } - } /* Setup interrupts coalescing */ mge_set_rxic(sc); @@ -1484,8 +1473,8 @@ MGE_TRANSMIT_LOCK_ASSERT(sc); - if ((ifp->if_drv_flags & (IFF_DRV_RUNNING | IFF_DRV_OACTIVE)) != - IFF_DRV_RUNNING) + if (IFM_SUBTYPE(sc->mii->mii_media_active) == IFM_NONE || + (ifp->if_drv_flags & (IFF_DRV_RUNNING | IFF_DRV_OACTIVE)) != IFF_DRV_RUNNING) return; for (;;) { diff -Nur src/sys/dev/mge/if_mgevar.h src/sys/dev/mge/if_mgevar.h --- src/sys/dev/mge/if_mgevar.h 2011-05-04 13:45:36.000000000 +0000 +++ src/sys/dev/mge/if_mgevar.h 2011-05-04 13:52:59.000000000 +0000 @@ -103,6 +103,7 @@ uint32_t mge_tx_tok_cnt; uint16_t mge_mtu; int mge_ver; + int phyaddr; }; >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-arm@FreeBSD.ORG Wed May 4 13:41:58 2011 Return-Path: Delivered-To: arm@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 48D421065675 for ; Wed, 4 May 2011 13:41:58 +0000 (UTC) (envelope-from raj@semihalf.com) Received: from smtp.semihalf.com (smtp.semihalf.com [213.17.239.109]) by mx1.freebsd.org (Postfix) with ESMTP id E9DA68FC0C for ; Wed, 4 May 2011 13:41:57 +0000 (UTC) Received: from localhost (unknown [213.17.239.109]) by smtp.semihalf.com (Postfix) with ESMTP id 05093C3840; Wed, 4 May 2011 15:22:51 +0200 (CEST) X-Virus-Scanned: by amavisd-new at semihalf.com Received: from smtp.semihalf.com ([213.17.239.109]) by localhost (smtp.semihalf.com [213.17.239.109]) (amavisd-new, port 10024) with ESMTP id XScEl25x3X-q; Wed, 4 May 2011 15:22:50 +0200 (CEST) Received: from [10.0.0.79] (cardhu.semihalf.com [213.17.239.108]) by smtp.semihalf.com (Postfix) with ESMTPSA id 67442C383F; Wed, 4 May 2011 15:22:50 +0200 (CEST) Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii From: Rafal Jaworowski In-Reply-To: <3E64A912-2879-4DC7-B50D-DAAF590148A1@gmail.com> Date: Wed, 4 May 2011 15:22:49 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: References: <3E64A912-2879-4DC7-B50D-DAAF590148A1@gmail.com> To: Damjan Marion X-Mailer: Apple Mail (2.1084) Cc: arm@FreeBSD.org Subject: Re: ARMv6 / ARMv7 support 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, 04 May 2011 13:41:58 -0000 On 2011-04-27, at 13:08, Damjan Marion wrote: > Hi guys, >=20 > I just found in latest status report that you're working on Sheeva = 88SV581 CPU core (ARMv6) support.=20 >=20 > Is there some repository where I can see your code? >=20 > I'm specially interested in ARMv6 architecture modifications (i.e. = pmap.c) as similar thing we need for OMAP3/OMAP4 support. So far Ben = Grey made some patches but there is lot of things to do to make code = suitable for submitting to -CURRENT. Hi Damjan, Sorry for a slow response, but I was very busy and Greg was on vacation. [Adding arm@ ML to CC..] What we currently have in terms of common arch layer is a pretty = complete and cleaned up support for ARMv6/v7, which is supposed to be in = a quite good condition and quality (there are possible bugs here or = there as our testing environment and approach was somewhat limited due = to the hardware config and booting scenarios), but it's considered = almost complete as far as functionality goes: - separate pmap file for v6/v7 machines (new ARMv6 page descriptors = support, removed unnecessary cache sync, operations, removed tracking = multiple mappings / virtual aliasing tracking etc.) - busdma(9) based on Mark Tinguely's patches - ARMv7 processor identification/cache identification schema (for the = purpose of mach specific call dipatcher and output during bootstrap) - tested and used with two SOC systems based on Sheeva 88SV58x CPU core: = Marvell Armada 500 (88F6781) and Frey (88F9580), which are ARMv6/v7 = compliant - there's more coming as we have work under way for up to quad-core SMP = systems support for FreeBSD/arm I will try to create a project in FreeBSD SVN repo to import the changes = for people's review and/or adaptations for their OMAP platform code = perhaps etc. The problem is I cannot promise any solid date as am pretty = loaded with other work.. Rafal From owner-freebsd-arm@FreeBSD.ORG Sat May 7 11:20:07 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 762611065670 for ; Sat, 7 May 2011 11:20:07 +0000 (UTC) (envelope-from markm@FreeBSD.org) Received: from gromit.grondar.org (grandfather.grondar.org [IPv6:2a01:348:0:15:5d59:5c20:0:2]) by mx1.freebsd.org (Postfix) with ESMTP id F21DA8FC0C for ; Sat, 7 May 2011 11:20:06 +0000 (UTC) Received: from uucp by gromit.grondar.org with local-rmail (Exim 4.73 (FreeBSD)) (envelope-from ) id 1QIfYL-0000MO-LN for freebsd-arm@freebsd.org; Sat, 07 May 2011 12:20:05 +0100 Received: from localhost ([127.0.0.1] helo=groundzero.grondar.org) by groundzero.grondar.org with esmtp (Exim 4.75 (FreeBSD)) (envelope-from ) id 1QIfVW-000PYG-F9; Sat, 07 May 2011 12:17:10 +0100 To: Andrew Turner In-reply-to: <20110426035423.1b4b592c@fubar.geek.nz> References: <20110425163549.2bcc8551@fubar.geek.nz> <20110425170105.37c7d853@fubar.geek.nz> <20110426035423.1b4b592c@fubar.geek.nz> From: Mark Murray Date: Sat, 07 May 2011 12:17:10 +0100 Message-Id: Cc: freebsd-arm@freebsd.org Subject: Re: OMAP3 patch 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: Sat, 07 May 2011 11:20:07 -0000 Andrew Turner writes: > On Mon, 25 Apr 2011 12:44:05 +0100 > Mark Murray wrote: > > Most excellent! > > > > Do you have a recipe for building and installing this? > > > > I'm very familiar with building ind installing regular FBSD; > > less so with the BB build/install/boot process. > I've placed my build script at [1]. You need to change ${DIR} to point > to your patched source tree. It depends on the devel/u-boot port. > > After the script has built FreeBSD copy ${KERNEL_FILE}.boot to a FAT > formatted sd card as uImage. e.g.: > CP ${KERNEL_FILE}.boot /mnt/uImage > ${KERNEL_FILE}.boot is printed at the end of the build script. U-Boot > should load FreeBSD without any input from the user. > > The root file system is loaded off USB from /dev/da0s1. It is a > standard buildworld/installworld with TARGET=arm. Hi Did this. Didn't work: [graveyard] /usr/src 12:08 pm # cu -t -s 115200 -l /dev/cuaU0 Connected Texas Instruments X-Loader 1.4.4ss (Aug 19 2010 - 02:49:27) Beagle xM Rev A Reading boot sector Loading u-boot.bin from mmc U-Boot 2010.03-dirty (Aug 20 2010 - 20:50:46) OMAP3630/3730-GP ES2.0, CPU-OPP2, L3-165MHz, OMAP3 Beagle board + LPDDR/NAND I2C: ready DRAM: 512 MB NAND: 256 MiB *** Warning - bad CRC or NAND, using default environment In: serial Out: serial Err: serial Probing for expansion boards, if none are connected you'll see a harmless I2C error. No EEPROM on expansion board Beagle xM Rev A Die ID #7f4c00011ff00000015739eb0c00b026 Hit any key to stop autoboot: 0 mmc1 is available The user button is currently NOT pressed. reading boot.scr ** Unable to read "boot.scr" from mmc 1:1 ** reading user.scr ** Unable to read "user.scr" from mmc 1:1 ** reading uImage 3994161 bytes read Booting from mmc ... ## Booting kernel from Legacy Image at 80200000 ... Image Name: FreeBSD Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 3994097 Bytes = 3.8 MB Load Address: 80200000 Entry Point: 802000e0 Verifying Checksum ... OK XIP Kernel Image ... OK OK Starting kernel ... [Mark Murray - ... and there it hangs] M -- Mark R V Murray Cert APS(Open) Dip Phys(Open) BSc Open(Open) BSc(Hons)(Open) Pi: 132511160 From owner-freebsd-arm@FreeBSD.ORG Sat May 7 19:09:49 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 3C3B51065672 for ; Sat, 7 May 2011 19:09:49 +0000 (UTC) (envelope-from kim@annarborchinese.com) Received: from lifeline.c1.site5.com (lifeline.c1.site5.com [174.120.98.146]) by mx1.freebsd.org (Postfix) with ESMTP id 1CD0C8FC13 for ; Sat, 7 May 2011 19:09:48 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by lifeline.c1.site5.com (Postfix) with ESMTP id 0B4AF13404C for ; Sat, 7 May 2011 13:51:47 -0500 (CDT) X-Virus-Scanned: Debian amavisd-new at lifeline.c1.site5.com Received: from lifeline.c1.site5.com ([127.0.0.1]) by localhost (lifeline.c1.site5.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id I3LPN6nm9RFa for ; Sat, 7 May 2011 13:51:46 -0500 (CDT) Received: from mail.annarborchinese.com (unknown [190.167.168.191]) by lifeline.c1.site5.com (Postfix) with ESMTPA id 83B5B134048 for ; Sat, 7 May 2011 13:51:37 -0500 (CDT) From: "Harlamova Valentina" To: freebsd-arm@freebsd.org Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="UTF-8" Date: Sat, 7 May 2011 21:52:05 +0300 Message-Id: <20110507190949.3C3B51065672@hub.freebsd.org> Subject: Apliec rokas ap =?utf-8?b?YXBhxLx1bWllbSB0csWrY8SrZ2kgYXDEo8ST?= =?utf-8?q?rbtai?= sievietei X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Harlamova Valentina List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 07 May 2011 19:09:49 -0000 Apliec rokas uz vidukļa trūcīgi apģērbtai jaunkundzei, iegādājies labu drinku bārā un noskaties seksīgu šovu.. Tikko atvērts un klientiem pretīmnākošs klubs gaida tevi - mēs nesortējam savus viesus, mums katrs ir sevišķs: vai no Latvijas, vai Mozambikas. Draudzīgas cenas, vāciešu menedžeri - detalizēti uzzini te: http://bit.ly/mI6NJu