From owner-freebsd-arm@FreeBSD.ORG Sat Aug 16 21:30:26 2014 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 3200ABE4 for ; Sat, 16 Aug 2014 21:30:26 +0000 (UTC) Received: from poczta.toomeek.waw.pl (unknown [IPv6:2001:67c:232c:1000::fd9b:4fb4]) by mx1.freebsd.org (Postfix) with ESMTP id C71D82DE6 for ; Sat, 16 Aug 2014 21:30:25 +0000 (UTC) Received: from [192.168.137.1] (dov125.neoplus.adsl.tpnet.pl [83.24.129.125]) by poczta.toomeek.waw.pl (Postfix) with ESMTPSA id A0400C601DD for ; Sat, 16 Aug 2014 17:30:20 -0400 (EDT) Message-ID: <53EFCD6C.5000601@toomeek.waw.pl> Date: Sat, 16 Aug 2014 23:30:20 +0200 From: TooMeeK Admin User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: freebsd-arm@freebsd.org Subject: Re: U-boot for Banana Pi References: <53EE0F93.6060407@toomeek.waw.pl> <53EE23B1.2020403@toomeek.waw.pl> <53EE402D.8000204@toomeek.waw.pl> <20140815214416.GJ60808@cicely7.cicely.de> In-Reply-To: <20140815214416.GJ60808@cicely7.cicely.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.3.9 (poczta.toomeek.waw.pl [0.0.0.0]); Sat, 16 Aug 2014 17:30:22 -0400 (EDT) X-Virus-Scanned: clamav-milter 0.98.1 at a8d2ba546e X-Virus-Status: Clean 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: Sat, 16 Aug 2014 21:30:26 -0000 Thank You, Problems to be fixed: 1. only 512MB of DRAM available 768MB configured in /usr/src/sys/boot/fdt/dts/bananapi.dts doesn't work, stops at: ehci1: mem 0x1c1c000-0x1c1cfff irq 72 on simplebus0 1024MB configured in /usr/src/sys/boot/fdt/dts/bananapi.dts doesn't work, stops at: 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 = 1073741824 (1024 MB) panic: kmem_suballoc: bad status return of 3 KDB: enter: panic [ thread pid 0 tid 0 ] Stopped at kdb_enter+0x4c: ldrb r15, [r15, r15, ror r15]! db> DRAM details: DRAM bank = 0x00000000 -> start = 0x40000000 -> size = 0x40000000 2. "Error reading cluster" during kernel load u-boot-sunxi 2014.04-10704-gf625d1d for Allwinner A20 (SUN7I) Bananapi board both files: /usr/src/u-boot-sunxi/u-boot.bin /usr/src/u-boot-sunxi/u-boot-sunxi-with-spl.bin are unbootable --> to be reported on u-boot mailing list WORKAROUND: use u-boot.bin from Cubieboard's Wiki FreeBSD page 3. no HDMI output 4. no network devices detected 5. missing /dev/ttyv* files Config files on /dev/da0 rootdev: cat /etc/fstab # Device Mountpoint FStype Options Dump Pass# /dev/da0 / ufs rw 1 1 cat /etc/rc.conf hostname="banana-freebsd" keymap="pl_PL.ISO8859-2.kbd" ifconfig_em0="inet 192.168.137.226 netmask 255.255.255.0" defaultrouter="192.168.137.1" sshd_enable="YES" cat /etc/ttys console none unknown off secure ttyv0 "/usr/libexec/getty Pc" xterm on secure # Virtual terminals ttyv1 "/usr/libexec/getty Pc" xterm on secure ttyv2 "/usr/libexec/getty Pc" xterm on secure ttyv3 "/usr/libexec/getty Pc" xterm on secure ttyv4 "/usr/libexec/getty Pc" xterm on secure ttyv5 "/usr/libexec/getty Pc" xterm on secure ttyv6 "/usr/libexec/getty Pc" xterm on secure ttyv7 "/usr/libexec/getty Pc" xterm on secure ttyv8 "/usr/local/bin/xdm -nodaemon" xterm off secure # Serial terminals # The 'dialup' keyword identifies dialin lines to login, fingerd etc. ttyu0 "/usr/libexec/getty std.115200" dialup off secure ttyu1 "/usr/libexec/getty std.115200" dialup off secure ttyu2 "/usr/libexec/getty std.115200" dialup off secure ttyu3 "/usr/libexec/getty std.115200" dialup off secure # Dumb console dcons "/usr/libexec/getty std.115200" vt100 off secure Boot log with 512MB: Sat Aug 16 22:14:39 UTC 2014 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 Technology 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: 3  2  1  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 #11: Sun Aug 17 00:29:58 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 = 536870912 (512 MB) avail memory = 517558272 (493 MB) random device not loaded; using insecure entropy random: initialized simplebus0: on fdtbus0 gic0: mem 0x1c81000-0x1c81fff,0x1c82000-0x1c820ff on simplebus0 gic0: pn 0x10, arch 0x2, rev 0x1, implementer 0x43b nirqs 160 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) 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 usbus0 ugen1.1: at usbus1 uhub1: on usbus1 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 = 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=0x2 Trying to mount root from ufs:/dev/da0 []... warning: no time-of-day clock registered, system time will not be set accurately Setting hostuuid: 0a9a2ea7-2598-11e4-8932-6fc3fa39a81c. Setting hostid: 0x5e0c362e. Entropy harvesting: interrupts ethernet point_to_point swi. Starting file system checks: /dev/da0: FILE SYSTEM CLEAN; SKIPPING CHECKS /dev/da0: clean, 186061 free (821 frags, 23155 blocks, 0.3% fragmentation) Mounting local file systems:. Writing entropy file:. Setting hostname: banana-freebsd. Starting Network: lo0. 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 Starting devd. route: writing to routing socket: Network is unreachable add net default: gateway 192.168.137.1 fib 0: Network is unreachable 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. 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:. Generating RSA1 host key. 2048 bb:bf:7b:73:04:19:e0:aa:1a:8e:75:6b:fa:08:6f:c8 root@banana-freebsd (RSA1) Generating RSA host key. 2048 a5:99:fe:21:54:0c:6c:6b:bc:6d:8b:2b:03:98:dc:3c root@banana-freebsd (RSA) Generating DSA host key. 1024 c2:34:5a:6b:bd:d6:94:02:e2:ea:14:fd:b7:88:d6:cb root@banana-freebsd (DSA) Generating ECDSA host key. 256 37:c8:09:5b:8f:b2:6e:a8:34:a4:3b:10:f7:f0:21:90 root@banana-freebsd (ECDSA) Performing sanity check on sshd configuration. Starting sshd. Starting sendmail_submit. Starting sendmail_msp_queue. Starting cron. Starting background file system checks in 60 seconds. Sat Aug 16 23:00:40 UTC 2014 Aug 16 23:00:42 banana-freebsd getty[587]: open /dev/ttyv6: No such file or directory Aug 16 23:00:42 banana-freebsd getty[584]: open /dev/ttyv3: No such file or directory Aug 16 23:00:42 banana-freebsd getty[581]: open /dev/ttyv0: No such file or directory Aug 16 23:00:42 banana-freebsd getty[586]: open /dev/ttyv5: No such file or directory Aug 16 23:00:42 banana-freebsd getty[582]: open /dev/ttyv1: No such file or directory Aug 16 23:00:42 banana-freebsd getty[588]: open /dev/ttyv7: No such file or directory Aug 16 23:00:43 banana-freebsd getty[583]: open /dev/ttyv2: No such file or directory Aug 16 23:00:42 banana-freebsd getty[585]: open /dev/ttyv4: No such file or directory Cheers, TooMeeK W dniu 2014-08-15 23:44, Bernd Walter pisze: > 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. >