Software :: Power PC PSC UART Kernel Object Just Not Working?

Apr 19, 2010

This has got me stumped to the point where I have spent 5 days with little sleep trying to find what I did wrong. It should be simple yet it doesn't work. All I want to do is create a test /dev/fred device driver that will allow me to test my hardware, all I want to do is transmit some bytes out PSC5. It *should* be a simple matter:

1) Make sure PSC5's PADs are configured for Function 0, DS of 1
2) Make sure SCCR1 has PSC4, 5, and 6 ENABLED
3) Configure the PSC's registers for UART mode, transmit/receive enable, all that happy stuff.
4) Have an open, close, read, write, ioctl function

What happens is that everything hangs together just fine, when I open(/dev/fred) my open_iproc_psc6_uart2() gets called and everything gets configured -- I request memory, remap it, release memory as needed. When write(/dev/fred) is called, my driver's ech_write() is called and when read(/dev/fred) is called, my ech_read() driver function gets called -- great stuff, it should be *easy*.

The problem is, I get nothing out the transmit pin of the PSC. if I missed a configuration register some where? A clock I need to set? I'll have to sleep on this and maybe inpiration will come but this is such a simple thing I'm trying to do, it should work. In fact I compare my code against three examples on the Internet and it looks functionally the same. Code with debugging / un-needed stuff added to try to figure out whyt nothing comes out the serial transmit pin:

// ----------------------------------------------------------------------
// This is a device driver that creates /dev/fred and is used to send
// and receive serial data on PSC6. It's just a test driver, something

[code]....

View 1 Replies


ADVERTISEMENT

General :: Minicom Offline But Uart Registers Working?

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

CentOS 5 :: Want To Build 'ELF Shared Object' Kernel / Not 'ELF Executable'

Nov 9, 2010

