From owner-freebsd-arm@freebsd.org Sun Feb 3 01:23:35 2019 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 283AC14AD1D1 for ; Sun, 3 Feb 2019 01:23:35 +0000 (UTC) (envelope-from peter@rulingia.com) Received: from vtr.rulingia.com (vtr.rulingia.com [IPv6:2001:19f0:5801:ebe:5400:1ff:fe53:30fd]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "vtr.rulingia.com", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 1F7817443B for ; Sun, 3 Feb 2019 01:23:33 +0000 (UTC) (envelope-from peter@rulingia.com) Received: from server.rulingia.com (ppp59-167-167-3.static.internode.on.net [59.167.167.3]) by vtr.rulingia.com (8.15.2/8.15.2) with ESMTPS id x131NNDb080037 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Sun, 3 Feb 2019 12:23:29 +1100 (AEDT) (envelope-from peter@rulingia.com) X-Bogosity: Ham, spamicity=0.000000 Received: from server.rulingia.com (localhost.rulingia.com [127.0.0.1]) by server.rulingia.com (8.15.2/8.15.2) with ESMTPS id x131NG6h077381 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Sun, 3 Feb 2019 12:23:17 +1100 (AEDT) (envelope-from peter@server.rulingia.com) Received: (from peter@localhost) by server.rulingia.com (8.15.2/8.15.2/Submit) id x131NGWN077380 for freebsd-arm@freebsd.org; Sun, 3 Feb 2019 12:23:16 +1100 (AEDT) (envelope-from peter) Date: Sun, 3 Feb 2019 12:23:16 +1100 From: Peter Jeremy To: freebsd-arm@freebsd.org Subject: Booting FreeBSD on Rock64 Message-ID: <20190203012316.GA77009@server.rulingia.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="BXVAT5kNtrzKuDFl" Content-Disposition: inline X-PGP-Key: http://www.rulingia.com/keys/peter.pgp User-Agent: Mutt/1.11.1 (2018-12-01) X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 Feb 2019 01:23:35 -0000 --BXVAT5kNtrzKuDFl Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable I'm trying to boot FreeBSD from a USB stick on my Rock64 and running into problems. I've looked through the web and haven't gotten anywhere. It boots Ubuntu 18.04.1 off an MMC so the board itself is OK. I've reflashed the SPI with https://github.com/ayufan-rock64/linux-u-boot/r= eleases/download/2017.09-rockchip-ayufan-1035-gd646df03ac/u-boot-flash-spi-= rock64.img.xz using the instructions at https://github.com/ayufan-rock64/linux-build/blob= /master/recipes/flash-spi.md I've uncompressed https://download.freebsd.org/ftp/snapshots/arm64/aarch64/= ISO-IMAGES/13.0/FreeBSD-13.0-CURRENT-arm64-aarch64-20190131-r343598-memstic= k.img.xz onto a USB stick and tried booting with the output below. I have seen some comments about needing a SDcard present but I get the same results with or without a blank SDcard inserted. The positive things: * It's finding, loading and running the FreeBSD EFI loader The negative things: * The SPI loader isn't finding any FDT * The EFI loader isn't finding any bootable partition. Does anyone have any suggestions as to what to try next? DDR version 1.13 20180428 ID:0x805 Y In SRX LPDDR3 786MHz Bus Width=3D32 Col=3D10 Bank=3D8 Row=3D15/15 CS=3D2 Die Bus-Width=3D32 Size= =3D2048MB ddrconfig:6 OUT U-Boot SPL 2017.09-rockchip-ayufan-1035-gd646df03ac (Oct 26 2018 - 08:35:43) setup_ddr_param 1 booted from SPI flash Trying to boot from SPI NOTICE: BL31: v1.3(debug):9d3f591 NOTICE: BL31: Built : 14:39:02, Jan 17 2018 NOTICE: BL31:Rockchip release version: v1.3 INFO: ARM GICv2 driver initialized INFO: Using opteed sec cpu_context! INFO: boot cpu mask: 1 INFO: plat_rockchip_pmu_init: pd status 0xe INFO: BL31: Initializing runtime services WARNING: No OPTEE provided by BL2 boot loader, Booting device without OPTEE= init ialization. SMC`s destined for OPTEE will return SMC_UNK ERROR: Error initializing runtime service opteed_fast INFO: BL31: Preparing for EL3 exit to normal world INFO: Entry point address =3D 0x200000 INFO: SPSR =3D 0x3c9 U-Boot 2017.09-rockchip-ayufan-1035-gd646df03ac (Oct 26 2018 - 08:36:01 +00= 00) Model: Pine64 Rock64 DRAM: 2 GiB MMC: rksdmmc@ff520000: 0, rksdmmc@ff500000: 1 SF: Detected gd25q128 with page size 256 Bytes, erase size 4 KiB, total 16 = MiB *** Warning - bad CRC, using default environment In: serial@ff130000 Out: serial@ff130000 Err: serial@ff130000 Model: Pine64 Rock64 misc_init_r cpuid=3DXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX serial=3DXXXXXXXXXXXXXXX normal boot Net: eth0: ethernet@ff540000 Hit any key to stop autoboot: 0=20 Card did not respond to voltage select! mmc_init: -95, time 9 Card did not respond to voltage select! mmc_init: -95, time 9 starting USB... USB0: USB EHCI 1.00 USB1: USB OHCI 1.0 USB2: Core Release: 3.10a USB3: Register 2000140 NbrPorts 2 Starting the controller USB XHCI 1.10 scanning bus 0 for devices... 2 USB Device(s) found scanning bus 1 for devices... 1 USB Device(s) found scanning bus 2 for devices... 1 USB Device(s) found scanning bus 3 for devices... 1 USB Device(s) found scanning usb for storage devices... 1 Storage Device(s) found Device 0: Vendor: SanDisk Rev: 1.00 Prod: Cruzer Facet Type: Removable Hard Disk Capacity: 7632.0 MB =3D 7.4 GB (15630336 x 512) =2E.. is now current device Scanning usb 0:1... Found EFI removable media binary efi/boot/bootaa64.efi reading efi/boot/bootaa64.efi 632416 bytes read in 73 ms (8.3 MiB/s) libfdt fdt_check_header(): FDT_ERR_BADMAGIC ## Starting EFI application at 02000000 ... Card did not respond to voltage select! mmc_init: -95, time 9 Scanning disk rksdmmc@ff520000.blk... MMC: block number 0x1 exceeds max(0x0) MMC: block number 0x1 exceeds max(0x0) MMC: block number 0x44 exceeds max(0x0) Card did not respond to voltage select! mmc_init: -95, time 10 Scanning disk rksdmmc@ff500000.blk... MMC: block number 0x1 exceeds max(0x0) MMC: block number 0x1 exceeds max(0x0) MMC: block number 0x44 exceeds max(0x0) Scanning disk usb_mass_storage.lun0... Found 3 disks Consoles: EFI console =20 FreeBSD/arm64 EFI loader, Revision 1.1 Command line arguments: loader.efi EFI version: 2.05 EFI Firmware: Das U-boot (rev 0.00) Console: efi (0) Load Path: \efi\boot\bootaa64.efi Load Device: UNKNOWN(0001,0004) Failed to find bootable partition "Synchronous Abort" handler, esr 0x96000210 ELR: 7cec5768 LR: 7ce957a4 x0 : 0000000000000000 x1 : 0000000000000000 x2 : 0000000000000000 x3 : 0000000000000000 x4 : 000000007cece0d0 x5 : 0000000000000075 x6 : 000000007cec4c70 x7 : 0000000000000064 x8 : 0000000000000000 x9 : 0000000000000074 x10: 000000007ceeeb20 x11: 0000000000000061 x12: 0000000000000000 x13: 000000007af69b8c x14: 00000000756c2e72 x15: 0000000000000000 x16: 0000000000000045 x17: 0000000000000000 x18: 0000000000000000 x19: 000000007cee91e8 x20: 000000007cecc77e x21: 0000000000000000 x22: 0000000000000000 x23: 000000007ceeeb28 x24: 0000000000000000 x25: 000000007df02390 x26: 8000000000000005 x27: 000000007ceeddc8 x28: 0000000000000000 x29: 000000007cee91a0 Resetting CPU ... =2E.. =3D> part list usb 0 Partition Map for USB device 0 -- Partition Type: EFI Part Start LBA End LBA Name Attributes Type GUID Partition GUID 1 0x00000003 0x0001041a "" attrs: 0x0000000000000000 type: c12a7328-f81f-11d2-ba4b-00a0c93ec93b guid: 0e587b74-2529-11e9-9906-002590ec5bf2 2 0x0001041b 0x001f2e1a "" attrs: 0x0000000000000000 type: 516e7cb4-6ecf-11d6-8ff8-00022d09712b guid: 0e587b7d-2529-11e9-9906-002590ec5bf2 =3D>=20 --=20 Peter Jeremy --BXVAT5kNtrzKuDFl Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQKTBAEBCgB9FiEE7rKYbDBnHnTmXCJ+FqWXoOSiCzQFAlxWQoRfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEVF QjI5ODZDMzA2NzFFNzRFNjVDMjI3RTE2QTU5N0EwRTRBMjBCMzQACgkQFqWXoOSi CzTGaBAAkve0ZvyxXAz02RsiI8zYZ9TagPZN6AaY9Piy0BmJRn8ExXxROp5wQ9ZE ruYnr4vEUq5Ugu5A0OowbGOmHj1XenzIx1oIvO1Pkw1xcTRKpckracaIa/yKMNzw AiD+t3ZwpncEKIPypfXzhfSzioQjSNmTGBQwsUjGtjwi6i0TyHgWg5ljpyeVJ18K NH5zIsjr6PC0luBwXO+YtBtVtovobF/VBWLSJRu4/HLqI4cOZFaIYBcz3HReINB5 69PkQAq2xco2tUt1gmYTnbph1Ci3uC1ekDNC+a7KT/UlYDAGCSOu7geMF4B5r472 w+PQ9+8b9t+W87yBBebhMr+gUJRdOtnCEzhiH/GSofonxELedW7EbzjrHM6vQnu9 rIIezhx5bBIkpWyX/uCphJaFXfnPnCBizM3cJqWLDsJcXRuPbsxwtrPBHcCRPz1o uu0Nv0+lYocKH7DUPPefKWUei/V4+KjMUgEPl4xztBQLupo7SKpji9anpzE0NIJn e+ITWTakYMcTYfI6pZv6r9NKXrxZZCnVdpTAilSjwRmoZ0bXY7H6VcpHINM5er3m aCbsO8WeNbyLkCCrSzbQ7Nwj3LkJLivzA3Xwwayisx5p4Em2bHAdC0HztrW6hyZa 9vOZiHbiOW7mcG/IoD0kNXnKAi0sK134ZYdyT8J51zp+UMlIWME= =g46q -----END PGP SIGNATURE----- --BXVAT5kNtrzKuDFl--