Why Linux driver need to compile? [closed] - linux

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I have a question that is why Linux driver need to compile with Linux source if a new hardware in the unsupported list of Linux kernel? but Windows driver just only need to double click setup.exe, don't need to compile...
Is it the kernel type different? microkernel vs monolithic kernel? or any other reason? thank you.

This is mainly to do with Linux' Monolithic Kernel. This in contrast to Windows' kernel which does not include drivers and drivers are written using the Windows Driver Model which is plug-and-play. Read about the differences in their respective Driver Architectures here.
I would suggest you give this article on Loadable Kernel Modules a read.

Related

How can I create a new process in Linux Kernel? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 years ago.
Improve this question
How I can create a new process in the Linux kernel?
Because the function fork could not be implemented in the kernel... Then as How I can create a new process in the Kernel?
Thx.
In-kernel process can be created using kthread_create (or kthread_run, which is similar to kthread_create, but also starts the thread).
User-space program can be called using call_usermodehelper.
Creating generic user-space process in the kernel is discouraged (and actually unclear).

how can I boot linux on ARM platform with opengl and Qt? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I want to compile image of Linux kernel with optimized start up time (2 or 3 seconds). and then port to ARM A10 cpu with Opengl and Qt. Do you anyone have experienced ?
I've got two TI Sitara SoCs working with Qt Embedded (framebuffer driver) using Buildroot. BR provides both Qt4 and Qt5. There was an effort to bring multimedia support. See this GSoC report.

Why does a binary of one OS (Windows) does not run in other ( Linux) for same underlying architecture? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
It may be a trivial question but I have hard time to explain to my little brother that a Windows binary will not run in another different OS like Linux even when both the OS are running in the same machine. If the binaries (opcodes) have to be same to execute in the same underlying architecture ( say Intel 32-bit), what are the differences between the binaries of Windows and Linux ( or even Ubuntu and RadHat Linux)? Are there any runtime modification of the binaries at instruction level before execution by the processor? How do I explain in lay man /simple terms that he can understand.
The different operating systems have different ABIs which require different loaders to use. If the loader for the other OS is available (via, say, Wine) then it is possible to load the executable, at which point the API becomes important.

Creating a Linux Desktop Envoriment [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
Suppose I want to create my own desktop envoriment for Linux, without X. Like Google with the Android did. Where do I start? Is it actually a normal application that just draws stuff, and starts after the kernel boot? And how does it draw it? Using OpenGL or is there something more generic? And graphics drivers, how is it going? You should develop custom graphics drivers for your desktop or it comes with the Linux kernel?
Note: It's for normal PCs and not embedded devices.
Thanks.
See: DirectFB (and Wikipedia).
You can use the frame buffer device.
There are a few toolkits that render directly to the frame buffer for embedded device - even fully featured toolkits like Qt and wxWidgets can do it.
Well, you could study how OS X works in some detail.
You're probably best advised to keep most of the X server... it has a set of good device drivers already, and they're a very large part of the work.

Linux boot loader [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 13 years ago.
Improve this question
I'm trying to boot Linux on a GPS device from a SD card.
I have found some informations about the device on Internet and apparently it's possible to load a customized Windows CE.
To achieve this, they use a boot loader file that has the extention ".bld"
I extracted the ISO of Ubuntu MID on the SD card, but there is no files with a bld extension. I guess it use a different boot loader system .. which doesn't seem to work on the device.
So my question is;
Is there a way to use a "bld" file to boot Linux ? If so, how can I create the file ?
I'm sorry if the question is stupid or off-track, I don't know much about boot loaders ..
In case you wonder, here's the device:
http://www.curtisint.com/web/browser.asp?productID=GPD359&catName=GLOBAL%20POSITIONING%20SYSTEM
More detailed specs (and mod site):
http://gpd359.wikidot.com/article:outofbox
Edit: Turns out I only had to put a file named "YFGo2CE.bld" (the file only contains a random string) on the SD card and reset the device. From there I can boot directly in WindowsCE and load the suggested Haret ROM tool.
Thanks!
One thing you might want to look at is the Haret ROM tool. It can be found and more information here

Resources