I've been trying to use tracepoints on a newly installed Centos5.5 download, and crash when I call register_trace_sched_switch, which maps to tracepoint_probe_register(sched_switch, my_func) in tracepoint. h/DO_TRACE, where my_func is the function I want called back on a thread switch. I'm trying to do this from an installable module.So I downloaded the sources for 5.5 (current, 2.6.18-194), with the intention of kprinting my way through the above problem.Unlike the downloaded kernel, which is an "ELF 64-bit LSB shared object" (I'm building for an Intel Atom), when I build using "make" in my rpmbuild/BUILD/kernel-26..18/linux-2.6.18.x86-64/ directory, I get an "ELF 64-bit LSB executable". When I try to boot it, I get the complaint "Error 13: Invalid or unsupported executable format".

The closest thing I could find on the web, was a suggestion, for some powerpc system, to use the "ELF executable" format instead of "ELF shared object", the opposite of my issue, and that such could be forced by using a CONFIG-RELOCATABLE manifest.I couldn't find any .config manifest that looked likely to produce the result I want.

View 1 Replies View Related

Programming :: Writing GPS Driver Over High Speed UART?

Oct 14, 2010

I am developing a GPS driver which is connected over a high speed UART. The driver of the high speed UART is available and it creates a device node /dev/ttyHS0. Now using the device node, I guess, I will be able to read/write from/to the GPS chip from user space but my aim is to write a GPS driver in the kernel space which would communicate with the high speed UART driver. After some initial study, I think I can either write a line discipline driver or a serio to communicate with the GPS chip firmware through high speed UART driver.

View 5 Replies View Related

Ubuntu Multimedia :: Error - Object Reference Not Sent To An Instance Of An Object

Mar 6, 2010

I've been using the PPA version of banshee, and I got this error - just wondering if anyone else has it too! I'm able to play a song, but when the song finishes and the next one starts I get this error: Banshee Encountered a Fatal Error Object reference not sent to an instance of an object Error details:

Code:
An unhandled exception was thrown: Object reference not set to an instance of an object
at Hyena.Gui.Theming.GtkTheme.GetCairoTextMidColor (Gtk.Widget) <0x00017>
at Banshee.NotificationArea.NotificationAreaService.get_TextLightColor () <0x0002f>
at Banshee.NotificationArea.NotificationAreaService.MarkupFormat (string,string[]) <0x00043>
at Banshee.NotificationArea.NotificationAreaService.GetByFrom (string,string,string,string) <0x000d7>

[Code]....

View 4 Replies View Related

OpenSUSE :: Gwibber Not Working / ImportError: Could Not Import Object?

Apr 29, 2011

using Tumbleweed + Gnome3 and GnomeApps-Repo on 64 bit System.I already found this bug url. but now that this is solved gwibber should work but here i get Traceback (most recent call last):

File "/usr/bin/gwibber", line 10, in <module>
import sys, gtk, optparse, dbus, wnck, time
File "/usr/lib64/python2.7/site-packages/gtk-2.0/gtk/__init__.py", line 40, in <module>
from gtk import _gtk
ImportError: could not import gobject (could not find _PyGObject_API object)

View 7 Replies View Related

Fedora :: Yum Not Working: AttributeError: 'YumBaseCli' Object Has No Attribute 'preconf'

Oct 15, 2009

I use fedora 8 & had previously tried to upgrade to 10, unsuccessfully. From then onwards, yum & rpm have refused to work. I tried deleting & rebuilding rpm database but it doesnt solve anything. Here is the error when I run yum

Code:

# yum update
Traceback (most recent call last):
File "/usr/bin/yum", line 29, in <module>
yummain.user_main(sys.argv[1:], exit_code=True)

[code]....

View 1 Replies View Related

Programming :: Object To Represent An Object Of Different Types?

Mar 1, 2010

Only ones I can think of seem overly complex, and I'm sure there is a simple solution I am overlooking. I have a class, it has a member who is an object. This object needs to be able to represent an object of different types.

[code]...

Where "surface" could be several different types, which will be set during execution. Hope this is clear enough. I have tried using templates but am getting "data member cannot be a member template". Either I have incorrect syntax, or am not implementing it right. another solution would have one class containing definitions of all possible shapes, But this would take up extra memory. Other solutions I thought of seem too round-about, and seems there is a simpler solution that I have overlooked.

View 8 Replies View Related

Red Hat / Fedora :: Kernel Panic Following Bad Power Cycle

Apr 20, 2010

I have a client who has for the last four years been running a Red Hat 4.1.18 Server with absolutely zero problems. Yesterday somebody had a problem with one of the attached Windows PC's and some genius decided to reboot the server. By genius I mean idiot and by reboot I mean pull turn off the power to the box.

When they tried to reboot, they get a kernel panic. This is what the screen says;
Uncompressing Linux... Ok, booting the kernel.
audit(1009912323.849:0): initialized
Red Hat nash version 4.1.18 starting
File descriptor 3 left open
Reading all physical volumes. This may take a while...
/dev/hda: open failed: No medium found
No volume groups found
File descriptor 3 left open
/dev/hda: open failed: No medium found
No volume groups found
File descriptor 3 left open
/dev/hda: open failed: No medium found
No volume groups found
mount: error 6 mounting ext3
mount: error 2 mounting none
switchroot: mount failed: 22
umount /initrd/dev failed: 2
Kernel panic - not syncing: Attempted to kill init!

The server runs the database for their entire POS system so they are now dead in the water. I'm stuck, I've never come across this before. What do I do to recover this?

View 6 Replies View Related

Slackware :: Compile Devicekit Power 014 On Kernel 2.6.32 Fails

Mar 28, 2010

I'm trying to compile a newer version of devicekit-power (currently I have 009) so maybe I can suspend/hibernate my laptop again, after I updated the kernel. I installed every package "./configure" asked, so it made a Makefile. When I use "make", it builds a few files, then I get this error:

[code]...

Also, is upower-0.90/91 the same thing but newer?

View 9 Replies View Related

Debian Configuration :: Kernel Panic: Power/level Is Deprecated?

Jul 13, 2011

I am currently having issues with system freeze when unmounting portable hard drives. This happens almost every single time. Normal USB sticks are fine and do not produce the freeze. I am using kernel 3.0.0-rc6, however the issue also persists when switching back to 2.6.39. This is the error message i get when freeze occurs, reverting to terminal output:

WARNING! power/level is deprecated use power/control instead
Jul 13 18:26:49 destiny kernel: [ 6196.892776] Call Trace:
Jul 13 18:26:49 destiny kernel: [ 6196.892803]  [<ffffffffa008feec>] ? scsi_setup_blk_pc_cmnd+0x15/0x104 [scsi_mod]

[Code]...

View 2 Replies View Related

Ubuntu Installation :: Power Failure During Kernel Update - How To Recover

Sep 12, 2010

I was updating the kernel and left the computer to let it do its business. There was power failure and I don't know if the update completed or if it was in the middle of it. Now if I start the computer, it freezes up at the login screen. I tried to recover from grub, by selecting "Ubuntu, with Linux 2.6.32-21-generic (recovery mode)". There were no prompts for input after this. The recovery screen is not updating anything after:

[2.348886] EXT4-fs (sda1): INFO: recovery required on readonly filesystem
[2.349015] EXT4-fs (sda1): write access will be enabled during recovery
[2.577641] EXT4-fs (sda1): recovery complete
[2.578072] EXT4-fs (sda1): mounted filesystem with ordered data mode
Begin: Running /scripts/local-bottom ...
Done.
Done.
Begin: Running /scripts/init-bottom ...
Done.

When I come out of that screen (ctrl-alt-del), the problem repeats.

View 3 Replies View Related

Ubuntu Installation :: Power Failure During Upgrade To Lynx - Kernel Panic?

May 2, 2010

I learned yesterday that doing a massive upgrade on my system while moving was a BAAAD idea.The upgrade process was going along just fine, it was all downloaded and was actually installing that last time I saw it. I unplugged my laptop to move a bookcase out, and completely forgot to plug it back in. After I got back from moving a load, I found my computer was off. I tried to boot up, and I got an error that kind of freaked me out. It reads as follows:

Code:kernel panic not syncing vfs unable to mount root fs on unknown-block(0,0)I'm able to get to grub just fine, and my windows partition loads up just fine, but any of the linux kernels fail similarly when I attempt to load them.I'm sure that I can fix this, I just have no idea how. Probably has something to do with a live cd.

View 3 Replies View Related

Ubuntu :: Power Options Not Working?

Jun 13, 2010

upgraded to 10.04 on pangolin performance laptopset power option to never suspend or hibernate or shut down using AC or batteryhowever...the system suspends after a few minutes of idle time, requiring a password to log back on

View 4 Replies View Related

Networking :: WOL Is Not Working After A Software Power Off?

Apr 15, 2009

When in my Fedora 10 I power off the system, by using the gnome icon or even the command line "poweroff", it shut down the machine and power off it as expected - EVEN THE NIC. I can see its led is off ! This happens when I put the machine in hibernate mode too, but not in suspend mode. When I power on and and power off it just after the POST messages, when grub is waiting a key to select an option, I can see the NIC's led is still blinking at each second or so. When I power on the machine and select windows (dual boot system) and then power it off, it power off as expected, I mean, it leaves the NIC on - the led blinks even with the machine powered off. As result, I can't wake up my machine remotely by using Wakeup-On-Lan since the NIC is powered off by Fedora.

View 4 Replies View Related

Ubuntu :: Power Top Wake Ups From [kernel Scheduler] Load Balancing Tick And [ohci_hcd:usb4?

Aug 7, 2010

trying to save abit of power where i can, this is from my fileserver/htpc, a zotac gf 9300 itx motherboard and a underclocked e3300 at 100mhz on fsb. is there any way i can lower the amounnt that these processes wake up the cpu?

Code:< Detailed C-state information is not P-states (frequencies)
1250 Mhz 0.1%
1000 Mhz 0.0%
800 Mhz 0.0%
600 Mhz 99.8%

[Code]...

View 4 Replies View Related

Fedora :: Using F12 With LXDE - Power Button Not Working

Nov 19, 2009

I'm using Fedora 12 with LXDE (sudo yum groupinstall LXDE if you want to try it), and while using LXDE rather than GNOME, the power button doesn't do anything. I found a possible solution here: [URL] but I have no /etc/acpi/ folder. Why is that? Package acpid is needed.

View 2 Replies View Related

Fedora :: Power Management Preferences Not Working.

Apr 19, 2010

When I change the "Put display to sleep when in active for" it seems to make no difference. The screen goes to sleep when it wants. Some times in the middle of watching a dvd (after about 10 mins when it is set to 1 hour).Could this be done by terminal, perhaps there is a problem between entering in the GUI and actually telling the machine.

View 1 Replies View Related

Ubuntu :: Power Button Not Working In Lubuntu?

Sep 25, 2010

Recently i've switched from ubuntu 8.04 to Lubuntu 10.04, since that time the powerbutton does not work anymore.I've tried to find out how powermanagement is implemented in ubuntu to be able to debug this problem. But most documentation about this topic seems dated.I've already tried a few thing, most important stuff I did is:

- tested the scripts in /etc/acpi/ and added a line to write something to a textfile when its called. But this file is not called when pressing the powerbutton.

- checked bios settings, seems alright (and these settings worked on 8.04 to).

View 3 Replies View Related

General :: Power Management Not Working In Ubuntu 10.04

Aug 3, 2010

I've recently installed Ubuntu 10.04 and found the following problem: power management doesn't appear to be working. If I'm away from my computer for only a few moments, the screen is on dim when I return and I have to log on again. I've set the following states in Power Management: NEVER SWITCH OFF SCREEN and haven't ticked the DIM WHEN IDLE BOX. Can anyone help with this problem - it's infuriating. Meanwhile, I've gone back to Ubuntu 9.10 ...

View 2 Replies View Related

Debian Hardware :: How To Get Power Button Working On X1Carbon

Jun 3, 2015

I have a new Thinkpad X1 Carbon (3rd) and i am very pleased with this machine so far.

Linux support is very good and i only have a few issues remaining.

I am running Debian Jessie and tried this with 2 kernels:

linux-3.16.7-ckt11-1
linux-4.0.4 (vanilla)

Main Problem at the time is really cannot get the power button to work.

thinkpad_acpi module is loaded.

I am not very familiar what possibilities are available to catch input devices. Some search in the internet brought me to the following commands. I tried evtest with no result

Code: Select allroot@x1carbon:~# evtest /dev/input/event3
Input driver version is 1.0.1
Input device ID: bus 0x19 vendor 0x0 product 0x1 version 0x0
Input device name: "Power Button"
Supported events:
  Event type 0 (EV_SYN)
  Event type 1 (EV_KEY)
    Event code 116 (KEY_POWER)
Properties:
Testing ... (interrupt to exit)

I tried acpi_listen also with no result

What else could i try? All other keys like lid event and all fn keys work flawlessly.

Just learned that the event needs about 1 second of pressing time to trigger

View 0 Replies View Related

Ubuntu :: Power Management Working In Failsafe Mode Only

Oct 8, 2010

Whatever settings I use in the power manager, (Ubuntu default Gnome Power Manager) nothing appears to change. Screen brightness does not change when moving the slider, but is reduced after 5 or 10 minutes (haven't timed it. Probably whatever is default) of inactivity, even though the reduce screen brightness checkbox is unchecked. The latter is pretty annoying when watching online TV streams, especially since the video also exits full screen mode when the screen brightness is reduced.

The weird thing is, as the title implies, that when booting in recovery mode with FailsafeX the power settings seems to work. At least the screen brightness varies as the slider is moved I should probably mention that it is possible even in normal mode to adjust the screen brightness by using the buttons for adjusting screen brightness on my laptop (Fn + arrow up/down)

View 2 Replies View Related

Server :: Services Not Working Properly After Power Breakdown

May 20, 2010

Today, I need to talk about some strange problem that faces me in my Linux Server, the power goes down and my server goes off, but when the power returns the server powered on and it works, but some services are not working properly like:

SSH, HTTP

When I try to login remotelt via ssh client like putty it ask me for username but, it hangs after I put my username and not asking me for the password. The second error is related to my web-server which redirect me to Apache default page and when I go for the terminal to make restart for httpd service, here is the output :

> service httpd restart
Stopping httpd: [ OK ]
Starting httpd: [Thu May 20 10:51:15 2010] [error] (EAI 3)Temporary failure in name resolution: Could not resolve host name admin.abakhiet.info -- ignoring!
[Thu May 20 10:53:07 2010] [error] (EAI 3)Temporary failure in name resolution: Could not resolve host name [URL] -- ignoring!
[Thu May 20 10:53:07 2010] [warn] NameVirtualHost 196.202.58.94:0 has no VirtualHosts
[OK]

View 2 Replies View Related

Slackware :: User 'Logout' Not Working - Must Power Off To Recover?

Jul 6, 2011

If, as root, I 'Leave' --> 'Logout', I get the KDE login screen.If, as user rob, I 'Leave' --> 'Logout', I get a black screen from which I must power off to recover, and I use the term very loosely. User rob is a member of the 'power' group.

View 10 Replies View Related

Ubuntu :: Before The Login Window - Power Management Has Stopped Working

May 9, 2010

Everytime I restart my PC and the login, Before the login window goes away a window pops up saying "Power Management has stopped working" If I click cancel nothing happens, if I click Logout Anyway then the window goes away and I continue to login. Whats up with that? I am using a Desktop.

View 3 Replies View Related

Ubuntu Networking :: SMB And AFP Shares Not Working After Power Outages - I/O Error

Jul 31, 2011

i was able to mount my SMB shares, but I didn't actually try to transfer data. I tried to move some data off my linux box to my mac, but i got a finder error 36. which i believe is a input/output error. I got further proof of that when i was going through some directories and got this: ls: reading directory .: Input/output error so i'm gonna guess that whatever input/output errors are happening is what is causing AFP and SMB to not work properly.

View 1 Replies View Related

Networking :: Ssh Stopped Working After Accidental Power-off During Rdiff-backup?

Aug 9, 2010

i unplugged the wrong machine during an rdiff-backup run, and when i try to ssh to that machine now, i get 'connection refused'. the machine was set up with ssh-copy-id before the accidental unplug.

View 4 Replies View Related

Debian Configuration :: Gnome-power-manager Prevents Suspend Key From Working

Nov 19, 2010

I decided to upgrade my Asus Eee 900 from Lenny to Squeeze, to fix some issues that I was having. I did a fresh install using the beta1 netinstall cd image, and now my system is mostly working as I'd like it. Overall it seems quite good, and it even boots much faster than it did with Lenny.

I've encountered a problem, though. The suspend key doesn't work. I installed the package 'hibernate', and now the system can suspend via a command (which seems to work properly, although I haven't tested it extensively). I've noticed that the squeeze system doesn't have a command that my other Lenny systems do, 's2ram'. And I've noticed also that a package, uswsusp, which seems to be related to this kind of thing, can't be installed because it's not in the repositories: Package uswsusp is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source E: Package 'uswsusp' has no installation candidate

View 10 Replies View Related

Ubuntu :: Isnt Working - Configuration Defaults For GNOME Power Manager Have Not Been Installed Correctly

Jul 16, 2011

My ubuntu isnt working after i write my password and press enter it does nothig but gives a massage ''the configuration defaults for GNOME power manager have not been installed correctly'' the recovery console doesnt work too(same problem) the problem appeared after i installed bittorent client called smth starting with 'd'.

View 4 Replies View Related

CentOS 5 :: CentOS 5 Home Server Power Consumtion? (features, Kernel Versions Etc.)?

Feb 28, 2010

I built a home server (NAS/WWW/SSH/media server etc) and chose CentOS 5 as the OS (stability, easy of configuration).I was just about to start tuning the power consumption when I realised that the kernel CentOS uses is so "old" that it does not support the latest reduced power consumption enhancements that Linux has achieved in big strides in the recent past (we are probably still talking 6-12+ months ago e.g. tickless kernel)..

So my questions; 1) I know CentOS was maybe not meant for home servers (certainly its not its primary purpose), but if it is, any ideas of what kind of power consumption it takes (I know its relative) and if there are particular power consumptions that are worthwhile?

2) Do you recommend me compiling my own 2.6.21+ kernel from kernel.org or am I just likely to have compatibility issues (I really did not want to do that) or when is CentOS 5.4 supposed to have a newer 2.6.21+ version kernel?

Was it wrong of me in principle to choose CentOS for a home server when I am power conscious? (I don't have a low-power VIA processor either but a P4 so I am really just hoping to make do with software changes).

View 4 Replies View Related







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