From owner-freebsd-arm@freebsd.org Sun Jul 19 11:04:02 2015 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 39D919A465B for ; Sun, 19 Jul 2015 11:04:02 +0000 (UTC) (envelope-from bpurgar@gmail.com) Received: from mail-wi0-x22c.google.com (mail-wi0-x22c.google.com [IPv6:2a00:1450:400c:c05::22c]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B0A3E1BE2 for ; Sun, 19 Jul 2015 11:04:01 +0000 (UTC) (envelope-from bpurgar@gmail.com) Received: by wibxm9 with SMTP id xm9so3695504wib.1 for ; Sun, 19 Jul 2015 04:04:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=BswwbaoNwvk+TBVBqUZshOttBSa28dm+WcpsVTUIprQ=; b=A+up2sb88epsUT159wL/Hatf/68P1xEgshUE7FRcnRM3H9EZqgk3XEELuHu4jXZDQF Cb4GY5cQ9f5r0uOoWrlfDFfPZzQd5B/kGdunuw47K8bMCydAshbO5oYdCRIpDXgTudbF sYr58Okne8eUZmqr6tZLhjW8J+Zk1wG8yV3TGXogRksxjvtSLoeYaX7l9LeWfKXfxhDD bXSddJEGjSbdNryl2t4dKHsrVTk6Eqtyjb52/2FGkVjMsO37GPaCJBcvrth5UCp3qWQ5 epjT6dnXKCiXu4++oONH5h4so6b4AOyg9vLHSAzffIX0K6VBDsb+rsQ0jjY894uIjk62 avVw== MIME-Version: 1.0 X-Received: by 10.180.102.74 with SMTP id fm10mr11961305wib.25.1437303840170; Sun, 19 Jul 2015 04:04:00 -0700 (PDT) Received: by 10.28.98.133 with HTTP; Sun, 19 Jul 2015 04:04:00 -0700 (PDT) In-Reply-To: <20150718183218.GI8523@funkthat.com> References: <20150718183218.GI8523@funkthat.com> Date: Sun, 19 Jul 2015 13:04:00 +0200 Message-ID: Subject: Re: avila boot2 problem ? From: Berislav Purgar To: John-Mark Gurney Cc: "freebsd-arm@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 19 Jul 2015 11:04:02 -0000 Ok . finnaly it works Trying NPE-B...success. Using NPE-B with PHY 0. Ethernet eth0: MAC address 00:d0:12:03:59:23 IP: 192.168.0.11/255.255.255.0, Gateway: 0.0.0.0 Default server: 192.168.0.111 RedBoot(tm) bootstrap and debug environment [ROM] Gateworks certified release, version 2.04.4 - built 08:43:39, Jul 29 2008 Platform: Gateworks Avila GW23XX (IXP42X 533MHz) BE Model Number: GW2345 Manufacture Date: 08-30-2007 Copyright (C) 2000, 2001, 2002, 2003, 2004, 2007 Free Software Foundation, Inc. Copyright (C) 2004 - 2008 Gateworks Corporation RAM: 0x00000000-0x04000000, [0x00029f80-0x03fc1000] available FLASH: 0x50000000 - 0x51000000, 128 blocks of 0x00020000 bytes each. == Executing boot script in 5.000 seconds - enter ^C to abort RedBoot> fis load boot2.freebsd RedBoot> go FreeBSD ARM (Gateworks Avila) boot2 v0.4 \ Default: /boot/kernel/kernel boot: Could not locate "ufs:ROOTDEVNAME" to fix kernel boot device, check ROOTDEVNAME is set KDB: debugger backends: ddb KDB: current backend: ddb Copyright (c) 1992-2015 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 11.0-CURRENT #5 r285655M: Sun Jul 19 12:54:08 CEST 2015 root@pila:/usr/obj/arm.armeb/root/avila/sys/AVILA arm FreeBSD clang version 3.6.1 (tags/RELEASE_361/final 237755) 20150525 CPU: IXP425 533MHz rev 1 (ARMv5TE) (XScale core) Big-endian DC enabled IC enabled WB enabled LABT branch prediction enabled 32KB/32B 32-way instruction cache 32KB/32B 32-way write-back-locking data cache real memory = 67104768 (63 MB) avail memory = 57970688 (55 MB) random: entropy device external interface ixp0: ixp0: 37fff pcib0: on ixp0 pci0: on pcib0 ixpclk0: on ixp0 ixpiic0: on ixp0 iicbb0: on ixpiic0 iicbus0: on iicbb0 master-only iic0: on iicbus0 ad74180: at addr 0x50 on iicbus0 ds1672_rtc0: at addr 0xd0 on iicbus0 ixpwdog0: on ixp0 uart0: on ixp0 uart0: console (115200,n,8,1) uart1: on ixp0 ixpqmgr0: on ixp0 npe0: on ixp0 npe0: load fw image IXP425.NPE-B Func 0x2 Rev 2.1 miibus0: on npe0 ukphy0: PHY 1 on miibus0 ukphy0: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto npe0: Ethernet address: 00:d0:12:03:59:23 npe1: on ixp0 npe1: load fw image IXP425.NPE-C Func 0x5 Rev 2.1 miibus1: on npe1 ukphy1: PHY 5 on miibus1 ukphy1: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto npe1: Ethernet address: 00:d0:12:13:59:23 ata_avila0: on ixp0 ata0: on ata_avila0 led_avila0: on ixp0 Timecounter "IXP4XX Timer" frequency 66666600 Hz quality 1000 Timecounters tick every 10.000 msec ada0 at ata0 bus 0 scbus0 target 0 lun 0 ada0: CFA-7 device ada0: Serial Number B04931AF29124B0007A6 ada0: 16.700MB/s transfers (PIO4, PIO 512bytes) ada0: 3823MB (7831152 512 byte sectors: 16H 63S/T 7769C) ada0: Previously was known as ad0 hwpmc: SOFT/16/64/0x67 XSCALE/4/32/0x1ff Trying to mount root from ufs:ada0 []... Setting hostuuid: 897f7ec2-2e05-11e5-8600-00d012035923. Setting hostid: 0x55415f1e. Starting file system checks: /dev/ada0: FILE SYSTEM CLEAN; SKIPPING CHECKS /dev/ada0: clean, 1703204 free (780 frags, 212803 blocks, 0.0% fragmentation) Mounting local file systems:. Setting hostname: avila. Setting up harvesting:[HIGH_PERFORMANCE],[FS_ATIME],SWI,INTERRUPT,NET_NG,NET_ETHER,NET_TUN,MOUSE,KEYBOARD,ATTACH,CACHED Feeding entropy:random: unblocking device. . npe0: ixpnpe_intr: status 0x60000 npe0: link state changed to UP Starting Network: lo0 npe0 npe1. lo0: flags=8049 metric 0 mtu 16384 options=600003 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 inet 127.0.0.1 netmask 0xff000000 groups: lo nd6 options=21 npe0: flags=8843 metric 0 mtu 1500 options=80008 ether 00:d0:12:03:59:23 inet 192.168.0.11 netmask 0xffffff00 broadcast 192.168.0.255 media: Ethernet autoselect (100baseTX ) status: active nd6 options=29 npe1: link state changed to DOWNEX,MULTICAST> metric 0 mtu 1500 options=80008 ether 00:d0:12:13:59:23 media: Ethernet autoselect (none) status: no carrier nd6 options=29 ELF ldconfig path: /lib /usr/lib /usr/lib/compat Starting devd. Starting Network: npe1. npe1: flags=8802 metric 0 mtu 1500 options=80008 ether 00:d0:12:13:59:23 media: Ethernet autoselect (none) status: no carrier nd6 options=29 add net fe80::: gateway ::1 add net ff02::: gateway ::1 add net ::ffff:0.0.0.0: gateway ::1 add net ::0.0.0.0: gateway ::1 Creating and/or trimming log files. Starting syslogd. Starting casperd. Clearing /tmp (X related). Updating motd:. Mounting late file systems:. Performing sanity check on sshd configuration. Starting sshd. Starting cron. Starting background file system checks in 60 seconds. Sun Jul 19 12:12:57 UTC 2015 FreeBSD/arm (avila) (ttyu0) login: On Sat, Jul 18, 2015 at 8:32 PM, John-Mark Gurney wrote: > Berislav Purgar wrote this message on Sat, Jul 18, 2015 at 18:51 +0200: > > i got this when trying to compile boot2 for avila board : > > Hmm.. maybe it's been a while since I built for arm, but this should > be easy to fix... Looks like the proper END is missing... > > Can you try to see if this patch fixes things? If it does, I'll commit > it... > > Thanks for the report... > > diff --git a/sys/boot/arm/ixp425/boot2/arm_init.S > b/sys/boot/arm/ixp425/boot2/arm_init.S > index 9ede9fc..15e1e6c 100644 > --- a/sys/boot/arm/ixp425/boot2/arm_init.S > +++ b/sys/boot/arm/ixp425/boot2/arm_init.S > @@ -43,6 +43,7 @@ ASENTRY_NP(start) > /* main should not return. If it does, spin forever */ > infiniteLoop: > b infiniteLoop > +END(start) > > .Lstart: > .word _edata > @@ -52,5 +53,6 @@ infiniteLoop: > ENTRY(cpu_id) > mrc p15, 0, r0, c0, c0, 0 > RET > +END(cpu_id) > > /* End */ > > -- > John-Mark Gurney Voice: +1 415 225 5579 > > "All that I will do, has been done, All that I have, has not." >