General :: Access Registers - Mmap Doesn't Work
Jun 16, 2010
I will try to write correctly but be indulgent... so as describe in the title I have a CPU ARM and I want to access a register. i tried with mmap but it doesn't work. i attach my program if someone see the problem... so when I run the program there isn't any error, all works (open, mmap ...) but I know that my program do nothing because i have ask to read something that i know and there is nothing...
View 1 Replies
ADVERTISEMENT
Sep 9, 2011
I need to set the CR4.MCE bit for all the cores on my system (4). I'd like to write a linux kernel module for that, but I am not sure how to proceed: How do you sequentially access all of the CR4 registers? I have read the Intel manuals and they describe a way to initialize each core, but this is done in the bios.
View 2 Replies
View Related
Mar 28, 2010
I have tried to learn how 64bit asm (nasm in my case) works and found, among the many disparate pieces of info on the net, a few vague inferences that floating point registers can be used for other purposes than what they are intended for, example: "64-bit Linux allows up to fourteen parameters to be transferred in registers (6 integer and 8 floating point)." This would be fantastic for string operations/manipulation (I have never used asm for floating-point operations), can anyone shed a bit of light?
View 8 Replies
View Related
Jul 14, 2011
I am trying to access an OpenBSD system that I have just installed via my PcBSD system by the use of a serial cable. I have been trying both minicom and cu but I am obviously doing something wrong... cu -l /dev/cuad0 returns /var/spool/lock/LCK...cuad0 Permission Denied. Can't Open lock file. all ports busy. And when I try to connect through minicom I either get a similar lock error, or minicom will sit at the connection screen with (offline status). I feel like the answer to my problems is a rather simple one, but I do not know where else to look for information.
View 3 Replies
View Related
Jul 27, 2010
How can I achieve file consistency while using mmap? I have a block of code that needs synchronized access across processes (not threads). Using threads, one can regulate access to the mmaped portion of the file by locking it using a mutex. How can I achieve the same using different processes, some of which run in different programs?
View 2 Replies
View Related
Apr 27, 2011
i have tried mail function in php to send email from the local host its work for yahoo but not with HOTMAIL whay ! actually i tried to figure it out,
View 1 Replies
View Related
Feb 25, 2010
I'm running an embedded Linux kernel, and I want to obtain a real memory address from user space. After goggeling a little, I found that the only way was to use mmap to access /dev/mem. But I never used mmap. I want to load a program in memory, in order to make it available from another processor, that has access to the DDR, but not to the flash memory where program is stored. Here is the code I use:
Code: // Open file and get its size
FILE* program = fopen(argv[3],"rb");
fseek(program, 0, SEEK_END);
long program_size = ftell(program);
fseek(program, 0, SEEK_SET);
// Prepare memory to copy it in
void* program_address = malloc(program_size+1);
FILE* memory_stream = fmemopen(program_real_address, program_size + 1, "wb");
[Code]....
View 5 Replies
View Related
Dec 25, 2010
I am using MTS datacard. I have usb_modeswitch installed and have configured the wvdial.conf file. When I do sudo wvdial cdma, the IPs and DNS addresses are also allocated but I still cant access internet.
The reply to dmesg | grep -e 'tty' -e 'modem' is:
[Code]...
View 1 Replies
View Related
Jun 3, 2010
I have been looking for a script example of reading and writing to the parallel port's data, status, and control registers using bash. I see it done in pascal, tcl, etc. but nothing in bash.
View 5 Replies
View Related
Jan 27, 2010
I got a sound issue with my debian system
here is some outputs
lsmod
Quote...
View 3 Replies
View Related
Jan 13, 2011
ctrl+alt+[f1 -f3] switch doesn't work, but back to ctrl+alt+f7 works normal. When i switch from ctrl+alt+f7 to ctrl+alt+f1 I see that on the dash flashes on the screen.
View 2 Replies
View Related
Feb 27, 2011
I've installed Linux suse 11.3 on my laptop, but the monitor doesn't work. my laptop is a VAIO one and it's graphic card is NVIDIA GEFORCE 310m, so
what should i do?
View 1 Replies
View Related
Jan 31, 2011
yesterday I was trying to install Puppy Lucid 5.2 on a old PC (PII 533mhz 265mb RAM). First of all I have launched the live cd, then set up language, time zone and keyboard... at this point pc stopped working and stay blocked on the desktop screen with no possibility to move pointer or use keyboard. Is it possible that hardware is too old to work with Puppy Lucid 5.2? May I have to try with a lighter OS (which one?)?
View 11 Replies
View Related
Oct 3, 2010
i was workin on my rmi programs today in my f12,and then i executed all the files related to the program,it did get executed! but when i type the command start rmi registry that is to start the registry system,it fails to does so:
heres the o/p:
start: Unknown job: rmiregistry
the programs luks perfect and even got executed,sorry if the question is silly to be asked over her! i am completely new to fedora!
View 2 Replies
View Related
Jun 4, 2011
If I do the following, if the URL is a redirect, it doesn't work
rpm -ivh http://path/to/rpm
I have to use wget http://path/to/rpm which resolves the redirect and downloads the file, then run rpm on that file.
More for my knowledge of bash than anything else, would there be a way to redirect the file downloaded from wget into the rpm (something like redirection or pipes or something), so that they could be combined into one command and you wouldn't explicitly save the file first.
Something like... rpm -ivh << wget http://path/to/rpm
I have one more question, and that is whether there is a command in linux, such as wget, that would let me pass it a URL and output the redirected-to URL if the argument.
e.g. ('wget --someflag http://orig/url' would output 'http://url-after-redirects-followed')
View 2 Replies
View Related
Apr 2, 2011
i need office 2007 to complete school work as openoffice doesnt support access databases. i switched to linux as i didnt have my recovery discs for windows and wanted to start afresh. my problem is that i have got word,excel,powerpoint & publisher working but access just wont load. i click the logo and it does say starting access on the bottom taskbar but then it disapears and nothing happens. ive tried google and havnt really found a answer im running ubuntu 10.10 and i have wine installed This is kind of urgent as i have a deadline fast aproaching and need access at home to progress in work
View 3 Replies
View Related
May 6, 2010
I use Mythbuntu 9.10 with an IMON PAD IR/VFD. Everything is fine except that two buttons (MyDVD and menu) fire their event twice. In that case, I'm not talking about a normal repetition in case of a long button press but they fire their initial events twice.
Here is what irw shows:
0000000029a3d5b7 00 MyDVD iMON-PAD
0000000029a3d5b7 00 MyDVD iMON-PAD
000000002ba385b7 00 Menu iMON-PAD
000000002ba385b7 00 Menu iMON-PAD
I pressed the buttons only once each - and not long enough for a repetition. For all other buttons it's fine. As far as I understand, using the .lirrc file to cope with repetitions is no valid approach (at least it didn't work for me) because the events are all numbered with "00", and not with "00", "01",... - so .lircrc is out of this, right?
View 3 Replies
View Related
May 26, 2010
I just installed Fedora 12 and after downloading and running the Java Sound Demo I get exceptions. If I run just a vanilla Java program that plays a .wav file it runs silently with no sound and no exceptions.
Every other app seems to play sound. I also took some advice from this thread in the Ubuntu forums which almost seemed to work. (Installing aoss got rid of the initial exceptions in the sound demo but I still hear nothing when I play.) I'm getting frustrated by the individual hoops I have to go through to eek sound out of my speakers when running Java apps on Linux platforms!
View 2 Replies
View Related
Nov 9, 2010
I tried using a command likecp `ls ~/temp/*.xyz | head -1` ./But that does not work. If I echo the value of command inside back ticks and put it manually in cp command it works.
View 2 Replies
View Related
Dec 17, 2010
I used unetbootin to make a bootable USB key (a BT4 persistant live cd)
But it wors only on a few machines. (only 1 out of 6 i tried) Most of the time boot sequence get stuck on a blinking prompt cursor.
Ex:
Attempting Boot From Floppy Drive (A:)
Attempting Boot From USB Device
_ <-- stuck...
Then boot on HDD
Is it do to the usb key or machines that do not load mbr the same way?
Edit: the stick is formated with MBR have 2 partitions. The first is FAT32 and active, second is ext3
PCs i have tested can boot on USB (at leat you can select a USB device for Boot)
View 2 Replies
View Related
Mar 7, 2011
I have this old kUbuntu box here, which used to be 8.04. For some reason after a bunch of upgrades and other unrelated changes sound doesn't work any more.
Sound works on this machine when rebooting to Windows, so it's not hardware problem. It used to work on Linux on this machine before, so it's not weird hardware. (lspci says 00:10.1 Audio device: nVidia Corporation MCP51 High Definition Audio (rev a2)) This problem persists across resets. alsamixer etc. claims sound is not muted, and volume is high. it's the same no matter which program I try to play some sounds (or which -ao for mplayer, default seems to be pulse) nothing obvious shows up in system settings
Do I really need to reinstall the system to fix that, or is there something simple I'm missing?
View 1 Replies
View Related
Apr 18, 2010
I've got a Compaq MX 11800 keyboard that has a ball (used as a mouse). The ball works fine in Ubuntu and Windows, but does not work in Debian or Fedora.
I don't know where to start troubleshooting this issue. Any help is appreciated.
Here's a picture of the thing: [url]
View 1 Replies
View Related
May 3, 2011
you have an onboard soundcard that you have or may not have disabled in the BIOS, and you intend to use headphones with a USB sound card with headphone and microphone jacks (or no mic jack, it doesn't matter), but you notice that the headphones are detected. Alsamixer provides an interface to control the volume, etc etc, but still the headphones do not work..In my case, the module snd_hda_intel was being loaded for my onboard soundcard that I had disabled in the BIOS before booting the computer for the first time, and even though I tried to "activate" the USB headset in alsamixer, I still couldn't get the headset to work.
Solution as a trial: Open a terminal, and look to the code section for what you need to type.A big missing key to my puzzle is how to simply restart and/or reload a module so that it isn't necessary to unplug and plug back in the USB device. Can't I just re-discover the USB devices? (or other such hardware, such as a PCI card, or otherwise inaccessible component?)
View 4 Replies
View Related
Nov 2, 2010
I'm getting some trouble with Wake on Lan. The main question is: when I shutdown a PC through Windows, the WOL works well, but it doesn't happen when I shutdwon the same PC through Linux. It happens in all of my PCs here in the company.
View 8 Replies
View Related
Jan 3, 2010
I run a HTTP/HTTPS proxy server but one of our clients is having trouble accessing [URL]Can anyone see if the login button is using some kind of weird connection feature? I thought it might be using flash or something rerouting the connection through something other than port 80 (or 8080 for the proxy) but not sure if that is the issue.I just used a fake login and password but instead of giving me the incorrect password error the page just hangs.
View 6 Replies
View Related
Aug 13, 2010
-cd command of urxvt doesn't work
View 1 Replies
View Related
Dec 3, 2010
Why doesn't Hibernate work in Ubuntu 10.10?
I have tried to research the problem and suspect that the hibernation function is not a default function of the system. But how do I install it.
View 4 Replies
View Related
Aug 4, 2011
First of all let me introduce myself. My name is Rasheed and i am from UAE, after not having any reply from a week in Fedora's official forum i came across the linuxquestions through google and hoping to help others and resolve my issues as well with the help of experts here. So here is my problem what i am currently having. I am going through a serious issue right now. My laptop crashes when SUSPEND/HIBERNATE or unplugging the laptop's charger.
View 14 Replies
View Related
Mar 22, 2011
i am trying to install "uBuntu" on a systeam "XP" standard installation but nothing happen, only if i start whit reboot my system. but i what to do so when my system is ruining. Its possible?
View 4 Replies
View Related
Apr 17, 2011
I tried installing lucid puppy(lupu) in my pen drive using Universal-USB-Installer-1.8.4.0 but when i booted up using my flash drive the boot screen displayrd a message:
SYSLINUX 3.86 2010-04-01 CBIOS Copyright (C) 1994-2010 H. Peter et al
No DEFAULT or UI configuration directiove found!
boot:_
I also get similar message message when i try to boot from DSL BUt a few weeks ago when i tried lupu without formatting my flash drive(it had some stuff in it) lupu ran it said 5 seconds to boot an image come but nothing more it hanged up showing a black screen and a blinking under score symbol
View 2 Replies
View Related