Re: Basic question on debian kernel versions

2012-12-25 Thread Ben Hutchings
On Tue, 2012-12-25 at 13:30 +, Bandi,Sarveshwar wrote:
> Ben,
>I would like give next set of patches for updating the be2net
> driver. I still have problem is accessing the debian's source tree.

See
http://kernel-handbook.alioth.debian.org/ch-common-tasks.html#s-common-official-vcs

> I do have the linux 3.2 source package which has my last patches
> applied to it. Can I port the patches from net-next tree against this
> source package?

Assuming you mean the source package 'linux' and not the binary package
'linux-source-3.2' then yes.  Start with the current version in unstable
(3.2.35-2), use 'dch' to add a new changelog entry, use 'quilt' to add
your patches, then send either:

- a debdiff between 3.2.35-2 and your new package (see the manual page
for debdiff)
- a tarball containing the added patches and new series file

However, all changes must be justifiable as important bug fixes or
support for new hardware.  New features, cleanup, minor bug fixes etc.
are not allowed, except if you need them as dependencies of the
important changes.

> Also, what should be values for Package and version when I open a bug
> for this?

Package: src:linux
Version: 3.2.35-2

Ben.

-- 
Ben Hutchings
Every program is either trivial or else contains at least one bug


signature.asc
Description: This is a digitally signed message part


RE: Basic question on debian kernel versions

2012-12-25 Thread Bandi,Sarveshwar
Ben,
   I would like give next set of patches for updating the be2net driver. I 
still have problem is accessing the debian's source tree. I do have the linux 
3.2 source package which has my last patches applied to it. Can I port the 
patches from net-next tree against this source package?
Also, what should be values for Package and version when I open a bug for this?

Thanks,
Sarvesh

-Original Message-
From: Ben Hutchings [mailto:b...@decadent.org.uk] 
Sent: Wednesday, May 16, 2012 5:19 PM
To: Bandi,Sarveshwar
Cc: u.kleine-koe...@pengutronix.de; debian-kernel@lists.debian.org
Subject: RE: Basic question on debian kernel versions

On Wed, 2012-05-16 at 01:55 -0700, sarveshwar.ba...@emulex.com wrote:
> Will you be able to give me the last commit details (or 
> net-next-commit id) that happened in the 3.2 tree for the be2net 
> driver ?

There are no Debian changes or stable updates to be2net, so it's whatever went 
into mainline Linux 3.2.

Ben.

--
Ben Hutchings
The two most common things in the universe are hydrogen and stupidity.


RE: Basic question on debian kernel versions

2012-05-16 Thread Ben Hutchings
On Wed, 2012-05-16 at 01:55 -0700, sarveshwar.ba...@emulex.com wrote:
> Will you be able to give me the last commit details (or
> net-next-commit id) that happened in the 3.2 tree for the be2net
> driver ?

There are no Debian changes or stable updates to be2net, so it's
whatever went into mainline Linux 3.2.

Ben.

-- 
Ben Hutchings
The two most common things in the universe are hydrogen and stupidity.


signature.asc
Description: This is a digitally signed message part


RE: Basic question on debian kernel versions

2012-05-16 Thread Sarveshwar.Bandi
Will you be able to give me the last commit details (or net-next-commit id) 
that happened in the 3.2 tree for the be2net driver ?

Thanks,
Sarvesh

-Original Message-
From: Ben Hutchings [mailto:b...@decadent.org.uk] 
Sent: Wednesday, May 16, 2012 6:30 AM
To: Bandi,Sarveshwar
Cc: u.kleine-koe...@pengutronix.de; debian-kernel@lists.debian.org
Subject: RE: Basic question on debian kernel versions

On Tue, 2012-05-15 at 07:35 -0700, sarveshwar.ba...@emulex.com wrote:
> Ben,
>   I have not been successful in getting access to the 3.2 source tree.
> However I have linux-source-3.2_3.2.17-1_all.deb package. Can I 
> patches for be2net driver against this source base? Or can I just cut 
> patches against linux 3.2.17 stable tree? Would that work?

Please use the Debian packaged source as the baseline.

Ben.

--
Ben Hutchings
The two most common things in the universe are hydrogen and stupidity.


RE: Basic question on debian kernel versions

2012-05-15 Thread Ben Hutchings
On Tue, 2012-05-15 at 07:35 -0700, sarveshwar.ba...@emulex.com wrote:
> Ben,
>   I have not been successful in getting access to the 3.2 source tree.
> However I have linux-source-3.2_3.2.17-1_all.deb package. Can I
> patches for be2net driver against this source base? Or can I just cut
> patches against linux 3.2.17 stable tree? Would that work?

Please use the Debian packaged source as the baseline.

Ben.

-- 
Ben Hutchings
The two most common things in the universe are hydrogen and stupidity.


