Top command failing in my embedded device - embedded-linux

When I fire the top command for my board it says 'vt102': unknown terminal type. I cant seem to figure out why it is happening so I have also loaded the library files from my PC into the board.The procps was built using my own cross-sompiled gcc which went quite well. Does anyone know what is missing?

Probably the problem lies in the TERM environment variable.
Try to do
export TERM=linux
and to relaunch top

I instead hacked into the code and commented the //#include asm/page.h and good gracious it worked.
If anyone need help on the issue leave a post.

Related

Stm32CubeIDE can't flash because of arm-eabi-gcc

I'm on Archlinux trying to flash a Nucleo STM32F446 board using STM32CubeIDE.
While running an example code (correctly build without problem), i get this error :
The quite not fun fact is that the command "arm-none-eabi-gdb --version" works well when i launch it on terminal.
And the same way, the file "libncurses.so.5" is linked in /usr/lib/libncurses.so.5 :
well, i'm lost here. i don't know what more to do. Even if i already checked a few forums, i know i'm not the only one with this issue.
Thanks for your help !
Well, kinda figured it out,
an AUR package can solve the problem : ncurses5-compat-libs
https://aur.archlinux.org/packages/ncurses5-compat-libs/
Download this package after removing the handmades links helps removing thins error.
Unfortunately, an other error, which seems to come from the code of the package itselfs pops up instead :
But i will create an other topic specifically on this one.
Have a great day, hope it works well for you !

Tensorflow object detection: ImportError: No module named nets

I am currently attempting to install the tensorflow object detection app on Windows 7 (employer requirement) and I am failing at a few steps from the end.
Basically I get the following error when I run the installation test command:
ImportError: No module named nets.
I have read some solutions on the subject:
https://github.com/tensorflow/models/issues/729
https://github.com/tensorflow/models/issues/1842
which looks like this:
export PYTHONPATH="$PYTHONPATH:"somepath"/tensorflow/models/slim"
basically meaning that I must set the right path in the PYTHONPATH environmental variable.
Working with Windows, I tried calling this:
SET PYTHONPATH="$PYTHONPATH:C:tensorflow/models/slim
And when it didn't work, I created a PYTHONPATH variable in system-> environmental variables.
I'm still getting the error so I suppose that I am still missing something but due to my lack of knowledge I still can't figure out what.
Would someone familiar with Windows be able to point out what's missing?
Thanks
in linux:
add export export PYTHONPATH=$PYTHONPATH:pwd:pwd/slim to ~/.bashrc
attention:you should keep single quote mark
if you work with windows, i guess it should like this:PYTHONPATH=$PYTHONPATH:'C:/tensorflow/models':'C:/tensorflow/models'/slim
just my guess, you can take a try.
good luck!
If you run the setup.py it will install all the relevant modules for object detection. The other option is download the git directory. cd to the folder and try to run the module from there. You might face protubuf issue. Try to install it before running the code. It's bit complicated to install protobuf in windows. But if you are not using ".pb" file, then you don't need to.
I figured out a way to make it work. I am not writing this as a final answer as it is mostly a workaround and due to lack of understanding from my part I cannot guarantee it will work (and also it might not be best good practice).
Anyway here it is:
As Beta previously suggested, you have to run setup.py, however running it from models folder did not do it for me, I also had to run it from object detection folder.
However there was a problem there, it generated an error saying the BUILD already existed (which was correct) so I had to delete the BUILD file from inside of model.
After that it worked, turns out the path I had set was working fine.
Now if some experts would look into this and explain how and why this workaround worked it might make this a valid solution.

Cordova file plugin can't access the application directory on windows 8

