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
  Movuan distribution for PinePhone merom 4 352 04-07-2025, 12:32 AM
Last Post: tllim
  Latest firmware for PinePhone modem! Subsentient 105 164,594 02-02-2025, 08:47 PM
Last Post: bacydentir85
  Slarm64 on PinePhone [Unofficial Slackware ARM - 64 bit] acid andy 40 39,034 12-28-2024, 12:19 AM
Last Post: mara
  Office applications for the Pinephone Peter Gamma 2 997 09-05-2024, 09:22 AM
Last Post: Peter Gamma
  Struggle to install LibreOffice on the PinePhone Peter Gamma 50 42,312 07-26-2024, 10:35 PM
Last Post: Peter Gamma
  Why does Pine64 sabotage office on the Pinephone? Peter Gamma 5 1,863 07-04-2024, 07:34 AM
Last Post: Kevin Kofler
  Which word processor to choose for the Pinephone? Peter Gamma 16 7,844 06-22-2024, 07:28 AM
Last Post: Peter Gamma
  Samba share on the Pinephone? Peter Gamma 0 886 06-16-2024, 10:26 PM
Last Post: Peter Gamma
  Possible Free Backup Carrier for PinePhone PineFone 0 821 06-13-2024, 03:45 PM
Last Post: PineFone
  Using Signal on PinePhone in mid-2023? dante404 47 28,720 05-03-2024, 02:19 AM
Last Post: dragonhospital

Forum Jump:


Users browsing this thread: 4 Guest(s)