signature.asc
Description: This is a digitally signed message part


RE: Basic question on debian kernel versions

2012-05-15 Thread Sarveshwar.Bandi
Ben,
  I have not been successful in getting access to the 3.2 source tree. However 
I have linux-source-3.2_3.2.17-1_all.deb package. Can I patches for be2net 
driver against this source base? Or can I just cut patches against linux 3.2.17 
stable tree? Would that work?

Thanks,
Sarvesh

-Original Message-
From: Ben Hutchings [mailto:b...@decadent.org.uk] 
Sent: Thursday, May 10, 2012 9:55 PM
To: Uwe Kleine-König
Cc: Bandi,Sarveshwar; debian-kernel@lists.debian.org
Subject: Re: Basic question on debian kernel versions

On Thu, 2012-05-10 at 14:58 +0100, Ben Hutchings wrote:
> On Thu, 2012-05-10 at 13:06 +0200, Uwe Kleine-König wrote:
> > On Thu, May 10, 2012 at 03:37:38AM -0700, sarveshwar.ba...@emulex.com wrote:
> > > I get a connection timed out.
> > > 
> > > root@debian:~#  svn co 
> > > svn://anonscm.debian.org/svn/kernel/dists/trunk/linux-2.6
> > > svn: Can't connect to host 'anonscm.debian.org': Connection timed 
> > > out root@debian:~# ping anonscm.debian.org PING anonscm.debian.org 
> > > (217.196.43.132) 56(84) bytes of data.
> > > 64 bytes from wagner.debian.org (217.196.43.132): icmp_req=1 
> > > ttl=37 time=168 ms
> > > 64 bytes from wagner.debian.org (217.196.43.132): icmp_req=2 
> > > ttl=37 time=165 ms ^C
> > > --- anonscm.debian.org ping statistics ---
> > > 2 packets transmitted, 2 received, 0% packet loss, time 1001ms rtt 
> > > min/avg/max/mdev = 165.589/166.816/168.043/1.227 ms
> > Still works for me, maybe you're behind a firewall blocking svn:// ?
> > 
> > Does accessing http://anonscm.debian.org/ work for you (with a 
> > browser, not svn). I don't know if there is http access available 
> > for the svn repositories?!
> 
> Alioth does not support svn over HTTP, or at least it's not listed at 
> <http://alioth.debian.org/scm/?group_id=30428>.
> 
> Sarveshwar, you will need to find some way round the proxy, or use the

That should be 'find some way round the firewall, or configure svn to use a 
suitable proxy'.

Ben.

> alternate git repository which *is* available over HTTP at 
> <http://anonscm.debian.org/git/kernel/linux-2.6.git>.
> 
> Ben.
> 

--
Ben Hutchings
Life is what happens to you while you're busy making other plans.
   - John Lennon


RE: Basic question on debian kernel versions

2012-05-11 Thread Sarveshwar.Bandi
Ben,
 I do not find the wheezy branch in the repo 
(<http://anonscm.debian.org/git/kernel/linux-2.6.git>.). Did i miss anything!

sbandi@sbandi:~/debian-7.0/linux-2.6$ git branch -a
* master
  remotes/origin/HEAD -> origin/master
  remotes/origin/debian-trunk
  remotes/origin/etch
  remotes/origin/etchnhalf
  remotes/origin/lenny
  remotes/origin/linux-2.6.32-drm33
  remotes/origin/master
  remotes/origin/squeeze

Thanks,
Sarvesh

From: Ben Hutchings [b...@decadent.org.uk]
Sent: Thursday, May 10, 2012 7:30 PM
To: Bandi,Sarveshwar
Cc: u.kleine-koe...@pengutronix.de; debian-kernel@lists.debian.org
Subject: RE: Basic question on debian kernel versions

On Thu, 2012-05-10 at 04:17 -0700, sarveshwar.ba...@emulex.com wrote:
> Uwe,
>   I am able to access the http site and able to ping it too.
>
> Also, what is the way to get linux-3.2 rc sources that are under development.
> apt-get source linux-2.6 gives me sources of linux 2.6.32.
>
> I am trying to figure out how to generate patches for linux-3.2 debian
> sources. All instructions that
> I have come across only talk about linux-2.6.32.

They're both in svn and (occasionally) converted to git.

Our patched Linux 3.2 can be found on the 'wheezy' branch in the git
repository I mentioned.

Ben.

--
Ben Hutchings
Life is what happens to you while you're busy making other plans.
   - John Lennon


--
To UNSUBSCRIBE, email to debian-kernel-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/b411ec5497e7bf439cd9ba21ceac8cb80d16ed3...@exmail.ad.emulex.com



Re: Basic question on debian kernel versions

2012-05-10 Thread Ben Hutchings
On Thu, 2012-05-10 at 14:58 +0100, Ben Hutchings wrote:
> On Thu, 2012-05-10 at 13:06 +0200, Uwe Kleine-König wrote:
> > On Thu, May 10, 2012 at 03:37:38AM -0700, sarveshwar.ba...@emulex.com wrote:
> > > I get a connection timed out.
> > > 
> > > root@debian:~#  svn co 
> > > svn://anonscm.debian.org/svn/kernel/dists/trunk/linux-2.6
> > > svn: Can't connect to host 'anonscm.debian.org': Connection timed out
> > > root@debian:~# ping anonscm.debian.org
> > > PING anonscm.debian.org (217.196.43.132) 56(84) bytes of data.
> > > 64 bytes from wagner.debian.org (217.196.43.132): icmp_req=1 ttl=37 
> > > time=168 ms
> > > 64 bytes from wagner.debian.org (217.196.43.132): icmp_req=2 ttl=37 
> > > time=165 ms
> > > ^C
> > > --- anonscm.debian.org ping statistics ---
> > > 2 packets transmitted, 2 received, 0% packet loss, time 1001ms
> > > rtt min/avg/max/mdev = 165.589/166.816/168.043/1.227 ms
> > Still works for me, maybe you're behind a firewall blocking svn:// ?
> > 
> > Does accessing http://anonscm.debian.org/ work for you (with a browser,
> > not svn). I don't know if there is http access available for the svn
> > repositories?!
> 
> Alioth does not support svn over HTTP, or at least it's not listed at
> .
> 
> Sarveshwar, you will need to find some way round the proxy, or use the

