From owner-freebsd-arm@FreeBSD.ORG Sun Jul 14 08:36:51 2013 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 91A735E4 for ; Sun, 14 Jul 2013 08:36:51 +0000 (UTC) (envelope-from ganbold@gmail.com) Received: from mail-ie0-x22d.google.com (mail-ie0-x22d.google.com [IPv6:2607:f8b0:4001:c03::22d]) by mx1.freebsd.org (Postfix) with ESMTP id 6735C97C for ; Sun, 14 Jul 2013 08:36:51 +0000 (UTC) Received: by mail-ie0-f173.google.com with SMTP id k13so23330711iea.4 for ; Sun, 14 Jul 2013 01:36:51 -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=ops0tDG5K9cTofNzkc24uDuWZH/bFRRS986n2fuw1G0=; b=Ti9sfEgh1cqkAj3J11uNxXglqHnR9yLrr/J72x86/sQ50MJmGuqRbbLMgGDJ07iPhw vIwP2Dp/f9LpYcPL9CXxgBzPUlLagVpRb8nMTCNz9IUy80ZCjsIgNQQ/xBpm3+KNpt0u L77TRf65yzo0SLEPUggBLt1RWBEqAPBGjmNrwvHFyNELmtWj2OwR1qg9rjXx9H34967f rB0yefoJrAe6QaoWBKv8Psv54wE+Jf28rtLVpKbQmsuEU+C5x1034uKitFXqMBFqXD28 pKvhY8/fFRxl3gEbjpcLcWrSt9C9AY9p2iZJPYf/ZktS3kqiA/Eu/URypVAfP85877/t 0KRw== MIME-Version: 1.0 X-Received: by 10.50.128.36 with SMTP id nl4mr4304434igb.38.1373791011001; Sun, 14 Jul 2013 01:36:51 -0700 (PDT) Received: by 10.64.235.239 with HTTP; Sun, 14 Jul 2013 01:36:50 -0700 (PDT) In-Reply-To: References: Date: Sun, 14 Jul 2013 16:36:50 +0800 Message-ID: Subject: Re: My cubieboard startup, automatic restart From: Ganbold Tsagaankhuu To: XiaoQI Ge Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: freebsd-arm X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Jul 2013 08:36:51 -0000 On Thu, Jul 11, 2013 at 7:18 PM, XiaoQI Ge wrote: > Or so > === > # # Starting application at 0x40201000 ... > Try "go 0x40200100" and check your usb stick. Ganbold > data abort > > MAYBE you should read doc / README.arm-unaligned-accesses > > pc: [<40201010>] lr: [<5ff827d4>] > sp: 5fe61e30 ip: 00000000 fp: 00000000 > r10: 00000003 r9: 00000000 r8: 5fe61f68 > r7: 5ffb98a4 r6: 00000001 r5: 5fe63224 r4: 40201000 > r3: 00000000 r2: 5fe63224 r1: 5fe63224 r0: 00000001 > Flags: nZCv IRQs off FIQs off Mode SVC_32 > Resetting CPU ... > === > > How to solve it > > > > -DWITH_ARM_EABI WITH_FDT = yes > > -- > Regards. > By: XiaoQI Ge; PGP:8B09D5F7 > WWW: https://www.7axu.com/ > > > > 2013/7/10 XiaoQI Ge > > > I've compiled a kernel (svn update to the latest) > > Start when the resumption of direct > > > > Error message: > > > > sun4i#mmcinfo > > Device: SUNXI SD/MMC > > Manufacturer ID: 36 > > OEM: 414f > > Name: > > Tran Speed: 50000000 > > Rd Block Len: 512 > > SD version 2.0 > > High Capacity: No > > Capacity: 240.8 MiB > > Bus Width: 4-bit > > sun4i#fatload mmc 0 0x40200000 kernel > > reading kernel > > 4860454 bytes read in 218 ms (21.3 MiB/s) > > sun4i#go 0x40201000 > > ## Starting application at 0x40201000 ... > > data abort > > > > MAYBE you should read doc/README.arm-unaligned-accesses > > > > pc : [<40201010>] lr : [<5ff827d4>] > > sp : 5fe61e30 ip : 00000000 fp : 00000000 > > r10: 00000003 r9 : 00000000 r8 : 5fe61f68 > > r7 : 5ffb98a4 r6 : 00000001 r5 : 5fe63224 r4 : 40201000 > > r3 : 00000000 r2 : 5fe63224 r1 : 5fe63224 r0 : 00000001 > > Flags: nZCv IRQs off FIQs off Mode SVC_32 > > Resetting CPU ... > > > > resetting ... > > > > U-Boot SPL 2012.10-04259-g832a8e5 (Nov 09 2012 - 10:06:24) > > DRAM: 512MB > > SUNXI SD/MMC: 0 > > > _______________________________________________ > 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 Sun Jul 14 10:33:53 2013 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id E47FB6F7 for ; Sun, 14 Jul 2013 10:33:53 +0000 (UTC) (envelope-from ghw@7axu.com) Received: from mail-wi0-f169.google.com (mail-wi0-f169.google.com [209.85.212.169]) by mx1.freebsd.org (Postfix) with ESMTP id 7D019C6E for ; Sun, 14 Jul 2013 10:33:52 +0000 (UTC) Received: by mail-wi0-f169.google.com with SMTP id c10so2001392wiw.0 for ; Sun, 14 Jul 2013 03:33:45 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-originating-ip:in-reply-to:references:from:date :message-id:subject:to:cc:content-type:x-gm-message-state; bh=hQfboUv4ksGRsLaxtaXsWjAZVsF2sU6RXKlLtkNJJKQ=; b=Xx79WeNabdbZweRhnKULkjnoZXrBuF1gkHNGMp0p0aB1lWHo0UWNtRbl9KtrT8OU5V 9Z9F3Su7SM7R2GxNtSALNJf/QwcMKN5q5FaEgDdeWpswRZzjaiXApPjt3nytEyANdTBS uLIRdwbqnG3tx01enB/bVkBFCFrpzUJvU0B6lMDhvua+QbOErJFhL9FASqixeEblN4fO ZBYDl0ryuMDRln0PK1FSnYxsQrP6NEkenHAvYk3/6llm2D5wj9vp2zEBlzsD8Vu3EkC0 gcn9vszNnMNtWp3Pngo6HKeCPtOb7h1ja6nu1a6zDWzQ9MatBDyBup9VlbjCohopz8Mf iwCQ== X-Received: by 10.194.91.194 with SMTP id cg2mr6949181wjb.53.1373798025876; Sun, 14 Jul 2013 03:33:45 -0700 (PDT) MIME-Version: 1.0 Received: by 10.194.93.34 with HTTP; Sun, 14 Jul 2013 03:33:05 -0700 (PDT) X-Originating-IP: [54.249.112.206] In-Reply-To: References: From: XiaoQI Ge Date: Sun, 14 Jul 2013 18:33:05 +0800 Message-ID: Subject: Re: My cubieboard startup, automatic restart To: Ganbold Tsagaankhuu X-Gm-Message-State: ALoCoQlD50cju7kmN2GuSmM08NYtl7UADhqg8QIG4yvYplUO6QMcKRxfUwv4nX3Fre1T0fmLOwdN Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: freebsd-arm X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Jul 2013 10:33:54 -0000 Now is not supported by the Ministry EABI it? -- Regards. By: XiaoQI Ge; PGP:8B09D5F7 WWW: https://www.7axu.com/ 2013/7/14 Ganbold Tsagaankhuu > > > > On Thu, Jul 11, 2013 at 7:18 PM, XiaoQI Ge wrote: > >> Or so >> === >> # # Starting application at 0x40201000 ... >> > > Try "go 0x40200100" and check your usb stick. > > Ganbold > > > >> data abort >> >> MAYBE you should read doc / README.arm-unaligned-accesses >> >> pc: [<40201010>] lr: [<5ff827d4>] >> sp: 5fe61e30 ip: 00000000 fp: 00000000 >> r10: 00000003 r9: 00000000 r8: 5fe61f68 >> r7: 5ffb98a4 r6: 00000001 r5: 5fe63224 r4: 40201000 >> r3: 00000000 r2: 5fe63224 r1: 5fe63224 r0: 00000001 >> Flags: nZCv IRQs off FIQs off Mode SVC_32 >> Resetting CPU ... >> === >> >> How to solve it >> >> >> >> -DWITH_ARM_EABI WITH_FDT = yes >> >> -- >> Regards. >> By: XiaoQI Ge; PGP:8B09D5F7 >> WWW: https://www.7axu.com/ >> >> >> >> 2013/7/10 XiaoQI Ge >> >> > I've compiled a kernel (svn update to the latest) >> > Start when the resumption of direct >> > >> > Error message: >> > >> > sun4i#mmcinfo >> > Device: SUNXI SD/MMC >> > Manufacturer ID: 36 >> > OEM: 414f >> > Name: >> > Tran Speed: 50000000 >> > Rd Block Len: 512 >> > SD version 2.0 >> > High Capacity: No >> > Capacity: 240.8 MiB >> > Bus Width: 4-bit >> > sun4i#fatload mmc 0 0x40200000 kernel >> > reading kernel >> > 4860454 bytes read in 218 ms (21.3 MiB/s) >> > sun4i#go 0x40201000 >> > ## Starting application at 0x40201000 ... >> > data abort >> > >> > MAYBE you should read doc/README.arm-unaligned-accesses >> > >> > pc : [<40201010>] lr : [<5ff827d4>] >> > sp : 5fe61e30 ip : 00000000 fp : 00000000 >> > r10: 00000003 r9 : 00000000 r8 : 5fe61f68 >> > r7 : 5ffb98a4 r6 : 00000001 r5 : 5fe63224 r4 : 40201000 >> > r3 : 00000000 r2 : 5fe63224 r1 : 5fe63224 r0 : 00000001 >> > Flags: nZCv IRQs off FIQs off Mode SVC_32 >> > Resetting CPU ... >> > >> > resetting ... >> > >> > U-Boot SPL 2012.10-04259-g832a8e5 (Nov 09 2012 - 10:06:24) >> > DRAM: 512MB >> > SUNXI SD/MMC: 0 >> > >> _______________________________________________ >> 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 Mon Jul 15 04:21:16 2013 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 71528ED9 for ; Mon, 15 Jul 2013 04:21:16 +0000 (UTC) (envelope-from ghw@7axu.com) Received: from mail-wg0-f43.google.com (mail-wg0-f43.google.com [74.125.82.43]) by mx1.freebsd.org (Postfix) with ESMTP id EE638775 for ; Mon, 15 Jul 2013 04:21:15 +0000 (UTC) Received: by mail-wg0-f43.google.com with SMTP id z11so9752035wgg.10 for ; Sun, 14 Jul 2013 21:21:14 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-originating-ip:from:date:message-id:subject:to :content-type:x-gm-message-state; bh=yyqPN0HNEwV7pT8D2Vq9oTzV6+PanGI/n/C2t84oCTY=; b=ZyuAmfnLGFzNO1MS1ioiKwoN8ZALKyk0zIJi7bHdefXsOC1bEqtAZIOdyFoJOrjWpM ksmLUUUX1eGj4AJGJ/CujoxA8mYZiqFNuGP8TsEiwZDMwqQjxcYFkhUCFDusVlu06wtc 5qGMPzjwaHtPwyQGs+vhVbh0N97BGfDxf4Gt8H0jrWwhCFd8MqS92clXj+0yZ9EDDrAL jQSAeKlcGPqI1xAxK1jZyNhxhJSflFtUQi6aaMtMLxOxjz/VINYV6up3BlR7VDIU5iSI irEJpBHWOh5KCrEr1LdoGJ4Lp/lmZlH/VdgShVzEbrPvQeZZgjYwi9q1DJONbW1AXjO4 vKAA== X-Received: by 10.180.185.148 with SMTP id fc20mr7732248wic.0.1373861598824; Sun, 14 Jul 2013 21:13:18 -0700 (PDT) MIME-Version: 1.0 Received: by 10.194.93.34 with HTTP; Sun, 14 Jul 2013 21:12:38 -0700 (PDT) X-Originating-IP: [124.160.63.202] From: XiaoQI Ge Date: Mon, 15 Jul 2013 12:12:38 +0800 Message-ID: Subject: My WLI-UC-GNM up crash To: freebsd-wireless@freebsd.org, freebsd-arm X-Gm-Message-State: ALoCoQmXkXGkEuGmqOiOgbFvThJnszbsXdUazwoYgCrhwmwZ/avAA9vZojIbkS4/HjgfapBf3kSb Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.14 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, 15 Jul 2013 04:21:16 -0000 My WLI-UC-GNM ifconfig up when collapsed, I do not know how to solve root@FreeBSD:~ # ifconfig wlan create wlandev run0 wlan0: Ethernet address: 10:6f:3f:2b:fd:6d wlan0 root@FreeBSD:~ # ifconfig lo0: flags=3D8049 metric 0 mtu 16384 options=3D600003 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1 inet 127.0.0.1 netmask 0xff000000 nd6 options=3D21 run0: flags=3D8802 metric 0 mtu 2290 ether 10:6f:3f:2b:fd:6d nd6 options=3D29 media: IEEE 802.11 Wireless Ethernet autoselect (autoselect) status: no carrier wlan0: flags=3D8802 metric 0 mtu 1500 ether 10:6f:3f:2b:fd:6d nd6 options=3D29 media: IEEE 802.11 Wireless Ethernet autoselect (autoselect) status: no carrier ssid "" channel 1 (2412 MHz 11b) country US authmode OPEN privacy OFF txpower 0 bmiss 7 scanvalid 60 wme bintval 0 root@FreeBSD:~ # dhclient wlan0 wlan0: no link .............. giving up root@FreeBSD:~ # pciconf -lv pciconf: /dev/pci: No such file or directory root@FreeBSD:~ # ifconfig wlan0 up scan run0: firmware RT2870 ver. 0.236 loaded root@FreeBSD:~ # Fatal kernel mode data abort: 'Alignment Fault 1' trapframe: 0xde177d68 FSR=3D00000801, FAR=3Dc24b3faf, spsr=3D00000013 r0 =3Dc24b7000, r1 =3Dc24b3faf, r2 =3Dc24b720c, r3 =3D0000096c r4 =3D80003eaf, r5 =3Dc249c800, r6 =3Dc24b7024, r7 =3Dc0760898 r8 =3Dc24b7000, r9 =3D00000014, r10=3Dc055851d, r11=3Dde177e18 r12=3D0000002e, ssp=3Dde177db4, slr=3D00000000, pc =3Dc04072d4 [ thread pid 0 tid 100038 ] Stopped at ieee80211_radiotap_chan_change+0x94: strh r3, [r1] db> bt Tracing pid 0 tid 100038 td 0xc232a620 _end() at 0xde177a90 scp=3D0xde177a90 rlv=3D0xc04f5e48 (db_trace_thread+0x34) rsp=3D0xde177a74 rfp=3D0xc05b8750 Bad frame pointer: 0xc05b8750 db> =3D =E2=80=8B=3Ddmesg=3D=3D sun4i#go 0x40200100 ## Starting application at 0x40200100 ... KDB: debugger backends: ddb KDB: current backend: ddb Copyright (c) 1992-2013 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 10.0-CURRENT #1: Sat Jul 13 23:09:25 CST 2013 root@FreeBSD.7axu.com:/usr/obj/armv6/arm.arm/usr/src/sys/CB1G arm FreeBSD clang version 3.3 (tags/RELEASE_33/final 183502) 20130610 WARNING: WITNESS option enabled, expect reduced performance. CPU: Cortex A8-r3 rev 2 (Cortex-A core) Supported features: ARM_ISA THUMB2 JAZELLE THUMBEE ARMv4 Security_Ext WB disabled EABT branch prediction enabled LoUU:2 LoC:2 LoUIS:1 Cache level 1: 32KB/64B 4-way data cache WT WB Read-Alloc 32KB/64B 4-way instruction cache Read-Alloc Cache level 2: 256KB/64B 8-way unified cache WT WB Read-Alloc Write-Alloc real memory =3D 536870912 (512 MB) avail memory =3D 513032192 (489 MB) random device not loaded; using insecure entropy simplebus0: on fdtbus0 aintc0: mem 0x1c20400-0x1c207ff on simplebus0 a10_ccm0: mem 0x1c20000-0x1c203ff on simplebus0 a10_timer0: mem 0x1c20c00-0x1c20c8f irq 22 on simplebus0 Event timer "a10_timer Eventtimer" frequency 24000000 Hz quality 1000 Timecounter "a10_timer timer0" frequency 24000000 Hz quality 1000 a10wd0: mem 0x1c20c90-0x1c20c97 on simplebus0 gpio0: mem 0x1c20800-0x1c20bff irq 28 on simplebus0 gpioc0: on gpio0 gpiobus0: on gpio0 ehci0: mem 0x1c14000-0x1c14fff irq 39 on simplebus0 usbus0: EHCI version 1.0 usbus0 on ehci0 ehci1: mem 0x1c1c000-0x1c1cfff irq 40 on simplebus0 usbus1: EHCI version 1.0 usbus1 on ehci1 uart0: <16750 or compatible> mem 0x1c28000-0x1c283ff irq 1 on simplebus0 uart0: console (115200,n,8,1) Timecounters tick every 10.000 msec usbus0: 480Mbps High Speed USB v2.0 usbus1: 480Mbps High Speed USB v2.0 WARNING: WITNESS option enabled, expect reduced performance. Root mount waiting for: usbus1 usbus0 ugen1.1: at usbus1 uhub0: on usbus= 1 ugen0.1: at usbus0 uhub1: on usbus= 0 uhub0: 1 port with 1 removable, self powered uhub1: 1 port with 1 removable, self powered Root mount waiting for: usbus1 usbus0 Root mount waiting for: usbus1 usbus0 ugen0.2: at usbus0 run0: <1.0> on usbus0 run0: MAC/BBP RT3070 (rev 0x0201), RF RT3020 (MIMO 1T1R), address 10:6f:3f:2b:fd :6d Root mount waiting for: usbus1 ugen1.2: at usbus1 umass0: on usbus1 umass0: SCSI over Bulk-Only; quirks =3D 0x0100 umass0:0:0:-1: Attached to scbus0 da0 at umass-sim0 bus 0 scbus0 target 0 lun 0 da0: Removable Direct Access SCSI-4 device da0: 40.000MB/s transfers da0: 7722MB (15814656 512 byte sectors: 255H 63S/T 984C) da0: quirks=3D0x2 Trying to mount root from ufs:/dev/da0s2 []... mountroot: waiting for device /dev/da0s2 ... WARNING: / was not properly dismounted WARNING: /: mount pending error: blocks 0 files 8 warning: no time-of-day clock registered, system time will not be set accurately lock order reversal: 1st 0xc22d1598 pmap (pmap) @ /usr/src/sys/arm/arm/pmap-v6.c:2990 2nd 0xc075e980 pmap pv global (pmap pv global) @ /usr/src/sys/arm/arm/pmap-v6.c :695 KDB: stack backtrace: _end() at 0xdbd05c30 scp=3D0xdbd05c30 rlv=3D0xc04f6064 (db_trace_self+0x14) rsp=3D0xdbd05b18 rfp=3D0xc2193380 Bad frame pointer: 0xc2193380 lock order reversal: 1st 0xc22d10b4 pmap (pmap) @ /usr/src/sys/arm/arm/pmap-v6.c:2990 2nd 0xc08530f0 vm map (system) (vm map (system)) @ /usr/src/sys/vm/vm_kern.c:42 = 8 KDB: stack backtrace: _end() at 0xde185aa4 scp=3D0xde185aa4 rlv=3D0xc04f6064 (db_trace_self+0x14) rsp=3D0xde185988 rfp=3D0xc21930a8 Bad frame pointer: 0xc21930a8 Setting hostuuid: a91f5d90-ebd4-11e2-83d9-63219f70abff. Setting hostid: 0x3599dde5. No suitable dump device was found. Entropy harvesting: interrupts ethernet point_to_pointsha256: /kernel: No such f ile or directory kickstart. Starting file system checks: =E2=80=8B From owner-freebsd-arm@FreeBSD.ORG Mon Jul 15 08:39:09 2013 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 4730D609; Mon, 15 Jul 2013 08:39:09 +0000 (UTC) (envelope-from hans.petter.selasky@bitfrost.no) Received: from mta.bitpro.no (mta.bitpro.no [92.42.64.202]) by mx1.freebsd.org (Postfix) with ESMTP id CAA198D8; Mon, 15 Jul 2013 08:39:08 +0000 (UTC) Received: from mail.lockless.no (mail.lockless.no [46.29.221.38]) by mta.bitpro.no (Postfix) with ESMTP id DD87B7A1E9; Mon, 15 Jul 2013 10:39:00 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by mail.lockless.no (Postfix) with ESMTP id BB42B8EEA10; Mon, 15 Jul 2013 10:39:02 +0200 (CEST) X-Virus-Scanned: by amavisd-new-2.6.4 (20090625) (Debian) at lockless.no Received: from mail.lockless.no ([127.0.0.1]) by localhost (mail.lockless.no [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id aqRkxwMI3ACC; Mon, 15 Jul 2013 10:39:02 +0200 (CEST) Received: from mail.lockless.no (localhost [127.0.0.1]) by mail.lockless.no (Postfix) with ESMTP id 2B3D98EEA0E; Mon, 15 Jul 2013 10:39:02 +0200 (CEST) Subject: RE: My WLI-UC-GNM up crash From: =?utf-8?Q?Hans_Petter_Selasky?= To: =?utf-8?Q?XiaoQI_Ge?= , =?utf-8?Q?freebsd-wireless=40?= =?utf-8?Q?freebsd=2Eorg?= , =?utf-8?Q?freebsd-arm?= Date: Mon, 15 Jul 2013 10:39:02 +0200 Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=_CkXUz0pylDulQXFqJkqWrROmt5H+I2BbQMAIJDeGsqsB5Ly8" In-Reply-To: References: X-Priority: 3 (Normal) X-Mailer: Zarafa 7.1.4-41394 Message-Id: X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.14 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, 15 Jul 2013 08:39:09 -0000 This is a multi-part message in MIME format. Your mail reader does not understand MIME message format. --=_CkXUz0pylDulQXFqJkqWrROmt5H+I2BbQMAIJDeGsqsB5Ly8 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Hi, Can you try the attached patch? --HPS --=_CkXUz0pylDulQXFqJkqWrROmt5H+I2BbQMAIJDeGsqsB5Ly8 Content-Type: text/x-patch; name=radiotap_alignment.diff Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename=radiotap_alignment.diff ZGlmZiAtLWdpdCBhL3N5cy9uZXQ4MDIxMS9pZWVlODAyMTFfcmFkaW90YXAuaCBiL3N5cy9u ZXQ4MDIxMS9pZWVlODAyMTFfcmFkaW90YXAuaAppbmRleCBiOGE4YjUxLi5jMTk5ZDQ4IDEw MDY0NAotLS0gYS9zeXMvbmV0ODAyMTEvaWVlZTgwMjExX3JhZGlvdGFwLmgKKysrIGIvc3lz L25ldDgwMjExL2llZWU4MDIxMV9yYWRpb3RhcC5oCkBAIC03OCw3ICs3OCw3IEBAIHN0cnVj dCBpZWVlODAyMTFfcmFkaW90YXBfaGVhZGVyIHsKIAkJCQkJICogQWRkaXRpb25hbCBleHRl bnNpb25zIGFyZSBtYWRlCiAJCQkJCSAqIGJ5IHNldHRpbmcgYml0IDMxLgogCQkJCQkgKi8K LX0gX19wYWNrZWQ7Cit9IF9fcGFja2VkIF9fYWxpZ25lZCg0KTsKIAogLyoKICAqIE5hbWUg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBEYXRhIHR5cGUgICAgICAgVW5pdHMK --=_CkXUz0pylDulQXFqJkqWrROmt5H+I2BbQMAIJDeGsqsB5Ly8-- From owner-freebsd-arm@FreeBSD.ORG Mon Jul 15 08:45:46 2013 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 644DC748; Mon, 15 Jul 2013 08:45:46 +0000 (UTC) (envelope-from hans.petter.selasky@bitfrost.no) Received: from mta.bitpro.no (mta.bitpro.no [92.42.64.202]) by mx1.freebsd.org (Postfix) with ESMTP id 21862917; Mon, 15 Jul 2013 08:45:45 +0000 (UTC) Received: from mail.lockless.no (mail.lockless.no [46.29.221.38]) by mta.bitpro.no (Postfix) with ESMTP id 11D407A1DB; Mon, 15 Jul 2013 10:45:45 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by mail.lockless.no (Postfix) with ESMTP id EB79C8EEA14; Mon, 15 Jul 2013 10:45:46 +0200 (CEST) X-Virus-Scanned: by amavisd-new-2.6.4 (20090625) (Debian) at lockless.no Received: from mail.lockless.no ([127.0.0.1]) by localhost (mail.lockless.no [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id tRRQlIwkH04Y; Mon, 15 Jul 2013 10:45:46 +0200 (CEST) Received: from mail.lockless.no (localhost [127.0.0.1]) by mail.lockless.no (Postfix) with ESMTP id 42C458E1198; Mon, 15 Jul 2013 10:45:46 +0200 (CEST) Subject: RE: My WLI-UC-GNM up crash From: =?utf-8?Q?Hans_Petter_Selasky?= To: =?utf-8?Q?XiaoQI_Ge?= , =?utf-8?Q?freebsd-wireless=40?= =?utf-8?Q?freebsd=2Eorg?= , =?utf-8?Q?freebsd-arm?= Date: Mon, 15 Jul 2013 10:45:46 +0200 Mime-Version: 1.0 In-Reply-To: References: X-Priority: 3 (Normal) X-Mailer: Zarafa 7.1.4-41394 Message-Id: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.14 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, 15 Jul 2013 08:45:46 -0000 Can you tell us which compiler you used to build your image? --HPS From owner-freebsd-arm@FreeBSD.ORG Mon Jul 15 09:06:13 2013 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id C5AF0EDF for ; Mon, 15 Jul 2013 09:06:13 +0000 (UTC) (envelope-from ghw@7axu.com) Received: from mail-wg0-f47.google.com (mail-wg0-f47.google.com [74.125.82.47]) by mx1.freebsd.org (Postfix) with ESMTP id 5F7719F1 for ; Mon, 15 Jul 2013 09:06:12 +0000 (UTC) Received: by mail-wg0-f47.google.com with SMTP id l18so10039384wgh.14 for ; Mon, 15 Jul 2013 02:06:05 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-originating-ip:in-reply-to:references:from:date :message-id:subject:to:cc:content-type:x-gm-message-state; bh=RIH7j9MOlFTM/CxbuzbEZWEN7zwBglp2FxrUGtce2f4=; b=RiIfo1bSKxqrIuU8fRKYkPQlo+6btCY877PumozQIORZgMAEOy/WWCUbhiiJjtmKzv B1flhZCD5fokJCjxy/sxRrXCs4MqDe/W3xhOW06+0s0/uLVNVs0bt6C3NSGOJptkYHPs YzAggYuEyNUF+uRi9xXicLr/k2A3O8vL/1S17Sf4CIrSxbo+/gRUwvWRUnnSmI0M7mKY xIDG4OMTTVkCdSxc/Q/bkJtWlGT8r6Uc4mkHDgVc4nG6Tix2m05NieI/JWxoVZblpGWS HNE3XhXGwjsv9Li4A2CYhgEZyXPn3PKvzOr1QTajfxF/WN+XztxC8xvt2unaOyokJi4O r0iw== X-Received: by 10.180.185.148 with SMTP id fc20mr8342216wic.0.1373879165675; Mon, 15 Jul 2013 02:06:05 -0700 (PDT) MIME-Version: 1.0 Received: by 10.194.93.34 with HTTP; Mon, 15 Jul 2013 02:05:25 -0700 (PDT) X-Originating-IP: [54.249.112.206] In-Reply-To: References: From: XiaoQI Ge Date: Mon, 15 Jul 2013 17:05:25 +0800 Message-ID: Subject: Re: My WLI-UC-GNM up crash To: Hans Petter Selasky X-Gm-Message-State: ALoCoQmpLy+xr9DTQjgXaaPBAseIFfC1oEv0ji2xz5LZkKbSLb+Jhp2CTLWNkc6O0GVTojhuj4zL Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: freebsd-arm , "freebsd-wireless@freebsd.org" X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.14 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, 15 Jul 2013 09:06:13 -0000 Tomorrow I'll try Is the clang compiler content in make.conf WITH_LIBCPLUSPLUS=yes NO_WERROR= WERROR= Using what command to compile the make TARGET_ARCH=arm WITH_FDT=yes MALLOC_PRODUCTION=yes kernel-toolchain make TARGET_ARCH=arm TARGET_CPUTYPE=armv6 KERNCONF=CB1G WITH_FDT=yes MALLOC_PRODUCTION=yes buildkernel -- Regards. By: XiaoQI Ge; PGP:8B09D5F7 WWW: https://www.7axu.com/ 2013/7/15 Hans Petter Selasky > ** > > Can you tell us which compiler you used to build your image? > > --HPS > > From owner-freebsd-arm@FreeBSD.ORG Mon Jul 15 09:17:02 2013 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id F0B31388; Mon, 15 Jul 2013 09:17:02 +0000 (UTC) (envelope-from Daan@vitsch.nl) Received: from Prakkezator.VEHosting.nl (Prakkezator6.VEHosting.nl [IPv6:2001:1af8:2100:b020::142]) by mx1.freebsd.org (Postfix) with ESMTP id 781C9A77; Mon, 15 Jul 2013 09:17:02 +0000 (UTC) Received: from [192.168.72.13] (124-54.bbned.dsl.internl.net [92.254.54.124]) (authenticated bits=0) by Prakkezator.VEHosting.nl (8.14.2/8.14.2) with ESMTP id r6F9GufA024374; Mon, 15 Jul 2013 11:16:59 +0200 (CEST) (envelope-from Daan@vitsch.nl) From: Daan Vreeken Organization: Daan - Vitsch Electronics To: XiaoQI Ge Subject: Re: My WLI-UC-GNM up crash Date: Mon, 15 Jul 2013 11:16:56 +0200 User-Agent: KMail/1.9.10 References: <1373862086-4117502624.6281ab47ee@bliksem.vehosting.nl> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <201307151116.56954.Daan@vitsch.nl> x-ve-auth-version: mi-1.1.7 2011-02-21 - Copyright (c) 2008, 2011 - Daan Vreeken - VEHosting x-ve-auth: authenticated as 'pa4dan' on Prakkezator.VEHosting.nl Cc: freebsd-arm@freebsd.org, freebsd-wireless@freebsd.org X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.14 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, 15 Jul 2013 09:17:03 -0000 Hi XiaoQI Ge, On Monday 15 July 2013 06:12:38 XiaoQI Ge wrote: > My WLI-UC-GNM ifconfig up when collapsed, > I do not know how to solve > > > root@FreeBSD:~ # ifconfig wlan create wlandev run0 > wlan0: Ethernet address: 10:6f:3f:2b:fd:6d > wlan0 > root@FreeBSD:~ # ifconfig > lo0: flags=8049 metric 0 mtu 16384 > options=600003 > inet6 ::1 prefixlen 128 > inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1 > inet 127.0.0.1 netmask 0xff000000 > nd6 options=21 > run0: flags=8802 metric 0 mtu 2290 > ether 10:6f:3f:2b:fd:6d > nd6 options=29 > media: IEEE 802.11 Wireless Ethernet autoselect (autoselect) > status: no carrier > wlan0: flags=8802 metric 0 mtu 1500 > ether 10:6f:3f:2b:fd:6d > nd6 options=29 > media: IEEE 802.11 Wireless Ethernet autoselect (autoselect) > status: no carrier > ssid "" channel 1 (2412 MHz 11b) > country US authmode OPEN privacy OFF txpower 0 bmiss 7 scanvalid 60 > wme bintval 0 > root@FreeBSD:~ # dhclient wlan0 > wlan0: no link .............. giving up > root@FreeBSD:~ # pciconf -lv > pciconf: /dev/pci: No such file or directory > root@FreeBSD:~ # ifconfig wlan0 up scan > run0: firmware RT2870 ver. 0.236 loaded > root@FreeBSD:~ # Fatal kernel mode data abort: 'Alignment Fault 1' > trapframe: 0xde177d68 > FSR=00000801, FAR=c24b3faf, spsr=00000013 > r0 =c24b7000, r1 =c24b3faf, r2 =c24b720c, r3 =0000096c > r4 =80003eaf, r5 =c249c800, r6 =c24b7024, r7 =c0760898 > r8 =c24b7000, r9 =00000014, r10=c055851d, r11=de177e18 > r12=0000002e, ssp=de177db4, slr=00000000, pc =c04072d4 > > [ thread pid 0 tid 100038 ] > Stopped at ieee80211_radiotap_chan_change+0x94: strh r3, [r1] > db> bt > Tracing pid 0 tid 100038 td 0xc232a620 > _end() at 0xde177a90 > scp=0xde177a90 rlv=0xc04f5e48 (db_trace_thread+0x34) > rsp=0xde177a74 rfp=0xc05b8750 > Bad frame pointer: 0xc05b8750 > db> Please see the patches I posted here : http://www.freebsd.org/cgi/query-pr.cgi?pr=arm%2F179532&cat= I think they may solve your problem. Regards, -- Ing. Daan Vreeken Vitsch Electronics http://Vitsch.nl/ http://VitschVPN.nl/ tel: +31-(0)40-7113051 KvK nr: 17174380 -- Machines en netwerken op afstand beheren? Vitsch VPN oplossing! Kijk voor meer informatie op: http://www.VitschVPN.nl/ From owner-freebsd-arm@FreeBSD.ORG Mon Jul 15 11:06:40 2013 Return-Path: Delivered-To: freebsd-arm@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 7CE4EF3A for ; Mon, 15 Jul 2013 11:06:40 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 5837EFB4 for ; Mon, 15 Jul 2013 11:06:40 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r6FB6efY084352 for ; Mon, 15 Jul 2013 11:06:40 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r6FB6dgQ084350 for freebsd-arm@FreeBSD.org; Mon, 15 Jul 2013 11:06:39 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 15 Jul 2013 11:06:39 GMT Message-Id: <201307151106.r6FB6dgQ084350@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 Subject: Current problem reports assigned to freebsd-arm@FreeBSD.org X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.14 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, 15 Jul 2013 11:06:40 -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/180080 arm Unmapped buffers on ARMv7 big-RAM boards o arm/179688 arm [patch] [rpi] serial console eats some characters at m o arm/179561 arm Compilation issue for lighttpd on raspberry pi o arm/179532 arm wireless networking on ARM o arm/178495 arm buildworld fail on arm/raspberry pi o arm/177687 arm gdb gets installed but does not know the EABI version o arm/177686 arm assertion failed in ld-elf.so.1 when invoking telnet w o arm/177685 arm [kernel] [patch] Correct return type and usage of at91 o arm/177538 arm tunefs(8) and mount(8) can not access a newfs(8)'d fil o arm/176424 arm Compiler warning, TARGET_ARCH=armv6, make MALLOC_PRODU o arm/175803 arm building xdev for arm failing o arm/175605 arm please fix build binutils-2.23.1 in raspberry pi o arm/174461 arm [patch] Fix off-by-one in arm9/arm10 cache maintenance o arm/173617 arm Dreamplug exhibits eSATA file corruption using network o kern/171096 arm [arm][xscale][ixp]Allow 16bit access on PCI bus o arm/166256 arm build fail in pmap.c o arm/162159 arm [panic] USB errors leading to panic on DockStar 9.0-RC o arm/161110 arm /usr/src/sys/arm/include/signal.h is bad o arm/161044 arm devel/icu does not build on arm o arm/158950 arm arm/sheevaplug fails fsx when mmap operations are enab o arm/155894 arm [patch] Enable at91 booting from SDHC (high capacity) p 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/153380 arm Panic / translation fault with wlan on ARM o arm/150581 arm [irq] Unknown error generates IRQ address decoding err o arm/134368 arm [new driver] [patch] nslu2_led driver for the LEDs on p arm/134338 arm [patch] Lock GPIO accesses on ixp425 27 problems total. From owner-freebsd-arm@FreeBSD.ORG Tue Jul 16 19:25:31 2013 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 39E8FAC8 for ; Tue, 16 Jul 2013 19:25:31 +0000 (UTC) (envelope-from andrew@fubar.geek.nz) Received: from nibbler.fubar.geek.nz (nibbler.fubar.geek.nz [199.48.134.198]) by mx1.freebsd.org (Postfix) with ESMTP id 22BE4C93 for ; Tue, 16 Jul 2013 19:25:30 +0000 (UTC) Received: from bender.Home (97e5e46b.skybroadband.com [151.229.228.107]) by nibbler.fubar.geek.nz (Postfix) with ESMTPSA id 30DE15E200 for ; Tue, 16 Jul 2013 19:25:23 +0000 (UTC) Date: Tue, 16 Jul 2013 20:25:16 +0100 From: Andrew Turner To: freebsd-arm@freebsd.org Subject: HEADS UP: The default ABI has changed Message-ID: <20130716202516.10a67fec@bender.Home> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.14 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, 16 Jul 2013 19:25:31 -0000 As of r253396 the default ABI on FreeBSD/ARM is the ARM EABI. If you run FreeBSD HEAD on an ARM CPU this will apply to you. If you are currently using the ARM EABI nothing should change for you other than you no longer need to set WITH_ARM_EABI as it is the default. If you are not sure what ABI you are running it is most likely the OABI. People currently running OABI have two options: 1. Stay on OABI by setting WITHOUT_ARM_EABI in make.conf, src.conf or on the command line. This option will be removed sometime in the future. 2. Move to ARM EABI by following the instructions below. By changing to EABI you will need to reinstall everything. This includes your kernel, world and ports/packages (i.e. everything). This is because the ABIs are incompatible with each other. Also not that an EABI kernel is unable to run OABI binaries and vice versa. The suggested way to upgrade to the ARM EABI is to rebuild your kernel and world with a second build machine then upgrade all ports and packages. Building and installing an ARM EABI kernel and world on an OABI system is not guaranteed to work, and it is almost certain to fail. Advantages of ARM EABI: - The main advantage is we are now more compatible with third party software that relies on the ABI. - Compatible with future toolchains. The OABI will likely get less testing as less people use it outside of FreeBSD. - Improved structure alignment rules. - Allow future work to enable Thumb-2 by updating the syscall interface. - Allow future work to enable the hard float variant of the ARM EABI. This will provide a performance improvement for code using floating point operations. There is a known issue with pkg where it will detect the wrong ABI. This is fixed upstream and will be available soon. Andrew From owner-freebsd-arm@FreeBSD.ORG Wed Jul 17 07:15:28 2013 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 34C433FB for ; Wed, 17 Jul 2013 07:15:28 +0000 (UTC) (envelope-from alie@afflemedialab.com) Received: from mail-qa0-f45.google.com (mail-qa0-f45.google.com [209.85.216.45]) by mx1.freebsd.org (Postfix) with ESMTP id EFD8BA11 for ; Wed, 17 Jul 2013 07:15:27 +0000 (UTC) Received: by mail-qa0-f45.google.com with SMTP id ci6so2786556qab.4 for ; Wed, 17 Jul 2013 00:15:21 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:x-gm-message-state; bh=t3rkrKT+XORQK3sIdr+IYGvJxy+v3Fk4CQgnXJXfT5g=; b=AqTO9fCrVocvrBB7PkTeq5gKUkqqHqa36dwvlWCKZlaN73s8xQEnMd0ly2jW6oRuO4 9BuOGSMrQrppnugTxMUcyS3asK9KN+spEocY8d/G7kqCfGTxxMANp2+iDI3nhVxXAfoW +ruoH8q9XBtqs1zyaqYYtcRPdxaQ6FMQt9ThpDa7rISzs1CUjnpJngF1DX0WkBO0Vbm2 sBo6JZ9lp6V8opZO3gqcKbw9du0RrpYpXzmvsQ701f7jVOFpkjgalvsWQK4S377gRd0u O41A7mPt59TXlx2+R/egB3chlUJNkJTeEHjrWvPlkUpKiL4r0dWEWwxt+YcMdRiOxUl1 sfUQ== MIME-Version: 1.0 X-Received: by 10.224.36.143 with SMTP id t15mr7715971qad.60.1374045321311; Wed, 17 Jul 2013 00:15:21 -0700 (PDT) Received: by 10.49.84.168 with HTTP; Wed, 17 Jul 2013 00:15:21 -0700 (PDT) In-Reply-To: <20130716202516.10a67fec@bender.Home> References: <20130716202516.10a67fec@bender.Home> Date: Wed, 17 Jul 2013 15:15:21 +0800 Message-ID: Subject: Re: HEADS UP: The default ABI has changed From: Alie Tan To: Andrew Turner X-Gm-Message-State: ALoCoQmvM5a7F1R9q+Oj+qF1o6V3LAaDizPpnSCq81M9XQNGQx/BX066gjLeUOUsA7yBKnxfzYxQ Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: "freebsd-arm@freebsd.org" X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.14 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, 17 Jul 2013 07:15:28 -0000 Hi, Somehow i am getting error while compiling the latest code: "Makefile", line 233: check your date/time: Wed Jul 17 15:14:02 SGT 2013 Any idea? is this related with the switch? Regards, Alie T On Wed, Jul 17, 2013 at 3:25 AM, Andrew Turner wrote: > As of r253396 the default ABI on FreeBSD/ARM is the ARM EABI. If you > run FreeBSD HEAD on an ARM CPU this will apply to you. > > If you are currently using the ARM EABI nothing should change for you > other than you no longer need to set WITH_ARM_EABI as it is the default. > > If you are not sure what ABI you are running it is most likely the OABI. > > People currently running OABI have two options: > 1. Stay on OABI by setting WITHOUT_ARM_EABI in make.conf, src.conf or > on the command line. This option will be removed sometime in the > future. > 2. Move to ARM EABI by following the instructions below. > > By changing to EABI you will need to reinstall everything. This > includes your kernel, world and ports/packages (i.e. everything). This > is because the ABIs are incompatible with each other. Also not that an > EABI kernel is unable to run OABI binaries and vice versa. > > The suggested way to upgrade to the ARM EABI is to rebuild your kernel > and world with a second build machine then upgrade all ports and > packages. Building and installing an ARM EABI kernel and world on an > OABI system is not guaranteed to work, and it is almost certain to fail. > > Advantages of ARM EABI: > - The main advantage is we are now more compatible with third party > software that relies on the ABI. > - Compatible with future toolchains. The OABI will likely get less > testing as less people use it outside of FreeBSD. > - Improved structure alignment rules. > - Allow future work to enable Thumb-2 by updating the syscall > interface. > - Allow future work to enable the hard float variant of the ARM EABI. > This will provide a performance improvement for code using floating > point operations. > > There is a known issue with pkg where it will detect the wrong ABI. > This is fixed upstream and will be available soon. > > Andrew > _______________________________________________ > 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 Wed Jul 17 12:12:24 2013 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 8B5C3A40 for ; Wed, 17 Jul 2013 12:12:24 +0000 (UTC) (envelope-from alie@afflemedialab.com) Received: from mail-qc0-f169.google.com (mail-qc0-f169.google.com [209.85.216.169]) by mx1.freebsd.org (Postfix) with ESMTP id 5142CC47 for ; Wed, 17 Jul 2013 12:12:24 +0000 (UTC) Received: by mail-qc0-f169.google.com with SMTP id c10so1039044qcz.0 for ; Wed, 17 Jul 2013 05:12:23 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:x-gm-message-state; bh=xZeaK7Po8hmWxTqhEuw0hbhVhBXz6DEZk5mod/mXdBs=; b=SwYS5OUiQjBK6A7ABVW6zLymQFZNxU1J5bpibS/75D7uOyyM0LAEuZwuc+aNzrqZEj 3jcDfW+knr5EsuwcHGXXJSXl/drGD4v5bTQGtHxNJHNjfZeQTflWaMcDS5O5Ha7G5mqS gSuVAL6Xv2LbDktm5ZZedveCxJFqVZmMDV6jsmcyoJBNNEeRiQyRIF88eqO2EwUT+zqn u+e5k6lah8CRDZsFf7mC7yWuRIoeRYMIaEFAk6qlW9kQGnWeNO8LmOs8iyHgy/1bUDot er8XEiis4zuGUrGyK1mxSgScgbz0q1/wleRyTb/pDFUuFI/LQhYxXwsz2nos7yEVnijF hjIA== MIME-Version: 1.0 X-Received: by 10.224.136.193 with SMTP id s1mr8821125qat.15.1374063143454; Wed, 17 Jul 2013 05:12:23 -0700 (PDT) Received: by 10.49.84.168 with HTTP; Wed, 17 Jul 2013 05:12:23 -0700 (PDT) In-Reply-To: References: <20130716202516.10a67fec@bender.Home> Date: Wed, 17 Jul 2013 20:12:23 +0800 Message-ID: Subject: Re: HEADS UP: The default ABI has changed From: Alie Tan To: Andrew Turner X-Gm-Message-State: ALoCoQkK6iUmmZYd8fow2JtBHRB9/Bz77ptfcYY5Til3ineyyjmxxEjrPC46WiYJNljPxg+NRL/f Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: "freebsd-arm@freebsd.org" X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.14 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, 17 Jul 2013 12:12:24 -0000 Sorry my bad, its due to my clock skewed On Wed, Jul 17, 2013 at 3:15 PM, Alie Tan wrote: > Hi, > > Somehow i am getting error while compiling the latest code: > "Makefile", line 233: check your date/time: Wed Jul 17 15:14:02 SGT 2013 > > Any idea? is this related with the switch? > > Regards, > Alie T > > > On Wed, Jul 17, 2013 at 3:25 AM, Andrew Turner wrote: > >> As of r253396 the default ABI on FreeBSD/ARM is the ARM EABI. If you >> run FreeBSD HEAD on an ARM CPU this will apply to you. >> >> If you are currently using the ARM EABI nothing should change for you >> other than you no longer need to set WITH_ARM_EABI as it is the default. >> >> If you are not sure what ABI you are running it is most likely the OABI. >> >> People currently running OABI have two options: >> 1. Stay on OABI by setting WITHOUT_ARM_EABI in make.conf, src.conf or >> on the command line. This option will be removed sometime in the >> future. >> 2. Move to ARM EABI by following the instructions below. >> >> By changing to EABI you will need to reinstall everything. This >> includes your kernel, world and ports/packages (i.e. everything). This >> is because the ABIs are incompatible with each other. Also not that an >> EABI kernel is unable to run OABI binaries and vice versa. >> >> The suggested way to upgrade to the ARM EABI is to rebuild your kernel >> and world with a second build machine then upgrade all ports and >> packages. Building and installing an ARM EABI kernel and world on an >> OABI system is not guaranteed to work, and it is almost certain to fail. >> >> Advantages of ARM EABI: >> - The main advantage is we are now more compatible with third party >> software that relies on the ABI. >> - Compatible with future toolchains. The OABI will likely get less >> testing as less people use it outside of FreeBSD. >> - Improved structure alignment rules. >> - Allow future work to enable Thumb-2 by updating the syscall >> interface. >> - Allow future work to enable the hard float variant of the ARM EABI. >> This will provide a performance improvement for code using floating >> point operations. >> >> There is a known issue with pkg where it will detect the wrong ABI. >> This is fixed upstream and will be available soon. >> >> Andrew >> _______________________________________________ >> 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 Wed Jul 17 13:38:36 2013 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 92D45DCF for ; Wed, 17 Jul 2013 13:38:36 +0000 (UTC) (envelope-from pettefar@gmail.com) Received: from mail-la0-x233.google.com (mail-la0-x233.google.com [IPv6:2a00:1450:4010:c03::233]) by mx1.freebsd.org (Postfix) with ESMTP id 1EA45FD5 for ; Wed, 17 Jul 2013 13:38:35 +0000 (UTC) Received: by mail-la0-f51.google.com with SMTP id fq12so1494884lab.24 for ; Wed, 17 Jul 2013 06:38:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:content-type; bh=5JlxIOs2iHJ96BLC2eVY0YyQpe4vpeUFrX0OTV0BryM=; b=d+hyfarNTEsHU9+fOTVmdVjYg3PHSScjOnPU54Sl7py9rk2wHkaRWut5HtuydUsm0q EBHOHOjJRzaCQZBzoehuUM4tz57d7RjnqJsX0gkeOUjEvjPevU2WypJGoLNC0mkYcIij tynioF+oovN4VdEQO+r9ocW9v1lH4sHh8O7vy3s1ukAv2HltSq1YDbuxgX0XjHQnrZWT OMNO2MWixPcAKLWsq7B5v3/x/uv6oFKI/VDQf8zdc1WtTHuwwQ+/Q0F7tsBCa2RyGBr6 X7sKVeog4S75fhUq1ymBpJJW56jQ/4vIcZbIN5Y7elFmXvUoXaukvDaOaUWcxvSfkMKO JdTQ== X-Received: by 10.152.43.82 with SMTP id u18mr2915479lal.86.1374068314997; Wed, 17 Jul 2013 06:38:34 -0700 (PDT) MIME-Version: 1.0 Sender: pettefar@gmail.com Received: by 10.112.211.169 with HTTP; Wed, 17 Jul 2013 06:38:04 -0700 (PDT) In-Reply-To: References: From: Nick Pettefar Date: Wed, 17 Jul 2013 14:38:04 +0100 X-Google-Sender-Auth: 4rSD77Of7DPXWE-5fOXG_-p9_-A Message-ID: Subject: Re: freebsd-arm Digest, Vol 379, Issue 2 To: freebsd-arm@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Nick@Pettefar.com List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Jul 2013 13:38:36 -0000 What is EABI/OABI/ABI? Does this have anything to with my inability to get anything to compile on FreeBSD on my Raspberry Pi? If so, where are the change instructions? Regards, Nick Pettefar root@bsdpi:~ # uname -a FreeBSD bsdpi 10.0-CURRENT FreeBSD 10.0-CURRENT #0 r251172M: Sat Jun 1 04:12:21 SGT 2013 root@fbsd10:/root/crochet/work/obj/arm.armv6/usr/src/sys/RPI-B arm Date: Tue, 16 Jul 2013 20:25:16 +0100 > From: Andrew Turner > Subject: HEADS UP: The default ABI has changed > > As of r253396 the default ABI on FreeBSD/ARM is the ARM EABI. If you > run FreeBSD HEAD on an ARM CPU this will apply to you. > From owner-freebsd-arm@FreeBSD.ORG Wed Jul 17 15:49:42 2013 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id D0476DCA for ; Wed, 17 Jul 2013 15:49:42 +0000 (UTC) (envelope-from tim@kientzle.com) Received: from monday.kientzle.com (99-115-135-74.uvs.sntcca.sbcglobal.net [99.115.135.74]) by mx1.freebsd.org (Postfix) with ESMTP id B0E559FB for ; Wed, 17 Jul 2013 15:49:42 +0000 (UTC) Received: (from root@localhost) by monday.kientzle.com (8.14.4/8.14.4) id r6HFnZ6g006065; Wed, 17 Jul 2013 15:49:35 GMT (envelope-from tim@kientzle.com) Received: from [192.168.2.123] (CiscoE3000 [192.168.1.65]) by kientzle.com with SMTP id qffxt9svzdjge99c7a24jyckde; Wed, 17 Jul 2013 15:49:35 +0000 (UTC) (envelope-from tim@kientzle.com) Subject: What is EABI? Mime-Version: 1.0 (Apple Message framework v1283) Content-Type: text/plain; charset=us-ascii From: Tim Kientzle In-Reply-To: Date: Wed, 17 Jul 2013 08:49:34 -0700 Content-Transfer-Encoding: 7bit Message-Id: References: To: Nick@Pettefar.com X-Mailer: Apple Mail (2.1283) Cc: freebsd-arm@freebsd.org X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.14 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, 17 Jul 2013 15:49:42 -0000 At the risk of oversimplifying, the "ABI" refers to how code moves data between functions, including to/from system calls and library routines. This includes things like how structures and arrays are laid out in memory. The new EABI does this in a slightly more efficient way that's better-supported by current compilers and development tools. It may or may not be related to your compile issues; the new EABI support does involve compiler changes. Changing essentially boils down to upgrading your FreeBSD source tree and building an entirely new image, then rebuilding all of your software. Tim On Jul 17, 2013, at 6:38 AM, Nick Pettefar wrote: > What is EABI/OABI/ABI? Does this have anything to with my inability to get > anything to compile on FreeBSD on my Raspberry Pi? If so, where are the > change instructions? > > Regards, > > Nick Pettefar > > root@bsdpi:~ # uname -a > FreeBSD bsdpi 10.0-CURRENT FreeBSD 10.0-CURRENT #0 r251172M: Sat Jun 1 > 04:12:21 SGT 2013 > root@fbsd10:/root/crochet/work/obj/arm.armv6/usr/src/sys/RPI-B > arm > > Date: Tue, 16 Jul 2013 20:25:16 +0100 >> From: Andrew Turner >> > Subject: HEADS UP: The default ABI has changed >> > >> As of r253396 the default ABI on FreeBSD/ARM is the ARM EABI. If you >> run FreeBSD HEAD on an ARM CPU this will apply to you. >> > _______________________________________________ > 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 Wed Jul 17 16:11:45 2013 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id EDB7743B for ; Wed, 17 Jul 2013 16:11:45 +0000 (UTC) (envelope-from pettefar@gmail.com) Received: from mail-lb0-x22d.google.com (mail-lb0-x22d.google.com [IPv6:2a00:1450:4010:c04::22d]) by mx1.freebsd.org (Postfix) with ESMTP id 7AB76B1C for ; Wed, 17 Jul 2013 16:11:45 +0000 (UTC) Received: by mail-lb0-f173.google.com with SMTP id v1so1707952lbd.4 for ; Wed, 17 Jul 2013 09:11:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:sender:from:date:x-google-sender-auth :message-id:subject:to:content-type; bh=R4NySRscTEGiYJswhveyNBhUUdjCGgSwc0GnU8a7okI=; b=Bq0N8h74emk/tOstTkaZ2/rnyT5wVqD52Xi9mGqAcz8fkq3gN6Gz/7EZ0qB4EKk95q MBM24NFVvv1fBUVUmO4McjTfIsOh1gE4GXIh+VOZN63bcTWTNmOczXBZmXOH0HU5+k4L T6q6sI6QQT6oE/jXokZ9mVAIkZ1vzArNmTJhdkoBNVQAuQt3bj+scd8TW7SUbbxl7Jhd Au3oK1PCO0hzA0MCYUNqv3zYaHAxaRMW3CbxPo6eBfBSC3U3fILmYvNJBTT+bFlUkJLQ JZq8HnIb0oTh0Lq7FcsuMWHJtDwH+OZbMY3DTnweqWf19HZSBnCGYKafUfVG+TENP1rE eKDA== X-Received: by 10.112.146.33 with SMTP id sz1mr3618921lbb.47.1374077504321; Wed, 17 Jul 2013 09:11:44 -0700 (PDT) MIME-Version: 1.0 Sender: pettefar@gmail.com Received: by 10.112.211.169 with HTTP; Wed, 17 Jul 2013 09:11:14 -0700 (PDT) From: Nick Pettefar Date: Wed, 17 Jul 2013 17:11:14 +0100 X-Google-Sender-Auth: 1anKZ6JRbiD2SmlZtmFcD7ZHdSs Message-ID: Subject: freebsd-update.conf details for RPi To: freebsd-arm@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Nick@Pettefar.com List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Jul 2013 16:11:46 -0000 Does anyone know what I need to put into the /etc/freebsd-update.conf file to get freebsd-update to work with my Raspberry Pi please? FreeBSD bsdpi 10.0-CURRENT FreeBSD 10.0-CURRENT #0 r251172M: Sat Jun 1 04:12:21 SGT 2013 root@fbsd10:/root/crochet/work/obj/arm.armv6/usr/src/sys/RPI-B arm root@bsdpi:~ # freebsd-update fetch Looking up update.FreeBSD.org mirrors... 4 mirrors found. Fetching public key from update2.freebsd.org... failed. Fetching public key from update4.freebsd.org... failed. Fetching public key from update5.freebsd.org... failed. Fetching public key from update3.freebsd.org... failed. No mirrors remaining, giving up. Regards, Nick Pettefar From owner-freebsd-arm@FreeBSD.ORG Wed Jul 17 16:42:48 2013 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 3F222D05 for ; Wed, 17 Jul 2013 16:42:48 +0000 (UTC) (envelope-from paul@gromit.dlib.vt.edu) Received: from lennier.cc.vt.edu (lennier.cc.vt.edu [198.82.162.213]) by mx1.freebsd.org (Postfix) with ESMTP id F20A7CB2 for ; Wed, 17 Jul 2013 16:42:47 +0000 (UTC) Received: from steiner.cc.vt.edu (steiner.cc.vt.edu [198.82.163.51]) by lennier.cc.vt.edu (8.13.8/8.13.8) with ESMTP id r6HGfcrn028911; Wed, 17 Jul 2013 12:42:10 -0400 Received: from auth3.smtp.vt.edu (auth3.smtp.vt.edu [198.82.161.152]) by steiner.cc.vt.edu (MOS 4.3.3-GA) with ESMTP id YGQ92717; Wed, 17 Jul 2013 12:42:09 -0400 X-Mirapoint-Received-SPF: 198.82.161.152 auth3.smtp.vt.edu 0 none X-Mirapoint-Received-SPF: 198.82.161.152 auth3.smtp.vt.edu 0 none Received: from pmather.tower.lib.vt.edu (pmather.tower.lib.vt.edu [128.173.51.28]) (authenticated bits=0) by auth3.smtp.vt.edu (8.13.8/8.13.8) with ESMTP id r6HGg9UV016927 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Wed, 17 Jul 2013 12:42:09 -0400 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 6.5 \(1508\)) Subject: Re: freebsd-update.conf details for RPi From: Paul Mather In-Reply-To: Date: Wed, 17 Jul 2013 12:42:09 -0400 Content-Transfer-Encoding: quoted-printable Message-Id: References: To: Nick@Pettefar.com X-Mailer: Apple Mail (2.1508) Cc: freebsd-arm@freebsd.org X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.14 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, 17 Jul 2013 16:42:48 -0000 On Jul 17, 2013, at 12:11 PM, Nick Pettefar wrote: > Does anyone know what I need to put into the /etc/freebsd-update.conf = file > to get freebsd-update to work with my Raspberry Pi please? >=20 > FreeBSD bsdpi 10.0-CURRENT FreeBSD 10.0-CURRENT #0 r251172M: Sat Jun = 1 > 04:12:21 SGT 2013 > root@fbsd10:/root/crochet/work/obj/arm.armv6/usr/src/sys/RPI-B > arm >=20 > root@bsdpi:~ # freebsd-update fetch > Looking up update.FreeBSD.org mirrors... 4 mirrors found. > Fetching public key from update2.freebsd.org... failed. > Fetching public key from update4.freebsd.org... failed. > Fetching public key from update5.freebsd.org... failed. > Fetching public key from update3.freebsd.org... failed. > No mirrors remaining, giving up. As I understand it, freebsd-update only provides updates for -RELEASEs, = and, as far as I know, there haven't been any official -RELEASEs for = FreeBSD/arm. (I checked the 9.1-RELEASE announcement and it was only = available for the "amd64, i386, powerpc64, and sparc64 architectures." = Needless to say, there hasn't been a 10-RELEASE yet, and I don't know if = freebsd-update will do downgrades.) Remember, -CURRENT is bleeding edge, and so mechanisms like = freebsd-update aren't designed to cope with its development cycle. Cheers, Paul.= From owner-freebsd-arm@FreeBSD.ORG Wed Jul 17 22:28:10 2013 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 8CFE3880 for ; Wed, 17 Jul 2013 22:28:10 +0000 (UTC) (envelope-from pettefar@gmail.com) Received: from mail-wi0-x231.google.com (mail-wi0-x231.google.com [IPv6:2a00:1450:400c:c05::231]) by mx1.freebsd.org (Postfix) with ESMTP id 2563CFA2 for ; Wed, 17 Jul 2013 22:28:09 +0000 (UTC) Received: by mail-wi0-f177.google.com with SMTP id ey16so2545065wid.10 for ; Wed, 17 Jul 2013 15:28:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:content-type:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; bh=bTML7IaJchunQ760ELKFcJ+81GyO+MYNC0DbEjM26pA=; b=ra+bsXXJkpo/3/st1tqpd9M+oIr0T7rRTqLW9/RhWKP2qvwOizkFrsmUk16iWRIGkq UknSKBGXoqCRLHbsALUssa5owHWWgIL28kc2TSnA2HGkPEngbnoIgiSlplLR2fnI8W9q uqhifXjcQEQyxskrNZgWH49Ind1EcK+cyHInJRU8KIyDhGLWp/iZG8NegeYQkb7PCbP5 HAfUTrTDscPUbwXnDtNENnWrRl5Cx5GwwHmTmW/E7Gs3JUxp0AGiNEpWvACrs9Z5qBik gyWMbNFzijm0sSBoZDS0LTmO+5wR2eNPVfm4OFC0o/p3Vc1WAHEWFhKgR0PgC6ZzNZ/q bXSQ== X-Received: by 10.194.243.226 with SMTP id xb2mr6557647wjc.67.1374100089355; Wed, 17 Jul 2013 15:28:09 -0700 (PDT) Received: from [10.10.19.31] ([86.43.74.198]) by mx.google.com with ESMTPSA id w4sm12674934wia.9.2013.07.17.15.28.07 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 17 Jul 2013 15:28:08 -0700 (PDT) Sender: Nick Pettefar Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 6.5 \(1508\)) Subject: Re: freebsd-update.conf details for RPi From: Nick In-Reply-To: Date: Wed, 17 Jul 2013 23:28:07 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: References: To: Paul Mather X-Mailer: Apple Mail (2.1508) Cc: freebsd-arm@freebsd.org X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.14 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, 17 Jul 2013 22:28:10 -0000 OK, understood. Is there any other way of getting updates? The lady who supplied this = version doesn't seem to be doing it any more. = http://snakeorladder.com/FreeBSD-armv6-RPI-B.img.gz Regards, Nick On 17 Jul 2013, at 17:42, Paul Mather wrote: > On Jul 17, 2013, at 12:11 PM, Nick Pettefar wrote: >=20 >> Does anyone know what I need to put into the /etc/freebsd-update.conf = file >> to get freebsd-update to work with my Raspberry Pi please? >>=20 >> FreeBSD bsdpi 10.0-CURRENT FreeBSD 10.0-CURRENT #0 r251172M: Sat Jun = 1 >> 04:12:21 SGT 2013 >> root@fbsd10:/root/crochet/work/obj/arm.armv6/usr/src/sys/RPI-B >> arm >>=20 >> root@bsdpi:~ # freebsd-update fetch >> Looking up update.FreeBSD.org mirrors... 4 mirrors found. >> Fetching public key from update2.freebsd.org... failed. >> Fetching public key from update4.freebsd.org... failed. >> Fetching public key from update5.freebsd.org... failed. >> Fetching public key from update3.freebsd.org... failed. >> No mirrors remaining, giving up. >=20 >=20 > As I understand it, freebsd-update only provides updates for = -RELEASEs, and, as far as I know, there haven't been any official = -RELEASEs for FreeBSD/arm. (I checked the 9.1-RELEASE announcement and = it was only available for the "amd64, i386, powerpc64, and sparc64 = architectures." Needless to say, there hasn't been a 10-RELEASE yet, = and I don't know if freebsd-update will do downgrades.) >=20 > Remember, -CURRENT is bleeding edge, and so mechanisms like = freebsd-update aren't designed to cope with its development cycle. >=20 > Cheers, >=20 > Paul. From owner-freebsd-arm@FreeBSD.ORG Thu Jul 18 00:16:45 2013 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id F0C807B5 for ; Thu, 18 Jul 2013 00:16:45 +0000 (UTC) (envelope-from werner@thieprojects.ch) Received: from newton.metanet.ch (newton2.metanet.ch [80.74.158.131]) by mx1.freebsd.org (Postfix) with ESMTP id 60D766A8 for ; Thu, 18 Jul 2013 00:16:44 +0000 (UTC) Received: (qmail 3653 invoked from network); 18 Jul 2013 02:10:01 +0200 Received: from udp004035uds.hawaiiantel.net (HELO agora.local) (72.234.77.213) by newton.metanet.ch with ESMTPSA (DHE-RSA-AES256-SHA encrypted, authenticated); 18 Jul 2013 02:10:00 +0200 Message-ID: <51E73254.5030106@thieprojects.ch> Date: Wed, 17 Jul 2013 14:09:56 -1000 From: Werner Thie User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:17.0) Gecko/20130620 Thunderbird/17.0.7 MIME-Version: 1.0 To: Nick Subject: Re: freebsd-update.conf details for RPi References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-arm@freebsd.org X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.14 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, 18 Jul 2013 00:16:46 -0000 Hi Nick I usually fetch my sources via SVN, the preferred way as per http://www.freebsd.org/doc/handbook/svn.html Checkout the sources like cd /usr/local svn checkout http://svn.freebsd.org/base/head src cd src svn info in the /usr/local/src directory will give you Working Copy Root Path: /usr/local/src URL: http://svn.freebsd.org/base/head Repository Root: http://svn.freebsd.org/base Repository UUID: ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f Revision: 253440 Node Kind: directory Schedule: normal Last Changed Author: grehan Last Changed Rev: 253440 Last Changed Date: 2013-07-18 01:37:33 +0200 (Thu, 18 Jul 2013) If you're doing it on the RPi itself (not cross compiling) the sources would go where the handbook says, namely /usr/src HTH, Werner On 7/17/13 12:28 PM, Nick wrote: > OK, understood. > > Is there any other way of getting updates? The lady who supplied this version doesn't seem to be doing it any more. http://snakeorladder.com/FreeBSD-armv6-RPI-B.img.gz > > Regards, > > Nick > > On 17 Jul 2013, at 17:42, Paul Mather wrote: > >> On Jul 17, 2013, at 12:11 PM, Nick Pettefar wrote: >> >>> Does anyone know what I need to put into the /etc/freebsd-update.conf file >>> to get freebsd-update to work with my Raspberry Pi please? >>> >>> FreeBSD bsdpi 10.0-CURRENT FreeBSD 10.0-CURRENT #0 r251172M: Sat Jun 1 >>> 04:12:21 SGT 2013 >>> root@fbsd10:/root/crochet/work/obj/arm.armv6/usr/src/sys/RPI-B >>> arm >>> >>> root@bsdpi:~ # freebsd-update fetch >>> Looking up update.FreeBSD.org mirrors... 4 mirrors found. >>> Fetching public key from update2.freebsd.org... failed. >>> Fetching public key from update4.freebsd.org... failed. >>> Fetching public key from update5.freebsd.org... failed. >>> Fetching public key from update3.freebsd.org... failed. >>> No mirrors remaining, giving up. >> >> >> As I understand it, freebsd-update only provides updates for -RELEASEs, and, as far as I know, there haven't been any official -RELEASEs for FreeBSD/arm. (I checked the 9.1-RELEASE announcement and it was only available for the "amd64, i386, powerpc64, and sparc64 architectures." Needless to say, there hasn't been a 10-RELEASE yet, and I don't know if freebsd-update will do downgrades.) >> >> Remember, -CURRENT is bleeding edge, and so mechanisms like freebsd-update aren't designed to cope with its development cycle. >> >> Cheers, >> >> Paul. > > _______________________________________________ > 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 Jul 18 08:07:34 2013 Return-Path: Delivered-To: arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 97D9737B; Thu, 18 Jul 2013 08:07:34 +0000 (UTC) (envelope-from hps@bitfrost.no) Received: from mta.bitpro.no (mta.bitpro.no [92.42.64.202]) by mx1.freebsd.org (Postfix) with ESMTP id 76ACADBF; Thu, 18 Jul 2013 08:07:33 +0000 (UTC) Received: from mail.lockless.no (mail.lockless.no [46.29.221.38]) by mta.bitpro.no (Postfix) with ESMTP id 45A517A2C6; Thu, 18 Jul 2013 10:07:26 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by mail.lockless.no (Postfix) with ESMTP id D9A1E8EF082; Thu, 18 Jul 2013 10:07:28 +0200 (CEST) X-Virus-Scanned: by amavisd-new-2.6.4 (20090625) (Debian) at lockless.no Received: from mail.lockless.no ([127.0.0.1]) by localhost (mail.lockless.no [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id RNCI7c0eEZ6V; Thu, 18 Jul 2013 10:07:27 +0200 (CEST) Received: from laptop015.hselasky.homeunix.org (31.89-11-148.nextgentel.com [89.11.148.31]) by mail.lockless.no (Postfix) with ESMTPSA id EB13C8EF081; Thu, 18 Jul 2013 10:07:26 +0200 (CEST) Message-ID: <51E7A29B.6040701@bitfrost.no> Date: Thu, 18 Jul 2013 10:08:59 +0200 From: Hans Petter Selasky Organization: Bitfrost A/S User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130522 Thunderbird/17.0.6 MIME-Version: 1.0 To: Oleksandr Tymoshenko Subject: Re: Beaglebone USB driver (Mentor Graphics OTG) References: <51608AA4.2020804@bluezbox.com> <51611A7B.2010105@bitfrost.no> <0927BB4C-6917-408D-B102-AB98F72314B6@bluezbox.com> <51CBDFEA.7050203@bitfrost.no> <49E5BE45-208C-4AAD-980D-590F32D9B600@bluezbox.com> In-Reply-To: <49E5BE45-208C-4AAD-980D-590F32D9B600@bluezbox.com> Content-Type: multipart/mixed; boundary="------------070101070502010609080900" Cc: arm@freebsd.org, usb@freebsd.org X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.14 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, 18 Jul 2013 08:07:34 -0000 This is a multi-part message in MIME format. --------------070101070502010609080900 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hi Oleksandr, Got some time to review the code you committed to HEAD: 1) You need to distinguish between STALL and other errors. This is a bit important, because STALL is a PID and other errors can mean anything. See attached patch. 2) You should not use the NAKTO feature, because USB devices are allowed to NAK forever if they wish to. You should restart a USB transfer seamlessly after NAKTO or should use infinite NAKing. The USB stack has a timeout on the transfers, and will cancel when timeout happens. By feeding these error codes into the USB stack you risk loosing data on mouse/keyboard/modem devices! Upon cancel you need to use that trick I told you (included in the attached patch), else the double reset of the FIFO will crash! Could you clean this up and test a bit. I don't have hardware at hand to test at the moment. Thank you! --HPS --------------070101070502010609080900 Content-Type: text/x-patch; name="musb_check_for_stall.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="musb_check_for_stall.diff" diff --git a/sys/dev/usb/controller/musb_otg.c b/sys/dev/usb/controller/musb_otg.c index 5113d7a..bac8dd9 100644 --- a/sys/dev/usb/controller/musb_otg.c +++ b/sys/dev/usb/controller/musb_otg.c @@ -169,6 +169,9 @@ musbotg_channel_alloc(struct musbotg_softc *sc, struct musbotg_td *td) if (sc->sc_channel_mask & (1 << 0)) return (-1); sc->sc_channel_mask |= (1 << 0); + /* Clear previous status bits */ + MUSB2_WRITE_1(sc, MUSB2_REG_TXCSRL, 0); + /* Enable interrupts */ musbotg_ep_int_set(sc, ep, 1); return (0); } @@ -176,6 +179,9 @@ musbotg_channel_alloc(struct musbotg_softc *sc, struct musbotg_td *td) for (ch = 1; ch < MUSB2_EP_MAX; ch++) { if (!(sc->sc_channel_mask & (1 << ch))) { sc->sc_channel_mask |= (1 << ch); + /* Clear previous status bits */ + MUSB2_WRITE_1(sc, MUSB2_REG_TXCSRL, 0); + /* Enable interrupts */ musbotg_ep_int_set(sc, ch, 1); return (ch); } @@ -203,6 +209,19 @@ musbotg_channel_free(struct musbotg_softc *sc, struct musbotg_td *td) musbotg_ep_int_set(sc, td->channel, 0); sc->sc_channel_mask &= ~(1 << td->channel); + /* select endpoint */ + MUSB2_WRITE_1(sc, MUSB2_REG_EPINDEX, td->channel); + + /* clear NAK limit */ + MUSB2_WRITE_1(sc, MUSB2_REG_TXNAKLIMIT, 0); + + /* + * Set non-existing device address so that any NAK'ing only + * transfers get cancelled! Should wait 250us before using + * channel again. + */ + MUSB2_WRITE_1(sc, MUSB2_REG_TXFADDR(td->channel), MUSB2_RST_ADDR); + td->channel = -1; } @@ -518,13 +537,15 @@ musbotg_host_ctrl_setup_tx(struct musbotg_td *td) return (1); /* Failed */ - if (csr & (MUSB2_MASK_CSR0L_RXSTALL | - MUSB2_MASK_CSR0L_ERROR)) - { - /* Clear status bit */ - MUSB2_WRITE_1(sc, MUSB2_REG_TXCSRL, 0); + if (csr & MUSB2_MASK_CSR0L_RXSTALL) { DPRINTFN(1, "error bit set, csr=0x%02x\n", csr); - td->error = 1; + td->error_any = 1; + td->error_stall = 1; + return (0); /* complete */ + } else if (csr & MUSB2_MASK_CSR0L_ERROR) { + DPRINTFN(1, "error bit set, csr=0x%02x\n", csr); + td->error_any = 1; + return (0); /* complete */ } if (csr & MUSB2_MASK_CSR0L_NAKTIMO) { @@ -546,10 +567,10 @@ musbotg_host_ctrl_setup_tx(struct musbotg_td *td) csr &= ~MUSB2_MASK_CSR0L_NAKTIMO; MUSB2_WRITE_1(sc, MUSB2_REG_TXCSRL, csr); - td->error = 1; + td->error_any = 1; } - if (td->error) { + if (td->error_any) { musbotg_channel_free(sc, td); return (0); } @@ -636,7 +657,7 @@ musbotg_dev_ctrl_data_rx(struct musbotg_td *td) /* * USB Host Aborted the transfer. */ - td->error = 1; + td->error_any = 1; return (0); /* complete */ } if (!(csr & MUSB2_MASK_CSR0L_RXPKTRDY)) { @@ -653,14 +674,14 @@ musbotg_dev_ctrl_data_rx(struct musbotg_td *td) got_short = 1; } else { /* invalid USB packet */ - td->error = 1; + td->error_any = 1; return (0); /* we are complete */ } } /* verify the packet byte count */ if (count > td->remainder) { /* invalid USB packet */ - td->error = 1; + td->error_any = 1; return (0); /* we are complete */ } while (count > 0) { @@ -769,7 +790,7 @@ musbotg_dev_ctrl_data_tx(struct musbotg_td *td) * The current transfer was aborted * by the USB Host */ - td->error = 1; + td->error_any = 1; return (0); /* complete */ } if (csr & MUSB2_MASK_CSR0L_TXPKTRDY) { @@ -911,22 +932,19 @@ musbotg_host_ctrl_data_rx(struct musbotg_td *td) csr &= ~MUSB2_MASK_CSR0L_NAKTIMO; MUSB2_WRITE_1(sc, MUSB2_REG_TXCSRL, csr); - td->error = 1; + td->error_any = 1; XXX; } /* Failed */ - if (csr & (MUSB2_MASK_CSR0L_RXSTALL | - MUSB2_MASK_CSR0L_ERROR)) - { - /* Clear status bit */ - MUSB2_WRITE_1(sc, MUSB2_REG_TXCSRL, 0); + if (csr & MUSB2_MASK_CSR0L_RXSTALL) { DPRINTFN(1, "error bit set, csr=0x%02x\n", csr); - td->error = 1; - } - - if (td->error) { - musbotg_channel_free(sc, td); - return (0); /* we are complete */ + td->error_any = 1; + td->error_stall = 1; + return (0); /* complete */ + } else if (csr & MUSB2_MASK_CSR0L_ERROR) { + DPRINTFN(1, "error bit set, csr=0x%02x\n", csr); + td->error_any = 1; + return (0); /* complete */ } if (!(csr & MUSB2_MASK_CSR0L_RXPKTRDY)) @@ -943,7 +961,7 @@ musbotg_host_ctrl_data_rx(struct musbotg_td *td) got_short = 1; } else { /* invalid USB packet */ - td->error = 1; + td->error_any = 1; musbotg_channel_free(sc, td); return (0); /* we are complete */ } @@ -951,7 +969,7 @@ musbotg_host_ctrl_data_rx(struct musbotg_td *td) /* verify the packet byte count */ if (count > td->remainder) { /* invalid USB packet */ - td->error = 1; + td->error_any = 1; musbotg_channel_free(sc, td); return (0); /* we are complete */ } @@ -1064,11 +1082,16 @@ musbotg_host_ctrl_data_tx(struct musbotg_td *td) csr = MUSB2_READ_1(sc, MUSB2_REG_TXCSRL); DPRINTFN(4, "csr=0x%02x\n", csr); - if (csr & (MUSB2_MASK_CSR0L_RXSTALL | - MUSB2_MASK_CSR0L_ERROR)) { - /* clear status bits */ - MUSB2_WRITE_1(sc, MUSB2_REG_TXCSRL, 0); - td->error = 1; + /* Failed */ + if (csr & MUSB2_MASK_CSR0L_RXSTALL) { + DPRINTFN(1, "error bit set, csr=0x%02x\n", csr); + td->error_any = 1; + td->error_stall = 1; + return (0); /* complete */ + } else if (csr & MUSB2_MASK_CSR0L_ERROR) { + DPRINTFN(1, "error bit set, csr=0x%02x\n", csr); + td->error_any = 1; + return (0); /* complete */ } if (csr & MUSB2_MASK_CSR0L_NAKTIMO ) { @@ -1089,11 +1112,11 @@ musbotg_host_ctrl_data_tx(struct musbotg_td *td) csr &= ~MUSB2_MASK_CSR0L_NAKTIMO; MUSB2_WRITE_1(sc, MUSB2_REG_TXCSRL, csr); - td->error = 1; + td->error_any = 1; } - if (td->error) { + if (td->error_any) { musbotg_channel_free(sc, td); return (0); /* complete */ } @@ -1315,24 +1338,20 @@ musbotg_host_ctrl_status_rx(struct musbotg_td *td) csr &= ~MUSB2_MASK_CSR0L_NAKTIMO; MUSB2_WRITE_1(sc, MUSB2_REG_TXCSRL, csr); - td->error = 1; + td->error_any = 1; } /* Failed */ - if (csr & (MUSB2_MASK_CSR0L_RXSTALL | - MUSB2_MASK_CSR0L_ERROR)) - { - /* Clear status bit */ - MUSB2_WRITE_1(sc, MUSB2_REG_TXCSRL, 0); + if (csr & MUSB2_MASK_CSR0L_RXSTALL) { DPRINTFN(1, "error bit set, csr=0x%02x\n", csr); - td->error = 1; - } - - if (td->error) { - musbotg_channel_free(sc, td); - return (0); + td->error_any = 1; + td->error_stall = 1; + return (0); /* complete */ + } else if (csr & MUSB2_MASK_CSR0L_ERROR) { + DPRINTFN(1, "error bit set, csr=0x%02x\n", csr); + td->error_any = 1; + return (0); /* complete */ } - return (1); /* Not ready yet */ } @@ -1366,15 +1385,15 @@ musbotg_host_ctrl_status_tx(struct musbotg_td *td) return (1); /* Failed */ - if (csr & (MUSB2_MASK_CSR0L_RXSTALL | - MUSB2_MASK_CSR0L_ERROR)) - { - /* Clear status bit */ - MUSB2_WRITE_1(sc, MUSB2_REG_TXCSRL, 0); + if (csr & MUSB2_MASK_CSR0L_RXSTALL) { DPRINTFN(1, "error bit set, csr=0x%02x\n", csr); - td->error = 1; - musbotg_channel_free(sc, td); - return (0); /* complete */ + td->error_any = 1; + td->error_stall = 1; + return (0); /* complete */ + } else if (csr & MUSB2_MASK_CSR0L_ERROR) { + DPRINTFN(1, "error bit set, csr=0x%02x\n", csr); + td->error_any = 1; + return (0); /* complete */ } if (td->transaction_started) { @@ -1460,7 +1479,7 @@ repeat: got_short = 1; } else { /* invalid USB packet */ - td->error = 1; + td->error_any = 1; musbotg_channel_free(sc, td); return (0); /* we are complete */ } @@ -1468,7 +1487,7 @@ repeat: /* verify the packet byte count */ if (count > td->remainder) { /* invalid USB packet */ - td->error = 1; + td->error_any = 1; musbotg_channel_free(sc, td); return (0); /* we are complete */ } @@ -1766,22 +1785,19 @@ repeat: MUSB2_WRITE_1(sc, MUSB2_REG_RXCSRL, csr); } - td->error = 1; - } - - if (csr & MUSB2_MASK_CSRL_RXERROR) { - DPRINTFN(4, "RXERROR\n"); - td->error = 1; - } - - if (csr & MUSB2_MASK_CSRL_RXSTALL) { - DPRINTFN(4, "RXSTALL\n"); - td->error = 1; + td->error_any = 1; } - if (td->error) { - musbotg_channel_free(sc, td); - return (0); /* we are complete */ + /* Failed */ + if (csr & MUSB2_MASK_CSR0L_RXSTALL) { + DPRINTFN(1, "error bit set, csr=0x%02x\n", csr); + td->error_any = 1; + td->error_stall = 1; + return (0); /* complete */ + } else if (csr & MUSB2_MASK_CSR0L_ERROR) { + DPRINTFN(1, "error bit set, csr=0x%02x\n", csr); + td->error_any = 1; + return (0); /* complete */ } if (!(csr & MUSB2_MASK_CSRL_RXPKTRDY)) { @@ -1804,7 +1820,7 @@ repeat: got_short = 1; } else { /* invalid USB packet */ - td->error = 1; + td->error_any = 1; musbotg_channel_free(sc, td); return (0); /* we are complete */ } @@ -1813,7 +1829,7 @@ repeat: /* verify the packet byte count */ if (count > td->remainder) { /* invalid USB packet */ - td->error = 1; + td->error_any = 1; musbotg_channel_free(sc, td); return (0); /* we are complete */ } @@ -1933,7 +1949,7 @@ musbotg_host_data_tx(struct musbotg_td *td) MUSB2_MASK_CSRL_TXERROR)) { /* clear status bits */ MUSB2_WRITE_1(sc, MUSB2_REG_TXCSRL, 0); - td->error = 1; + td->error_any = 1; musbotg_channel_free(sc, td); return (0); /* complete */ } @@ -1956,7 +1972,7 @@ musbotg_host_data_tx(struct musbotg_td *td) csr &= ~MUSB2_MASK_CSRL_TXNAKTO; MUSB2_WRITE_1(sc, MUSB2_REG_TXCSRL, csr); - td->error = 1; + td->error_any = 1; musbotg_channel_free(sc, td); return (0); /* complete */ } @@ -2122,7 +2138,7 @@ musbotg_xfer_do_fifo(struct usb_xfer *xfer) if (((void *)td) == xfer->td_transfer_last) { goto done; } - if (td->error) { + if (td->error_any) { goto done; } else if (td->remainder > 0) { /* @@ -2350,7 +2366,8 @@ musbotg_setup_standard_chain_sub(struct musbotg_std_temp *temp) td->pc = temp->pc; td->offset = temp->offset; td->remainder = temp->len; - td->error = 0; + td->error_any = 0; + td->error_stall = 0; td->transaction_started = 0; td->did_stall = temp->did_stall; td->short_pkt = temp->short_pkt; @@ -2674,7 +2691,7 @@ musbotg_standard_done_sub(struct usb_xfer *xfer) { struct musbotg_td *td; uint32_t len; - uint8_t error; + usb_error_t error; DPRINTFN(8, "\n"); @@ -2691,15 +2708,16 @@ musbotg_standard_done_sub(struct usb_xfer *xfer) * the remainder from "frlengths[]": */ if (len > xfer->frlengths[xfer->aframes]) { - td->error = 1; + td->error_any = 1; } else { xfer->frlengths[xfer->aframes] -= len; } } /* Check for transfer error */ - if (td->error) { + if (td->error_any) { /* the transfer is finished */ - error = 1; + error = (td->error_stall ? + USB_ERR_STALLED : USB_ERR_IOERROR); td = NULL; break; } @@ -2731,8 +2749,7 @@ musbotg_standard_done_sub(struct usb_xfer *xfer) xfer->td_transfer_cache = td; - return (error ? - USB_ERR_STALLED : USB_ERR_NORMAL_COMPLETION); + return (error); } static void diff --git a/sys/dev/usb/controller/musb_otg.h b/sys/dev/usb/controller/musb_otg.h index 649cab8..b68ea21 100644 --- a/sys/dev/usb/controller/musb_otg.h +++ b/sys/dev/usb/controller/musb_otg.h @@ -32,7 +32,8 @@ #ifndef _MUSB2_OTG_H_ #define _MUSB2_OTG_H_ -#define MUSB2_MAX_DEVICES USB_MAX_DEVICES +#define MUSB2_RST_ADDR 127 +#define MUSB2_MAX_DEVICES MIN(USB_MAX_DEVICES, MUSB2_RST_ADDR) /* Common registers */ @@ -319,7 +320,8 @@ struct musbotg_td { uint8_t ep_no; uint8_t transfer_type; uint8_t max_packet; - uint8_t error:1; + uint8_t error_any:1; + uint8_t error_stall:1; uint8_t alt_next:1; uint8_t short_pkt:1; uint8_t support_multi_buffer:1; --------------070101070502010609080900-- From owner-freebsd-arm@FreeBSD.ORG Thu Jul 18 14:24:50 2013 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id EC599757 for ; Thu, 18 Jul 2013 14:24:50 +0000 (UTC) (envelope-from pettefar@gmail.com) Received: from mail-lb0-x235.google.com (mail-lb0-x235.google.com [IPv6:2a00:1450:4010:c04::235]) by mx1.freebsd.org (Postfix) with ESMTP id 76BF813B for ; Thu, 18 Jul 2013 14:24:50 +0000 (UTC) Received: by mail-lb0-f181.google.com with SMTP id w10so2599365lbi.12 for ; Thu, 18 Jul 2013 07:24:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:content-type; bh=yHxOyKZcQbcHsfQ/Vy26TSKQRVnI7Oben99VkpxneYo=; b=krngQoqwrFwm1KG3csBbj60MpJ+8k1xvKuNAmW0S7LR8dBopSVHFAN7WE6xqYY73Az Khrjq+44qf90XaiLiPQ4U9i96fdKuJjUgGZ39byCUH6ubCEsHidt5OcYmpCqrFfd/sxb qY/PfL11tPrgEBkSZk+RZFZuZM0+4RLUFAUEPo+u1sMQ409gjfSzbrJofcSWRppoRTli lmuVHxSYR8sZ3szpZ4A9Nec3Wk2AeiaO5N7nHFNrTmR3hZvC+/DZ1lE4qqG4vBfL/0Ex kxLfrnbBNKGY7uYNKBbkJfxhp0aBaH/3xzyWwG0jUm9w0xKX7v95H9+zFOaNxWQOKCge l/BA== X-Received: by 10.152.121.106 with SMTP id lj10mr5563319lab.27.1374157489045; Thu, 18 Jul 2013 07:24:49 -0700 (PDT) MIME-Version: 1.0 Sender: pettefar@gmail.com Received: by 10.112.211.169 with HTTP; Thu, 18 Jul 2013 07:24:19 -0700 (PDT) In-Reply-To: References: From: Nick Pettefar Date: Thu, 18 Jul 2013 15:24:19 +0100 X-Google-Sender-Auth: VotgTVLH2aCzzpYubmLzylbWEQo Message-ID: Subject: Re: freebsd-arm Digest, Vol 379, Issue 3 To: freebsd-arm@freebsd.org, werner@thieprojects.ch Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Nick@Pettefar.com List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Jul 2013 14:24:51 -0000 Date: Wed, 17 Jul 2013 14:09:56 -1000 > From: Werner Thie > To: Nick > Cc: freebsd-arm@freebsd.org > Subject: Re: freebsd-update.conf details for RPi > Message-ID: <51E73254.5030106@thieprojects.ch> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > Hi Nick > > I usually fetch my sources via SVN, the preferred way as per > > http://www.freebsd.org/doc/handbook/svn.html > Unfortunately: WHen trying to install subversion as per the instructions in the handbook, I get: c++: error: unable to execute command: Segmentation fault (core dumped) c++: error: clang frontend command failed due to signal (use -v to see invocation) FreeBSD clang version 3.3 (trunk 178860) 20130405 Target: armv6-unknown-freebsd10.0 Thread model: posix c++: note: diagnostic msg: PLEASE submit a bug report to http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and associated run script. c++: note: diagnostic msg: Error generating preprocessed source(s). *** Error code 1 Stop. make: stopped in /usr/ports/databases/db42/work/db-4.2.52/build_unix *** Error code 1 Stop. make: stopped in /usr/ports/databases/db42 *** Error code 1 Stop. make: stopped in /usr/ports/devel/apr1 *** Error code 1 Stop. make: stopped in /usr/ports/devel/apr1 *** Error code 1 Stop. make: stopped in /usr/ports/devel/subversion *** Error code 1 Stop. make: stopped in /usr/ports/devel/subversion root@bsdpi:/usr/ports/devel/subversion # Nick From owner-freebsd-arm@FreeBSD.ORG Thu Jul 18 18:15:26 2013 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 3FB501EF; Thu, 18 Jul 2013 18:15:26 +0000 (UTC) (envelope-from f0andrey@gmail.com) Received: from mail-wg0-x22d.google.com (mail-wg0-x22d.google.com [IPv6:2a00:1450:400c:c00::22d]) by mx1.freebsd.org (Postfix) with ESMTP id 855B5E43; Thu, 18 Jul 2013 18:15:25 +0000 (UTC) Received: by mail-wg0-f45.google.com with SMTP id j13so3251272wgh.24 for ; Thu, 18 Jul 2013 11:15:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=P2IcmhbE2UpTzRYy+R//RAasATE2Ma2M5mFYBiFER5g=; b=aKIIYKf0Y7sNNHB4Vm9/VJUgaZE2Gvvne1LIzhnLEGuOdVfJm88s+issyEezv1GDEh M9OwKq1Gmnl7RMeoFwypTTu6GwLNb3PSE3fK3YefcOl3VXRyM5W/PhMp7MwXjkfA/+Xj 2aHdBiGCv9/cYrWBNobxfd/88W/RN/nQ8ZD7jbISYamvvLsiYiF1J1c6EivNT46ULQTn rvC2kH5MjRxOC1S/bKjr+YZ+tIF8G+bUmkF8TJqu7i246eewXPb/B/q0PgF9i9e39IJL vR022rvf28Hh6JbYehy/Xb0XvastH6blP20rK1gfo6YaHjwANk+9X1Rvb7Htry+rgbAu 2gWA== MIME-Version: 1.0 X-Received: by 10.194.1.226 with SMTP id 2mr9520775wjp.91.1374171324671; Thu, 18 Jul 2013 11:15:24 -0700 (PDT) Received: by 10.194.240.132 with HTTP; Thu, 18 Jul 2013 11:15:24 -0700 (PDT) Date: Thu, 18 Jul 2013 22:15:24 +0400 Message-ID: Subject: RaspberryPi (ARMv6) after update EABI not build perl From: Andrey Fesenko To: "freebsd-arm@freebsd.org" , ports@freebsd.org, freebsd-current Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.14 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, 18 Jul 2013 18:15:26 -0000 Hi, anyone succeeded build perl for eabi? my rpi make results in an error equally for all perl version # define PERL_FPU_INIT (void)fpsetmask(0) ^ 1 warning generated. LD_LIBRARY_PATH=/usr/ports/lang/perl5.14/work/perl-5.14.4 cc -pthread -Wl,-E -fstack-protector -L/usr/local/lib -o miniperl gv.o toke.o perly.o pad.o regcomp.o dump.o util.o mg.o reentr.o mro.o keywords.o hv.o av.o run.o pp_hot.o sv.o pp.o scope.o pp_ctl.o pp_sys.o doop.o doio.o regexec.o utf8.o taint.o deb.o universal.o globals.o perlio.o perlapi.o numeric.o mathoms.o locale.o pp_pack.o pp_sort.o miniperlmain.o opmini.o perlmini.o -lm -lcrypt -lutil LD_LIBRARY_PATH=/usr/ports/lang/perl5.14/work/perl-5.14.4 ./miniperl -w -Ilib -MExporter -e '' || /usr/bin/make minitest longjmp botch. Abort trap (core dumped) LD_LIBRARY_PATH=/usr/ports/lang/perl5.14/work/perl-5.14.4 ./miniperl -Ilib make_patchnum.pl Updating 'git_version.h' and 'lib/Config_git.pl' longjmp botch. *** Signal 6 Stop. make: stopped in /usr/ports/lang/perl5.14/work/perl-5.14.4 *** Error code 1 (ignored) You may see some irrelevant test failures if you have been unable to build lib/Config.pm, or the Unicode data files. cd t && (rm -f perl; /bin/ln -s ../miniperl perl) && LD_LIBRARY_PATH=/usr/ports/lang/perl5.14/work/perl-5.14.4 ./perl TEST base/*.t comp/*.t cmd/*.t run/*.t io/*.t re/*.t op/*.t uni/*.t >> make failed for lang/perl5.14 ===>>> Aborting update ===>>> Killing background jobs Terminated ===>>> You can restart from the point of failure with this command line: portmaster lang/perl5.14 ===>>> Exiting From owner-freebsd-arm@FreeBSD.ORG Thu Jul 18 18:19:13 2013 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 9577754C; Thu, 18 Jul 2013 18:19:13 +0000 (UTC) (envelope-from f0andrey@gmail.com) Received: from mail-we0-x234.google.com (mail-we0-x234.google.com [IPv6:2a00:1450:400c:c03::234]) by mx1.freebsd.org (Postfix) with ESMTP id D7370E90; Thu, 18 Jul 2013 18:19:12 +0000 (UTC) Received: by mail-we0-f180.google.com with SMTP id w56so3198146wes.39 for ; Thu, 18 Jul 2013 11:19:12 -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 :content-type; bh=Di1H+ayjvnxDEhXSslso7LrmTG9xHz+dwJybjPwrxKM=; b=lTxyQ7lfFRK6+uPRis7W+fQV7pilYuNc9VzZ+XVt8+TZZWyYbspdVABozG7a6JebsK rdYP2K8+7UhNkEAL2Kk3YqAyzYSbk9yaRc9MijPJkIGcu1vDNP+5VWHVIOgHxmw6YVKC 22x8llu1NT3GoDue4bUjxaJMoGKyXOOnob+YCLdYLVMcmawQYjBxRhm1nYOGqTqzL3HF k/uTuwGWgF3gaGEJcvmG3wPMU7XDOJnp56Sy3VX5yw7ILve//SloIjFguahrccYSaj3N aOwwPyKNj0g5QNtSs4QdrD7x6ESSgPFsSe1ed+XmnbFRA72yvz79xFsxlu3MJKu2+/51 ExWg== MIME-Version: 1.0 X-Received: by 10.194.1.226 with SMTP id 2mr9532455wjp.91.1374171551995; Thu, 18 Jul 2013 11:19:11 -0700 (PDT) Received: by 10.194.240.132 with HTTP; Thu, 18 Jul 2013 11:19:11 -0700 (PDT) In-Reply-To: References: Date: Thu, 18 Jul 2013 22:19:11 +0400 Message-ID: Subject: Re: RaspberryPi (ARMv6) after update EABI not build perl From: Andrey Fesenko To: "freebsd-arm@freebsd.org" , ports@freebsd.org, freebsd-current Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.14 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, 18 Jul 2013 18:19:13 -0000 Sory, # uname -a FreeBSD raspberry-pi 10.0-CURRENT FreeBSD 10.0-CURRENT #0 r253414M: Wed Jul 17 16:12:39 MSK 2013 andrey@my_book.local:/home/andrey/obj/arm.armv6/usr/src/sys/RPI-B-IPv6 arm system compile clang On Thu, Jul 18, 2013 at 10:15 PM, Andrey Fesenko wrote: > Hi, anyone succeeded build perl for eabi? my rpi make results in an > error equally for all perl version > > # define PERL_FPU_INIT (void)fpsetmask(0) > ^ > 1 warning generated. > LD_LIBRARY_PATH=/usr/ports/lang/perl5.14/work/perl-5.14.4 cc -pthread > -Wl,-E -fstack-protector -L/usr/local/lib -o miniperl gv.o toke.o > perly.o pad.o regcomp.o dump.o util.o mg.o reentr.o mro.o keywords.o > hv.o av.o run.o pp_hot.o sv.o pp.o scope.o pp_ctl.o pp_sys.o doop.o > doio.o regexec.o utf8.o taint.o deb.o universal.o globals.o perlio.o > perlapi.o numeric.o mathoms.o locale.o pp_pack.o pp_sort.o > miniperlmain.o opmini.o perlmini.o -lm -lcrypt -lutil > LD_LIBRARY_PATH=/usr/ports/lang/perl5.14/work/perl-5.14.4 ./miniperl > -w -Ilib -MExporter -e '' || /usr/bin/make minitest > longjmp botch. > Abort trap (core dumped) > LD_LIBRARY_PATH=/usr/ports/lang/perl5.14/work/perl-5.14.4 ./miniperl > -Ilib make_patchnum.pl > Updating 'git_version.h' and 'lib/Config_git.pl' > longjmp botch. > *** Signal 6 > > Stop. > make: stopped in /usr/ports/lang/perl5.14/work/perl-5.14.4 > *** Error code 1 (ignored) > > You may see some irrelevant test failures if you have been unable > to build lib/Config.pm, or the Unicode data files. > > cd t && (rm -f perl; /bin/ln -s ../miniperl perl) && > LD_LIBRARY_PATH=/usr/ports/lang/perl5.14/work/perl-5.14.4 ./perl TEST > base/*.t comp/*.t cmd/*.t run/*.t io/*.t re/*.t op/*.t uni/*.t > t/base/cond.....................longjmp botch. > FAILED--no leader found > Failed a basic test (base/cond.t) -- cannot continue. > longjmp botch. > *** Signal 6 (ignored) > /bin/ln -s perldelta.pod pod/perl5144delta.pod > LD_LIBRARY_PATH=/usr/ports/lang/perl5.14/work/perl-5.14.4 ./miniperl > -Ilib autodoc.pl > longjmp botch. > *** Signal 6 > > Stop. > make: stopped in /usr/ports/lang/perl5.14/work/perl-5.14.4 > *** Error code 1 > > Stop. > make: stopped in /usr/ports/lang/perl5.14 > *** Error code 1 > > Stop. > make: stopped in /usr/ports/lang/perl5.14 > > ===>>> make failed for lang/perl5.14 > ===>>> Aborting update > > ===>>> Killing background jobs > Terminated > > ===>>> You can restart from the point of failure with this command line: > portmaster lang/perl5.14 > > ===>>> Exiting From owner-freebsd-arm@FreeBSD.ORG Thu Jul 18 22:43:51 2013 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 015D3AA for ; Thu, 18 Jul 2013 22:43:51 +0000 (UTC) (envelope-from sinkeyteck@yahoo.com) Received: from nm41.bullet.mail.ne1.yahoo.com (nm41.bullet.mail.ne1.yahoo.com [98.138.120.48]) by mx1.freebsd.org (Postfix) with ESMTP id B7704D60 for ; Thu, 18 Jul 2013 22:43:47 +0000 (UTC) Received: from [127.0.0.1] by nm41.bullet.mail.ne1.yahoo.com with NNFMP; 18 Jul 2013 22:43:40 -0000 Received: from [98.138.90.51] by nm41.bullet.mail.ne1.yahoo.com with NNFMP; 18 Jul 2013 22:40:30 -0000 Received: from [98.139.212.152] by tm4.bullet.mail.ne1.yahoo.com with NNFMP; 18 Jul 2013 22:40:30 -0000 Received: from [98.139.212.218] by tm9.bullet.mail.bf1.yahoo.com with NNFMP; 18 Jul 2013 22:40:30 -0000 Received: from [127.0.0.1] by omp1027.mail.bf1.yahoo.com with NNFMP; 18 Jul 2013 22:40:30 -0000 X-Yahoo-Newman-Property: ymail-4 X-Yahoo-Newman-Id: 85067.60925.bm@omp1027.mail.bf1.yahoo.com Received: (qmail 19794 invoked by uid 60001); 18 Jul 2013 22:40:30 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1374187230; bh=0D+myoHgYmeVUydzoVgLXyto4vVX7f890/mgq3uB1a4=; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-RocketYMMF:X-Mailer:Message-ID:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=jHgbKJ0ZVL34kaxdSlLuAVjncb/SsPlj7HwsHG4+lrqR3y8LIbqE688LvsyhiBWGRKCzJyEDxM7hiyqI6++cSShH2fWgchHknf1JPWzT1s+mCqdieF37JX1RGL3KOLiwU+8jpahekJfbGjBCriDs3K6MzIcL93id91AuGaEyus0= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-RocketYMMF:X-Mailer:Message-ID:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=Q4iJGKucT7Cc79gN0+0TAo0EK8dAFInqrHxOLlnZlpa5I7zpctVK4GGcpWvRxcghXDrEJB12yVxBd0WWxEEEOhz6tWi8IKbuNzEFEmRy7fjpwkVWRbb6uhSLB7MWNLhkwVrPj+DwNLDHIZv0BkB6juft+z7iNuNriGyA72cn9eU=; X-YMail-OSG: M_fuGTgVM1k57KNRObOzr3iyyMtU97PE_BLTZFU479QYvG7 mLZ.H7VmmInchbwZr3CV_dYw9Q9oLBAMymZ4zJbeo20HgEuDF437lUGtJ7hh yGgVR1Me4oSKBnWLt81HugCS_0cwEDsVfS1M4t_nyk_iJpaCDDVkUruL5Ym5 hyrkw1S8YLhSnaovdOutvtNo7CSYMuvd8fJF7SxQ.w8bjl3ZI1NWRhnfAwmd 0MTbwfcKN_Qkebw9y7ARmA0MeohBmDjwCcjveSDQzPLqvudxiAiqms2gEK09 A.V3_xju5EbbGDGcBPjKZaii_wa6DbvNJQvqwiAaflaAOB7wBHjiOnFGKt5x HZBIDdLy6OebXhVvn0KyByuzEKeAvDLXvmA_qEWnRb2rq4MGSe_JASHz8bDA cTM1sFTH9GpyaFjMsFabtoseuPxbe7rBfEZWidy8xnH9uAcw8bEqwfwJBIT7 wyhcb3AxdwiitUyq1ghFcOdhSd3gz7TzRUibgXi83i0WqzyH93QoYScoWTGa ceKYXCAqzWhYftLtmVNexjbF3pK1msi.O5xwp0s7Sy9ZhXZijgG2gNE6xpwF gBCMQYlIXBrH961AQi79EZFTPB7wk8miLgGntSmFq7_Mm.wQG5MBsNhTN1sv m8f2Dhw-- Received: from [118.200.92.164] by web142803.mail.bf1.yahoo.com via HTTP; Thu, 18 Jul 2013 15:40:29 PDT X-Rocket-MIMEInfo: 002.001, WW91IG1pZ2h0IGFscmVhZHkgaGF2ZSBzdm5saXRlIGluIHRoZSBiYXNlIHN5c3RlbSBpZiB5b3VyIGN1cnJlbnQgaXMgcmVjZW50LWlzaC4gT3RoZXJ3aXNlLCB0cnkgd29ya2Fyb3VuZCB0aGUgcHJvYmxlbSBieSBidWlsZGluZyBzdWJ2ZXJzaW9uIHdpdGhvdXQgZGI0Mi4gVHlwZSBtYWtlIGNvbmZpZyBhbmQgdW5zZWxlY3QuPGJyLz48YnIvPktpdAEwAQEBAQ-- X-RocketYMMF: sinkeyteck X-Mailer: YahooMailIosMobile/1.5.27 YahooMailWebService/0.8.149.560 Message-ID: <1374187229.18950.YahooMailIosMobile@web142803.mail.bf1.yahoo.com> Date: Thu, 18 Jul 2013 15:40:29 -0700 (PDT) From: kit Subject: Re: freebsd-arm Digest, Vol 379, Issue 3 To: "Nick@Pettefar.com" , "freebsd-arm@freebsd.org" , "werner@thieprojects.ch" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.14 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, 18 Jul 2013 22:43:51 -0000 You might already have svnlite in the base system if your current is recent-ish. Otherwise, try workaround the problem by building subversion without db42. Type make config and unselect.

