/srv/irclogs.ubuntu.com/2012/09/21/#ubuntu-arm.txt

tansellHi guys, are there instructions for porting ubuntu arm to another arm based system? I know my device is supported by recent kernels and works with debian but I'd strongly prefer to use ubuntu03:51
LetoThe2ndtansell: well if your system is armv7+x, basically just create a fitting kernel+initrd and use the ubuntu userland from there on as a first start05:39
Heradongood morning06:42
Heradoni need a little help, to flash my gooseberry ;) i need to use ubuntu ^^06:49
lilsteviegooseberry?06:54
Heradonyes it is a Allwinner A10 board06:55
lilstevieyeah, just looked it up06:55
Heradonbut the newer version of the board does not boot from MMC06:56
Heradoni think i need a newer uboot06:56
Heradonbut i dont know :(07:01
LetoThe2ndif you "don't" know, better do not touch the uboot as you are prone to brick the thing.07:07
Heradongood but i need a ubuntu on this board ^^07:07
LetoThe2ndwell i need 100k€, but the world does not care either.07:08
LetoThe2ndif you a) do not know what you are doing b) risk bricking the board c) have no means to unbrick it - do not do it.07:08
Heradongood, i can do this board into trash07:09
Heradonandroid on my TV is ....07:09
LetoThe2ndsorry, but do not complain if you bought things that are not made for endusers, if you are an enduser.07:10
LetoThe2ndplus, their documentation is totally poor. or should i say "cheap"?07:11
Heradonthe doku is crap07:11
HeradonI bought the board as ubuntu was still running from the MMC, but the delivery has been delayed and it hies then suddenly it will not boot from the MMC and now I'm looking for someone who can help me07:11
LetoThe2ndwell if u-.boot is actually the reason, then the standard procedure is: get source, find bug, patch it, compile, flash07:12
Heradonneed for flash anyone other hardware of the USB?07:13
LetoThe2ndbut if even the manufacturer is to lazy/dumb to do that properly, and you are a mere enduser, then - well, you're whacked.07:13
LetoThe2ndusually u-boot can re-flash itself, unless it is bricked. so you need uboot access.07:13
Heradonthe uboot access i become only with UART right?07:14
LetoThe2ndand you need a memory map, or the knowledge to read/interpret what uboot is telling you.07:14
LetoThe2ndwell there uarts over usb too.07:15
LetoThe2ndthese are things that you have to know if you want to tinker with something07:15
Heradongood i have no uart.. perfect07:15
Heradoni sell my gooseberry and buy a odroid-x07:15
LetoThe2nddo not complain to us if you have bought literally "cheap" hardware that you do not understand ;)07:16
LetoThe2ndthey even say "only android ATM", which reads as "anything else only if you really know your stuff"07:17
Heradoni have 3 raspis, no problem i compile my own system. But the goosebery is ARG07:18
LetoThe2ndi really doubt that you compiled ubuntu for raspi ;)07:18
Heradonno i compile archlinux for raspi :>07:18
LetoThe2ndah yes. *impressed*07:19
Heradonon my first computer i have gentoo, on my second pc ubuntu ^^ laptop lubuntu and netbook archlinux :O07:20
LetoThe2ndsorry to burst your bubble, but running neither gentoo nor archlinux makes you automatically someone who understands compiling or the inner workings. it just makes you someone who either is successfull in reading or experimenting.07:21
LetoThe2ndso coming back to the initial topic: running ubuntu on thath thing is probably doable. but judging from the pretty much non-existent documentation/source from the manufacturer, it boils down to considerable barin/time effort, and not some 1-2-3 type this, click here guide.07:22
Heradoni know, i work on the board since 2 weeks07:23
LetoThe2ndhence, if you're willing to go that route - provide information as precise as possible, and people will probably try to help and give pointers. but the most of the work will certainly be up to you.07:24
Heradoni know07:24
LetoThe2nd(if you're "working on" something since 2 weeks and do not even know how to access u-boot,.... well thats no good sign.)07:24
Heradonstop stop07:24
Heradonyou are german? ^^07:25
LetoThe2ndi am, but i will neither do query support nor change to german here as the official channel language is english.07:25
Heradonok, no problem but my english is very bad ^^ this is my first touch with uboot. i read the time dokumentations and boards on internet07:26
LetoThe2ndso back again: topic 1) for you is: get u-boot access. if you have that, come back and present the informations that one can get from that.07:26
Heradoncan you give me a link to buy a uart interface?07:28
LetoThe2ndno, because i have absolutely no clue what you need. you have to find out where the manufacture has wired the A10s uart to.07:28
Heradoni sell the board07:29
LetoThe2ndif it comes out on a header, or a sub-d, or maybe it even is an additional usb endpoint.07:29
LetoThe2ndlike i said: you have to invest your own brain power.07:29
Heradoni have an uboot log07:30
LetoThe2ndcoming from where? if it magically appears on some sd card, that provides no information.07:30
Heradonhttps://gist.github.com/3364042 here an bootup07:31
LetoThe2ndlike i said: how did you get that log?07:31
Heradongoogle ^^07:32
LetoThe2ndmeh.07:32
Heradoni have all informations from google07:32
LetoThe2ndsorry, but this is becoming totally ridiculous.07:32
LetoThe2ndsell the board.07:32
Heradonich hau mit dem hammer auf den scheissdreck -.-07:33
lilsteviemost A10 devices are hard to brick fwiw cause of fex/livesuite07:33
LetoThe2ndlilstevie: doesn't make them easier to flash if you do not even know how to access the console ;)07:33
lilstevieheh07:33
lilstevieLetoThe2nd, fex/livesuite is over usb07:34
Heradoni have flashed 4 times alternatives androids to the board07:34
lilsteviebootrom recovery like nvflash07:34
lilstevie:p07:34
LetoThe2ndi already stated several times that finding out how to access u-boot must be topic #1. i really am getting tired a bit.07:34
lilsteviebut yes07:34
lilstevieif you cannot interact with u-boot there is no point trying to debug it07:35
lilstevie"[07:35
lilstevie:p07:35
LetoThe2ndand repeatedly suggesting us that you have knowledge because you "flashed something" or "compiled something", but then asking very basic questions is also... lets say not very reassuring that we are spending effort for good here.07:35
LetoThe2nd</$.02>07:35
Heradonso das board bootet nie wieder07:44
RoyKLetoThe2nd++07:45
tirumalHi, new to this forum. Is screen rotation possible using SGX pvr driver for ubuntu 12.04 on pandaboard(Rev A4)?08:15
tirumalI have tried with ubuntu 11.04 by changing the bootargs parameters in boot.scr and it didn't work08:18
sveinseAs previously discussed, plymouth is unable to show splash and show console on serial terminal simultaneously. This is something I must fix. I can do it in one of two ways: 1) I can set plymouth to textmode and implement my own framebuffer displayer 2) I can alter plymouth to show framebuffer splash _and_ show text on serial console. Which do you think is less work and most trivial?08:34
tirumalI want to rotate my screen by 90 degree. Is it possible using omapdrm driver?08:46
ogra_tirumal, did you try xrandr ?09:03
tirumalogra_: No i didn't try. How can I do it with xrandr?09:05
ogra_sveinse, hard to tell, and definitely nothing upstream will take either way, they consider a system where the console= arg appears a system that doesnt want a splash, i guess there is some code to catch that arg that parses the dmclie, did you try to just comment that ?09:06
ogra_s/dmclie/cmdline/09:06
sveinseogra_, I can select between textmode and a gfx theme with the second console= option. However the gfx theme supresses console output, which is the bad thing here09:08
ogra_well, find the code caring for console= and comment it ;)09:09
sveinseSo perhaps it's possible to write a gfx theme which accepts the console texts and diverts it to the serial console09:09
ogra_that should give you  2)09:10
sveinseI notice I have to specify console= twice for it to set plymouth. why is that? the first is for the kernel, the second for ply?09:11
ogra_usually the first is for kernel and the second for userspace09:12
ogra_it should switch to the scond once some kind of rootfs is available09:12
ogra_(i.e. an initrd)09:12
sveinseif using one console=ttyO2, what does ply consider console to be (since kernel now uses console ttyO2)? /dev/fb0? /dev/tty1 perhaps09:14
sveinse(i.e. it's userspace which sets up /dev/console, not kernel, right)09:14
ogra_ply simply shuts down in that case09:17
ogra_well, setting up /dev/console was theoretically done in userspace in the past. yeah, the kernel just attaches the default console to it once there is a /dev ... though nowadays we use devtmpfs everywhere which the kernel creaates ... i guess that area got blurry due to that09:19
sveinseNo it does not. We're run on this for a while. We have one console=ttyO2 in commandline, the kernel boots and output kernel output on serial port, and then it drops silent when displaying png on fb0.09:19
ogra_well, i should have said it shuts down all display actions09:19
sveinseThe "only" problem is that it drops slient between kernel and getty09:19
ogra_it still provides that dbus like interface for apps (encryption etc) but doesnt provide any frontend anymore09:20
sveinseyes. to be honest, since our device is very specialized, we'd hoped on purging plymouth alltogether. But its very interwowen with everything09:21
sveinse..in an attempt to save boottime09:22
ogra_well, you need libplymouth at least09:23
sveinseyes, I've accepted that fact that plymouth is unremovable, so thus the effort to get the console output to the serialport09:25
ogra_did you consider using something like feh from the initrd to just throw a static picture on the framebuffer ?09:29
ogra_(or any other minimal image viewer that can talk to fb0)09:29
ogra_err, fbi, not feh09:30
ogra_(no idea how much that bloats your initrd in size though)09:31
ogra_ogra@zatab:~$ ls -l /dev/|grep mmc09:35
ogra_ogra@zatab:~$09:35
ogra_hmm, that might be the reason why i cant boot that thing from mmc09:36
sveinseogra_: Yes. But fbi is large and bloated, so I've stripped down fbi to the bare metal to do exactly that. However, I can't rid myself of dependency on libm (via libpng), so it's larger that I'd like.10:07
sveinseBut I notice now that plymouth in initramfs is also depending on libm, so its already there I guess10:08
ogra_yep10:09
ogra_well, it might go away if you remove the graphical themes10:09
ogra_not sure plymouoth itself will pull it into initrd for a text theme10:09
sveinsei'll figure it out. In all cases I need a hook for my mini-fbi anyways, so I will pull in libm from there10:10
tirumalogra_: thanx for the hint, it works well on desktop pc but not my target platform with omap412:00
ogra_well, it should, at least in quantal where we install the pvr driver by default12:00
tirumalwhen i try with command: xrandr -o left it fails with X Error : Bad Match12:00
ogra_xrandr itself gives oyu proper ouput (if you run it without any options) ?12:01
tirumalogra_ : it says: HDMI-1 is connected with 1280x1024 with 60 freq12:03
ogra_k, so xrandr support is generally working12:03
tirumalyes12:03
ogra_any more info in Xorg.0.lo ?12:04
ogra_*log12:04
tirumalone more interesting  thing: I have tried the same command on variscite omap4 board, where it works12:04
ndectirumal: with the same kernel?12:06
ndecrotation support was added lately, but it could be flaky at times...12:07
tirumalwhere I have patched Mr. Clarks drm/omap: add rotation properties12:08
tirumalndec: no with different kernel. It works with 3.4.0-1486-omap4 kernel12:09
ndecyeah, we did some bug fixes/rework for rotation, so that might explain.12:10
ndeci would generally recommend to stick to 3.4 kernel for OMAP4, this is what we (TI) support.12:10
tirumalndec: to be more clear on this rotation issue: I have understood that with SGX pvr driver, one should be able to rotate the screen by 0, 90, 180, 270 + graphical acceleration12:14
tirumalndec: Is that pvr driver already integrated in 3.4 TI kernel?12:14
tirumalndec: by providing kernel boot with omapfb.rotation=1 for 90 degree rotation, what i need12:15
ogra_stgraber, highvoltage, so we have a massive issue with the mmc controller in our kernel for the zatab ... and we seem to be missing this touchscreen driver https://groups.google.com/forum/#!topic/android-x86/vEKSSKdUfi812:16
ndectirumal: yes, we have rotation support with GFX with 3.4 kernel. I don't know if it's working or not with 12.10 kernel...12:17
ndecomapfb has been deprecated.12:17
ogra_the -omap xserver should support it even withjout pvr installed afaik12:17
=== nashpa_ is now known as nashpa
ndecogra_: yes, this is correct.12:19
ndecyou don't need PVR for xrandr (resize nor rotate)12:19
ogra_but that indeed needs 12.1012:19
ogra_(i dont think 12.04 even had that recent -omap xserver package)12:20
ndecright, it didn't12:23
ndecogra_: what's the pkg src name for -omap?12:24
ndecok, found...https://launchpad.net/ubuntu/+source/xf86-video-omap12:24
ogra_xf86-video-omap12:24
ogra_yeah12:25
ogra_before quantal that was just xfbdev with some sauce added i think12:25
ndecogra_: we seem to have an extra patch in our -omap (    - xrandr-rotation.patch). not sure if you have that one.12:26
ogra_i think we have the latest upstream and would trust rob to keep that updated12:27
ndeci don't think rotation is upstream12:28
tirumalndec, ogra_ thanx for the impt info regarding pvr & rotation features12:40
ndecnp12:40
tirumalwe are using a Phytec omap4 module, which has Pengutronix distribution with kernel 3.3 and that explains the behaviour12:44
highvoltageogra_: ah. that's a bummer. I'll try a 3.4 kernel tonight if you haven't beaten me to it yet12:59
tirumalI am intrested to know: where would be the pvr driver located so that I can integrate it on my target13:02
deffragHi! I have a code prepared and compiled on x86_64 architecture which I moved to and compiled on ARM(Beagleboard XM). And, it worked without errors exactly as it would on x86_64. Same commands were executed to compile and run. I'd like to know what made it happend, how does it work?13:14
stgraberogra_: but didn't you manage to boot from mmc once?13:15
hrwdeffrag: pure magic13:22
ndec;-)13:23
deffraghrw: Bah.13:24
deffragIsn't it related to cross-compilation or such? gcc for arm configured for the platform ...13:24
hrwdeffrag: you compiled natively13:24
hrwdeffrag: cross is when you are on HOST (arch1) compiling for TARGET (arch2)13:24
hrwthere is also canadian cross when you are on BUILD (arch1) compiling compiler for HOST (arch2) to build for TARGET (arch3) - but thats crazy13:26
* hrw -> lunch13:27
deffragOk, natively compiled. Compiled on the architecture  running. So, what is making that possible? What is the difference made in gcc for arm13:28
deffragOtherwise, could anyone link me to some resource for the same?13:29
ogra_stgraber, yeah, but not with this kernel, i tried random uImages from different prebuilt images13:38
ogra_hmm, seems there is also a sun4i-ts driver, i wonder if that one would work13:38
ogra_seems the other one from above needs a binary blob13:39
suihkulokkiallwinner hacking going on?13:39
ogra_yep13:40
hrwdeffrag: it is same gcc13:41
hrwdeffrag: gcc supports wide range of archs13:41
ogra_highvoltage, there is a 3.4 tree ?14:01
highvoltageogra_: ah no, there isn't :-/14:01
ogra_sad, you just had me hoping :)14:02
ogra_aha14:02
ogra_https://github.com/zareason/linux-allwinner/commit/c5ce10353d48a704540cd8fa0c5d2e90e380aaf814:02
ogra_seems the zareason tree has the touchscreen driver14:02
highvoltageogra_: how's the transformer doing these days? is there a tablet ubuntu is known to run well on?14:05
ogra_no idea, my transformer only runs android :)14:05
deffraghrw: Ok, thanks.14:05
deffragSecondly, how can I use/enable DSP? I followed - http://elinux.org/BeagleBoardUbuntu#gst-dsp - but it says module bridgedriver not found. I searched for its .ko file, its not present.14:05
ogra_highvoltage, asl lilstevie14:06
ogra_*ask even14:06
highvoltagegood, because I wasn't going to ask him a/s/l.14:06
lilsteviethats good cause I wasn't going to respond :p14:07
ogra_i have the slight feeling that https://github.com/zareason/linux-allwinner might be the better suited kernel tree14:07
highvoltagelilstevie: do you run ubuntu on your transformer?14:07
lilsteviehighvoltage, absolutely14:08
lilstevietransformer or transformer prime14:08
highvoltageI guess transformer prime, ideally14:08
highvoltagedoes it run ok?14:08
lilstevieit runs fine, just not really prime time ready14:10
lilsteviestill things that don't work as expected14:10
ogra_highvoltage, stgraber ... hmmm ... i guess someone should package http://linux-sunxi.org/Mali400#Mali-400_X11_DRI2_drivers14:10
ogra_http://limadriver.org/ doesnt seem to be ready yet14:12
stgraberyeah, hopefully we can get a kernel and the mali driver in 13.04, assuming there's no redistribution problems with the blob14:13
ogra_well, linaro seems to provide allwinner images with it included14:14
ogra_or hwpacks14:14
ogra_so it must be redistributable i guess14:15
ogra_if we want images in 13.04 we should start building stuff in ppas (in fact i'd like 12.10 images even if the are handrolled, but close to what 13.04 will have)14:16
ogra_wow, my fingers always want to type 13.03 :)14:16
highvoltagehopefully it will want to follow the same pattern for 14.04 :)14:17
highvoltage(maybe by then you're fingers will have been trained to type 14.05 by then)14:18
ogra_who cares about 14.04 ...14:18
ogra_we'll all be old an grey by then14:18
ogra_:)14:18
highvoltageI'll have to copy and paste that to quote in a few months ;)14:18
ogra_heh14:18
stgraberyeah, getting what's needed in a PPA would be good, for Edubuntu we'll probably just grab our armhf (omap4) squashfs, remove the kernel, install the PPA, pull the new kernel and install the X driver, then do a bit of repacking to work on the mmc. Writing a script doing that should be trivial once we have the bits in place.14:24
ogra_well, i would actually propose a proper preinstalled image14:25
ogra_for later we can have live or so to do an actual install to flash if people want it14:26
tirumalndec,ogra_: Regarding the pvr driver for omap4. where would be pvr driver located? I am asking  this because later I have to  integrate it in my distribution and use graphics acceleration14:31
ogra_tirumal, well, pvr is usually only working with a certain kernel version ...14:32
ogra_so you need both14:32
ogra_i would recommend the versions from quantal here14:32
tirumalogra_:Agree but at the end I want to use them on my target omap4 platform, which uses pengutronix dist14:35
ogra_https://launchpad.net/ubuntu/+source/pvr-omap4/ has the driver packages14:36
ogra_the omap4 kernel is on the kernel.ubuntu.com git ... look for ppisati's name there :)14:37
tirumalogra_: ok got it14:45
ogra_rsalveti, hackin on a zatab here, do you know if the binary blobs for mali are redistributable (and coudl we perhaps get he xserver that linaro seems to have in a ppa into the archive) ?14:51
rsalvetiogra_: I think so, we just need to test first if the xorg driver we have works with whatever binary you're trying out14:54
ogra_great14:54
ogra_(just dipping my toe in the water here to find out about all the bits and pieces)14:55
deffragHi! Why in the image used - http://cdimage.ubuntu.com/releases/12.04/release/ubuntu-12.04-preinstalled-server-armhf+omap.img.gz - for Beagleboard xm, it is not possible to have DSP working? Why 12.04 has no dsp bridge?16:20
deffragHi infinity16:31
GrueMasterdeffrag: Are you referring to audio?17:10
GrueMasterSee bug 925094 for some possible solutions.17:12
ubot2Launchpad bug 925094 in linux "No audio on omap (beagleXM) system" [Medium,Confirmed] https://launchpad.net/bugs/92509417:12
deffragGrueMaster: Hi! No, I've sound working. I would like to attempt something related to image processing on this platform for which DSP are good. I'm curious how would one use them. For http://elinux.org/BeagleBoardUbuntu#gst-dsp it assumes using rcn image. When I tried those instructions, it gave bridgedriver missing. I'm not sure what is the proper method of engaging DSP17:16
GrueMasterAh.  Sorry, can't help there.17:18
=== guerby_ is now known as guerby

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