That should be 'find some way round the firewall, or configure svn to
use a suitable proxy'.

Ben.

> alternate git repository which *is* available over HTTP at
> .
> 
> Ben.
> 

-- 
Ben Hutchings
Life is what happens to you while you're busy making other plans.
   - John Lennon


signature.asc
Description: This is a digitally signed message part


RE: Basic question on debian kernel versions

2012-05-10 Thread Ben Hutchings
On Thu, 2012-05-10 at 04:17 -0700, sarveshwar.ba...@emulex.com wrote:
> Uwe,
>   I am able to access the http site and able to ping it too.
> 
> Also, what is the way to get linux-3.2 rc sources that are under development. 
> apt-get source linux-2.6 gives me sources of linux 2.6.32. 
> 
> I am trying to figure out how to generate patches for linux-3.2 debian
> sources. All instructions that
> I have come across only talk about linux-2.6.32.

They're both in svn and (occasionally) converted to git.

Our patched Linux 3.2 can be found on the 'wheezy' branch in the git
repository I mentioned.

Ben.

-- 
Ben Hutchings
Life is what happens to you while you're busy making other plans.
   - John Lennon


signature.asc
Description: This is a digitally signed message part


Re: Basic question on debian kernel versions

2012-05-10 Thread Ben Hutchings
On Thu, 2012-05-10 at 13:06 +0200, Uwe Kleine-König wrote:
> On Thu, May 10, 2012 at 03:37:38AM -0700, sarveshwar.ba...@emulex.com wrote:
> > I get a connection timed out.
> > 
> > root@debian:~#  svn co 
> > svn://anonscm.debian.org/svn/kernel/dists/trunk/linux-2.6
> > svn: Can't connect to host 'anonscm.debian.org': Connection timed out
> > root@debian:~# ping anonscm.debian.org
> > PING anonscm.debian.org (217.196.43.132) 56(84) bytes of data.
> > 64 bytes from wagner.debian.org (217.196.43.132): icmp_req=1 ttl=37 
> > time=168 ms
> > 64 bytes from wagner.debian.org (217.196.43.132): icmp_req=2 ttl=37 
> > time=165 ms
> > ^C
> > --- anonscm.debian.org ping statistics ---
> > 2 packets transmitted, 2 received, 0% packet loss, time 1001ms
> > rtt min/avg/max/mdev = 165.589/166.816/168.043/1.227 ms
> Still works for me, maybe you're behind a firewall blocking svn:// ?
> 
> Does accessing http://anonscm.debian.org/ work for you (with a browser,
> not svn). I don't know if there is http access available for the svn
> repositories?!

Alioth does not support svn over HTTP, or at least it's not listed at
.

Sarveshwar, you will need to find some way round the proxy, or use the
alternate git repository which *is* available over HTTP at
.

Ben.

-- 
Ben Hutchings
Life is what happens to you while you're busy making other plans.
   - John Lennon


signature.asc
Description: This is a digitally signed message part


RE: Basic question on debian kernel versions

2012-05-10 Thread Sarveshwar.Bandi
Uwe,
  I am able to access the http site and able to ping it too.

