Running bin file from a module


 
Thread Tools Search this Thread
Top Forums Programming Running bin file from a module
# 22  
Old 03-18-2011
Well so I ask you another way.
Do you see any solution of that problem?

Corona688 suggested adding general-purpose UEFI support to Linux. If that is the only way to do that I have to consider that.

Quote:
Originally Posted by fpmurphy
Now if you set up things so that your NIC is found when UEFI is probing devices, then you could write an UEFI app that could access the NIC flash, get driver image and store it in the ESP. It could then unload the existing driver and load the new driver in its place. All this needs to be done before the OS boots.
That is also kind of solution, but:
- it should work only for RedHat - not for all OSes (how would you determine the OS from UEFI?)
- it should work under BIOS machines and UEFI machines - not only UEFI machines

Quote:
Originally Posted by Corona688
DOS is an extremely simple operating system. It doesn't have or need device drivers for basic functionality and it doesn't modify the system environment much at all. It relies on BIOS calls(i.e. firmware code) almost exclusively instead.
Oh, I know DOS. I tought you were talking about some addons to DOS.

Last edited by Chrisdot; 03-18-2011 at 08:05 PM..
# 23  
Old 03-18-2011
Quote:
That is also kind of solution, but:
- it should work only for RedHat - not for all OSes (how would you determine the OS from UEFI?)
- it should work under BIOS machines and UEFI machines - not only UEFI machines
UEFI and BIOS are completely different. And neither care, per se, or should care what OS is running atop them. Somehow, I suspect that you have not spend anytime working at the firmware level if you are asking these questions.
# 24  
Old 03-20-2011
My knowledge has nothing to do in this case. I am just trying to tell you, that my solution must works under BIOS machines and UEFI machines.

Are on the market drivers to any hardware (e.g. sound cards, graphics cards, network cards, etc.) that uses hardware's flash memory?
If yes I may probably look at the code and find out some tricks.

Cheers.
# 25  
Old 03-20-2011
Quote:
Originally Posted by Chrisdot
My knowledge has nothing to do in this case. I am just trying to tell you, that my solution must works under BIOS machines and UEFI machines.
I'm sorry, we don't deal in witchcraft around here.
# 26  
Old 03-20-2011
Quote:
Originally Posted by Corona688
I'm sorry, we don't deal in witchcraft around here.
I am not sure to understand you well. Do you mean that statement:
Quote:
Originally Posted by Chrisdot
that my solution must works under BIOS machines
?
# 27  
Old 03-20-2011
UEFI doesn't work in machines that aren't UEFI, and I don't have that kind of magic to give you a solution to it.

You know by now that expecting UEFI to work in non-UEFI machines doesn't make sense, nor does expecting UEFI to do anything inside an operating system. You also have a few thousand pages of standards to pore through, plus several open-source UEFI using things to examine, and suggestions of alternative means of accomplishing your goal that make more sense than expecting UEFI to operate in kernel-mode. So, you're faced with the choice between rewriting Linux from the ground up or creating your own private operating system. Where you go from here is up to you.
# 28  
Old 03-20-2011
Well, that is what I was thinking about - big misunderstanding. It is difficult to precise and discuss well such things only in few sentences on forum.

I have never expected UEFI to work on BIOS machine. From the begining (see post on 3rd site - 'big picture') I try to explain it.

In scenarios presented in 'big picture' I have never mentioned neither UEFI nor BIOS.
The trick is that I would like to take advantage of UEFI Driver placed in Newtork Interface Card's flash memory. Maybe I should not call it UEFI Driver (which it exactly is) for better understanding of whole project. I do not need to use UEFI by itself nor BIOS!

What I got is only:

- Network Interface Card with driver in flash (it is actually UEFI driver, but forget it for a while - let's say it is just some DRIVER)
- RedHat
- MyLinuxDriver

What I want? I want to run internet connection on RedHat using MyLinuxDriver that uses DRIVER's functions. That is all. Please do not mix UEFI or BIOS to that. It is absolutely something different.
It has no matter what machine I use - projects assumes only mentioned three things (NIC, RedHat, MyLinuxDriver).

I hope that it became clear now.

PS.
Maybe that proposal of solution:
Quote:
Originally Posted by fpmurphy
Now if you set up things so that your NIC is found when UEFI is probing devices, then you could write an UEFI app that could access the NIC flash, get driver image and store it in the ESP. It could then unload the existing driver and load the new driver in its place. All this needs to be done before the OS boots.
deceived us - but my response was 'no, because of such things:'
- it should work only for RedHat - not for all OSes
- it should work under BIOS machines and UEFI machines - not only UEFI machines

If I described it wrong - sorry. It is really not so easy to show somebody one's thinking way.

Last edited by Chrisdot; 03-20-2011 at 07:06 PM..
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Usage of #!/bin/sh vs #!/bin/bash shell scripts?

Some question about the usage of shell scripts: 1.) Are the commands of the base shell scripts a subset of bash commands? 2.) Assume I got a long, long script WITHOUT the first line. How can I find out if the script was originally designed für "sh" or "bash"? 3.) How can I check a given... (3 Replies)
Discussion started by: pstein
3 Replies

