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
  Using Signal on PinePhone in mid-2023? dante404 47 14,396 05-03-2024, 02:19 AM
Last Post: dragonhospital
  Slarm64 on PinePhone [Unofficial Slackware ARM - 64 bit] acid andy 38 25,733 04-23-2024, 10:29 AM
Last Post: donchurch
  PinePhone app development WhiteHexagon 15 4,296 04-23-2024, 05:19 AM
Last Post: Jonnyc
Wink PINEPHONE not booting Touchwood 2 560 02-23-2024, 07:27 AM
Last Post: Touchwood
  Slack on PinePhone Adam Seline 5 5,550 12-20-2023, 07:20 AM
Last Post: nickolas
  Struggle to install LibreOffice on the PinePhone Peter Gamma 48 25,098 11-24-2023, 07:02 AM
Last Post: Peter Gamma
  Which word processor to choose for the Pinephone? Peter Gamma 8 2,225 11-23-2023, 01:06 AM
Last Post: Peter Gamma
  openSUSE for Pinephone Alefnode 75 103,389 11-17-2023, 08:37 AM
Last Post: Uturn
  Genode- Sculpt OS for the PinePhone (non Linux) Surehand53 1 1,081 11-04-2023, 07:23 PM
Last Post: tllim
  Abiword as a office mobile word processor for the Pinephone? Peter Gamma 11 2,518 10-24-2023, 08:57 AM
Last Post: Peter Gamma

Forum Jump:


Users browsing this thread: 1 Guest(s)