Please help, I can't seem to get an answer for this anywhere.
If I use the Cordova file plugin to try and access the application directory on Windows 8, it always fails! Here is the basic code I am using:
window.resolveLocalFileSystemURL(cordova.file.dataDirectory + 'www/assets/images/image.png', gotFile, fail);
I have been using the same basic code on the Android and iOS versions of the app for some time now with no problem so I don't understand why the Windows 8 version doesn't like it.
Through console logs I can see that the link generated is in fact correct and it's actually exactly the same as one used to append the same image to the page (which works fine):
<img src="ms-appx:///www/assets/images/image.png">.
Can anyone please tell me why I can't use cordova.file.applicationDirectory with Windows? I know that folder is read only, I am just trying to read from it.
Note: I can use window.resolveLocalFileSystemURL with the cordova.file.applicationDirectory no problem at all, it works as expected. Its only the cordova.file.dataDirectory that always fails for me. The closest answer I could find was some people having trouble with the image paths of images saved from the camera plugin but that seems to have been a bug that was fixed by Cordova. If this is not a bug also then I'm assuming there is something really simple I can do to make the resolveLocalFileSystemURL work?
Thanks.
I found a solution to my problem by using 'windows.storage.storagefile', I had success with the following code:
Windows.Storage.StorageFile.getFileFromApplicationUriAsync(new Windows.Foundation.Uri('ms-appx:///www/test.html')).done(win, fail);
More info can be found here: msdn.microsoft.com/library/windows/apps/… I hope this helps some other people struggling with Windows 8 as I spent quite a time scratching my head about it and trying lots of different ways.
Cheers,
Stuart

Installing libqxt VS2010

Sorry if I'm a bit of a noob when it comes to this sort of stuff, but thanks anyway.
Basically I've managed to install QT4.7 properly and it works and compiles stuff. (I'm using it conjunction with vs2010). However, I wanted to try something that requires libqxt. Unfortunately this seems to be the only installation guide out there. And I'm really not getting it. It mentions this little bit:
"configuration
Make sure qmake is in your PATH and run"
I think this is where I'm getting tripped up. Is this the qmake the same one I used for QT4.7? (If this is the case I shouldn't have to change anything right? It ought to look like this: "c:\Qt\4.7\bin". Which is added by going to >
Control Panel|System|Advanced|Environment variables menu. And which is already there from installing qt4.7)
Or is there a new qmake for libqxt somewhere? Am I understanding the term PATH incorrectly?
In any case right now clicking on configure.bat just echoes back "searching" and then closes before I can read what else it says. Would I be better off just opening a cmd prompt and cd'ing to the libqxt directory and running the configure file from there?
If anyone knows of an alternate install libqxt tutorial somewhere that'd probably helpful to me as well. Thanks to anyone who can take a minute to point me in the right direction.

MonoDevelop on Ubuntu -- No compiler, no debugger, nothing... why?

I've tried to use MonoDevelop 2.4 and 2.6 with Ubuntu 11.04, but neither of them seems to actually provide any way of running the project. (As the picture shows, the Run, Step, and Debug items are disabled -- both on the toolbar and inside the menus.)
This is true for all project types I've seen so far -- C#, Python, etc...
But mono-debugger is installed. Is there some post-setup task that I need to do manually, for this to work?
Looking over https://github.com/mono/monodevelop/blob/master/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands/ProjectCommands.cs
Perhaps you haven't selected a 'Project'? Open up the Solution pad and click on the Test1 project (not the solution at the root of the tree, but the project just below it).
I'm just guessing here since I don't have Ubuntu and can't actually test anything.
Edit: actually, it looks like clicking on the Solution would work as well.
From looking at the code, another possibility is that you don't have a build target? Not sure how that would happen, but unless you only opened Main.cs and not actually Test1.sln, I don't know what to suggest.
When you opened the project, which file did you open? Test1.sln? Test1.csproj? Or Main.cs?
Try looking for mono-mdb and more packages in synaptic, this may fix this issue.
Don't remember exact names, Linux box at home...
Did you really open the project? It looks like you just opened Main.cs. It won't work that way.
Make sure you installed the compilers (mcs etc)

Resources