(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
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!
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
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