Also, what is the way to get linux-3.2 rc sources that are under development. 
apt-get source linux-2.6 gives me sources of linux 2.6.32. 

I am trying to figure out how to generate patches for linux-3.2 debian sources. 
All instructions that
I have come across only talk about linux-2.6.32.

Thanks,
Sarvesh

-Original Message-
From: Uwe Kleine-König [mailto:u.kleine-koe...@pengutronix.de] 
Sent: Thursday, May 10, 2012 4:36 PM
To: Bandi,Sarveshwar
Cc: b...@decadent.org.uk; debian-kernel@lists.debian.org
Subject: Re: Basic question on debian kernel versions

On Thu, May 10, 2012 at 03:37:38AM -0700, sarveshwar.ba...@emulex.com wrote:
> I get a connection timed out.
> 
> root@debian:~#  svn co 
> svn://anonscm.debian.org/svn/kernel/dists/trunk/linux-2.6
> svn: Can't connect to host 'anonscm.debian.org': Connection timed out 
> root@debian:~# ping anonscm.debian.org PING anonscm.debian.org 
> (217.196.43.132) 56(84) bytes of data.
> 64 bytes from wagner.debian.org (217.196.43.132): icmp_req=1 ttl=37 
> time=168 ms
> 64 bytes from wagner.debian.org (217.196.43.132): icmp_req=2 ttl=37 
> time=165 ms ^C
> --- anonscm.debian.org ping statistics ---
> 2 packets transmitted, 2 received, 0% packet loss, time 1001ms rtt 
> min/avg/max/mdev = 165.589/166.816/168.043/1.227 ms
Still works for me, maybe you're behind a firewall blocking svn:// ?

Does accessing http://anonscm.debian.org/ work for you (with a browser, not 
svn). I don't know if there is http access available for the svn repositories?!

Best regards
Uwe

-- 
Pengutronix e.K.   | Uwe Kleine-König|
Industrial Linux Solutions | http://www.pengutronix.de/  |


--
To UNSUBSCRIBE, email to debian-kernel-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/b411ec5497e7bf439cd9ba21ceac8cb80d16d36...@exmail.ad.emulex.com



Re: Basic question on debian kernel versions

2012-05-10 Thread Uwe Kleine-König
On Thu, May 10, 2012 at 03:37:38AM -0700, sarveshwar.ba...@emulex.com wrote:
> I get a connection timed out.
> 
> root@debian:~#  svn co 
> svn://anonscm.debian.org/svn/kernel/dists/trunk/linux-2.6
> svn: Can't connect to host 'anonscm.debian.org': Connection timed out
> root@debian:~# ping anonscm.debian.org
> PING anonscm.debian.org (217.196.43.132) 56(84) bytes of data.
> 64 bytes from wagner.debian.org (217.196.43.132): icmp_req=1 ttl=37 time=168 
> ms
> 64 bytes from wagner.debian.org (217.196.43.132): icmp_req=2 ttl=37 time=165 
> ms
> ^C
> --- anonscm.debian.org ping statistics ---
> 2 packets transmitted, 2 received, 0% packet loss, time 1001ms
> rtt min/avg/max/mdev = 165.589/166.816/168.043/1.227 ms
Still works for me, maybe you're behind a firewall blocking svn:// ?

Does accessing http://anonscm.debian.org/ work for you (with a browser,
not svn). I don't know if there is http access available for the svn
repositories?!

Best regards
Uwe

-- 
Pengutronix e.K.   | Uwe Kleine-König|
Industrial Linux Solutions | http://www.pengutronix.de/  |


-- 
To UNSUBSCRIBE, email to debian-kernel-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20120510110615.gf31...@pengutronix.de



RE: Basic question on debian kernel versions

2012-05-10 Thread Sarveshwar.Bandi
I get a connection timed out.

root@debian:~#  svn co svn://anonscm.debian.org/svn/kernel/dists/trunk/linux-2.6
svn: Can't connect to host 'anonscm.debian.org': Connection timed out
root@debian:~# ping anonscm.debian.org
PING anonscm.debian.org (217.196.43.132) 56(84) bytes of data.
64 bytes from wagner.debian.org (217.196.43.132): icmp_req=1 ttl=37 time=168 ms
64 bytes from wagner.debian.org (217.196.43.132): icmp_req=2 ttl=37 time=165 ms
^C
--- anonscm.debian.org ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 165.589/166.816/168.043/1.227 ms


-Original Message-
From: Uwe Kleine-König [mailto:u.kleine-koe...@pengutronix.de] 
Sent: Wednesday, May 09, 2012 11:22 PM
To: Bandi,Sarveshwar
Cc: b...@decadent.org.uk; debian-kernel@lists.debian.org
Subject: Re: Basic question on debian kernel versions

