From owner-freebsd-arm@freebsd.org Sun Jun 25 11:14:13 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 7018BD8EF76 for ; Sun, 25 Jun 2017 11:14:13 +0000 (UTC) (envelope-from jsorocil@gmail.com) Received: from mail-ot0-x22a.google.com (mail-ot0-x22a.google.com [IPv6:2607:f8b0:4003:c0f::22a]) (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 2DEB667700 for ; Sun, 25 Jun 2017 11:14:13 +0000 (UTC) (envelope-from jsorocil@gmail.com) Received: by mail-ot0-x22a.google.com with SMTP id y47so53905450oty.0 for ; Sun, 25 Jun 2017 04:14:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=CtFXVxs62p7qqob5Je8fah2CsDJYF6AZfV9s4smxkxg=; b=M+rI24QxdiBmzgUIuPzle/Lvme1TaGWWmfCXaCQU57s/rcTTxuupJtKgD8J9QA1nMD T/QFAt+WUd9mDfhX4DCSaYfDxGB+M9Nnv2TtclTBkNwBrHla7vp2Gv3fHTFWoX0nTlab QyXdlSk46mAhS1DZiHTtLVIhMExGsgMYKtrOabgPKN26SXkjd/hXQl01qLA7il+vh6BB eXn1T3MQ7S0k6sHUhfrqdkG6sd9QG9Ekg0ROj6CC+41p5jVg7RlDGXBQVgOIVVctvgHT zodxyJ/bg7zYt/ajKEqe0B9DdL7bawj6Foo95cKSgXtwnhQpPN8FWrluKZ+dBei1z5uZ z4Cw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=CtFXVxs62p7qqob5Je8fah2CsDJYF6AZfV9s4smxkxg=; b=DQww0nxUCxS7DtJQdjPQV4hxw7u2ieNmIxD7m5HEyMwwruEtMYm5pFtNH40ENVTn3i BiF1k1wM+ztbD7ezql2f634RLU+I53jsSkOtSDXJfNTj9Gl2EATU07nsi8igQFu0h4xY lTUTma+0Euzndr/ChW1iOPWSvWnl5V+qDalWZuHLv3vVvL4BtnUp27xu85XlVUYQI4sc LXl10AJQVLQTnDHN4IYzrmZSMc0/LT5vEqAxHGaYn92FlZJh4MeoJRB9kL7DSJH8NqV/ t3BTqgaB2gpQfkfDzX+RZSJTr3iHbX+fB77aVOor+YUdLKsTT6pBExXBEmB43swAf0lZ +Tsg== X-Gm-Message-State: AKS2vOyXJxbyDLKQxb/iJUqO5ZrttwWu0kPxKuOrcfV/LDvhAlghj4dE MpIZt20xA/dxE70Zrwfz+4b5DYI65zR/QDE= X-Received: by 10.157.63.146 with SMTP id r18mr10761457otc.225.1498389251963; Sun, 25 Jun 2017 04:14:11 -0700 (PDT) MIME-Version: 1.0 Received: by 10.157.29.69 with HTTP; Sun, 25 Jun 2017 04:14:11 -0700 (PDT) In-Reply-To: References: <20170624171539.3b6a73b245b05e649a62933c@bidouilliste.com> <20170624184259.d2b7d2e6fbe6120cde572a33@bidouilliste.com> From: Johnny Sorocil Date: Sun, 25 Jun 2017 13:14:11 +0200 Message-ID: Subject: Re: Orange Pi Zero support To: Emmanuel Vadot Cc: freebsd-arm@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.23 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: Sun, 25 Jun 2017 11:14:13 -0000 I have built -CURRENT (63fd4c37fb976e1c00408fd95f168af12088f92b) but I am unable to boot the board with sun8i-h2-plus-orangepi-zero.dtb (there is nothing on serial console). If sun8i-h3-orangepi-one.dtb is loaded, then board boots normally. Steps to reproduce: rm -rf /usr/obj make -j4 TARGET_ARCH=armv6 SRCCONF=/dev/null __MAKE_CONF=/dev/null buildworld make -j4 TARGET_ARCH=armv6 SRCCONF=/dev/null __MAKE_CONF=/dev/null KERNCONF=ALLWINNER buildkernel make -j4 TARGET_ARCH=armv6 SRCCONF=/dev/null __MAKE_CONF=/dev/null KERNCONF=ALLWINNER DESTDIR=/mnt/sd2/ installkernel make -j4 TARGET_ARCH=armv6 SRCCONF=/dev/null __MAKE_CONF=/dev/null KERNCONF=ALLWINNER DESTDIR=/mnt/sd2/ installworld cp -f /usr/obj/arm.armv6/usr/src/sys/boot/arm/uboot/ubldr{,.bin} /mnt/sd1 umount /mnt/sd1 ; umount /mnt/sd2 dd if=/usr/local/share/u-boot/u-boot-orangepi-one/u-boot-sunxi-with-spl.bin conv=notrunc,sync of=/dev/mmcsd0 bs=1024 seek=8 loader> load -t dtb sun8i-h2-plus-orangepi-zero.dtb loader> boot Booting... Using DTB from loaded file '/boot/dtb/sun8i-h2-plus-orangepi-zero.dtb'. Kernel entry at 0x42200100... Kernel args: (null) and it will hang If H3 dtb file is used: loader> load -t dtb sun8i-h3-orangepi-one.dtb loader> boot Booting... Using DTB from loaded file '/boot/dtb/sun8i-h3-orangepi-one.dtb'. Kernel entry at 0x42200100... Kernel args: (null) KDB: debugger backends: ddb KDB: current backend: ddb Copyright (c) 1992-2017 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 63fd4c37fb9(master): Sun Jun 25 12:03:35 CEST 2017 root@innovator:/usr/obj/arm.armv6/usr/src/sys/ALLWINNER arm FreeBSD clang version 4.0.0 (tags/RELEASE_400/final 297347) (based on LLVM 4.0.0) <...>