From owner-freebsd-arm@freebsd.org Thu Dec 15 06:29:21 2016 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 E9AC9C80A4E for ; Thu, 15 Dec 2016 06:29:21 +0000 (UTC) (envelope-from mihai.carabas@gmail.com) Received: from mail-qk0-x234.google.com (mail-qk0-x234.google.com [IPv6:2607:f8b0:400d:c09::234]) (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 A3AB7918 for ; Thu, 15 Dec 2016 06:29:21 +0000 (UTC) (envelope-from mihai.carabas@gmail.com) Received: by mail-qk0-x234.google.com with SMTP id n204so46477380qke.2 for ; Wed, 14 Dec 2016 22:29:21 -0800 (PST) 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=JolNmI4hlc0Qs6mr9mqYKIEXaQPzeYSezrekFre5a2k=; b=LaMszM+Xv3E3JP9Sf551yC0Mc5d2s3FsjrBQAJt6PYKlH3aeyX2+2ZI+Q/QWnvKu2C 4n7c52LdvhQtNIhQrwCcFnlfKS7g5OV6cZbPFOHu0W0v3ZXU6jU06G5Pl258fbXJltqI kbyZM8AJ+A+5YwTZckkoqUwDLZqyHVqfMo4xIhcfOsWA8nkOoSGgUo2tysGoxN7/As9u FJZ2TKdioersN3wyrvFwME2b9sguzNvL/MXe2fVvPzaB3tefBACZxZd6/syE1Ft6s/bk vtCY92G2TCW9L2EsIb/4OG+VSx5toY4KlTNC5Zvx0Wtm/Pa6zsBt7XiL/RPlAqYDpK0L v7fw== 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=JolNmI4hlc0Qs6mr9mqYKIEXaQPzeYSezrekFre5a2k=; b=HiVsphTnNuGVnAHKVIESGF4CUSyWuxPQrWsrVDBYSZyUW9GMlCeTD8T/TlbEUF0iIs ABsZGCQIOBL0rjn4wupJNLR9uNxpGkSVPMn6shn5CLYr7W3a9UCJRtKf1gs8OZutEwK2 CRQKhq5QTJc/XxCnnqJ5Wh4F+8fVxV61E8mOeoeEHiNAjFqbhvHSXUmxJ9cnQchwwFGt 31kklALCv7pVD9z0/xgT0NJ9y86NQsBrGgQGgc1dRQsig/ABeFE4qD86h4J0c+BMfsaa kZBurm4ZIzxnyVGg20A6Ij87NflJR0bAjFsFWP9iUhgt+HxnUk8vY6W5/EtdI9X3FmBA ISiA== X-Gm-Message-State: AIkVDXK1qUFsr6SScYPAe+224YPalvTQc4v07ZPDp+EVBnYsULQ4aanFpHLG9kI03kBjp8Ibh/LZioRQTM8zKw== X-Received: by 10.55.0.65 with SMTP id 62mr575929qka.106.1481783360790; Wed, 14 Dec 2016 22:29:20 -0800 (PST) MIME-Version: 1.0 Received: by 10.12.167.137 with HTTP; Wed, 14 Dec 2016 22:29:20 -0800 (PST) In-Reply-To: <20161212160553.dee9d435125f9c6b67355d21@bidouilliste.com> References: <20161212160553.dee9d435125f9c6b67355d21@bidouilliste.com> From: Mihai Carabas Date: Thu, 15 Dec 2016 08:29:20 +0200 Message-ID: Subject: Re: Cubieboard2 with custom bootloader To: Emmanuel Vadot Cc: freebsd-arm@freebsd.org, Alex Ivan Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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: Thu, 15 Dec 2016 06:29:22 -0000 Hello Manu, We've tried multiple methods: 1. precompiled u-boot from FreeBSD packages + ubldr 2. u-boot compiled from sources + your patches + ubldr 3. precompiled u-boot from FreeBSD packages + kernel 4. u-boot compiled from sources + your patches + kernel For 1 and 2 we didn't manage to start ubldr. Do we need to add any custom option to u-boot? For 3, we manage to boot it normally. With 4, we have the following error: =3D> setenv bootcmd "fatload mmc 0:1 0x42000000 kernel.bin; go 0x42000000" =3D> boot reading kernel.bin 6758372 bytes read in 589 ms (10.9 MiB/s) ## Starting application at 0x42000000 ... panic: mtx_lock() of spin mutex (null) @ /root/bhyve-ARM/src/sys/arm/arm/pmap-v6.c:6350 cpuid =3D 0 Uptime: 1s How did we compile u-boot: - we took 2016.11 from here[1] (u-boot-2016.11.tar.bz2) - apply patches and compile root@bsd:~/u-boot-2016.11 # patch -p1 -i ../ people.freebsd.org/\~manu/uboot/0001-.... root@bsd:~/u-boot-2016.11 # make CROSS_COMPILE=3Darm-none-eabi- Cubieboard2_config root@bsd:~/u-boot-2016.11 # make CROSS_COMPILE=3Darm-none-eabi- - and used the u-boot-sunxi-with-spl.bin =E2=80=8B Do you have any insight? (at least for thr 4th method) Thank you, Mihai