show devices connected with raspberry pi in poky distribution (Yocto Project) - raspberry-pi

How can show all devices connected to raspberry pi work on poky distribution compiled with bitbake
for example
i have microphone connected to my RPI by jack slot
in raspbian i can write something like that
cat /proc/asound/cards
but in poky dist. can not find asound folder

Related

How to create patch to modify the device driver?

I need to modify the busb.c to from the bluetooth device drivers to work with the bluetooth USB dongle with the Yocto dunfell.
I know, how to create the patch and include with the yocto image for the Device Tree Source file (DTS)
But, with the Linux kernel module, I'm facing the error while baking the image.
Can any one redirect me to customize the kernel module via patch under Yocto?

Raspberry Pi Pico - Install External Libraries/API

I need to use a device to connect and control via a Raspberry Pi Pico.
The device has its own libraries and API with the commands needed to operate it, I have already done this procedure on a Raspberry Pi Zero W on Raspbian by downloading and compiling the API for this device and it works.
How can I compile or install these libraries so that the commands are recognised on the script to be uploaded to the Raspberry Pi Pico, as it does not have an operating system?
Thank you

raspberry eth0 network interface name

I am working with several raspberry model 3 devices.
I have installed same raspbian version (latest) with NOOBS.
On some raspberry devices, I have an eth0 network interface and on other raspberry I have an ethernet interface which name is enXXXX. I need on this raspberry to add net.ifnames=0 in /boot/cmdline.txt.
My question is why the interface name is not the same? It seems to depend on hardware but this is the same model of raspberry.
Thanks.
On those Raspbian that display eth0 is probably running Raspbian Jessie (Debian 8), while those display 'enxxx` (en with the MAC address) is running on the latest Raspbian Stretch (Debian 9). To confirm it, run command line:
cat /etc/os-release
This documentation provide more background information.

How do you get a waveshare 3.5 inch touch LCD to work with Raspbian Jessie?

I have a waveshare 3.5 inch touch LCD display and I m trying to get it working with the latest version of Raspbian A.K.A Raspbian Jessie. I followed futurice.com 's tutorial on getting it to work (tutorial is titled I'd like some LCD on my pi) and it worked on Raspbian Wheezy just fine. All I get now is a blank white screen. All help is greatly appreciated! (I must use the official Raspbian Jessie image without NOOBS from the Raspberry pi website.) I have a Raspberry Pi 2 Mobel B +.
From the product page:
Why the LCD doesn't work with my Raspbian? To use the LCD with the
Raspberry Pi official image, driver should be installed first. Please
refer to the user manual. However, for the first testing, you may want
to use our provided image directly. Why the LCD still doesn't work
with the Waveshare provided image? Make sure the hardware connection
is correct and connects fine. Make sure the image in TF card is burnt
correctly. The PWR will keep on and the ACT will keep blinking when
the Raspberry Pi starts up successfully, in case both of the two LEDs
keep on, it is possible that the image was burnt incorrectly OR the TF
card was in bad contact. Which power supply should I use? It is
strongly recommended to use a stand-alone 5V/2A power adapter, because
the PC's USB port might doesn't have enough power to support the Pi
and LCD. For more info, please check the wiki page
You can find more info on their wiki.
It sounds like you either need to use their Raspian image, or install the driver for this display on your existing Raspian install:
wget http://www.waveshare.net/w/upload/7/73/LCD-show.tar.gz
tar xvf LCD-show.tar.gz
cd LCD-show/
sudo ./LCD35-show

NW.js build doesn't open for Raspberry Pi (Raspbian)

I have a desktop application (built with NW.js and the node-webkit-builder) that runs smoothly on Windows and OS X, however, I can't seem to open the executable on the Raspberry Pi. The NW.js builder outputs the 32- and 64-bit Linux distributions, as well, that I assume should operate on Raspbian or Ubuntu MATE. However, I keep getting the error:
cannot open the application since there isn't a readable executable.
Even after chmod +x the application, it doesn't work.
raspberry pi use arm architecture, you may checkout this: https://github.com/toxygen/armhf-node-webkit
Rasp Pis are using ARM processors and not the x32 and x64 processors the NW.js binaries support.
You will need to download a prebuilt for the ARM or build it yourself.
Here is a link to a prebuilt for 0.12.0. You will package your app just like you would on a x32/x64 machine.
Unfortunately ARM is still not an officially supported platform and if you wish to have prebuilts you will have to depend on community members/contributors.
You need the binary port of NW.js (node-webkit) for Raspberry Pi.
I have just created a repository with the node-webkit binary port that runs on Raspbian, tested and working on Raspberry Pi 1 and Raspberry Pi 3 so it is ARMv6 and ARMv7 compatible.
Here you can check it: https://github.com/jalbam/nwjs_rpi