On Wed, May 09, 2012 at 09:09:01AM -0700, sarveshwar.ba...@emulex.com wrote:
> Ben,
>   Was trying to get the latest debian kernel sources for 3.2.15-1.  In the 
> link you provided, the following step:
> svn co svn://anonscm.debian.org/svn/kernel/dists/sid/linux-2.6
What doesn't work exactly. The command works for me.

Best regards
Uwe

-- 
Pengutronix e.K.   | Uwe Kleine-König|
Industrial Linux Solutions | http://www.pengutronix.de/  |


--
To UNSUBSCRIBE, email to debian-kernel-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/b411ec5497e7bf439cd9ba21ceac8cb80d16d36...@exmail.ad.emulex.com



Re: Basic question on debian kernel versions

2012-05-09 Thread Uwe Kleine-König
On Wed, May 09, 2012 at 09:09:01AM -0700, sarveshwar.ba...@emulex.com wrote:
> Ben,
>   Was trying to get the latest debian kernel sources for 3.2.15-1.  In the 
> link you provided, the following step:
> svn co svn://anonscm.debian.org/svn/kernel/dists/sid/linux-2.6
What doesn't work exactly. The command works for me.

Best regards
Uwe

-- 
Pengutronix e.K.   | Uwe Kleine-König|
Industrial Linux Solutions | http://www.pengutronix.de/  |


-- 
To UNSUBSCRIBE, email to debian-kernel-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20120509175201.gc31...@pengutronix.de



RE: Basic question on debian kernel versions

2012-05-09 Thread Sarveshwar.Bandi
Ben,
  Was trying to get the latest debian kernel sources for 3.2.15-1.  In the link 
you provided, the following step:
svn co svn://anonscm.debian.org/svn/kernel/dists/sid/linux-2.6

does not seem to work. Is this the only way to get the sources? Am I missing 
something?

Thanks,
Sarvesh

-Original Message-
From: Ben Hutchings [mailto:b...@decadent.org.uk] 
Sent: Friday, April 20, 2012 7:14 AM
To: Bandi,Sarveshwar
Cc: Debian kernel maintainers
Subject: RE: Basic question on debian kernel versions

On Thu, 2012-04-19 at 00:55 -0700, sarveshwar.ba...@emulex.com wrote:
> Ben,
>  Thanks that clarifies a lot. 
> 
> I do intend to provide updates to driver. Some quick questions. I know 
> need to figure this myself but am running round In circles.
> - Can you give me a pointer to latest debian kernel tree? I assume I 
> will be able figure out the latest commit id that was taken for debian 
> from that.

Depending on which form you prefer to work with, you can use:

1. A git repository containing branches tracking each of the releases/suites.  
This is *not* the working repository (that's option 2) and is not always 
up-to-date, but may be preferable as a way to view and prepare patches:
   http://anonscm.debian.org/gitweb/?p=kernel/linux-2.6.git

2. The source package 'linux-2.6' contains upstream source and all the patches 
we apply to it.  You can check out the development branch for each 
release/suite with Subversion:
   
http://kernel-handbook.alioth.debian.org/ch-common-tasks.html#s-common-official-vcs

3. The package 'linux-source-2.6.32' or 'linux-source-3.2' (depending on which 
release you are targetting) contains the source with all Debian patches applied:
   
http://kernel-handbook.alioth.debian.org/ch-common-tasks.html#s-common-getting

> - Is it sufficient to give you commit id (from net-next) that need to 
> be taken into debian or do I need to give patches Against the latest 
> tree?

If the driver source in net-next can just be dropped into the older kernel 
version and still work, then the commit ID is probably OK.  But very often that 
isn't the case due to API changes (and I can't believe it's true for Debian 
6.0, i.e. Linux 2.6.32).


I personally prefer to see a patch series with upstream references (as you see 
in the kernel.org stable/longterm branches) and any necessary fix-ups for API 
differences made in those individual patches.

As an example, see my own backport of tg3 at 
<http://anonscm.debian.org/gitweb/?p=kernel/linux-2.6.git;a=shortlog;h=refs/heads/squeeze;pg=1>.

It's OK to backport the addition of new functions, e.g. the series of commits 
'net: Add netdev_alloc_skb_ip_align() helper' up to 'err.h: add helper function 
to simplify pointer error checking' that you can see at 
<http://anonscm.debian.org/gitweb/?p=kernel/linux-2.6.git;a=shortlog;h=refs/heads/squeeze;pg=7>.
But this has to be done with care to avoid affecting other drivers!

> - Whats the process, Do I just post these on this list or do I need to 
> open bugs first? Or just point me to a faq.

Do open a bug, requesting addition of new hardware support.  Start with:

Package: src:linux-2.6
Version: 
Severity: important

