<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<br>
<br>
Rob Landley schrieb:
<blockquote cite="mid200508040439.45917.rob@landley.net" type="cite">
  <pre wrap="">On Wednesday 03 August 2005 08:42, Stefan Weilhartner wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">Hi Volks!

Here we used busybox-version 1.00pre8 for a long time.
But unzip is not working in all cases (on our Arm7-plattform).
I tried several tagged Version, but only the actual unzip code (checked
in on 20, July, i guess) is really working.
    </pre>
  </blockquote>
  <pre wrap=""><!---->
*blink* *blink*.

The missing information in that paragraph falls into a number of categories:

First of all, are you talking about gunzip or unzip?
  </pre>
</blockquote>
Not gunzip, it is unzip<br>
<blockquote cite="mid200508040439.45917.rob@landley.net" type="cite">
  <pre wrap="">
Unzip is not workign in _what_ cases?  (Are there specific things it fails to 
unzip, do those things unzip properly on intel, does it not unzip anything 
properly on certain platforms, does it refuse to run or produce corrupted 
output or exit with an error, have you tried to debug the problem at all, do 
you have any theories that it might be an endiness issue or something...)

As for checked in: checked in where?  To busybox?  To buildroot?  To the 
info-zip repository?

  </pre>
</blockquote>
I'll search for the zip-archive that makes trouble here on the Arm7
(not tested on Intel machines)<br>
and send you detailed info about the results and versions of unzip.<br>
<blockquote cite="mid200508040439.45917.rob@landley.net" type="cite">
  <pre wrap=""></pre>
  <blockquote type="cite">
    <pre wrap="">But another problem occured:
In version busybox1.00-rc2
    </pre>
  </blockquote>
  <pre wrap=""><!---->
Which is now what, two years old?  Have you tried something more recent to see 
if we already fixed this one?
  </pre>
</blockquote>
Sorry thought busybox1.00-rc3 was the last tagged busybox.<br>
Today, I checked out svn://busybox.net/tags/busybox_1_00 with the same
result.<br>
After booting eth0 is not up.<br>
<br>
<blockquote cite="mid200508040439.45917.rob@landley.net" type="cite">
  <pre wrap="">
  </pre>
  <blockquote type="cite">
    <pre wrap="">network is not set up correct anymore. 
After booting i have no eth0-interface anymore!
    </pre>
  </blockquote>
  <pre wrap=""><!---->
And this last properly worked for you on which version?

  </pre>
</blockquote>
It worked in busybox_1_00_rc1<br>
The last revision it worked was 8994.<br>
Revision 8995 did not work anymore cause of the changes in<br>
<a class="moz-txt-link-freetext" href="http://www.busybox.net/cgi-bin/viewcvs.cgi/trunk/busybox/networking/ifupdown.c?rev=8995&r1=8992&r2=8995">http://www.busybox.net/cgi-bin/viewcvs.cgi/trunk/busybox/networking/ifupdown.c?rev=8995&amp;r1=8992&amp;r2=8995</a><br>
<br>
<blockquote cite="mid200508040439.45917.rob@landley.net" type="cite">
  <pre wrap=""></pre>
  <blockquote type="cite">
    <pre wrap="">I found out, that the 'ifup -a' command is not working as in revisions
before.
After searching a while for the smelly patch if found the patch for the
file networking/ifupdown.c from  working revision 8894 to non-working
revision 8895.

The smelly code is in the function execute_all:
Eliminate these lines:
- if ((*exec)(buf) !) 1) {
-    return 0;
- }
    </pre>
  </blockquote>
  <pre wrap=""><!---->
I have "if ((*exec)(buf) != 1) {".  I don't think what you posted will even 
compile...


  </pre>
</blockquote>
A little mistake from me:<br>
eliminate following these three lines in function execute_all:<br>
      if ((*exec)(buf) != 1) {<br>
              return 0;<br>
      }<br>
and insert the following line instead:<br>
        (*exec)(buf);<br>
<br>
This is just an undo at line1033/1039 from the changeset show at:<br>
<a class="moz-txt-link-freetext" href="http://www.busybox.net/cgi-bin/viewcvs.cgi/trunk/busybox/networking/ifupdown.c?rev=8995&r1=8992&r2=8995">http://www.busybox.net/cgi-bin/viewcvs.cgi/trunk/busybox/networking/ifupdown.c?rev=8995&amp;r1=8992&amp;r2=8995</a><br>
<br>
After checking out svn://busybox.net/tags/busybox_1_00 and doing the
modification shown above, eth0 comes up<br>
after booting.<br>
(now i think i have the last tagged official release from busybox
(svn://busybox.net/tags/busybox_1_00) right?)<br>
<br>
<blockquote cite="mid200508040439.45917.rob@landley.net" type="cite">
  <blockquote type="cite">
    <pre wrap="">(btw: in that file returncode '0' means error and '1' means no_error,
that is a little strange there)
it is no error if no script is in the directory /etc/network/if-.... so
the function 'execute_all' alwalys has to return 1 (no error).
If it does return an error, the function 'iface_up' will break and the
interface does not come up.

So, making busybox_1_00_rc3 work with correct interface settings at
bootup: eliminate the three lines in 'execute_all'.
And making busybox 1_00_rc3 witch correct working 'unzip' copy following
three files from the actual trunk
to your rc3-directory:
 archival/unzip.c
 archival/libunarchive/decompress_unzip.c
 include/unarchive.h

Maybe it's time for a Busybox_1_00_rc4 with these changes?
    </pre>
  </blockquote>
  <pre wrap=""><!---->
Are you talking about 1.0.1-rc2?  Do we have one already?
  </pre>
</blockquote>
Sorry, my mistake. Thought that 1_00_rc3 was the last version.<br>
I tried busybox_1_00_rc2 and busybox_1_00_rc3 and today busybox_1_00 <br>
In all these versions eth0 does not come up without my modification
(mentioned above).<br>
<br>
I hope my infos about my network problem is now accurate enough to
follow.<br>
Thanks for the good work on the busybox anyway,<br>
  WhyLee.<br>
<blockquote cite="mid200508040439.45917.rob@landley.net" type="cite">
  <pre wrap="">
Rob
  </pre>
</blockquote>
</body>
</html>