Programming :: Write A Module In Pure Assembler?

Jan 16, 2010

I need to write a module in pure assembler.Now the linker needs symbols out of the kernel library to link to ( module_init, module_exit, printk).Does anybody know the kernel library name, or are these symbols only in the compressed kernel image (vmlinuz) ?And if, how can I link to a compressed kernel image ?

View 6 Replies


ADVERTISEMENT

Programming :: Use Absolute Sections In Gnu Assembler?

Feb 14, 2011

how to use absolute sections in gnu assembler?

View 2 Replies View Related

Programming :: An Assembler Directive To Interpret All Constants In Hexa?

Jul 9, 2011

GNU assembler 2.17 And without having to prefix them. I'm skimming through as info page and can't find any pseudo operator or assembler directive of this type. E.g. 74 would be a decimal number. But I want it to be hexa 74 without the need to write 0x74.

NOTE: as is the GNU assembler.

EDIT: Google led me to discover this:

Quote:

If you write numbers without an explicit indication of the base, the most recent `.RADIX S' command determines how they are interpreted. However, on the one hand, it says the most recent and, on the other one, it applies to GASP, the GNU assembler preprocessor. IDK if it is the same as as (the GNU assembler).

View 2 Replies View Related

Programming :: GCC Inline Assembler Doesn't Even Support Local Variable?

Jul 3, 2010

It's good that GCC support intel inline disassembly syntax, but it cannot even simply address local variables/parameters properly, making itself stupid and essentially useless, look at the following:

int myfunc(float f){
int x;
float fa[8];
asm(".intel_syntax noprefix
"
"mov eax, [x]

[Code]...

View 1 Replies View Related

Programming :: Traverse Byte Array In Assembly Using Nasm As Assembler?

Jun 16, 2010

I am trying to learn assembly using nasm as assembler. I did not found example related to string operation. I had following example code,

global asm_strlen
section .data
section .bss
section .text

[code].....

my problem is at highlighted line, I am not getting how to copy a byte into 4 byte reg. rather what is syntax of mov instruction to mov byte to WORD DWORD etc.

View 3 Replies View Related

Ubuntu Installation :: Remove Pure-ftpd Pure Admin - Getting A 530 Authentication Error

Mar 24, 2011

I am having problems troubleshooting my pure-ftpd setup. I am always getting a 530 authentication error. I attempted to correct the problem by doing the following:

# pure-pw mkdb
# ln -s /etc/pure-ftpd/conf/PureDB /etc/pure-ftpd/auth/PureDB
# gedit /etc/pure-ftpd/conf/PAMAuthentication

[code]....

This create a new error. 421 Unable to read the indexed puredb file (or old format detected) - Try pure-pw mkdb I am getting a feeling this is getting from bad to worse. I attempted to remove pure-ftpd and pureadmin to start over again. However, it appears I cannot remove everything. I attempted the following:

apt-get remove pure-ftpd pureadmin I am not sure what this really does because I can still see the folder /etc/pure-ftpd and I cannot remove it. I could not use rm /etc/pure-ftpd because the system said it was not empty. I also tried sudo aptitude remove pure-ftpd pureadmin . Again I cannot completely remove the folder. How do I completely remove pure-ftpd and pure admin and all databases, files and folders so I have a fresh system ready to start the install again?

View 1 Replies View Related

Software :: Pure-authd Not Passing Variables To Pure-ftpd

Feb 9, 2011

I have set up pure-authd and pure-ftpd. They are both running, I have created the socket etc.

In my authentication module (a php script) for testing purposes I have done a vardump in to a file, and have realised that pure-authd is not passing on any variables (username, password of the current person trying to log in via ftp) to the PHP script.

I am sure the authentication module is working (have tested it vigorously on the command line), but after 10 hours wondering why it wouldnt work and messing about with the script, I have realised that the variables were never even getting in to the script in the first place!

I am running the processes such as this:

Everything seems as if it is working other than this. For instance, when testing the setup with a very basic auth module which doesnt require a username or password (the basic module just passes "auth_ok:1" to pure-ftpd and the user is then logged in), I can log in to the FTP server fine.

But like I say, a vardump ($argv) on my proper PHP authentication script would suggest that no username or password are being passed to it.

View 1 Replies View Related

Programming :: Cannot Edit B800:0000 In Pure Dos

Nov 11, 2010

I write the below sample program named "h1.asm"?

Code:

assume cs:code
code segment
mov ax,0B800H

[code]...

1. In Windows platform +MASM 5.0, run "command" and use "debug.exe" to see what would happen. As step by step check, I see B800:000 is not modified as expected.

2. In Ubuntu 10.04 + dosemu 1.4.0.1, run the program in two ways:

a. If exec dosemu in command line as "$dosemu -dumb", yes, it's in shell mode. and then use debug to check, "B800:0000" can be modified as expected.

Code:

"Welcome to dosemu 1.4.0.1!"
D:masm>debug h1.exe
-r
AX=0000 BX=0000 CX=000F DX=0000 SP=0000 BP=0000 SI=0000 DI=0000

[code]....

b. If exec dosemu in command line as "$dosemu", and run the program again, the symptom is as same as 1.(pls see attachment picture).

3. In Windows, I replace "mov ax,0B800H" to "mov ax,2000H" and try again, it would be edited well. So I wonder if it is coursed by "B800" segment address.

View 5 Replies View Related

Security :: SELinux Module To Allow Snmpd To Write To /tmp?

Aug 11, 2010

I am using the "extend" function of snmpd to run a script in order to extend a monitoring platform. This script being ran by snmpd needs to write to a file in /tmp for later parsing, but SELinux is stopping it from writing to the file under /tmp. The following two lines from my audit.log file show what is happening:

Code:
type=AVC msg=audit(1281516573.123:18422): avc: denied { write } for pid=6933 comm="test2.sh" name="tmp" dev=dm-0 ino=1474561 scontext=root:system_r:snmpd_t:s0 tcontext=system_u:object_r:tmp_t:s0 tclass=dir

[Code]..

View 8 Replies View Related

General :: Write Kernel Module That Will DMA Custom Card?

Aug 31, 2010

I am trying to write a kernel module that will DMA my custom card. Right now when i plug the card into linux no valid PCI device shows up (meaning I probably have a error on my end, i know) however, If I halt the system at startup in the bootloader (uboot) I am able to directly access the card as I know in uboot the physical memory address that is mapped to my device. Is there a way I can access the card in a simliar fashion in linux?

View 1 Replies View Related

Programming :: Load Fortran Module For Matio Libraries Using Gfortran - Can't Open Module File 'matio.mod' For Reading

Jun 27, 2010

I am interested in using fortran and an external library called matio used to save arrays to matlab .mat files. I have installed the matio and matio-dev packages from synaptics but i cannot compile a code receiving an error Code: christos@christos-laptop:~/Desktop$ gfortran -o test test.f90 -lmatio -lz test.f90:2.13: USE MATIO 1

Fatal Error: Can't open module file 'matio.mod' for reading at (1): No such file or directory How can i load a module in order to use it in fortran through the GCC compiler?

View 1 Replies View Related

General :: Installing Ia32build (Intel Assembler)?

Aug 28, 2010

I am looking for a assembler, in my college there is a ia32build assembler. I have tried searching it in Google, but I can't find it. I have x86 processor and I want to install it in Ubuntu 10.4.

Edit 1 : I am not sure about the assembler name but we assemble it by ia32build command.

Edit 2 : The syntax is quite different from nasm. Here's my sample code.

.intel_syntax noprefix
.text
msg: .asciz "Hello World !"[code].....

View 2 Replies View Related

Software :: How To Install Tsam ( Turbo Assembler )

Mar 4, 2010

presently am doing an LTSP project i have sucessfully insatlled DosBox and Oracle in fedora9 now i wanted to install tsam ( Turbo Assembler )

View 1 Replies View Related

Programming :: Paralel Port Kernel Module Programming

Jan 5, 2011

do you have any code to flash led lights with paralel port (device driver programming)or any lecture about this subject .if there is a working code this would be better ofcourse.

View 1 Replies View Related

Programming :: Socket Programming In Module Perl

Jul 21, 2010

Where is the perl module for programming with sockets?

View 4 Replies View Related

OpenSUSE Multimedia :: WARNING: Raw1394 Kernel Module Not Loaded Or Failure To Read/write /dev/raw1394

Jun 25, 2010

I get this error message with KINO.

WARNING: raw1394 kernel module not loaded or failure to read/write /dev/raw1394!

View 9 Replies View Related

Programming :: Prompt For Some Information From PAM Module?

Jan 8, 2011

I'm writing a Plug-gable authentication module for ssh. I am looking for prompting for some extra information after user name and password verification but before giving access to user.Actually after SSH I want to extend the same for some other services. So I am looking at some PAM module level suggestion.

I tried using conversation method with message style=PAM_PROMPT_ECO_ON but it results in PAM_CONV_ERR and conversation fails. Is it right way to interact or please suggest me If I'm doing wrong somewhere. When I use message style=PAM_PROMPT_ECO_OFF communication succeeds but message is not shown and interaction doesn't happen.

I've pased the sample code I've written at url.

Code:
#include <sys/types.h>
#include <string.h>
#include <pwd.h>
#include <grp.h>
#include <syslog.h>
code....

View 3 Replies View Related

Programming :: Setup A Stack (1kB) For My Module In C?

Sep 6, 2010

I need to call some other functions in "int init_module(void)" and module. So I need a stack. How can I setup a stack (1kB) for my module in C?

View 11 Replies View Related

Programming :: Loading A Php Module Using Custom Ini?

Sep 9, 2010

I have a webhosting account, but the server admin did not include mysqli module. How can I use mysqli in this situation?

I am thinking,

put mysqli module in my web directory

load it using custom php ini

View 1 Replies View Related

Programming :: Debug The NTLM LWP Module ?

Nov 11, 2010

I'm trying to debug the NTLM LWP module.

I added use LWP:ebug qw(+); to the top of my script, but I can't see any change.

I'm on Windows if that makes a difference (installed activeperl).

I know there are probably a million reasons why something perl won't work, but can anyone help me get debug logging showing up?

View 1 Replies View Related

Programming :: Use MPI Only In A Module Of A Given Sequential Program?

Jun 28, 2011

can one use MPI only in a module of a given sequential program? That is, if one have an already working sequential program, can one append to it a MPI-based module? Say I have a working main. It calls module() and what this module does is to spread a group of processes to accomplish a given task. Can that be done or the entire original sequential program must be rewritten?

View 3 Replies View Related

Debian Programming :: Building Kernel Module

Dec 8, 2013

I'm trying to build the kernel module for dvbhdhomerun. The problem is the linux kernel headers provided by Debian do not have the dvb header files. Trying to set up my own kernel source tree to use is not working out so well.

I'm following the instructions in the Debian section here: [URL] ....

My first try compiled, but the modules ender up under /lib/modules/3.2.51/extra instead of /lib/modules/3.2.0-4-amd64/extra. Why?

I tried to start over, but noticed this while running apt-get source linux-image-3.2.0-4-amd64:

Code: Select allReading package lists... Done
Building dependency tree       
Reading state information... Done
Picking 'linux' as source package instead of 'linux-image-3.2.0-4-amd64'
NOTICE: 'linux' packaging is maintained in the 'Svn' version control system at:
svn://svn.debian.org/svn/kernel/dists/trunk/linux/

[Code] ....

The failure to verify the signature has me concerned, but beyond that, what do I do about the different version number when compiling and installing the kernel modules?

View 1 Replies View Related

Debian Programming :: Failed To Load Module

May 30, 2015

I was playing around with QT5 today and I am getting the error Gtk-Message: Failed to load module "canberra-gtk-module". Searching suggested that the module may not be installed however it looks like it is to me.

Code: Select allii  libcanberra-gtk3-0:amd64              0.30-2.1                            amd64        GTK+ 3.0 helper for playing widget event sounds with libcanberra
ii  libcanberra-gtk3-module:amd64         0.30-2.1                            amd64        translates GTK3 widgets signals to event sounds
ii  libcanberra-pulse:amd64               0.30-2.1                            amd64        PulseAudio backend for libcanberra
ii  libcanberra0:amd64                    0.30-2.1                            amd64        simple abstract interface for playing event sounds

[code]....

View 3 Replies View Related

Programming :: Module In Cpan For Creating A Blog?

Apr 2, 2010

Exist it a module in cpan for creating a blog?

View 4 Replies View Related

Programming :: Compiling Kernel Module Using (/asm/system.h)

Apr 3, 2011

I`m trying to compile sources of kernel module which has been written for kernel 2.6.9. There were many changes in kernel headers since then in current kernel sources. I`ve found that old /asm/system.h was moved under architecture dedicated directory /arch/*/include/asm/system.h. Anyway during sources compilation I`m having errors related to kernel sources. It looks like there is something wrong with this /asm/system.h

