From owner-freebsd-arm@freebsd.org Wed May 3 16:39:27 2017 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C54E2D5C1D0 for ; Wed, 3 May 2017 16:39:27 +0000 (UTC) (envelope-from mattia.rossi.mate@gmail.com) Received: from mail-wm0-x243.google.com (mail-wm0-x243.google.com [IPv6:2a00:1450:400c:c09::243]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 5654B13B8 for ; Wed, 3 May 2017 16:39:27 +0000 (UTC) (envelope-from mattia.rossi.mate@gmail.com) Received: by mail-wm0-x243.google.com with SMTP id u65so14080325wmu.3 for ; Wed, 03 May 2017 09:39:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:reply-to:subject:references:to:cc:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=FAItVlNYJdGw9mh30JcpwLWbfVRvKruitSS12P3LEUk=; b=FS0qHN3UlE8IqWUV9DgKixc0LE09Yoi4A/REm4WpDwg0ZNEJbtdsgsDEiUbcZ7iixb cZwejCD+2ljbM81y+/3qLEqy7U7X+Q7FSAObafOY/cnCOlbG0IQg8f2/N5w/s/ZStVD0 03bZ0Hw+goklN7nhgUOMWxWQtU9z8zTIEQAhDbFuiBK8XMz6ZEh57Q/4EvFAw2JHp6VM LGLM4dYditpjEpw4UIEPJRYfXwtlQYO70lX5mFMNyBLDwGgHeKCXZd4RVrRok6Q+XiTP 4E5IwiPragjc0dDA1x4UQeJ3IilHjb2X8xvMr2xsUC58Jp+jmOb6s7qw+Qm0ZliXxedn sWbQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:reply-to:subject:references:to:cc :message-id:date:user-agent:mime-version:in-reply-to :content-transfer-encoding; bh=FAItVlNYJdGw9mh30JcpwLWbfVRvKruitSS12P3LEUk=; b=SKKy34kvrb+nWGG8+zqVv/0/j0fLHsPobKUeSDOpnsxA+xKYIyRajTMV/OhzoTNqNH ojVOHCJSo+ayn5h1YeTf8S9s2dWgqOmsnaOOP6Lt/+XSdwRzZjdKKzLdoZlLmLBvWrUD wv86BMVLYZqp7NT6dsKCJj5GnhhYPBbTvXWpo02obnGGa7mzLYtqiIcPxRYwBoNfm5s4 SwyQnML4K35+ZzYDvQk9HnhZ11xZXfICB4qJ7RmuU9db0f5GgZEGAcrJ8riUCwZcOsvT tNKNhF1cm2Ef9sqyEzlugROZ8kt1Qm7m/6jrpGVQeJFOQtC81f8L8LkmIm17/hSoUlEy s3Lg== X-Gm-Message-State: AN3rC/6araQs0qFEYrxt3xNREruFUPkwvZDXMo6jypWMpns23z5kwXgs HkxUB6CAJqXIlv3G X-Received: by 10.28.55.3 with SMTP id e3mr896164wma.7.1493829565440; Wed, 03 May 2017 09:39:25 -0700 (PDT) Received: from ?IPv6:2a02:aa16:1101:d800::5? ([2a02:aa16:1101:d800::5]) by smtp.googlemail.com with ESMTPSA id 184sm5294322wmr.30.2017.05.03.09.39.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 03 May 2017 09:39:24 -0700 (PDT) From: Mattia Rossi X-Google-Original-From: Mattia Rossi Reply-To: mattia.rossi.mate@gmail.com Subject: Re: OrangePi-Plus-2 boot process hangs in ubldr.bin References: <20170502105007.0424f8cb7c8021951bf04495@bidouilliste.com> To: Emmanuel Vadot , mattia.rossi.mate@gmail.com Cc: ARM Message-ID: <7ee97ba7-3dd2-6df8-8d06-776d01a772be@gmail.com> Date: Wed, 3 May 2017 18:39:18 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <20170502105007.0424f8cb7c8021951bf04495@bidouilliste.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 May 2017 16:39:27 -0000 On 02/05/17 10:50, Emmanuel Vadot wrote: > On Sun, 30 Apr 2017 13:07:23 +0200 > Mattia Rossi wrote: > >> Hi all, > Hello, > >> I've tried to upgrade u-boot on the OrangePi-Plus-2 (not the 2e) from >> mainline u-boot and on the outside it looks fine. > When you say mainline, what exact version did you took ? > I assume you took some patches also as it seems that your u-boot have > API support. > >> U-boot loads, and it boots ubldr.bin. >> >> I'm using the orangepi-plus-2e.dtb as it has been working well for this >> board before (It all used to work). >> >> Now ubldr can't boot the kernel though, and I don't know why. I've >> rebuilt ubldr, world and kernel from svn. Revision number is 317594 >> >> Any help would be appreciated >> >> The output before it stops is: >> >> U-Boot SPL 2017.05-rc2-00061-g12af9399e7 (Apr 25 2017 - 19:27:44) >> DRAM: 2048 MiB >> Trying to boot from MMC1 >> >> >> U-Boot 2017.05-rc2-00061-g12af9399e7 (Apr 25 2017 - 19:27:44 +0200) >> Allwinner Technology >> >> CPU: Allwinner H3 (SUN8I 1680) >> Model: Xunlong Orange Pi Plus 2E >> I2C: ready >> DRAM: 2 GiB >> MMC: SUNXI SD/MMC: 0, SUNXI SD/MMC: 1 >> In: serial >> Out: serial >> Err: serial >> Net: phy interface7 >> eth0: ethernet@1c30000 >> starting USB... >> USB0: USB EHCI 1.00 >> USB1: USB OHCI 1.0 >> USB2: USB EHCI 1.00 >> USB3: USB OHCI 1.0 >> USB4: USB EHCI 1.00 >> USB5: USB OHCI 1.0 >> scanning bus 0 for devices... 1 USB Device(s) found >> scanning bus 2 for devices... 1 USB Device(s) found >> scanning bus 4 for devices... 1 USB Device(s) found >> scanning usb for storage devices... 0 Storage Device(s) found >> Hit any key to stop autoboot: 0 >> Booting from: mmc 0 ubldr.bin >> reading ubldr.bin >> 237168 bytes read in 34 ms (6.7 MiB/s) >> ## No elf image at address 0x42000000 >> ## Starting application at 0x42000000 ... >> Consoles: U-Boot console >> Compatible U-Boot API signature found @0xbbf3f690 >> >> FreeBSD/armv6 U-Boot loader, Revision 1.2 >> (Sat Apr 29 19:16:42 CEST 2017 root@freebsd101) >> >> DRAM: 2048MB >> MMC Device 2 not found >> MMC Device 3 not found >> Number of U-Boot devices: 2 >> U-Boot env: loaderdev='mmc 0' >> Found U-Boot device: disk >> Checking unit=0 slice= partition=... good. >> Booting from disk0s2: >> /boot/kernel/kernel data=0x6a82c0+0x1a7d40 syms=[0x4+0xba030+0x4+0xaa532] >> >> Hit [Enter] to boot immediately, or any other key for command prompt. >> Booting [/boot/kernel/kernel]... >> /boot/dtb/orangepi-plus-2e.dtb size=0x6326 >> Loaded DTB from file 'orangepi-plus-2e.dtb'. >> Kernel entry at 0x42200100... >> Kernel args: (null) > This is probably a cache problem, the u-boot from ports (using imp@ > branch on github) do take care of that. > So, I've used u-boot from ports (u-boot-orangepi-one) and it boots (using dd if=u-boot-sunxi-with-spl.bin of= bs=1024 seek=8). Guess I won't find out what the differences were, but so far I don't care. Was able to use the .dtb I've compiled from the GNU .dts files I've copied over from the latest linux kernel source tree. Was a bit of macking around to get the build through, but. Now I have a fully working system. Except ZFS is not working yet ;-) Thanks for the pointers, Mat