Bug#591756: udeb size increase for vconfig support in busybox

2011-02-14 Thread Michael Tokarev
On 21.01.2011 08:26, Matthew Palmer wrote:
> Just for the record, the difference between the size of the binary in
> busybox-udeb 1.17.1-9 (as is currently in git) when built on i386 with and
> without vconfig is 384 bytes.  vconfig in is 212732, vconfig out is 212348. 
> I built both locally in the same chroot to remove any other biases (gcc
> version, etc).
> 
> Given that I am planning on putting vlan support into wheezy, if someone
> wanted to make an appropriate commit... 

And for a bit more information.. vconfig (vlan package) is kinda obsolete
these days, iproute package took its role and extended functionality to
match current kernels.  What I'm trying to say is that it's probably a
good idea to use more appropriate tools to start with, if the talk is
not about compatibility with some old code.

Busybox has iproute built-in, but its functionality is not sufficient
for configuring vlan interfaces (not even 1.18).  I'll take a look
into this.

/mjt



-- 
To UNSUBSCRIBE, email to debian-boot-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/4d591394.40...@msgid.tls.msk.ru



Bug#591756: udeb size increase for vconfig support in busybox

2011-01-21 Thread Ferenc Wagner
Martin Zobel-Helas  writes:

> On Fri Jan 21, 2011 at 15:02:30 +0100, Ferenc Wagner wrote:
>
>> Matthew Palmer  writes:
>> 
>>> Just for the record, the difference between the size of the binary in
>>> busybox-udeb 1.17.1-9 (as is currently in git) when built on i386 with and
>>> without vconfig is 384 bytes.
>> 
>> I wonder if you really need this after all.  vconfig is deprecated, and
>> even the current squueze RC1 busybox seems to understand
>> 
>> # ip link add link eth0 name vlan10 type vlan id 10
>> 
>> although the operation itself fails.  On my squeeze desktop,
>> 
>> # modprobe dummy
>> # ip link add link dummy0 name vlan type vlan id 10
>> 
>> works all right, and even
>> 
>> # busybox ip link del vlan
>> 
>> does its deed, but
>> 
>> # busybox ip link add link dummy0 name vlan type vlan id 10
>> ip: RTNETLINK answers: Invalid argument
>> 
>> So I guess the support is there in busybox right now, but unfortunately
>> it's broken by some bug.
>
> Are you sure the vlan kernel modules are loaded? I think we might miss
> the vlan modules (8021q garp stp) in d-i for that.

That was my first thought as well.  But then I tried on a squeeze
desktop, where iproute had no difficulty adding the tagged interface,
but busybox still failed (although it could delete it beforehand).
-- 
Cheers,
Feri.



-- 
To UNSUBSCRIBE, email to debian-boot-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/87lj2e5k2w@tac.ki.iif.hu



Bug#591756: udeb size increase for vconfig support in busybox

2011-01-21 Thread Martin Zobel-Helas
Hi, 

On Fri Jan 21, 2011 at 15:02:30 +0100, Ferenc Wagner wrote:
> Matthew Palmer  writes:
> 
> > Just for the record, the difference between the size of the binary in
> > busybox-udeb 1.17.1-9 (as is currently in git) when built on i386 with and
> > without vconfig is 384 bytes.
> 
> I wonder if you really need this after all.  vconfig is deprecated, and
> even the current squueze RC1 busybox seems to understand
> 
> # ip link add link eth0 name vlan10 type vlan id 10
> 
> although the operation itself fails.  On my squeeze desktop,
> 
> # modprobe dummy
> # ip link add link dummy0 name vlan type vlan id 10
> 
> works all right, and even
> 
> # busybox ip link del vlan
> 
> does its deed, but
> 
> # busybox ip link add link dummy0 name vlan type vlan id 10
> ip: RTNETLINK answers: Invalid argument
> 
> So I guess the support is there in busybox right now, but unfortunately
> it's broken by some bug.

Are you sure the vlan kernel modules are loaded? I think we might miss
the vlan modules (8021q garp stp) in d-i for that.

Cheers,
Martin
-- 
 Martin Zobel-Helas   | Debian System Administrator
 Debian & GNU/Linux Developer   |   Debian Listmaster
 Public key http://zobel.ftbfs.de/5d64f870.asc   -   KeyID: 5D64 F870
 GPG Fingerprint:  5DB3 1301 375A A50F 07E7  302F 493E FB8E 5D64 F870



-- 
To UNSUBSCRIBE, email to debian-boot-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20110121145950.ga...@ftbfs.de



Bug#591756: udeb size increase for vconfig support in busybox

2011-01-21 Thread Ferenc Wagner
Matthew Palmer  writes:

> Just for the record, the difference between the size of the binary in
> busybox-udeb 1.17.1-9 (as is currently in git) when built on i386 with and
> without vconfig is 384 bytes.

I wonder if you really need this after all.  vconfig is deprecated, and
even the current squueze RC1 busybox seems to understand

# ip link add link eth0 name vlan10 type vlan id 10

although the operation itself fails.  On my squeeze desktop,

# modprobe dummy
# ip link add link dummy0 name vlan type vlan id 10

works all right, and even

# busybox ip link del vlan

does its deed, but

# busybox ip link add link dummy0 name vlan type vlan id 10
ip: RTNETLINK answers: Invalid argument

So I guess the support is there in busybox right now, but unfortunately
it's broken by some bug.
-- 
Regards,
Feri.



-- 
To UNSUBSCRIBE, email to debian-boot-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/87zkqu5p8p@tac.ki.iif.hu



Bug#591756: udeb size increase for vconfig support in busybox

2011-01-20 Thread Matthew Palmer
Just for the record, the difference between the size of the binary in
busybox-udeb 1.17.1-9 (as is currently in git) when built on i386 with and
without vconfig is 384 bytes.  vconfig in is 212732, vconfig out is 212348. 
I built both locally in the same chroot to remove any other biases (gcc
version, etc).

Given that I am planning on putting vlan support into wheezy, if someone
wanted to make an appropriate commit... 

- Matt



-- 
To UNSUBSCRIBE, email to debian-boot-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20110121052608.gl3...@hezmatt.org