From owner-freebsd-arm@freebsd.org Sat Apr 22 23:04:18 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 CCE58D4B1A1 for ; Sat, 22 Apr 2017 23:04:18 +0000 (UTC) (envelope-from brett@lariat.net) Received: from mail.lariat.net (mail.lariat.net [66.62.230.51]) by mx1.freebsd.org (Postfix) with ESMTP id 9AE6A1A3 for ; Sat, 22 Apr 2017 23:04:18 +0000 (UTC) (envelope-from brett@lariat.net) Received: from Toshi.lariat.net (IDENT:ppp1000.lariat.net@localhost [127.0.0.1]) by mail.lariat.net (8.9.3/8.9.3) with ESMTP id QAA09104 for ; Sat, 22 Apr 2017 16:36:58 -0600 (MDT) Message-Id: <201704222236.QAA09104@mail.lariat.net> X-Mailer: QUALCOMM Windows Eudora Version 7.1.0.9 Date: Sat, 22 Apr 2017 16:36:35 -0600 To: freebsd-arm@freebsd.org From: Brett Glass Subject: Building kernel and ports on i.MX6 platforms Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed 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: Sat, 22 Apr 2017 23:04:18 -0000 Everyone: I am interested in using some tiny i.MX6 systems as Internet routers and firewalls. However, to do this, I need to compile my own patches into the mpd5 utility. I may also want to compile a slimmed-down kernel to save memory, as well as a special Netgraph node I've created. Unfortunately, the SD card images, as supplied, come with neither kernel sources nor the ports collection. What's more, there have been significant improvements to the ARM code since 11.0-RELEASE, and I may want to work with snapshots (which the freebsd-update utility won't update and which confuses the heck out of the bsdinstall utility; I haven't been able to use that utility to fetch the ports collection). What's the best way to build custom kernels and/or patched ports for this platform? Should I cross-compile or compile natively? If I do the latter, how best to bring in the ports collection and keep my kernel sources up to date on a system that's running a snapshot? --Brett Glass