/srv/irclogs.ubuntu.com/2010/03/08/#ubuntu-arm.txt

persialool: Needs work on options to handle both --arch powerpc and --arch=powerpc, but looks lovely otherwise.00:21
persiaUgh.  No it doesn't.  Looks bug-for-bug compatible with debootstrap :(00:29
persiaAnyway, you shipped it, and it looks good, and I'll make the tools use it.00:30
persia( well, unless system_arch == amd64 && deb_arch == i386 | lpia )00:31
aaronmorning all01:43
aaroni'm coming again01:46
aaron_liujhow to use the qemu in the rootstock03:32
persiaYou'll have to wait at least 5 hours for good rootstock support.03:34
=== DanaG1 is now known as DanaG
tkmediahi guys i dont see the mini2440 as being a supported board is possible and just untested ?05:47
* persia tries to figure out what a "mini2440" is05:49
persiatkmedia: It might be able to run Jaunty, but nothing newer.05:49
persiaI'd recommend using Debian on that platform.05:49
persia(assuming we're talking about a board with a Samsung S3C2440A ARM920T )05:50
tkmediayes thankyou05:50
persiaGlad to help.  If you decide to run Jaunty, the install may be a bit tricky, but ought work.05:50
tkmediaintrepid actually would be nice05:51
persiaIf you decide to run Debian, the install may be a bit tricky, but you should have continued support for longer (Jaunty runs out of support in October).05:51
persiaIntrepid wasn't compiled for armel.05:51
tkmediak05:51
tkmediawhats the best way to try jaubty05:52
tkmediajuanty05:52
persiaDo you have a working 2.6.28 or newer kernel for the board?05:53
tkmedia2.6.2905:54
persiaThat ought work.05:54
persiaDo you have a local Ubuntu install from which to prep stuff?05:54
persia(if so, which release?)05:54
tkmediai have severla vm's05:54
tkmediaones a 091005:55
persiaOK.  So the easiest way to get a rootfs is probably to run rootstock in the 9.10 environment.05:55
tkmediayep did that05:55
persiaAnd you created a jaunty rootfs?05:55
tkmediahmm let me chk05:56
tkmediai used the example05:56
tkmediawith minal lxde05:56
persiaWhich example?05:57
tkmediatop05:57
persiaFrom which page?05:57
tkmediasec05:57
tkmediasudo rootstock \05:58
tkmedia        --fqdn myhostname \05:58
tkmedia        --login ubuntu \05:58
tkmedia        --password temppwd \05:58
tkmedia        --imagesize 2G \05:58
tkmedia        --seed xubuntu-desktop05:58
tkmediabut changed seed05:58
tkmediato lxde05:58
persiaRight.05:58
tkmedia,gdm05:58
tkmediaso that should work with the .29 kernel right?05:59
persiaYes, but.05:59
persiaYou want to add --dist jaunty06:00
tkmediakernel panic06:00
persiaThe default is --dist karmic06:00
tkmediaahhh06:00
persiaAnd that will generate binaries that include instructions not supported on your chip.06:00
tkmediaok cool06:00
persiaSo try again, and if that doesn't work, please ask again.06:01
tkmediaso thats why i got kernel panic ?06:01
persiaI'm not sure, but possibly.  How did you construct your kernel?06:01
persiaAre you sure your kernel works?06:01
tkmediayes06:01
tkmedialet mtry with dist-juanty06:02
persiaIf you're sure the kernel works, then yeah, I'd blame the rootfs, especially if I expected the rootfs to generate instructions the processor can't handle.06:02
persia"jaunty"06:02
tkmediaand will be back if any more questions06:02
tkmediathanks06:02
persiaGood luck!06:02
tkmediaso just -dist jaunty on the bottom06:03
tkmediaadded06:03
DanaGhmm, weird thing about the rcn-ee images: the ubuntu username isn't uid 1000.06:12
DanaGsame for GID: not 1000.06:12
StevenKDanaG: It isn't on the Live CD either, since that would conflict with installed systems06:49
StevenK(And then you could potientally read other users files)06:49
DanaGThough, with livecd, you can read them anyway, as root.06:52
DanaGAnd the UID was like 1002 (which still could collide), and the image was an installed system.06:52
StevenKRight, but that falls under "You have physical access, so ..."06:53
DanaGOh, and the UID of things like "fuse" were different too.06:55
DanaGI fiddled with the things a bit, and made them match better (along with finding files that were owned by corresponding old UID, and chowning them.06:55
gevzhello06:58
gevzcan somebody help me?07:00
DanaGgo ahead and ask the issue itself, instead of just asking if anyone's around.  =รพ07:02
gevzok, I have PDA Asus A363 can I install ubuntu on this device?07:05
DanaGhmm, you'd have to find out more about what the chip is, for one.07:06
gevzone moment07:07
gevzprocessor type - Intel XScale PXA272 416 MHz07:07
DanaGweird, I see nothing about "asus a363" on the internet.07:08
DanaGer, not "nothing", but not too much.07:08
gevzROM 128 Mb, RAM 64 Mb07:08
DanaG64 megs RAM is tiny.07:08
DanaGhttp://vip.asus.com/forum/view.aspx?id=20070507004052843&board_id=6&model=MyPal+A636&SLanguage=en-us&page=207:09
gevz:) I don`t like a Windows07:11
gevzI want ubuntu ;)07:11
persiagevz: OK.  What device do you have?07:13
gevzA36307:14
persiaASUS MyPal A363?07:15
gevzyes07:15
persiaOK.  According to http://www.handhelds.org/moin/moin.cgi/MyPal you should be able to run linux07:15
persiaOr maybe not07:16
* persia looks harder07:16
persiaReally a A363 and not a A636>07:17
persias/>/?/07:17
persiaI can't find any information about the A363, unfortunately.07:18
persiaThe A626 can run Linux, but only Ubuntu 9.04 and nothing newer.07:18
persiaThe resolution is also low enough the experience may leave something to be desired.07:18
persiaI'd recommend Debian for such a device.07:18
gevzoh...  excuse me, I mistake07:18
gevzA63607:19
persiaWhich is the mistake?07:19
persiaAh, that's better :)07:19
gevznot A36307:19
persiaBut yeah, for the A636 you can run Jaunty if you hack it.07:20
gevzhow i can do it?07:20
persiaI'd recommend starting from http://www.handhelds.org/moin/moin.cgi/A63607:20
persiaOnce you have figured out how to install linux, installing Debian or Ubuntu becomes easier.07:21
gevzok, I do not quite understand where I start07:25
gevzthis link to list of hardware, but I can`t understand how to install linux?07:26
persiaFor devices of that class, one usually has to construct a replacement firmware and proceed with the "firmware upgrade" procedure.07:27
persiaI recommend searching for available documentation carefully, as there is a risk you can make the device unbootable.07:27
persiaI don't see any good guides from a quick search myself.07:28
gevzok, please help me07:28
gevzI have compiled a list of equipment, what next?07:29
persiaI'm really not sure how to help, and don't want to give advice that will make your device useless.07:31
persiaThe next step is to understand how the device boots.07:32
persiaOnce you have that, compile a customised kernel, and get the device to boot that kernel.07:32
persiaOnce you have that, you can start considering what you want for a filesystem.07:32
persiaBut the first two steps are big ones.07:32
gevzWhat image do I download ubuntu?07:34
persiaThere exists no image of Ubuntu that will work on your hardware.07:34
persiaYou can potentially construct something that works, but it's non-trivial.07:34
gevzok, thanx07:34
LaibschI ran "sudo ~/bin/qemu-debootstrap --arch=armel lucid lucid-armel-chroot http://rie:3142/ports.ubuntu.com/ubuntu-ports", but the chroot sources.list file does not contain any entries for package sources.07:35
LaibschIs that to be expected?07:35
persiaYes.07:35
Laibschhm07:36
Laibschplease explain07:36
LaibschI kind of expected the file to be populated, obviously.07:36
persiaI don't believe debootstrap automatically populates that.07:36
persiaSo this is expected behaviour.07:36
Laibschlet's rephrase the question07:37
persiaFrom your ability to run that command, I presume you're using lucid.07:37
LaibschShouldn't debootstrap populate the file?07:37
persiaNo.07:37
Laibschwhy not?07:37
LaibschI run lucid, yes07:37
persiaSo, if you want to create a chroot for use, I'll recommend you use `mk-sbuild --arch=armel lucid`07:38
persiaThis will work, populate everything, and give you a summary of ways to use the chroot.07:38
Laibschlool: asked me to test his scripts07:38
persiaOh, if that's what your're doing, then you're doing it right.07:38
Laibschand I don't mind a few rough edges here or there07:38
Laibschwhy do you think debootstrap ought not to populate sources.list?07:40
persiabecause there's extensive logic in mk-sbuild to populate it after the debootstrap run.07:40
Laibschgevz: you may also have a look at openembedded07:40
gevzwhat this?07:40
Laibschgevz: google should tell you07:41
gevzI have ban on google ;)07:41
persiaor any other search tool, really.07:41
persiaThen use something else :)07:41
loolLaibsch: morning07:41
Laibschgevz: OE is very well suited for your problem of getting a kernel compiled07:42
Laibschlool: good morning07:42
persiaOE is also well suited to that class of device.07:42
Laibschprobably07:42
* Laibsch hopes to lower the bar for ubuntu-arm eventually07:43
LaibschBut I fully support the decision to focus on more powerful devices first07:43
persiaLaibsch: Not first: only.  We expect the market to catch up with us by the time we're sorted.07:43
Laibschyes, I was afraid that may be the case07:44
LaibschThere ain't nobody there to tell me I can't try, though ;-)07:44
LaibschSpeaking of which07:45
loolpersia: (from this night) ARM920T + jaunty isn't going to work I'm afraid07:45
LaibschNow that I have my armv7l chroot, how would I go about trying to compile armv5te software?07:45
Laibschwhat knobs do I need to fiddle with?07:46
persialool: No?  Why not.07:46
persiaLaibsch: You need to change the compiler defaults.07:46
loolLaibsch: debootstrap is now expected to create a binary sources.list, but most people don't need source entries, so it defaults to disabled for these07:46
loolLaibsch: sbuild usually pulls the source by its own means IIRC07:47
loolpersia: ARM920T is v407:47
persialool: Ah.  So it needs to be ARM11+ ?07:47
persiaI thought it was ARM9+07:47
loolI think some ARM9xxs are v5, but rare07:47
loolBest to check the wikipedia page07:47
persiaThat makes sense.  Still, I think anyone with older hardware should be running Debian anyway.07:47
loolyes07:47
persiaIt's frustrating to get stuck not being able to upgrade.07:48
persiaAnyway, sbuild doesn't do anything special with sources.list.  It just presumes that one exists in the chroot.07:48
persiamk-sbuild populates one based on the arguments it gets passed.07:48
Laibschpersia: where are those changed?07:48
persiaLaibsch: Which?07:49
Laibschthe compiler defaults07:50
Laibschso that I can compile for armv5te07:50
persiaNo idea.  I'd guess in the gcc package.07:50
Laibschlool: ?07:51
LaibschI guess the question can be put another way07:52
Laibschwho changed what where to specify that lucid is armv7l?07:52
LaibschI'll just turn that back locally ;-)07:52
loolLaibsch: gcc-4.4 package07:52
loolwe configure it with the defaults07:52
loolLaibsch: I'm not sure you realize how long and complex and heavy that's going to be07:53
loolIt's not impossible, but building gcc-4.4 takes days espcially under qemu or older v5 hardware07:53
Laibschprobably07:53
loolThen you need to bootstrap everything such as eglibc, binutils etc.07:53
LaibschI don't mind days of compilation07:54
loolLaibsch: You intend to build on v5 hardware?07:54
LaibschWhen I started with OE my machine was seriously underpowered (it kind of always was)07:54
LaibschIt took about a week to build the toolchain for me07:54
Laibschand things broke often, so it may have been a month before I had anything working07:54
persiaYou should expect a similar amount of pain.07:54
Laibschnot a big problem07:54
Laibschespecially since I can always use OE-compiled software07:55
LaibschBut I want to move slowly away07:55
ynezzuh?07:55
LaibschI think native compilation makes more sense07:55
loolLaibsch: If you intend to build on v5 hardware, the easiest path for you (in terms of man hours) is probably to build the Ubuntu toolchain source packages after changing their defaults inside a Debian armel chroot07:55
ynezzLaibsch: tired of OE? :p07:55
Laibschynezz: yes07:55
Laibschbut basically I understood that OE is not the right tool going into the future07:56
Laibschfor me07:56
LaibschI'm looking more for a desktop experience on the devices I have07:56
ynezzisn't it more about koen?07:56
LaibschOpenembedded is of course, more embedded07:56
Laibschyes and no07:57
ynezzok07:57
LaibschI sat down and thought about if OE gives me what I need07:57
Laibschand if it's going in the direction I want it to go07:57
LaibschI've been with OE for 5 years and I'd say OE has never managed to put out anything usable for end-users07:58
LaibschI don't see that changing and I'm more of an end-user07:58
LaibschMy hope is ubuntu-arm/debian-arm will eventually be able to output something usable for the ordinary user07:58
tkmedia[02:45] <lool> persia: (from this night) ARM920T + jaunty isn't going to work I'm afraid07:59
persiatkmedia: Sorry about that.  My mistake.07:59
tkmediahmm looks like troouble07:59
tkmedianp07:59
tkmediaKernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(31,3)07:59
persiatkmedia: Should be able to run Debian, I'd think.07:59
tkmediak08:00
ynezzLaibsch: I've started using ubuntu for the same reason, for headless boards with 32MB RAM is OE the best...08:00
gevzCongratulation of all women in this chatroom with 8 March!!!08:00
gevzbye08:00
tkmediahow can you tell which ver arm the device will run08:01
persiahttp://en.wikipedia.org/wiki/ARM_architecture gives some useful guidance08:02
Laibschynezz: yes, I agree that for the seriously low-powered devices and embedded devices, OE still makes a lot of sense.  But that's not necessarily my area of interest.  I hope I can lower the bar enough so that the spitz becomes usable.  Otherwise, I'll have to wait for some sexy hardware (the Palm Pre might be something I like)08:02
persiacooloney: Do you happen to know if our kernels do anything with XN ?08:02
looltkmedia: This is not related to jaunty thouhg08:03
looltkmedia: a binary incomptibility would show up as a sigill, like init being killed08:03
tkmediaok what is a good dev board .... i like the beagle boards but want a 7" lcd like the samsung08:06
persiatkmedia: DO you need 7"?  The NetWalker has 5" and is a complete netbook to boot.08:10
tkmediaprefer a little larger but will look into it thanks08:12
persiaYou could also get one of the 7" USB displays.  As long as you get one that uses DisplayLink it ought to work with lucid+08:13
persia(or if it doesn't, complain to me about it, and I'll try to fix that)08:13
ynezztkmedia: in month or so, there should be LCD+Touchscreen avialable for BB from Tincantools08:13
cooloneypersia: sorry, have no idea about that? what's XN? for fsl-imx51?08:14
tkmediayes I want something that could be wall mounted08:14
Laibschtkmedia: Always Innovating Touchbook may be something to check out08:14
persiacooloney: According to the ARM wikipedia page, XN is a technology available in newer ARM cores that it similar to NX for x86.  I'd like to see us enable that if we can.08:15
persiaLaibsch: Have they solved the shipment delay issue?08:15
Laibschno idea08:15
LaibschI was just visiting their homepage this minute08:15
Laibschwhich is why I mentioned it08:16
Laibschwhat backlog do they have?08:16
tkmediainteresting08:18
tkmedianice form factor08:18
persiaLaibsch: I heard it took a couple months to get delivered.  I'd be glad to be wrong.08:18
DanaGynezz: I believe specialcomp.com also has some sort of touchscreen, though probably low-res.08:19
LaibschWhen I was shopping around for a new netbook last month I had a brief look at it, but was disappointed by 512MB RAM only.  So, I went for a pinetrail atom instead :-P  I'm very happy so far.08:20
ynezzDanaG: that show dog board from tincantools should have 800x480 for price about $14908:20
ynezzDanaG: 7"08:20
ynezzforget to mention that08:20
DanaGwhat's the difference between zippy and zippy2?08:21
persiaynezz: Which driverdoes it use?08:21
DanaGI see no LCD at tincantools.08:21
ynezzpersia: dunno :) ask prpplague on #beagle08:21
DanaGoh yeah, I used these kernels: http://rcn-ee.net/deb/kernel/beagle/08:21
DanaGah, 10/100 in zippy2.08:22
ynezzDanaG: it should be available in month or so08:22
persiaynezz: Oh, it's a special Beagle expansion?08:22
* persia was hoping for something generic08:22
cooloneypersia: ok, i see, just a quick digging08:22
persiacooloney: If you can get that to work, the security team will love you :)08:22
cooloneyit is available since ARMv608:22
persiaRight, but I don't think we ever turned it on.08:23
ynezzpersia: yes, beagle related08:23
cooloney#define PMD_SECT_XN             (1 << 4)        /* v6 */08:23
cooloneypersia: but i am not sure how to use it.08:24
cooloneypersia: need some time to take a look08:24
loolpersia: I think Kees had a look and flipped a logic bug in arm code08:24
loolSo I actually think it's working and enabled08:25
persialool: Really?  That's different than what I last heard, but I would be glad to have missed something.08:25
persiacooloney: Cool.  Maybe check with kees: if lool is right, nothing to do.08:25
loolhttps://bugs.launchpad.net/ubuntu/+source/linux/+bug/364358 http://www.outflux.net/blog/archives/2009/11/24/missing-kernel-features-in-arm/08:25
ubot4Launchpad bug 364358 in linux (Ubuntu Jaunty) (and 1 other project) "ARM: image is running with READ_IMPLIES_EXEC (affects: 1) (dups: 1)" [Undecided,Fix released]08:26
loolcooloney: ^08:26
loolSo I'm pretty XN works now08:26
persiaCool!08:26
lool+sure08:26
persiaI caught the original blog post, but not the followup.08:26
DanaGwhat does "ASLR" stand for?08:28
persiahttp://en.wikipedia.org/wiki/Address_space_layout_randomization08:28
persiaMakes it harder to take advantage of buffer overflow exploits, poke exploits, etc.08:29
DanaGah.08:35
DanaGanyway, bedtime now.  =รพ08:35
cooloneylool: thanks,08:35
loolcooloney: Did you manage to look into the kexec problem?08:36
cooloneyand from the code arch/arm/mm/mmu.c08:36
cooloneylool: yeah, we found a way in imx51 and mvl-dove08:36
cooloneyi prepared a kernel package for versatile alreayd08:36
cooloneyand going to test it now08:36
cooloneyif you wanna test, please take a look at this bug08:36
cooloneyhttps://bugs.launchpad.net/adana/+bug/51784108:37
ubot4cooloney: Error: Bug #517841 is private.08:37
cooloneypersia: XN bit is enabled when arch >= ARMv708:38
loolhttp://kernel.ubuntu.com/git?p=roc/ubuntu-lucid.git;a=shortlog;h=refs/heads/kexec-versatile is the branch08:38
loolhttp://people.canonical.com/~roc/kernel/kexec/ has the binary kernels08:38
cooloneyyeah,08:41
cooloneybut we still have to patch the kexec-tools08:41
persiacooloney: That's fine.08:42
loolOnly for initramfs support though08:44
cooloneylool: do you mean another issue about initramfs on versatile?08:46
cooloneylool: i saw your config patch was merged08:47
loolcooloney: Didn't yet try with08:47
loolmy patch in08:47
loolcooloney: But we should really fix the initramfs issue08:47
loolperhaps it's a similar problem actually!08:48
loolperhaps our kernel is too big!08:48
loolI didn't think of that08:48
cooloneyyeah, the issue is very similar, without patching the kexec-tools to increase the size08:48
cooloneywe can not kexec reboot the kernel08:48
loolcooloney: Question08:48
cooloneyit looks like the similar in qemu08:49
loolcooloney: the kernel knows where it's loaded, how big it is, and where the initramfs is supposed to me08:49
loolcooloney: Don't you think the kernel should test whether kernel start + kernel size < initramfs start?08:49
cooloneylool: normally, the bootloader should take care of that, such as uboot or qemu08:50
loolcooloney: Don't you think it's a good idea to have such a sanity check to avoid debugging kexec like we did?08:53
loolcooloney: With your kernel, I still can't load initrds *gah*08:55
loolcooloney: I think it's due to the same bug as for kexec, or similar08:55
loolcooloney: Do you have a recipe for converting a vmlinuz to a vmlinux?08:56
cooloneylool: you wanna try vmlinux, right? i can uploaded for you08:56
loolcooloney: Would be nice, thanks08:57
loolI do see "cramfs" in the list of attempted file systems now; but it doesn't work08:57
loolcooloney: So with your kernel to run qemu and loaded with kexec, it still hangs as before09:00
lool"Starting new kernel" and nothing more09:00
cooloneyok09:00
cooloneythere is no "Uncompressing...," right?09:00
loolcooloney: Let me try with the serial console trick09:01
loolI get more output in this way09:01
* ogra glares at klibc buildlog ... -march=armv4 -mtune=strongarm 09:01
loolcooloney: Well using an uncompressed kernel might improve the test; let's try with one09:01
ograhrm09:01
cooloneylool: no problem, i am uploading, but it will take some time09:02
cooloneydue to the slow connection at my home09:02
loolcooloney: Press the "FAST" button below your modem09:03
loolsometimes it's labeled TURBO instead09:03
persiaogra: Please fix :)09:03
ograpersia, well, thats not the cause of the ftbfs09:03
persiaYeah, but :)09:04
ogralool, isnt that a software switch that needs this proprietary program from www.modemspeedier.com ?09:05
persiaogra: Depends on the modem.  The better class have external controls that do the same thing as the extended AT sequences.09:06
ograheh09:07
loolcooloney: Updated the kexec/versatile bug09:10
loollp #51856709:10
ubot4Launchpad bug 518567 in linux (Ubuntu) (and 1 other project) "armel/versatile: Can't kexec (affects: 1)" [Undecided,New] https://launchpad.net/bugs/51856709:10
loolcooloney: Found how to convert the image (I think)09:14
loolHmm not sure09:15
loolI get no vidoe output, so seems my vmlinux is busted09:16
cooloneylool: i found 2 vmlinux in my build dir09:18
cooloneyone is 61M,09:18
cooloneyone is 3M, which is not for this09:18
cooloneylool: or just Image?09:19
loolcooloney: I think we want vmlinux09:19
loolcooloney: but you can strip it09:19
loolvmlinuz is stripped and gzipped which is why it's much smaller09:19
loolMy vmlinux is 6.3 MB so that seems about right09:20
cooloneyok, will do that09:20
loolcooloney: YES!09:21
loolcooloney: So booting your vmlinuz and kexecing the vmlinux I created works09:22
loolcooloney: So don't bother uploading09:24
loolSo many problems here, vmlinuz loading broken, vmlinux boot broken, need to test initrd support...09:24
cooloneyok, understand now09:26
cooloneyyou convert the vmlinx from my vmlinuz09:26
cooloneyand kexec that, right?09:26
loolYes09:27
cooloneyok, cool09:28
asacericm_: why do we use CONFIG_OABI_COMPAT=y ?09:29
loolcooloney: That's a good workaround, but would you be interested in chasing the other issues?09:29
ericm_asac, that's for old ABI binary to be still able to run09:29
ericm_asac, it's harmless - any issue you found related to this?09:29
cooloneylool: i'd love to,09:31
persialool: Are you certain that we don't need to use qemu to support ppc64 on ppc, sparc64 on sparc, and amd64 on i386?09:31
loolpersia: I'm not, I applied the same heuristics as the qemu Debian package09:31
persiaOK.  I'll just follow along then.09:31
loolpersia: I think it's only possible to run ppc64 on powerpc if you have ppc64 hardware and you run a 64-bits kernel (with a powerpc 32-bits userspace)09:32
asacericm_: mvl asked why we still have that. i think they thought it would help if we'd drop it09:32
asaciirc there were also some performance claims09:32
persialool: I think the same is true in every case in my example.09:32
asacif you say it shouldnt hurt at all, fine.09:32
loolpersia: but I don't have hardware and I didn't want to write overly complex code I couldn't test09:32
loolpersia: Yes, I'm only giving an example09:32
ericm_asac, so far no related issues with that09:34
amitkericm_: we could get rid of OABI. We don't care about letting older ABI binaries run on Ubuntu...09:34
asacericm_: but is there any reason to keep it? e.g. EABI is already really really old09:34
asacright09:34
loolpersia: Similarly, it might be possible to use qemu-x86_64-static under i386, but I don't think we actually have a binfmt for that as it might mess up config_32 for users of amd64 hardware with a 64-bits kernel09:35
loolAnyway, if someone wants to support using qemu there and has a patch which I can understand, I'm happy to review + merge it  :-)09:35
persialool: I think you're right, and I don't want to fuss with it enough to try to fix it now.09:36
amitkericm_: I remember that I turned it off on FSL09:36
ericm_asac, amitk, no specific reason, just want to keep a certain degree of backward compatibility, but it's OK to remove I agree09:37
ericm_asac, amitk, it's actually not very old, EABI became popular in less than 2 years09:37
amitkericm_: with the distro compiled for armv7+, backward compatibility is not one of our stated goals :)09:38
ericm_amitk, agree09:38
amitkand we want to make sure that we run all EABI code. Debian does a great job of supporting OABI and EABI as it is.09:38
loolDoes OABI support hurt?09:39
cooloneylool: is there any option in qemu to enable a host directory to share with the running qemu virtual system09:39
loolISTR it caused some weird bugs on dove09:39
ericm_well, in some cases, that depends on the source code availability to be recompiled with new EABI and new toolchain09:40
loolcooloney: There is, but I don't use it09:40
cooloneylool: ok,09:40
loolcooloney: Consider either a nfs export if you have that, or just loop mount your image09:40
lool(I do the latter)09:40
ericm_but it's not always true - esp. in some areas source code is not available, but anyway those are corner cases09:40
loolcooloney:09:40
loolhttp://people.canonical.com/~lool/loop-mnt-do09:40
ericm_lool, I don't think OABI support is harmful - so far no evidence09:41
loolcooloney: loop-mnt-do some.img09:41
loolericm_: I think there was a suspend resume bug under dove triggered by this config09:41
ericm_lool, that's caused by other issue but could be worked around by turning this option off09:41
ericm_lool, Marvell has provided a right fix to that bug09:42
loollp #45368209:42
ubot4Launchpad bug 453682 in linux-mvl-dove (Ubuntu Karmic) (and 2 other projects) "late resume failure on dove (affects: 2)" [High,Fix released] https://launchpad.net/bugs/45368209:42
loolericm_: I agree, this bug is fixed, I just don't know whether OABI_COMPAT is exposing us to more of such bugs, or whether it's truly harmless09:42
ericm_lool, so far none - I tend to keep a certain backward compatibility, but as amitk said, this might not be necessary, and I'm totally fine to turn this off if everyone agrees09:44
loolThe only other reasons I can think of to drop it: * size of the kernel (but then it's a pig anyway), * security issue in one of the OABI code pathes (no track thereof until now though)09:44
ericm_lool, fair enough09:45
loolericm_: Frankly, I have no opinion either way; I'm just curious of what would justify the config either way -- as to be able to answer questions on this choice09:45
loolI didn't face someone running an OABI binary on Ubuntu so far, and didn't have to run one myself; perhaps it's useful for e.g. flash tools or proprietary software like skype or flash?  no idea really09:46
ericm_lool, could you include me in the CC loop when discussing these config options with Marvell, I know they intend to keep their kernel config as close as ours so to minimize the future developing effort09:46
asaci doubt it09:46
loolericm_: I actually don't discuss this with marvell myself09:46
asac(flash/skype)09:46
loolericm_: If I ever do, I'll Cc: you  :-)09:47
ericm_lool, thanks09:47
* lool is just polluting the amitk/ericm discussion out of curiosity09:47
asacericm_: amitk: so i take it that we can drop this? /me goes files a bug09:47
ericm_asac, thanks09:48
asacbug 53427709:49
ubot4Launchpad bug 534277 in linux-mvl-dove (Ubuntu) "disable OABI_COMPAT (affects: 1)" [Medium,Triaged] https://launchpad.net/bugs/53427709:49
asaccooloney: is that on for -fsl too?09:51
asac(see above)09:51
suihkulokkidisabling oabi compat gives a tiny performance improvement on making syscalls09:52
asacgood... we want performance ;)09:52
suihkulokkithen you should start with disabling the PIE binary stuff which has major impact in performance09:54
suihkulokkithe PIE/address randomizing stuff is snakeoil for security on 32bit archs anyway09:55
cooloneyasac: i just checked that09:58
cooloneyit is disabled in fsl-imx5109:58
amitkericm_: cooloney: ^^^ what suihkulokki said about PIE is very pertinent.09:59
cooloneygrep -r CONFIG_OABI_COMPAT ../Ubuntu/fsl-imx51-lucid/debian.fsl-imx51/config/09:59
cooloney../Ubuntu/fsl-imx51-lucid/debian.fsl-imx51/config/config.common.ubuntu:# CONFIG_OABI_COMPAT is not set09:59
cooloneyroc@roc-macubuntu:~/Work/qemu-arm$09:59
amitkcooloney: I disabled it very early in Karmic I think09:59
cooloneyamitk: yeah, thx, man, heh09:59
ericm_suihkulokki, what is PIE binary, sorry?10:07
persiahttp://en.wikipedia.org/wiki/Position-independent_code#Position-independent_executables10:09
cooloneyso we need to disalbe that PIE stuff in kernel?10:13
cooloneywill some apps fail to run due to that?10:13
ograwe should try :)10:14
ograif the performance penalty is really that high it might be worth to look at10:14
persiaUm, why?10:16
ericm_PIC sounds more familiar to me, but anyway - how's this related to oabi?10:16
persiaPIE isn't that useful for security on 32-bit architectures, but PIC is critical for sane shared libraries.10:17
persiaAnd we probably have to unwind some other things: kees implemented the ASLR stuff a while back.10:18
amitkericm_: its not related to OABI, it is related to performance10:18
ograpersia, oh, i meant pie10:18
ograerr10:19
ograpic10:19
amitkogra: no, you meant PIE ;)10:19
* ogra curses the similarity of all these abbrev.'s10:19
ericm_that's true, PIC hurts performance a bit10:19
amitkericm_: no, we are talking about PIE10:19
cooloneyPIC hurts perf, but it necessary for .so10:19
ericm_why do we need PIE anyway?10:20
cooloneyi have no idea about PIE stuff as well as ericm_10:20
persiaRight.  We aren't giving up PIC.  Once we have PIC, PIE doesn't generally matter that much, performance-wise.10:20
cooloneyand what kind of app is using PIE binary10:20
cooloneypersia: so PIE is an older trick than PIC?10:20
amitkericm_: for security, It randomizes the address space layout10:21
ericm_lool, apparently I missed the discussion of kexec vmlinux, it looks the arm kexec-tools doesn't support vmlinux/vmlinuz, but the one generated with objcopy can be used directly by kexec to avoid the zImage uncompressing code overwritting initramfs data issue10:21
=== Guest78773 is now known as NCommander
persiacooloney: PIE just means the *entire executable* is PIC.10:21
ericm_and give a better performance since uncompressing can be skipped10:21
amitkso there is no well-known location for the executable code10:21
amitkbut we'll need to talk to the security team about disabling it for ARM. They might have other views.10:22
=== NCommander is now known as Guest33867
=== mcasadevall_ is now known as NCommander
Laibschlool: I assume you are using glibc for ubuntu-arm?  Have you guys considered eglibc?  The OE toolchain guru swears by it.10:29
persiaLaibsch: Have you checked?  I think we are using a variant of eglibc10:30
Laibschpersia: no, I have not10:31
Laibsch"assume"10:31
LaibschI thought it was quicker to just give that information and let lool decide what he wants to do with it10:31
LaibschI wouldn't even know where to check ;-)10:31
persiaLaibsch: It's almost always more efficient to investigate a bit :)10:31
persiaOr ask questions generally.10:31
ograwe use eglibc by default10:32
ograon all arches iirc10:32
Laibschpersia: I did ask, see above10:32
persiaBy "generally" I meant "without highlighting any individual" :)10:32
NCommandermorning persia10:32
persiaNCommander: So it is :)10:32
Laibschpersia: I'm trying to help by pointing out possible lessons learned for ubuntu-arm from what I know about OE.  If I need to finish an IT education first before being allowed to do that, I'll just simply stop. Becuase my time is limited.10:33
NCommanderOE is nifty because they cross-compile everything, which makes it a lot easier to build than say Ubuntu which requires native building10:34
Laibschit's both a blessing and a curse, I guess10:34
NCommanderLaibsch: indeed, some packages are mindbogglingly difficult to cross-build10:35
* NCommander glares at mySQL10:35
persiaLaibsch: It's not about an education.  It's just about trying things, and asking questions not of specific folk so that they aren't distracted if someone else has the answer.10:35
* NCommander sighs10:36
Laibschwe've spent more time discussing this now than it will take an expert to decide what to do with the info10:36
LaibschI'm not an expert10:36
Laibschif you want me to become one before I can point out possible differences then I'm sorry, I can't do that10:37
persiaLaibsch: You've taken that wrong.  My apologies.10:37
LaibschI will try my best not to waste people's time10:38
LaibschBut there's two sides to the equation10:38
persiaAbsolutely :)10:38
Laibschlool's time and mine.  I'm looking at overall efficiency.  I think that may be where our diffrences are10:38
LaibschIt will cost me an immense amount of time to understand the toolchain issues10:39
Laibschit will be only seconds to either discard or decide to look further into it for an expert10:39
Laibschhence the decision I made10:39
Laibschbtw, no offense taken, don't worry10:39
persiaCool!10:40
ografunnily i cant find the public discussion for it, but we switched to eglibc in karmic10:43
Laibschgreat10:43
* amitk remembers it being posted to ubuntu-devel10:43
LaibschI understand that ubuntu on arm still has some speed issue, though, correct?10:44
loolSorry, I was interrupted by someone at my door10:44
cooloneylool: for the kexec on versatile10:45
asachmm axis build failure looks odd https://edge.launchpad.net/~asac/+archive/armel1/+build/154387010:45
asacis java working at all on armel atm?10:45
cooloneylool: you mentioned kexec -l vmlinux works on your side10:45
cooloneylool: is on versatile hardware?10:46
loolcooloney, ericm_: http://people.canonical.com/~lool/vmlinuz-to-vmlinux10:46
cooloneylool: but failed on qemu, right?10:46
loolThat converts a vmlinuz to vmlinux10:46
cooloneylool: got you, thanks,10:46
loolcooloney: It's in qemu10:46
loolcooloney: a) I can't qemu-boot the vmlinux kernel (unrelated to kexec), only the vmlinuz one b) I can't kexec the vmlinuz kernel (original bug); that seems to be a bug in the way kexec choses addresses (perhaps)10:47
loolcooloney: I don't have versatile hardware (probably nobody does around here); I just use qemu10:47
cooloneylool: understand. i cannot kexec vlinux, it does not work on my qemu10:48
cooloneylool: right, just was confused by your post in the bug10:48
cooloneyheh10:48
cooloney'I can't boot the vmlinux in qemu though.' hehe10:48
loolcooloney: I need to update the bug again10:49
cooloneyi played versatile hw before, so i assume you got it10:49
cooloneylool: ok10:49
loolThat was after testing your kernel, but before testing vmlinux10:49
cooloneylool: let me try your vmlinuz-to-vmlinux10:49
loolcooloney: I don't have it; we just use versatile because it's well supported in qemu10:49
loolcooloney: you need to pipe the output10:52
loolcooloney: e.g. vmlinuz-to-vmlinux ~/yourvmlinuz > output-vmlinux10:52
cooloneylool: yeah, just got an vmlinux file with the pipe after the funny symbols popped up on my screen w/o pipe10:53
asacthumb2 rebuild ftbfs: http://paste.ubuntu.com/390975/10:54
cooloneylool: OMG, the vmlinux generated by your script works with kexec10:55
cooloneylool: cool10:55
persiaasac: Not bad at all!10:55
persia~4% of the rebuilds10:55
loolLaibsch: So as pointed out above, we use eglibc by default everywhere, just like Debian10:55
Laibschgreat10:55
=== ogra_ is now known as ogra
loolsuihkulokki: Do you know of public benchmarks of PIE versus non-PIE on armel?10:56
Laibschanybody here using a native arm compile host coupled with a bunch of icecc clients?10:56
loolI can expect that basically any security feature has a cost, but I wish we had some data to quantify10:56
cooloneythen we can comfirm what patches need to be applied into our master.versatile, fsl-imx51, mvl-dove10:57
loolLaibsch: To clarify, there is exactly one source packages pool which is the Ubuntu archive; the Ubuntu armel port uses the very same source as the Ubuntu Desktop Edition for instance10:57
loolcooloney: Let me test a pristine vmlinuz to see whether your patches are required10:58
Laibschyes, that is my understanding10:58
Laibschand that is the benefit of ubuntu-arm over OE imho10:58
Laibschit will likely scale better going into the future10:58
amitkIMHO, s/likely// in the above sentence :)10:59
Laibschfuture is always uncertain ;-)11:00
amitkits worked for Ubuntu for over 4 years now...11:02
amitkand in the Linux kernel for much longer (embedded -> PC -> mainframe)11:03
cooloneylool: thanks please update the status of launchpad11:03
loolcooloney: done11:04
Laibschamitk: right now, I think OE-derived stuff is more usable.  the debian-arm project apparently predates OE, yet I would venture to guess that Angstrom is more usable currently than debian-arm.11:04
loolDepends of the purpose11:05
loolOE doesn't provide an end-user installer, or security support11:05
ograor easy upgradeability11:06
loolPeople running Debian on ARM NAS devices care about these11:06
persiaAnd it works great for that use case.11:06
persiaI know a bunch of folks happy with Debian on handhelds as well.11:06
amitkLaibsch: for a different definition of "usable" from our typical users.11:07
LaibschOE is not meant to provide that.  That would be distro stuff11:07
amitk... developers as well, in fact11:08
Laibschan end-user installer in that sense may not be necessary11:08
Laibschdevices have traditionally been flashed with a complete rootfs11:08
Laibschupgradeability is something that Angstrom does care very much about11:09
Laibschsecurity is indeed a very weak point11:09
persiaLaibsch: That only works for pre-sold stuff, and even pre-sold stuff may want a refresh for a variety of reasons (e.g. install Kubuntu Netbook on a Netwalker)11:09
Laibschbut there's been some work there lately11:09
Laibschpersia: what do you mean pre-sold stuff?11:10
LaibschI don't understand what you are trying to say11:10
persiaerr, stuff sold pre-installed.11:10
ograi think he means pre-installed11:10
Laibschno, that is not true11:10
* persia goes to find calories in hopes of thinking better11:10
LaibschI'm not aware of any device with angstrom installed as shipped (althought that may have changed lately)11:11
ograLaibsch, what we want is that your sister can buy that arm netbook ... and if she doesnt like the perinstalled OS is able to install ubuntu on it and use it like on x86 with no drawbacks11:11
Laibschsure11:11
ogra(and without prior computer knowledge)11:11
Laibschthat's how OE got staretd11:11
Laibschpeople replaced Sharp ROM with OZ ROM for example11:12
ograyour sister would be able to replace os-blah on her arm netbook with OE ?11:12
Laibschso, I don't understand the point being made there11:12
ograwould that even be possible without knowing how to use a serial console ?11:12
Laibschof course11:12
Laibschyou guys seem to have some serious misconceptions11:13
ograno, i've just seen a lot of hard to work with arm hardware :)11:13
LaibschI think it's much easier to change the OS on a Z with OE-derived stuff than put Ubuntu on it11:13
kblinLaibsch: are you surprised? this is an ubuntu chennel :)11:13
ograand i want to meet your sister !11:13
ogra*g*11:13
LaibschMy sisters are older than me and married11:13
Laibschsorry ;-)11:14
ograheh11:14
kblinLaibsch: it's a bit like talking about the benefits of perl on #python11:14
amitkheh11:14
Laibschwell, it's good to know what else is out there11:14
Laibschand I think there is a lot that can be learned from OE11:14
ograkblin, nah ... OE surely has its advantages11:14
Laibschso that the wheel doesn't need reinvention11:14
kblinogra: good point11:14
ograbut there is a reason why endusers pick ubuntu over gentoo on theirt x86 machines :)11:15
loolkblin: Oh don't worry we often debate python versus shell here11:15
LaibschThere was no alternative to OE at the time it was invented11:15
Laibschnative compilation was not possible11:15
ograand i think the same reasons apply if you look at OE vs ubuntu-arm11:15
Laibschthat's changing and that's why I'm considering to switch11:15
ogralool, well, if asac joins the discussion there will also be C involved :)11:16
LaibschYou need to look back 5+ years when OE came to life11:16
ograsure11:16
ograthere was no ubuntu-arm back then11:16
kblinLaibsch: the reason why I run ubuntu on my ARM boxes is one of convenience rather than a technical one11:16
amitkLaibsch: It is safe to say that most people here have played with Zaurii, OE, familiar, etc. in a previous life.11:17
Laibschthen it's pretty amazing to read "OE is hard to install"11:17
Laibschfor two reasons11:17
Laibsch1) you never install OE on your device11:17
kblinso?11:17
Laibsch2) OE-derived distros do provide an easy to use installer mechnism (at least for the devices I'm familiar with)11:18
loolFolks, I'm not sure the Ubuntu versus OE discussion is leading anywhere11:18
ograyeah, lets turn it into a gnome vs kde one rather !11:18
Laibschlool: I'm not sure anybody is trying to convince anybody else11:18
loolDifferent projects stand in different states and fit different people; I'm happy to discuss specific things we can rip from OE if there's something we can easily rip right now and it fits with the priorities of Ubuntu ARM11:18
Laibschfor me it's an exchange of facts, more than anything else11:19
* amitk gets back to real work11:19
kblinlool: armv5 support? ;)11:19
Laibschkblin: good idea!11:19
kblinlool: cheap shot, I know :)11:20
kblinLaibsch: not really important, ogra's sister won't buy a netbook with an armv5, so that's not a problem :)11:21
ograshe only buys what i tell her is easiest to use for her :)11:21
loolcooloney: https://bugs.launchpad.net/ubuntu/+source/qemu-kvm/+bug/53432411:22
ubot4Launchpad bug 534324 in qemu-kvm (Ubuntu) "Can't run uncompressed (vmlinux) kernels (affects: 1)" [Undecided,New]11:22
* kblin gets back to work11:22
loolcooloney: So a vmlinux from the archive vmlinuz just works11:22
ograoh my ... so klibc defines armv4 and tunes for strongarm upstream11:22
ograhrm11:22
loolcooloney: So your patches/build aren't needed to load vmlinux; perhaps these are needed for initramfs?11:23
loolkblin: Oh it's absolutely desirable11:23
* ogra was hoping that was a debian setting from rules11:23
loolkblin: I have some thoughts on that, but it wasn't really a high priority until now11:23
kblinlool: like doing two builds?11:25
loolWow, I end up with apex on my versatile install; I bet the kernel did it11:25
loolkblin: I don't think we would build this all the time11:25
loolkblin: What would be ok is taking Ubuntu's armel archive, using some clever machinery to rebuild everything a couple of times, and storing this new archive somewhere else11:26
loolWhere that machinery could either be an expensive set of ARM hosts or qemu on a lot cheap x86 hosts (such as EC2)11:26
loolapw: I'm considering a d-i upload; do you plan uploading linux-fsl and linux-mvl this week?  if you do, I'll hold it a bit11:28
apwlool, yes i think i have patches pending on both branches11:28
apwi'll have a look shortly and let you know ...11:28
loolThanks11:29
ogralool, apex is in universe11:30
ogralool, but only moved out of the d-i deps recently11:30
ograso it depends when you installed11:30
loolI'm not sure why it got pulled really11:32
loolI created the chroot with debootstrap11:32
loolHmm it might be the d-i build-deps11:32
loolRight11:32
Laibschseeing that CPU cycles on arm are still scarce, I'd like to reiterate my earlier question. Anybody here using a native arm compile host coupled with a bunch of icecc clients?11:32
loolSo nm, just my setup11:33
persiaLaibsch: Just use the emulation if you can't do native.  It's not that slow.11:34
LaibschI'm really interested in that question, though.11:34
loolI don't think anybody here does that11:34
LaibschI see11:34
loolI think it's used in the OBS, in the Xandros ARM builds, and perhaps in the mojo tools11:34
LaibschAny technical reason to make that infeasible?11:35
LaibschOK11:35
LaibschMaybe I'll have a bit of fun with something like that, too11:35
loolWe just use different solutions11:35
LaibschI've previously used OE and distributed that with icecc11:35
LaibschIt worked pretty nicely11:35
asacJamieBennett: https://launchpad.net/ubuntu/+source/fio/1.33.1-1ubuntu1/+build/1550048/+files/buildlog_ubuntu-lucid-ia64.fio_1.33.1-1ubuntu1_FAILEDTOBUILD.txt.gz ;)12:21
* JamieBennett looks12:21
asacits ia6412:21
asac/build/buildd/fio-1.33.1/verify.c:907: undefined reference to `write_barrier'12:21
asacguess we can ignore it ;)12:22
asacunless you see the problem right away12:22
JamieBennettWhy is that code being included on IA64 ?12:22
asacnot sure12:22
asacmost likely the problem is that its not included :;)12:22
asacthe symbol isnt defined12:22
asace.g. it lacks a ia64 implementation12:22
JamieBennettIts ARM specific though (in arch/arch-arm.h)12:23
asacor the ia64 implementation currently in the code is not picked up12:23
asacJamieBennett: verify.c12:23
* JamieBennett didn't touch verify.c12:23
asac./arch/arch-ia64.h12:23
asacJamieBennett: #define nop             asm volatile ("hint @pause" ::: "memory");12:23
asac#define read_barrier()  asm volatile ("mf" ::: "memory")12:23
asacfeels like its a missing _12:23
asac#define writebarrier()  asm volatile ("mf" ::: "memory")12:24
asacsimple fix we could try in the next upload12:24
JamieBennettasac: still don't understand what the current fix could of done to effect that unless IA64 was broken before12:24
asacJamieBennett: its not a regression12:26
asacthe problem existed before12:26
asac(i am quite sure)12:26
JamieBennettasac: so yes, missing '_' it seems12:26
asacsorry if i made you feel that way ;)12:26
asacJamieBennett: ok. have you updated the patch? i can just add the _ for next upload12:26
JamieBennettasac: np12:26
JamieBennettasac: I was looking for what I had 'broken' ;)12:27
asacheh :)12:27
asacthis time it wasnt you12:27
JamieBennett:)12:27
JamieBennettI'll update the patch and attach it to the bug12:27
JamieBennettunless its easier for you to just do it ?12:28
asaci will wait for you12:30
=== mcasadevall is now known as Guest20793
=== Guest20793 is now known as NCommander
=== dl9pf_ is now known as dl9pf
=== dl9pf is now known as dl9pf_
=== dl9pf_ is now known as dl9pf
ograasac, so you were complaining about http://people.canonical.com/~ogra/babbage2-lucid-20100211-3.png boottimes ... i did a test on a similar scaled x86 system with the same software ... http://people.canonical.com/~ogra/celeron-M-lucid-20100308-3.png13:16
ograi dont think we look so bad on babbage compared to that13:16
ogra(note the celeron has even 10MB/s higher disk throughput)13:17
asacogra: when is the UI up?13:19
asace.g. what do i need to look for?13:19
ogranetbook-launcher13:19
ograand then gnome-panel13:19
asacso its 50s v. 60s?13:19
ograor 35 vs 4513:20
ogradepends what you look at13:20
ogralauncher is up very fast13:20
ograpanel has 10-15s delay13:20
ograbut its definately not arch specific if you compare two similar systems13:20
ogra(similar slow)13:21
ogralool, bah, you broke rootstock packaging ... "qemu-kvm-extras-static | qemu-kvm-extras" .... qemu-system-arm is still needed for the image building and system setup, oem-config installation etc13:30
loologra: Back then, I think it used to use either system emulation or syscall emulation but not both, didn't it?13:36
ogranope13:37
ograit always did use qemu-system-arm for the system configuration, user steup and preparation for running on real HW13:37
ogramono was always my showstopper13:38
ograsyscall emu is only used for the debootstrap part (which is the smallest bit of rootstock)13:39
=== mcasadevall is now known as NCommander
ogralool, soo, our versatile kernel ... would you expect it to do thumb2 instructions properly ? i now ran a rootstock build of karmic ubuntu-desktop under lucid that seems to properly finish (not done yet but all the steps where lucid hangs are definately done) ... that somnewhat points to userspace imho16:24
ograi wonder if the versatile hack that enables a v7 cpu actually enables the needed bits and pieces to execute lucid binaries16:25
ogra(though its still weird that it just silently hangs withouot errors, segfaults or anything)16:26
loologra: I don't understand what you're saying16:26
ogralool, well, you know about my hang of qemu16:26
loologra: I can run a lucid thumb2 userspace under qemu-system-arm with our versatile kernel16:26
ograbut can you run it under heavy IO disk load ?16:27
loolI don't see how that relates to thumb216:27
* ogra refers to bug 53273316:27
ubot4Launchpad bug 532733 in qemu-kvm (Ubuntu) "apt/dpkg in qemu-system-arm hangs if a big task is installed (affects: 1)" [Medium,Incomplete] https://launchpad.net/bugs/53273316:27
ograwell, i dont know why it hangs but installing karmic ubuntu-desktop doesnt expose the hang16:28
loologra: did you strace the processes as I suggested?16:28
ograwhile using a lucid userspace inside qemu does16:28
ograyes, nothing16:28
loolnothing?16:28
ograwell, i straced apt ...16:28
loolIt's certainly in one syscall, or its hung using all CPU; no?16:28
ograno, nothing, it just stops16:29
loolOn which syscall?16:29
* ogra will need to re-run ... i threw away the image to make room 16:29
=== bjf is now known as bjf-afk
ograthese qemu-system-arm images start to eat my disk space :/16:30
loologra: You mean the expensive megabytes of your SSD :)16:31
ograheh, yeah16:32
MeizirkkiWhat's the state of Lucid regarding arm support ?17:09
Meizirkkidpkg goes segfault on my Touch Book..17:10
ogralucid is v7 and thumb217:10
Meizirkkihmm17:10
ogradoes your CPU support both ?17:10
Meizirkkilemme see17:11
* ogra thinks touchbook was omap ... some cortex-a8 so it should actually work17:11
Meizirkkiit's based on beagle board17:13
Meizirkkithumb is supported, i'm not sure about thumb2 :(17:13
ograright17:13
ograit should be supported ...17:13
ograhow exactly does it fail ?17:14
Meizirkkifor example: "apt-get install something" it starts downloading but very soon says http method died unexpectedly (Segmentation Fault))17:15
ograthats not dpkg17:15
Meizirkkiand if i repeat it enough it will eventually get it all downloaded, but then dpkg fails to unpack packages because of Segmentation Fault17:16
ograhmm, intresting17:16
MeizirkkiYes they both segfault17:16
ograwe dont see that on imx51 or dove boards17:16
MeizirkkiAccording to elinux.org lucid does run on BB as well..17:17
ograwhere did you get the kernel ... and what kernel version are you running ?17:17
MeizirkkiThe kernel is a mess.. provided by Always Innovating (the company selling TB)17:18
ograwhat version17:18
ogralucid needs .3217:18
Meizirkki2.6.2917:18
Meizirkkialright17:18
Meizirkkithat's it :)17:18
ograhmm, might be :)17:18
Meizirkkithanks for all the help17:18
ograwelcome ...17:18
ograthere is a beagle kernel for lucid on the beagle wiki though17:18
loolMeizirkki: this sounds like a hardware stability proble17:18
loolm17:18
ogranot sure that has all the touchbook drivers though17:19
loolMeizirkki: Is the segfault happening always at the same place?17:19
Meizirkkilool,17:19
Meizirkkiyes17:19
loolMeizirkki: Is it actually a "segfault", or is it e.g. a sigbus?17:19
Meizirkkisegfault17:19
Meizirkkilool, knowing there are some hardware bugs.. it might be a hw stability problem as well17:20
loolMeizirkki: Unless your libc/dpkg are heavily modified causing the segv, it rather points at hardware stability issues to me17:20
loolMeizirkki: If random programs segfault, not just dpkg, then it's certainly the case17:21
loolMeizirkki: Out of curiosity, where did you get it?17:21
MeizirkkiTouch Book ir Ubuntu ?17:21
Meizirkkio17:21
ogracant you buy it at AI ?17:21
loolMeizirkki: the TB17:21
MeizirkkiI bought my Touch Book from AI17:21
MeizirkkiIt's from the second batch i guess..17:21
loolMeizirkki: If you want to rule out userspace changes, you can debootstrap Ubuntu lucid into a local clean chroot, dpkg is stable for us17:22
MeizirkkiAI kernel is a bit strange too, size 5MB and it doesn't have any omap3 powersave stuff or even IP multicasting.. but some android patches..17:22
loolMeizirkki: So that it can run android!17:24
ograinstead of lucid :P17:24
Meizirkkihaha17:25
MeizirkkiI'm looking forward seeing a recent omap-pm kernel running on it though, they will never get 10-15 hours of USE with this kernel17:26
Meizirkki(on one charge)17:26
ograsure ... with the extra car battery attached :)17:27
Meizirkkilol17:27
Meizirkkiit does 16 hours without wlan which is nowhere near enough17:28
MeizirkkiThey'll send me a new keyboard-part for free => 12A extra battery :P17:28
* Meizirkki boots up lucid17:34
loolpersia: poke17:40
lool        if [ ! -f "/usr/bin/build-arm-chroot" ]; then17:40
lool            sudo apt-get install qemu-kvm-extras-static17:40
lool        fi17:40
lool        DEBOOTSTRAP_COMMAND=qemu-debootstrap17:40
loolpersia: Sounds like DEBOOTSTRAP_COMMAND=qemu-debootstrap should be first and you should test with if ! which $DEBOOTSTRAP_COMMAND >/dev/null 2>&1 ...17:41
ssvbMeizirkki: Cortex-A8 r1pX (typically r1p3) from OMAP34xx/OMAP35xx chips has quite a number of thumb/thumb2 hardware bugs17:57
ssvbif you really want to use thumb, you need to apply some workarounds17:57
ssvbMeizirkki: at the very least you need to have CONFIG_ARM_ERRATA_430973=y option in the kernel configuration17:59
Meizirkkiokay, thanks17:59
ssvband some of the fixes have to go to the bootloader17:59
ssvbso without this option enabled, you are going to have segfaults in thumb code for sure. If it does not help, then your bootloader did not set IBE bit in AUXCR and you will have to fix it there too18:03
ssvbMeizirkki: additionally your binutils package should be recent enough to have this workaround: http://sourceware.org/ml/binutils/2009-05/msg00297.html18:05
Meizirkkithanks18:05
ssvbgood luck and if you get stuck, you can poke me regarding all this thumb stuff :-)18:06
MeizirkkiI'm stuck already :P as I'm not that familiar with the hardware.. but i'll at least file bug to AI so they can fix their kernel and u-boot :)18:07
ssvbok, that may be the best solution, don't forget to provide them with these errata numbers and links, if they have Cortex-A8 errata list pdf, they will be able to dig up all the necessary details from it18:10
=== bjf-afk is now known as bjf
persialool: Indeed.  That's a much better way to do it.23:27

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