From owner-freebsd-arm@freebsd.org Mon Jul 30 18:32:08 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 92077105DB81 for ; Mon, 30 Jul 2018 18:32:08 +0000 (UTC) (envelope-from manu@bidouilliste.com) Received: from mail.blih.net (mail.blih.net [212.83.177.182]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.blih.net", Issuer "mail.blih.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 153C07EA98 for ; Mon, 30 Jul 2018 18:32:07 +0000 (UTC) (envelope-from manu@bidouilliste.com) Received: from mail.blih.net (mail.blih.net [212.83.177.182]) by mail.blih.net (OpenSMTPD) with ESMTP id 735b8a75; Mon, 30 Jul 2018 20:32:00 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=bidouilliste.com; h=date :from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; s=mail; bh=XSiviyMfGWi4UJ4IbY+QPEYYX3Y=; b=I8MjKRShrrNRJ1071gAim9sexzYM 4lFS734Vyfl8h51dpXedQMzHa9QUekKcuxGkjR7hQZ/pkE9VcKIWnEssUbGMdPdO vEDiKmDlRdcfGkqYApYbdjm9+WIFJuWB7LEE0Dbb9a+hjyienxOgiDqoC+oHar+6 FNzMSJ0Qj0gVhiM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=bidouilliste.com; h=date :from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; q=dns; s= mail; b=ZTRzeWSimOb3JW3ANGQ7TymrbMHhyNwaczAcbeKSclJdxhGSNH6jPOK5 97zuZH/w7Fw6utlMqiNHyaTNf+gl9nAnGpbTekcd2e0Fzc8tL6JbTl3VATYlQemf bqgQXBgCupm2Sb3LqWekZYyEP0lynYxCzKz523/9rP0Fzq+EbXY= Received: from skull.home.blih.net (ip-9.net-89-3-105.rev.numericable.fr [89.3.105.9]) by mail.blih.net (OpenSMTPD) with ESMTPSA id ff2c1159 TLS version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO; Mon, 30 Jul 2018 20:31:59 +0200 (CEST) Date: Mon, 30 Jul 2018 20:31:59 +0200 From: Emmanuel Vadot To: Ulrich Grey Cc: freebsd-arm@freebsd.org Subject: Re: Booting PINE64-LTS does not work Message-Id: <20180730203159.ec4e72ee641f6a13e05174f2@bidouilliste.com> In-Reply-To: <20180730202020.472bbf8a1b785a12699703ed@ulrich-grey.de> References: <20180730202020.472bbf8a1b785a12699703ed@ulrich-grey.de> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.32; amd64-portbld-freebsd12.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:32:08 -0000 On Mon, 30 Jul 2018 20:20:20 +0200 Ulrich Grey wrote: > 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 God we really have to kill crochet. Now people are making forks ... > 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 U-Boot should be 2018.07 > 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: GPIO/Pinmux controller> mem 0x1c20800-0x1c20bff irq 12,13,14 on simplebus0 gpiobus0: GPIO bus> 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: Firmware CPU Group> 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 That means the kernel doesn't have a root device configured. > 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:~ # > _______________________________________________ > freebsd-arm@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-arm > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org" Best way to use FreeBSD on Pine64-LTS is to download the Pine64 snapshot image and override u-boot with the u-boot-sopine. Or wait until https://reviews.freebsd.org/D16487 is commited. -- Emmanuel Vadot