Glenn McGrath | 1 Mar 2003 03:43
Picon

Re: [announce] New Applet -- miscutils/detect (pci detectionj utility)

On Fri, 28 Feb 2003 18:32:52 +0200
"Mindaugas j." <mindeh <at> xxx.lt> wrote:

> I have discovered that busybox is great, so I decided
> to a contribution as well.
> 
> As you know there are no hardware detection tools in busybox and
> sometimes in boot floppies its quite usefull. 
> 
> I grabed lspcidrake, striped, rewrote and imported
> into busybox.
> 

Hi, i think this applet could be usefull for a few different projects.

Attached is a more optimised version of detect.c

I havent properly gone through pciusb_find_modules_by_map() or
pciusb_entries_t pci_probe() yet

Glenn
Attachment (detect.c.gz): application/octet-stream, 3616 bytes
Laurence Anderson | 1 Mar 2003 16:42
Picon
Picon

Re: [announce] New Applet -- miscutils/detect (pci detectionj utility)

> As you know there are no hardware detection tools in busybox and
> sometimes in boot floppies its quite usefull.

Yeah, good work, I think some kind of detection software is needed in busybox, 
especially for use in boot floppies etc.

> Enjoy, feedback is welcome

What I'd like to see is more of a kudzu replacement (too big & complicated), 
to do things like mouse detection, etc. I'm willing to help with that if you 
like.

I've appended a superlight version of autoloading pci modules from my 
imageboot project, maybe it could go in the scripts directory if people think 
its useful.

Laurence

