From owner-freebsd-arm@freebsd.org Thu Dec 15 06:51:55 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 3CA3AC81354 for ; Thu, 15 Dec 2016 06:51:55 +0000 (UTC) (envelope-from ganbold@gmail.com) Received: from mail-it0-x22e.google.com (mail-it0-x22e.google.com [IPv6:2607:f8b0:4001:c0b::22e]) (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 06D7A14EE for ; Thu, 15 Dec 2016 06:51:55 +0000 (UTC) (envelope-from ganbold@gmail.com) Received: by mail-it0-x22e.google.com with SMTP id y23so22188163itc.0 for ; Wed, 14 Dec 2016 22:51:54 -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=1KXvCUXoV4QjYFtuIFYItdeMSWer1RR/FYcVcUNBo6E=; b=bBUoa8LoZKlwV72olpGdlNbtPYuGbf1mRWXz9Wa2AY5fHnwnh3XG86wBFU0n3m45kE usdPFV6Pk0e6/G1qtW1LUIzoGjZCN/U8EQTj4k0k0klSftIPBM6gx749HhM8sOMbkuJw WJTKlLknZAi3lbZOX0pAjMY2+3GVoWneZAn1KGRUssE10ASrXwWRRjpumlRtccnKNaOF /zuzZFeeuK0BfFgefDONAhy7IhBpWGyPySmFGLOWIoUTYEagHt/QoSZz9fpWG72kfF4q PSxvOrdNCOefxZPObuMbp4u8XKo4B/g41bpte0ayt1X8jeiBj6lS+V3KapgS9ajFMd5V TTHA== 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=1KXvCUXoV4QjYFtuIFYItdeMSWer1RR/FYcVcUNBo6E=; b=KgY5kNe7XR4R/jLRCSkCk9I37HKQJURXyQQ/gm8hlZsRPzWKm9cJLzbGOIGWsR5Ixa gDICC0sjlEb9Qu8eSFBKyQ+W+a6IT5l35YLsiqp6FtFtylPqAgVkxDzUEXpK1zgrXGX+ tVcl/s975EQdwdkLrli/VIlJfhgIt9gM/3KF+dNwQquGUVPXf9H0xqUx5TTy1fwJWd+F V3FxWJs2huJ2j7wNqITHOHuy+VQi36RXfI+edxQDnXMLe41gw5iNFhuSoQ+wh5oKSIo5 /sP26maN/x6qUgJQdBGlcYKiRH5chxvWP9Sb9ZBUMa/wLklSEGaomCVq/p7IggoMka0o 8q6g== X-Gm-Message-State: AKaTC02ZnFoFSu5GvbKZWClgK+S05qRMfGSJQfu2r0slYtiCNw629io1Q4wDgqqhxCaLxO9PUqX/Uy+d2hk8gg== X-Received: by 10.36.61.207 with SMTP id n198mr1233657itn.60.1481784714407; Wed, 14 Dec 2016 22:51:54 -0800 (PST) MIME-Version: 1.0 Received: by 10.64.242.167 with HTTP; Wed, 14 Dec 2016 22:51:53 -0800 (PST) In-Reply-To: References: <20161212160553.dee9d435125f9c6b67355d21@bidouilliste.com> From: Ganbold Tsagaankhuu Date: Thu, 15 Dec 2016 14:51:53 +0800 Message-ID: Subject: Re: Cubieboard2 with custom bootloader To: Mihai Carabas Cc: Emmanuel Vadot , "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:51:55 -0000 On Thu, Dec 15, 2016 at 2:29 PM, Mihai Carabas wrote: > Hello Manu, > > We've tried multiple methods: > 1. precompiled u-boot from FreeBSD packages + ubldr > 2. u-boot compiled from sources + your patches + ubldr > ubldr is broken in recent head. At least r308903 (few days before clang import) works for me. Ganbold > 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 > _______________________________________________ > freebsd-arm@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-arm > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org" >