From owner-freebsd-arm@FreeBSD.ORG Thu Apr 24 07:01:03 2014 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 53B36844 for ; Thu, 24 Apr 2014 07:01:03 +0000 (UTC) Received: from mail-vc0-x22d.google.com (mail-vc0-x22d.google.com [IPv6:2607:f8b0:400c:c03::22d]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 15F13103F for ; Thu, 24 Apr 2014 07:01:03 +0000 (UTC) Received: by mail-vc0-f173.google.com with SMTP id il7so2483797vcb.32 for ; Thu, 24 Apr 2014 00:01:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type :content-transfer-encoding; bh=f80HBSzy//1lOQ8yCFRbBZ+th0L0cWURP+fA3KIhnA0=; b=EcAMLM/eTjRYzThnZRkTwKilkzGwTZ/BF/UjdXXpJ3NYttwrkaiKxQD3HNSHFeFmJa CgokV78BKtDHUN5Mh1Ct6Vua/gjlcEm0Nsv6fs/bocmGM5OC51bx2J4XYB/hgENJpLyT qFJNDsGtASvV6MUMy2RckY56VQi9q4vDnH9Bgf/nKMhcvS5a0JSjyOnd/t2EP3/fnmus vPTnpdeZoLtQQ3u4BE5y9qBcjkjdbpugJrSxMiwQ/acnVDjRpdC5JGxL/xqdl6mTcZ7N /L35T+bIpP7P1pXsGkjSYqldHBGqpZbluXuoSubl/y0foFlc93bNVodDqu1jQvCiEX6Y xfCw== X-Received: by 10.58.28.204 with SMTP id d12mr84096veh.81.1398322862177; Thu, 24 Apr 2014 00:01:02 -0700 (PDT) MIME-Version: 1.0 Received: by 10.58.236.100 with HTTP; Thu, 24 Apr 2014 00:00:32 -0700 (PDT) From: Matthias Gamsjager Date: Thu, 24 Apr 2014 09:00:32 +0200 Message-ID: Subject: Re: CubieTruck Cubieboard3 support To: coba , "freebsd-arm@freebsd.org" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Apr 2014 07:01:03 -0000 Ok thx for your help. But by the looks of it the board isn't really supported yet. Maybe someone at the list can shine some light on the matter. On Wed, Apr 23, 2014 at 10:25 PM, coba wrote: > Good evening, > > I booted it, check log: > U-Boot SPL 2014.01-rc1-09161-g108ec3f (Jan 20 2014 - 05:50:52) > Board: Cubietruck > DRAM: 2048 MiB > CPU: 960000000Hz, AXI/AHB/APB: 3/2/2 > spl: not an uImage at 1600 > > > U-Boot 2014.01-rc1-09161-g108ec3f (Jan 20 2014 - 05:50:52) Allwinner > Technology > > CPU: Allwinner A20 (SUN7I) > Board: Cubietruck > I2C: ready > DRAM: 2 GiB > WARNING: Caches not enabled > MMC: SUNXI SD/MMC: 0 > *** Warning - bad CRC, using default environment > > In: serial > Out: serial > Err: serial > Net: mii0 > Warning: failed to set MAC address > > Hit any key to stop autoboot: 0 > ** Unrecognized filesystem type ** > 158 bytes read in 8 ms (18.6 KiB/s) > Loaded environment from uEnv.txt > ** Unrecognized filesystem type ** > ** File not found boot/boot.scr ** > ** File not found boot.scr ** > 50072 bytes read in 11 ms (4.3 MiB/s) > 5912048 bytes read in 365 ms (15.4 MiB/s) > ## Booting kernel from Legacy Image at 48000000 ... > Image Name: Linux-3.4.75-sun7i > Created: 2014-02-09 18:49:43 UTC > Image Type: ARM Linux Kernel Image (uncompressed) > Data Size: 5911984 Bytes =3D 5.6 MiB > Load Address: 40008000 > Entry Point: 40008000 > Verifying Checksum ... =D0=A7 > U-Boot SPL 2013.07-07794-gc0f3b94 (Aug 15 2013 - 18:01:45) > Board: Cubieboard2 > DRAM: 1024 MiB > CPU: 960000000Hz, AXI/AHB/APB: 3/2/2 > SUNXI SD/MMC: 0 > > > U-Boot 2013.07-07794-gc0f3b94 (Aug 15 2013 - 18:01:45) Allwinner Technolo= gy > > CPU: Allwinner A20 (SUN7I) > Board: Cubieboard2 > I2C: ready > DRAM: 1 GiB > MMC: SUNXI SD/MMC: 0 > *** Warning - bad CRC, using default environment > > In: serial > Out: serial > Err: serial > Net: emac > Hit any key to stop autoboot: 0 > sun7i#fatload mmc 0 0x40200000 kernel; go 0x40200100 > reading kernel > 4992443 bytes read in 305 ms (15.6 MiB/s) > ## Starting application at 0x40200100 ... > KDB: debugger backends: ddb > KDB: current backend: ddb > Copyright (c) 1992-2014 The FreeBSD Project. > Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 > The Regents of the University of California. All rights reserved. > FreeBSD is a registered trademark of The FreeBSD Foundation. > FreeBSD 11.0-CURRENT #0 r264301M: Thu Apr 17 11:40:33 CEST 2014 > matty@freebsd:/usr/obj/arm.armv6/storage/usr/src/11/sys/CUBIEBOARD2 a= rm > FreeBSD clang version 3.4 (tags/RELEASE_34/final 197956) 20140216 > WARNING: WITNESS option enabled, expect reduced performance. > CPU: Cortex A7 rev 4 (Cortex-A core) > Supported features: ARM_ISA THUMB2 JAZELLE THUMBEE ARMv4 Security_Ext > WB disabled EABT branch prediction enabled > LoUU:2 LoC:2 LoUIS:2 > Cache level 1: > 32KB/64B 4-way data cache WB Read-Alloc Write-Alloc > 32KB/32B 2-way instruction cache Read-Alloc > Cache level 2: > 256KB/64B 8-way unified cache WB Read-Alloc Write-Alloc > real memory =3D 1073741824 (1024 MB) > avail memory =3D 1040412672 (992 MB) > FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs > random device not loaded; using insecure entropy > random: initialized > ofwbus0: > simplebus0: on ofwbus0 > gic0: mem > 0x1c81000-0x1c81fff,0x1c82000-0x1c820ff on simplebus0 > gic0: pn 0x10, arch 0x2, rev 0x1, implementer 0x43b sc->nirqs 160 > a10_sramc0: mem 0x1c00000-0x1c00fff on simplebus= 0 > a20_cpu_cfg0: mem 0x1c25c00-0x1c25fff on > simplebus0 > a10_ccm0: mem 0x1c20000-0x1c203ff on > simplebus0 > a10_timer0: mem 0x1c20c00-0x1c20c8f irq 54 on > simplebus0 > Event timer "a10_timer Eventtimer" frequency 24000000 Hz quality 1000 > Timecounter "a10_timer timer0" frequency 24000000 Hz quality 1000 > a10wd0: mem 0x1c20c90-0x1c20c9f on simplebus0 > gpio0: mem 0x1c20800-0x1c20bff irq 60 on > simplebus0 > gpioc0: on gpio0 > gpiobus0: on gpio0 > ehci0: mem 0x1c14000-0x1c14fff = irq > 71 on simplebus0 > usbus0: EHCI version 1.0 > usbus0 on ehci0 > ehci1: mem 0x1c1c000-0x1c1cfff = irq > 72 on simplebus0 > usbus1: EHCI version 1.0 > usbus1 on ehci1 > uart0: <16750 or compatible> mem 0x1c28000-0x1c283ff irq 33 on simplebus0 > uart0: console (115200,n,8,1) > emac0: mem 0x1c0b000-0x1c0bfff irq 87 = on > simplebus0 > miibus0: on emac0 > rgephy0: PHY 0 on miibus= 0 > > vm_fault(0xc08a96a0, 0, 1, 0) -> 1 > Fatal kernel mode data abort: 'Translation Fault (S)' > trapframe: 0xc08cd9f8 > FSR=3D00000005, FAR=3D00000000, spsr=3Da00001d3 > r0 =3D00000000, r1 =3Dc053c2f3, r2 =3D00000072, r3 =3D00000008 > r4 =3Dc3b35e80, r5 =3Dc3b36000, r6 =3Dc3b36038, r7 =3D00000000 > r8 =3Dc055ecfa, r9 =3Dc3ad1700, r10=3Dc05c7240, r11=3Dc08cda60 > r12=3D00000000, ssp=3Dc08cda48, slr=3Dc024c8a4, pc =3Dc03d3238 > > [ thread pid 0 tid 100000 ] > Stopped at strcmp+0x4: ldrb r3, [r0] > db> bt > Tracing pid 0 tid 100000 td 0xc08a9390 > db_trace_self() at db_trace_self > pc =3D 0xc04e0eb4 lr =3D 0xc0231298 (db_hex2dec+0x4d8) > sp =3D 0xc08cd700 fp =3D 0xc08cd718 > r10 =3D 0xc08a8cb0 > db_hex2dec() at db_hex2dec+0x4d8 > pc =3D 0xc0231298 lr =3D 0xc0230c08 (db_command_loop+0x2fc) > sp =3D 0xc08cd720 fp =3D 0xc08cd7c0 > r4 =3D 0x00000000 r5 =3D 0x00000000 > r6 =3D 0x00000000 > db_command_loop() at db_command_loop+0x2fc > pc =3D 0xc0230c08 lr =3D 0xc023096c (db_command_loop+0x60) > sp =3D 0xc08cd7c8 fp =3D 0xc08cd7d8 > r4 =3D 0xc051d125 r5 =3D 0xc0535407 > r6 =3D 0xc08a8c9c r7 =3D 0xc08cd9f8 > r8 =3D 0x00000001 r9 =3D 0xc05c5280 > r10 =3D 0xc0605624 > db_command_loop() at db_command_loop+0x60 > pc =3D 0xc023096c lr =3D 0xc0233334 (X_db_symbol_values+0x250) > sp =3D 0xc08cd7e0 fp =3D 0xc08cd900 > r4 =3D 0x00000000 r5 =3D 0xc08a8ca8 > r6 =3D 0xc0605650 > X_db_symbol_values() at X_db_symbol_values+0x250 > pc =3D 0xc0233334 lr =3D 0xc034f7c8 (kdb_trap+0x168) > sp =3D 0xc08cd908 fp =3D 0xc08cd928 > r4 =3D 0x00000000 r5 =3D 0x00000005 > r6 =3D 0xc0605650 r7 =3D 0xc08cd9f8 > kdb_trap() at kdb_trap+0x168 > pc =3D 0xc034f7c8 lr =3D 0xc04f670c (data_abort_handler+0x680) > sp =3D 0xc08cd930 fp =3D 0xc08cd948 > r4 =3D 0xc08cd9f8 r5 =3D 0x00000005 > r6 =3D 0x600001d3 r7 =3D 0x00000000 > r8 =3D 0x00000013 r9 =3D 0xc08cd9f8 > r10 =3D 0x00000001 > data_abort_handler() at data_abort_handler+0x680 > pc =3D 0xc04f670c lr =3D 0xc04f64b4 (data_abort_handler+0x428) > sp =3D 0xc08cd950 fp =3D 0xc08cd9f0 > r4 =3D 0xc08cdeb0 r5 =3D 0xc08a9390 > r6 =3D 0xc08a9068 r7 =3D 0x00000005 > data_abort_handler() at data_abort_handler+0x428 > pc =3D 0xc04f64b4 lr =3D 0xc04e2a40 (exception_exit) > sp =3D 0xc08cd9f8 fp =3D 0xc08cda60 > r4 =3D 0xc3b35e80 r5 =3D 0xc3b36000 > r6 =3D 0xc3b36038 r7 =3D 0x00000000 > r8 =3D 0xc055ecfa r9 =3D 0xc3ad1700 > r10 =3D 0xc05c7240 > exception_exit() at exception_exit > pc =3D 0xc04e2a40 lr =3D 0xc024c8a4 (mii_phy_flowstatus+0x2080) > sp =3D 0xc08cda48 fp =3D 0xc08cda60 > r0 =3D 0x00000000 r1 =3D 0xc053c2f3 > r2 =3D 0x00000072 r3 =3D 0x00000008 > r4 =3D 0xc3b35e80 r5 =3D 0xc3b36000 > r6 =3D 0xc3b36038 r7 =3D 0x00000000 > r8 =3D 0xc055ecfa r9 =3D 0xc3ad1700 > r10 =3D 0xc05c7240 r12 =3D 0x00000000 > strcmp() at strcmp+0x4 > pc =3D 0xc03d3238 lr =3D 0xc024c8a4 (mii_phy_flowstatus+0x2080) > sp =3D 0xc08cda48 fp =3D 0xc08cda60 > Unwind failure (no registers changed) > >