From nobody Wed Dec 29 07:10:02 2021 X-Original-To: freebsd-current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 2826E192544D; Wed, 29 Dec 2021 07:10:13 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: from kabab.cs.huji.ac.il (kabab.cs.huji.ac.il [132.65.116.210]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4JP2bm67kvz4Rtq; Wed, 29 Dec 2021 07:10:12 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=cs.huji.ac.il; s=57791128; h=References:To:Cc:In-Reply-To:Date:Subject:Mime-Version:Content-Type:Message-Id:From; bh=7Rs1FW2f+91B7Jcqqoxx7yGPm9JvLvXvTB2HAkkJldc=; b=kbWP5BtVEOJv0Hm8dnFJsCGuGTzG1oEjtj+Rxx+LPYQCkTN0Gdm3PXg0LDZQJuFj+3PQzMLpXJSGIXI4eIkB7++3rdxUbWhzG2Yvy0uDqxA06na20tdTZyW6uLrq7H+acGcVJB+n3Tm5D5KQF3UCRqDLqhQipC9waE+f+W1TO63sc5H0TTjcoRP2WfDJB5HywFHaM3bMmAHdf9xw1lbcnfosBN2yyQSrA3z5bt4fArAqfpx3AUMClcnUNYNVgrPUkKtLs6heW+7LL/3uRHhFVbnOZ7yIAnUdG6odY5xeaavVcBwyTyOdHYjTmtQAEMYYbs33evTW3PAQ0CV8528JDg==; Received: from bach.cs.huji.ac.il ([132.65.80.20] helo=smtpclient.apple) by kabab.cs.huji.ac.il with esmtp id 1n2T63-000Nj0-80; Wed, 29 Dec 2021 09:10:03 +0200 From: Daniel Braniss Message-Id: Content-Type: multipart/alternative; boundary="Apple-Mail=_6F9A623B-5E83-4BA7-AC47-9CFCD8BAF837" List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.13\)) Subject: Re: Arduino IDF -> make/automake based environment Date: Wed, 29 Dec 2021 09:10:02 +0200 In-Reply-To: <20211229002510.2e2c9cb0@hermann> Cc: Marc Fonvieille , Andrew Stevenson , freebsd-embedded@freebsd.org, FreeBSD CURRENT To: FreeBSD User References: <20211219120947.75530a82@hermann> <0024BDB4-ABFE-4DAE-BC99-0AF43F8B3180@ugh.net.au> <20211229002510.2e2c9cb0@hermann> X-Mailer: Apple Mail (2.3654.120.0.1.13) X-Rspamd-Queue-Id: 4JP2bm67kvz4Rtq X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-ThisMailContainsUnwantedMimeParts: N --Apple-Mail=_6F9A623B-5E83-4BA7-AC47-9CFCD8BAF837 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On 29 Dec 2021, at 01:25, FreeBSD User wrote: >=20 > On Mon, 20 Dec 2021 14:35:10 +0100 > Marc Fonvieille > = wrote: >=20 >> Le 19.12.2021 21:03, Andrew Stevenson a =C3=A9crit : >>>=20 >>>=20 >>>> On 19. Dec 2021, at 12:18, FreeBSD User = wrote: >>>>=20 >>>> environment. Since I'm interested in coding for some smaller AMTEL = MCUs and ESP32 >>>> and like to digg a bit deeper than simply clicking a host base from = a menu, I'm not >>>> afraid of doing some larger basic setup if needed. =20 >>>=20 >>> If by small AMTEL MCUs you mean AVRs then avr-gcc and avrdude are in = ports. >>>=20 >>=20 >> For ESP32, you should look at: >> https://wiki.freebsd.org/electronics/arduino/esp32 >=20 > Following these instructions with the most recent required ports on = the latest 13-STABLE, > results in an linker error: >=20 > = /usr/local/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/5.2.0/../../..= /../xtensa-esp32-elf/bin/ld: > cannot find crt1-sim.o: No such file or directory > = /usr/local/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/5.2.0/../../..= /../xtensa-esp32-elf/bin/ld: > cannot find _vectors.o: No such file or directory > collect2: error: ld returned 1 exit status >=20 >=20 >> and >> = https://forums.freebsd.org/threads/a-guide-for-installing-esp32-board-for-= arduino-on-freebsd12-update-2021-08-17.78408/ = i gave up compiling the xtensa stuff, specially after espressif came out = with a riscv version. so I downloaded the oficial idf and under FreeBSD-13 it almost worked = out of the box, if you want I can search my notes =E2=80=A6 danny --Apple-Mail=_6F9A623B-5E83-4BA7-AC47-9CFCD8BAF837 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8

On 29 Dec 2021, at 01:25, FreeBSD User <freebsd@walstatt-de.de> wrote:

On Mon, 20 Dec 2021 14:35:10 +0100
Marc Fonvieille <blackend@freebsd.org> wrote:

Le = 19.12.2021 21:03, Andrew Stevenson a =C3=A9crit :


On 19. Dec 2021, at = 12:18, FreeBSD User <freebsd@walstatt-de.de> wrote:

environment. Since I'm interested in coding for some smaller = AMTEL MCUs and ESP32
and like to digg a bit deeper than = simply clicking a host base from a menu, I'm not
afraid of = doing some larger basic setup if needed.  

If by small AMTEL MCUs you mean = AVRs then avr-gcc and avrdude are in ports.


For ESP32, you should look at:
https://wiki.freebsd.org/electronics/arduino/esp32

Following these instructions with the most recent required = ports on the latest 13-STABLE,
results in an linker error:

/usr/local/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/5.2= .0/../../../../xtensa-esp32-elf/bin/ld:
cannot find crt1-sim.o: No such file or directory
/usr/local/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/5.2= .0/../../../../xtensa-esp32-elf/bin/ld:
cannot find _vectors.o: No such file or directory
collect2: error: ld returned 1 = exit status


and
https://forums.freebsd.org/threads/a-guide-for-installing-esp32= -board-for-arduino-on-freebsd12-update-2021-08-17.78408/
<= /div>

i gave up = compiling the xtensa stuff, specially after espressif came out with a = riscv version.
so I downloaded the oficial idf and = under FreeBSD-13 it almost worked  out of the box,
if you want I can search my notes =E2=80=A6

danny

= --Apple-Mail=_6F9A623B-5E83-4BA7-AC47-9CFCD8BAF837--