Camelia, the Perl 6 bug

IRC log for #motoactv, 2013-01-14

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

All times shown according to UTC.

Time Nick Message
00:07 evanzo23 joined #motoactv
10:11 dproldan joined #motoactv
11:21 new299 joined #motoactv
14:17 _tbb joined #motoactv
14:17 _tbb hi there, anyone around?
14:17 dproldan h
14:17 dproldan hi
14:17 dproldan yes
14:18 _tbb cool
14:18 _tbb i had buyed a watch before 2 days
14:18 _tbb i had rooted it and installed the latest Dprom
14:19 dproldan good
14:20 _tbb now i have buyed the beautiful widgets from the play store, it was installed but i'm not able to add an widget to the home screen, is that a known problem?
14:20 dproldan I guess.  you didn't move the Beautiful widgets  apk to the internal storage
14:21 _tbb ah, k, how do i resolve that? which is here the fastest way?
14:22 dproldan this is from DPRom's original post:
14:22 dproldan just be sure to move it to the internal flash from Settings, Application Settings, choose the app and tap the button "move to phone". You'll have to do this for other apps that require to be installed internally, like extra widgets.
14:26 _tbb thanks, sometimes it is so easy :)
14:26 dproldan :-)
14:27 dproldan remember to take a good look at the fisrt post and the restof the thread
14:27 dproldan sometimes it's good to read after you have it installed
14:28 dproldan you'll see some things that make sense after installing
14:28 _tbb why is it that the search funcionality always crashes the apps
14:29 dproldan Motorola broke that functionality, and we don't know how to fix it
14:30 _tbb damn it, r there any hope that they will fix it?
14:31 dproldan we are trying…  there's hope
15:08 _tbb is there an app available, which can push keystrokes from a computer via bluethooth to the motoactv
15:09 dproldan I don't know of any
15:11 _tbb it's hardly to type on that little tiny screen :)
15:12 dproldan yep
15:14 _tbb what i haven't figured out yet is, how to download maps, so if im on tour without having an internet connection, i still can navigate
15:16 dproldan you need an offline navigation system,  like Sygic,  TomTom, etc
15:17 dproldan I tried Sygic once,  it works fine
15:17 dproldan http://motoactv.wikispaces.com/home#Apps
15:17 dproldan look for GPS
15:41 _tbb thanks
15:45 _tbb äh, if i buy the Sygic one. Am i able to search for destinations or will it crash like the preinstalled navigation app. Because if it so i dont want to spend that much money on it?
17:14 Atarii joined #motoactv
17:14 Atarii joined #motoactv
17:55 dproldan Atarii: I pushed the built files  into the motoACTV using adb in recovery mode
17:55 dproldan good news is I got an adb connection
17:55 dproldan … to see all the errors that prevent it from booting
17:55 dproldan :-)
17:56 dproldan biggest problem is that /data and /cache are not being mounted and/or formatted
17:58 dproldan I think this is related to the build system still thinking they are yaffs
18:00 dproldan so I'm still looking for the correct way to tell the build system that the MotoACTV partitions are ext3
18:03 dproldan in the vanilla AOSP makefile,  this TARGET_USERIMAGES_USE_EXT3 := true  should make the trick,  but It gives a "only ext4 is supported!" at the end
18:06 Atarii hey dproldan :) just got back
18:06 dproldan hi
18:07 Atarii nice that you got that far :)
18:08 Atarii last night I got a build env up and got most of the way through (after spending aaagggeess sorting out the user TAGS)
18:08 Atarii fails to build though
18:10 dproldan oh?
18:10 dproldan what error?
18:11 Atarii http://pastie.org/pastes/5683891​/text?key=eigvikp2ufrdnfxpwhmfa
18:13 dproldan can't see the reason there
18:14 dproldan try a simple "make" without "-j4"?
18:15 Atarii yea that's how i have been doing it
18:16 Atarii one curious thing is the motoactv sources didn't seem to overwrite anything
18:16 Atarii just copied in fine
18:18 dproldan yep,  not that that would give any error,  just following instructions:  http://sourceforge.net/motorola/motoactv/di​scussion/general/thread/f27d345a/#81dd/d4ec
18:19 Atarii one other thing was loads of modules complained about the LOCAL_MODULE_TAGS issue (ones that didn't have user in them originally). They had no TAG. Did you have that?
18:19 dproldan anyway,  the moto sources are direct substitutions for complete AOSP folders
18:20 dproldan yes,  some of them didn't even had any TAG
18:20 dproldan the wlan related IIRC
18:21 Atarii ah yea, ok good
18:21 Atarii anyways ill look into this ext3 thing too for now
18:21 dproldan ok,  apart that the build system doesn't output a correct img file,
18:22 dproldan when the system boots,  if /data and /cache have been wiped (with fastboot -w)  they appear as yaffs type
18:23 dproldan nothing formats them correclty
18:24 Atarii right
18:26 Atarii BOARD_DATA_DEVICE := /dev/block/userdata
18:26 Atarii BOARD_DATA_FILESYSTEM := ext3
18:26 Atarii ?
18:26 Atarii maybe try that
18:27 dproldan I've seen that,  let me try it
18:30 dproldan uhm,  it definitely changed the size for userdata.img
18:31 dproldan trying the same for system
18:31 Atarii ok cool :)
18:32 Atarii cache should work like that too
18:32 dproldan would that be BOARD_SYSTEM_DEVICE?
18:32 Atarii yea
18:32 Atarii got the idea from here btw: https://github.com/slayher/android_device_​motorola_droid2/blob/master/BoardConfig.mk
18:32 Atarii note that they use (for system):
18:32 Atarii BOARD_SYSTEM_DEVICE := /dev/block/mmcblk1p21
18:33 Atarii wonder if we need to use that style
18:33 Atarii for the system one
18:33 dproldan ma has /dev/block/system,  but it shouldn't matter to use the mmcblk way
18:34 Atarii preinstall is in that config too (if anything goes in there)
18:35 dproldan system.img didn't change size after adding:
18:35 dproldan BOARD_SYSTEM_DEVICE := /dev/block/system
18:35 dproldan BOARD_SYSTEM_FILESYSTEM := ext3
18:35 dproldan trying with the mmcblk notation
18:37 dproldan no change
18:37 Atarii hmmm
18:37 Atarii maybe try booting if after doing userdata and cache?
18:40 dproldan ok,  I'll try that.
18:41 dproldan going to make clean before
19:10 dproldan ok,  there was a change in size!
19:10 dproldan flashing it!  :-)
19:12 Atarii awesome :)
19:19 dproldan nah
19:19 dproldan 29.001495] yaffs: dev is 187695154 name is "mmcblk1p18"
19:19 dproldan [   29.001739] yaffs: passed flags ""
19:19 dproldan [   29.001892] yaffs: Attempting MTD mount on 179.50, "mmcblk1p18"
19:21 Atarii hmm going to have to try to get that system building properly
19:22 dproldan you using ubuntu?
19:23 Atarii yes
19:23 Atarii 12.10
19:23 Atarii you?
19:24 dproldan 11.10
19:24 dproldan there are specific instructions for these,  for they're missing some things IIRC
19:25 Atarii hmm
19:26 Atarii it's weird how BOARD_SYSTEM_FILESYSTEM := ext3 didn't change anything
19:27 Atarii maybe that's being overridden somewhere
19:27 dproldan http://source.android.com/source/initializing.html
19:28 Atarii heh got that open in a tab thanks
19:40 Atarii you should add these too:
19:40 Atarii BOARD_DATA_FILESYSTEM_OPTIONS := nosuid,nodev,relatime,data=ordered
19:40 Atarii BOARD_CACHE_FILESYSTEM_OPTIONS := nosuid,nodev,relatime,data=ordered
19:41 Atarii did you try: BOARD_SYSTEM_DEVICE := /dev/block/mmcblk1p18 ?
19:41 dproldan yep
19:43 Atarii can you upload your BoardConfig.mk?
19:43 dproldan yep,  one sec
19:45 dproldan https://github.com/dproldan/android_devic​e_motorola_G2/blob/master/BoardConfig.mk
19:45 Atarii thanks :)
19:46 Atarii where did you get the partition size?
19:46 Atarii from your device?
19:47 dproldan copy from utkanos,  he made recovery for MA
19:48 Atarii ah did he upload the source?
19:48 dproldan yes,  don't know how up to date they are,  but we can ask
19:48 Atarii ah yes found it
19:48 Atarii https://github.com/utkanos/a​ndroid_motorola_F100_initrd
19:48 dproldan and https://github.com/utkanos/a​ndroid_device_motorola_F100
19:48 Atarii ah nice
19:56 Atarii line 15 and 16 you should change = to :-
19:56 Atarii := i mean lol
19:56 dproldan oops
20:01 dproldan another way of handling this is trying to make it build a proper zip file to be flashed in recovery
20:02 dproldan I don't know what's the command to do that in AOSP,  in CM it's make otapackage
20:02 Atarii or you could just manually convert the system fs to try it for now
20:02 dproldan yes,  the catch here is:
20:02 dproldan I somehow get the system files into /system
20:03 dproldan it will not boot because cache and data are filled with stock stuff
20:03 dproldan so I do a fastboot wipe
20:03 dproldan and it will not boot because they're not correctly formatted
20:04 Atarii oh, right
20:05 dproldan with a recovery zip file,  wipe, format and /system fill-up can be done in the same operation
20:05 Atarii check out the OTA Packaging stuff in this: https://github.com/travp624/device_mo​to_spyder/blob/master/BoardConfig.mk
20:05 Atarii lines 151 onwards
20:06 Atarii that's refrencing these tools: https://github.com/travp624/device_m​oto_spyder/tree/master/releasetools
20:06 dproldan I see
20:35 Atarii what you trying now?
20:36 dproldan copying and adapting releasetools, releaseutils,  etc
20:36 Atarii ok cool :)
20:36 Atarii still trying to get mine buildind
20:36 Atarii building*
20:41 Atarii are you using 64 or 32bit VM?
20:41 dproldan 64
20:47 Atarii just going to clean this out and redo it
20:47 Atarii (again)
20:47 Atarii already done this once today lol
20:47 dproldan :-)  been there done that
20:51 dproldan oops,  engadget.com is broken
20:51 Atarii haha yes
20:51 Atarii what did you do.. :p
20:51 dproldan lol
21:14 Atarii still syncing... :(
21:16 dproldan yeah,  that's the worst
21:17 dproldan can't remember how many times I've done that with AOSP and CM
21:18 Atarii haha, going to backup this time
21:19 Atarii maybe...
21:19 dproldan make sure it builds a generic-userdebug before dropping the moto sources
21:19 dproldan just to be sure that it works
21:21 Atarii ah yes, good idea
21:21 dproldan I had to do this :
21:21 dproldan http://e-xiao.blogspot.com.es/2011/10/re​solve-build-errors-for-android-234.html
21:21 dproldan I was getting errors 2 and 3
21:22 dproldan even under 64 bit ubuntu
21:23 Atarii ah great, thanks
21:23 Atarii btw do you have a factory cable
21:23 Atarii ?
21:23 dproldan yep
21:24 dproldan made one myself
21:24 Atarii ah ok, did you have to isntall any extra drivers?
21:24 dproldan nope
21:24 Atarii hmm, i got one off ebay
21:24 Atarii doesn't seem to find the device though
21:27 dproldan oh, wait. I'm using mac and linux,  no drivers involved
21:27 dproldan but there shouldn't be any difference with a standard usb cable
21:28 dproldan it's just a short between pins 4 and 5
21:28 dproldan pins 1-4 are directly connected
21:45 Atarii hmm ok ill try it in my VM
21:45 Atarii still syncing, not much else i can do yet lol
21:46 dproldan ok,  I tried to compile after adding those release tools and utils,  etc
21:46 dproldan no change at all
21:46 dproldan I don't see them getting called
21:47 dproldan at the moment I'm inserting echo commands at different stages of the main makefile to see what is ti doing
21:48 Atarii oh, damn ok
21:48 Atarii sucks to do thatmuch work and then no change at all
21:48 dproldan oh oh
21:48 dproldan make_ext4fs -l 163840000 -a system out/target/product/G2/obj/PACKAGING/​systemimage_intermediates/system.img out/target/product/G2/system
21:48 dproldan Creating filesystem with parameters:
21:48 dproldan Size: 163840000
21:48 dproldan Block size: 4096
21:48 dproldan Blocks per group: 32768
21:48 dproldan Inodes per group: 5000
21:48 dproldan Inode size: 256
21:48 dproldan Journal blocks: 1024
21:48 dproldan Label:
21:48 dproldan Blocks: 40000
21:48 dproldan Block groups: 2
21:48 dproldan Reserved block group size: 15
21:48 dproldan Created filesystem with 482/10000 inodes and 18211/40000 blocks
21:48 dproldan Install system fs image: out/target/product/G2/system.img
21:49 dproldan this is new!!
21:49 Atarii awesome :D
21:49 Atarii heh
21:49 Atarii gogogo
21:49 Atarii :p
21:51 dproldan but that has nothing to do with the release tools...
21:52 Atarii maybe the changes before did that, but you didn't notice?
21:52 dproldan now,  the board_mk2fs:=XXXX  property that you mentioned yesterday makes sense
21:53 dproldan so instead of make_ext4fs,  it uses mk_e2fs or something like that
21:54 dproldan this is the actual call:
21:54 dproldan $(call build-userimage-ext-target,$(TARGET_OUT),$​(1),system,$(INTERNAL_USERIMAGES_EXT_VARIA​NT),$(BOARD_SYSTEMIMAGE_PARTITION_SIZE))
21:55 Atarii hope that partition size is right
21:55 Atarii have you checked it against your device?
21:56 dproldan one sec
21:57 dproldan http://wiki.opticaldelusion.​org/wiki/Motoactv/CDT#system
21:58 dproldan https://www.google.es/#hl=es&tbo=d​&sclient=psy-ab&q=0x14dc0000+-​+0x0b180000+in+decimal&oq=0x14dc00​00+-+0x0b180000+in+decimal&gs_l=hp.3...6040.7617.4.7911.11.11.0.0.0.0.203.1665.0​j10j1.11.0...0.0...1c.1.528fHC4GXFI&pbx=1&bav=​on.2,or.r_gc.r_pw.r_cp.r_qf.&bvm=bv.1357700187​,d.d2k&fp=c6c3328793020a08&biw=1440&bih=787
21:58 dproldan lol,  sorry
21:58 dproldan seems to be ok
21:59 Atarii ah yea lol :)
22:01 dproldan that command to build system image seems to be missing the actual "ext2" type
22:02 Atarii do you know what type it created?
22:02 dproldan nope
22:02 dproldan according  to this:  make_ext4fs -l 163840000 -a system out/target/product/G2/obj/PACKAGING/​systemimage_intermediates/system.img out/target/product/G2/system
22:06 dproldan well,  let me go back a bit
22:06 dproldan trying to  make sense of all this
22:07 dproldan we have this:
22:07 dproldan ifeq ($(INTERNAL_USERIMAGES_USE_EXT),true)
22:07 dproldan INTERNAL_USERIMAGES_DEPS := $(MKEXT2USERIMG) $(MAKE_EXT4FS)
22:07 dproldan INTERNAL_USERIMAGES_BINARY_PATHS := $(sort $(dir $(INTERNAL_USERIMAGES_DEPS)))
22:07 dproldan # $(1): src directory
22:07 dproldan # $(2): output file
22:07 dproldan # $(3): mount point
22:07 dproldan # $(4): ext variant (ext2, ext3, ext4)
22:07 dproldan # $(5): size of the partition
22:07 dproldan define build-userimage-ext-target
22:07 dproldan @mkdir -p $(dir $(2))
22:07 dproldan $(hide) PATH=$(foreach p,$(INTERNAL_USERIMAGES_BI​NARY_PATHS),$(p):)$(PATH) \
22:07 dproldan $(MKEXT2USERIMG) $(1) $(2) $(4) $(3) $(5)
22:07 dproldan endef
22:07 dproldan else
22:08 Atarii right
22:08 Atarii so $(INTERNAL_USERIMAGES_EXT_VARIANT)
22:08 Atarii is the ext type
22:08 Atarii from this line earlier: $(call build-userimage-ext-target,$(TARGET_OUT),$​(1),system,$(INTERNAL_USERIMAGES_EXT_VARIA​NT),$(BOARD_SYSTEMIMAGE_PARTITION_SIZE))
22:09 dproldan do you know what this does?:     $(hide) PATH=$(foreach p,$(INTERNAL_USERIMAGES_BI​NARY_PATHS),$(p):)$(PATH) \
22:12 Atarii INTERNAL_USERIMAGES_USE_EXT := true
22:12 Atarii INTERNAL_USERIMAGES_EXT_VARIANT := ext3
22:12 Atarii ooo
22:12 Atarii that's in the core Makefile
22:12 Atarii ifeq ($(TARGET_USERIMAGES_USE_EXT2),true)
22:12 Atarii INTERNAL_USERIMAGES_USE_EXT := true
22:12 Atarii INTERNAL_USERIMAGES_EXT_VARIANT := ext2
22:12 Atarii else
22:13 dproldan yes,  for some reason,  if you put  TARGET_USERIMAGES_USE_EXT3=true,  the build fails
22:13 Atarii right
22:13 dproldan only ext4 is permitted!
22:13 Atarii maybe the makefile doesn't have the others
22:13 Atarii can you check that file
22:13 Atarii master/core/Makefile
22:14 dproldan oh,  it does have all them
22:14 dproldan anyway,  we are past that
22:14 dproldan what I'm trying to undersand is why it calls make_ext4fs
22:15 Atarii because of:TARGET_USERIMAGES_USE_EXT4 := true
22:15 Atarii if you set that
22:15 Atarii in the Makefile there's a if block which then does:
22:15 Atarii INTERNAL_USERIMAGES_USE_EXT := true
22:16 Atarii which if that is set, does:
22:16 Atarii INTERNAL_USERIMAGES_DEPS := $(MKEXTUSERIMG) $(MAKE_EXT4FS)
22:16 dproldan ok
22:18 Atarii ooh sync is done \o/
22:18 Atarii what lunch target did you use to check compiling the stock source?
22:19 dproldan one sec
22:19 dproldan generic-user
22:20 Atarii thanks :)
22:20 dproldan then tried generic-userdebug,
22:26 Atarii ahh
22:26 Atarii that same place fails
22:26 Atarii with generic-user
22:26 Atarii something to do with aapt
22:26 Atarii ill try those fixes you linked earlier
22:29 Atarii did you change the m64 to m32?
22:29 dproldan nope
22:30 dproldan I have 64 bit
22:34 Atarii did you try to boot with that system.img btw?
22:35 dproldan nope,  I'm pretty sure it's ext4
22:36 Atarii right ok, because of that flag
22:36 Atarii what did it error with, when using ext3?
22:36 dproldan it said that only etx4 is allowed
22:37 dproldan that's the thing there are ifeq's for ext2,3 and 4
22:37 dproldan but it only works if you define it to ext4
22:38 dproldan is this defining the executable to use?  INTERNAL_USERIMAGES_DEPS := $(MKEXT2USERIMG) $(MAKE_EXT4FS)
22:38 dproldan I can only find MAKE_EXT4FS defined
22:39 Atarii MKEXT2USERIMG := $(HOST_OUT_EXECUTABLES)/mkuserimg.sh
22:39 Atarii in core/config.mk
22:39 dproldan ah!,  ok
22:47 dproldan lol /system/extras/ext4_utils/mkuserimg.sh
22:47 dproldan case $EXT_VARIANT in
22:47 dproldan ext4) ;;
22:47 dproldan *) echo "Only ext4 is supported!"; exit 3 ;;
22:47 dproldan esac
22:47 Atarii yea I saw that, weird
22:47 Atarii why would they have that lol
22:48 Atarii you could comment out those case lines and see what happens I guess
22:48 dproldan yeah,  let's see
22:52 Atarii this person got around the ext4 error: http://forum.xda-developers.com/showp​ost.php?p=28760138&postcount=125
22:52 Atarii however, weird thing is they were trying to convert into ext4 lol
22:52 dproldan Atarii: your google-fu is impressive
22:53 dproldan :-)
22:53 Atarii lol thanks
23:01 Atarii what gcc version are you using?
23:02 dproldan don't know,  how can I check?
23:02 Atarii gcc --version
23:02 dproldan gcc version 4.6.1 (Ubuntu/Linaro 4.6.1-9ubuntu3)
23:02 Atarii right
23:02 Atarii i think that may be the problem
23:03 Atarii i think my gcc version is too high
23:03 Atarii found some other fixes to try first, if not ill have to downgrade
23:13 dproldan uhm:  http://processors.wiki.ti.com/index.​php/Android_gingerbread_eMMC_booting
23:13 dproldan sorry:  http://processors.wiki.ti.com/index.php/​Android_gingerbread_eMMC_booting#system.img
23:14 Atarii hmm that looks like a bit dirty
23:15 Atarii mount the ext4, copy out the files, add them to an ext3 img
23:15 Atarii could try it though :)
23:15 dproldan i was thinking in doing the same but wiht mkfs.ext3
23:16 dproldan like this:
23:16 dproldan $dd if=/dev/zero of=./system.img bs=1M count=250
23:16 dproldan $mkfs.ext3 system.img                                                      <-------------
23:16 dproldan $mkdir mnt-point
23:16 dproldan $sudo mount -t ext4 -o loop system.img mnt-point/
23:16 dproldan $cp -rfp <ANDROID_SOURCE>/out/target​/product/omap3evm/system/* mnt-point/
23:16 Atarii ooh yea
23:16 Atarii and line 4
23:16 dproldan and the mount,  of course
23:22 Atarii back in 10
23:35 dproldan ok,  those commands work!
23:35 dproldan I've been able to fastboot flash a system.img created with it
23:35 dproldan and it gets mounted fine
23:36 Atarii awesome
23:36 Atarii have you tried booting?
23:36 dproldan yes,  didn't  :-)
23:37 dproldan trying to enable adb now
23:40 Atarii ok cool
23:40 dproldan crap,  adb doesn't turn on
23:41 Atarii damn
23:42 Atarii did it compile a kernel too?
23:43 dproldan no,  it's turned off in boardConfig AFAIK
23:43 Atarii ok
23:43 Atarii oh yes: TARGET_NO_KERNEL := true
23:46 Atarii ok you could try this ramdisk modification to get output: http://forum.xda-developers.com/sho​wthread.php?p=32907562#post32907562
23:47 Atarii that forces adb I think
23:49 Atarii i think you can also add a console paramter to the kernel commandline
23:49 dproldan that guy is genius,  I had a Moto Milestone
23:50 Atarii he certainly has a lot of thanks lol
23:51 dproldan I offered to send him a MotoACTV,  probably would take him all of 10 minutes to have CM running
23:51 dproldan he said he has no time, unfortunately
23:52 Atarii damn...
23:56 dproldan oh,  wait,  this morning I got adb with the factory cable….
23:57 dproldan yesss
23:57 dproldan that was it
23:57 Atarii heh, nice!
23:57 Atarii i'lll have to remmeber that
23:58 dproldan it's in default.prop:
23:58 dproldan persist.factory.allow_adb=1
23:58 dproldan persist.service.adb.enable=1
23:59 Atarii ah ok

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