From owner-freebsd-arm@FreeBSD.ORG Fri Aug 15 21:44:30 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 B9884CA8 for ; Fri, 15 Aug 2014 21:44:30 +0000 (UTC) Received: from raven.bwct.de (raven.bwct.de [85.159.14.73]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "raven.bwct.de", Issuer "BWCT" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 065542F17 for ; Fri, 15 Aug 2014 21:44:29 +0000 (UTC) Received: from mail.cicely.de ([10.1.1.37]) by raven.bwct.de (8.13.4/8.13.4) with ESMTP id s7FLiLUC087349 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Fri, 15 Aug 2014 23:44:21 +0200 (CEST) (envelope-from ticso@cicely7.cicely.de) Received: from cicely7.cicely.de (cicely7.cicely.de [10.1.1.9]) by mail.cicely.de (8.14.5/8.14.4) with ESMTP id s7FLiHoQ050245 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 15 Aug 2014 23:44:17 +0200 (CEST) (envelope-from ticso@cicely7.cicely.de) Received: from cicely7.cicely.de (localhost [127.0.0.1]) by cicely7.cicely.de (8.14.2/8.14.2) with ESMTP id s7FLiHed067540; Fri, 15 Aug 2014 23:44:17 +0200 (CEST) (envelope-from ticso@cicely7.cicely.de) Received: (from ticso@localhost) by cicely7.cicely.de (8.14.2/8.14.2/Submit) id s7FLiGpR067539; Fri, 15 Aug 2014 23:44:16 +0200 (CEST) (envelope-from ticso) Date: Fri, 15 Aug 2014 23:44:16 +0200 From: Bernd Walter To: TooMeeK Admin Subject: Re: U-boot for Banana Pi Message-ID: <20140815214416.GJ60808@cicely7.cicely.de> Reply-To: ticso@cicely.de References: <53EE0F93.6060407@toomeek.waw.pl> <53EE23B1.2020403@toomeek.waw.pl> <53EE402D.8000204@toomeek.waw.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: <53EE402D.8000204@toomeek.waw.pl> X-Operating-System: FreeBSD cicely7.cicely.de 7.0-STABLE i386 User-Agent: Mutt/1.5.11 X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED=-1, BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 autolearn=ham version=3.3.0 X-Spam-Checker-Version: SpamAssassin 3.3.0 (2010-01-18) on spamd.cicely.de Cc: freebsd-arm@freebsd.org X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Aug 2014 21:44:30 -0000 On Fri, Aug 15, 2014 at 07:15:25PM +0200, TooMeeK Admin wrote: > Do You mean this? > https://github.com/tsgan/allwinner_a10 > Is it for A20 too? I'll take a look. > I've also found Your discussion here: > http://www.marshut.net/qmqum/booting-kernel-on-cubieboard-mele-a-1000-all= winer-a10.html#qntuw >=20 > but it uses ubldr.. >=20 > Kernel doesn't start with: > reg =3D < 0x40000000 0x40000000 >; /* 1024MB RAM */ > and I don't know why, it's not loaded: no FreeBSD trademarks, nothing... >=20 > I know these values are correct, because size fits: > ## Executing script at 44000000 > arch_number =3D 0x000010BB > boot_params =3D 0x40000100 > DRAM bank =3D 0x00000000 > -> start =3D 0x40000000 > -> size =3D 0x40000000 >=20 > However, it starts with: > reg =3D < 0x40000000 0x30000000 >; /* 768MB RAM */ > in /usr/src/sys/boot/fdt/dts/bananapi.dts > and stops during booting on USB detection... >=20 > 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 >=20 >=20 >=20 > U-Boot 2013.07-07794-gc0f3b94 (Aug 15 2013 - 18:01:45) Allwinner Technolo= gy >=20 > CPU: Allwinner A20 (SUN7I) > Board: Cubieboard2 > I2C: ready > DRAM: 1 GiB > MMC: SUNXI SD/MMC: 0 > *** Warning - bad CRC, using default environment >=20 > In: serial > Out: serial > Err: serial > Net: emac > Hit any key to stop autoboot: 3 =08=08=08 2 =08=08=08 1 =08=08=08 0 > reading uEnv.txt > ** Unable to read file uEnv.txt ** > Failed to mount ext2 filesystem... > ** Unrecognized filesystem type ** > Failed to mount ext2 filesystem... > ** Unrecognized filesystem type ** > reading boot.scr > 119 bytes read in 3 ms (38.1 KiB/s) > Jumping to boot.scr > ## Executing script at 44000000 > reading kernel > 4835460 bytes read in 422 ms (10.9 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 10.0-RELEASE #8: Fri Aug 15 20:56:50 CEST 2014 > root@freebsd:/usr/obj/arm.armv6/usr/src/sys/BANANAPI arm > FreeBSD clang version 3.3 (tags/RELEASE_33/final 183502) 20130610 > 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 805306368 (768 MB) > avail memory =3D 780681216 (744 MB) > random device not loaded; using insecure entropy > random: initialized > simplebus0: on fdtbus0 > gic0: mem=20 > 0x1c81000-0x1c81fff,0x1c82000-0x1c820ff on simplebus0 > gic0: pn 0x10, arch 0x2, rev 0x1, implementer 0x43b nirqs 160 > a20_cpu_cfg0: mem 0x1c25c00-0x1c25fff on= =20 > simplebus0 > a10_ccm0: mem 0x1c20000-0x1c203ff on=20 > simplebus0 > a10_timer0: mem 0x1c20c00-0x1c20c8f irq 54 on= =20 > 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=20 > simplebus0 > gpioc0: on gpio0 > gpiobus0: on gpio0 > ehci0: mem 0x1c14000-0x1c14fff= =20 > irq 71 on simplebus0 > usbus0: EHCI version 1.0 > usbus0 on ehci0 > ehci1: mem 0x1c1c000-0x1c1cfff= =20 > irq 72 on simplebus0 >=20 > Which is very strange to me. >=20 > Fallback to 512MB with / on flash USB ends in almost complete OS boot :) >=20 > 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 >=20 >=20 >=20 > U-Boot 2013.07-07794-gc0f3b94 (Aug 15 2013 - 18:01:45) Allwinner Technolo= gy >=20 > CPU: Allwinner A20 (SUN7I) > Board: Cubieboard2 > I2C: ready > DRAM: 1 GiB > MMC: SUNXI SD/MMC: 0 > *** Warning - bad CRC, using default environment >=20 > In: serial > Out: serial > Err: serial > Net: emac > Hit any key to stop autoboot: 3 =08=08=08 2 =08=08=08 1 =08=08=08 0 > reading uEnv.txt > ** Unable to read file uEnv.txt ** > Failed to mount ext2 filesystem... > ** Unrecognized filesystem type ** > Failed to mount ext2 filesystem... > ** Unrecognized filesystem type ** > reading boot.scr > 119 bytes read in 3 ms (38.1 KiB/s) > Jumping to boot.scr > ## Executing script at 44000000 > reading kernel > 4835460 bytes read in 422 ms (10.9 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 10.0-RELEASE #9: Fri Aug 15 21:03:16 CEST 2014 > root@freebsd:/usr/obj/arm.armv6/usr/src/sys/BANANAPI arm > FreeBSD clang version 3.3 (tags/RELEASE_33/final 183502) 20130610 > 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 536870912 (512 MB) > avail memory =3D 517558272 (493 MB) > random device not loaded; using insecure entropy > random: initialized > simplebus0: on fdtbus0 > gic0: mem=20 > 0x1c81000-0x1c81fff,0x1c82000-0x1c820ff on simplebus0 > gic0: pn 0x10, arch 0x2, rev 0x1, implementer 0x43b nirqs 160 > a20_cpu_cfg0: mem 0x1c25c00-0x1c25fff on= =20 > simplebus0 > a10_ccm0: mem 0x1c20000-0x1c203ff on=20 > simplebus0 > a10_timer0: mem 0x1c20c00-0x1c20c8f irq 54 on= =20 > 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=20 > simplebus0 > gpioc0: on gpio0 > gpiobus0: on gpio0 > ehci0: mem 0x1c14000-0x1c14fff= =20 > irq 71 on simplebus0 > usbus0: EHCI version 1.0 > usbus0 on ehci0 > ehci1: mem 0x1c1c000-0x1c1cfff= =20 > 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) > Timecounters tick every 10.000 msec > usbus0: 480Mbps High Speed USB v2.0 > usbus1: 480Mbps High Speed USB v2.0 > ugen0.1: at usbus0 > uhub0: on usb= us0 > ugen1.1: at usbus1 > uhub1: on usb= us1 > random: unblocking device. > WARNING: WITNESS option enabled, expect reduced performance. > uhub1: 1 port with 1 removable, self powered > uhub0: 1 port with 1 removable, self powered > Root mount waiting for: usbus1 usbus0 > Root mount waiting for: usbus0 > Root mount waiting for: usbus0 > ugen0.2: at usbus0 > umass0: on usbus0 > umass0: SCSI over Bulk-Only; quirks =3D 0x4101 > umass0:0:0:-1: Attached to scbus0 > da0 at umass-sim0 bus 0 scbus0 target 0 lun 0 > da0: Removable Direct Access SCSI-2 device > da0: 40.000MB/s transfers > da0: 3848MB (7881824 512 byte sectors: 255H 63S/T 490C) > da0: quirks=3D0x2 > Trying to mount root from ufs:/dev/da0 []... > warning: no time-of-day clock registered, system time will not be set=20 > accurately > Setting hostuuid: 967d139f-24a3-11e4-a1ad-0931cee82337. > Setting hostid: 0x438e041a. > Entropy harvesting: interrupts ethernet point_to_point swi. > eval: cannot open /etc/fstab: No such file or directory > fstab: /etc/fstab:0: No such file or directory > Warning! No /etc/fstab: skipping disk checks. > fstab: /etc/fstab:0: No such file or directory > Mounting local file systems:fstab: /etc/fstab:0: No such file or directory > . > Writing entropy file:. > /etc/rc: WARNING: $hostname is not set -- see rc.conf(5). > Starting Network: lo0. > 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 > Starting devd. > add net fe80::: gateway ::1 > add net ff02::: gateway ::1 > add net ::ffff:0.0.0.0: gateway ::1 > add net ::0.0.0.0: gateway ::1 > Generating host.conf. > fstab: /etc/fstab:0: No such file or directory > fstab: /etc/fstab:0: No such file or directory > fstab: /etc/fstab:0: No such file or directory > Creating and/or trimming log files. > Starting syslogd. > ELF ldconfig path: /lib /usr/lib /usr/lib/compat > Clearing /tmp (X related). > Updating motd:. > Mounting late file systems:fstab: /etc/fstab:0: No such file or directory > . > fstab: /etc/fstab:0: No such file or directory >=20 >=20 >=20 > Any clues here? Very obviously you don't have an fstab. You also want to configure your /etc/ttys for a getty, otherwise you won't get a login prompt, even if the system has bootet completely. --=20 B.Walter http://www.bwct.de Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm.