From owner-freebsd-arm@freebsd.org Sun Jun 25 11:21:11 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 779EDD8F41F for ; Sun, 25 Jun 2017 11:21:11 +0000 (UTC) (envelope-from manu@bidouilliste.com) Received: from mail.blih.net (mail.blih.net [212.83.177.182]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.blih.net", Issuer "mail.blih.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id DAC3467AB9 for ; Sun, 25 Jun 2017 11:21:09 +0000 (UTC) (envelope-from manu@bidouilliste.com) Received: from mail.blih.net (mail.blih.net [212.83.177.182]) by mail.blih.net (OpenSMTPD) with ESMTP id 15f0706d; Sun, 25 Jun 2017 13:21:07 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=bidouilliste.com; h=date :from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; s=mail; bh=WLNGAOlwRDCnUuoQnFlYkf4LCpM=; b=Io/jxUIIcwr6o1eoRuQfSi+W2EfB lDLqUkIg6ayBkSjAYizXNwaxFcdbSgk/v8CyPPje9pdPjxnJzfxgpsJuS7Ezpqjy HQNpkPN1XfO5ekW3xFshYayARjpCbJogxZvnv2UxbQXwkj9lqSV5WuC9dA3jsHuJ pvbebiHgT/sq/xE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=bidouilliste.com; h=date :from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; q=dns; s= mail; b=TUoav7GAGo9DoN/1j3HZzSgjmrb6R8c+aeaKISmeMqP9CGLTtFpup01n 8QW4VHVmpMIXX3l7SO8u9At9xWP2Xlf3swpkK7hkGZ4Oyr3LP/lvYUFO5C/vaVrK KNuRxXWTTBOUz/Tzlvuu5WgPaS1AjkBCWUjcwtSEKXj5irLr3eE= Received: from knuckles.blih.net (ip-54.net-82-216-203.roubaix.rev.numericable.fr [82.216.203.54]) by mail.blih.net (OpenSMTPD) with ESMTPSA id cbc45922 TLS version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO; Sun, 25 Jun 2017 13:21:07 +0200 (CEST) Date: Sun, 25 Jun 2017 13:21:06 +0200 From: Emmanuel Vadot To: Johnny Sorocil Cc: freebsd-arm@freebsd.org Subject: Re: Orange Pi Zero support Message-Id: <20170625132106.6776f5014798dcf9cb8abbcd@bidouilliste.com> In-Reply-To: References: <20170624171539.3b6a73b245b05e649a62933c@bidouilliste.com> <20170624184259.d2b7d2e6fbe6120cde572a33@bidouilliste.com> X-Mailer: Sylpheed 3.5.1 (GTK+ 2.24.31; amd64-portbld-freebsd12.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII 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: Sun, 25 Jun 2017 11:21:11 -0000 On Sun, 25 Jun 2017 13:14:11 +0200 Johnny Sorocil wrote: > 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 You should use the GENERIC kernel, I'll remove ALLWINNER as it's not needed anymore. > cp -f /usr/obj/arm.armv6/usr/src/sys/boot/arm/uboot/ubldr{,.bin} /mnt/sd1 > umount /mnt/sd1 ; umount /mnt/sd2 It is not needed. > 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 I wouldn't use a different u-boot, see my last mail for compiling u-boot yourself. > 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) > <...> -- Emmanuel Vadot