Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Jul 2018 20:20:20 +0200
From:      Ulrich Grey <usenet@ulrich-grey.de>
To:        freebsd-arm@freebsd.org
Subject:   Booting PINE64-LTS does not work
Message-ID:  <20180730202020.472bbf8a1b785a12699703ed@ulrich-grey.de>

next in thread | raw e-mail | index | archive | help
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: <Open Firmware Device Tree>
clk_fixed0: <Fixed clock> on ofwbus0
clk_fixed1: <Fixed clock> on ofwbus0
clk_fixed2: <Fixed clock> on ofwbus0
simplebus0: <Flattened device tree simple bus> on ofwbus0
ccu_a64ng0: <Allwinner A64 Clock Control Unit NG> mem 0x1c20000-0x1c203ff on simplebus0
iichb0: <Allwinner Integrated I2C Bus Controller> mem 0x1c2b000-0x1c2b3ff irq 21 on
simplebus0 iicbus0: <OFW I2C bus> on iichb0
regfix0: <Fixed Regulator> on ofwbus0
ccu_sun8i_r0: <Allwinner SUN8I_R Clock Control Unit NG> mem 0x1f01400-0x1f014ff on
simplebus0 psci0: <ARM Power State Co-ordination Interface Driver> on ofwbus0
gic0: <ARM Generic Interrupt Controller> 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: <Allwinner
GPIO/Pinmux controller> mem 0x1c20800-0x1c20bff irq 12,13,14 on simplebus0 gpiobus0: <OFW
GPIO bus> on gpio0 gpio1: <Allwinner GPIO/Pinmux controller> mem 0x1f02c00-0x1f02fff irq
26 on simplebus0 gpiobus1: <OFW GPIO bus> on gpio1
generic_timer0: <ARMv8 Generic Timer> 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: <Allwinner RTC> mem 0x1f00000-0x1f00053 irq 24,25 on simplebus0
rtc0: registered as a time-of-day clock, resolution 1.000000s
awusbphy0: <Allwinner USB PHY> mem
0x1c19400-0x1c19413,0x1c1a800-0x1c1a803,0x1c1b800-0x1c1b803 on simplebus0 cpulist0: <Open
Firmware CPU Group> on ofwbus0 cpu0: <Open Firmware CPU> on cpulist0
cpu1: <Open Firmware CPU> on cpulist0
cpu2: <Open Firmware CPU> on cpulist0
cpu3: <Open Firmware CPU> on cpulist0
aw_mmc0: <Allwinner Integrated MMC/SD controller> mem 0x1c0f000-0x1c0ffff irq 4 on
simplebus0 mmc0: <MMC/SD bus> on aw_mmc0
ehci0: <Allwinner Integrated USB 2.0 controller> mem 0x1c1b000-0x1c1b0ff irq 10 on
simplebus0 usbus0: EHCI version 1.0
usbus0 on ehci0
ohci0: <Generic OHCI Controller> mem 0x1c1b400-0x1c1b4ff irq 11 on simplebus0
usbus1 on ohci0
gpioc0: <GPIO controller> on gpio0
uart0: <16750 or compatible> mem 0x1c28000-0x1c283ff irq 15 on simplebus0
uart0: console (115384,n,8,1)
iic0: <I2C generic I/O> on iicbus0
gpioc1: <GPIO controller> on gpio1
awg0: <Allwinner Gigabit Ethernet> mem 0x1c30000-0x1c31fff,0x1c00030-0x1c00033 irq 27 on
simplebus0 miibus0: <MII bus> on awg0
rgephy0: <RTL8169S/8110S/8211 1000BASE-T media interface> 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:
<RTL8169S/8110S/8211 1000BASE-T media interface> 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: <software crypto> Timecounters tick every 1.000 msec usbus0: 480Mbps High
Speed USB v2.0 usbus1: 12Mbps Full Speed USB v1.0 ugen0.1: <Allwinner EHCI root HUB> at
usbus0 uhub0: <Allwinner EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus0
ugen1.1: <Generic OHCI root HUB> at usbus1
uhub1: <Generic OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus1
mmcsd0: 16GB <SDHC SL16G 8.0 SN B8C11181 MFG 11/2016 by 3 SD> 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 = <AES+PMULL,SHA1,SHA2,CRC32>
 Instruction Set Attributes 1 = <>
         Processor Features 0 = <AdvSIMD,Float,EL3 32,EL2 32,EL1 32,EL0 32>
         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:
  <fstype>:<device> [options]
      Mount <device> using filesystem <fstype>
      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)
  <empty line>    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:~ # 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20180730202020.472bbf8a1b785a12699703ed>