Sponsored Content
Top Forums Programming Running bin file from a module Post 302504783 by Chrisdot on Tuesday 15th of March 2011 12:03:52 PM
Old 03-15-2011
I will try to be more precise.
In final version my driver would load UEFI driver from hardware's flash.
But I do not have that hardware for now and I have to create sort of dummy driver first.

What I want is to load bin file from HDD (final version would load bin from hardware's flash). I assume, that loading bin from HDD and loading bin from flash is kind of similar task and I can use generic solution.

At this moment it does not matter what that bin file contains.
 

10 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

5. 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

6. 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

7. 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

8. 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

9. 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

10. 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
ICNCTRL(8)						    Linux System Administration 						ICNCTRL(8)

NAME
icnctrl - configure ICN ISDN adaptor SYNOPSIS
icnctrl [-d Driver-Id] action options ... DESCRIPTION
icnctrl is used to setup the ICN ISDN device driver and for downloading the firmware into the ISDN card. The use of icnctrl makes sense, if you are using an ICN card only. OPTIONS
-d Driver-Id selects the S0 interface named by Driver-Id. Driver-Ids are defined during driver initialisation. See icn(4) for a description of the syntax to be used for modularised and monolithic driver versions. This option must be used to identify the S0 interface if more than one S0 interface is existent. If a single ICN-2B is used, it may be omitted. If using more than one card, support for the other cards is enabled with the add action of icnctrl. Ids may not start with digits or small x, because these values are misinter- preted as numeric parameters by insmod. For loading the module, always the newest modutils package should be used to avoid problems during load. The following actions may be given to icnctrl. add port [id1 [id2]] enables support for an additional card in the driver. If id1 and id2 are missing, adds an ICN-2B with an id given by the system. with id2 missing, adds an ICN-2B with an Id given by the user. With both Ids given, adds an ICN-4B with both Ids given by the user. There is no checking against port-conflicts. Ports are checked later during first activation while downloading the firmware and can be changed at runtime. Ids are checked against conflicts, and if a conflict happens, replaced by the system in the same manner as if no Id was supplied. It is not allowed, to add cards, after a load was done. io [base-address port] sets the address of the memory-mapped IO-region and the port-base. After loading the icn-module into kernel-space, this command should be used as the very first setup, if the hardware settings are different from the default settings below. If both parameters are omitted, prints out current settings. The default memory address is 0xD0000, the default port-base is 0x320. An ICN card uses 4 port-addresses. The memory address is globally used for all cards (cards are mapped on demand), while each card has its own port range. Memory range is 16k. leased on|1|2|off switches between normal (dialup) and leased-line mode. Leased-line mode is intended for usage with S64K-lines or - if both channels are used - for S02. If the second parameter is 1 , only one channel is enabled. If the second parameter is 2 or on both channels are enabled. Leased lines do not have a D-channel. When leased-line mode is enabled, the driver simulates incoming calls using spe- cial "phone-numbers" for calling and called address which are generated as follows: Calling number: LEASEDx where x is the internal slot-number of the S0 interface. This number starts with 0 for the first S0 interface and is incremented by one for every S0 interface configured using the add action. Called number: x where x is equal to the channel number of the calling S0 interface starting with 1. load boot-code firmware [firmware2] downloads the firmware into the card and starts operation. Using this command, after loading the icn-module into kernel-space the first real access to the hardware is done. Therefore the io action above, should be used before, if the hardware settings are dif- ferent from the default settings. Usually the images are located in @DATADIR@. The boot-code is named loadpg.bin. The firmware depends on the D-channel protocol of the ISDN line. For German 1TR6-lines, the firmware is named pc_1t_ca.bin. For Euro-ISDN-lines, it is named pc_eu_ca.bin. When loading an ICN-4B, two firmware parameters have to be supplied. The first firmware is used for the upper S0 connector, the second firmware is used for the lower S0 connector (towards the card's slot connector). dump is available if the program is configured using the --enable-dump option only. The contents of internal driver variables is dumped on stdout. FILES
@DATADIR@/loadpg.bin This is the image of the bootstrap loader, which is loaded first, then loads the firmware into the card's memory and starts execu- tion. @DATADIR@/pc_1t_ca.bin This is the image of the firmware designed for the German 1TR6 protocol. @DATADIR@/pc_eu_ca.bin This is the image of the firmware, designed for Euro ISDN. DIAGNOSTICS
The following diagnostics may be issued on stderr: Read error on boot-code The file supplied as boot-code has less than 4096 bytes length or could not be read. Read error on firmware The file supplied as firmware has less than 65536 bytes length or could not be read. BUGS
No bugs so far. AUTHOR
(C) 1997 by Fritz Elfert <fritz@isdn4linux.de> SEE ALSO
isdnctrl(8), icn(4), isdnctrl(4), ttyI(4). isdn4k-utils-3.13 1999/09/06 ICNCTRL(8)
All times are GMT -4. The time now is 02:40 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy