/srv/irclogs.ubuntu.com/2009/11/24/#ubuntu-kernel.txt

=== ikepanhc1 is now known as ikepanhc
=== hzhang__ is now known as panda|phenom
Appiahapw: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/407824 , did you fix get reverted again? :)07:27
ubot3Malone bug 407824 in linux "BOTH Network controller: Intel Corporation Wireless WiFi Link 5100 AND Ethernet controller: Marvell Technology Group Ltd. 88E8040T PCI-E Fast Ethernet Controller (rev 12) FAIL TO LOAD!" [Medium,Fix committed] 07:27
Appiahyour*07:27
akheronI followed the instructions on https://wiki.ubuntu.com/KernelTeam/GitKernelBuild and ended up with a 310MB kernel image deb09:41
akheronis this normal?09:41
akheronI built v2.6.30 and used .config from the ubuntu mainline build of 2.6.3009:44
smbakheron, The effect sounds rather like using a config which has debugging enabled. But if you took the git sources (or apt-get source) and used debuild there would be no need to get the configs from the mainline builds09:48
akheronI cloned sources from git.kernel.org, git checkout v2.6.30, cp /boot/config-2.6.30-020630-generic, make oldconfig, make-kpkg <args>09:51
smbakheron, Our configs normally have the debugging enabled but the build system strips the code before packaging09:51
smb*sigh*09:51
akheronah, ok09:51
akheronI'm debugging a problem where my system doesn't boot09:51
smbI wish the make-kpkg would get eradicated from peoples memory09:51
akheronthis appears somewhere between 2.6.30 and 2.6.3109:51
smb(we should do that from the wiki)09:52
akheronso I'd like to bisect the kernel between these versions09:52
akheronhow to do it properly? :)09:52
smbIf you have the git sources (which contains the configs in debian/configs) a simple "fakeroot debian/rules binary-generic" would do the generic kernel package09:53
akherondoes the ubuntu kernel repo follow linus' tree so that I can bisect?09:54
akheronand another question: can I build the kernel without cleaning it first? The build takes like an hour and I expect that I'll need to build tens of images09:55
smbakheron, Before releasing its a rebase tree, so bisecting gets painful. Its following Linus tree, but maybe a starting point would be to try some of the mainline builds to narrow the thing09:56
akheronfrom what repo are the mainline kernels built?09:56
smbThose are Linus tree sources at -rc points09:57
smbwith the ubuntu config09:57
akheronyes, but where do I get debian/configs?09:57
akheronfor them09:58
smbthe mainline builds are prebuild debs, so for them you would need no configs seperately09:59
amitksmb: +1 about make-kpkg. We should have a bot that tells people that make-kpkg isn't supported09:59
amitkI am helping another guy on #ubuntu-mobile with the same problem10:00
smbFor your own builds you might be able to speed up/shortcut by removing the debian/stamps/build (would need to check the correct name) file10:00
smband then call the build again10:01
akheronsmb: I've tried mainline builds alread10:01
smbor use the ccache package which helps to speed up rebuilds10:01
akheronah ccache is a good idea10:01
akheronmainline 2.6.30 works, mainline 2.6.31 doesn't10:01
akheronso I'd like to build something in between10:01
smbHm, there should be 2.6.31-rc? ones as well, right?10:02
akheronyes10:02
akheron.31-rc1 doesn't work10:02
akheron.30.9 does work10:02
smbso 2.6.31-rc2 is before 2.6.3110:03
akheronyes10:03
akheronbut as -rc1 doesn't work I expect that -rc2 doesn't work either :)10:03
smbCorrect :)10:03
akheronso there are no more mainline builds left to narrow it down10:04
smbSo you would need to check "only" whats in the first rc10:04
smbAnd the stable kernels seem to be ok too10:04
akheron??10:04
smbRight10:04
akheron.30 works, .31 and .32-rc* don't10:04
akheronso there's a breakage somewhere between .30 and .31-rc1 which haven't been fixed10:05
smbWait 2.6.32-rc?10:05
akheronI tested mainline 2.6.32 builds, too, to see if it's already fixed upstream10:05
smbah ok10:05
akheronwith "somewhere between" I mean that there's (hopefully) one commit in linus' tree before which my system boots and after which it doesn't :)10:06
smbOk, yep. So now you really are down to bisect the changes between .30 and 31-rc110:06
akheronyes10:06
akheronand building a kernel with ubuntu configs is my problem10:08
smbright, so I would suggest to take a upstream tree, then copy into that the debian/* and ubuntu/* dirs from the 2.6.31 ubuntu repo and try to bisect that10:09
akheronaltough ubuntu configs may not be needed10:09
akheronok, I'll try that10:10
akheronthanks10:10
smbIf that gives problems, come back and we try to figure out what goes wrong10:10
^arky^Hi ogasawara  can please look at bug 464442 , it caused screen reader users and voice chat users lot of pain 11:10
ubot3Malone bug 464442 in alsa-driver "alsa-util.c: snd_pcm_delay() returned a value that is exceptionally large: -4496252 bytes (-25488 ms)." [Undecided,New] https://launchpad.net/bugs/46444211:10
tgpraveen1is the kernel version for lucid decided? if so what is it?11:31
mpt_greetings11:31
=== apw changed the topic of #ubuntu-kernel to: "Home: https://wiki.ubuntu.com/KernelTeam/ || Lucid Kernel Version: 2.6.32 || Ubuntu Kernel Team Meeting - Next Meeting after UDS - 17:00 UTC"
apwmpt_, hiya11:31
apwtgpraveen1, i've updated the topic11:32
tgpraveen1apw: thanks11:32
mpt_I'm trying to specify the details of a power menu that will include all chargeable items that the kernel knows about11:32
=== apw changed the topic of #ubuntu-kernel to: Home: https://wiki.ubuntu.com/KernelTeam/ || Lucid Kernel Version: 2.6.32 || Ubuntu Kernel Team Meeting - Next Meeting after UDS - 17:00 UTC
mpt_https://wiki.ubuntu.com/SystemIndicators?action=AttachFile&do=get&target=power-menu.jpg11:32
mpt_So what I'd like to know is: When a notebook has multiple battery slots, what kind of identifier does the kernel have for those slots?11:32
mpt_What does the ID look like?11:32
apwi thought that they were like BAT0 BAT111:33
mpt_ah, I see11:34
mpt_e.g. in http://lkml.indiana.edu/hypermail/linux/kernel/0401.0/1155.html11:34
apwseems they also have serial numbers where available11:34
apwapw@dm$ cat /sys/class/power_supply/BAT0/serial_number11:35
apw2099311:35
mpt_Shame it doesn't say something like "front slot" and "back slot" :-) -- then it might be easier for people wanting to know which one to replace11:35
mpt_but I guess even the kernel doesn't know that11:35
apwno you seem to even be able to work out its Li-ion etc11:37
apwbut not where it is11:37
mpt_battery type: JUNGLE BEAST11:38
mpt_ok, thanks apw11:38
apwmpt_, i'll try and not guess what the machine is called if it has a jungle beast battery11:40
apwi note that the mains connector is also mentioned in /sys/class/power_supply ... nice11:41
amitkapw: the power_supply class has existed since .31 I believe11:43
amitkbut battery hotplugging doesn't yet work. damn.11:43
apwamitk, interesting thanks ... it looks like a more sensible way of naming things11:44
apwthough what ADP1 means ...11:44
amitkI just tried to plugin by second battery to see if there is any way to differentiate the two, so anwer mpt_'s question11:44
apwyou presumably get BAT0 and BAT1 and thats it?11:45
amitkwhen I _boot_ with both batteries plugged in, yes.11:46
amitkbut I usually unplug the second one when at home, and hotplugging doesnt work11:46
apwoh poop thats useless11:46
=== mpt_ is now known as mpt
akheronsmb: the build system seems to install modules in /debian/linux-image-2.6.31-16-07a8c6-generic/lib/modules/2.6.31-16-generic/12:50
akheronerr, debian/linux-image-2.6.31-16-07a8c6-generic/lib/modules/2.6.31-16-generic/12:50
akheronaltough they should go to debian/linux-image-2.6.31-16-07a8c6-generic/lib/modules/2.6.31-16-07a8c6-generic/12:51
akheronmy ../.karmic-env has:12:51
akheronLOCAL_ENV_CC="ccache gcc"12:51
akheronAUTOBUILD=112:51
akheronCONCURRENCY_LEVEL=312:51
akheronhmm, actually this might be because AUTOBUILD was not 1 from the beginning...12:53
akheronhttps://help.ubuntu.com/community/Kernel/Compile is outdated as AUTOBUILD et al are not accepted from command line12:54
smbakheron, For the wrong location, there is one option that causes that. Let me check, I always forget the name. The rest of the doc, yes actually the whole thing should be looked over I guess12:58
smbakheron, Hm, it usually is caused by having LOCALVERSION_AUTO being set, but that should not be with the ubuntu configs...13:05
smbLemme try to do what I suggested locally and see what happens13:05
akheronI guess it's because I set AUTOBUILD=1 on the command line, let it build, and saw some checks fail13:06
akheronthen found out that AUTOBUILD=1 has to go to ../.karmic-env and just run debian/rules build-generic again13:07
smbakheron, there should be no need to set anything for your need13:13
akheronoh?13:13
smbconcurrency normally is #cpus and ccache might be used by having /usr/lib/ccache in the path13:13
akheronat least it fails because of missing modules without AUTOBUILD=113:14
smbhm, strange. give me a few mins to see what happens13:15
akheronyou must have quite a farm of distcc hosts to compile it in "a few mins" :)13:16
akheron      read 2664 modules : new(0)  missing(115)13:47
smbakheron, Oh so you need skipabi, not autobuild13:49
akheronskipabi=true ?13:50
smbor was that skipmodules...? too many things13:50
akheron:)13:50
akheronskipmodule13:52
smbprobably both "skipabi=true skipmodule=true" before the binary-generic13:52
smbso "fakeroot debian/rules skipabi=true skipmodule=true binary-generic"13:52
akheronAUTOBUILD=1 sets those and additionally skipdbg=true and abi_suffix=<something13:53
akheron>13:53
akheronah13:53
akherondpkg-gencontrol: error: package linux-image-2.6.31-16-07a8c6-generic not in control info13:53
akherona bad property of abi_suffix :F13:54
smbakheron, Doh, right so thats where the suffix comes from13:54
* smb wonders who used AUTOBUILD last13:55
smbakheron, Sounds like you will need to do a clean at least once to get the control files right "fakeroot debian/rules clean" not the "make clean"13:56
akheronI did that13:56
smbakheron, Have you gotten rid of the AUTOBUILD=1 in the env file?13:59
smbThat will cause the strange suffix to be attached to the version number and the build to fail13:59
akheronyes13:59
akheronerr, no I haven't14:00
akheronbut yes, I agree that I probably should delete it14:00
akheronthe only problem is that then all the debs I create have the same name14:00
akheronthe suffix is derived from git commit id and this is a good thing14:01
smbakheron, for the test you can edit the first line in debian.master/changelog and append something like +bisect12314:01
smbbut that would be manually14:01
akheronthat's true14:01
akheronIt doesn't matter14:01
akheronI'll try that14:02
smbJust to be sure, the same would need to go to debian/changelog (that would normally updated with each clean). So if you do cleans between builds that is not needed14:02
akheronis there a way to do it without cleans between builds?14:07
smbakheron, With somewhat more pain. Like said you need to update both changelogs in step and then remove the stamp file14:08
smbdebian/stamps/stamp-build-generic for the generic build14:09
akheronok14:10
akheronand then hope that all the kernel isn't built from scratch14:10
smbRight, but that depends on how much changes are between the steps. If an important include file was changed you still might end up doing a lot14:11
akheronyes14:14
akheronI'll see that after I manage to complete the first build14:14
mozmcksmb: you said earlier you wish make-kpkg would get eradicated from peoples memory, but as far as I can see, if someone does not get the source from your git there is no other way to build kernel packages.  Or is there another package I'm missing that would give us the ubuntu build system?14:21
smbmozmck, The ubuntu build system for the kernel is just a chroot of the series (which is described in some related wiki docs) and then either clone the git repo and check out a version tag or do an "apt-get source linux-image-xxx-generic"14:22
=== BenC1 is now known as BenC
akheronmozmck: I'm currently building from linus' kernel tree with the ubuntu build system14:24
mozmckso an apt-get source will get it?  I tried that the other day but something was wrong with my setup or something.  Thanks for the info14:24
akheronI only use the build system from ubuntu tree14:24
amitkmozmck: you could also use the source packages for the mainline builds14:24
amitkmozmck: that will give your the ubuntu build system and kernel configuration w/o any of the ubuntu patches to linus' tree14:25
mozmckI got the linux-source package from the repository and built from that using make-kpkg14:25
smbamitk, I would be a bit careful about that. I have seen the kernel-source packages sometimes a bit useless as the miss the configs and some stuff. It could be apw fixed that for the mainline builds but I am not sure14:26
* amitk sobs about make-kpkg14:26
mozmckI don't think the souce from the repository had the debian directory at all.14:26
amitksmb: that is just a bug that needs to be fixed if there is enough demand for it. And apw has fixed it AFAIK14:26
smbThe problem with make-kpkg is that nobody from us uses it and if it works its rather coincidental than expected14:26
BenCmake-kpkg is a horrid bit of overkill14:27
amitkthat is the only way we can tell people to compile a mainline tree w/o using untested tools14:27
amitkhiya BenC 14:27
BenChey amir14:27
BenC*amit14:27
mozmckThe kernel I built works fine on some computers but won't boot on one that has intel 82845G graphics.14:28
smbBenC, Hi214:28
amitkI think debian talked about retiring make-kpkg at plumbers14:28
BenChey smb14:28
mozmckweird thing is that it booted fine from the livecd I made with that same kernel, but after installing it won't boot.14:28
BenCisn't there a "make deb" in the kernel tree?14:28
amitkBenC: it was broken and someone on the debian kernel team pledged to fix it IIRC14:29
smbHave never tried that. And even if, the is too often confusion with the kernel-source package (which is not very usefull imo) and the sources you get with git or apt-get source 14:30
mozmckI used the source and config from 2.6.31-15.50-generic and added an RTAI patch and changed a few config settings.  The generic kernel will boot if I tell it "nomodesetting"14:30
mozmckI'll try building again with the ubuntu build.  Most of the docs I see say to use make-kpkg and to use the kernel-source packages.14:33
rtgmozmck, have you read https://wiki.ubuntu.com/KernelTeam/KernelMaintenance ?14:35
smbWell yes, there are still too many docs referring to that. 14:36
rtgBenC: dude, good to see you online.14:36
BenCrtg: hey, thanks14:36
mozmckhmm, I don't know...  no I don't think so.  Thanks!14:37
smbrtg, It feels we should spent a bit of our plenty time to update some of the other building bits14:38
rtgsmb, I'm not really interested in supporting non-Ubuntu build methods.14:39
smbrtg, I don't want to support then, more saying they are not14:39
rtgsmb, I'm not fully comprehending your intent.14:40
smbrtg, My intend would be to find pages claiming that make-kpkg works and clearly state it does not14:41
rtgsmb, in our wiki? or in someone elses?14:42
smbAt least when it seems to come from our own wiki pages14:42
smbubuntu wiki and one link previously told seems to be even in the KernelTeam space14:42
rtgsounds like a damn good idea to me. when will you have it done?14:42
smbrtg, You know how good we are at finding documents... ;-)14:44
rtgsmb, maybe we can get pgraner to do it in his copious spare time.14:45
* BenC wonders why kernel-package is even in main14:46
smbrtg, Heh, he likely just waits to be asked.14:46
rtgBenC: I think it should have been dropped after dapper.14:46
rtgsmb, I only find 19 instances of 'make-kpkg' in wiki.ubuntu.com14:47
sorendrbd8-source recommends it.14:47
rtgonly one in the kernel team heirarchy14:47
pgranerrtg: go to google and try:  site:wiki.ubuntu.com make-kpkg14:48
pgranerrtg: google is far better at w.u.c than the wiki search engine14:48
_maksmozmck: make deb-pkg14:48
rtgpgraner, again, only 1914:48
pgranerrtg: wow impressive they match14:48
_maksyou need >= 2.6.31 to have most of its bugs fixed mozmck, but it is not yet feature complet (saying it yet misses linux-libc-dev, source and headers packages :)14:49
rtgpgraner, but there are 2 references in _our_ pages. gotta fix that.14:49
pgranerrtg: will be up on Wed, he called and asked if I could wait, the installer had a family issue come up :-/14:57
pgranerrtg: I have to run into town today and get a USB serial cable so I can get to the BIOS to redirect the serial console back to the main on the build box14:57
rtgpgraner, -EWRONGCHAN14:58
pgranerrtg: All my cables are in the travel box enroute to here via FedEx Ground14:58
BenCrtg: could you snag my ssh pub key from launchpad and have an account created on zinc, please?15:02
rtgBenC: it may still be there. lemme check.15:03
BenCrtg: it's not, because mine was an ldap synced canonical account15:03
rtgBenC: right, I thought of taht as soon as I said it.15:03
rtgBenC: rtg@zinc:/home/bcollins. this'll take a bit.15:04
BenCcloning git over http should be a sign of the apocalypse15:04
rtgBenC: use git://kernel.ubuntu.com/ubuntu15:05
amitkBenC: you have a firewall? :-p15:05
BenCah, forgot git:// was setup15:05
BenCamitk: no, it's just plain evil :)15:05
rtgBenC: still want a zinc account?15:05
BenCrtg: yes, please15:06
akheronfor some reason, I get empty LINUX_VERSION_CODE15:50
akheronin include/linux/version.h15:50
akheronsmb: ideas?15:50
smbno immediate ones. and as I got a bit sidetracked I have not started to try the same in parallel. Try to do now15:52
BenCcan someone explain the debian.master thing in karmic kernel source?15:54
akheronI managed to get v2.6.30 to build, but nothing after that15:54
akheronit always fails in a file that tries to use LINUX_VERSION_CODE15:54
bjf__##15:55
bjf__## Ubuntu Kernel Team Meeting - Today @ 17:00 UTC - #ubuntu-meeting15:55
bjf__##      agenda: https://wiki.ubuntu.com/KernelTeam/Meeting15:55
bjf__##15:55
gnarlBenC, debian.master is the common things that go to debian. We used that to make multiple topic trees that rebase simpler15:55
gnarlBenC, More ore less its debian.master you look at. When you do a clean, files get generated in debian15:55
gnarlBenC, So this gets rid of the generated files in git as well. But you always need a clean before build now15:56
BenCso debian/ is completely generated off of debian.master?15:56
gnarlBenC, Mostly. A small debian/rules was needed, but most of the rest, yes15:57
akherongnarl: always need a clean?15:57
gnarlakheron, One time after getting the sources. Oh darn, did I tell you to copy debian.master (completely) as well?15:58
akherondon't know if it was you but someone did15:58
gnarlakheron, The one time clean generates some files (as debian/changelog) and abi files (when needed)15:59
gnarlakheron, me or smb which is mostly the same :)15:59
akheronheh15:59
akheronstill can't get a value for LINUX_VERSION_CODE16:00
akheronI'm basically using debian/, debian.master/ and ubuntu/ from ubuntu-karmic.git16:01
akheronon top of linus' tree and have checked out an arbitrary commit16:01
DamienCassouI propose 50€ to fix a bug with suspend/resume on my macbook (issue #400413)16:03
DamienCassouhttp://www.cofundos.org/project.php?id=17816:03
gnarlakheron, Just started of the same. Just with v2.6.31 instead of a random point. Then changed the version number in debian.master/changelog and did "fakeroot debian/rules clean" followed by "fakeroot debian/rules binary-generic", got one config qustion asked and now it builds16:07
akheronI did this first for v2.6.30, and it built ok16:08
akheronthen after checking out v2.6.31-rc2 it didn't build anymore16:08
akheronnor did an arbitrary commit16:09
gnarlakheron, as bad in time it might be, have you tried a "fakeroot debian/rules clean" in between?16:10
akheronyes16:10
akheronnow I even deleted debian/, debian.master/ and ubuntu/ and copied them all over again16:10
akheronbut still I get an empty LINUX_VERSION_CODE in include/linux/version.h16:10
akheron$ cat debian/build/build-generic/include/linux/version.h 16:11
akheron#define LINUX_VERSION_CODE16:11
akheron#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))16:11
gnarlmaybe give me the sha of the commit in between you tried. When my build here finished I'll try that16:11
akheronv2.6.31-rc216:11
akheronand now I'm at d27eadc7612404b06f99888c02726ab7d5036e0f16:11
akheronbut this is a build system issue, as the #define has been there forever16:11
akheronor is generated there16:12
gnarlok, give me a bit. Some file was, but that define looks like one around for quite a while16:12
gnarlHm, but seems to get generated at some point16:14
akheroncould the changelog mangling be a reason?16:16
gnarlSo it is rather an issue of how doing the build. The whole of debian/build/build-generic is generated as an out of tree build source16:16
akheronif I don't touch debian/changelog it works16:16
gnarlhow do you change it (paste before and after of the first line)16:17
akheronhmm no16:17
gnarland debian.master/changelog is the master file (when trying to avoid clean you would need to change that and copy it to debian/changelog)16:18
akheronnow it generates ok16:18
akheronI'm confused16:18
akherongot no time to debug this anymore today, I'll be back tomorrow16:18
ricklerreis there a reason that kernel.shmmax changed from 256MiB to 32MiB between 2.6.31-14 and -15 ?16:52
ricklerreI can't find it in any changelogs16:53
Kano32SUB_INST checking: sound/drivers/pcsp/snd-pcsp.ko17:19
Kano32SUB_INST installing: /lib/modules/2.6.32-5-generic-pae/kernel/sound/drivers/pcsp/snd-pcsp.ko17:19
Kano32SUB_INST installing: /lib/modules/2.6.32-5-generic-pae//lib/modules/2.6.32-5-generic-pae/kernel/sound/core/snd-pcm.ko17:19
Kano32install: cannot stat `debian/linux-image-2.6.32-5-generic-pae//lib/modules/2.6.32-5-generic-pae//lib/modules/2.6.32-5-generic-pae/kernel/sound/core/snd-pcm.ko': No such file or directory17:19
Kano32why is that doubling the path?17:19
Kano32it worked with generic17:19
bjf__##17:55
bjf__## Ubuntu Kernel Team Meeting - in 5 minutes - #ubuntu-meeting17:55
bjf__##17:55
=== bjf__ is now known as bjf
=== bjf is now known as bjf-afk

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!