From owner-freebsd-arm@freebsd.org Sat Jun 18 06:30:27 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 67AC2A7828A for ; Sat, 18 Jun 2016 06:30:27 +0000 (UTC) (envelope-from tvijlbrief@gmail.com) Received: from mail-lf0-x22d.google.com (mail-lf0-x22d.google.com [IPv6:2a00:1450:4010:c07::22d]) (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 D291F14CA for ; Sat, 18 Jun 2016 06:30:26 +0000 (UTC) (envelope-from tvijlbrief@gmail.com) Received: by mail-lf0-x22d.google.com with SMTP id h129so9209670lfh.1 for ; Fri, 17 Jun 2016 23:30:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=2iHjWKIr08tzz5n+qsm0FVIOR3mJ1Sj3MKbyobvaT0Q=; b=DeBLBbc42jmw7j4gk8eRa284hboSH3VhJaIOYBX0j0StOSqhQzVHri8OFMjRZfH7vr X33Ek3S5edMboKdkpkp2kr+R5OrUJreRTl9rG4siR2ni74OxkjqLoOBC3tJVlBGECiPJ Pc0MR7XSz6360Z5iPVy0WlDESPSe2a98I2UxBy71qeON02LZBX0nvQIvsaYtccZ26kYE eLD7FVfVXrbfSzD2MAsZNdswkwNqXpMXJLhD/UQd+8WYNs/QRWWCS0wNFeQlIE+WozrH gMPK0o2nWDOxyjk5rQnNrXJ4TFO9M3GfdKU7HY1nSi7VLLNHhR/7phrU0ANOwBGLcbTp 5tMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=2iHjWKIr08tzz5n+qsm0FVIOR3mJ1Sj3MKbyobvaT0Q=; b=lzzXA85domtOb7NUOUAEo1nxxBBDTM+vTltLARhj46Tw/++QTRNmcqY1oFiNpPULox KYi9pTL4oiAvVG/t21t5yjiGr1UqTBu1veU0X5DfNKv5TM9+w2JfEmsG5mmUzy6HPQ95 nI4vfgjgF9CL2UzfJXx6IuQUDu6aoUF5YeRTXTk12gIyTgwUXo/OoO+RXVjbatPZ1gHb XkIiXAxll3t61dn/E2gqTCU+jJcPdG3NL76PLHAlhBT+QGk2IQXsf0KuL5lYNRtHrX/n yQMTUYjXl/+yw/TVt7XPRDPRHYYTy+lEHBGMW6CanPWIBEHyDm+z03aKYBTDCoL24FXY I/3A== X-Gm-Message-State: ALyK8tKH2bX9PpZUWrS1Ev/MouQJkeWVNTt9eJMWRfjokdst9JmI5RJlZz1TvwarFchv9j3DkKP/QayvIAt2ZQ== X-Received: by 10.25.127.4 with SMTP id a4mr1654956lfd.111.1466231424440; Fri, 17 Jun 2016 23:30:24 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Tom Vijlbrief Date: Sat, 18 Jun 2016 06:30:14 +0000 Message-ID: Subject: Re: FreeBSD on the ODroid-C2 (arm64 AMLogic S905) To: Andreas Tobler , freebsd-arm@freebsd.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.22 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 18 Jun 2016 06:30:27 -0000 Op vr 17 jun. 2016 om 22:18 schreef Andreas Tobler : > Hi Tom, > > On 12.05.16 18:04, Tom Vijlbrief wrote: > > Op vr 6 mei 2016 om 12:40 schreef Tom Vijlbrief : > > > >> I've been hacking to see if I can get FreeBSD to boot on this little > >> device, and I got to this: > >> > >> > > Progress has been made and it now boots and USB-works :-) > > (but SD-card reader and Ethernet do not) > So you must use a root filesystem on USB, you cannot access the SD-card. > > > > Mika=C3=ABl Urankar added the code to enable multiple processors, > > but for now multiple processors are disabled. > > > > This is very much a work in progress, but for those who would like to > > compile their own kernel and boot it on an Odroid-C2, get it from: > > > > https://github.com/tomtor/freebsd/tree/tc2 > > > > and build it with: > > > > make TARGET=3Darm64 -s buildworld > > make TARGET=3Darm64 buildkernel KERNCONF=3DODROIDC2 NO_MODULES=3DYES > > I tried and I ended up here: > > cd: /export/devel/build/test/freebsd-tc2/sys/boot/arm64/aml: No such > file or directory > > I think here is something missing. > > Oops, you're right. Should be fixed now in the current tc2 branch > I have attached an USB disk and an USB ethernet adapter and the system > > boots, NTP adjusts the date and I'm logged in with SSH. > > > > However, a "portsnap fetch" runs a long time and then exits with: > > pid 78242 (sh), uid 0: exited on signal 10 (core dumped), so it is > > obviously not ready for general use. > > > > Boot instructions are here: > > > > https://github.com/tomtor/image-freebsd-c2 > > The boot process stops and complains filesystems not known. Might be the > card. > See remark above. I do not have much time the next few weeks, but I will try to get the SD-card and board ethernet running later or perhaps someone else will have a go at it. Note that the occasional core dump is very rare. I managed to build large parts of world on the device. I wonder what the cause is. I would like to see if I get similar dumps on my Pine64, but on the Pine64 neither the card-reader nor the USB work. I saw an additional patch from Andrew for the SD-card reader which is not in my tree, but have not tried that yet. Thanks for trying this Odroid-C2 build. The Odroid-C2 is really a nice little device.