/srv/irclogs.ubuntu.com/2012/03/07/#ubuntu-arm.txt

=== pizthewiz_ is now known as pizthewiz
janimo`infinity, one way of solving the ghc issue is by not touching ghc at all, instead making llvm default to float-abi=hard on armhf. I don't know what the downside of that is, besides being Ubuntu specific change06:29
janimo`llvm's llc being a cross-compiler always - native being a particular subset - maybe it is good to always have explicit flags for almost everythinh06:30
micahgjanimo`: you can ask Sylvestre from Debian06:54
janimo`micahg, ok thanks06:55
micahgjanimo`: also, I have another Chromium upload today, so let's hope armhf builds this time06:55
janimo`micahg, oh nice, let's hope it does :)06:55
suihkulokkiThis would be nice to get to precise: http://sourceware.org/ml/libc-ports/2012-02/msg00079.html08:22
micahghttps://launchpad.net/ubuntu/+source/chromium-browser/17.0.963.66~r124982-0ubuntu1/+build/3265949 will be the entertainment for this morning :)08:41
=== zyga-xchat is now known as zyga
sveinseogra_, infinity : What /is/ the expected behavior on Ubuntu (in general) if the RTC clock has been reset (due to empty battery etc.)?09:25
ogra_sveinse, i belive there are various userspace apps that will have issues once you drop back to the epoch09:40
ogra_but i cant tell for sure ...09:42
ogra_what i know is that for example gdm has probs with autologin once the epoch kicks in, but since we switched to lightdm thats not an issue anymore for us (and i doubt anyone will look into it with much motivation, now that gdm is in universe)09:43
sveinseogra_, I mean, is it expected that the system should start up normally?09:43
sveinseE.g. since there was a need for fixrtc in the first place, I mean09:44
ogra_no idea, really, i havent tried it .... and on i.e. the pandaboatd the "epoch" was picked by TI and defaults to 1990 ... so we wouldnt have these issues there at all09:44
ogra_fixrtc stems from a time where there was a bug in fsck09:44
ogra_that bug was fixed post lucid, but we kept fixrtc for the potentially broken userspace issues09:45
ogra_its just still around for historical reasons09:45
ogra_the initial bug that caused its existance is long gone09:45
sveinseyeah, so my mountall (perhaps fsck) lockup is worth investigating -- even on natty09:45
ogra_right09:46
ogra_though i doubt anyone will invest time into natty unlerss someone sends a patch that can be easily included09:46
ogra_simply because its EOL so soon09:46
sveinseyes, because the reason I'm bringing this up, is that we have been running with protoypes for over a year now. And we've never seen this lockup before. I can't honestly belive that all of these units have had valid rtc contents.09:48
sveinseSo it could be a fsck-kernel regression of sorts.09:48
sveinseI'll take a look at it since we have to fix it anyways. I'll keep you in the loop09:48
sveinseWhile I'm at it: Our hw is headless, we just have a serial console. Yet I see mountall connecting to plymouth. How can I direct the output (like from fsck) from plymouth out on /dev/ttyO2 ?09:50
ogra_you should be able to use the text theme, it should just display on the default console you set on the kernel cmdline09:58
sveinsethanks09:58
ogra_if that doesnt work, ask the guys in #ubuntu-server, they definitely have experience with headless servers that run fsck on serial10:00
=== dmart_ is now known as dmart
=== zyga is now known as zyga-afk
janimo`Laney, for ghc I assume you want a clean and properly upstreamable patch for armhf ftbfs not just any fix until upstream fixes it?12:33
=== zyga-afk is now known as zyga
Laneyjanimo`: I don't know how long the upstreamable patch would take. I'm quite keen to get it fixed in the distro ASAP so if we need to do it in two stages then that's OK with me.12:54
LaneyI tried some stuff including using cpp on the Debian porterbox but nothing has stuck yet12:54
Laneyand the builds take so long which makes it quite frustrating12:55
janimo`Laney, worst case is put a sed in debian/rules, guarded by ifdef armhf :)12:55
Laneyyeah12:55
janimo`to append -float-abi=hard in that one .hs file.12:55
janimo`evil but matches your ASAP requierement12:55
janimo`I looked at what it takes to make it proper(er)12:55
janimo`and it needs changes across many haskell files12:56
LaneyI don't mind that. Or you could have a .patch that is applied and unapplied conditionally12:56
janimo`Laney, wait I keep forgetting to ask this. Is there support for debian/patches/foobar.patch.armhf ?12:56
janimo`if so, much cleaner than running sed :)12:57
janimo`apply a single line patch if armhf12:57
Laneyno(t that I know of)12:57
janimo`ah, shame12:57
Laneyit would be ifeq(armhf,$(DEB_HOST_ARCH))\n\tpatch ...12:57
janimo`and that patch would not be listed in series?12:57
Laneyindeed, managed separately12:57
Laneyit's not that nice but it makes the separation cleaner12:58
Laneydon't know if it's worth it12:58
janimo`not vastly cleaner than a search and replace then12:58
janimo`true. A bit more declarative12:58
Laneyanyway this issue blocks the large transition so the sooner it is resolved the better imho12:58
janimo`Laney, the sooner is calling sed then. Or I can try coming up with a patch - which if not what upstream would make it is still a patch.12:59
janimo`sed would unblock the transition12:59
janimo`and we could work on an upstreamable fix in the meantime12:59
LaneyOK, go for that then12:59
janimo`Should I try this an dupload in Ubuntu?13:00
Laneyyeah, if you're confident it will work13:00
Laneyi.e. if you don't feel the need to test build on the porterbox13:00
janimo`Laney, I test on my panda first just to be sure13:01
Laneyok13:01
janimo`Laney, I see sed is no stranger to debian/rules in ghc, called a few times already13:08
infinityjanimo`: Just make sure whatever you do is also undone in the clean target, on the off chance that someone builds the source on an armhf box.13:09
janimo`infinity, good point wrt undoing. Not sure I understand what happens though if it is built on an armhf box?14:00
infinityjanimo`: If you build the source (ie: debuild -S) on an armhf box, the patched bits would stay patched and never get unpatched on, say, armel.14:07
infinityjanimo`: Hence why clean needs to undo whatever you do.14:07
janimo`infinity, if I debuild -S on x86 before uploading is this still an issue in this particular case?14:08
infinityjanimo`: Not if you never touched it on armhf in that source tree.14:08
infinityjanimo`: (ie: if the sed/patch never ran, then building the source on x86 would work around debian/rules being incorrect)14:09
infinityjanimo`: Still, clean should always return you to a pristine source, that's kinda the point. ;)14:09
infinity(Not that there aren't plenty of broken source packages for which this isn't true)14:09
janimo`infinity, ok. I know clean should clean up, just forgot when I explciitly need to do something about it14:10
infinityjanimo`: Always. :P14:10
janimo`if I upload this change - which is not yet certain, depending on result on panda - it hopefully is a very shortlived hack, just to get other package sunblocked14:11
infinityjanimo`: But I haven't looked at ghc's debian/rules, it could be a lost cause anyway.  If it's seding the source elsewhere, odds are the clean target's already wrong.14:11
infinity(Unless clean very carefully reverses every single one of those)14:11
janimo`infinity, it is sedding ony in debian/tmp - that is less evil I guess. various install time changes in .desktop files and such from what I saw14:11
infinityAhh, yeah, that's fine.14:12
infinitySince clean will wipe out debian/tmp anyway.14:12
infinityReally, the best way to go, if it's a quiltish package, is just to have a patch, but don't have it in the series.14:12
infinityAnd just patch manually iff armhf, and unconditionally (ignoring errors) unpatch in clean.14:12
janimo`nah, luckily sedding instead of patching is not a widespread habit. I am not advocating it either, but the cost of coming up in short time with a patch spanning multiple haskell fiels and horrid M4 code seems a bit higher now14:12
infinityHeh.14:13
janimo`it is 3.0 so I think quiltish14:13
infinityFair enough. ;)14:13
janimo`only patching via vi is nastier (chort tied to testicles, etc)14:13
janimo`chord14:13
infinityNo one's stopping you from rgrep | xargs sed && dpkg-source --commit && remove from series.14:14
infinityIsh.14:14
infinityBut anyhow, as you note, it's a short-term hack, doesn't matter deeply.14:14
infinityAnd I guess the real fix needs ghc to take configure flags for float-abi, so it's not just always doing the one (wrong or right, depending) thing for armv7?14:15
infinityfpc needs similar pain applied.14:16
janimo`right, the real fix would be - AFAICT - adding code to aclocal.m4 to pass a new flag to the build depending on _VFP_ABI (whatever is's called)14:16
janimo`and that flag being added in the haskell sources and one of the ARM Arch parameters14:17
janimo`or hmm, maybe a configure flag would be indeed easier than changing m4 - did not look at what exaclty that build system does14:17
janimo`but still unless the patch to haskell is a hack and piggybacks floatabi flag of AR ISA extensions (such as NEON, VFP) where it does not logically belong14:18
janimo`it means quite more than an oneliner in .hs files14:18
janimo`every pattern match on ArchARM changed to carry one more param, even if unused in all cases14:19
janimo`so I am not very encouraged to come up with a patch knowing almost for certain it should be rethought/rewritten to match upstream's taste and future plans in this area14:20
infinityjanimo`: Assuming upstream cares at all about the distinction, yeah.14:23
infinityjanimo`: Many upstream don't seem to.14:24
janimo`they have flags for NEON, VFP, VFPD16, preV7 ARM, preV6 ARM. I assume they care :)14:24
janimo`which reminds me, I should ping llvm debian maintainer. All this hassle would be avoided if llc just defaulted to hardfloat if called on a hardfloat system.14:25
janimo`at the cost of tripping up if crossbuilt from armel sometimes14:25
janimo`I wonder if llvm should have different defaults as gcc does in our default installs14:26
infinityProbably, but I'm not terribly familiar with how llvm internals work.14:40
infinityIndividual packages clearly shouldn't have to know or care about what flags they're building with, though.  The toolchain should default to something sane.14:41
janimo`micahg, at least chromium did not fail with V8/HARD flag missing this time. gles/egl missing is at least known territory15:56
ogra_did it fail again ?15:59
ogra_bah15:59
kalikianawould it make sense to assume libgles2-mesa-dev [armel] is why it fails?16:00
kalikianaie. use armhf16:00
kalikianaI'm not so versed on multi-arch, though16:00
janimo`kalikiana, that is exactly why it probably fails indeed16:01
janimo`I know I saw that before, not sure why I did not correct it then16:01
=== zyga is now known as zyga-food
=== chrisccoulson_ is now known as chrisccoulson
oratedHello!17:59
oratedCan anyone  suggest a good board/general resources to start on ARM?18:04
GrueMasterSeveral, depending on budget and what you want to accomplish.  beagleboard.org has decent boards that are supported by Ubuntu, as does pandaboard.org.  Also, Freescale has a similar platform called the Quickstart.18:06
GrueMasterAll three are fully supported by Ubuntu with images.  Any armv7 platform will run the Ubuntu software load as well, provided you can find a kernel.18:08
oratedI went through the freescale, what's the difference between all the above you said and reaspberry pi?18:13
GrueMasterMain difference:  We don't support the Raspberry PI due to architecture differences (it is not armv7 and would require a top-down rebuild of our arm pool - ~15k packages).18:14
=== zyga-food is now known as zyga
GrueMasterWe just don't currently have the resources.18:15
MRSLHello. I'm new to Linux and trying to change the mux values in mux.c and mux44xx.c so the expansion ports J3 and J6 on the pandaboard will read GPIO rather than the standard setup. I haven't been able to figure out how to do this. I was in the pandaboard forum and they suggested I come over here for instructions. They said to start by getting a working build environment, but I don't actually know how to do that, as my Linux experien18:17
oratedGrueMaster:  Well, thanks for the input. I'll find about the other two manufacturer you said18:17
GrueMasterbeagleboard.org has three different platforms (and three different price points).  Panda is overall the best for most desktop usages (dual core, video acceleration (closed source), BT, wifi & ethernet).18:19
GrueMasterFreescale has native SATA.18:19
GrueMasterSo it really depends on what you want to use it for.18:20
=== orated_ is now known as orated
MRSLcan anyone help me, or point me to where I can get help?18:25
GrueMasterIt depends on the type of help.  irc is a really big place.18:25
MRSLhelp with changing the the mux setup on linux on the pandaboard.18:28
MRSLthe pandaboard irc sent me over here18:29
* GrueMaster goes to look at the pandaboard backscroll.18:29
GrueMasterMRSL: Best info I can give you is this:  https://wiki.ubuntu.com/Kernel/BuildYourOwnKernel18:33
GrueMasterAs to gpio manipulation, that is #pandaboard.18:33
MRSLokay, thanks18:34
GrueMasterYou can use your panda to recompile the kernel, but it can take a few hours.  Cross-compiling on my Core2Quad takes ~20 minutes.18:34
MRSLhow do you cross-compile?18:35
GrueMasterSorry I can't help much more than that.  For Ubuntu kernel specific questions, you might get more help on #ubuntu-kernel.  We can help with the arm environment here.  I know it is a PITA to bounce around IRC like this.18:36
GrueMasterThe wiki pointer I gave you has specific instructions for the omap4 kernel cross-compile near the bottom.18:36
MRSLalright thanks, I'll head there. And, its better than before, when I was absolutely stuck18:37
GrueMasterWhat are you running on your desktop?18:37
MRSLCurrently the board is running on its own. Ubuntu 10.4 runs on the desktop that I used to originally boot the board18:40
GrueMasterOne way to get a working cross-compile environment on your desktop is to download http://cdimage.ubuntu.com/ubuntu-core/daily/current/precise-core-i386.tar.gz and use it as a chroot.  That's what I am doing (and I also have Lucid on my desktop).18:42
MRSLOkay. On a side note, using the command from the wiki page to get the source gives an error saying that 'You muust put some 'source' URIs in your sources.list'. Do you know what that means?18:45
GrueMasterYes.  You will need to edit /etc/apt/sources.list.  The easiest thing is to copy the lines that start with "deb " and change the copies to "deb-src".18:46
GrueMasterThen run "sudo apt-get update"18:47
MRSLwhere is /ect? I tried to access the file and it says the directory doesn't exist.18:48
GrueMaster /etc not /ect.18:54
MRSLBugger. Now I feel thick. Yay for sleep depravation!!!18:56
GrueMasterHeh.18:56
anuvrathi19:01
anuvratI am trying to create a custom root fs .. for FriendlyARM Tiny 6410 ... and facing kernel panic ... any direction on where to look will be very helpful19:02
GrueMasterIs it based on ubuntu?19:03
MRSLAlright, it started to download the source. so thanks again.19:05
anuvrathad run the ubuntu image, but given the limited capabilities of the board ubuntu was very slow ... so I was trying to get the simplest setup19:05
anuvratGrueMaster: had run the ubuntu image, but given the limited capabilities of the board ubuntu was very slow ... so I was trying to get the simplest setup19:05
anuvratGrueMaster: is there a way to strip the gui from ubuntu arm ... I mean strip it to tis bare skeleton ... so that my low end board would be able to use it19:06
GrueMasterif it is at least armv7, you can use the ubuntu-core image as a start for your rootfs.19:07
GrueMasterOr you could use an ubuntu-server image.  They are headless and will even run on a Beagle C4.19:07
anuvratGrueMaster: okay, thanks19:09
anuvratGrueMaster: its arm 1119:12
anuvrathttp://www.friendlyarm.net/products/tiny641019:12
GrueMasterOuch.  We don't support anything lower than armv7 in our images.  All binaries are built for this.19:13
anuvratGrueMaster: so I start by downloading the ubuntu-core image19:13
GrueMasterIt won't run on arm 11.19:13
anuvratso v7 is higher than arm 1119:14
anuvratconfusing arithmetic :P ... okay ... anyways .. any workarounds?19:14
GrueMasterArm 11 is armv6 (iirc) architecture.  Arm numbers were very confusing in the past.19:14
GrueMasterAnd no, we can't work around this without a complete rebuild.19:15
GrueMasterWon't happen any time soon.  Not enough resources to rebuild & retest.  We are having a hard enough time fixing all the broken packages for our current builds.19:16
anuvratWhat I have been trying to do is get a system up with just busybox ... and my aim is to run python on the board and be able to use usb dongles for wifi and bluetooth on it19:17
anuvratGrueMaster, any directions on how I should proceed19:17
GrueMasterYou will probably want to use debian for binary packages.  We simply can't help here.  Beyond that, I have no suggestions.19:18
anuvratWould it be completely crazy to try and build everything from source ... or would such an action drive me crazy via kernel panics ... what do you suggest?19:21
anuvratGrueMaster:19:23
GrueMasterIf you were to rebuild from source, again you would have to use something like Debian as our source is set to build armel & armhf, both of which are defined as armv7 in our build tools.19:24
GrueMasterAnd at this point you are no longer using ubuntu.  Which is why I suggested debian.19:25
anuvratGrueMaster: where on debian's site exactly do I go looking for its arm port ? I apologize if the intellectual standard of the questions is low ...19:32
GrueMasterI don't know.  Try asking in #debian.19:32
xranby_ac100anuvrat: if you want a minimal embedded system you should consider using openembedded19:36
xranby_ac100anuvrat: if you want to use ubuntu try ubuntu-core19:37
xranby_ac100... friendly arm thats armv5 right?19:38
GrueMasterxranby_ac100: ubuntu-core is armv7 only.19:40
smplmananuvrat: i installed ubuntu from http://elinux.org/BeagleBoardUbuntu . I then install x11 and use ~/.xinitrc to launch my app when i startx19:43
xranby_ac100anuvrat: which friendlyarm board do you got?19:44
xranby_ac100i notice that some of their boards are based on a cortex-a819:44
xranby_ac100like the http://www.friendlyarm.net/products/tiny210 this board can run ubuntu-core19:45
smplmani know on my xm the precise images boot to initramfs, havent had time to debug yet19:45
smplmanxranby_ac100: looks like similar hardware specs to the beagle xm19:46
=== yofel_ is now known as yofel
anuvratxranby_ac100: smplman, GrueMaster I have FriendlyARM Tiny 6410 http://www.friendlyarm.net/products/tiny641020:38
micahgjanimo`: seems that one of the build-deps of armel only, that should be [armel armhf] as kalikiana pointed out to me, I'll fix for the next upload20:42

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