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

=== michaelh1_ is now known as michaelh1
lfitzif i want to install ubuntu 9.04 on sd card for the sheevaplug do i need uInitrd?01:15
lfitzthis is the last line of the error: Kernel panic - not syncing: No init found.  Try passing init=01:16
lfitzbasically it starts the boot process...01:16
lfitzI have two partitions on the sd (boot partition is ext2 with uImage) and (root partition is ext3 with rootstock fs)01:17
=== rsalveti-afk is now known as rsalveti
DanaGsay, I'm interested in that spec about "port glxgears to OpenGL ES".05:13
DanaGI want to try it on my Intel netbook with libgles1-mesa stuff and libkms and such.05:14
=== rsalveti is now known as rsalveti-afk
GrueMasterjoin #panda05:46
Baybalhello06:00
sebjancooloney: Hi! Did you see my email regarding the segfault patch? Is it ok for you?07:55
ukleineknpitre: rmk refused to optimize the u-boot related targets, my patch just results in a refusal to build a non-working image08:03
ograsebjan, is there a reason for not printing "Uncompressing Linux... done" with the panda kernel ? it works fine, but its very irritating that it doesnt behave like other kernels08:35
amitkogra: there is a patch to remove that printk?08:39
ograamitk, no idea, but it doesnt print that line :)08:39
amitkon serial console?08:39
ograit boots fine nontheless08:39
sebjanogra: you are right, I didn't notice that!08:39
ograyeah08:39
amitkstrange08:39
ograhttp://paste.ubuntu.com/459728/08:40
ograthen it switches to HDMI and moves on with booting08:40
sebjanI don't know where it comes from (or does not come from :))08:40
michaelh1Pretty sure it's from the first stage decompressor.08:42
ogramy target is anyway that endusers shouldnt have to touch serial at all, all config is done via boot.scr on the vfat, so it will only confuse devs but would be nice to have it back :)08:42
michaelh1head.S?  Something like that?08:42
ukleinek"Uncompressing Linux... done" needs an implementation of putc in arch/arm/mach-xxx/include/mach/uncompress.h08:43
ukleinek... and obviously it only appears if you boot a zImage.  Do you?08:45
ograwell, uImage but made out of vmlinuz08:47
ograso it is compressed, yes08:48
amitkthe omap code has the right stubs in arch/arm/mach-xxx/include/mach/uncompress.h08:48
ograthe boot process and setup we use is identical to the beagleboard where we get that message08:48
amitkogra: You can check if there are OMAP4 related patches to arch/arm/plat-omap/include/plat/uncompress.h08:50
amitkI don't have a tree handy ATM08:50
ograheh, me neither08:51
ograthats why i asked the tree admin above ;)08:51
sebjanthere is something related to machine registration into this file (debug uart registration depends on the machine type)08:55
sebjanI see that the regular omap4 board is registered, but not the panda... I'll see if I can add the panda here08:56
ogracool, thanks :)08:58
cooloneyogra: i got it.09:10
cooloneyogra: d9f5007491e3b6693dd00487981676b6b3005d72 in our git kernel tree09:10
ograah09:10
cooloneyt d9f5007491e3b6693dd00487981676b6b3005d7209:11
cooloneyAuthor: vikram pandita <vikram.pandita@ti.com>09:11
cooloneyDate:   Sun Nov 22 10:10:49 2009 -080009:11
cooloney    omap: introduce OMAP_LL_DEBUG_NONE DEBUG_LL config09:11
cooloney    09:11
cooloney    Zoom2/Zoom3 kind of boards do not use omap uarts for console.09:11
cooloney    These use external debug board for console.09:11
cooloney    09:11
cooloney    So these boards should not have "Uncompressing Kernel...."09:11
cooloney    log put on omap uarts.09:11
cooloney    09:11
cooloney    By interoducing OMAP_LL_DEBUG_NONE option,09:11
cooloneysebjan: does our panda also affected by this patch?09:12
sebjancooloney: this is the function where the uart to use for the uncompressing trace gets selected09:16
sebjanI just tested adding the panda registration here and I can now see the trace on my panda09:17
sebjanI will post the patch to my tree (it's a 1 line)09:17
cooloneysebjan: thanks, man09:20
ogracooloney, sebjan, did one of you test the kernel with X ?09:22
ograit freezes here no matter what i try09:22
ograhmm, or not ... just seems extremely slow09:23
ograi guess there is still some issue with the SD/MMC I/O09:24
cooloneyogra: i am waiting for my hw. so never try that X before09:26
ogracooloney, oh, sorry i tend to forget that you dont have the HW09:26
cooloneysebjan: how about you?09:26
ograseems the freezes happen if i dont specify mem=463M on the cmdline09:27
ogranow it works but is very slow09:27
amitkcooloney: do you have a beagle board?09:32
cooloneyamitk: no09:32
amitkcooloney: you will in Prague :)09:32
ograamitk, he'll get a panda soon09:32
ograi think its on its way already09:32
cooloneyamitk: yeah, i will. panda and prague, hehe09:32
cooloneyogra: yeah, i hope it will arrive this week09:32
amitkcooloney: I'm bringing you a beagle as well09:32
cooloneyamitk: thanks a lot09:33
ograwe need more XMs in the team09:33
ograXM support is still behind09:33
amitklag has one now09:34
ograyeah09:34
ograi still havent found whats wrong with our u-boot yet09:34
cooloneycool man09:34
ogracurrently the XM doesnt boot with the archive u-boot09:34
lagMine does09:35
lagJust not initrd09:35
ogralag, thats equivalent to "doesnt boot" :)09:35
ograinitrd is a requirment for ubuntu images09:35
lag:)09:35
ogramine does boot with the binary from rcn, including initrd09:36
ograbut i cant find the difference in our sources, he seems to use the same i use09:36
sebjanogra: I have been doing some testing with the UNE UI, is that what you mean?09:36
ograsebjan, well, i just wanted to know if X seems usable for you, here it freezes every time it accesses the SD09:37
ograi'm currently testing the panda images from http://cdimage.ubuntu.com/ubuntu-netbook/ports/daily-preinstalled/ the oem-config screens take ages to show up09:38
ogra(note that only 20100706.1 will have the mem=463M fix in them, they are currently building)09:38
sebjanI did not have such issues the last time I tested... It was not very fast, but I suspected it was because it seems that both UNE and the regular gnome desktop UI are started (bug 596004)09:39
ubot2Launchpad bug 596004 in netbook-meta (Ubuntu) "with 2D UI (une-efl) selected, the gnome desktop toolbar is also visible and seems to be running (affects: 1) (heat: 242)" [Undecided,New] https://launchpad.net/bugs/59600409:39
ograwould be helpful if the panda had some indicator LED for SD access, you never know if it reads or actually is dead09:39
ograsebjan, yeah, that bug is on my list but shouldnt cause much slowdown09:40
* ogra triages it properly09:40
ogragah, now it seems to hang hard again09:41
ograand i was already through oem-config and in the slideshow09:42
ograsebjan, what kind of SD's do you use ?09:43
* ogra currently has a class 409:43
sebjanogra: I also use class 4 cards (Kingston)09:44
ogra(micro SD with adapter)09:44
ograhmm doesnt seem to come back to life09:45
sebjan(regular SD card for me)09:46
* ogra wishes he could at least get far enough to have a user created 09:47
ograso i could read any logs09:47
ogracooloney, is the binary we have in the archive recent ? does it have all fixes and patches ?09:49
cooloneyogra: the M ti-omap4 kernel? i we got lots for fixes and patches from sebjan except the syslink module patch09:58
cooloneyogra: what's uname -a in your system09:58
lagsebjan: Is syslink discoverable?10:00
sebjanlag: you'll have to explain me what it means 'discoverable' :)...10:02
cooloneysebjan: i am guess, it means probable?10:04
lagAt the moment (with the module patches applied) the kernel doesn't 'discover' the device and load the modules10:04
cooloneylag: did you add the platform device and resource in the panda board files in mach-omapX?10:06
lagYes10:07
lagIf I register the device alone I get KERNEL and UDEV uevents10:08
lagBut I need a DRIVER uevent10:08
lagI've tried registering a platform driver, but because the device is unknown to the kernel the .probe function is never called10:09
cooloneylag: the .name field of the platform device in your board file should be the same of the driver platform name in syslink driver. IMHO10:15
sebjanlag: I suppose that we are missing something either in the device declaration or in the driver... this is what we need to get sorted out10:16
lagcooloney: It is10:17
lagI've moved the .probe function to the same place as the __init function10:17
lagThe __init function is called and the driver is registered successfully10:17
lagBut .probe is still not called10:17
lag.probe functions are not called if the kernel does not know about the device10:18
lagHence the discoverable question10:18
lagsebjan: It's not even getting as far as the driver10:18
lagsebjan: I think we need more information in my (__init) function to tell the kernel about the existence of the hardward10:19
laghardware*10:19
ogracooloney, well, we only had one upload yet and i cant get to a point in the image to type in uname (i cant get past user creation before the board hangs hard)10:19
lagI am in the process of putting the driver & device register code in the same place - see what that does10:20
ogracooloney, so i cant really say what uname would give, but i'm pretty sure its 2.6.34-900.1 since that was the only upload we had yet10:20
cooloneyogra: oh, please wait, i can provide a new testing kernel for you,10:21
ogralag, arent there any other devices you could just steal from ?10:21
ogracooloney, doesnt help, i'm testing images, they build from the archive10:21
ogracooloney, we should rather kick leann to do a new upload if the tree has so many patches10:21
cooloneyogra: ah, right10:21
cooloneyogra: ok, i think rtg will upload that10:22
ogralag, i could imagine rfkill to be a platform device doing something similar to what we need10:22
ogracooloney, ah, right, he did the last upload too, i missed that10:22
sebjanlag: send me patches of your current changes, and I'll tell you if I have an idea and try to play with it this afternoon10:24
lagogra: No, I can't find any other devices that do this10:24
ogragah10:28
=== amitk is now known as amitk-afk
ograthe plymouth splash looks really good on the panda :)10:36
=== hrw|gone is now known as hrw
=== amitk-afk is now known as amitk
=== jussi is now known as Guest7125
=== jussi01 is now known as jussi
ogralag, could you paste the Hardware line of a beagle XM for me ?12:39
ogralag, from /proc/cpuinfo12:39
lagYup - 2 mins12:42
ograhrw, your openjdk build, how did you do the testbuild, in a clean chroot ?12:42
hrwogra: no - in normal BB system12:42
ogralag, no hurry, anytime you find the time is fine12:42
ograhrw, definate 2normal BB system"12:42
ogras/2/\"12:42
lagIt's okay - I'm waiting for an email from linux-hotplug12:42
hrwogra: quite up-to-date maverick12:42
ograopenjdk needs itself to register the ca certificates but the lucid openjdk seems to segfault here, what openjdk version did you have installed for the build ?12:43
ogra(keytool is a java app and calls the former openjdk while installing the build deps)12:44
hrwogra: I did "apt-get build-dep openjdk-6", then "apt-get source openjdk-6", "cd openjdk-6-*;debuild -b -uc -us"12:44
ograhmm12:44
hrwogra: did not looked at versions etc12:44
ograLANG=C LC_ALL=C keytool -importcert -trustcacerts -keystore $KEYSTORE -providerClass sun.security.pkcs11.SunPKCS11 -providerArg '${java.home}/lib/security/nss.cfg' -noprompt -storepass "$storepass" -alias "$alias" -file "$cacertdir/$pem" > $log 2>&112:45
ograthats the line that segfaults12:45
ograand openjdk ships /usr/lib/jvm/java-6-openjdk/jre/bin/keytool12:45
ogra(which /usr/bin/keytool links to through an alternative)12:46
hrwkeytool error: java.lang.RuntimeException: Usage error, sun.security.pkcs11.SunPKCS11 is not a legal command12:46
ograi dont get how it could build for you while it doesnt on the buildd12:46
hrwogra: want shell access to that beagle?12:46
ograno12:47
ograso it doesnt segfault for you apparently but just complains12:47
ogradoes apt-get install --reinstall ca-certificates-java work for you without any errors ?12:48
hrwSetting up ca-certificates-java (20100412) ...12:57
hrwProcessing triggers for initramfs-tools ...12:57
ogravery weird12:58
hrwhttp://hrw.pastebin.com/4ZSwj2zP12:59
ograon the buildd /var/lib/dpkg/info/ca-certificates-java.postinst fails12:59
hrwroot@beagle:/mnt/hrw/UBUNTU# /var/lib/dpkg/info/ca-certificates-java.postinst configure13:00
hrwcreating /etc/ssl/certs/java/cacerts...13:00
hrwdone.13:00
hrwhttp://hrw.pastebin.com/7KqebZ5e shows ver13:01
=== rsalveti-afk is now known as rsalveti
rsalvetimorning13:04
ograhrw, aha ... Setting up default-jre-headless (1.6-38) ...13:06
ografrom the build log13:06
ograogra@osiris:~/Devel/branches/jasper-initramfs-0.10$ apt-cache show ca-certificates-java|grep Depends13:07
ograDepends: ca-certificates (>= 20090814), openjdk-6-jre-headless (>= 6b16-1.6.1-2) | java6-runtime-headless13:07
ograogra@osiris:~/Devel/branches/jasper-initramfs-0.10$ apt-cache search java6-runtime-headless13:08
ogradefault-jre-headless - Standard Java or Java compatible Runtime (headless)13:08
ograopenjdk-6-jre-headless - OpenJDK Java runtime, using Hotspot JIT (headless)13:08
ograsun-java6-jre - Sun Java(TM) Runtime Environment (JRE) 6 (architecture independent files)13:08
ograso for whatever reason default-jre-headless gets installed on the buildd instead of openjdk-6-jre-headless13:08
ograhrw, the versions in http://hrw.pastebin.com/4ZSwj2zP cant be right13:17
ograhrw, 6b20~pre1-0ubuntu2 didnt build13:17
ograwhere did you get it from ?13:18
ograsmells like you have your testbuild installed now13:18
ograthe last one that built on the buildd was 6b18-1.8-2ubuntu213:18
hrwI built and installed13:19
ograyeah, i need to know what version was used during installation of ca-certificates-java13:20
ograwhich indeed came in with your apt-get build-dep13:21
hrwprobably 6b1813:21
* ogra doesnt get why it didnt segfault for you13:22
rsalvetiogra: do you know if for maverick we have different kernel trees for omap? or both omap3 and omap4 should work with the ti-omap4 branch?13:48
* rsalveti looking at maverick's kernel13:48
ograthe omap3 binary is built from the normal ubuntu tree13:49
loolrsalveti: I asked recently, and omap3 was broken in the omap4 branch13:49
ograomap4 comes from the ti-omap4 branch13:49
ograrsalveti, omap4 is maintained by cooloney, omap3 by lag and mpoirier13:49
rsalvetioh, ok, so different branches for both13:50
rsalvetior it should all work at the same branch?13:50
ograwell, only a different branch for omap4 actually13:50
rsalvetiit's just that I just saw one ti-omap4 branch at the gitweb13:50
ograthe big target is that omap4 goes to mainline at some point, then both binaries will be built from the ubuntu branch13:51
ograbut since omap4 is over 700 patches that will take a while13:51
rsalvetioh, sure :-)13:51
ograand is unlikely to happen for maverick13:51
rsalvetigot it now, at least for omap 3 we're in a better situation13:51
rsalvetinow the problem is just omap413:51
rsalvetiyeah, don't think so13:52
ograso currently TI takes the ubuntu maverick branch and rebases their patches on top of that13:52
ografor omap413:52
ograwhich makes it being a bit behind in versioning13:52
npitreukleinek: I don't get why a non working image would be built13:52
npitreukleinek: see my rational in my answer13:52
npitreukleinek:  uboot needs to be fixed13:53
rsalvetiogra: yeah, right13:53
rsalvetitons of patches, maybe for 36 or 3713:53
ograright13:53
rcn-eenote: basic panda support is in tmlind's tree for 36.. not sure if it boots, waiting for ups myself..13:55
ograrcn-ee, "basic" isnt want we need for maverick :)13:55
ograalso the tree we use is blaze+panda capable13:56
rsalvetircn-ee: yeah, just saw the commits13:56
rcn-eeyeah, but not everyone use the default maverick kernel. ;)13:56
* rsalveti is looking forward to put my hands at a panda board13:57
ograrcn-ee, well ...13:57
ograrsalveti, no fun yet ... multiple hangs etc13:57
rsalveti700 patches, I believe maverick will be much more than the basic13:58
ogradefinately13:58
rcn-eeyay, sounds like fun.. ;)  just like my custom imx515 board...13:58
hrwrsalveti: at any pandaboard or at own pandaboard?13:58
rsalvetiogra: hangs are always fun, at some way haha :-)13:58
ograheh13:58
rsalvetihrw: the omap4 pandaboard :-)13:59
hrwrsalveti: by 'any' I meant 'not own'14:00
lagogra: That's not true14:01
lagI am working on omap3 & omap414:01
* ogra hangs his head in shame 14:01
ograrsalveti, correction: lag woprks on *all important kernels* :)14:02
lagNow you're talking14:02
amitkrcn-ee: what custom imx515 board?14:03
amitkrcn-ee: want to send me patches to add board support? ;)14:03
hrwamitk: someone offered efikamx few days ago...14:12
amitkhrw: the board or code?14:12
hrwboards14:13
hrw#linaro:02:10 < zumbi> if someone fancies an efikamx board to test out linaro, let me know14:14
hrwSaturday 3rd July14:14
rsalvetihrw: oh, sorry :-) do you know when pandaboard will be public? like beagleboard14:15
hrwrsalveti: nope14:15
amitkrsalveti: should be Q414:16
amitkhrw: Do you know if the efiamx comes with documentation to enable in mainline?14:16
armin76Q4? wow14:17
armin76amitk: it doesnt14:18
amitkarmin76: pity. I don't want to spend time on it then14:20
hrwamitk: no idea14:26
ukleineknpitre: I'm not sure anymore about ZRELADDR, IIRC something was broken with ZBOOT_ROM images for U-Boot14:55
lagogra: Sorry for the delay - I had to make and re-flash a new card14:58
lagogra: Hardware        : OMAP3 Beagle Board14:58
ograperfect14:58
ograsame as C414:58
* ogra is happy he doesnt need to special case for XM14:59
lag:)14:59
lagI'm pleased you're pleased14:59
ogra:)14:59
lagperisa14:59
lagDoh15:00
lagActually: lol & ogra15:00
lagI need a word ;)15:00
* ogra pulls up the dictionary15:00
lagYou've wasted a working day!15:00
ograa long one or rather a short one ?15:00
lagLeading me up the garden path15:00
lagREF: /lib/udev/rules.d/80-drivers.rules, DRIVER!="?*", ENV{MODALIAS}=="?*", RUN+="/sbin/modprobe -b $env{MODALIAS}"15:01
lagDo you know what that means?15:01
laglool*15:01
laglool, ogra: Do you subscribe to linux-hotswap?15:02
ograif DRIVER is set run modprobe ?15:02
lagNOOOOOOOOOOOOOOOo15:02
ogralag, nope, i'm no kernel guy15:02
lagIt doesn't mean that15:02
lagIt's what you told me it meant15:02
ograso what does it mean ?15:02
lagArhgggggggggggggggggggggggggg15:02
lag:)15:02
ograeducate me :)15:02
ograugh, it means if DRIVER is *not* set, right ?15:04
lagIt means: This rule is skipped only if DRIVER is set15:04
lagHang on15:04
loollag: Oh right, DRIVER!=, I missed this bit15:05
ograright, i see that now, if DRIVER is not set but MODALIAS exists in the environment, call modprobe15:05
lagFollow this: http://www.spinics.net/lists/hotplug/msg03946.html15:06
loollag: I read DRIVER=15:06
* ogra too15:06
lagArrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr15:06
ogra:(15:06
* lag crys15:06
loollag: But the MODALIAS bit is ok, right?15:06
* lag cries*15:06
lagFollow that link I posted15:06
lagThis has cost me a day :(15:06
loollag: But the upside is that we're all three educated on what DRIVER is used for, and you have a path forward!15:07
lagI guess there's always an upside15:07
ograand your MODALIAS is wrong i'D say15:07
lagWhy is it wrong?15:07
ogra"platform:"15:07
lagWhat should it be?15:08
ograthe module name15:08
loolUh no15:08
ograthats what modprobe -b calls in the rule above15:08
lagThe real MODALIAS is: platform:syslink15:08
lagI ****'ed out the syslink15:08
ograand the module name is syslink15:08
loolthat's ok, you just need to modalias the .ko now15:09
ogra /sbin/modprobe -b platform:syslink will error out, no ?15:09
loologra: Well not if some module has an alias for platform:syslink ?15:09
ograin sysfs ?15:10
loolno, in the .ko15:10
ograi.e. where would modprobe get that from ?15:10
loologra: modinfo e1000e|grep alias15:10
ograah15:10
ograoh, right15:10
laggrep MODALIAS /var/log/udev15:11
ograyeah yeah :)15:11
* ogra admits again that he's no kernel guy15:11
* lag goes to work15:12
* lag takes a big breath then --^15:12
* ogra goes to eat some icecream15:15
laglool: The driver is called syslink_ipc.ko15:19
lagmodule == driver15:19
lagMODALIAS=platform:syslink_ipc15:19
lagSurely there should be an association?15:20
lagKERNEL[946692859.898376] add      /devices/platform/syslink_ipc (platform)15:20
loollag: That doesn't work?15:20
lagNo15:20
lagKERNEL[946692859.898376] add      /devices/platform/syslink_ipc (platform)15:20
lagUDEV_LOG=315:20
lagACTION=add15:20
lagDEVPATH=/devices/platform/syslink_ipc15:20
lagSUBSYSTEM=platform15:20
lagMODALIAS=platform:syslink_ipc15:20
lagSEQNUM=73515:20
lagThat is my uevent15:20
lagBut udev isn't loading the module15:20
loollag: But platform:syslink_ipc != syslink_ipc15:20
lagCorrect15:21
loollag: Try modprobe platform:syslink_ipc for yourself15:21
loolAnd modinfo syslink_ipc15:21
lagubuntu@panda:~$ modinfo syslink_ipc15:21
lagfilename:       /lib/modules/2.6.34-901-omap4/kernel/drivers/dsp/syslink/multicore_ipc/syslink_ipc.ko15:21
laglicense:        GPL15:21
lagauthor:         Texas Instruments15:21
lagsrcversion:     7329950ABDD680C3701426C15:21
lagdepends:        syslink_proc,omap_notify,syslink_proc4430,syslink_platform,notify_ducatidriver,syslink_ipu_pm15:21
lagvermagic:       2.6.34-901-omap4 SMP preempt mod_unload ARMv715:21
lagparm:           ipc_name:Device name, default = syslink_ipc (charp)15:21
lagparm:           ipc_major:Major device number, default = 0 (auto) (int)15:21
lagparm:           ipc_minor:Minor device number, default = 0 (auto) (int)15:21
loolYou probably want an actual alias then15:21
loolI think you need to define that in your kernel module15:21
lagSo an alias | and entry in udev rules?15:22
loolYou shouldn't need an entry in udev15:22
lagOR15:22
loolAIUI, udev runs modprobe platform:syslink_ipc but that fails to find anything15:22
loollag: Right, but you probably dont want an udev rule, just an alias15:22
lagI don't know how to do that15:23
* lag looks15:23
loolOr you change the kernel to emit another event which triggers the load, perhaps another rule would match; I think the modalias is the easiest path15:23
lagMODULE_ALIAS("platform:" DRV_NAME);15:24
lagBingo!15:24
loolEh right, was grepping for something similar in drivers/, but I should have looked in arch/arm15:25
loolarch/arm/mach-omap2/mailbox.c has another instance15:25
lagThat was in /drivers15:26
ukleineklag: linux/mod_devicetable.h #defines PLATFORM_MODULE_PREFIX, not sure using it is worth though15:27
loolI mean it would have been quicker to grep arch/arm15:27
lag#define PLATFORM_MODULE_PREFIX"platform:"15:28
lagLol15:28
loolukleinek: Not widely used it seems (drivers/base/platform.c)15:28
lagMODULE_ALIAS(PLATFORM_MODULE_PREFIX, DRV_NAME);#15:28
lag:)15:28
ukleineklag: no , please15:28
lag?15:28
ukleineklool: yeah, I know, just stumbled over it some time ago15:28
ukleinekMODULE_ALIAS(PLATFORM_MODULE_PREFIX DRV_NAME);15:28
lagOh, I see15:29
lagI'm not going to use it anyway15:29
lagI was just messing :)15:29
lagMy first attempt is the most common15:30
=== amitk is now known as amitk-afk
=== bjf[afk] is now known as bjf
=== rsalveti is now known as rsalveti-afk
=== rsalveti-afk is now known as rsalveti
=== fta is now known as fta_
=== amitk-afk is now known as amitk
robschiI'm trying to install ubunt-arm on the beagleboard via netinstall. Unfortunately, my usb-nic-adapter (it is a moschip type) is not recognized as a network device, although it worls perfectly on a x86 linux system. Where can I find the kernel sources/patches and kernel config in order tu build my own uImage file?17:55
hrwtry maverick first?17:56
rsalvetirobschi: do you know the module responsible for it at x86 already?17:59
ogra_cmpcthere is a fix for it but the netinst image hasnt been regenerated yet17:59
ogra_cmpceither do a server install or use maverick18:00
ogra_cmpcor wait for lucid .118:00
robschirsalveti: lsmod replies with things like18:02
robschimii                     4032  3 mcs7830,usbnet,r816918:02
npitreukleinek: I never used ZBOOT_ROM with U-Boot18:02
npitreukleinek: I think U-Boot is getting too much in the way for that feature18:03
robschiserver install does not work, becaus the installer insists on using a cd-rom drive18:04
GrueMasterrobschi: I had filed a bug on this in Lucid, but The number (and status) currently escapes me.18:04
* npitre thinks that U-Boot is often too much in the way, period.18:04
ogra_cmpcrobschi, server install was tested by several people, it should just work18:04
ogra_cmpcrobschi, did you follow https://wiki.ubuntu.com/ARM/BeagleServerInstall ?18:06
robschiogra_cmpc: yes, i did18:06
ogra_cmpcthats strange, the released image was heavily tested18:07
sebjanlag: I have my syslink modules auto-loading finally :). The implementation is not clean yet, but the mechanism is functional at least. I'll send you my changes so that we can discuss them together.18:07
lagI have also finished :)18:08
* ogra_cmpc thinks lag found the right solution too today :)18:08
robschiogra_cmpc: i'm installing over serial port, but this should not influence the behaviour of the installer, or does it?18:08
ogra_cmpcsnap ....18:08
sebjanlag: cool :)18:09
lagWhat did you do?18:09
ogra_cmpcrobschi, as long as the boot.scr stays intact18:09
ogra_cmpc(and you dont drop the preseed values from the kernel cmdline)18:10
robschiogra_cmpc: i will check this again.18:11
sebjanlag: I'll send you a patch shortly, I am doing some quick reformtating and squashes. But is basically is what we talked about and what you dealed about here this afternoon ("platform:")18:11
lagOh, you thought you'd sneak in there with my info - cheeky!18:12
sebjanlag: I have worked on this in dotted line since last week, and sure would have spent some time on this platform thing :)18:13
sebjanlag: but I am sure the patch needs re-disgn to put things in proper files at least18:15
lagSo which patch should we use? I can submit mine either today or tomorrow morning if you like?18:15
lagMy code is only a few lines18:15
lagI think it's 10 lines of code18:15
sebjanlag: I am ok to use yours. Please wait until I send you mine so that we can cross-check what we did is correct. I'send send you my patch in a few minutes.18:18
lagNo problem sebjan18:18
sebjanlag: I just sent it to you18:26
lagI received it18:26
lagsebjan: I think platform_device_alloc() is deprecated18:27
sebjanlag: ok, I did not check that (the device creation part is a rought copy/paste from some syslink code)18:29
lagsebjan: http://kernel.ubuntu.com/git?p=lag/ubuntu-maverick.git;a=commitdiff;h=b8bec3a6239f0d9d23250eb0265bd56f77198384;hp=05cd276ae6bfe20745244f2285fab2b3d40ca1e318:34
robschiogra_cmpc: yes, the bootargs in boot.scr have not been correct, because I bootet the system manually without boot.scr. Now it installs fine. Thank you for your help.18:36
lagsebjan: I have to go - speak tomorrow18:37
sebjanlag: ok, me to, talk to you tomorrow18:37
lagHave a good night all18:38
* lag out18:38
markos_anyone knows if maverick gcc supports -mfloat-abi=hard?18:39
hrwhrw@home:~/xdeb$ arm-linux-gnueabi-gcc hello.c -mfloat-abi=hard18:40
hrw/usr/lib/gcc/arm-linux-gnueabi/4.5.1/../../../../arm-linux-gnueabi/bin/ld: error: /tmp/cckGhdno.o uses VFP register arguments, a.out does not18:40
hrw/usr/lib/gcc/arm-linux-gnueabi/4.5.1/../../../../arm-linux-gnueabi/bin/ld: failed to merge target specific data of file /tmp/cckGhdno.o18:40
hrwmarkos_: you need to rebuild all software with it iirc18:41
hrwhrw@home:~/xdeb$ arm-linux-gnueabi-gcc -mfloat-abi=hard test.c -o test.o -c18:42
markos_hrw: I know, the question is if it supports it, previously it didn't18:42
markos_the error msg you gave is a good sign :)18:42
markos_previously it just said "not supported"18:43
markos_previously = karmic18:43
armin76markos_: well, iirc you can't make gcc not support it18:43
hrwhttp://pastebin.com/TXTBgRij is assembly of generated source18:43
armin76it was included on gcc-4.5, so...18:43
markos_armin76: with an old gcc version you can :)18:43
hrwhttp://pastebin.com/2S6ztE87 is source used18:44
ssvbmarkos_: codesourcery != gcc :)18:44
markos_ssvb: I know, I was just curious if I could use maverick's gcc instead of codesourcery if it supported hardfp18:45
markos_hrw: what flags did you use (for comparison)18:46
hrwmarkos_: hrw@home:~/xdeb$ arm-linux-gnueabi-gcc -mfloat-abi=hard test.c -o test.o -c -s^C18:46
hrwarm-linux-gnueabi-objdump -D test.o18:46
loolmarkos_: The gcc-4.4 we prepare for maverick armel has CodeSourcery patches (gcc-linaro)18:47
markos_ok, just wanted to check optimizations settings18:47
markos_lool: great to know18:47
hrwbasically each FSF gcc release has some of codesourcery patches ;)18:47
ssvblool: does gcc-4.4 show good performance?18:49
markos_ssvb: here I get up to 35% faster than softfp in pure fp benchmarks -using codesourcery18:50
hrwmarkos_: hardfp contra softfp?18:50
ssvbin my limited benchmarks, gcc-4.4 has major performance regressions on arm platform for some tests when compared to gcc 4.3 and 4.518:51
markos_hrw: yes18:52
hrwmarkos_: on A9 it is less difference afaik but who has A9...18:52
armin76hrw: me :D18:53
markos_hrw: http://www.powerdeveloper.org/forums/viewtopic.php?p=13602#1360218:53
markos_hrw: i don't have an a9 (yet) to test hardfp18:53
markos_perhaps the difference is smaller, I don't know18:54
ssvbmarkos_: yes, I know :) I also have seen the speedup on some artificial benchmarks that I did myself18:54
ssvbis ubuntu going to use -mfloat-abi=hard ?18:55
hrwssvb: there were some discussions about making such rebuild for tests18:56
hrwirc18:56
hrwiirc18:56
ssvbgood18:57
ogra_cmpcubuntu itself will likely not change in maverick, in maverick+1 we might take as default what linaro develops atm18:57
ogra_cmpcsince they do the toochain changes during maverick18:57
ogra_cmpcand test them etc18:57
=== rsalveti is now known as rsalveti-afk
markos_ssvb: know of any way to detect the current abi on a system?19:04
markos_or in a file for that matter19:04
=== rsalveti-afk is now known as rsalveti
ssvbmarkos_: what do you mean?19:06
ssvbmarkos_: via gcc predefined macros?19:06
ssvbmarkos_: you can use 'readelf -a' to get abi of some binary19:07
markos_ssvb: that's what I wanted yes19:09
ssvbbinaries using hard vfp will have "Tag_ABI_VFP_args: VFP registers"19:09
hrwyep19:10
loolssvb: I would be interested in discussing your performance regressions19:10
markos_ssvb: cool thanks19:11
loolssvb: I'm animating the toolchain WG in Linaro, I'd love if we could check your performance regressions against our Linaro toolchains19:11
loolssvb: I know 4.5 is much better than 4.4, and I believe Linaro 4.4 / CodeSourcery 4.4 has much of 4.5 improvements19:12
ssvblool: http://hardwarebug.org/2009/08/05/arm-compiler-shoot-out/19:12
ogra_cmpclool, "animating" ?19:12
ogra_cmpclike http://www.youtube.com/watch?hl=de&v=QAue4hnH8-A ?19:12
ssvbI generally don't trust random blogs, but it matches the results of my own benchmarks19:12
ssvbin some cases gcc 4.4 produces code which is up to 30% slower19:13
markos_ssvb: so I guess a way to detect is a system is softfp/hardfp would simply grep Tag_ABI_VFP_args: VFP registers in /lib/libc.so.619:13
ssvblool: and what is very easy to verify, gcc 4.4 always generates bigger binaries (maybe it's one of reasons why it is so bad for some applications)19:15
ssvblool: both gcc 4.3 and 4.5 generate code which is either a lot faster than 4.4 or show about the same performance19:17
ssvblool: and 4.5 is faster than 4.319:17
loolssvb: thanks for sharing tihs link19:22
loolssvb: Ok, well I will bring these up at our next meeting, I think it's good feedback19:22
loolssvb: we carry the CodeSourcery patchset in Linaro GCC, so it's rather good for us it seems19:23
loolBut the RVCT tests are interesting too19:23
ssvblool: ffmpeg may be not a very good example because it's coding style is not so typical19:32
ssvbbut my own benchmarks included pixman library (its regression tests) and a simple C++ roguelike game :)19:32
ssvbI have not tried thumb2 though, maybe it would show some totally different results19:32
ssvblool: what do you generally use to evaluate toolchain performance?19:33
hrwhave a nice rest of day19:33
=== hrw is now known as hrw|gone
armin76ssvb: hello world :D19:41
loolssvb: In my experience, it's hard to get definitive informationon who uses what benchmarks19:42
loolssvb: Kind of secret sauce19:42
loolssvb: So in Linaro we aim at building tools to measure more things, such as size of binaries19:42
loolssvb: thumb2 is really important, the size difference might be just enough to fit in cache, and make a huge difference19:42
markos_lool: but you lose performance with thumb219:43
loolmarkos_: A very small amount, and it's decreasing with new SoCs19:43
loolmarkos_: And it's only lose if you don't consider cache/memory pressure19:44
loolplus, storage loading times19:44
markos_I see19:44
loolit all adds up, it's not much but ...19:44
* ssvb wonders if gcc can (or does) generate arm code for "hot" functions19:45
ssvbit would make a lot of sense19:45
loolI think you can annotate fhes,e or use compiler flags for source files, but I'm not sure you can do that at runtime with gcc yet, while I think it is possible with LLVM, but I have no experience with it19:46
ukleineknpitre: apropos of u-boot, we at pengutronix try to make it better with barebox.  At least I like it better19:46
ssvbI guess mixing arm and thumb2 intelligently may provide some really good results19:47
loolssvb: BTW I'm not sure you can build ffmpeg with thumb219:47
loolbut it's not expected to make a big difference anyway19:47
loolssvb: i think we switched to ARM for ffmpeg due to so much handcoded assembly that it would be hard to fix19:48
ssvblool: http://hardwarebug.org/2009/03/25/thumbs-up/ :)19:48
looleh19:53
robclarkfwiw, it depends on if it is inline asm or just separate complete functions implemented in arm asm..19:56
robclarkit is no problem to call arm functions from thumb code19:57
loolI think it's just a lot of places with assembly which need to be reviewed19:57
robclarkahh, gotcha19:59
ssvbI think some selected applications and libraries just need good performance, so they may be better compiled for arm just for this reason19:59
robclarkbtw, on a related topic..  I recommend -O3 when you are building libfaac..20:00
robclarkseemed to help a lot for me.. like 2x+20:00
robclark(the faac code uses a lot of floating point.. not sure if that makes much difference in how effective the compiler optimizations are..)20:01
=== Erkan_Yilmaz is now known as Snow_White
=== prpplague^2 is now known as prpplague

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