From owner-freebsd-arm@freebsd.org Fri Mar 2 20:19:14 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 3E0EAF42BF7 for ; Fri, 2 Mar 2018 20:19:14 +0000 (UTC) (envelope-from hyun@caffeinated.codes) Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E3082766E9 for ; Fri, 2 Mar 2018 20:19:13 +0000 (UTC) (envelope-from hyun@caffeinated.codes) Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 18B3B20083 for ; Fri, 2 Mar 2018 15:19:13 -0500 (EST) Received: from web5 ([10.202.2.215]) by compute7.internal (MEProxy); Fri, 02 Mar 2018 15:19:13 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= caffeinated.codes; h=content-transfer-encoding:content-type:date :from:message-id:mime-version:subject:to:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=AgZjLg/JAIDiB5phy0tj5WGOEhmdla/gVVHSuoZtU 8o=; b=Nladg8mGSfiSoqk88FqRbuSq3pLE2ejHCOaVAznanPhaakRVGJxk1bZzF xOwnVVdPvKE28fHlYJbRBkDE7Pl7AsUD7JniI1qpY7ESdT0AMySUS9/yoaS8fXqq 2hRiWDKt/5p6Emcaszqt6HkQVZNc98aQWz5UBRXrtItJqA7ZxqJfaY4izW8w8TlB l8zCcngl6MWyDplkStRZKZa52HkIXw+V6cDHanBQnQDF6cLp+bOtESgO+EEtHW3W EwKbv+eM/+P1C2/IFX46EHx/qlszItEjN46tRPCplyMwB3GsBuxRulRKWLcXD8h+ DJ0oBRh5E7Ebma5OcgW3VqCjmC85w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:message-id:mime-version:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; bh=AgZjLg/JAIDiB5phy0tj5WGOEhmdl a/gVVHSuoZtU8o=; b=B6bvZ9BlBEucSWnh3lJfOuVqApvxv2SoOv0oDuUpndr3y WkpuHMxFPqV3bJJwZJ/+nZ8NNcWLvVtCoOfMaSWf5OC1hb+9OhNPw8b1MgPJEI7Y 8JBXPUWZSCZlW3xVOvLftDY3ksMDi4MWwmN23cssy2vwiyfVUfiNkdNHKJ8WhD56 w6E7x3KvXOcquIJvtk5e9ZTdF+bDggWOPET9Nk8ET2teZZRcmdpl1qGH8E9cUfrf 5ULQCEFsIM5IzaM9/W9q+viCJpN2HHLKDlbxyeQn5J34U1FV3fdCf1NfHUhgjVAe OWxhehstNW3eMtCQsvg2C8kHierbUHJnsIvTKMcxA== X-ME-Sender: Received: by mailuser.nyi.internal (Postfix, from userid 99) id ECEF89E21F; Fri, 2 Mar 2018 15:19:12 -0500 (EST) Message-Id: <1520021952.1789846.1289530984.1590B651@webmail.messagingengine.com> From: Hyun Hwang To: freebsd-arm@freebsd.org MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" X-Mailer: MessagingEngine.com Webmail Interface - ajax-b08ff009 Subject: RPI3 boot failure after self-built update to r330131 (Subtopic: How to properly update CURRENT on RPi3?) Date: Fri, 02 Mar 2018 15:19:12 -0500 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Mar 2018 20:19:14 -0000 Hi, Recently after replacing my Transcend microSD card, I haven't had any chance to fiddle with my RPi3 until now. Yesterday I wrote the stock image of r330034 to my RPi3 and immediately tried a system update using the source. Now it cannot find the kernel and cannot boot. Of course, the whole build on RPi3 itself is extremely slow, so I used another faster amd64 machine to cross-build it. I used this command on the builder: `make -j8 TARGET=arm64 TARGET_ARCH=aarch64 KERNCONF=GENERIC buildworld buildkernel`. (I do not have `/etc/make.conf` and `/etc/src.conf`, so it is a vanilla build without any customization.) Then after I mounted my SD card (`mount /dev/da0s2 /mnt/ && mount -tmsdosfs /dev/da0s1 /mnt/boot/msdos/`), I issued install: `make TARGET=arm64 TARGET_ARCH=aarch64 KERNCONF=GENERIC DESTDIR=/mnt/ installkernel installworld`. After running mergemaster (`mergemaster -Ui -Aaarch64 -D/mnt/`; I'm deferring use of `etcupdate` for now), I copied everything from `/usr/local/share/u-boot/u-boot-rpi3/` to `/mnt/boot/msdos/`, and `/mnt/boot/boot1.efi` to `/mnt/boot/msdos/EFI/BOOT/bootaarch64.efi`. I referenced crochet's RaspberryPi3/setup.sh to know which files I need to copy. Now, the boot fails with `can't find 'kernel'` message. I have doubled-checked that `/mnt/boot/kernel/kernel` exists before unmounting, and it is still there. My `/mnt/boot/loader.conf` has this line only: `autoboot_delay="1"`. Did I do something wrong during above steps (I use this method on my RPi2) or is there any other specific update options I should have followed? -- Hyun Hwang