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

mjeamiguelgood evening guys01:17
persiahey mjeamiguel01:17
mjeamiguelhi persia01:17
mjeamigueli just have a noob question01:17
persiawhich one :)01:17
mjeamiguelok, I downloaded this file dhrystone v2.201:18
mjeamiguelit runs when sh is invoked01:18
mjeamiguelthen produces 3 files01:18
mjeamiguelI am testing it on my x86 machine01:18
mjeamiguelnow my question is, do i need edit the file if i decide to run it on ARM?01:19
mjeamiguellike cc options edit?01:19
mjeamigueli can pastebin the drystone now..gimme a sec01:19
mjeamiguelhere is the file  http://paste.ubuntu.com/524783/01:21
persiaOh, my.  What an amusing way to write C code.  I7d sugget just trying it.01:23
persiaIf it doesn't work, then it might be an issue, but there's a good chance it will work.01:23
mjeamiguelbut yeah01:23
mjeamiguellooking into the code01:23
mjeamiguelthe first few lines are to compile the dhrystone right?01:23
mjeamiguelbut without optimizing it for arm, would it be possible to get proper results?01:24
=== ian_brasil___ is now known as ian_brasil
persiaYeah, it's a shell script *AND* C code, so the shell gets escaped when the C is compiled, and the C gets ignored when the shell is run.01:24
mjeamiguelit worked on my x86 laptop (dual core)01:24
persiaAnd the shell compiles the C.01:24
mjeamiguelyes :)01:24
mjeamiguelis this script good enough to benchmark a beagleboard?01:25
mjeamiguelor I need to modify it?01:25
persiaDepends what you're trying to achieve.01:26
persiaIf you believe that code accurately reflects some workload you intend to run, then use it unmodified.01:26
persiaIf you believe it doesn't, it makes for a poor benchmark.01:26
mjeamigueloohh ok..any suggestions for armv5 benchmark scripts?01:27
persiaWhy do you want a benchmark?01:27
persia(and Ubuntu is ARMv7a these days)01:27
mjeamiguelyeah im sorry bout that, I wanted to try it both01:28
mjeamiguelits a school project and at the same time, my curiosity01:28
persiaOK.  Let's start at the beginning :)  What are you trying to accomplish?01:29
mjeamiguelcool :) I wanted to compare  the architecture (5 and 7) through bm01:30
persiaAh, OK.01:30
mjeamiguelyes sir :)01:30
persiaLooking to compare different hardware running the same code, or different code opimisation on the same hardware?01:30
mjeamiguelI havent started yet..i just want to know where Im starting and heading eventually01:30
mjeamiguel2 different hardware, same codes, speed of execution for compiling ..etc01:32
mjeamiguelfor now, just contrasting both01:32
persiaAre both hardware solutions ARMv7a compatible?01:32
mjeamiguelyes its beagleboardXM01:33
mjeamiguelmy teacher told me that 1 board is already running ..but uses armv501:33
persiaHrm.  OK.01:33
mjeamiguelmore like optimized for armv501:33
mjeamiguelyes01:33
mjeamiguelbut yeah01:34
mjeamiguelif i can only01:34
mjeamiguelget a script for benchmarking01:34
mjeamigueli just needed data comparisson..01:34
persiaSo there's some stickiness if you're running an ARMv5 kernel and make certain sorts of syscalls from ARMv7a+Thumb code, but I think that's mostly the Thumb stuff.01:34
mjeamiguelyeah..im more like into arm codes01:34
persiaYou can probably use your dhrystone script if you just want an artificial benchmark, but be aware it may not be meaningful for any real workload.01:35
mjeamiguelso no need to edit the script for now right?01:35
persiaYou will want to modify the top of it to force different ISA compliance.01:35
persiaBut I'm not convinced you can safely run ARMv5 code in Ubuntu: I'd probably use Debian for such a comparison.01:35
mjeamiguelwill look into that :)01:35
mjeamiguelill try that and fedora01:36
persiaI wouldn't send you that far away :)01:36
mjeamiguelits just a little confusing for me, considering its my first time with a project01:36
mjeamiguelhahahah :) thanks01:36
mjeamiguelone last question01:36
persiaUnderstood.  Folk here are likely to be willing to help with some stuff, but nobody will be willing to actually solve some of the basic issues for the project (but they may be willing to help with issues you discover in the base environment whilst working on your project)01:37
persiaNo limit :)01:37
mjeamigueli also wanted to compile a program lets say written for x8601:37
mjeamigueli jsut needed to change the gcc options right?01:38
mjeamiguelin the make script?01:38
persiaBest effort is made to have sane defaults for gcc so you don't have to do that in the common case.01:39
persiaIf you're working on something involving comparisons of various compiler flags, the best effort defaults won't necessarily help :)01:39
mjeamiguellol..im kinda lost there..can you please explain further thanks persia :)01:40
persiaOK, so for each architecture, we ship the compiler with default settings that tend to just work.01:40
mjeamiguelyes01:40
persiaSo one can generally get nearly best results for "int main(int argc, char* argv[]){printf("Hello World\n");}" or slightly more complex code.01:41
persiaHowever, if you're working on an academic project to compare different compiler flags, it won't help much, because you need to select specific flags, rather than using the defaults.01:42
mjeamigueli guess im not so close to that, thanks for explaining :)01:43
mjeamiguelany good resource for armv7 readings?01:43
mjeamigueli already checked the mailing lists01:44
persiaI think you'll have to wait for someone else.  I just run the software, and try to fix bugs that aren't that ISA-specific.  The few things I know about the ISA changes are mostly hearsay or based on other folks solutions to other, similar bugs.01:47
mjeamiguelpersia: I really really apreciate you helping me tonight..thanks so much!01:47
mjeamiguelI'm to present about my project soon, and will let my fellow students how this channel and you helped me out a lot01:49
mjeamiguelthank you :)01:49
persiaThanks for helping advertise us.01:51
mjeamiguelyou guys deserve :) bye!01:57
=== amitk is now known as amitk-afk
=== hrw|gone is now known as hrw
hrwre08:22
=== amitk-afk is now known as amitk
persiaamitk, Did you get the kernel source links I posted a couple days ago?09:14
amitkpersia: I did not, could you post again?09:20
persiahttp://netbook-remix.archive.canonical.com/updates/pool/public/l/linux-fsl-imx51/09:21
persiaI believe "araneo" is for the PC-Z1 and "sendai" for the PC-T1.  I have no idea about the 2.6.31 source.  I can only test for the PC-Z1, but can probably find some PC-T1 testers if you need.09:22
amitkpersia: what is PC-Z1 and PC-T1?09:22
persiaamitk, PC-Z1 is my little laptop.  PC-T1 is a tablet with nearly identical guts, also distributed by Sharp.09:24
amitkpersia: ok, got the araneo sources now09:25
persiaI think it was the araneo sources you dug into last year to upstream stuff.  The more recent updates should just be security maintenance and the like.09:27
amitkpersia: I dug into the BSP from Freescale for the babbage baord, not Pegatron's kernel09:28
persiaPC-Z1 wasn't Pegatron.09:28
persiaI heard PC-T1 was, but some of my comments in early planning phases were not as commercially sound as they might have been, so I didn't end up working on that project.09:29
=== ian_brasil__ is now known as ian_brasil
=== hrw is now known as hrw|afk
=== hrw|afk is now known as hrw
=== asac_ is now known as asac
hrwok, who here uses ubuntu on panda?14:44
rsalvetihrw: I do, why?15:03
hrwrsalveti: how to get more then 684MB ram?15:04
rsalvetihrw: you can get by giving mem=1g at the kernel cmd line, but the system turns unstable15:04
hrwdefault has 460+256 ram and 32 for vram, when I dropped it I got 51215:04
rsalvetithere's still an unknown bug15:04
hrwthx15:05
sebjan_rsalveti: wasn't this issue hidden by the 2G/2G memory partitionning/15:09
sebjan_?15:09
rsalvetisebjan_: nops, gets better, but you still face the issue sometimes15:09
sebjan_rsalveti: hum, ok...15:10
rsalvetiand now I need to find why my both pandas got stuff while building qt =\15:10
rsalveti*stuck15:10
sebjan_rsalveti: out or memory? (ho, you already have some swap setup, right?)15:11
sebjan_s/or/of/15:11
rsalvetiyup, first time was lack of memory to run ld while building webkit15:11
rsalvetithen I added swap and I couldn't access it remotely15:11
rsalvetiso probably a kernel bug15:12
sebjan_rsalveti: it can help to not start gdm, to get some extra memory for building :)15:13
rsalvetisebjan_: yeah, one of my builders is running with a minimal image, on a usb-disk :-)15:13
sebjan_rsalveti: I like this setup :)15:15
hrwhttp://hrw.pastebin.com/QH29C3zp - uboot found just 512MB ram on panda - normal?15:53
topfs2iirc there is the highmem problem so only 512 is used to not get some problems15:55
rsalvetihrw: iirc this was just a hard coded value15:55
hrwok15:55
rsalvetitopfs2: you can use until 768MB15:56
topfs2ah ok15:56
topfs2512 is more than enough for me atm :)15:56
hrwbuilds takes mem... so more == better15:57
hrwhttp://hrw.pastebin.com/30ABmFSu ;(16:16
rsalvetiouch, that's weird16:19
hrwthat 4->10s jump is because hdd has to start rotating16:20
hrwworked before ;(16:21
hrwhave to test one thing16:21
hrwnot related to 512<>1024MB ram16:22
hrwworked before ;(16:22
vstehleHi rsalveti, would you please have some time to discuss this pvr-omap4 / mesa dev conflict issue mentioned on the pandaboard ML?16:49
rsalvetivstehle: yup, just replying the ml :-)16:49
vstehleOh. Nice. I don't see an easy solution right now.16:50
rsalvetivstehle: sorry not answering before, still catching up on my emails16:50
rsalvetivstehle: in case you want a dev package for sgx, you have to create your own16:50
rsalvetiand conflict/replace the mesa ones16:50
vstehleHum... Ok, I'll do that, then.16:51
rsalvetibut the problem is that the library lacks a proper soname16:51
rsalvetithen it's not 100% compatible with the mesa ones16:51
rsalvetifor example, if you end building something using the sgx package, you'll be unable to run with the mesa ones, unless you install the mesa-dev packages16:51
rsalvetibecause your bin will be linked with the lib.so16:52
rsalvetithat mesa provides only at the -dev package16:52
vstehleThe packages provide libX.so, libX.so.1 and libX.so.1.y; isn't this sufficient?16:52
vstehleOr do I need to specify this soname thing somewhere?16:53
prpplaguehey pandaboard users16:53
prpplaguei'm kicking around some ideas for expansion boards for the pandaboard, any thoughts on an expansion board the exact same pcb size as the pandaboard that adds 4 additional usb ports, rtc with battery, eeprom, seconday sd/mmc slot, secondary uart, and LVDS lcd interface16:53
rsalvetivstehle: it provides the proper links, but when you link something with it, it'll link against the lib.so, instead of lib.so.1, for example16:54
rsalvetithe library doesn't export the proper soname16:54
vstehleOh, that is in the .so itself? I did not realize that.16:55
rsalvetiyou need to change that in build time16:55
rsalvetiin the sgx lib build time16:55
vstehleI can do that, but I don't know where to begin (Makefile or debian/* :)16:55
rsalvetiprobably at the sgx build scripts/makefiles16:56
rsalvetiwe have the same issue for the omap 3 packages16:56
vstehleOh: http://en.wikipedia.org/wiki/Soname16:56
rsalvetithat's why I didn't provide a -dev package for it16:56
vstehleOk, I need what to do this week :) Thanks! First, -dev, then fix soname.16:57
rsalvetiI'd prefer first soname, then -dev, but it's your call :-)16:58
rsalvetithen it can be compatible with the mesa ones16:58
rsalvetiand the replace/conflict will be 100% correct :-)16:58
=== hrw is now known as hrw|gone
hrw|gonehttp://hrw.pastebin.com/K7zW3RrL - problem is not rootfs related ;(17:02
topfs2btw vstehle and rsalveti I built xbmc with mesa-dev and it runs perfect with sgx17:04
topfs2incase its of interest :)17:04
rsalvetitopfs2: yup, that's expected :-)17:04
rsalvetithe other way around that's not17:04
vstehleHi topfs2. Good to know.17:04
topfs2ah ok :(17:04
topfs2While I have about nil knowledge on the matter couldn't it be done by using the mesa-dev package?17:05
=== zyga is now known as zyga-afk
=== zyga-afk is now known as zyga
rsalvetisebjan_: can you try the proposed package for the bug 665039 and report back the result?20:27
ubot2Launchpad bug 665039 in linux-ti-omap4 (Ubuntu Maverick) (and 1 other project) "Crash at boot on blaze board on wlan driver init (affects: 1) (heat: 306)" [Undecided,Fix committed] https://launchpad.net/bugs/66503920:27
rsalvetithen we can close this bug20:28
rsalvetiI don't have a blaze to test20:28
orbarrongot a quick ?? --> can someone point me to the ubuntu's OMAP4 kernel location for pandaboard?20:57
rsalvetiorbarron: http://kernel.ubuntu.com/git?p=ubuntu/ubuntu-maverick.git;a=shortlog;h=refs/heads/ti-omap421:01
orbarronrsalveti: thanks21:02

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