Re: Build Nuttx on MAC / ARM64 Ubuntu

2022-02-02 Thread Peter Kalbus
Hi, please check https://github.com/apache/incubator-nuttx/pull/5401 with initial support. Feedback is highly appreciated. /Piet > Am 02.02.2022 um 08:57 schrieb Peter Kalbus : > > Hi Flavio, > > let me share my latest findings. > > I’m

Re: Build Nuttx on MAC / ARM64 Ubuntu

2022-02-01 Thread Peter Kalbus
Hi Flavio, let me share my latest findings. I’m down to setjmp/longjmp, which needs to be adapted to AARCH64. A preliminary version is available, but not fully working, yet. I can share my code, if you want to dig into that, too. /Piet > Am 31.01.2022 um 11:10 schrieb Flavio Castro Alves Fi

Re: Build Nuttx on MAC / ARM64 Ubuntu

2022-01-31 Thread Flavio Castro Alves Filho
Hi Peter, Yes, I intend to use it for simulation only. It is for a personal project. I already have a Ubuntu based desktop machine, which works fine. But for mobility, if I could work on my MAC, it would be better. I will try to figure out what is going on. Thank you for all your help. Best re

Re: Build Nuttx on MAC / ARM64 Ubuntu

2022-01-30 Thread Kalbus, Peter
Hi, are you only interested in the simulation or also have a real target in mind? Maybe you can try to get it working for your real target instead of the simulation. The simulation is definitely not working overall on M1 based host systems yet. I‘m using RP2040 based targets and they are work

Re: Build Nuttx on MAC / ARM64 Ubuntu

2022-01-30 Thread Flavio de Castro Alves Filho
That’s what I did. So it is not the problem. > On 29 Jan 2022, at 19:43, Peter Kalbus wrote: > > Hi Flavio, > > there’s an explanation in NuttX documentation: > https://nuttx.apache.org/docs/latest/quickstart/install.html#kconfig-frontend >

Re: Build Nuttx on MAC / ARM64 Ubuntu

2022-01-29 Thread Alan Carvalho de Assis
Hi Flavio, I think if you download it from tools repository it is the right kconfig. Currently I'm using a Ubuntu more recent than 18.04, so it is already a package in the system, I don't need to compile it. BR, Alan On 1/29/22, Flavio de Castro Alves Filho wrote: > Hi Alan, > > I have this i

Re: Build Nuttx on MAC / ARM64 Ubuntu

2022-01-29 Thread Peter Kalbus
Hi Flavio, there’s an explanation in NuttX documentation: https://nuttx.apache.org/docs/latest/quickstart/install.html#kconfig-frontend Check for the „MacOS, Ubuntu 18.04 LTS and earlier“ tab. It’s a couple of month

Re: Build Nuttx on MAC / ARM64 Ubuntu

2022-01-29 Thread Flavio de Castro Alves Filho
Hi Peter, How did you install kconfig-frontends on your machine? Best regards, Flavio > On 29 Jan 2022, at 18:13, Kalbus, Peter wrote: > > Hi, > > I know, it‘s not complete. But you should get a different error … I see, ARM > based CPU is now detected … next step will take longer. > > /Pi

Re: Build Nuttx on MAC / ARM64 Ubuntu

2022-01-29 Thread Flavio de Castro Alves Filho
Hi Alan, I have this instruction that you mentioned. I have just cloned a base NuttX repo. Regarding kconfig-frontends, I used the instructions for Mac from the project document. Can this be my issue? Best regards, Flavio > On 29 Jan 2022, at 18:13, Alan Carvalho de Assis wrote: > > Flavio

Re: Build Nuttx on MAC / ARM64 Ubuntu

2022-01-29 Thread Kalbus, Peter
Hi, I know, it‘s not complete. But you should get a different error … I see, ARM based CPU is now detected … next step will take longer. /Piet > Am 29.01.2022 um 22:03 schrieb Flavio de Castro Alves Filho > : > > Hello Guys. Thank you for your fast response. > > @Alan, indeed it is an ARM-

Re: Build Nuttx on MAC / ARM64 Ubuntu

2022-01-29 Thread Alan Carvalho de Assis
Flavio, What is at line 308 of your drivers/sensors/Kconfig ? Here is it just a "---help---", maybe the real issue is in the above line: select SCHED_HPWORK if SENSORS_L3GD20_BUFFER_SIZE > 0 BTW, it seems like your kconfig-frontends is different from our. BR, Alan On 1/29/22, Flavio de Castro

Re: Build Nuttx on MAC / ARM64 Ubuntu

2022-01-29 Thread Flavio de Castro Alves Filho
Hello Guys. Thank you for your fast response. @Alan, indeed it is an ARM-based Mac. @Peter, I added your patch in my NuttX project and ran again the configuration, but without success yet :-( Here is the output flavio@Flavios-MacBook-Pro nuttx % tools/configure.sh -m sim:nsh Copy files Sel

Re: Build Nuttx on MAC / ARM64 Ubuntu

2022-01-29 Thread Peter Kalbus
Created PR to detect host CPU type: https://github.com/apache/incubator-nuttx/pull/5374 /Piet > Am 29.01.2022 um 19:12 schrieb Peter Kalbus : > > Hi again, > > just as an extension. On the same M1, I’ve Ubuntu ARM64 running using > Paral

Re: Build Nuttx on MAC / ARM64 Ubuntu

2022-01-29 Thread Peter Kalbus
Hi again, just as an extension. On the same M1, I’ve Ubuntu ARM64 running using Parallels VM. Same issue: Host CPU Type detected as „x86_64“ and compilation stops at same file —> see below. Issue seems to be not specific to MacOS M1, but rather generic to ARM64 host systems. /Piet —

Re: Build Nuttx on MAC

2022-01-29 Thread Peter Kalbus
Config and log from my M1: —— # # This file is autogenerated: PLEASE DO NOT EDIT IT. # # You can use "make menuconfig" to make any modifications to the installed .config file. # You can then do "make savedefconfig" to generate a new defconfig file that includes your # modifications.

Re: Build Nuttx on MAC

2022-01-29 Thread Peter Kalbus
Hi, I’m using NuttX on a M1 MacBook Air since a couple of months. I’ve no issues to get NuttX compiled for my RP2040 based targets. But I can confirm, that the Sim configuration sim:nsh not working. Currently, I see there are two issues: /1/ M1 „Host CPU Type“ is detected as x86_64, bu

Re: Build Nuttx on MAC

2022-01-29 Thread Tomasz CEDRO
macOS is a BSD.. very close to FreeBSD: 1. Use gmake. 2. Make sure you have the right version of kconfig-frontends package installed. If you installed it locally make sure path to your local binary is in the first place. -- CeDeROM, SQ7MHZ, http://www.tomek.cedro.info

Re: Build Nuttx on MAC

2022-01-29 Thread Alan Carvalho de Assis
Hi Flávio, Is it MacBook M1 powered by ARM processor? If so it could explain the errors, since this CPU is new and AFAIK nobody compiled NuttX on it yet. Please try to run: make V=1 It will show more information and could give us more hints. BR, Alan On 1/29/22, Flavio de Castro Alves Filho

Build Nuttx on MAC

2022-01-29 Thread Flavio de Castro Alves Filho
Hello Guys, I am trying to build NuttX on my MAC computer. The computer is running Monterey MacOS version. I followed the instructions from the website. I intend to build the simulator configuration. Here are the messages from the terminal: flavio@Flavios-MacBook-Pro nuttx % make distclean