From: sudheer <urwithsudheer@gmail.com>
To: Claus Gindhart <claus.gindhart@kontron-modular.com>
Cc: linuxppc-embedded@ozlabs.org, ilugc@ae.iitm.ac.in
Subject: Re: regarding lspci
Date: Wed, 12 Jul 2006 12:40:36 +0530 [thread overview]
Message-ID: <44B4A06C.2010508@gmail.com> (raw)
In-Reply-To: <200607111404.25437.claus.gindhart@kontron-modular.com>
Hi Claus.Gindhart
Thanks for patch.
I have tried the same and could do it.
I have modified the lib/configure file manually and gave the following
command
#make CC=powerpc-linux-gcc
I could get the lspci, setpci commands.
Need to test this with my target board. Let you know after testing.
But when i tried with applying patch directly.. i got the following error:
[root@localhost pciutils-2.1.11]# patch -p1 < patch-pciutils
patching file lib/configure
Hunk #1 FAILED at 12.
1 out of 1 hunk FAILED -- saving rejects to file lib/configure.rej
[root@localhost pciutils-2.1.11]#
I have just copy pasted the patch from my mail and tried.
Thanks & Regards
Sudheer
Claus Gindhart wrote:
>Hi Rahul,
>
>Maybe, its better, if you do the modification by hand. This has the advantage,
>that you know, what happens.
>
>Just, search for the following lines
>--------------8-<----------------------
>sys=`uname -s`
>rel=`uname -r`
>if [ "$sys" = "AIX" -a -x /usr/bin/oslevel -a -x /usr/sbin/lsattr ]
>then
> rel=`/usr/bin/oslevel`
> proc=`/usr/sbin/lsdev -C -c processor -S available -F name | head -1`
> cpu=`/usr/sbin/lsattr -F value -l $proc -a type | sed 's/_.*//'`
>else
> cpu=`uname -m | sed 's/^i.86$/i386/;s/^sun4u$/sparc64/'`
>fi
>echo " $sys/$cpu $rel"
>--------------8-<----------------------
>
>Comment them out; they can not work, when cross compiling, because they try to
>detect Kernel version and architecture by using host tools
>
>Then, add the following lines
>
>--------------8-<----------------------
>sys=Linux
>rel=2.6.13 (or whatever Kernel version you have)
>cpu=ppc
>--------------8-<----------------------
>
>
>
>
>
prev parent reply other threads:[~2006-07-12 7:10 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-07-11 9:29 regarding lspci rahul
2006-07-11 9:42 ` Mark Zhan
2006-07-11 9:47 ` Claus Gindhart
2006-07-11 10:47 ` rahul
2006-07-11 11:59 ` Sergei Shtylyov
2006-07-11 12:04 ` Claus Gindhart
2006-07-12 7:10 ` sudheer [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=44B4A06C.2010508@gmail.com \
--to=urwithsudheer@gmail.com \
--cc=claus.gindhart@kontron-modular.com \
--cc=ilugc@ae.iitm.ac.in \
--cc=linuxppc-embedded@ozlabs.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.