Ive been following the Digi-Key introduction to Yocto project on the STM32MP1-DK1:
link here
Ive gone through all the tutorials and had success setting up a custom Yocto project with the following layers:
BBLAYERS ?= " \
/home/&user/yoct/poky/meta \
/home/&user/yoct/poky/meta-poky \
/home/&user/yoct/poky/meta-yocto-bsp \
/home/&user/yoct/meta-openembedded/meta-oe \
/home/&user/yoct/meta-openembedded/meta-python \
/home/&user/yoct/meta-st-stm32mp \
"
I've managed to flash it to an SD card and get it to boot on the device with a terminal through the ST link using minicom.
I then tried to build core-image-x11 bitbake and flash it to the SD card using the provsed .tsv file in "yoct/build-mp1/tmp/deploy/images/stm32mp1/flashlayout_core-image-x11/trusted"
while booting the information that comes up in the terminal does not display any issues and the screen connected to the HDMI detects that there is a signal but then flashes up no signal on the screen and then there is nothing being displayed on the screen and the minicom terminal enters its interpreter.
i have changed the bootfs exlinux.conf to be APPEND root=/dev/mmcblk0p6 rootwait rw console=ttySTM0,115200 where partition 6 is the rootfs file system.
What i am expecting to see is the STM32MP1 logo display on the screen connected to HDMI and a terminal on the HDMI screen which i can use through keyboard and mouse.
My ultimate goal is to draw to the screen both text and shapes, so to be able to build a UI application that can be displayed on the HDMI screen, but I'm struggling to find any clear documentation and or tutorials on this.
I've managed to build applications in the STM32 Starter package using the western desktop using C and the GTK-3.0
Have a missed a step or am i over completing this?
Related
We had problems whit GPS location and the solution was to change /system/etc/gps.conf or /etc/gps.conf
Original file:
NTP_SERVER=north-america.pool.ntp.org
XTRA_SERVER_1=http://gllto1.glpals.com/7day/v3/latest/lto2.dat
XTRA_SERVER_2=http://gllto2.glpals.com/7day/v3/latest/lto2.dat
SUPL_HOST=supl.google.com
SUPL_PORT=7275
Solution #1) Modified file:
NTP_SERVER=north-america.pool.ntp.org
#XTRA_SERVER_1=http://gllto1.glpals.com/7day/v3/latest/lto2.dat
#XTRA_SERVER_2=http://gllto2.glpals.com/7day/v3/latest/lto2.dat
SUPL_HOST=supl.google.com
SUPL_PORT=7275
Solution #2) Modified file:
NTP_SERVER=north-america.pool.ntp.org
XTRA_SERVER_1=http://xtra1.gpsonextra.net/xtra.bin
XTRA_SERVER_2=http://xtra1.gpsonextra.net/xtra.bin
SUPL_HOST=supl.google.com
SUPL_PORT=7276
Requirements:
Download the related firmware for your tablet from https://www.sammobile.com/firmwares/
Extract the files and take only the boot.img and copy it to the tablet's directory.
Create root bootloader, download the app https://github.com/topjohnwu/Magisk/releases/download/manager-v7.1.0/MagiskManager-v7.1.0.apk and install on Android.
open the magisk app follow the installation instructions and choose the boot.img file and it will create a root bootloader file.
Use this file to install on the tablet using ODIN.
use ADB commands to change the file.
ADB commands:
adb devices
adb shell su -c "chmod 777 /etc/gps.conf"
adb push gps.conf /etc/gps.conf
Lastly format the tablet again to factory recover, to get back the original bootloader.
I hope I was able to help you!
I'm trying to add an external library to my AOSP (v9.0.0-2.0.0) image by following the instructions provided with said library. The instructions are:
cd <aosp source folder>/external/libgpiod
mm
Then I run luch and then make to build the image then I flashed it to the SD card. But when I the library commands it via adb shell, none of them work. I get the response:
dart_mx8mm:/system/app # gpiodetect 0
/system/bin/sh: gpiodetect: not found
Although I can see that there are some files name the same as the library in the /out folder.
Is there any way to debug this? The log file isn't helping me very much.
The library in question is https://github.com/technexion-android/platform_external_libgpiod
I have build a linux image with yocto that has xfce as desktop environment,
But what i actually need is just a terminal and a browser.
Is it possible to remove the desktop environment and just create an application that has two options to open 'terminal' and 'browser' and make my image boots on it directly.
If this is possible would it reduce the image size or not, beacause i am looking for a minimum sie of the image.
If you want to remove your desktop env then add below line in your disto.bb or local.conf
DISTRO_FEATURES_remove += "x11 wayland"
I dont think without desktop env you cant run browser.
are you using imx6 and vivante graphics ?
We are using touchscreen with touch driver (ft5x06). Now to calibrate and test the touch device i downloaded tslib from github and installed to separate folder by following commands:
cd ~/tslib
./autogen.sh
./configure --prefix=/home/user2/Desktop/tslib_arm
make
sudo make install
now on my embedded board's Desktop has got a folder tslib_arm which consists of compiled code for tslib (like bin, etc,lib etc..)
when i run ts_calibrate(./ts_calibrate) from /home/user2/Desktop/tslib_arm/bin then the calibration screen is coming and calibrating. and if i run ./ts_test , it gives options like drag and draw, which are also working fine.
But after closing these apps (ts_calibrate or ts_test) and if we check the touch on the Desktop or any application or normal operation touch seems to be uncalibrated only.
Why is it so???
Do i need to copy this tslib_arm or any other files from tslib_arm folder to system's rootfs location????
That's because your "Desktop or any application" most probably doesn't directly implement and use the API that tslib offers (to read touch input samples).
tslib includes documentation on how to use the filtered input in your environment.
What should always work, is using the "ts_uinput" daemon program that comes with tslib (just like "ts_calibrate" does). It's a driver for tslib that creates a (second) touchscreen input event device for you in /dev/input/. All you need to do is tell your "Desktop or application" to use it. All desktop environments have options to choose which input device you want to use.
I have built ICS source using "make -j4", then I have modified the Music application in the source code ("packages/apps/Music") & built it successfully using "make Music". It generates "out/target/product/generic/system/app/Music.apk". Now I want to launch an emulator with this new source & test my changes in Music app.
How to do this ? Do i need to rebuild entire source code ?
I found a solution here:-
http://devtcg.blogspot.in/2009/03/building-running-and-debugging-android.html
Also set your path:-
export PATH=$PATH:/home/yourname/android-sdk/tools:/home/yourname/android-sdk/platform-tools
U may also need to :-
export ANDROID_SDK_ROOT=/usr/local/Cellar/android-sdk/rXX (your Android SDK path),
if u get an error like "unknown skin name"
U can also launch emulator with sdcard as:-
mksdcard -l mySdCard 1024M newsdcard.img
emulator -partition-size 256 -sdcard newsdcard.img -skin WXGA720