Kit From owner-freebsd-arm@FreeBSD.ORG Thu Jul 18 22:45:30 2013 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id E19E215F for ; Thu, 18 Jul 2013 22:45:30 +0000 (UTC) (envelope-from steve@sohara.org) Received: from uk1rly2283.eechost.net (relay01a.mail.uk1.eechost.net [217.69.40.75]) by mx1.freebsd.org (Postfix) with ESMTP id AE500D7E for ; Thu, 18 Jul 2013 22:45:29 +0000 (UTC) Received: from [31.186.37.179] (helo=smtp.marelmo.com) by uk1rly2283.eechost.net with esmtpa (Exim 4.72) (envelope-from ) id 1UzwiN-0005J1-Ne; Thu, 18 Jul 2013 23:30:23 +0100 Received: from [192.168.63.1] (helo=steve.marelmo.com) by smtp.marelmo.com with smtp (Exim 4.80.1 (FreeBSD)) (envelope-from ) id 1Uzwj0-000G0t-En; Thu, 18 Jul 2013 22:31:02 +0000 Date: Thu, 18 Jul 2013 23:31:01 +0100 From: Steve O'Hara-Smith To: Andrew Turner Subject: Re: HEADS UP: The default ABI has changed Message-Id: <20130718233101.da83473e3aca7fb533576181@sohara.org> In-Reply-To: <20130716202516.10a67fec@bender.Home> References: <20130716202516.10a67fec@bender.Home> X-Mailer: Sylpheed 3.3.0 (GTK+ 2.24.19; amd64-portbld-freebsd9.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Auth-Info: 15567@permanet.ie (plain) Cc: freebsd-arm@freebsd.org X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.14 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, 18 Jul 2013 22:45:30 -0000 On Tue, 16 Jul 2013 20:25:16 +0100 Andrew Turner wrote: > As of r253396 the default ABI on FreeBSD/ARM is the ARM EABI. If you > run FreeBSD HEAD on an ARM CPU this will apply to you. Is it still possible to cross compile for an ARM from 9.1-RELEASE after this change ? It's been a while but I've been thinking about getting back to my Pi. -- Steve O'Hara-Smith From owner-freebsd-arm@FreeBSD.ORG Thu Jul 18 23:20:41 2013 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 54627AFE for ; Thu, 18 Jul 2013 23:20:41 +0000 (UTC) (envelope-from werner@thieprojects.ch) Received: from newton.metanet.ch (newton2.metanet.ch [80.74.158.131]) by mx1.freebsd.org (Postfix) with ESMTP id B5641F0A for ; Thu, 18 Jul 2013 23:20:39 +0000 (UTC) Received: (qmail 11401 invoked from network); 19 Jul 2013 01:20:38 +0200 Received: from udp004035uds.hawaiiantel.net (HELO ?192.168.1.16?) (72.234.77.213) by newton.metanet.ch with ESMTPSA (DHE-RSA-AES256-SHA encrypted, authenticated); 19 Jul 2013 01:20:37 +0200 Message-ID: <51E8783E.6010606@thieprojects.ch> Date: Thu, 18 Jul 2013 13:20:30 -1000 From: Werner Thie Organization: Thie & Co Projects User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:17.0) Gecko/20130620 Thunderbird/17.0.7 MIME-Version: 1.0 To: Nick@Pettefar.com Subject: Re: freebsd-arm Digest, Vol 379, Issue 3 References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-arm@freebsd.org X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: werner@thieprojects.ch List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Jul 2013 23:20:41 -0000 Hi Nick Sounds ugly, do you have other means to obtain the sources? Though on second thought, if clangs crashing anyway, I do not see all too much chances for doing a complete image rebuild. Are you able to resort to cross compiling? Best via a FreeBSD 9 stable release on a VM, my preferred way. Werner On 7/18/13 4:24 AM, Nick Pettefar wrote: > Date: Wed, 17 Jul 2013 14:09:56 -1000 > > From: Werner Thie > > To: Nick > Cc: freebsd-arm@freebsd.org > Subject: Re: freebsd-update.conf details for RPi > Message-ID: <51E73254.5030106@thieprojects.ch > > > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > Hi Nick > > I usually fetch my sources via SVN, the preferred way as per > > http://www.freebsd.org/doc/handbook/svn.html > > > Unfortunately: > WHen trying to install subversion as per the instructions in the > handbook, I get: > c++: error: unable to execute command: Segmentation fault (core dumped) > c++: error: clang frontend command failed due to signal (use -v to see > invocation) > FreeBSD clang version 3.3 (trunk 178860) 20130405 > Target: armv6-unknown-freebsd10.0 > Thread model: posix > c++: note: diagnostic msg: PLEASE submit a bug report to > http://llvm.org/bugs/ and include the crash backtrace, preprocessed > source, and associated run script. > c++: note: diagnostic msg: Error generating preprocessed source(s). > *** Error code 1 > > Stop. > make: stopped in /usr/ports/databases/db42/work/db-4.2.52/build_unix > *** Error code 1 > > Stop. > make: stopped in /usr/ports/databases/db42 > *** Error code 1 > > Stop. > make: stopped in /usr/ports/devel/apr1 > *** Error code 1 > > Stop. > make: stopped in /usr/ports/devel/apr1 > *** Error code 1 > > Stop. > make: stopped in /usr/ports/devel/subversion > *** Error code 1 > > Stop. > make: stopped in /usr/ports/devel/subversion > root@bsdpi:/usr/ports/devel/subversion # > > Nick From owner-freebsd-arm@FreeBSD.ORG Fri Jul 19 06:12:46 2013 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 16DB11A4 for ; Fri, 19 Jul 2013 06:12:46 +0000 (UTC) (envelope-from f0andrey@gmail.com) Received: from mail-we0-x229.google.com (mail-we0-x229.google.com [IPv6:2a00:1450:400c:c03::229]) by mx1.freebsd.org (Postfix) with ESMTP id A6E63218 for ; Fri, 19 Jul 2013 06:12:45 +0000 (UTC) Received: by mail-we0-f169.google.com with SMTP id n57so3678566wev.0 for ; Thu, 18 Jul 2013 23:12:44 -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=7zl0k1Baz34hk8MXYe9vP+if9cvTH9Et/onYKqDI1pA=; b=sj+yjRVpBtOYQcF7/0jMKpt8xTp5L35/2FtXShvrdF/+Zi2763A449uPIBy72netiz FbpUB8mcP8GY9Zxm1SmkNjFBt4fMF+5lryzZ4usPs1lHFotFAoG5v4ghjqqJif3lQPF/ 2fJl+Kfo82LkkNHfZwqntybTVIXzCMIWxwbC5F15VPL42eeFX5TFchF0m+Daebu2+xdi MQX4FEhI31jMwwu3B0xCsyvprDZq5KZO1BVbvnFRvg2o1eewt5R++wUUhypXR1nkdv/z rJBwWuvAdcNwcE+qamwIkZCiedJmDflfN9+ogScqKeyjnP7OreFfy2xlipbtOqWtAqII ER2w== MIME-Version: 1.0 X-Received: by 10.180.37.225 with SMTP id b1mr8272410wik.31.1374214364831; Thu, 18 Jul 2013 23:12:44 -0700 (PDT) Received: by 10.194.240.132 with HTTP; Thu, 18 Jul 2013 23:12:44 -0700 (PDT) In-Reply-To: References: Date: Fri, 19 Jul 2013 10:12:44 +0400 Message-ID: Subject: Re: freebsd-arm Digest, Vol 379, Issue 3 From: Andrey Fesenko To: Nick@pettefar.com Content-Type: text/plain; charset=UTF-8 Cc: "freebsd-arm@freebsd.org" X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.14 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, 19 Jul 2013 06:12:46 -0000 On Thu, Jul 18, 2013 at 6:24 PM, Nick Pettefar wrote: > Date: Wed, 17 Jul 2013 14:09:56 -1000 > >> From: Werner Thie >> To: Nick >> Cc: freebsd-arm@freebsd.org >> Subject: Re: freebsd-update.conf details for RPi >> Message-ID: <51E73254.5030106@thieprojects.ch> >> Content-Type: text/plain; charset=ISO-8859-1; format=flowed >> >> Hi Nick >> >> I usually fetch my sources via SVN, the preferred way as per >> >> http://www.freebsd.org/doc/handbook/svn.html >> > > Unfortunately: > WHen trying to install subversion as per the instructions in the handbook, > I get: > c++: error: unable to execute command: Segmentation fault (core dumped) > c++: error: clang frontend command failed due to signal (use -v to see > invocation) > FreeBSD clang version 3.3 (trunk 178860) 20130405 > Target: armv6-unknown-freebsd10.0 > Thread model: posix > c++: note: diagnostic msg: PLEASE submit a bug report to > http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, > and associated run script. > c++: note: diagnostic msg: Error generating preprocessed source(s). > *** Error code 1 > > Stop. > make: stopped in /usr/ports/databases/db42/work/db-4.2.52/build_unix > *** Error code 1 > > Stop. > make: stopped in /usr/ports/databases/db42 > *** Error code 1 > > Stop. > make: stopped in /usr/ports/devel/apr1 > *** Error code 1 > > Stop. > make: stopped in /usr/ports/devel/apr1 > *** Error code 1 > > Stop. > make: stopped in /usr/ports/devel/subversion > *** Error code 1 > > Stop. > make: stopped in /usr/ports/devel/subversion > root@bsdpi:/usr/ports/devel/subversion # > > Nick I'm succes build this port EABI FreeBSD desktop.local 10.0-CURRENT FreeBSD 10.0-CURRENT #0 r250577: Wed May 15 02:40:19 MSK 2013 andrey@desktop.local:/usr/obj/usr/src/sys/MY_DES amd64 if you need to download a complete package with dependencies http://armv6.bsdnir.info/packages/All/ this host IPv6 only if you need IPv4 use gate for example http://www.sixxs.net/tools/gateway/ Unfortunately I did not get to build perl :( From owner-freebsd-arm@FreeBSD.ORG Sat Jul 20 16:00:52 2013 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id E5183301 for ; Sat, 20 Jul 2013 16:00:52 +0000 (UTC) (envelope-from andrew@fubar.geek.nz) Received: from nibbler.fubar.geek.nz (nibbler.fubar.geek.nz [199.48.134.198]) by mx1.freebsd.org (Postfix) with ESMTP id CE3129CC for ; Sat, 20 Jul 2013 16:00:52 +0000 (UTC) Received: from bender.Home (97e5e46b.skybroadband.com [151.229.228.107]) by nibbler.fubar.geek.nz (Postfix) with ESMTPSA id E64CB5E200 for ; Sat, 20 Jul 2013 16:00:45 +0000 (UTC) Date: Sat, 20 Jul 2013 17:00:39 +0100 From: Andrew Turner To: freebsd-arm@freebsd.org Subject: Call for Testers: VFP optimised float/double helper functions Message-ID: <20130720170039.72c1e9c5@bender.Home> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.14 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, 20 Jul 2013 16:00:53 -0000 I have been working on adding VFP versions of the ARM EABI float/double helper functions in libc. The patch [1] is mostly ready to commit. The patch only uses the VFP code when the VFP is enabled in the kernel, otherwise it falls back to the softfloat code. To make use of the VFP version of the functions you need to ensure you are using an EABI world, and add the following to your kernel config (if they are not already there): device vfp options ARM_VFP_SUPPORT I would suggest when testing this to libc in a separate directory and use LD_LIBRARY_PATH to load it as bugs in this code can manifest in strange ways and I have found being able to test against the softfloat code can help track them down. I have minimally tested this on a Raspberry Pi but further testing there would be useful. TODO: - Update libm to get/set the rounding method correctly - Test if it works with < armv6 Andrew [1] http://people.freebsd.org/~andrew/arm_float2.diff