/srv/irclogs.ubuntu.com/2010/02/07/#ubuntu-arm.txt

persialool: I picked Recommends because I thought most people *should* builde for armel :)  Did you manage to fix the issue with the conflicting binfmt-misc handlers?17:51
loolpersia: I think so18:20
loolpersia: The issue was one present before the rename, but becoming serious after the rename18:20
persiaAha.  I'm just installing the latest version, and will confirm then :)18:21
loolpersia: The handler was registered on postinst/configure and unregistered in prerm/remove instead of postinst/install prerm/remove or postinst/configure and prerm/upgrade18:21
lool(Hope I'm making sense)18:21
persiaRight.  That would explain all sorts of things :)  Sometimes I wish maintainer scripts weren't quite so complex, because more people might get them right the first time :)18:22
loolSadly, I can't retrofix the qemu-arm-static packages, but I've added qemu-arm-static.postinst and qemu-kvm-extras-static.postinst configure snippets to remove the old name18:22
loolI didn't really test an old qemu-arm-static -> new world full upgrade though; if you do that, I'd love to hear the results18:23
persiaI can't easily test the full upgrade, but I may be able to figure out a way.18:23
persiaI can test broken -> fixed.18:23
persiaWould a karmic -> lucid upgrade do it for the full upgrade case?18:24
loolYes18:25
loolOr simply, removing everything, manually installing an old lucid qemu-arm-static and upgrading18:25
persiaThat's fairly trivial to do then: I can just install the karmic qemu-arm-static in a lucid chroot and dist-upgrade.18:26
persiaSeparately, I was thinking: would it make sense to use build-cross-chroot rather than build-arm-chroot, and then try to encourage enabling other architectures?18:27
persiaI hear qemu powerpc is getting there, although sparc and ia64 probably need some work.18:27
persiaMy thought was that it would be nifty if developers could work on most architectures for most purposes from an amd64 install.18:28
loolpersia: Ack, I don't like "-arm-" in "build-arm-chroot"18:28
loolI think qemu-debootstrap would be a better name for it18:28
persiaI'd be happy with that name.18:29
persiaNote that it's not currently command-line compatible with debootstrap.  Specifically, `debootstrap --arch armel` works, but `build-arm-chroot --arch armel` doesn't.18:29
persiaBoth also work with "--arch=armel", but that's a separate case :)18:30
persiaI've just upgraded from a broken system, and I still get "sudo: must be setuid root".18:30
loolor qemu-debootstrap-helper, but I would call it qemu-debootstrap and fix it to be compatible18:30
loolpersia: Oh sudo is unrelated18:30
persiaIf you would, that would be great.18:30
persiaUm, sudo is the problem I had, which ogra convinced me was related to the binfmt issue.18:31
persiaWhat's the sudo issue?18:31
loolIf you try running sudo with binfmt, the kernel will run qemu-arm-static which doesn't have the SUID bit set18:31
loolIt can't work18:31
loolpersia: Check whether you have one and only one arm entry in /var/lib/binfmt* and /proc/sys/filesystems/binfmt*/18:32
loolThe entry should be qemu-arm18:32
lool/var/lib/binfmts/qemu-arm and /proc/sys/fs/binfmt_misc/qemu-arm18:32
persiaI do only have one of those.18:33
loolYou have both and these are named qemu-arm though?18:34
loolIf you do, then your system is correctly configured18:35
persiaRight, but I still can't run sudo in my chroot, which was the original issue that brought the other to my attention.18:35
persiaAny ideas?18:35
loolpersia: I don't think that can work18:36
loolpersia: Just avoid using sudo18:36
loolchroot as root and continue running stuff as root18:36
persiaWhy can't it work?  Works for all my other chroots.18:37
loolBecause the kernel runs a single binary for all binaries you run18:37
loolYou could make qemu-arm-static suid root, but that would be a huge security hole18:37
persiaAh, I get it.  I swear it worked on Tuesday, but maybe I did something else.18:38
persiaIt's probably worth noting that in a README somewhere, so people don't file bugs.18:38
loolpersia: You might be able to run sudo as root18:38
persiaThat's probably it.18:39
persiamy chroots were in a very primitive state on Tuesday.18:39
persiaAnyway, I have to head off for a bit.  Thanks a lot for explaining my issue.18:39
loolnp, do feel free to pass the info to ogra   :-)18:39
persiaogra: ^^18:40
* ogra reads it ... i'm just in fuzzy jetlag state 18:40
loolOk, I give up trying to get virtio-pci to work under versatile18:41
loolIt seems versatile has a very specific IRQ handling which might mess this up anyway18:41
ogralool, did andy talk to you ? seems your patch didnt build at all18:49
ografor now i asked him to just change the two config options you mentioned in the bug18:50
loologra: ?18:59
loologra: I talked to apw on #ubuntu-kernel; the kernel certainly built for me, as well as the modules18:59
loolI didn't build .debs though, so there might be some ABI issues18:59
ograhe said it exploded in his face on the first modules it tried to build19:00
ograand said your patch changed more than just the two config options19:00
loologra: Which patch?19:06
loolAnyway, this is out of date, he merged my work AFAIK19:07
ograi think he said you gave him a git tree or something ?19:07
ograwell, he said he didnt when we talked last night before i flew out19:07
ograsince it failed to build19:07
loolI attached a patch to the bug and the first commits of the git tree were to fix the lucid tree and then my patch19:08
loolFollowed by large config updates in a separate patch19:08
loolThat built for me, and he merged it19:08
ograweird, he said it didnt19:08
loolHe then decided to merge the updates in a single patch19:08
loolCheck the tree yourself19:08
loolI certainly saw it merged19:08
ograintresting19:09
ograi only see the binutils.bin fix in the last upload19:10
loolIt's in the git tree, not in the source package19:10
ograright, because it made the package ftbfs according to him19:11
persialool: Maybe it's because I'm in a chroot, but installing karmic qemu-arm-static in my lucid chroot creates double entries for me in /proc/sys/fs/binfmt_misc/*.  dist-upgrading fixes it.19:21
loolpersia: Yes, if you have it in the host, you'll see the entry in the chroot19:26
loolHowever if you add it in the chroot, it wont be visible in the host19:26
loolCan't believe lucid kexec-tools doesn't allow armv7l...19:26
persiaWell, kinda.  That was my experience for /var/lib/bin... but I seem to have the same /proc in and out of the chroot.19:26
ogralool, huh ? we fixed that in jaunty ?19:26
persiaNCommander was saying that kexec() hung his hardware.19:27
* ogra clearly remembers he added a patch to kexec-tools19:27
ograhmm, but that might have been before the disastrous repackaging that lieb did19:27
persiaYou might want to reinvestigate19:28
ograit wont apply anymore, the packaging lieb did isnt even remotely related to the debian packaging19:28
ograhe just took the latest upstream source and ran dh-make on it19:29
persiaCan we just purge dh-make already?19:29
ograand then copied all patches into debian/patches in case someone wants to re-apply (which indeed wouldnt work at all)19:30
ogra(IIRC)19:30
persiaRight.  That deserves an investigation to reclose n bugs.19:30
loolkexec-tools 2.0.1 fixes it though19:31
ogradid you reverse the mess ?19:32
loolI'm just reading the source19:32
loollp:debian/kexec-tools and lp:ubuntu/kexec-tools don't relate at all, yeah19:33
loolhaha I'm the one who uploaded the kexec-tools patch in jaunty19:33
loolactually I uploaded it to unstable19:34
loolhttp://paste.ubuntu.com/371141/19:34
loolI pushed the new upstream release20:13
ogragreat20:13
ograto sad kexec is still broken in all supported kernels20:13
ogra(we tested it last week)20:13
loolHow did it run last week?20:15
ograquit good progress on the specs20:15
ograwe actually managed to get the workitem tracker to show green under the trendline :)20:16
* ogra only has 4 items left in total and only tw in rootstock20:16
ogra*two20:16
ograthe marvell issue was kind of eating the first half of the week though20:17
loolLet me reword my question: how could you test kexec last week since it doesn't run for utsname == armv7l?20:18
ograhmm, ask NCommander :P he did the tests on both arches20:19
ograi only saw it hanging when looking over his sholder20:19
ograi guess he has to retest then tomorrow20:19
ograthanks for pointing that out, i was expecting he had checked that before20:20
ograah ...20:21
* ogra feels relief that jackd gets removed with the most recent upgrade20:21
ograand off to reboot ...20:21
ograhmm, my boot got slower http://people.canonical.com/~ogra/osiris-lucid-20100207-3.png20:26
persiaThat's expected.  Remember that the target is 10 seconds, not 8.20:30
ograwell, my system is usually a few seconds faster than the average HW20:30
loolNew kexec still doesn't take armv7l, odd20:45
loolBah I thought it was in 2.0.1 because Debian had 2.0.1 and had it, but it's not20:48
lool(and upstream had it too)20:48
loolit was committed after 2.0.120:48
ograsmells like another upload :)20:53
loolOk, at least the new kexec crashes instead of refusing to run21:12
loolAfter the last fix, it does *something*21:31
lool"Starting new kernel21:31
persiaThat was the behaviour NCommander reported last week.  At which point it hung.21:31
loolI see 100% CPU consumption from qemu21:32
persiaMatches the previous report :)21:32
looloddly, the versatile .deb build fails for me with /home/lool/qemu-versatile/linux-qemu/drivers/scsi/advansys.c:8352: error: implicit declaration of function 'dma_cache_sync'21:32
loolBut only the debian way21:32
loolwith the upstream make zImage and make modules, it builds21:33
loolI guess it's just not fatal for the upstream build, hmm21:34
loolI filed LP #518567 on the kexec issue22:01
ubot4Launchpad bug 518567 in linux (Ubuntu) (and 1 other project) "armel/versatile: Can't kexec (affects: 1)" [Undecided,New] https://launchpad.net/bugs/51856722:01
loolGot further by using a serial console22:01
loolSent versatile fixes to kernel-team@ list22:19

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