From owner-freebsd-arm@freebsd.org Mon Jul 30 18:20:25 2018 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D7BB8105D5E2 for ; Mon, 30 Jul 2018 18:20:24 +0000 (UTC) (envelope-from usenet@ulrich-grey.de) Received: from mo6-p00-ob.smtp.rzone.de (mo6-p00-ob.smtp.rzone.de [IPv6:2a01:238:20a:202:5300::3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.smtp.rzone.de", Issuer "TeleSec ServerPass DE-2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 417C17DF73 for ; Mon, 30 Jul 2018 18:20:23 +0000 (UTC) (envelope-from usenet@ulrich-grey.de) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1532974821; s=strato-dkim-0002; d=ulrich-grey.de; h=Message-Id:Subject:To:From:Date:X-RZG-CLASS-ID:X-RZG-AUTH:From: Subject:Sender; bh=MJDZXLMe4v7uhC370Sfl2TBbNm1ashkr9gkre5uu6Mc=; b=OrFc1AUrB9GHH64WF9zqLpHi+EqfZuhvSd3c5eJh3Hrhb8b/qdoG+UM3rsVHWTH3pI QpwEeWjJweonjJM+DANf7LlZQi0fn/aiREdG+V59sDtkNIpf+jUanPz1mPBPvTsZDJdZ 2MekhLfsvCaG7JwDWn60uKdPvz3G/taUiUNu7EaaL7jKC+6qfZcOEllHS4UC7SysoWiA X9qA9LtF9kKpz2dBLd30nXJrV/GW/pgri3YqAFj55zqe94AQOHH+gsOEN8WzJAwwL4iW 1aXIfMTdldG3P99fn6lnQHtdIfrIliQopDMSnNQGkosytdWvSTVh3GZCznzyY94DcrVx n+Xg== X-RZG-AUTH: ":OX8Be0W8W+pMC3rDLL/lo2xV/LZTbZkYhPcwkcojh9vB3Wa1dWT+c76f0FX5V4KGCpMzTV5pug==" X-RZG-CLASS-ID: mo00 Received: from ap-fbsd by smtp.strato.de (RZmta 43.13 DYNA|AUTH) with ESMTPSA id L072e4u6UIKL9Jh (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (curve secp521r1 with 521 ECDH bits, eq. 15360 bits RSA)) (Client did not present a certificate) for ; Mon, 30 Jul 2018 20:20:21 +0200 (CEST) Date: Mon, 30 Jul 2018 20:20:20 +0200 From: Ulrich Grey To: freebsd-arm@freebsd.org Subject: Booting PINE64-LTS does not work Message-Id: <20180730202020.472bbf8a1b785a12699703ed@ulrich-grey.de> Organization: - X-Mailer: Sylpheed 3.5.1 (GTK+ 2.24.29; i386-portbld-freebsd11.0) 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.27 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Jul 2018 18:20:25 -0000 I have built an image FreeBSD 12.0-CURRENT #0 r336877 for the PINE64-LTS board, using the crochet fork from Curtis Villamizar: https://github.com/CurtisVillamizar/crochet I had to add user ntpd to my FreeBSD 11.1-RELEASE #0 r321309 amd64 system to create the image. If I try to boot the board, I get this: ## Script started on Sun Oct 30 14:20:25 2016 root@xterminal:~ # cu -l /dev/cuaU0 -s 115200 Connected ## U-Boot SPL 2018.03 (Jul 29 2018 - 16:19:12 +0000) DRAM: 2048 MiB Trying to boot from MMC1 U-Boot 2018.03 (Jul 29 2018 - 16:19:12 +0000) Allwinner Technology CPU: Allwinner A64 (SUN50I) Model: Pine64+ DRAM: 2 GiB MMC: SUNXI SD/MMC: 0, SUNXI SD/MMC: 1 Loading Environment from FAT... Card did not respond to voltage select! ** Bad device mmc 1 ** Failed (-5) Loading Environment from MMC... Card did not respond to voltage select! *** Warning - MMC init failed, using default environment Failed (-5) In: serial Out: serial Err: serial Net: phy interface7 eth0: ethernet@01c30000 starting USB... USB0: USB EHCI 1.00 USB1: USB OHCI 1.0 scanning bus 0 for devices... 1 USB Device(s) found scanning usb for storage devices... 0 Storage Device(s) found Hit any key to stop autoboot: 2 ### 1 ### 0 switch to partitions #0, OK mmc0 is current device Scanning mmc 0:1... Found EFI removable media binary efi/boot/bootaa64.efi libfdt fdt_check_header(): FDT_ERR_BADMAGIC Scanning disks on usb... Disk usb0 not ready Disk usb1 not ready Disk usb2 not ready Disk usb3 not ready Scanning disks on mmc... Card did not respond to voltage select! MMC Device 2 not found MMC Device 3 not found Found 3 disks 84296 bytes read in 34 ms (2.4 MiB/s) libfdt fdt_check_header(): FDT_ERR_BADMAGIC ## Starting EFI application at 40080000 ... #[?25h#[2J >> FreeBSD EFI boot block Loader path: /boot/loader.efi Initializing modules: ZFS UFS Load Path: /\efi\boot\bootaa64.efi Load Device: /VenHw(e61d73b9-a384-4acc-aeab-82e828f3628b)/USB(0x6,0x0)/HD (1,0x01,0,0x403b,0x1ffe0) Probing 3 block devices.....* done ZFS found no pools UFS found 1 partition #[?25h#[18tConsoles: EFI console #[?25h|#/#FreeBSD/arm64 EFI loader, Revision 1.1 (Mon Jul 30 02:26:18 CEST 2018 root@noname.privat) Command line arguments: loader.efi EFI version: 2.70 EFI Firmware: Das U-Boot (rev 0.00) Console: efi (0) Load Device: /VenHw(e61d73b9-a384-4acc-aeab-82e828f3628b)/USB(0x6,0x0)/HD (2,0x01,0,0x24400,0x71f400) Trying ESP: /VenHw(e61d73b9-a384-4acc-aeab-82e828f3628b)/USB(0x6,0x0)/HD (2,0x01,0,0x24400,0x71f400) Setting currdev to disk0p2: -#\#|#/#-#\#|#/#-#\#|#/#-#\#|#/#-#\#|#/#-#\#|#/#-#\#|#/#-#\#|#/#-#\#|#/#-#\#|#/#-#\#|#/#-# \#|#/#-#\#|#/#-#\#|#/#-#\#|#/#-#\#|#/#-#\#|#/#-#\#|#/#-#\#| #Loading /boot/defaults/loader.conf /#-#\#|#/#-#\#|#/#-#\#|#/#-#\#|#/#-#\#|#/#-#\#|#/#-#\#|#/#-#\#|#/#-#\#|#/#-#\#|#/#-#\#| #/#-#\#|#/#-#\#|#/#-#\#|#/#-#\#|#/#-#\#|#/#-#\#|#/#-#\#|#/#-#\#|#/#-#\#|#/#-#\#|#/#-#\#| ##/#-#\#|#/#/boot/kernel/kernel text=0x8b1df2 -#\#|#/#-#\#|#/#-#\#|#/#-#\#|#/#-#\#|#/#-# ##\#|#/#-#\#|#/#-#\#|#/#-#\#|#/#-#\#|#/#-#\#|#/#-#\#|#/#-#\#|#/#-#\#|#/#-#\#|#/#-#\#|#/#-# ##\#|#/#-#\#|#data=0x13f1d0+0x7d397c /#-#\#|#/#-#\#|#/#-#syms=[0x8+0x11cac0\#|#/#-#\#| ###/#-#\#+0x8+0x10d3f1|#/#-#\#|#/#-#\#|#] /#-#\#|#/#-#\#|#/#-#\#|#efi-autoresizecons: Neither Graphics Output Protocol nor Universal Graphics Adapter present Hit [Enter] to boot immediately, or any other key for command prompt. Booting [/boot/kernel/kernel] in 9 seconds... Booting [/boot/kernel/kernel] in 8 seconds... Booting [/boot/kernel/kernel] in 7 seconds... Booting [/boot/kernel/kernel] in 6 seconds... Booting [/boot/kernel/kernel] in 5 seconds... Booting [/boot/kernel/kernel] in 4 seconds... Booting [/boot/kernel/kernel] in 3 seconds... Booting [/boot/kernel/kernel] in 2 seconds... Booting [/boot/kernel/kernel] in 1 second... Booting [/boot/kernel/kernel]... /#-#\#|#/#-#\#|#/#-#\#|#Using DTB provided by EFI at 0x48000000. KDB: debugger backends: ddb KDB: current backend: ddb Copyright (c) 1992-2018 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 12.0-CURRENT #0 r336877: Mon Jul 30 02:25:51 CEST 2018 root@noname.privat:/usr/home/CROCHET/test/crochet.git/branches/pine64-lts/work/obj/usr/home/CROCHET/SRC/head/arm64.aarch64/sys/GENERIC arm64 FreeBSD clang version 6.0.1 (tags/RELEASE_601/final 335540) (based on LLVM 6.0.1) WARNING: WITNESS option enabled, expect reduced performance. VT: init without driver. Starting CPU 1 (1) Starting CPU 2 (2) Starting CPU 3 (3) FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs arc4random: no preloaded entropy cache random: entropy device external interface MAP 48000000 mode 2 pages 4 MAP b8f25000 mode 2 pages 1 MAP bdfbb000 mode 2 pages 1 kbd0 at kbdmux0 ofwbus0: clk_fixed0: on ofwbus0 clk_fixed1: on ofwbus0 clk_fixed2: on ofwbus0 simplebus0: on ofwbus0 ccu_a64ng0: mem 0x1c20000-0x1c203ff on simplebus0 iichb0: mem 0x1c2b000-0x1c2b3ff irq 21 on simplebus0 iicbus0: on iichb0 regfix0: on ofwbus0 ccu_sun8i_r0: mem 0x1f01400-0x1f014ff on simplebus0 psci0: on ofwbus0 gic0: mem 0x1c81000-0x1c81fff,0x1c82000-0x1c83fff,0x1c84000-0x1c85fff,0x1c86000-0x1c87fff irq 23 on simplebus0 gic0: pn 0x2, arch 0x2, rev 0x1, implementer 0x43b irqs 224 gpio0: mem 0x1c20800-0x1c20bff irq 12,13,14 on simplebus0 gpiobus0: on gpio0 gpio1: mem 0x1f02c00-0x1f02fff irq 26 on simplebus0 gpiobus1: on gpio1 generic_timer0: irq 0,1,2,3 on ofwbus0 Timecounter "ARM MPCore Timecounter" frequency 24000000 Hz quality 1000 Event timer "ARM MPCore Eventtimer" frequency 24000000 Hz quality 1000 rtc0: mem 0x1f00000-0x1f00053 irq 24,25 on simplebus0 rtc0: registered as a time-of-day clock, resolution 1.000000s awusbphy0: mem 0x1c19400-0x1c19413,0x1c1a800-0x1c1a803,0x1c1b800-0x1c1b803 on simplebus0 cpulist0: on ofwbus0 cpu0: on cpulist0 cpu1: on cpulist0 cpu2: on cpulist0 cpu3: on cpulist0 aw_mmc0: mem 0x1c0f000-0x1c0ffff irq 4 on simplebus0 mmc0: on aw_mmc0 ehci0: mem 0x1c1b000-0x1c1b0ff irq 10 on simplebus0 usbus0: EHCI version 1.0 usbus0 on ehci0 ohci0: mem 0x1c1b400-0x1c1b4ff irq 11 on simplebus0 usbus1 on ohci0 gpioc0: on gpio0 uart0: <16750 or compatible> mem 0x1c28000-0x1c283ff irq 15 on simplebus0 uart0: console (115384,n,8,1) iic0: on iicbus0 gpioc1: on gpio1 awg0: mem 0x1c30000-0x1c31fff,0x1c00030-0x1c00033 irq 27 on simplebus0 miibus0: on awg0 rgephy0: PHY 0 on miibus0 rgephy0: none, 10baseT, 10baseT-FDX, 10baseT-FDX-flow, 100baseTX, 100baseTX-FDX, 100baseTX-FDX-flow, 1000baseT, 1000baseT-master, 1000baseT-FDX, 1000baseT-FDX-master, 1000baseT-FDX-flow, 1000baseT-FDX-flow-master, auto, auto-flow rgephy1: PHY 1 on miibus0 rgephy1: none, 10baseT, 10baseT-FDX, 10baseT-FDX-flow, 100baseTX, 100baseTX-FDX, 100baseTX-FDX-flow, 1000baseT, 1000baseT-master, 1000baseT-FDX, 1000baseT-FDX-master, 1000baseT-FDX-flow, 1000baseT-FDX-flow-master, auto, auto-flow awg0: Ethernet address: 02:ba:87:48:13:ae cryptosoft0: Timecounters tick every 1.000 msec usbus0: 480Mbps High Speed USB v2.0 usbus1: 12Mbps Full Speed USB v1.0 ugen0.1: at usbus0 uhub0: on usbus0 ugen1.1: at usbus1 uhub1: on usbus1 mmcsd0: 16GB at mmc0 50.0MHz/4bit/32768-block Release APs...arc4random: no preloaded entropy cache mmc0: done ACMD42 failed, RESULT: 4 CPU 0: ARM Cortex-A53 r0p4mmc0: affinity:Card at relative address 43690 failed to set bus width 0 Instruction Set Attributes 0 = Instruction Set Attributes 1 = <> Processor Features 0 = Processor Features 1 = <0> Memory Model Features 0 = <4k Granule,64k Granule,MixedEndian,S/NS Mem,16bit ASID,1TB PA> Memory Model Features 1 = <> Memory Model Features 2 = <32b CCIDX,48b VA> Debug Features 0 = <2 CTX Breakpoints,4 Watchpoints,6 Breakpoints,PMUv3,Debug v8> Debug Features 1 = <0> Auxiliary Features 0 = <0> Auxiliary Features 1 = <0> CPU 1: ARM Cortex-A53 r0p4 affinity: 1 CPU 2: ARM Cortex-A53 r0p4 affinity: 2 CPU 3: ARM Cortex-A53 r0p4 affinity: 3 WARNING: WITNESS option enabled, expect reduced performance. Root mount waiting for: usbus1 usbus0 uhub1: 1 port with 1 removable, self powered uhub0: 1 port with 1 removable, self powered Loader variables: Manual root filesystem specification: : [options] Mount using filesystem and with the specified (optional) option list. eg. ufs:/dev/da0s1a zfs:tank cd9660:/dev/cd0 ro (which is equivalent to: mount -t cd9660 -o ro /dev/cd0 /) ? List valid disk boot devices . Yield 1 second (for background tasks) Abort manual input mountroot> random: unblocking device. arc4random: no preloaded entropy cache arc4random: no preloaded entropy cache panic: mountroot: unable to (re-)mount root. cpuid = 2 time = 167 KDB: stack backtrace: db_trace_self() at db_trace_self_wrapper+0x28 pc = 0xffff000000688e14 lr = 0xffff0000000dad40 sp = 0xffff00005891d590 fp = 0xffff00005891d7a0 db_trace_self_wrapper() at vpanic+0x1a8 pc = 0xffff0000000dad40 lr = 0xffff000000388c98 sp = 0xffff00005891d7b0 fp = 0xffff00005891d860 vpanic() at panic+0x44 pc = 0xffff000000388c98 lr = 0xffff000000388d48 sp = 0xffff00005891d870 fp = 0xffff00005891d8f0 panic() at vfs_mountroot+0x1610 pc = 0xffff000000388d48 lr = 0xffff00000044d1c8 sp = 0xffff00005891d900 fp = 0xffff00005891dab0 vfs_mountroot() at start_init+0x28 pc = 0xffff00000044d1c8 lr = 0xffff000000321ee4 sp = 0xffff00005891dac0 fp = 0xffff00005891db50 start_init() at fork_exit+0x7c pc = 0xffff000000321ee4 lr = 0xffff000000349fa4 sp = 0xffff00005891db60 fp = 0xffff00005891db90 fork_exit() at fork_trampoline+0x10 pc = 0xffff000000349fa4 lr = 0xffff0000006a4cdc sp = 0xffff00005891dba0 fp = 0x0000000000000000 KDB: enter: panic [ thread pid 1 tid 100002 ] Stopped at 0 db> root@xterminal:~ #