2. AIX

Redistribution bin required for AIX. j7r164redist.7.1.0.25.bin

Hi, I am planning to install a version of Informatica on my AIX box. It requires a specific java build in pap6470_27sr2-20141101_01(SR2). The current link for IBM 64-bit SDK for AIX®, JavaTM Technology Edition, Version 7 Release 1 has a more recent version in j7r164redist.7.1.0.75.bin. Is... (4 Replies)
Discussion started by: meetpraveens
4 Replies

3. Ubuntu

Compile smbfs module in kernel version 3.10 running Ubuntu 12.04 LTS

Is there any way to compile smbfs module in kernel 3.10 running Ubuntu 12.04 LTS. I did a 'make menuconfig' and it shows cifs. I found out online that smbfs is deprecated and replaced by cifs. I have an old system with kernel version 2.4 which only has smbfs (no cifs). Is it possible to compile... (1 Reply)
Discussion started by: Monil
1 Replies

4. Programming

Why am i getting these strange packets while running my packet capture module written in c.?

I have made an packet capture application running on intel machine, it is capturing packets with src address- 17.0.0.0 destination ip- 66.0.0.0, source port- 0, destination port- 0, and protocol- 0 what does these packets mean ? The code written to interpreter captured bytes is given below.... (5 Replies)
Discussion started by: arunpushkar
5 Replies

5. OS X (Apple)

When to use /Users/m/bin instead of /usr/local/bin (& whats the diff?)?

Q1. I understand that /usr/local/bin means I can install/uninstall stuff in here and have any chance of messing up my original system files or effecting any other users. I created this directory myself. But what about the directory I didn't create, namely /Users/m/bin? How is that directory... (1 Reply)
Discussion started by: michellepace
1 Replies

6. UNIX for Dummies Questions & Answers

fuser: difference with bin/sh and bin/ksh shell script

Hi, I have a problem I don't understand with fuser. I launch a simple shell script mysleep.sh: I launch the command fuser -fu mysleep.sh but fuser doesn't return anything excepted: mysleep: Then I modify my script switching from #!/bin/sh to #!/bin/ksh I launch the command fuser -fu... (4 Replies)
Discussion started by: Peuj
4 Replies

7. Shell Programming and Scripting

Why does my /bin/csh take longer than /bin/perl?

Okay, so I have two "Hello, world!" scripts, "test.pl" and "test.sh". #!/bin/perl -w use strict; print "Hello, world!\n"; #!/bin/csh echo Hello,\ world! When I run test.pl, it runs instantly, always. When I run test.sh, it takes anywhere between 4 and 22 seconds! I'd like to know what... (3 Replies)
Discussion started by: acheong87
3 Replies

8. Linux

How to convert Linux Kernel built-in module into a loadable module

Hi all, I am working on USB data monitoring on Fedora Core 9. Kernel 2.6.25 has a built-in module (the one that isn't loadable, but compiles and links statically with the kernel during compilation) to snoop USB data. It is in <kernel_source_code>/drivers/usb/mon/. I need to know if I can... (0 Replies)
Discussion started by: anitemp
0 Replies

9. Programming

find the fully-qualified path for the app my module is running in

Hi- I need the cpp call that will tell me the full path to the app I'm running in. For example, I'm running in a loaded library for either mozilla or firefox, but would like to know the full path to the executable /usr/bin/firefox /usr/bin/mozilla /usr/local/firefox1_5 etc... (For... (4 Replies)
Discussion started by: erwinfletch
4 Replies

10. UNIX for Dummies Questions & Answers

/bin/sh: /usr/bin/vi: No such file or directory when doing crontab

I just set up an ftp server with Red Hat 5.2. I am doing the work, I'm baby stepping, but it seems like every step I get stuck. Currently, I'm trying to set up a crontab job, but I'm getting the following message: /bin/sh: /usr/bin/vi: No such file or directory. I see that vi exists in /bin/vi,... (3 Replies)
Discussion started by: kwalter
3 Replies
Login or Register to Ask a Question