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

ogra_bug 101413913:08
ubot2Launchpad bug 1014139 in flash-kernel "flash-kernel fails to umount flash device after writing" [High,Fix released] https://launchpad.net/bugs/101413913:08
=== zyga is now known as zyga-food
=== zyga-food is now known as zyga-food]
=== zyga-food] is now known as zyga-food
=== zyga-food is now known as zyga
janimoogra_, in nvtegra-graphics we probably should use arm-linux-gnueabihf suffixes for the alternative symlinks just to be in sync with the fact they're now armhf14:31
ogra_feel free to port it :)14:31
ogra_though i dont think the x86 version actually uses much of multiarch14:32
janimocan be included in the next upload I guess14:32
ogra_great, i have the final release of v15 here on disk14:32
janimonvidia devzone sitll down14:32
janimooh the one from july 6?14:33
janimocan you put it somewhere if you are not packaginging it? :)14:33
ogra_-rw-rw-r--  1 ogra ogra 6,8M Jul 10 10:19 ventana_nv-tegra_base_R15.1.0_armhf.tbz214:33
ogra_jul 10th, but yes14:33
janimook14:33
janimojust before their site was shut down14:33
janimoalthough I see the relnotes mentioning they still have arterfacts with gtk, on resume, etc14:34
ogra_yup :)14:34
lilstevieogra_, have you checked if the ventana and cardhu versions differ at all14:34
lilstevieyeah, they are ok though14:34
ogra_lilstevie, i havent checked anything yet, banging my head against an image problem currently14:34
lilsteviealthough I have noticed if you aren't using the -r15-rc tag you will have problems14:34
ogra_i just grabbed the tarball in case the site might go down ;)14:34
lilstevieogra_, ah14:35
janimoogra_, is the image problem due to needing to pass console= or due to initramfs size limitation?14:35
lilsteviethe downloads are still available via their direct links fwiw14:35
ogra_janimo, well, console= is in now, so that shouldnt cause issues, currently it does with "no init found" i assume thats the size issue14:35
janimolilstevie, I googled in vain for such links? Do you have them ? :)14:35
ogra_http://people.canonical.com/~ogra/tegra/ventana_nv-tegra_base_R15.1.0_armhf.tbz214:36
ogra_still uploading14:36
janimolilstevie, r15-rc you mean tag in nvidia kernel git repo?14:36
lilstevieyes14:36
janimolilstevie, what do they do in the kernel that is so intertwined with the graphics drivers?14:36
lilstevieCouldn't open /sys/bus/nvhost/devices/host1x/syncpt/22/max14:36
ogra_janimo, done, feel free to pull14:37
janimoogra_, thanks14:37
lilsteviejanimo,  the fact that the userspace driver has to rely on kernel interface14:37
janimolilstevie, but what specifically?14:38
lilsteviea whole heap of stuff14:38
janimowhat kernel APIs/ABIs they change?14:38
janimoanything standard or nvidia specific drivers only14:38
lilstevienvidia specific14:38
janimoso dev/nv* stuff?14:38
janimook14:38
lilsteviesys/bus/nv* stuff14:38
lilsteviethe error with es2gears is Couldn't open /sys/bus/nvhost/devices/host1x/syncpt/22/max14:38
janimoI am sure for the ac100 we used kernels which were not the exact versions nvidia recommended/shipped with the L4T but it still worked more or less14:39
lilstevieand checking the path syncpt doesn't exist14:39
janimolilstevie, so right now using 15 final and the git tag you mentioned should be all ok?14:39
lilstevieshould be14:39
lilstevieneed to sync to that tag myself14:40
* ogra_ didnt have any issues with our kernel and the v15beta14:40
ogra_did they really change so much between beta and final ?14:41
lilsteviethey added a whole heap of stuff14:41
lilsteviefor use of HDMI fcbon14:41
lilsteviefbcon*14:41
lilstevieogra_, I didn't think there was an issue until I tried es2gears14:42
ogra_well, es2gears worked on beta with our 3.1 kernel14:42
lilstevieyeah es2gears worked with beta here too14:42
ogra_as well as unity and compiz14:42
lilstevieit is with the release that didn't14:42
lilstevieok I have a unity issue14:42
ogra_transparency ?14:42
lilsteviemenubar is gone14:43
ogra_thats known and i guess a driver issue14:43
lilstevieand the top bar14:43
ogra_its there, just transparent14:43
lilsteviedash home and hud14:43
lilstevieyeah14:43
ogra_you can click on items, open menus etc14:43
lilsteviesorry, yeah they are there, but transparent14:43
ogra_yeah, very likely a driver issue14:43
ogra_since it works on PVR14:43
lilsteviebut not being able to see dash home is a bit of an issue :p14:43
ogra_pfft ... it trains your fantasy14:44
lilstevielol14:44
lilsteviein any case, makes accelerated unity unusable14:45
ogra_right, currently: use a panda for that :)14:45
lilstevieyes, well I don't have one of those14:46
lilsteviejust 3 tegra powered devices :p14:46
lilstevieI figured it was a driver issue though, cause the same happens on my trimslice14:46
ogra_so pray that nvidia fixes their driver some day :)14:46
lilstevielol14:46
ogra_i'm pretty sure there is a function missing in their GLES implementation14:47
lilstevieso someone needs to log a bug14:47
ogra_i heard unity works on mali too ...14:47
ogra_so PVR and mali should be fine ...14:47
ogra_not sure about the amd chips that freescale uses on their boards ...14:48
ogra_janimo, did you ever test 3D stuff on the mx5 ?14:48
janimoogra_, not besided the factory SD card, which has nicely working 3D14:48
ogra_ah14:48
janimoI think I had the NDA'd proprietary 3d libs too14:48
janimobut I can't recall if I could make them work14:49
ogra_would be intresting to know if unity works there ... but i guess thats to much effort14:49
janimoor maybe I did not even have them14:49
janimoof little use for users if the libs are not freely available14:49
lilstevieyeah, so we need to figure out what is missing from the nvidia ones, then pester them for 2 years until they fix it14:49
ogra_in which case we will have switched to wayland and have to start over bugging them about the same issue in a new driver14:50
ogra_:)14:50
janimoogra_, lilstevie above disussion makes it sound we do not want to upgrade to l4t 15 final :)14:51
* ogra_ prefers that we do 14:51
lilsteviejanimo, why?14:51
ogra_at least to get rid of the CSS bugs etc ... telling people to switch to unitty-2d isnt as bad as having broken screens14:52
janimolilstevie, regressions due to our kernel not being in sycn with what l4t expects14:52
lilsteviejanimo, there is no real regressions that you notice, so far I have only noticed an issue with es2gears and es2tri14:52
lilstevieand the solution there is to not be lazy and just update the kernel14:53
janimolilstevie, well yes, we should update them more or less in sync14:53
janimomaybe marvin24 rebases on the new kernel soon :)14:54
lilsteviewhat does marvin24 have to do with it, he isn't even involved in the kernel that I use on the tfx0114:54
ogra_but we use that kernel :)14:55
janimolilstevie, we use his kernel for ac100 in ubuntu14:55
janimolilstevie, but feel free to maintain a more proper tegra kernel in Ubuntu :)14:56
lilstevieheh14:56
lilsteviejanimo, infinity and I have discussed this a few times14:56
janimonoone would mind if it booted both ac100 and tf14:56
janimoI know.14:56
lilstevieit is a nightmare due to a bunch of OEMs using the same mtype14:57
janimolilstevie, well in a year we'll have DT tegra trees in Ubuntu, until then we try to use hacks and external kernels :)14:58
lilsteviejanimo, but yet we won't have DT bootloaders for all devices14:59
ogra_what ? a year ?!?14:59
lilsteviethe 3.1 kernel supports DT fwiw14:59
lilsteviethe nv-tegra one14:59
janimoThe tegra-l4t-r15-rc tag seems to have the last commit in May. Not extremely recent14:59
janimolilstevie, well full support as in actually working and replacing the current board specific code15:00
lilstevieagain, still won't have it for every device15:00
janimoogra_, maybe in a year mainline kernel will have all tegra stuff merged and working15:00
ogra_janimo, ah15:00
janimolilstevie, no need for every device15:00
marvin24janimo: the kernel in my branch is based on the latest nv code already, will test the new driver later on15:00
lilstevieI mean it was only today that it even became safe to test alternate bootloaders on the tf20115:00
janimoans popular ones will be easier to add than now15:00
janimomarvin24, indeed I hope it is not too complicated. Did you base it on tegra-l4t-r15-beta ?15:01
marvin24lilstevie: did you got u-boot and 3.1 kernel running?15:01
janimoif you could git push --tags it may be easier to guess :)15:01
marvin24janimo: no, rel-15r715:01
lilsteviemarvin24, u-boot no15:01
lilstevieLinux steven-laptop 3.1.10-1000-tegra #0 SMP PREEMPT Thu Jul 12 01:26:55 EST 2012 armv7l armv7l armv7l GNU/Linux15:02
lilsteviekernel yes15:02
lilstevie:p15:02
lilsteviebut we aren't using the r15-rc tag yet15:02
lilsteviealso rel-15r7 and r15-rc differ15:02
janimomarvin24, ah indeed, the branch. Confusing branch and tag names all the time15:02
marvin24well, I fact I used the tegra-15r7.1-android-4.0 tag15:02
marvin24maybe I should also start to tag ...15:03
lilstevieI haven't seen the r15 hdmi code in 15r715:04
ogra_ok, todays image still dies with "no init found" ... sadly i cant get any more info out of that kernel15:06
ogra_even dropping quiet and spalsh doesnt print any more stuff15:06
* ogra_ guesses thats still the console= issue15:06
janimolilstevie, you're on transformer prime?15:07
janimoogra_, is the initrd from the current bootimg causing the issue? I'll try debugging it with locally built zImages15:09
janimojust need a good (broken) initrd15:09
lilsteviejanimo, of course15:09
ogra_janimo, http://cdimage.ubuntu.com/daily-preinstalled/20120716/quantal-preinstalled-desktop-armhf+ac100.bootimg15:11
ogra_abootimg -x  gets you the initrd from it15:12
ogra_btw, is there any reason why we use tty1 not tty0 ?15:12
lilstevieogra_, working around the old console bug15:15
ogra_lilstevie, right, by why tty1 (which forces you into a black screen) instead of tty0 ?15:15
janimoogra_, ok, flashed and got the bug. I'll have a look and see if I find the reason15:15
ogra_janimo, cool, thanks, i will aslo try to experiment with different and smaller initrds15:16
* ogra_ switches the default to tty015:17
lilstevieogra_, the 2.6.39 kernel needed it afaik15:18
lilstevieto show the console15:18
lilstevieit is an old bug anyway15:18
ogra_we never used it15:18
lilstevieno longer present15:18
ogra_its not15:18
lilsteviewe did15:18
ogra_its a brandnew bug with 3.115:18
lilstevieoh hm15:18
ogra_(for ac100 that is)15:18
lilsteviewait, the plymouth bug15:18
ogra_no15:19
lilstevieor one where the console doesn't show15:19
ogra_plymouth is a different issue15:19
ogra_right, console doesnt show regardless of plymouth15:19
ogra_unless you set console=tty*15:19
lilstevieok, console not showing is an old bug that only affected .39 here15:19
ogra_and we defaulted to tty1 ...15:19
lilstevietty0 works just fine here15:19
ogra_right15:19
ogra_and you actually get kernel messages if you use tty015:20
ogra_;)15:20
lilstevieyes15:20
ogra_(instead of tty1)15:20
lilstevieyes15:20
ogra_all workarounds and howtos for ac100 i have seen yet talk about tty1 though ...15:20
lilsteviehm15:21
lilstevievolume is killing me :/15:24
lilstevieI have no volume control on the prime15:25
lilstevieeither sound is on, or muted15:25
scienteswho runs the armel buildds?15:27
scientesMy package needs a newer kernel for 8 byte atomics on armel, which apparently have been recently added to gcc, which my configure script picked up15:27
lilsteviepeople use armel builds?15:28
scientesdoesn't infinity run those?15:28
ogra_the canonical IS team runs all  buildds15:29
ogra_(no matter what arch)15:29
scientesotherwise i can switch it back to the last version where it actually test ran the binary15:30
scientesbut i moved to just link testing so that the package can be cross-built15:30
janimoogra_, progress15:30
janimorepackaged the same initramfs using lzma and it boldly boots into the no tarball found initramfs15:30
janimolz packed size is : 204935815:31
janimoquite under the 2M limit15:31
janimoso we should default to lzma initramfs's like the rest of ubuntu does - or to xc if that is used (I forgot which was the latest)15:32
janimoalthough weird my x86 ones in /boot seem to be gzip compressed15:32
janimoeither way, we should try ac100 builds with lzma15:32
ogra_will check how hard it is to switch it (iirc i already ship a specific initramfs-tools.conf)15:34
ogra_ah, sad, thats only the in-initrd config15:35
ogra_fix uploaded :)15:39
ogra_lets see if that works even if not done manually :)15:40
scienteswhat version of gcc do i need for those 8 byte atomics on armv5? (i'm just trying to figure out the kernel version)15:40
scientescause debian unstable gcc doesn't have it15:40
scientes*wheezy15:40
ogra_better ask in #linaro as they maintain the toolchain15:41
scientesanyways, my package needs a newer kernel on the buildds15:41
scientesto match the toolchain, for armel, not armv715:41
ogra_how new ?15:41
scientesfor the test suite15:41
ogra_well, armel isnt actually supported by ubuntu atm15:41
scientesogra_, i was trying to figure out, but my gcc doesn't have the feature that the ubuntu toolchain does15:41
scientes(8 byte atomic operations for armel)15:41
ogra_we left it in place since there is a 1% chance that we will keep it in 12.10 ... but even that 1% shrinks with every day of the release cycle15:42
scienteswell do you know what kernels debian uses on buildds?15:42
ogra_no idea15:42
scientescause as soon as they upgrade gcc i will end up with same problem there15:42
ogra_i dont even know what HW they have15:42
scientesthey are using real armv5 hardware for the armel port15:43
ogra_unstable should have the same gcc we use in ubuntu though15:43
scienteschecking for 8 byte atomic operations... yes15:43
ogra_right, we dont have or support any armv5 hardware at all anymore15:43
scientesI get no, using wheezy toolchain15:43
ogra_wheezy != unstable :)15:43
scienteswell i didn't downgrade, it was unstable as of 2 weeks ago15:44
ogra_anyway, targeting armel with ubuntu is probably wasted effort15:44
scientesso after the debian import freee15:44
ogra_did debian rename sid ?15:44
ogra_to me sid == unstable ...15:44
scientesogra_, i'm pretty sure ubuntu uses their own toolchain15:45
scientesfrom linaro15:45
scientesinstead of FSF/sourceware15:45
ogra_scientes, well, i'm pretty sure our toolchain gets uploaded to debian and then synced from there15:45
scientesat least for arm15:45
ogra_since several releases now15:45
scientesahh that sounds sensible too15:45
scientescuase the docs say that 64-bit atomics arn't on arm15:45
scientesbut apparently they are15:46
ogra_(given the maintainer is the same in linaro, ubuntu and debian)15:46
scientesand i googled the kernel patches15:46
scientesits good for performance of the package15:46
scientesohhh!, you guys switched to gcc-4.715:47
ogra_yes15:47
scientesdebian is still on gcc4.6 except for x86 and amd6415:47
ogra_well, unstable should be on 4.7 too15:47
ogra_i'm pretty sure doko uploads to both distros at the same time15:48
scientesprobably wont change until after wheezy is released15:48
ogra_but anyway, armel amd especially pre- armv7 is dead beef on ubuntu15:48
ogra_s/amd/and/15:48
scientesok, so i wont care the test dont run, ergo it doesn't build15:49
scientesand check out debian setup15:49
ogra_its very  likely that armel will be removed from the archive by feature freeze15:49
ogra_unless someone steps up and pays for it15:49
scientesthats ok for me, debian works fine15:54
ogra_janimo, do you know from the top of your head if we have xz initrd handling enabled in the ac100 kernel ?15:57
ogra_seems the consensus is to not use lzma15:57
scientesogra_, you mean lmza2 (xz)15:57
scientesogra_, its actually broken in linux 3.515:58
scientesxz is15:58
ogra_we only have 3.1 for ac10015:58
scientesdue to merge bug15:58
scientesahh lzma works then15:58
scientesbut its slow15:58
scientesgzip is the fastest15:58
ogra_yes, but thats not the preferred method15:58
ogra_i was asked to switch to xz15:59
scienteslzma also have VERY high memory to compress requirements15:59
ogra_i just dont know if the current ac100 kernel supports it15:59
scientesogra_, well fix the 3.5 bug then15:59
ogra_as i said, we only use 3.115:59
scientesxz was merged in 3.5, but its broken15:59
scientesi reported it, but nobody cared to fix it15:59
ogra_janimo, i still get stack-protector kernel errors here :(16:06
ogra_no matter if i use xz or lzma16:06
ogra_grmbl16:16
ogra_still corrupted kernel stak :(16:16
ogra_*stack16:16
* ogra_ hates kernels16:17
ogra_why cant we live without them !16:17
cooloneyogra_: oh, come on16:17
ogra_cooloney, they always cause problems !16:18
ynezzuse heap!16:18
janimoogra_, sorry, was away. I used lz and it worked with the stock kernel in the bootimg16:18
janimoso not xc16:18
ogra_janimo, right, i tried both16:18
ogra_neither works16:18
janimoweird16:18
janimoI just repacked the initrd there16:19
janimowhat sized did you get?16:19
ogra_did you change anything wrt config of the bootimg ?16:19
ogra_-rw-rw-r-- 1 ogra ogra 2052736 Jul 16 18:04 initrd.img16:19
ogra_thats my lzma packed one16:19
janimoclose enough, mine was almost the same16:20
ogra_oh, wait, did you cpio it or just unzip and then lzma ?16:20
* ogra_ actually unpacked his16:20
janimocpio too I think16:20
ogra_k16:20
janimoI have two unpack repack scripts16:20
janimo$CAT $initrd | ( cd $ramdisk; cpio -i )16:20
ogra_well, in any case i always get "stack-protector: Kernel stack is corrupted in: c06a594c"16:21
janimo( cd $ramdisk; find | sort | cpio --quiet -o -H newc ) | lzma > $initrd16:21
janimoso unpack and pack16:21
ogra_yeah, pretty much the same i did here16:21
janimoI only saw uncompress error with the original img, which then obviously turned into init not found16:21
ogra_just mnot piped together ... but that shouldnt matter16:22
janimoI did not pipe them either16:22
janimoI mean not the unpack to the pack16:22
ogra_nah, indeed16:22
ogra_i mean i manually unzipped, manuall ran cpio .. etc16:23
ogra_janimo, any changes to the bootimg.cfg ?16:23
ogra_or do you ise the default one from the bootimg file ?16:23
janimocmdline = mem=512M@0 tegrapart=recovery:300:a00:800,boot:d00:1000:800,mbr:1d00:200:800 console=tty1 root=/dev/mmcblk0p716:24
janimojust removed the quiet splash loglevel stuff16:24
janimoto get more info16:24
ogra_right, looks like the default one16:24
janimoif that makes the difference maybe calling splash causes the issue16:25
ogra_i dont have quiet and splash here16:25
janimoso similar16:25
ogra_right16:25
janimomaybe your unit has a hw issue?16:25
ogra_well, precise works fine16:26
ogra_so i doubt that16:26
janimohttp://startx.ro/~jani/o.img16:26
janimothis is what works for me16:26
* ogra_ pulls and tests16:27
janimobut it cannot find the tarball on the usb stick16:29
ogra_bah ! why does that boot16:29
ogra_janimo, yeah. looks like a live-build issue, the installer.md5 file has a wrong name16:30
ogra_janimo, oh !16:31
ogra_the kernel misses cp437, it cant mount16:31
ogra_(needed for vfat)16:31
janimoindeed, that's what I saw16:32
janimoI wonder if I dropped that last time16:32
ogra_kernel issue then :)16:32
janimoso going to add that back16:32
janimo:)16:32
ogra_thx16:32
janimoso the initrd is now packed with lz? nice16:32
ogra_it still bothers me that i dont know why my initrd doesnt work16:32
ogra_yeah, we're the only ones being that inoovative :)16:32
janimoput the current bootimg that does not boot somewhere, I'll try that too16:33
ogra_seems lz was several times discussed ... but using it breaks rsyncability16:33
janimoogra_, lz for initrd or the whole squashfs?16:34
janimoI know squashfs/lz was discussed a lot. Not even sure what is used now for squashfs16:35
ogra_well, i asked about initrd in -devel16:35
ogra_janimo, http://people.canonical.com/~ogra/tegra/quantal-preinstalled-desktop-armhf+ac100.bootimg16:36
janimoogra_, just read devel backlog16:37
janimoit was not clear from Colin's answer that he referred to initramfs and not the whole live image16:37
janimoanyway. for our case as you said lack of rsyncability is not an issue16:37
ogra_yes, bootimg isnt even offered via zsync/rsync i think16:38
ogra_and its small enough that even if it would be, pulling it as a whole isnt that bad16:38
ogra_its only 8M after all16:38
scientesok it was added in 2.6.30---its just that its only supported on armv6k+16:38
scientesi have no idea how it manages to fail on your modern hardware...16:39
janimoogra_, nothing changed in the configs AFAICT 437 is there in the configs16:42
* ogra_ scratches head16:42
janimoogra_, although there's no nls/*ko in lib/modules in the initramfs16:43
janimokernel/fs/nls is nonexistent16:43
janimoI wonder if earlier initrds had that16:44
ogra_hard to tell, i havent had one that booted this release cycle16:44
ogra_janimo, not precise16:46
ogra_ogra@anubis:~/Desktop/tegra$ ls lib/modules/3.0.27-1-ac100/kernel/16:47
ogra_drivers  fs16:47
ogra_no nls ... but fat avd vfat are in the fs subdir16:47
ogra_and they worked16:47
ogra_probably nls was compiled in and is now modular ?16:48
janimoogra_, you got it, that16:49
janimois the issue16:49
ogra_:)16:49
janimoI'll revert it16:49
ogra_thx16:49
ogra_btw, the installer can also use ext216:49
janimoah, so not showstoper but mportant still16:49
ogra_right16:50
ogra_annoying if you used vfat and have to re-do your SD though16:50
marvin24may I ask if tfx01 suffers from the same console problem?16:50
ogra_lilstevie, ^^^16:52
scientesIMHO you guys should be using your own 3.2 kernels17:01
ogra_ou own ?17:01
ogra_*our17:01
scientesprecise is 3.217:01
ogra_not for ac10017:02
ogra_we only had a 3.0 tree for qunatal17:03
ogra_err17:03
ogra_precise indeed17:03
scientesis it tegra 2 or something, and you are held back by old shit?17:03
scientes*binary shit17:04
ogra_it is tegra2 and we are depending on nvidia and chromeos commits17:04
gildeanall tegra2 devices are held back afaik, i've not seen a tegra2 device with a modern kernel17:04
ogra_yep17:04
gildeanand i have three different tegra2 devices atm17:06
gildeanfortunately paid for none17:06
* ogra_ too17:06
ogra_but i paid for some :)17:06
gildeani could've bought a galaxy tab 8.9 if i didn't get one from work17:07
scienteseek, its 3.4 kernel feature17:11
scientesguess I can't ask for that17:11
scienteseven though quantal will have it17:11
janimomarvin24, it keeps being unclear to me whether we need CONFIG_PCI in the ac100 kernel19:38
janimoI think it used to be both on and off (PCIE too) with no noticable effect as far as I remember19:38
janimoI am looking at the config changes introduced with the 3.1 kernel, as one slipped through and lead to unmountable fat partitions19:39

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