/srv/irclogs.ubuntu.com/2012/11/20/#ubuntu-arm.txt

LisaNoriinfinity: Thanks.  I was just curious because when I received my nexus7, I tried connecting to my LEAP network and found that Android doesn't seem to support it.  It supports PEAP but doesn't seem to support LEAP.  Since I'm really planning to reload it with Linux,  I don't care about Android as long as Linux works. :)00:00
infinityogra-cb: Oh, hah.  This is another case of oem-config-remove not cleaning up properly.  ubiquity recommends lvm2, so it's landing on your images.00:01
infinityogra-cb: I bet an apt-get autoremove after installation would magically make it go away.  Maybe.  If so, we know the fix.00:02
infinityLisaNori: A quick Google implies that we've probably supported it for ~5y or so.00:04
LisaNoriinfinity: Ok, thanks a lot.  I should have been able to find this out myself.  I'll proceed with moving to Linux.  This should be fun!00:07
lionoHi everyone! I was thinking about getting one of those new Samsung Chromebooks to put an ARM version of Ubuntu on. I was wondering what the state of ARM ports for applications in the ubuntu repositories is like.01:00
infinityHi everyone!  I was considering popping in to ask a question and then leaving before the person answering me finished typing.  I was wondering if this is normal practice.01:22
* infinity grumbles.01:22
twblilstevie: ping01:27
twblilstevie: FYI, funny thing happened just now -- I can see a particular wifi AP under android, but not under ubuntu01:27
twbhttp://paste.debian.net/210873/ has my in-house bug report.  Anyway, feel free to ping or email me if you're interested in poking at it.01:30
lilstevietwb, feel free to look at it yourself01:35
lilstevietwb, the wifi chip is set up and initialised as it would be in android minus one thing, which should be irrelevant to your situation01:35
twbYeah, I did for a bit but I couldn't work it out and I'm on company time atm, so I felt bad spending all day on it :-)01:35
lilsteviethe only thing that isn't done is writing the mac address into the chips memory space01:36
lilstevieso it uses the built in mac01:36
twbOK01:37
twbBTW, I heard a rumour that your installer thingo for tf101 is vastly more awesome and sexy than when I installed 11.10 - is that true?01:38
=== chihchun is now known as zz_chihchun
lilsteviethat is not true01:42
lilstevieor actually01:42
lilsteviemaybe01:42
lilsteviewhich version did you install with?01:42
twbHehe01:42
lilstevie1.0?01:42
twbWhatever it was just after you renamed it01:43
lilsteviegiven you are using wpa_supplicant vs network manager sounds like it01:43
twbIt installed 11.10 instead of pretty armhf 12.0401:43
twbOh, I'm using wpa_supplicant just because I hate GUIs01:43
twbAnd I hate NM01:43
lilsteviehm01:43
twbI'm sure it defaulted to NM from your install -- i meant awesome and sexy more like it's 12.04 armhf, not relating to wifi at all01:43
twbAnd like the GUI is accelerated and maybe speakers or hdmi or something works now01:44
lilstevieok sure then no01:44
twbOh, OK.01:44
lilstevienot me01:44
lilstevie:p01:44
twbGOod think I was too lazy to try it then :-)01:44
lilstevieI have pretty much discontinued the tf10101:44
lilsteviesupid tegra 201:44
twbThat's what I figured.  I will LART $coworker for lying to me01:45
twbAre you having fun on the tegra3?01:45
lilsteviethere is some new installer thing, but it isn't by me, nor have I used it01:45
lilsteviethat I am01:45
twbCool01:45
lilstevieeven with crippled emmc r/w tasks like compiling on average finish in 1/3 of the time quicker (ie: on a kernel compile 20min(tegra3) vs 30min(tegra2)01:47
lilsteviebut with further performance tweaks that could be reduced even more01:48
twbI'm more interested in ricing the battery life higher01:50
lilstevieheh01:50
twbTHe only thing that's too slow for me, is apt upgrades01:50
twbeverything else is prety much just a ssh or browse to a "real" computer01:50
lilsteviethere is a certain trade-off with the tegra3 for battery life01:50
twbPlus emacs, I guess.  Emacs "only" needs 80MB RAM and suchlike, so its meh01:50
lilstevieapt transactions are pretty screwed due to io crippling (on both devices)01:51
twbThat combined with dpkg being SUPER anal about flushing to disk01:51
twbIt's the pathological case on my btrfs VMs as well01:51
lilstevieheh01:52
twbThough in that case it seems to be less bad under 3.x than it was under 2.6.32 / 3.201:52
twbHm, it's running 3.2 now.  Maybe I'm just making shit up...01:52
lilstevielol01:52
cwaynetransferred bug logging info from blog to https://wiki.ubuntu.com/Nexus7/LoggingBugs02:26
=== _Lucretia__ is now known as _Lucretia_
=== zz_chihchun is now known as chihchun
=== micahg_ is now known as micahg
ptlhello03:39
ptlis there a mailing list or forum where the ubuntu on nexus 7 is discussed?03:40
ptlcould not find that in the wiki03:40
twbthere's always xda forum03:51
[mbm]twb: the single xda thread is somewhat annoying to follow07:18
ynezzforums should be illegal :p07:28
[mbm]I get annoyed by these single thread things that go on for 20+ pages07:35
dholbachgood morning07:51
=== zz_chihchun is now known as chihchun
dayis there a site regarding nexus7 - ubuntu hardware support? what is fully supporter what not and so on?10:04
daysupported*10:04
ogra_there is the buglist10:05
ogra_somewhere linked under the wikipage10:05
daythe known issues?10:05
daywasnt sure how up2date that is10:06
ogra_many of the bugs are touched daily by our QA guys10:06
ogra_or at least they look over it very regulary10:06
ogra_essentially we only have wlan and partitally bluetooth working10:07
ogra_most if not all the rest is still waiting for someone to adopt ;)10:08
ogra_i think soimeone works on the gyro sensor stuff, but i'm not 100% sure10:08
dayogra_: gyro and gps shouldnt be toooo complicated. its not like you communicate with an unknown entity there10:09
dayogra_: anyways thanks. i will give it a shot :)10:09
ogra_well, gyro is complicated because there is absolutely nothing in userspace for it atm10:09
ogra_even if you get the device to work, there is no API or something in X so it needs some upstream development10:10
ogra_(some lib that interconnects xrandr, the sensor and xinit rotation processing)10:10
ptlso, there is no canonical-sponsored mailing list for Ubuntu on Nexus 7?10:10
ogra_s/xinit/xinput/ (sorry)10:10
dayogra_: hmm makes sense10:10
ogra_ptl, we use the normal ubuntu lists10:11
ogra_ubuntu-devel/ubuntu-devel-discuss for development discussion10:11
ogra_xnox, why do i suddenly get lvm2 andf kpartx in my arm initrds ? i cant remember it being that way with ac100 ubuntu images in precise, did we add new deps ?10:12
ptlogra_: but the amount of unrelated stuff / noite there might be unimaginable :-/10:12
ptl*noise10:13
xnoxogra_: you shouldn't.10:13
ogra_ptl, up to now no bigger noise showed up :)10:13
dayogra_: i just realized ur a pretty active linux/ubuntu dev. thanks for all your work :)10:13
ogra_xnox, well, on the newly built images that is10:13
xnoxogra_: unless something is pulling lvm2 in.....10:13
ogra_day, heh, thanks for using it :)10:13
* xnox will look.10:14
ogra_xnox, yeah, thats what i think, funnily it doesnt happen on lubuntu ac100 images10:14
xnoxlolz.10:14
ogra_which build with --no-install-recommends though10:14
ogra_so i assume a new recommends somewhere in ubiquity10:14
xnoxogra_: so which images are you seeing this with? the rarings or quantals lubuntu ac100?10:14
ogra_in any case i end up with a 2.4M initrd, thats likely to big (or at least at the edge for becoming unbootable)10:15
ogra_the raring nexus7 testbuilds10:15
lilstevieday, tbh the GPS isn't 100% straight forward either10:15
daylilstevie: why is that?10:16
lilstevieday, get the GPS chip to output NMEA over the UART :)10:16
daylilstevie: that doesnt sound to complicated. its a standard amateur 8-bit uC hobby project10:17
lilstevieday, once you get that it will be straight forward, but getting it to turn on correctly isn't10:17
lilstevieday, you are meant to be able to just wiggle a gpio and it comes to life10:18
lilstevie:p10:18
ogra_xnox, http://people.canonical.com/~ubuntu-archive/livefs-build-logs/raring/ubuntu-nexus7/20121119.5/livecd-20121119.5-armhf.out the update-initramfs call at the end runs with -v10:18
daylilstevie: you are meant to be able to just wiggle a gpio. is that hard via linux? :p10:18
ogra_(ignore the abootimg noise)10:18
lilstevieday, no, wiggling the gpio is just ineffective10:18
lilstevieaka missing something10:19
ogra_xnox, ac100 for comparison http://people.canonical.com/~ubuntu-archive/livefs-build-logs/raring/lubuntu-ac100/20121119/livecd-20121119-armhf.out10:19
lilstevieday, someone with enough determination could probably get it going though10:19
daylilstevie: well how else do you want it to do? the gps chip is wired to some pin which has to do it :/10:20
xnoxogra_: yeah it's funny =)10:20
* ogra_ sighs about all that arabic spam 10:20
lilstevieday, you are missing the point, following the gps enable isn't enough10:20
lilstevieday, so spend some time following it being enabled in android :p10:20
xnoxogra_: so oem-config is installed, that depends on ubiquity, which in turn recommends lvm2 & dmraid10:21
ogra_right, so as i assumed, its recommends10:21
xnoxogra_: but you say you install with --no-install-recommends10:21
ogra_not on nexus10:21
xnoxah.10:21
ogra_lubuntu-desktop enforces it10:21
ogra_nexus uses ubuntu, ac100 lubuntu10:21
lilstevieday, point is straight forward would be sysfs write and away it runs, not so straight forward is tracking down the bit that is missing10:22
ogra_well, i guess i can add a hack that removes both packages before building the initrd10:22
daylilstevie: day, so spend some time following it being enabled in android :p -> ur talking about the reengineering process?10:22
ogra_its just ugly :(10:22
xnoxogra_: can you work around it in the seeds, or shall I demote lvm2 to suggests?10:22
xnoxogra_: can you not blacklist it?10:22
lilstevieday, of course, how else would you expect to do it10:22
xnoxogra_: to be honest it's wrong to install those, simply to get oem-config.10:23
ogra_we dont have any blacklist, the only way i coudl do that would be in the seeds ... but thats arch and not subarch specific10:23
ogra_which would mean no lvm2 seeded on arm servers either10:23
daylilstevie: i dont know, maybe take a look on the datasheet? but i guess thats no available :P10:23
ogra_you dont really want that :)10:23
xnoxogra_: split ubiquity into ubiquity & ubiquity-partman-deps ?10:23
lilstevieogra_, which would also hurt me cause I use lvm2 on the tf20110:24
ogra_hmm, that might work10:24
lilstevieday, I'm saying YOU do it :p I'm not going to, not high enough of a priority10:24
ogra_we really want to keep lvm on systems that run a partitioner10:24
xnoxogra_: but then we would have to carefully install ubiquity-partman-deps on the images that have installer.10:24
lilsteviexnox, at the moment we are seeding with oem-config but use lvm10:25
xnoxhorum.10:25
ogra_yeah, i should probably just add some apt-get purge code to the build scripts10:25
daylilstevie: if i had a clue of driver programming under linux i would. :P10:25
xnoxogra_: well we can add more black magic to the initramfs hook in the lvm2 package to not copy itself as eagerly as it currently does.10:26
lilsteviexnox, but adding lvm to the seeds I guess isn't a problem10:26
* ogra_ prays that his abootimg quoting is now right 10:26
ogra_xnox, i'm not sure the lvm2 bits are the biggest ones, there is also kpartx10:26
xnoxogra_: wait you _do_ use lvm2 on nexus7 images?10:28
xnoxlilstevie: ^10:28
ogra_xnox, no10:28
ogra_lilstevie talks about the asus transformer10:28
xnoxah.... =)10:28
lilsteviexnox, not nexus 7 tf201, but we have been following the same method to generate images10:28
ogra_hmm, i wonder how much dropping parted from the initrd would gain me10:29
ogra_we only need it on the ac100, the ac100-tarball-installer could just not pull it in if we build for xenus10:29
ogra_*nexus10:29
ptlI modified a setting in nvidia-tegra x11.org template and now it does not start X. How can I recover?10:30
ptlin Ubuntu Nexus710:31
ogra_did you install openssh-server ?10:31
ptlyes10:31
ogra_so you can get in via the network10:31
ptlhow? it needs the graphical login to start, isn't it?10:31
ogra_no10:32
ogra_you should be able to just ssh in10:32
ptler... no it doesn't :P10:32
ptlsorry10:32
ptlif I install gpsd on Ubuntu Nexus 7 and some gps program, will I be able to use it as a GPS?10:33
ogra_dunno, try it (and document what you did to make it work once you have it working)10:34
ptlk thx :)10:35
ogra_oh, wow, the HDMI multi monitor mode of the chromebook is impressive, unity automatically picks it up and adds four new workspaces11:28
lilstevienice11:33
janimoptl, Android uses some binary libraries on the Nexus7 for GPS. So you may not be successful unless you figure out how to use them, or find free alternatives11:38
janimobut there needs to be some hw specific support somewhere11:38
janimoI don't know anything about GPS though, besides what i wrote above :)11:39
=== Quintasan_ is now known as Quintasan
ptlanyone knows a good CuBox kernel that has the device mapper compiled in?13:29
ptljanimo: oh, thanks for the info :-/ I thought GPS was something more open than that though13:30
ptlI would expect that from, say, GPRS stack13:30
janimoptl, https://developers.google.com/android/nexus/drivers#grouperjop40c has GPS blobs in the same zip as wifi and BT13:31
janimothat said it may not be hard to integrate with gpsd I have no idea how the GPS stack looks like :)13:32
ptl<- tired by all this closed-minded approach of hardware manufacturers13:32
janimocyphermox in ubuntu-devel has the task this cycle to look into GPS among other things13:32
* janimo wonders whether to ust include most nexus7 blobs in the raring nexus firmware package to ease tinkering13:38
ogra-cb++ if legal allows13:38
ptlwhat's '-cb', ogra?13:41
ogra-cbchromebook13:42
ptldang, I thought it would be CuBox :D13:43
ogra-cbnah, i dont touch cortex-a8 anymore13:43
ptlit is cortex a9, isn't it?M13:44
ogra-cbah, might be13:45
lilstevieisn't the CuBox a Marvell Armada51014:18
ptllilstevie: yes14:23
=== kalem_ is now known as kalem
ogra-cb[ ]   livecd.ubuntu-nexus7.bootimg                         20-Nov-2012 11:24 8.0M14:51
ogra-cb[ ]   livecd.ubuntu-nexus7.bootimg-nexus7                  20-Nov-2012 11:24 8.0M14:51
ogra-cb[ ]   livecd.ubuntu-nexus7.img                             20-Nov-2012 11:24 757M14:51
ogra-cb[ ]   livecd.ubuntu-nexus7.img-nexus7                      20-Nov-2012 11:24 757M14:51
ogra-cb\o/14:51
dholbachyoohoo14:52
ogra-cbstill to big, but at least it should boot now14:52
Tassadarwau14:54
Tassadarwell, what exactly livecd means, i mean, is it normal image or..?14:55
ogra-cbthats the raring (13.04) image i'm working on14:55
Tassadarby the way, is abootimg part of this whole ubuntu-supports-android-devices thing?14:58
ogra-cbwell, we currently use it to creatte or modify boot image parameters14:58
Tassadarit does not fill the id[] part of the boot image's header14:59
ogra-cbis that important for anything ?14:59
ogra-cbi havent seen probs caused by rgar neither on the ac100 nor on the nexus714:59
Tassadarnot really, just explaining why I care15:00
ogra-cbs/rgar/that/15:00
lilstevieTassadar, little more explanation please :)15:01
lilsteviedoesn't cause issues with tf101/tf201 either fwiw15:02
TassadarWell, I use the id array to distinguish boot images when multi-booting, I simply noticed that default ubuntu's boot.img has all 0's, which is not correct15:03
Tassadarthe id is important only so that you can say that boot images are different only by reading header15:04
Tassadarand I thought tha abootimg was created as part of ubuntu15:04
ogra-cbt was created as part of the ac100 netbook being enabled for linux15:07
ogra-cbubuntu was simply the first ditro to run on it :)15:07
ogra-cband the tool is helpful enough to be used with all existing android bootimages15:08
ogra-cbi assume there is a way to set the id field with something15:09
Tassadarno, not really15:09
TassadarI'm gonna go find source repository and maybe send a patch or something15:09
ogra-cbabootimg -u <bootimg> -c "id=foo"15:10
ogra-cbsomething like that doesnt work ?15:10
TassadarI searched the code, and it just sets it to zero I think, I'll check again15:10
ogra-cbwell, i'm pretty sure gilles is open to patches that fix this15:12
Tassadaryeah, just calloc(), which sets everything to 0, and then it is not changed anywhere15:15
Tassadarhmm, gitorious can't do forks, can it? Oh well15:15
TassadarAh, it just calls it "clone", okay15:16
ogra-cbsigh, if i only had named the image right15:53
vanhoofogra-cb: happy to test as well if you'd like :)16:03
ogra-cbnothing to test yet, but i will shout16:04
vanhoofogra-cb: cool16:04
vanhoofogra-cb: did an upgrade friday to R with only a few issues :)16:05
ogra-cbdebian-cd doesnt handle it if its called .img, i had to rename it .... which means a change in livecd-rootfs ... uploading it ... waiting for the publisher to promote it, waiting for the local builder mirror to pick it up and then a 90min build16:05
ogra-cbso expect something from my next attempt in 3h or so :)16:05
=== Martyn is now known as Guest2132
=== Guest2132 is now known as Martyn
vanhoofogra-cb: asked that reporter for more info on where UDA is actually mapped to16:31
vanhoofogra-cb: https://bugs.launchpad.net/ubuntu-nexus7/+bug/1079729/comments/2816:31
ubot2Launchpad bug 1079729 in ubuntu-nexus7 "Ubuntu uninstallable on 32GB 3G Nexus 7" [High,Invalid]16:31
vanhoofogra-cb: quite odd, even though his value is slightly less than mine here, should still fit within the 27gb boundry16:32
ogra-cbvanhoof, yeah, i was wanting to do that but then my build finished and distracted me16:32
vanhoofogra-cb: one thing I noticed after forcing the OTA update to 4.2, is I now have a /sdcard/0/16:32
vanhoofbut im not sure how that would impact things16:32
ogra-cbwell, it will unlikely repartition the device16:33
ogra-cbbut there will likely be devices with different MMCs16:33
Tassadar0/ is just a folder16:33
ogra-cbwhich will require different partitioning16:33
vanhoofTassadar: yeah just the only thing I noticed that is different after moving to 4.2 from 4.1.2, not sure its related at all16:34
ogra-cbespecially since android solely works by name the device can be anything16:34
Tassadarhmm, that means I should use only partition names too16:35
* Tassadar takes a note16:35
ogra-cbno, you want labels16:35
TassadarI mean the "/dev/block/platform/sdhci-tegra.3/by-name/APP"-like paths16:36
Tassadarso yeah, labels, wrong term, sorry)16:37
hrwTassadar: android 4.2 added multiuser handling16:47
hrwTassadar: that's why you have /0/ in many places16:47
hrwTassadar: check /data/ as well16:47
Tassadaryeah, I've noticed16:49
hrwmy archos tablet will probably break before 4.2 will be available for it16:51
prpplaguehehe16:51
hrwomap4430 suxx16:52
Tassadarwell, I've downgraded back to 4.1 anyway16:52
Tassadarthey removed tablet UI, and the whole system does not feel as snappy as before16:52
Tassadar:/16:52
hrwI will think 3 times before buying next tablet. 1st 'which one' 2,3 'are you mad?' ;D16:57
=== yofel_ is now known as yofel
vanhoofogra-cb: well there we go17:05
vanhooflrwxrwxrwx root root 2012-11-20 13:48 UDA -> /dev/block/mmcblk0p1017:05
ogra-cbheh17:05
ogra-cbas i thought17:05
ogra-cbthats pretty bad17:07
ogra-cbit will add one additional reboot to the install process17:07
ogra-cbhmm17:08
Tassadarchm17:08
vanhoofogra-cb: yup, RDO was added, which bumped UDA to p1017:10
Tassadarit is the 3g N7?17:11
Tassadar*is it...ya know17:11
ogra-cbso i think we need to go with UUIDs17:11
vanhoofTassadar: yup17:13
ogra-cb*if* the fastboot ext4 allows us to update it at least17:13
Tassadarat least the boot image is the same17:14
ogra-cbyes, thats the issue, while we can use that for initial booting, the uuid should be unique17:14
ogra-cbso we need to update it17:15
Tassadarcan't you use the "/dev/block/platform/sdhci-tegra.3/by-name/APP" path?17:16
ogra-cbno17:18
ogra-cbits non existent without android kernel17:18
ogra-cbubuntu@nexus7-roccos:~$ sudo blkid /dev/mmcblk0p917:19
ogra-cb/dev/mmcblk0p9: UUID="fc97cb4c-1167-4367-8fe8-68f7cec543ab" TYPE="ext4"17:19
ogra-cbubuntu@nexus7-roccos:~$ sudo tune2fs -U $(uuidgen) /dev/mmcblk0p917:19
ogra-cbtune2fs 1.42.5 (29-Jul-2012)17:19
ogra-cbubuntu@nexus7-roccos:~$17:19
ogra-cbubuntu@nexus7-roccos:~$ sudo blkid /dev/mmcblk0p917:20
ogra-cb/dev/mmcblk0p9: UUID="3be1ed4a-5de5-460d-b5ff-2d3174db55cc" TYPE="ext4"17:20
ogra-cbah, well, seems to work17:20
ogra-cblets see if the fs is still working after a reboot17:20
ogra-cbusually it starts eating itself as soon as i used any filesystem tools on it17:20
Tassadaroh, I see, ueventd creates that path17:21
ogra-cbyay, that works fine17:21
ogra-cbso we just need to store the image UUID somewhere the initrd can read it17:26
ogra-cbon first boot17:26
ogra-cband after extracting the tarball we bump to a new uuid and set a proper root= cmdline pointing to it17:27
ogra-cbbut well, first let me get images at all17:29
ogra-cbvanhoof, you can turn the bug into an ac100-tarball-installer one17:29
ogra-cbthats the place where i'll fis it for raring17:30
ogra-cb*fix17:30
=== doko_ is now known as doko
Tassadarogra-cb: hmm, you think it's okay to find /data by parsing /proc/partitions and looking for the biggest one?18:16
ogra-cbhuh ?18:16
ogra-cbwhy would i search for the biggest partition ?18:17
TassadarI mean, when I do the multi-boot, I need /data partition, and I can't really use UUID18:17
ogra-cbi just want to find the one the tarball lives in18:17
ogra-cbfastboot flashes to userdata, it knows what the biggest one is etc18:19
ogra-cbthe image we flash has (as every ext4 filesystem) a uuid18:19
ogra-cbso our installer bootimg will have that uuid in its root= arg18:19
ogra-cbto make the uuid actually unique we update the uuid on the fs and in the bootloader after untarring18:20
ogra-cbits not different to what we do now just that the uuid gets updated18:20
ogra-cband that we dont depend on device names18:21
Tassadaryes, I am lookin for a way to find data partition during boot, which would work on both android and ubuntu, and all the Nexus models18:21
RaYmAnyou could read the nvidia partition table and find the UDA partition number, then convert it to the GPT partition number :P18:22
vanhoofogra-cb: yup18:22
* ogra-cb will seriously stick to ubuntu defaults18:22
ogra-cbwhich means root=UUID=...18:23
vanhoofogra-cb: will do, was just looking at tarball-installer and thinking about how to fix :D18:23
Tassadarokay, i will use the dumb "find biggest" method, since I can't think of a scenario in which it will fail :)18:23
mfischcwayne: I'm going to try that gsettings switch for gksu in our defaults18:30
mfischcwayne: but I Think people will need to reinstall to get the setting18:30
cwaynemfisch: reinstall that package?18:30
cwayneor reinstall the system18:30
mfischcwayne: system, because it's a settings override18:31
mfischcreating a new user also works, that's how I'll test it18:31
cwaynemfisch: ack18:31
mfischoh this is gconf, not gsettings18:33
vanhoofogra-cb: fixed up that bug and added a brief description18:34
ogra-cbgreat18:34
vanhoofogra-cb: lmk if that works for you18:35
ogra-cbsounds good, yep18:36
ogra-cbvanhoof, for the tarball-installer in case you want to fix it for quantal, pull abootimg into the initrd using the hook script, detect if you are on a 3G model on boot, in that case use abootimg to update the cmdline in mmcblk0p2 and reboot18:58
vanhoofogra-cb: any sane way to detect, short of polling the partitions, assuming we only have bb at that point right?19:00
ogra-cbyou have proc ;)19:01
vanhooffair enough :)19:01
ogra-cband dev indeed19:01
ogra-cbwhat Tassadar said above should work for a hack19:02
ogra-cbcat /proc/partitions .... sort ... head -119:02
ogra-cbor some such19:02
ogra-cb(likely some more processing needed)19:03
vanhoofogra-cb: *curses*19:11
vanhoofdd19:11
vanhoof[...]19:11
vanhoof<no label>19:11
vanhoof[...]19:11
vanhoof;)19:11
ogra-cbvanhoof, cat /proc/partitions| grep $(cat /proc/partitions |grep mmcblk0p|awk '{print $3}'|sort -gr|head -1)19:15
ogra-cbthats good enough for a hack19:15
vanhoofogra-cb: right, I was attempting to be clever w/ dd to parse any label or evidence of UDA :)19:15
Tassadarand it indeed works19:16
RaYmAnvanhoof: did you look at uhm, /dev/block/by-name/ or similar?19:16
ogra-cbyou can likely somehow get it out of the GPT19:16
Tassadarwell, the 50-line C function equivalent to that one bash line works :D19:16
vanhoofRaYmAn: dd'ing off of the raw device itself (p9) and inspecting w/ strings to see what I can find19:19
vanhoofRaYmAn: more so curious if anything :)19:19
TassadarRaYmAn: these do not exist when using ubuntu kernel19:20
ogra-cbgrep $(grep mmcblk0p /proc/partitions |awk '{print $3}'|sort -gr|head -1) /proc/partitions19:20
ogra-cbwhorter and less cat'ing :)19:21
ogra-cb*shorter19:21
RaYmAnTassadar: hmm..well, android kernel must be getting it from somewhere.19:22
ogra-cbfrom the GPT i guess19:22
Tassadarit certainly must, but I don't wanna change ubuntu's kernel19:22
Tassadarwait, I think I know..19:22
Tassadarhm, no I dont19:23
RaYmAnthose partitions names are a bit of a mess across asus transformer devices. Some of them have wrong names by default , which may or may not get fixed during random OTA flashes. So don't expect that kind of detection to work outside of N719:24
TassadarI thought I saw something like that in ueventd.*.rc files in boot image, but it must have been something else19:24
ogra-cbhmpf19:50
ogra-cbhttp://cdimage.ubuntu.com/daily-preinstalled/20121120.3/19:50
ogra-cbbut the bootimg file is missing :/19:51
ogra-cbthats something i'll sort oout tomorrow morning though19:53
=== W1N9Zr7766 is now known as W1N9Zr0
=== _Lucretia__ is now known as _Lucretia_
vanhoofogra-cb_: trimmed that down significantly, now checking out what I can do w/ abootimg :)23:25
vanhoof$(grep mmcblk0p /proc/partitions | sort -gr -k3 | awk 'NR == 1 {print $4}')23:27
vanhoofnow if I only had a device to test ;)23:27
ogra-cb_abootimg -i /dev/mmcblk0p2 |grep cmdline23:40
ogra-cb_that'll give you the current commandline23:40
ogra-cb_abootimg -u /dev/mmcblk0p2 -c "cmdline=my shiny new commandline"23:40
ogra-cb_that will set the new one23:41
ogra-cb_dont use /proc/cmdline here, it has a ton of hardcoded bootloader things in it that you dont want in the bootimg23:41
ogra-cb_anyway, eod ...23:44
ptlanyone has the same experience?23:45
ptlhi, I have just tried a few sound programs in ubuntu on nexus7 and none worked23:45
ptleven gst12323:47

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