From owner-freebsd-arm@freebsd.org Sun Feb 3 04:40:58 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 E78D014B4CAF for ; Sun, 3 Feb 2019 04:40:57 +0000 (UTC) (envelope-from ganbold@gmail.com) Received: from mail-qt1-x835.google.com (mail-qt1-x835.google.com [IPv6:2607:f8b0:4864:20::835]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 80FDE828FC for ; Sun, 3 Feb 2019 04:40:57 +0000 (UTC) (envelope-from ganbold@gmail.com) Received: by mail-qt1-x835.google.com with SMTP id v11so12277450qtc.2 for ; Sat, 02 Feb 2019 20:40:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=K7/CDZOYFexKEJdqoBgv28QNtVLZ4gckWQwrX2QdBKI=; b=Na5aqxkuWxqODNkm1ZQb4rk0owb6GryH6KKFCd4sPPFafAULn2lPe/CTCgSBBSzTNY 4avbi1bXeQfB71bqG87FLg3NJlQPup0YxyyjWSmOokTW7KSHoq33zBSBSnartUab0vnR Inn1oBydxKANrwJqWIwnp2t0gjCXYR1I8kRhUmTcxxrxS4N35Go4evQqpgk0DQVT3u3q 9BmmxJX4yxdoIS9O2WhqhtEblsMB44cLZ4vv4uDUmIAuAcSi6ffla/i14Cqeft/3JsZJ KsRTax73DXNupkGzqGXuD2Pg0/uTgonz+4Reu0DKLCDqjRIB/2P6WcCcZeZNfefmWBDi rKdg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=K7/CDZOYFexKEJdqoBgv28QNtVLZ4gckWQwrX2QdBKI=; b=q0aR0zZsZztd9NfJkNjiS4nCD4GnWxQ7y2RxN516OlgRvMrbHKD9zV7V/8d6ET1TBH 8KZzUxh1cArKXEXA2EmYgp1ozfziFD+uVTlJEwTeBFsSWmuOej3a0ReD7PbudKJxDr5o lTGhL8zMhfIIJ//d5eYikmzp8hIOcwQu1WRcKampdQbKoBB5YNcN58KvfPRTbcihEMRJ idy7kj21XSDOjBQlUk2qg+E7GbBMuQhL7jLSqgRQnQb+gzSUItG5CztAjs8A3ovp74YI Al8tQvuZ82wkhEtv7QdfRSTM1I6lW/E/KglAgJL3xlUHAXIGc254fXM/kLQaUKH9VijQ h+lA== X-Gm-Message-State: AJcUukerSt8I7uGZQyNzx98i5PrWY3OAGkHAIpgy2PBZKpU/izZ6LxGs ZEDKbRADKuUTygIloo2Qznrl9lRUtFPKylAT9j1Xc6qL X-Google-Smtp-Source: ALg8bN5nW22o1Bpfn48ds8NcRhRLCOHc96zL+m0G3s5klWh7KzfznhJSQrXriSaX94MRWprtOHOHOGb/BN7fV+iW8JU= X-Received: by 2002:aed:3263:: with SMTP id y90mr43677688qtd.269.1549168856820; Sat, 02 Feb 2019 20:40:56 -0800 (PST) MIME-Version: 1.0 References: <20190203012316.GA77009@server.rulingia.com> In-Reply-To: <20190203012316.GA77009@server.rulingia.com> From: Ganbold Tsagaankhuu Date: Sun, 3 Feb 2019 12:40:45 +0800 Message-ID: Subject: Re: Booting FreeBSD on Rock64 To: Peter Jeremy Cc: "freebsd-arm@freebsd.org" X-Rspamd-Queue-Id: 80FDE828FC X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-6.97 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; NEURAL_HAM_SHORT(-0.97)[-0.970,0]; REPLY(-4.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 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 04:40:58 -0000 On Sun, Feb 3, 2019 at 11:46 AM Peter Jeremy wrote: > 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/releases/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-memstick.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? > Did you try to boot from network? You can stop at u-boot prompt when appears "Hit any key to stop autoboot:". Sometimes it is hard to press any key at this moment. You can set bootdelay to something not 0. Then you can do something like: setenv ipaddr 192.168.111.2 env set serverip 192.168.111.1 env set bootargs boot.nfsroot.server=${serverip} boot.nfsroot.path=/var/arm64 comconsole_speed=${baudrate} tftpboot ${kernel_addr_r} loader.efi tftpboot ${fdt_addr_r} rk3399-rockpro64.dtb bootefi ${kernel_addr_r} ${fdt_addr_r} Ganbold > > DDR version 1.13 20180428 > ID:0x805 Y > In > SRX > LPDDR3 > 786MHz > Bus Width=32 Col=10 Bank=8 Row=15/15 CS=2 Die Bus-Width=32 Size=2048MB > 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 = 0x200000 > INFO: SPSR = 0x3c9 > > U-Boot 2017.09-rockchip-ayufan-1035-gd646df03ac (Oct 26 2018 - 08:36:01 > +0000) > > 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=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX > serial=XXXXXXXXXXXXXXX > normal boot > Net: eth0: ethernet@ff540000 > Hit any key to stop autoboot: 0 > 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 = 7.4 GB (15630336 x 512) > ... 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 > 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 ... > ... > => 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 > => > > -- > Peter Jeremy >