If you want Debian 6.0 to be updated then specify the latest version there 
(2.6.32-43); if you only want this to go into Debian 7.0 then specify the 
latest version there (3.2.15-1).

Patches should be sent to the bug address, which will forward to the 
debian-kernel mailing list.  If you end up with a very long patch series it may 
be better to send it as a tarball.  But if there's any thing that needs 
significant changes in the process of backporting, it might still be worth 
sending that individually so it's easier to review.

Ben.

--
Ben Hutchings
This sentence contradicts itself - no actually it doesn't.


RE: Basic question on debian kernel versions

2012-04-19 Thread Ben Hutchings
On Thu, 2012-04-19 at 00:55 -0700, sarveshwar.ba...@emulex.com wrote:
> Ben,
>  Thanks that clarifies a lot. 
> 
> I do intend to provide updates to driver. Some quick questions. I know
> need to figure this myself but am running round
> In circles.
> - Can you give me a pointer to latest debian kernel tree? I assume I
> will be able figure out the latest commit id that was
> taken for debian from that.

Depending on which form you prefer to work with, you can use:

1. A git repository containing branches tracking each of the
releases/suites.  This is *not* the working repository (that's option 2)
and is not always up-to-date, but may be preferable as a way to view and
prepare patches:
   http://anonscm.debian.org/gitweb/?p=kernel/linux-2.6.git

2. The source package 'linux-2.6' contains upstream source and all the
patches we apply to it.  You can check out the development branch for
each release/suite with Subversion:
   
http://kernel-handbook.alioth.debian.org/ch-common-tasks.html#s-common-official-vcs

3. The package 'linux-source-2.6.32' or 'linux-source-3.2' (depending on
which release you are targetting) contains the source with all Debian
patches applied:
   
http://kernel-handbook.alioth.debian.org/ch-common-tasks.html#s-common-getting

> - Is it sufficient to give you commit id (from net-next) that need to
> be taken into debian or do I need to give patches 
> Against the latest tree?

If the driver source in net-next can just be dropped into the older
kernel version and still work, then the commit ID is probably OK.  But
very often that isn't the case due to API changes (and I can't believe
it's true for Debian 6.0, i.e. Linux 2.6.32).

I personally prefer to see a patch series with upstream references (as
you see in the kernel.org stable/longterm branches) and any necessary
fix-ups for API differences made in those individual patches.

As an example, see my own backport of tg3 at
.

It's OK to backport the addition of new functions, e.g. the series of
commits 'net: Add netdev_alloc_skb_ip_align() helper' up to 'err.h: add
helper function to simplify pointer error checking' that you can see at
.
But this has to be done with care to avoid affecting other drivers!

> - Whats the process, Do I just post these on this list or do I need to
> open bugs first? Or just point me to a faq.

Do open a bug, requesting addition of new hardware support.  Start with:

Package: src:linux-2.6
Version: 
Severity: important

If you want Debian 6.0 to be updated then specify the latest version
there (2.6.32-43); if you only want this to go into Debian 7.0 then
specify the latest version there (3.2.15-1).

Patches should be sent to the bug address, which will forward to the
debian-kernel mailing list.  If you end up with a very long patch series
it may be better to send it as a tarball.  But if there's any thing that
needs significant changes in the process of backporting, it might still
be worth sending that individually so it's easier to review.

Ben.

-- 
Ben Hutchings
This sentence contradicts itself - no actually it doesn't.


signature.asc
Description: This is a digitally signed message part


RE: Basic question on debian kernel versions

2012-04-18 Thread Ben Hutchings
On Wed, 2012-04-18 at 08:33 -0700, sarveshwar.ba...@emulex.com wrote:
> Well. I have tried everything possible to avoid updates. But no matter
> which CD I install from I always land up in same version of kernel
> (6.0.4).

'6.0.4' is the distribution version, but presumably you also get the
latest kernel package version from stable-security.

> The alternate way is for me to get linux-kernel source package for the
> version I need to use and re-compile the kernel and build the driver
> against it.

You can download and install old versions of packages from
.

> But what is the best way to know the which is kernel source package
> for given version of debian?

Package updates in point releases are listed in a changelog for the
release, e.g. .

You can work out the original package version for a release by looking
down the changelog for the current package in stable to the newest entry
for which the distribution is 'unstable' or 'testing'.  The result is
version 2.6.32-30.

All this said, I don't encourage you to make extra effort to support
older point releases.  Debian users are expected to install updates from
each point release and from the security archive, and as you've seen
those are normally installed automatically even if you start an
installation from disc.

Also, I would really appreciate it if you could help us to provide
updated drivers for Emulex hardware in stable updates, so that Debian
users don't need to download and install them separately.  These would
have to be based on changes that are already in mainline Linux.

Ben.

-- 
Ben Hutchings
This sentence contradicts itself - no actually it doesn't.


signature.asc
Description: This is a digitally signed message part


RE: Basic question on debian kernel versions

2012-04-18 Thread Sarveshwar.Bandi
Well. I have tried everything possible to avoid updates. But no matter which CD 
I install from I always land up in same version of kernel (6.0.4). The 
alternate way is for me to get linux-kernel source package for the version I 
need to use and re-compile the kernel and build the driver against it.

But what is the best way to know the which is kernel source package for given 
version of debian?

Thanks,
Sarvesh

-Original Message-
From: Ben Hutchings [mailto:b...@decadent.org.uk] 
Sent: Wednesday, April 18, 2012 7:54 PM
To: debian-kernel@lists.debian.org
Subject: RE: Basic question on debian kernel versions

On Wed, 2012-04-18 at 07:13 -0700, sarveshwar.ba...@emulex.com wrote:
> I installed  linux headers in both my installations (one of which I 
> installed using 6.0.0 cd and other using 6.0.4 cd)  using apt-get 
> install and  dpkg --list shows  same output on both the systems:
> root@debian:~# dpkg --list |grep headers
> ii  linux-headers-2.6.32-5-686   2.6.32-41squeeze2 
> Header files for Linux 2.6.32-5-686
> ii  linux-headers-2.6.32-5-common2.6.32-41squeeze2 
> Common header files for Linux 2.6.32-5

This is because the installer automatically installs updates by default.

> When I build driver against the two versions  the modinfo output is 
> identical.

Yes, because you used exactly the same package versions.  If you really want to 
test Debian 6.0.0, you have to tell the installer not to install updates.

> So I am back to the question:
> How do I know which driver was built for which version of debian?

Unfortunately, I don't think there is an obvious way to distinguish modules 
built against different versions of the same linux-headers- package.

> And even more basic question, how do I know which version of kernel I 
> am running now?

cat /proc/version

Ben.

--
Ben Hutchings
This sentence contradicts itself - no actually it doesn't.


RE: Basic question on debian kernel versions

2012-04-18 Thread Ben Hutchings
On Wed, 2012-04-18 at 07:13 -0700, sarveshwar.ba...@emulex.com wrote:
> I installed  linux headers in both my installations (one of which I
> installed using 6.0.0 cd and other using 6.0.4 cd)  using apt-get
> install and  dpkg --list shows  same output on both the systems:
> root@debian:~# dpkg --list |grep headers
> ii  linux-headers-2.6.32-5-686   2.6.32-41squeeze2 
> Header files for Linux 2.6.32-5-686
> ii  linux-headers-2.6.32-5-common2.6.32-41squeeze2 
> Common header files for Linux 2.6.32-5

This is because the installer automatically installs updates by default.

> When I build driver against the two versions  the modinfo output is
> identical.

Yes, because you used exactly the same package versions.  If you really
want to test Debian 6.0.0, you have to tell the installer not to install
updates.

> So I am back to the question:
> How do I know which driver was built for which version of debian?

Unfortunately, I don't think there is an obvious way to distinguish
modules built against different versions of the same
linux-headers- package.

> And even more basic question, how do I know which version of kernel I
> am running now?

cat /proc/version

Ben.

-- 
Ben Hutchings
This sentence contradicts itself - no actually it doesn't.


signature.asc
Description: This is a digitally signed message part


RE: Basic question on debian kernel versions

2012-04-18 Thread Sarveshwar.Bandi
I installed  linux headers in both my installations (one of which I installed 
using 6.0.0 cd and other using 6.0.4 cd)  using apt-get install and  dpkg 
--list shows  same output on both the systems:
root@debian:~# dpkg --list |grep headers
ii  linux-headers-2.6.32-5-686   2.6.32-41squeeze2 
Header files for Linux 2.6.32-5-686
ii  linux-headers-2.6.32-5-common2.6.32-41squeeze2 
Common header files for Linux 2.6.32-5

When I build driver against the two versions  the modinfo output is identical. 
So I am back to the question:
How do I know which driver was built for which version of debian? And even more 
basic question, how do I know which version of kernel I am running now?

Thanks,
Sarvesh

-Original Message-
From: Ben Hutchings [mailto:b...@decadent.org.uk]
Sent: Wednesday, April 18, 2012 7:11 PM
To: debian-kernel@lists.debian.org
Subject: RE: Basic question on debian kernel versions

On Wed, 2012-04-18 at 06:32 -0700, sarveshwar.ba...@emulex.com wrote:
> Then, give that 6.0.0, 6.03  and 6.0.4, since uname -a output is the 
> same, can I assume that kernel image is the same

No, there are new drivers and bug fixes.  Some of the bug fixes will affect 
modules.

> and building driver for any of these debian version will give me the 
> same driver binary?

A driver module built using an older version of linux-headers- should 
run against a newer version of linux-image-.  But the reverse is not 
generally true.  Also, there have been cases where we have accidentally broken 
compatibility.

Ben.

--
Ben Hutchings
This sentence contradicts itself - no actually it doesn't.


RE: Basic question on debian kernel versions

2012-04-18 Thread Ben Hutchings
On Wed, 2012-04-18 at 06:32 -0700, sarveshwar.ba...@emulex.com wrote:
> Then, give that 6.0.0, 6.03  and 6.0.4, since uname -a output is the
> same, can I assume that kernel image is the same

No, there are new drivers and bug fixes.  Some of the bug fixes will
affect modules.

> and building driver for any of these debian version will give me the
> same driver binary?

A driver module built using an older version of linux-headers-
should run against a newer version of linux-image-.  But the
reverse is not generally true.  Also, there have been cases where we
have accidentally broken compatibility.

Ben.

-- 
Ben Hutchings
This sentence contradicts itself - no actually it doesn't.


signature.asc
Description: This is a digitally signed message part


RE: Basic question on debian kernel versions

2012-04-18 Thread Sarveshwar.Bandi
Then, give that 6.0.0, 6.03  and 6.0.4, since uname -a output is the same, can 
I assume that kernel image is the same and building driver for any of these 
debian version will give me the same driver binary?


-Original Message-
From: Uwe Kleine-König [mailto:u.kleine-koe...@pengutronix.de] 
Sent: Wednesday, April 18, 2012 12:45 PM
To: Bandi,Sarveshwar
Cc: debian-kernel@lists.debian.org
Subject: Re: Basic question on debian kernel versions

On Tue, Apr 17, 2012 at 11:56:00PM -0700, sarveshwar.ba...@emulex.com wrote:
> Hi,
>   I have tried installing different version of debain kernels from CDs 
> in the archive. For ex: I tried Debian 6.0.0, 6.0.3, 6.0.4. After 
> installation all installations show /etc/debian_version as 6.0.4 and 
> the same output for uname -r (2.6.32-5-686). How does one 
> differentiate which version of debian kernel is installed?
> 
> If all the version of debian installation have same value for uname 
> -a, then will driver compiled for 6.0.0, load on 6.0.3 as is?
> 
> I am sure I am missing something basic here.
No you don't. All updates to the kernel are checked for binary 
incompatibilities. If it's possible to maintain compatibility it's done.
Otherwise the abi version (the 5 in 2.6.32-5-686) is bumped and then you need 
to recompile your external modules.

Best regards
Uwe

-- 
Pengutronix e.K.   | Uwe Kleine-König|
Industrial Linux Solutions | http://www.pengutronix.de/  |


--
To UNSUBSCRIBE, email to debian-kernel-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/b411ec5497e7bf439cd9ba21ceac8cb80b4936e...@exmail.ad.emulex.com



Re: Basic question on debian kernel versions

2012-04-18 Thread Uwe Kleine-König
On Tue, Apr 17, 2012 at 11:56:00PM -0700, sarveshwar.ba...@emulex.com wrote:
> Hi,
>   I have tried installing different version of debain kernels from CDs
> in the archive. For ex: I tried Debian 6.0.0, 6.0.3, 6.0.4. After
> installation all installations show /etc/debian_version as 6.0.4 and
> the same output for uname -r (2.6.32-5-686). How does one
> differentiate which version of debian kernel is installed?
> 
> If all the version of debian installation have same value for uname
> -a, then will driver compiled for 6.0.0, load on 6.0.3 as is?
> 
> I am sure I am missing something basic here.
No you don't. All updates to the kernel are checked for binary
incompatibilities. If it's possible to maintain compatibility it's done.
Otherwise the abi version (the 5 in 2.6.32-5-686) is bumped and then you
need to recompile your external modules.

Best regards
Uwe

-- 
Pengutronix e.K.   | Uwe Kleine-König|
Industrial Linux Solutions | http://www.pengutronix.de/  |


-- 
To UNSUBSCRIBE, email to debian-kernel-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20120418071436.gn15...@pengutronix.de



RE: Basic question on debian kernel versions

2012-04-17 Thread Sarveshwar.Bandi
Hi,
  I have tried installing different version of debain kernels from CDs in the 
archive. For ex: I tried Debian 6.0.0, 6.0.3, 6.0.4. After installation all 
installations show /etc/debian_version as 6.0.4 and the same output for uname 
-r (2.6.32-5-686). How does one differentiate which version of debian kernel is 
installed?

If all the version of debian installation have same value for uname -a, then 
will driver compiled for 6.0.0, load on 6.0.3 as is?

I am sure I am missing something basic here.

Thanks,
Sarvesh