Code:

../asm/system.h: In function �__cmpxchg�:
../asm/system.h:248: error: expected string literal before �LOCK_PREFIX�
../asm/system.h:254: error: expected string literal before �LOCK_PREFIX�

[code]....

View 3 Replies View Related

Programming :: Install PHP Which Is Run As An Apache Module Or Run As CGI On Detain

Aug 12, 2010

how to install PHP which is run as an Apache module or run as CGI on detain.

View 3 Replies View Related

Programming :: Insert Kernel Module Into Menuconfig

Jan 14, 2011

I am looking for information to insert kernel module into kernel. I am not looking at dynamically insert of kernel module using insmod, modprobe etc. I am looking for statically insertion of kernel module procedure, such as what to change on makefile, what to change on menuconfig, what to change on .config file, etc.

View 2 Replies View Related

Programming :: Modifying The Elevator.c Module In Kernel?

Feb 22, 2011

There is a file called elevator.c. It is written as a module (i.e it has specific init and exit functions). However we are not able to see it in lsmod listing. We are working on a project where we need to modify this file. Compiling every time we change something will be time consuming. Is it possible to compile just this file and insert it as a normal module?

View 6 Replies View Related

Programming :: ImportError: No Module Named Mx.DateTime.ISO

Sep 9, 2010

In Python 2.6.5, I could import from mx.DateTime.ISO import ParseDateTimeUTC With 2.7 I cannot.Here is the error. My module util_lib contains the import noted above.

File "util_lib.py", line 46, in <module>
from mx.DateTime.ISO import ParseDateTimeUTC
ImportError: No module named mx.DateTime.ISO

What changes do I need to make, to import on pre-2.7 and 2.7?

View 2 Replies View Related

Programming :: Perl Module Installation Fails

Jan 12, 2011

Using perl -MCPAN -e shell then install Mail::Message then yes to everything (except the test that needed an IMAP server) resulted in.

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved