Article: Inside a Smartphone Accelerometer: PinePhone with NuttX RTOS
#2
(05-16-2023, 09:16 PM)lupyuen Wrote: When we tilt our Smartphone from Portrait to Landscape... How does it know that we're tilting our phone?

I just started looking at NuttX yesterday Smile I am busy reading all your articles, and so far they have been great, and very educational, thanks!  but just to say I very much prefer the github.io format you have been using prior to this article.

Yesterday I was trying to setup the build environment for NuttX (I am running an older macos).  I had a couple issues with the instructions from the apache site, specifically getting kconfig-frontends installed.  (even the original site seemed to be down.)  Anyway I seem to have solved that one now, but hit another problem running 'make'.  The sub packages need a TOPDIR value that seemed to be blank on macos.  I ended up changing Unix.mk with:

Code:
TOPDIR := $(shell echo "$${PWD// /\\ }")

but that just shifted the error:

Code:
make[1]: *** No rule to make target 'context'.  Stop.
make: *** [tools/Unix.mk:445: libs/libm/.context] Error 2
so then I started to think maybe I downloaded the wrong build scripts (unix vs macos?)

The good news is I tried another of your tutorial type articles regarding the lvgl patching of 'jumpdrive' and this boots on the PinePhone! Smile and just to say: Wow! it is fast!  After holding the power button for a few seconds to turn the PP on, within a second lvgl interface is already up and running.  Very impressed, and more like what I was expecting from this hardware.  Great work!  It crashes after a few clicks, but I know it is early days.  Now I want to get the build environment up and running even more Smile  So suggestion would be to have each development environment with their own setup instructions.  Since in the prerequisites I am currently a bit lost to what tool-chain I need.  And the above lvgl sourcecode zip currently fails to build:

Code:
/bin/bash: aarch64-none-elf-gcc: command not found

but maybe the environment got confused trying to build two different downloads of nuttX.  Anyway looking forward to seeing more of your articles.  Any plans to investigate the OpenGL/OpenVG parts of the SoC?  Maybe I can try that when I am up and running.  I am also Zig based, so you gave me a good starting point Smile
  Reply


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

Possibly Related Threads…
Thread Author Replies Views Last Post
  asterisk or FreePBX on pinephone? vanja 0 681 06-16-2026, 09:24 AM
Last Post: vanja
  Jami on Pinephone [ IM and VOIP ] p1trson 15 24,425 06-16-2026, 05:02 AM
Last Post: marlboro1950
  Movuan distribution for PinePhone merom 6 7,545 06-04-2026, 02:10 AM
Last Post: merom
  Latest firmware for PinePhone modem! Subsentient 106 240,347 04-03-2026, 08:37 AM
Last Post: baptx
  Fedora + Phosh for PinePhone njha 77 228,028 01-14-2026, 12:22 AM
Last Post: tllim
  Difficulty with openSUSE Tumbleweed Install PinePhone Beta danm1988 0 1,209 11-17-2025, 07:49 AM
Last Post: danm1988
  baremetal via Zig on PinePhone - JumpDrive help please WhiteHexagon 1 4,461 07-07-2025, 10:33 AM
Last Post: WhiteHexagon
  Slarm64 on PinePhone [Unofficial Slackware ARM - 64 bit] acid andy 40 69,464 12-28-2024, 12:19 AM
Last Post: mara
  Office applications for the Pinephone Peter Gamma 2 5,899 09-05-2024, 09:22 AM
Last Post: Peter Gamma
  Struggle to install LibreOffice on the PinePhone Peter Gamma 50 78,009 07-26-2024, 10:35 PM
Last Post: Peter Gamma

Forum Jump:


Users browsing this thread: 2 Guest(s)