Article: Inside a Smartphone Accelerometer: PinePhone with NuttX RTOS
#3
Wow thanks @WhiteHexagon , that sounds awesome! I'm also using a very old MacBook Pro, macOS 10.15.7.

My Arm64 GCC version is 11.3.1, downloaded from here (look for "AArch64 Bare-Metal Target aarch64-none-elf")

Code:
→ aarch64-none-elf-gcc -v Using built-in specs. COLLECT_GCC=aarch64-none-elf-gcc COLLECT_LTO_WRAPPER=/Applications/ArmGNUToolchain/11.3.rel1/aarch64-none-elf/bin/../libexec/gcc/aarch64-none-elf/11.3.1/lto-wrapper Target: aarch64-none-elf Configured with: /Volumes/data/jenkins/workspace/GNU-toolchain/arm-11/src/gcc/configure --target=aarch64-none-elf --prefix=/Volumes/data/jenkins/workspace/GNU-toolchain/arm-11/build-aarch64-none-elf/install --with-gmp=/Volumes/data/jenkins/workspace/GNU-toolchain/arm-11/build-aarch64-none-elf/host-tools --with-mpfr=/Volumes/data/jenkins/workspace/GNU-toolchain/arm-11/build-aarch64-none-elf/host-tools --with-mpc=/Volumes/data/jenkins/workspace/GNU-toolchain/arm-11/build-aarch64-none-elf/host-tools --with-isl=/Volumes/data/jenkins/workspace/GNU-toolchain/arm-11/build-aarch64-none-elf/host-tools --disable-shared --disable-nls --disable-threads --disable-tls --enable-checking=release --enable-languages=c,c++,fortran --with-newlib --with-gnu-as --with-gnu-ld --with-sysroot=/Volumes/data/jenkins/workspace/GNU-toolchain/arm-11/build-aarch64-none-elf/install/aarch64-none-elf --with-pkgversion='Arm GNU Toolchain 11.3.Rel1' --with-bugurl=https://bugs.linaro.org/ Thread model: single Supported LTO compression algorithms: zlib gcc version 11.3.1 20220712 (Arm GNU Toolchain 11.3.Rel1)

Remember to add Arm64 GCC to the PATH after installing the DMG:

Code:
export PATH="$PATH:/Applications/ArmGNUToolchain/11.3.rel1/aarch64-none-elf/bin"

I used these steps to install kconfig-frontends: https://lupyuen.github.io/articles/nuttx...requisites

Code:
##  For macOS: brew install automake ##  Build "kconfig-frontends" because the "brew install" version doesn't work pushd /tmp git clone https://bitbucket.org/nuttx/tools.git cd tools/kconfig-frontends patch < ../kconfig-macos.diff -p 1 ./configure --enable-mconf --disable-shared --enable-static --disable-gconf --disable-qconf --disable-nconf ##  Needed because "make" requires "aclocal-1.15" and "automake-1.15" sudo ln -s /usr/local/bin/aclocal /usr/local/bin/aclocal-1.15 sudo ln -s /usr/local/bin/automake /usr/local/bin/automake-1.15 make ##  Install "kconfig-frontends" make install popd

And I'm using a rather old version of Zig:

Code:
→ zig version 0.10.0-dev.2351+b64a1d5ab

Lemme know if this works for building NuttX on macOS. Thanks! :-)
  Reply


Messages In This Thread
RE: Article: Inside a Smartphone Accelerometer: PinePhone with NuttX RTOS - by lupyuen - 05-17-2023, 05:07 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  asterisk or FreePBX on pinephone? vanja 0 885 06-16-2026, 09:24 AM
Last Post: vanja
  Jami on Pinephone [ IM and VOIP ] p1trson 15 25,491 06-16-2026, 05:02 AM
Last Post: marlboro1950
  Movuan distribution for PinePhone merom 6 8,092 06-04-2026, 02:10 AM
Last Post: merom
  Latest firmware for PinePhone modem! Subsentient 106 247,073 04-03-2026, 08:37 AM
Last Post: baptx
  Fedora + Phosh for PinePhone njha 77 233,729 01-14-2026, 12:22 AM
Last Post: tllim
  Difficulty with openSUSE Tumbleweed Install PinePhone Beta danm1988 0 1,388 11-17-2025, 07:49 AM
Last Post: danm1988
  baremetal via Zig on PinePhone - JumpDrive help please WhiteHexagon 1 4,704 07-07-2025, 10:33 AM
Last Post: WhiteHexagon
  Slarm64 on PinePhone [Unofficial Slackware ARM - 64 bit] acid andy 40 71,826 12-28-2024, 12:19 AM
Last Post: mara
  Office applications for the Pinephone Peter Gamma 2 6,164 09-05-2024, 09:22 AM
Last Post: Peter Gamma
  Struggle to install LibreOffice on the PinePhone Peter Gamma 50 81,222 07-26-2024, 10:35 PM
Last Post: Peter Gamma

Forum Jump:


Users browsing this thread: 1 Guest(s)