Camelia, the Perl 6 bug

IRC log for #motoactv, 2012-04-10

| Channels | #motoactv index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
01:41 Quietlyawesome94 joined #motoactv
04:57 christefano joined #motoactv
04:58 christefano joined #motoactv
05:08 christefano joined #motoactv
06:54 dproldan joined #motoactv
09:55 dproldan I'm getting "offline" from adb devices,  what's the property to set this?
12:45 _ilbot joined #motoactv
12:45 Topic for #motoactv is now MotoACTV Development. Channel logs at http://irclog.perlgeek.de/motoactv/
13:24 bigbob joined #motoactv
14:40 Snoothy joined #motoactv
15:24 Snoothy [mbm]aw.. can't play enigma on the motoactv - the acceleration sensors aren't mapped to android
15:24 Snoothy does this mean that the apps cant make use of the accelerometer? :<
15:26 Snoothy [mbm] ^
15:34 [mbm] for now, yes.
15:37 Snoothy also, i see you're mentioning factory cable a couple of times. is that something which isn't included with the motoactv?
15:37 Snoothy if not, what is it specifically?
15:56 Snoothy nvm, found it later in the logs - http://newworld2.net/pdls/olyphotos/FAC_CAB.jpg
16:42 dproldan joined #motoactv
16:43 [mbm] Snoothy: http://wiki.opticaldelusion.org/wiki/Motoactv .. started putting some of my notes online
16:44 dproldan [mbm]: do you know how to find the correct kernel cmdline?  I'm stuck wiht the porting and want to make sure I'm not missing somethinglike that?
16:44 dproldan hello all, btw
16:45 [mbm] dproldan: cat /proc/cmdline
16:45 [mbm] there are two places that the commandline can come from, the atags in the cdt or the header from the boot.img or recovery.img
16:45 dproldan you told me before that the bootloader adds somehting t
16:46 dproldan to that
16:46 [mbm] yep, bootloader and lbl will add stuff like androidboot.mode=....
16:47 dproldan do I need to care about that,  so far I'm onle passing the console,  init and partitions
16:47 [mbm] used to trigger things like the full screen charging animation
16:48 dproldan can I put the output of cat /proc/cmdline directly to the boot.img header?
16:48 [mbm] yep, although why bother? why not just use the cmdline exactly the same as the stock images?
16:49 dproldan I don't know how to get those
16:49 [mbm] you don't really need to do anything
16:50 dproldan this is what I'm using : console=/dev/null rw mem=254M@0x80000000 init=/init ip=off brdrev=P1 omap3_die_id mmcparts=mmcblk1:p6(pds),p12(boot),p13(r​ecovery),p14(cdrom),p15(misc),p16(cid),p​17(kpanic),p18(system),p19(cache),p20(pr​einstall),p21(userdata),p22(emstorage)
16:51 [mbm] are you aware of what atags are?
16:52 dproldan I think so, I've been reading your blog  :-)
16:52 [mbm] hmm, don't think I ever really mentioned them there
16:53 [mbm] http://www.simtec.co.uk/products/SWLI​NUX/files/booting_article.html#d0e428
16:53 dproldan uhm,  maybe somewhere else
16:55 [mbm] short answer is that the kernel is passed a pointer to a list of tags, each tag is essentially a custom struct
16:56 [mbm] one of the tags is used to pass the cmdline
16:56 [mbm] so if your kernel supports atags there's nothing further that you need to do
16:57 dproldan I'm trying to use the stock kernel,  so yes
16:58 [mbm] right, so stop messing with the cmdline and just take the value given by the bootloader
16:58 [mbm] unless there's some specific need to override it
16:58 dproldan you mean I don't need to pass anything to it?
16:58 [mbm] yep.
16:59 dproldan oh,  that's nice
16:59 [mbm] combination of atags and devtree is really handy
17:01 dproldan devtree needs to be mounted in init.rc? or is that done by the kernel  itself?
17:02 dproldan I mean,  is devtree something I need to care about for now?
17:04 [mbm] bootloader copies /dev/block/devtree to memory and adds a pointer to it as an atag
17:04 [mbm] kernel parses atags, finds the devree, starts parsing devtree
17:04 dproldan ok
17:04 [mbm] there's nothing you have to mount, it's not literally a filesystem
17:05 [mbm] the /proc/device-tree is just a convience thing so user applications can read the values the kernel was given
17:06 dproldan ok
17:06 dproldan now comes init, right?
17:07 dproldan what's the order for the different *.rc?
17:07 dproldan we have init.rc,  mapphone_umts.rc,  mapphone_cdma.rc
17:08 [mbm] it starts with init.rc and then goes to the init.$(platform).rc
17:08 dproldan so,  cdma is not run in the motoactv, right?
17:08 [mbm] right
17:09 [mbm] occasionally you'll also find a goldfish rc
17:09 [mbm] also not used -- goldfish is the name of the android emulator
17:10 dproldan ok,  that $(platform) is a hardwired value?
17:11 dproldan in the motoactv is *needs* to be mapphone_umts, yes?
17:12 [mbm] been too long since I looked at that code but I think it was init.rc mounts system and data and then runs the platform init, using values from the various prop files
17:12 [mbm] all of that code is opensource in aosp; if it was still browsable online I'd take a look
17:13 [mbm] ever since kernel.org got hacked a year ago the online git viewer has been missing
17:15 Snoothy if the coordinates 0,0 is in the upper right corner of the screen, whouldn't that mean that it is a portrait screen forced to SCREEN_ORIENTATION_REVERSE_LANDSCAPE by moto?
17:15 [mbm] oh.. I just remembered.. the platform name comes from /proc/cpuinfo
17:16 dproldan in the motoactv,  init.rc is 18.5 kB,  init.mapphone_umts.rc is 20.5 kB,    plenty of things are duplicated…  can't find a pattern
17:16 dproldan Hardware: mapphone_UMTS
17:17 dproldan I hope the capital letters don't matter here
17:17 [mbm] well, init.rc is the common startup and init.platform.rc is the overrides for a specific board
17:18 dproldan Snoothy: yes,  seems like that
17:18 [mbm] generally speaking, init.rc is stock android and init.platform.rc is the vendor extensions
17:19 Snoothy so enabling the accelerometer could potentially make it auto-rotate back to portrait? xD
17:20 [mbm] yep
17:20 Snoothy afaik, you can't software force a rotation globally?
17:21 dproldan Don't know,  I tried changing the setting manually,  didn't work for me
17:21 [mbm] there's a few properties you can set that change the orientation of surfaceflinger
17:22 dproldan look here,  last answer   :  http://android.stackexchange.com/que​stions/10808/how-is-the-default-scre​en-orientation-in-android-specified
17:24 Snoothy my xoom will remain in portrait when i disable auto-rotation in portrait
17:24 Snoothy same goes for landscape
17:25 [mbm] some apps force a particular orientation; running netflix on the motoactv rotates the screen 90' clockwise to the "portrait" mode
17:26 Snoothy yea, thats defined in the manifest
17:27 Snoothy is it possible to edit the manifest of files, just like when you translate apps?
17:27 Snoothy of apps*
17:37 [mbm] yep, although that would break the ability to update them from the market
17:38 Snoothy minor setback if you need it :P
17:46 dproldan gotta get into a plane in 45 mins.  thanks for the explanations!  bye
19:32 christefano joined #motoactv
20:19 lownox joined #motoactv
20:44 Quietlyawesome94 joined #motoactv

| Channels | #motoactv index | Today | | Search | Google Search | Plain-Text | summary