From owner-freebsd-arm@freebsd.org Thu Jan 5 06:56:27 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 70BB8C9FE5A for ; Thu, 5 Jan 2017 06:56:27 +0000 (UTC) (envelope-from melounmichal@gmail.com) Received: from mail-wj0-x22e.google.com (mail-wj0-x22e.google.com [IPv6:2a00:1450:400c:c01::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 093EC1DE6 for ; Thu, 5 Jan 2017 06:56:27 +0000 (UTC) (envelope-from melounmichal@gmail.com) Received: by mail-wj0-x22e.google.com with SMTP id tn15so27847544wjb.1 for ; Wed, 04 Jan 2017 22:56:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:reply-to:subject:references:to:cc:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=TgYQt/pyVTSup6MNociTKKlag4PCaQs0fSWXplFyBv0=; b=tlkwYxh1LyF7gLilZoe7aftv0fBV5ox1lMJqglFtvd1Uz6oWjts+FbjJ1lZA49L6rm JbRUDcdU+cKFZ01688rQDAgoyWPBd4J2v/tLB9cZBi0mRbqlrafdY/xXLDT0hqO6V1D2 xvppN4UZ4MOS5vvhVGuCMbsoZHfgCcSWZXmVszkDqz3T30fAeIyEseJxuYjiNOZHRtAN XopRvKj3M1JdR13qDyql7Dp3ebTOkL14Rg6c8F94enUMFq/vHaM6Wss3HWoye4wxFqMr raj9yCYkwXBFJirDvA8NocEHS/kRepQvVqhRMlBKyyfW0BLlJSrv1pEU4BqBdRftnaNc sZWQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:reply-to:subject:references:to:cc :message-id:date:user-agent:mime-version:in-reply-to :content-transfer-encoding; bh=TgYQt/pyVTSup6MNociTKKlag4PCaQs0fSWXplFyBv0=; b=SlUVSjiVfJVqTPJSb74uvW9TAmaY6ABrUPQaAL+LUIhU+LqB0FXZTjyOOVY11uzbdg CUSvm5jmD3vW/1aJJHYekzMD8qAPI0+pBM5m/1tUrUM7VAHe3Gv2s1uGJFyVzS6czDy+ 6MlcDoRhy2GT/7YvgBWMdYwhLLYFuLwautZLvSH5FQTKHQLyAz9p3Z1jQp3Mt6hXpQ4h 7zzEkM9/4AnMYcaVhRXpXDq89FtXM8w01sw9Vo4aey/rev2lg0sbyyFULKYtNK27K8pw wBBA8VoKNfsMkxCplflWE5jRiCNeI1oSB5Jd2YGT3CGhV2tcfRF++xZpT394nSFLIjFk ZASQ== X-Gm-Message-State: AIkVDXLyfTiKzvW9hRZt+ubDJ66Nkqm8fD6L880QSJsQI4bsZTJm7N4d3h10Tc075HORgA== X-Received: by 10.194.123.103 with SMTP id lz7mr68824416wjb.100.1483599384425; Wed, 04 Jan 2017 22:56:24 -0800 (PST) Received: from [88.208.79.100] (halouny.humusoft.cz. [88.208.79.100]) by smtp.gmail.com with ESMTPSA id u18sm98641870wmd.1.2017.01.04.22.56.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 04 Jan 2017 22:56:23 -0800 (PST) From: Michal Meloun X-Google-Original-From: Michal Meloun Reply-To: meloun.michal@gmail.com Subject: Re: Finally bringing FreeBSD to Parallella References: <2CAC521E-AB65-453F-B1CC-DE025DA43596@yahoo.com> <4B0F21E0-D0FD-409D-81A5-C0DBBFF26251@yahoo.com> <4CA92CCC-79C3-4E86-9B7F-3FAA80D1CF5E@yahoo.com> To: Thomas Skibo , Adrian Chadd Cc: "freebsd-arm@freebsd.org" Message-ID: Date: Thu, 5 Jan 2017 07:57:06 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.6.0 MIME-Version: 1.0 In-Reply-To: <4CA92CCC-79C3-4E86-9B7F-3FAA80D1CF5E@yahoo.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit 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, 05 Jan 2017 06:56:27 -0000 On 05.01.2017 4:16, Thomas Skibo via freebsd-arm wrote: > >> On Jan 4, 2017, at 4:19 PM, Adrian Chadd wrote: >> >> Hi, >> >> Would you be able to find the uboot bits that are needed so we can >> make up a port with the relevant bits? :) >> >> >> -adrian > > I haven’t been able to find it. I did manage to find a Makefile I used to package the second u-boot into the file uImage. > > But, I’ve been thinking and maybe it would be easier (and less hokey) if we built a FreeBSD kernel with a static DTB and crammed that into a uImage file. Do we really need ubldr (which would require a u-boot with CONFIG_API)? > > —Thomas With LINUX_BOOT_ABI option in kernel config file you can boot kernel directly from uImage and pass right DTB to kernel directly from u-boot. The following example is what I using for Jetson TK1 board (and it uses mkubootimage stolen from netbsd). mkubootimage -A arm -C none -O linux -T kernel -a 0x80200000 -e 0x80200100 -n jetson-tk1 /tegra/sys/JETSON-TK1/kernel /tegra/sys/JETSON-TK1/uImage and from u-boot: bootp 0x80200000 :/tegra/sys/JETSON-TK1/uImage bootp 0x80100000 :/tegra/sys/JETSON-TK1/tegra124-jetson-tk1-fbsd.dtb setenv bootargs FreeBSD:boot_single=1,boot_verbose=0,vfs.root.mountfrom=ufs:/dev/ada0s1afdt addr 0x80100000 fdt boardsetup fdt chosen bootm 0x80200000 - 0x80100000 Michal