/srv/irclogs.ubuntu.com/2010/05/01/#ubuntu-arm.txt

=== gaj is now known as lag
=== lag is now known as jag
=== jag is now known as jagl
=== jagl is now known as lag
=== lag is now known as Guest77381
ogra_cmpclool, bug 572882 FYI10:14
ubot4Launchpad bug 572882 in qemu-kvm (Ubuntu) "qemu-debootstrap does not support --variant=fakechroot (affects: 1)" [Undecided,New] https://launchpad.net/bugs/57288210:14
* ogra_cmpc wonders if we somehow can wrap qemu-arm-static in a fakeroot wrapper inside the chroot if that variant is chosen10:15
ogra_cmpcpreferably without having to change the binfmt handler10:16
loologra_cmpc: I suspect fakeroot and fakechroot set LD_PRELOAD libraries which are not available in the chroot10:33
loolBecause the runtime loader isn't the same on armel and x8610:33
ogra_cmpcyeah10:34
ogra_cmpcwell, its the same binary, differnt link10:34
lool?10:34
ogra_cmpcat kleast the .so version of the loaders are identical10:34
ogra_cmpcld-2.11.1.so10:35
ogra_cmpcon both10:35
looluh10:35
ogra_cmpcbut ld-linux.so.2 on x86 and ld-linux.so.3 on armel as links to that10:35
ogra_cmpcyeah10:35
loologra_cmpc: ldd /usr/lib/libfakeroot/libfakeroot-sysv.so | grep ld-linux10:35
ogra_cmpc/lib/ld-linux.so.2 (0xb7745000)10:36
loolNot sure where you got ld-2.11.1.so, but the loaders have different names10:36
ogra_cmpcogra@osiris:/var/build$ ls lucid-testxx/lib/ld-*10:36
ogra_cmpclucid-testxx/lib/ld-2.11.1.so  lucid-testxx/lib/ld-linux.so.310:36
ogra_cmpcogra@osiris:/var/build$ ls /lib/ld-*10:37
ogra_cmpc/lib/ld-2.11.1.so  /lib/ld-linux.so.210:37
ogra_cmpcthey use the same binary version for the .so10:37
loolld-linux has the ABI name, ld-2.x.so is the implementation10:37
ogra_cmpcah10:38
looldont look at ld-xxx.so, just at what binaries link to10:38
ogra_cmpcsigh, go-home-applet has a hard dep on netbook-launcher10:39
loologra_cmpc: So I personally dont see what one can do here10:39
loologra_cmpc: I'm tempted to wontfix the bug10:39
ogra_cmpci cant install -efl standalone :(10:39
ogra_cmpclool, hmm, i have a bug open for rootstock to be able to run it as non-root10:40
loolbasically, LD_PRELOAD relies on shared libraries, so a static helper wouldn't help you10:40
loologra_cmpc: Yeah, and a spec as well10:40
loologra_cmpc: That would certainly be nice10:40
ogra_cmpcand i'd somehow like to find a way to solve it10:40
loolSure10:41
ogra_cmpcthough since you and hrw|gone seem to concentrate on vm-buildr now i wonder if we cant get that working in there10:41
loolwell I dont think qemu-debootstrap is a piece in the puzzle10:41
loolqemu-debootstrap is just a handy hack which works in some cases, the fakeroot/fakechroot cases push it too far I'm afraid10:41
ogra_cmpcif it should replacde rootstock it seems like a waste of time to do it there10:41
loologra_cmpc: Note that vm-builder requires root as well10:42
ogra_cmpcright10:42
looland calls into debootstrap10:42
ogra_cmpcnot qemu-debootstrap ?10:42
loolno10:42
ogra_cmpcah10:43
loolwell not so far, and hrw's branch reimplements the qemu-debootstrap job10:43
ogra_cmpcthough there is no reason it should need root :)10:43
loolthere are many actually10:43
ogra_cmpcreally ?10:43
loolWell the chown() and chroot() syscalls require root10:43
ogra_cmpcnot if wrapped in fakechroot10:44
loolfakechroot will intercept the calls into libc and all the other entry points which test file ownership10:44
loolso that you dont actually use the safe OS chroot() or chown() calls, but fakechroot's emulation10:45
loolProblem is that fakeroot and/or fakechroots are fighting to keep up to date with the eglibc entry points all the time10:45
ogra_cmpcdoesnt that abstract me enough from the os to be safe ?10:45
ogra_cmpchmm10:46
loolAll of fakeroot, fakechroot, and qemu are fragile emulators and your command-line tries to combine them all10:47
ogra_cmpcindeed10:48
ogra_cmpcsince its the only way to make that usecase work with the current tools10:48
loolqemu-system-arm can be run as non-root and will provide everything within with root rights10:48
loolbut it's dead slow10:48
loologra_cmpc: So overall, I agree it's the right thing to do to aim at not requiring root rights10:49
ogra_cmpcand i cant bootstrap it without root10:49
loolbut I dont think you'll be successfully able to combine these three fragile things10:49
ogra_cmpci thik i can but it would be a gross hack10:49
loolAnother thing which makes it even more fragile on Ubuntu is the fact we build eglibc with -Bsymbolic-funcs10:49
loologra_cmpc: sorry, which use case do you refer to?10:50
ogra_cmpcrunning a rootfs build without requiring root10:50
ogra_cmpcwhich is a requirement nicolas expressed in nice10:50
loologra_cmpc: So I wonder how flexible that requirement is10:52
ogra_cmpchmm, indeed i could switch rootstock back to its original setup without qemu-arm-static10:52
loologra_cmpc: One thing I wish we would allow are running libvirt backed environments, such as LXC with qemu-system-arm10:52
ogra_cmpcthat wouldnt require root since the second stage runs in the VM10:52
loolIt would require permission to access libvirt which runs as root10:53
ogra_cmpcwhy with qemu-system-arm ?10:53
ogra_cmpcand not with -static10:53
loolit wouldn't with qemu-system-arm, I mentionned that one earlier, but it's really slow10:53
loolThere is no doubt that you can do it in qemu-system-arm of course10:53
ogra_cmpcright10:54
* ogra_cmpc thought LXC needs a chroot by default10:54
loolwell it does11:11
loolit's basically a super chroot, a container, which abstracts more than just filenames11:12
ogra_cmpcright, thats how i understood it11:12
ogra_cmpcso qemu-arm-static seemed better suited in my view11:13
loologra_cmpc: It's going to get you there faster, but it's going to provide terrible performance11:17
ogra_cmpcbut i probably dont understand enough about LXC yet to imagine how you integrate the vm kernel with the host kernel in LXC if you use qemu-system-arm11:18
loologra_cmpc: LXC wont allow you to use qemu-system-arm11:19
loolit would be with qemu-arm-static11:19
ogra_cmpcah, then i misunderstood you above11:19
loologra_cmpc: The point of libvirt / lxc is to a) have a slightly better tool than a chroot b) get permission to manage these via libvirt11:20
ogra_cmpcright11:20
ogra_cmpc<lool> ogra_cmpc: One thing I wish we would allow are running libvirt backed environments, such as LXC with qemu-system-arm11:20
ogra_cmpcthat one confused me11:20
loolYeah, that's a typo11:20
loolI meant qemu-arm-static11:20
ogra_cmpcah11:20
loolit would also be great to have qemu-system-arm integrated in libvirt, but that's another story11:21
ogra_cmpcright, then i'm in full agreement, LXC integration is something i wanted to look at next, though i didnt priorize because it still doesnt solve the mono issues11:22
ogra_cmpcwhich was always my main concern with the -static implementation11:23
loolThis one is apparently a though nut to crack11:24
ogra_cmpcyeah11:24
ogra_cmpcperferably to be fixed in mono itself though11:25
ogra_cmpcby using a more sane GC11:25
prpplaguerobclark in the office today?17:57
robclarkhi prpplague, yeah17:58
prpplaguefun fun17:58
robclarkat least for a little bit17:58
robclarkbuilt new kernel, so need to copy it to MMC and boot up board so I can access it remotely ;-)17:58
prpplaguei'm headed into my office later this evening to see if i can find that heat problem17:58
prpplaguerobclark dandy17:59
robclarkok.. keep me posted..  for now I'm working on other board, but same filesystem should work for both17:59
prpplagueyea17:59
=== rsalveti_ is now known as rsalveti
=== NCommand1r is now known as NCommander
=== NCommander is now known as Guest43091
=== Guest43091 is now known as NCommander
sveinseHello. Where and how can I find the builtin compile options in gcc? Is it all in the specs file? -- I'm doing a comparison of the lucid gcc vs. a codesourcery cross compiler.19:56
NCommandersveinse: gcc -dumpspecs20:25
sveinseNCommander: Well, I also thought they were, but I cannot find them there20:26
NCommandersveinse: not sure what to tell you. doko is the toolchain expert20:26
sveinseIf I do "gcc -o foo foo.c -v" I see a option COLLECT_GCC_OPTIONS with the default build options appended. It's the appended list I'm interested in20:27
sveinseThis https://wiki.ubuntu.com/ARM/Thumb2 wiki lists them for Ubuntu, so that's the easy part. However, I don't know what it is for CS GCC...20:28
loolsveinse: Not sure what you mean20:45
loolsveinse: gcc -v outputs how gcc was configured, is this good enough?20:45
sveinselool: Yeah, I'll stick with that for now20:53
DanaGhmm, say, does anyone know what the default setup of the pins on the beagle expansion header are, with the Ubuntu kernel?21:09
sveinseAnyone familiar with the gcc arm options? (lool?) What is the difference between the -mfpu=vfpv3-d16 and neon. AFAICS they are not mutually exclusive to each other21:19
loolsebjan: neon is a superset of -mfpu=vfpv3-d1622:21
loolsebjan: the last fpu= arg wins22:21
loolsebjan: err sorry, wrong nick22:23
loolsveinse: ^22:23
loolsveinse: See the gcc man page22:23
sveinselool: Thanks. I've been looking at the gcc-info docs, but I couldn't find any info about the superset.. Perhaps I need new glasses 8)22:25
DanaGhmm, I've tweaked my thing to boot ubuntu with root on mmc but kernel in nand... but I still need it to use the initramfs.22:27
DanaGHow's that supposed to work, anyway?  where is the initramfs in flash?22:28
DanaGah, it's in the "file system" part.22:28
DanaGCan I point the kernel directly at that memory address as initramfs?22:28
sveinselool: Perhaps more interestingly: I can compile my own apps using -mfpu=neon on lucid, right?22:29
loolsveinse: sure22:59
loolDanaG: The initramfs needs to be unpacked; I dont know whether it can unpack to RAM from flash23:00
DanaGI also wish the fw_printenv command would indent things.23:14
DanaGthat'd make it far easier to read.23:17
DanaG** Unable to read "boot.scr" from mmc 0:1 **23:18
DanaGreading uImage23:18
DanaG** Unable to read "uImage" from mmc 0:1 **23:18
DanaGBooting from nand ...23:18
DanaGwhat's weird about that: there's a line-break after the first two... whereas it should be after the first ONE.23:19
DanaG"unable to read uimage" "booting from nand..."23:19
DanaGIt should be "reading uimage" "unable to read uimage"23:19
DanaGgreat... I just accidentally did "nand erase", thinking it would tell me the usage of that command.23:27

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