From mboxrd@z Thu Jan 1 00:00:00 1970 From: chuck gelm Subject: Re: How to change PCI Configuration space? Date: Tue, 30 Aug 2005 12:22:26 -0400 Message-ID: <431487C2.6050107@gelm.net> References: Reply-To: chuck@gelm.net Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Sender: linux-newbie-owner@vger.kernel.org List-Id: Content-Type: text/plain; charset="us-ascii"; format="flowed" To: linux-newbie@vger.kernel.org Cc: Rajat Jain Rajat Jain wrote: > Hi List, > > I want to change the PCI Configuration space of a particular device in > my system. I am trying to use the "pcitweak" utility to do so, but am > not suceeding. I would appreciate if some body could provide me any > pointers in how to do so. > > In this case, I want to change the value at offset 64: > > $ pcitweak -r 5:9:1 64 > 0x01000001 //original value > > $ pcitweak -w 5:9:1 64 0x02000002 //new value > > $ pcitweak -r 5:9:1 64 > 0x01000001 //no change? > > TIA, > > Rajat Jain Dear Rajat Jain: 'man pcitweak' indicates that it requires root privileges. the '$' prompt in your console indicates 'user' privileges. My 'root' prompt is a '#'. I suggest that you do not have 'root' privileges when executing a '-w' (write) command. HTH, Chuck "Pcitweak is a utility that can be used to examine or change registers in the PCI configuration space. On most platfoms pcitweak can only be run by the root user." - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.linux-learn.org/faqs