Having a tough time compiling a module for User Mode Linux. I just need a basic way to compile a very basic module in user mode linux and cannot seem to get it to work. I checked out the how-to on sourceforge for UML but had no luck. Anyone have a working example of what it takes?
Thanks!
Related
I have a laptop for which I lack admin privileges.
I'm developing a project using cython and I need to find a way to compile it there. I should mention in case it's useful to someone, that by using pure python mode my code runs 100% correctly as interpreted python. But I need to test the compiled code when I'm working at this laptop too.
I've tried downloading the whole layout of VS 2022 community with the --layout option, but once everything is downloaded (all of 40 gigabytes) the executables vs_setup.exe and vs_setup_bootstrapper.exe run and close without any output, not even from the command line and with option.
I tried putting the layout in a different drive using SUBST, to try to approximate the suggestion at the end of this page, to no avail.
I have installed LLVM with no admin rights, hoping to compile things manually, as setuptools does not support LLVM out of the box. But then cythonize is asking for vcvarsall.bat all the same, and I have my doubts whether it will be enough with the python.dlls to compile and link my extension types.
Does anyone know then of any kind of viable alternative for compiling cython in a windows PC with no admin rights?
Thanks!
I'm a beginner at Linux kernel. I have to modify the Linux driver for a project.
how do I access the source code files (such as ani.c, ath9k.h, etc.)?
I tried looking for them in the following path, but I only found kernel object files (*.ko).
PATH: drivers/net/wireless/ath/ath9k/
It's probably easiest to find them on Linus's GitHub account. You might find the guides linked from "Working with the kernel development community" helpful too.
I want to do some Linux kernel programming. I have chosen Eclipse CDT as my IDE but i can't seem to get a project started. By started i mean that i can't get trough the project wizard.
I have followed different tutorials like this one:
Link to tutorial
On the select configuration screen when i press finish the program doesn't continue (there is a loading bar, but it dissapiears quickly).
Can anyone give me some pointers to solve this problem? I run Ubuntu 12.04 on a parallels virtual machine on a Macbook.
Thanks in advance!
Check if the directory containing your kernel source is owned by 'root'. I faced that problem and resolved it by doing a sudo chown -hR my_user_name my_kernel_dir. Sadly Eclipse (3.8.1) does not show any visible warning.
I have some windows command line applications, in binary form (I do not have the source code) which I use frequently. Sometimes I need to run them in Linux machines, and it works perfectly under wine (wine is not an emulator). The problem I'm facing now is that I need to work on a cluster which has not wine installed on it. I wonder if it is possible to create in another similar linux machine kind of a static executable or so, so i can run this windows program on the cluster
Thanks
This is an insane idea ;) Install wine on that cluster. What stops you? If you can execute programs there....
If this is some kind of serious software, it don't recommend to run it on non-native OS. Wine is not developed for running critical applications. It is still not Windows.
You can't compile a static exe; Windows is too complex for that. But you might be able to compile Wine to run on your cluster.
What you need is a way to compile code on the cluster. Wine itself can be installed anywhere but since I don't know if you have all the dependencies on the cluster, it might take some work.
So I suggest to get the Wine sources, run configure --prefix=$HOME/wine && make and then work through the errors.
(--prefix is the path under which Wine will be installed; it should be some path that is the same on the cluster and your build host. If all else fails, ln is your friend).
I've just spent a couple minutes looking for a reference to the knowledge in my head but it my googling isn't up to it.
Picasa for linux is bundled with Wine, so it may be possible but I couldn't find the article I read a couple months back.
Other than this, you can cross compile with gcc and winelib but as Cyper rightly said, no code no compilation.
I'm sorry if I'm asking the wrong thing in stackoverflow, but I've come to my wits end dealing with Blackberry. Documentation, site organization, general levels of support have all come together to the point that I haven't been able to do a whole lot of actual work in this environment.
I currently have the Eclipse environment downloaded from the blackberry developer's area website. I can run the simulator and everything else without issue. What I'm trying to do now is to move from debugging on the simulator to debugging on the device itself. This is an important step for me, but I haven't found a satisfactory way to do it...
What I've found are some posts saying that I should package an ALX (of which I'm still not sure on how to do), and using the BDM to install it. This, however, means I won't be able to use the debugger...
If someone could direct me to a resource that will give me step by step instructions from coding to release of blackberry development, this would be awfully helpful.
Thanks so much!
Yes, please test your code on a device. Basic stuff works the same between both, but especially when you get into networking, media, etc. the devices are different.
You can debug on your device through Eclipse. I can't provide you with an end-to-end guide on SO, but here's the quick debug guide.
Build (sign if necessary) and load your app onto the device. You can do this with the desktop manager, or with the command-line javaloader tool that comes with the JDE (look in the bin directory), or even OTA (over the air)
After loading, make sure the Desktop Manager is NOT running (it'll interfere with on-device debugging)
From Eclipse, create a new debug configuration, in the Debug Configurations dialog click on BlackBerry Device, and then click on the new configuration icon. Default settings should be fine.
Make sure your device is plugged into your USB port and start your new debug configuration. You'll probably get a lot of prompts about things missing (because actual devices don't have debug info for any built-in stuff, generally) but click through those and you should be fine to debug.
This is something we struggled with a lot at my old company. I don't think it's possible to do with Eclipse, you have to use the BB JDE, creating the necessary project files against the same code base. I could be wrong on that one as we weren't using the RIM Eclipse plugin, just building it all with Ant.
Personally I never managed to get passed "debugger attaching..." on the device, although I believe a colleague got it to connect but found it too slow to be usable (if you think how slow the emulator can be sometimes...). I know our ant build file had a target for building a version specifically for the JDE profiler, although that was only against the emulator.
In the end we resorted to using our own function debugging code that manually logged entries, exits, parameters and run times, sending the result to a special server.
Sorry if that doesn't help much, but that was our experience.
Never needed to debug on the device itself, I've always found that the apps i've written work on the device, same as on the handset.
As for generating an ALX, in eclipse right click on the project inside the Package Explorer and select "Generate ALX File".