get_pci_modules () {
	while read IGNORE ID IGNORE
	do
		VENDOR=`echo $ID | cut -b1-4`
		DEVICE=`echo $ID | cut -b5-8`
		DEVENTRY=`echo 0x0000${VENDOR} 0x0000${DEVICE}`
		cat /lib/modules/`uname -r`/*.pcimap | grep "$DEVENTRY" | cut -d ' ' -f1
	done
}

for MODULE in `get_pci_modules < /proc/bus/pci/devices | sort -u`
do echo Loading module $MODULE
(Continue reading)

Terje Kvernes | 1 Mar 2003 21:34
Picon
Picon

Re: [announce] New Applet -- miscutils/detect (pci detectionj utility)

Laurence Anderson <l.d.anderson <at> warwick.ac.uk> writes:

  [ ... ]

> I've appended a superlight version of autoloading pci modules from
> my imageboot project, maybe it could go in the scripts directory if
> people think its useful.

  [ snip script ]

  I tend to use 'pcimodules' for such things.  it comes out of
  'pciutils' and a small patch.  it works similar as your script:

echo "loading modules..."
for module in $( /usr/sbin/pcimodules ); do
   echo " * $module";
   modprobe $module
done

  as a standalone built against uclibc on i386 it's about 16KiB in
  size.

--

-- 
Terje
Tom Walker | 2 Mar 2003 16:29

wget problem

I've been trying to get wget to work, but always get an error message as
follows: "wget: not an http or ftp url: 192.168.144.1:default.htm" in
response to entering "wget 192.168.144.1/default.htm". I've tried using
three kernel versions (2.2.14, 2.2.19, 2.4.7) , uClibc-0.9.18,
libc-2.2.4, busybox-unstable, and busybox-0.60.5 with the same result.
Downloaded wget-1.8.2 and wget-1.6 and both work properly under uClibc
and GNU libc using the above syntax. Can someone tell me what I'm
missing here?
			thanx, Tom Walker
Bernd Petrovitsch | 2 Mar 2003 20:07
Picon

Re: wget problem

Tom Walker <twalker <at> world-net.net> wrote:
>I've been trying to get wget to work, but always get an error message as
>follows: "wget: not an http or ftp url: 192.168.144.1:default.htm" in
>response to entering "wget 192.168.144.1/default.htm". I've tried using
>three kernel versions (2.2.14, 2.2.19, 2.4.7) , uClibc-0.9.18,
>libc-2.2.4, busybox-unstable, and busybox-0.60.5 with the same result.
>Downloaded wget-1.8.2 and wget-1.6 and both work properly under uClibc
>and GNU libc using the above syntax. Can someone tell me what I'm
>missing here?

Add http:// or ftp:// in front of the URL depending on whatever URL you
really mean - wget cannot guess that.
In theory one could assume http as a default, but in practise the 
protocol is a necessary and wuite important part of a URL.

	Bernd
--

-- 
Bernd Petrovitsch                              Email : bernd <at> gams.at
g.a.m.s gmbh                                  Fax : +43 1 205255-900
Prinz-Eugen-Straße 8                    A-1040 Vienna/Austria/Europe
                     LUGA : http://www.luga.at
John van Vlaanderen | 3 Mar 2003 01:56
Picon

Re: [announce] New Applet -- miscutils/detect (pci detectionj utility)

Hi, I am very interested in this as I am enhancing the Devil Linux OS.
We are interested in ethernet card detection only, for the time being.

How would you use this ??  Is there a built in database ??

John

On Sat, 2003-03-01 at 15:34, Terje Kvernes wrote:
> Laurence Anderson <l.d.anderson <at> warwick.ac.uk> writes:
> 
>   [ ... ]
> 
> > I've appended a superlight version of autoloading pci modules from
> > my imageboot project, maybe it could go in the scripts directory if
> > people think its useful.
> 
>   [ snip script ]
> 
>   I tend to use 'pcimodules' for such things.  it comes out of
>   'pciutils' and a small patch.  it works similar as your script:
> 
> echo "loading modules..."
> for module in $( /usr/sbin/pcimodules ); do
>    echo " * $module";
>    modprobe $module
> done
> 
>   as a standalone built against uclibc on i386 it's about 16KiB in
>   size.
> 
(Continue reading)

Terje Kvernes | 3 Mar 2003 05:14
Picon
Picon

Re: [announce] New Applet -- miscutils/detect (pci detectionj utility)

John van Vlaanderen <john-at-thinman <at> nyc.rr.com> writes:

  [ hardware autodetection ]

> Hi, I am very interested in this as I am enhancing the Devil Linux
> OS.  We are interested in ethernet card detection only, for the time
> being.

  well, pcimodules lists modules that are available for the recognized
  pci hardware in the box.  if all you need is ethernet cards, then
  you only build ethernet modules, and they are all that will be
  detected.

> How would you use this?  

  like I showed earlier, a simple command-line run might help:

~ # pcimodules 
8139too
via82cxxx_audio
uhci
parport_pc

> Is there a built in database?

  of sorts.  look at /lib/modules/`uname -r`/modules.pcimap.

  <url: http://atrey.karlin.mff.cuni.cz/~mj/pciutils.shtml > is a good
  place to start, but you don't need the 224KiB pci.ids-file to make
  pcimodules work.  it just makes things "human readable".  :-)
(Continue reading)

Nick Fedchik | 3 Mar 2003 08:45

Re: [announce] New Applet -- miscutils/detect (pci detectionj utility)

On Mon, 2 Mar 2003, John van Vlaanderen wrote:

>Hi, I am very interested in this as I am enhancing the Devil Linux OS.
>We are interested in ethernet card detection only, for the time being.
Standard way to detect NIC is to probe it by network modules.
Also I placed in my TODO to port diag-ether tools to busybox (mii-diag and
card-specific tools).
I think it should not be included into BusyBox cvs in the near time, because
this tolls has relatively "huge" size and isn't widelly used.

>How would you use this ??  Is there a built in database ??

--

-- 
Nick Fedchik, FNM3-RIPE(UANIC)
Internet Dept./ISP UkrSat, Kiev, Ukraine
Stewart Brodie | 3 Mar 2003 12:00
Picon

[PATCH] add missing newline at end of libbb/compare_string_array.c

I'm sorry - the compiler warning for the missing newline at the end of the
file libbb/compare_string_array.c has been irritating me.

Please find attached a trivial patch against the latest busybox (unstable) to
add the newline.  This is overkill - it's probably easier to edit the file :)

-- 
Stewart Brodie, Senior Software Engineer
Pace Micro Technology PLC
645 Newmarket Road
Cambridge, CB5 8PB, United Kingdom         WWW: http://www.pacemicro.com/

begin 644 compare_string_array.patch,fff
M26YD97 <at> Z(&QI8F)B+V-O;7!A<F5?<W1R:6YG7V%R<F%Y+F,*/3T]/3T]/3T]
M/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]
M/3T]/3T]/3T]/3T]/0I20U, <at> 9FEL93H <at> +W9A<B]C=G,O8G5S>6)O>"]L:6)B
M8B]C;VUP87)E7W-T<FEN9U]A<G)A>2YC+'8*<F5T<FEE=FEN9R!R979I<VEO
M;B`Q+C$*9&EF9B`M=2`M<C$N,2!C;VUP87)E7W-T<FEN9U]A<G)A>2YC"BTM
M+2!L:6)B8B]C;VUP87)E7W-T<FEN9U]A<G)A>2YC"3( <at> 1&5C(#(P,#( <at> ,#`Z
M,#$Z,S8 <at> +3`P,#`),2XQ"BLK*R!L:6)B8B]C;VUP87)E7W-T<FEN9U]A<G)A
M>2YC"3, <at> 36%R(#(P,#, <at> ,3`Z-#DZ,C, <at> +3`P,#`*0$` <at> +3(W+#0 <at> *S(W+#0 <at> 
M0$`*(`D)?0H <at> "7T*(`ER971U<FXH:2D["BU]"EP <at> 3F\ <at> ;F5W;&EN92!A="!E
.;F0 <at> ;V8 <at> 9FEL90HK?0IR
`
end
Stewart Brodie | 3 Mar 2003 12:35
Picon

[PATCH] compiler warning removal in networking/ifconfig.c

This patch is to stop compiler warnings from networking/ifconfig.c about
variables which may be used before being initialised.

Initialising sai_hostname and sai_netmask gets rid of a compiler warning
about possible use of uninitialised local variables.  The values I have
chosen should be safe.  The code is complex and it is hard to see whether the
compiler is correct or not in its warning.  Even if the code is currently
safe, it may become unsafe if changes are made to the code in future.

-- 
Stewart Brodie, Senior Software Engineer   Cambridge CVS administration team
Pace Micro Technology PLC
645 Newmarket Road
Cambridge, CB5 8PB, United Kingdom         WWW: http://www.pacemicro.com/

begin 644 ifconfig.patch,fff
M26YD97 <at> Z(&YE='=O<FMI;F<O:69C;VYF:6<N8PH]/3T]/3T]/3T]/3T]/3T]
M/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]
M/3T]/3T]"E)#4R!F:6QE.B`O=F%R+V-V<R]B=7-Y8F]X+VYE='=O<FMI;F<O
M:69C;VYF:6<N8RQV"G)E=')I979I;F< <at> <F5V:7-I;VX <at> ,2XR, <at> ID:69F("UB
M("UW("UU("UR,2XR,B!I9F-O;F9I9RYC"BTM+2!N971W;W)K:6YG+VEF8V]N
M9FEG+F,),30 <at> 2F%N(#(P,#, <at> ,# <at> Z-30Z,#< <at> +3`P,#`),2XR, <at> HK*RL <at> ;F5T
M=V]R:VEN9R]I9F-O;F9I9RYC"3, <at> 36%R(#(P,#, <at> ,3`Z-# <at> Z-3$ <at> +3`P,#`*
M0$` <at> +3(Y-BPW("LR.38L-R!`0`H <at> (VEF9&5F($-/3D9)1U]&14%455)%7TE&
M0T].1DE'7T)23T%$0T%35%]03%53"B`)=6YS:6=N960 <at> :6YT(&UA<VL["B`)
M=6YS:6=N960 <at> :6YT(&1I9%]F;&%G<SL*+0EI;E]A9&1R7W0 <at> <V%I7VAO<W1N
M86UE+"!S86E?;F5T;6%S:SL**PEI;E]A9&1R7W0 <at> <V%I7VAO<W1N86UE(#T <at> 
M24Y!1$127T%.62P <at> <V%I7VYE=&UA<VL <at> /2!)3D%$1%)?3D].13L*("-E;'-E
M"B`)=6YS:6=N960 <at> 8VAA<B!M87-K.PH <at> "75N<VEG;F5D(&-H87( <at> 9&ED7V9L
%86=S.PIS
(Continue reading)


Gmane