Run application program after linux bootup on ARM [closed] - c

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
I have loaded bootloader and ported linux on my ARM processor Am3892. Now i need to run one application program, but i don't have any console interface to run it after booting linux. Is there any possibility that my program will execute as soon as the linux will bootup? Please reply.
Thank you

Pass the path and application name to the kernel as a boot parameter for init, the kernel will only start the init process itself (see: http://en.wikipedia.org/wiki/Linux_startup_process). Traditionally this application then handles starting daemons, geTTYs, etc.
Most boot loaders allow you to specify a path for the init app as part of the configuration for where to find the kernel.
e.g. /boot/vmlinuz-n.n.n init=/path/to/theapp
If you let us know what boot loader you're using then perhaps we could more specific. Otherwise look up how to pass linux kernel arguments to your boot loader.

Related

Install a C program to another machine without share code [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 3 years ago.
This post was edited and submitted for review 11 months ago and failed to reopen the post:
Original close reason(s) were not resolved
Improve this question
I need to install a C program UNIX to another UNIX machine, what can I do?
In case the other machine has different architecture how can I share my program in the best way?
The simplest way to share your program is compile it and share the binaries. There are a lot of open question you will have to solve (libraries dependencies, specific distribution configurations, ...). You must to precompile for every targeted hardware architecture (x86-64, ARM, ...) and for every specific SO (BSD, Linux, ... even Windows).
As an example, Gimp is coded in C/C++ and exists binaries for many hardware architectures and operating systems.

Configuration Linux Kernel [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 6 years ago.
Improve this question
I need to compile kernel linux 3.4.4. I use "make menuconfig" to have a user-friendly interface to choose configuration.
I haven't understood an aspect of the kernel configuration: what is the difference between i choose to include an option during the configuration and i choose to include, as a module, an option during the configuration?
Thanks
When compiled as a module, the code of that feature/component is built as a separate file, as know as kernel module, separating from the kernel's main image. To use the feature, you have to load it into the kernel with commands like modprobe or insmod. Of course you can later unload this module, to remove the feature/component. The kernel modules are normally placed at /lib/modules/{uname -r} on your system.
While compiled as 'y' means the code will be compiled into the main kernel image, which will be always available when the kernel is loaded and running.

Redirect messages directed at the GPU [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 7 years ago.
Improve this question
Is there anything as low level as that on any Linux distribution? My overall goal is to redirect the message (instruction) meant for the GPU.
That means I would have to be able to program a driver between the CPU and the GPU which redirects any message to where I'd like (like a packet sniffer, but for GPU instructions and one that would stop the info there).
Is there any native Linux support for this kind of thing? Where do I start and what OS is most recommended for this kind of access?
You would need to modify the GPU driver. There you can insert logging or whatever other redirection you have in mind. Since many graphics drivers on Linux are open-source, this should be possible for many graphics cards. But take note that it won't be portable--you'll need to write some separate code for each major variant of GPU you want to support.
If you have something more specific, like that you're trying to capture OpenGL commands, that might make things easier.

How to create a multistage bootloader with asm and c? [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 7 years ago.
Improve this question
I want to create a simple 32-bit text-based operating system.
Bootloader :
Firstly I want to create a multistage bootloader.
Stage 1 : Assembly code (NASM-Compiler)
Stage 2 : C (GCC-Compiler)
Kernel:
Then it should load Kernel which should be written in C (GCC-Compiler)
I would also like to know how to properly compile and execute it.
Emulator should be Qemu
A sample 32-bit Operating System that displays "Hello world" would be helpful.
Don't write your own bootloader. Configure and use an existing bootloader, probably GRUB. This would make using your toy OS much easier (both for you and for other users).
Read http://osdev.org/ since they have a lot of resources about OS building on PCs (including a hello world OS).
Read also some good operating system book (e.g. Operating Systems: Three Easy Pieces). You'll find out that there cannot be very simple OSes. See also this answer.
Also, be at least quite fluent with POSIX and with Linux system programming (read Advanced Linux Programming at first).

Would an ARM Processor be the way to go? [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 10 years ago.
Improve this question
I was making a little device that would have three buttons (like the ones at radioshack) and each preform its own action. These buttons and their actions would be controlled by a very small real time operating system that I would put on this device.
Would I need an ARM Processor in any way?
How would I put the real time operating system on the device?
What OS would I have to compile this on (ex. Ubuntu? Mac OS X? Windows 7?)?
Are there any examples of anyone doing this?
P.S. No prebuilt boards (ex. arduino). I would build the board myself.
Any feedback would be greatly appreciated!
Even if you don't want to use a prebuilt board in the finished product, I'd recommend getting a prebuilt board (like the Arduino), build your product, program it, test it, etc. while on the breadboard, and then simply rebuild it however you want, using the same hardware as you've been using.
That helps you out especially the next time you're building something, because you already have the prototype board and the toolchain ready to go.
Compiling your files can be done on any OS.
Enumerated version:
No, and I wouldn't even recommend using an ARM processor; but rather an Atmega328 or similar.
Using a programmer.
Any.
Probably millions, or at least hundreds of thousands of examples, yes.

Resources