From owner-freebsd-embedded@FreeBSD.ORG Thu Jan 16 06:05:31 2014 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 85B27781 for ; Thu, 16 Jan 2014 06:05:31 +0000 (UTC) Received: from wonkity.com (wonkity.com [67.158.26.137]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 2F4781098 for ; Thu, 16 Jan 2014 06:05:31 +0000 (UTC) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.7/8.14.7) with ESMTP id s0G65SvB086672; Wed, 15 Jan 2014 23:05:28 -0700 (MST) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.7/8.14.7/Submit) with ESMTP id s0G65SEL086669; Wed, 15 Jan 2014 23:05:28 -0700 (MST) (envelope-from wblock@wonkity.com) Date: Wed, 15 Jan 2014 23:05:28 -0700 (MST) From: Warren Block To: =?ISO-8859-15?Q?Olivier_Cochard-Labb=E9?= Subject: Re: Creating code slice before disk image in nanobsd In-Reply-To: Message-ID: References: <20120629133759.GA19373@snail.casa> <20140114161533.GB19601@snail.casa> <6027B660-1D2E-4058-B87F-83D8225F0DC3@bsdimp.com> <20140116034220.B43023@sola.nimnet.asn.au> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-ID: X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (wonkity.com [127.0.0.1]); Wed, 15 Jan 2014 23:05:28 -0700 (MST) Content-Type: TEXT/PLAIN; CHARSET=ISO-8859-15; format=flowed Content-Transfer-Encoding: 8BIT X-Content-Filtered-By: Mailman/MimeDel 2.1.17 Cc: Ian Smith , "freebsd-embedded@freebsd.org" X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Jan 2014 06:05:31 -0000 On Thu, 16 Jan 2014, Olivier Cochard-Labbé wrote: > On Wed, Jan 15, 2014 at 8:50 PM, Warren Block wrote: > > > To create the initial MBR, probably already done before the code above: >   gpart create -s mbr ${MD} >   gpart bootcode -b ${NANO_WORLDDIR}/boot/boot ${MD} > > > Regarding the remplacement of boot0cfg by gpart, the exact command that nanobsd uses is: It was about using gpart instead of fdisk and bsdlabel. boot0cfg is another matter. > NANO_BOOT0CFG="-o packet -s 1 -m 3" > NANO_BOOTLOADER="boot/boot0sio" > boot0cfg -B -b ${NANO_WORLDDIR}/${NANO_BOOTLOADER} ${NANO_BOOT0CFG} ${MD} > > A PC Engines WRAP need the NANO_BOOT0CFG="-o nopacket" for booting. > > Does gpart bootcode support all these boot0cfg options too ? (I didn't find it in the man page). I don't think so, at present anyway. From owner-freebsd-embedded@FreeBSD.ORG Fri Jan 17 20:38:35 2014 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 554C6927; Fri, 17 Jan 2014 20:38:35 +0000 (UTC) Received: from onlyone.friendlyhosting.spb.ru (onlyone.friendlyhosting.spb.ru [IPv6:2a01:4f8:131:60a2::2]) by mx1.freebsd.org (Postfix) with ESMTP id 1B2FB183D; Fri, 17 Jan 2014 20:38:35 +0000 (UTC) Received: from lion.home.serebryakov.spb.ru (unknown [IPv6:2001:470:923f:1:396f:111a:890d:cdd5]) (Authenticated sender: lev@serebryakov.spb.ru) by onlyone.friendlyhosting.spb.ru (Postfix) with ESMTPSA id EF7AC4AC2D; Sat, 18 Jan 2014 00:38:26 +0400 (MSK) Date: Sat, 18 Jan 2014 00:38:17 +0400 From: Lev Serebryakov Organization: FreeBSD X-Priority: 3 (Normal) Message-ID: <632415116.20140118003817@serebryakov.spb.ru> To: freebsd-embedded@freebsd.org Subject: True embedded developing under FreeBSD -- how to install gcc-arm-embedded properly? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: kientzle@FreeBSD.org X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list Reply-To: lev@FreeBSD.org List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Jan 2014 20:38:35 -0000 Hello, Freebsd-embedded. I want to program Coretx-M devices (STM32 and Tiva C ones) under FreeBSD. Is here any proper way to install gcc-arm-embedded ()? It is "arm-none-eabi" in theory, but all Linux guides suggest to install it from https://launchpad.net/gcc-arm-embedded and not from "vanilla" binutils/gcc source. And all guided has instructions how to install these tools from sources, but it includes compiling gcc TWICE (!), with building newlib in-between. I cannot see these two compilations in "devel/cross-gcc" port. So, my questions are: (1) Is `devel/arm-eabi-gcc' (effectivly `devel/cross-gcc') is Ok? (2) Is here any plans to update cross-gcc to latest 4.8.x? (3) Is here any proper way to packetize/portify gcc-arm-embedded toolchain by receipts from gcc-arm-embedded project? I don't see any obious way to build gcc twice in one port (wth newlib / dietlibc in between), for example. (4) Is here any interest to have "proper embedded toolchain" port? By "proper embedded toolchain" I mean package which will include binutils + gcc + libc in ONE package, as it is conventional in embedded world, where it is not common to update separate parts of ooolchain separately. -- // Black Lion AKA Lev Serebryakov