Camelia, the Perl 6 bug

IRC log for #motoactv, 2013-01-17

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

All times shown according to UTC.

Time Nick Message
09:52 dproldan joined #motoactv
12:31 dproldan Charging works,  display turns off, notif ligth work,  adb on normal cable works,  usb disk mode works
14:49 dproldan preview3:   https://docs.google.com/file/d​/0BxTLcy78OveNVy1aRHdnOGtGX0U
14:50 dproldan oops:   https://docs.google.com/file/d/0​BxTLcy78OveNVy1aRHdnOGtGX0U/edit
15:05 zobi8225 dproldan: it is the next version of your rom ?
15:05 dproldan no,  this is a port of AOSP,  vanilla android,  without any motorola crap
15:12 zobi8225 dproldan: ok ok
17:57 dproldan killed my MotoACTV  :-(
17:58 dproldan [mbm]: I managed to format the whole internal flash of my MotoACTV,  any idea of what to do
19:28 CEnnis91 dproldan: what?
19:28 CEnnis91 you can't just flash something over top of it?
19:29 CEnnis91 you can't just flash something over top of it?
19:32 dproldan no, the partitions are gone
19:32 dproldan the power button does nothing
19:33 dproldan not partitions ->  no bootlader -> no fastboot mode
19:34 dproldan I was fixing the sdcard sharing for this rom,  I finally managed to get it to show up in my mac
19:35 dproldan it didn't recognize its format
19:35 dproldan and I just reformatted it completely,  big mistake
19:35 CEnnis91 no bootloader?
19:35 CEnnis91 you need to talk to tan_software about jtagging
19:35 CEnnis91 is he still around?
19:36 dproldan yeah,  I don0t know if he's around
19:36 CEnnis91 once you lose you bootloader, i cant help anymore
19:36 CEnnis91 =/
19:36 dproldan I sent a message to bdaman80,  he also said he had jtag pins localized
19:36 CEnnis91 dont think [mbm] can do much, but i've been wrong before
19:37 dproldan seems there's some kind of a-boot usb
19:37 CEnnis91 a-boot?
19:37 dproldan where you can send the bootloader over usb
19:37 dproldan shorting a pin in the pcb or something
19:38 CEnnis91 oh, probably exists, but definitely not gonna be able to help there either
19:38 dproldan dunno,  maybe mbm knows something about that
19:39 dproldan good thing is I got sdcard working :-)
19:40 dproldan now, audio,  wifi and the color format are the next things
19:40 dproldan I hope I won't brick anything touching those...
19:40 CEnnis91 i have to head out, ill bbl
19:41 dproldan bye
19:47 CEnnis91|Mobile joined #motoactv
20:13 Atarii joined #motoactv
20:13 Atarii joined #motoactv
20:13 Atarii hey
20:29 dproldan hi
20:30 Atarii how's it going dproldan?
20:30 dproldan i killed my dev motoactv :-(
20:30 Atarii oh shit
20:30 Atarii battery?
20:31 dproldan nah,  fixing the vold to mount the sdcard
20:31 dproldan mounted the whole flash by mistake
20:31 dproldan and formatted it from teh mac without thinking
20:31 Atarii hmm can't you fix the partition table?
20:32 dproldan there's no bootloader,  it doesn't turn on at all
20:32 Atarii oh shit
20:32 dproldan good news are I fixed that :-)
20:33 Atarii what?! lol
20:33 dproldan I mean I fixed the sdcard not monuting
20:33 Atarii ah :)
20:33 Atarii have you got another motoactv?
20:33 dproldan I have another , yeah
20:34 dproldan many more things fixed today
20:34 dproldan it charges fine
20:34 dproldan adb can work with a standard usb cable
20:35 dproldan the display turns off/on perfectly
20:35 Atarii oh wow, you have been busy :)
20:35 Atarii how did you figure all those out?
20:36 dproldan logcat,  google,  grep,
20:37 CEnnis91|Mobile joined #motoactv
20:37 dproldan have you flashed the preview?
20:37 Atarii no, not yet
20:37 Atarii because of the charging thing
20:37 Atarii also i got 11.10 installed
20:37 Atarii and everyting set up
20:38 Atarii build still isn't working yet, but i'm on that now
20:38 dproldan ok,  i'll upload this latest version
20:39 Atarii I have a file: system/core/libnetutils/ifc_utils.c which has: #include <linux/ipv6_route.h
20:39 Atarii except that linux/ipv6_route.h doesn't exist
20:39 Atarii did you have issues like this?
20:40 dproldan let me check
20:41 dproldan I also have that file and the include
20:42 Atarii does the  linux/ipv6_route.h file exist?
20:42 Atarii oh wait
20:43 Atarii it does exist
20:43 Atarii ./kernel/omap3/include/linux/ipv6_route.h
20:43 dproldan home/dproldan/desarrollo/motoactv/ker​nel/omap3/include/linux/ipv6_route.h
20:43 dproldan and other places
20:43 Atarii wonder why it can't see it
20:44 dproldan you have this one?
20:44 dproldan home/dproldan/desarrollo/motoactv/prebuilt/​linux-x86/toolchain/i686-linux-glibc2.7-4.4​.3/sysroot/usr/include/linux/ipv6_route.h
20:44 Atarii yes
20:46 Atarii added that to my PATH and trying again
20:50 Atarii hmm
20:51 Atarii someone else had the same thing lol: http://pastebin.com/rL97AFzS
20:58 [mbm] dproldan: back. you formatted the entire flash including thr bootloader?
20:58 Atarii hey [mbm] :)
20:59 dproldan yeah,  mmcbkl1
20:59 [mbm] hopefully they used the omap gp
20:59 dproldan don't know what that is.  But i hope so :-)
20:59 [mbm] if they did you can bootstrap via usb
21:00 [mbm] hs = high security; typical moto locked down phones
21:00 dproldan ok
21:00 [mbm] gp = general purpose, no hardware locks
21:02 [mbm] if you power it on, it should show up as a usb device for a half second
21:02 [mbm] something like "ti omap 3"
21:03 dproldan let me check
21:03 [mbm] exactly when that shows up it sends out a special packet
21:03 [mbm] which is an asic id
21:05 [mbm] that packet contains the chip model information and hashes of the keys it expects the bootloader to be signed with
21:05 [mbm] and is the cue to attempt a usb boot
21:05 dproldan ok,  that happened,  with the factory cable
21:05 dproldan only half a second as you said
21:05 Atarii oh nice
21:06 [mbm] if you poke around the elinux wiki under the beagleboard sections you'll find more information
21:07 [mbm] on my other computer I have a program that waits for the asic packet and spits it out
21:07 [mbm] but what you'll need to do is grab the usb boot util
21:07 dproldan ok
21:07 dproldan I'm looking for that
21:10 dproldan ok,  if you guys want to try :
21:10 dproldan https://docs.google.com/file/d/0​BxTLcy78OveNbWotbWJYRDFJTVk/edit
21:11 dproldan only important things missing is audio and wifi
21:11 dproldan :-)
21:11 Atarii thanks again dproldan
21:11 Atarii heh gone from preview 2 -> 5 :)
21:12 dproldan no need to distribute something that can break devices  :-P
21:13 Atarii heh no definitely not
21:13 dproldan you can flash that and wipe in fastboot
21:13 dproldan it's not using the preinstalls yet
21:14 dproldan [mbm]: that's an AOSP port I'm putting together,  in case you want to dust off that motoactv
21:20 Atarii heh cyanogenmod boot animation
21:20 dproldan bah, the one I had on hand
21:21 Atarii this is nice dproldan :)
21:21 Atarii did you try that colour fix thing btw?
21:21 dproldan yeah,  didn't make a change
21:22 dproldan been reading about it,  looks like we need to modify something called pixelflinger
21:25 Atarii right ok
21:25 [mbm] dproldan: cool, although I think I'll wait until the "bricks motoactv" bug is sorted out ;)
21:25 Atarii haha that'sfixed [mbm] ;p
21:25 dproldan that bug was myself  :-)
21:26 dproldan I put "auto" in vold.fstab
21:26 dproldan so it started sharing the first block device it found
21:26 dproldan mmcblk1
21:27 dproldan then I stupidly formatted it
21:27 dproldan I reverted that to mmcblk1p22,  emstorage
21:27 [mbm] as for unbricking it, you're limited to sending a 64k bootstrap over usb, so it could be interesting -- you need to send something small that will boot up and allow you to reflash
21:28 dproldan yeah,  found this:  http://pandaboard.org/content/usb-downloa​der-and-usb-second-stage-bootloader-omap4
21:28 dproldan don't know if it would work for omap3630
21:29 [mbm] not sure if mbm is small enough to be sent that way
21:30 dproldan <-  heads to opticaldelusion
21:30 [mbm] heh, http://dl.opticaldelusion.org/asic
21:30 [mbm] that'll hexdump the asic packet
21:34 dproldan 179       44       8192 mmcblk1p12boot
21:35 dproldan ah,  that's boot image
21:35 dproldan nothing to do with this
21:36 dproldan 179       35        512 mmcblk1p3
21:36 dproldan that's mbm
21:36 dproldan 512 KB
21:37 [mbm] yeah but how much of that is code vs padding?
21:38 dproldan I'll dump it
21:42 [mbm] would be interested in seeing the asic packet just to confirm it's gp
21:43 dproldan you have that utility to remove the padding at hand?
21:45 dproldan uhm  I just dumped zeros
21:46 Atarii ls
21:47 dproldan shouln't this work?dd if=/dev/block/mmcblk1p3 of=/sdcard/mbm.img bs=512
21:50 [mbm] yep, although I can't remember the mmc mappings right now
21:50 [mbm] which cg is mapped to which partition
21:52 dproldan I assumed this order is ok:  http://wiki.opticaldelusion.org/wiki/Motoactv/CDT
21:52 [mbm] pretty close, but the mbr for example isn't actually a partition
21:53 dproldan cat proc/partitions,  only gives names for a handful of them
21:53 [mbm] the mbr is the start of a msdos partition table
21:53 dproldan i see
21:53 [mbm] and all the mmc stuff is based on the msdos partition table
21:57 [mbm] would expect an off by one sort of situation, eg - http://blog.opticaldelusion.org/2011/​10/bionic-development-notes.html#more
21:59 dproldan did a strings of mmcblk1p2
21:59 dproldan I can see things like this:
21:59 dproldan download
21:59 dproldan erase
21:59 dproldan flash
21:59 dproldan fb_mode_clear
21:59 dproldan getvar
21:59 dproldan reboot-bootloader
21:59 dproldan fb_mode_set
21:59 dproldan reboot
22:00 [mbm] yeah, parts of fastboot
22:00 dproldan MBM flash mode
22:00 dproldan fastboot mode
22:00 [mbm] yeah, that'd be mbm
22:00 dproldan ok,  dumping
22:02 [mbm] run the asic util I linked above, then reboot the motoactv and get it to dump the packet
22:02 dproldan ok,  trying
22:05 [mbm] http://www.droid-developers.org/wiki/Mbml​oader#How_to_know_in_advance_whether_a_gi​ven_mbmloader_can_work_on_the_Milestone
22:05 dproldan usb_bulk_read: Unknown error 4294967295
22:06 dproldan i'm in a VM
22:06 dproldan had to asign USB to the VM
22:07 [mbm] hmm
22:07 [mbm] no actual linux box handy?
22:08 [mbm] problem is that it's only active on usb for a split secpnd and the vm stuff adds delays
22:08 [mbm] also, sudo
22:09 dproldan lol
22:09 dproldan 01: 05 01| 36 30 07 07
22:09 dproldan 13: 02 01| 00
22:09 dproldan 12: 15 01| 15 fa b7 e3 3a a8 1b a0 1a 3e e7 dd 7a 91 70 36 3f 74 16 5e
22:09 dproldan 14: 15 01| ab 79 5e 84 a1 ee 56 fb 05 63 00 59 f9 a1 1c 2a a3 bf b7 67
22:09 dproldan 15: 09 01| 13 bf 3e ef 15 52 e7 03
22:09 dproldan sudo did the trick
22:10 [mbm] yeah, the error was -1 unsigned
22:10 [mbm] which is a -eperm
22:11 [mbm] anyway, bad news is that seems to be saying the bootloader is signed
22:11 dproldan https://www.dropbox.com/s/bspynr10p6p29ej/mbm.img
22:12 dproldan I don't intend to change it
22:12 [mbm] can't boot signed crap over usb - ti refuses to release that documentation without nda
22:12 [mbm] so this is a dead end
22:12 dproldan i see
22:13 [mbm] lemme ping a friend of mine who likes to dump emmc chips and see if he has any ideas
22:13 dproldan k
22:14 dproldan I guess uart and usb boot have the same restrictions
22:16 dproldan Atarii: what about that system
22:16 dproldan you think is faster?
22:16 Atarii hmm?
22:16 Atarii oh the aosp image?
22:17 Atarii yea really nice :)
22:17 dproldan the rom
22:17 Atarii so smooh
22:17 Atarii smooth*
22:17 Atarii and search works! lol
22:17 dproldan yeah,  gives some some ideas about what can be failing in the stock roms
22:17 Atarii yea deffo
22:17 dproldan maybe it's just missing htose ldpi resources
22:17 Atarii just wish this bloody build would work
22:18 Atarii :@
22:53 [mbm] did you fix the colors since the screenshots last night?
22:53 dproldan nope
23:09 Atarii dproldan is there anything else you can think you did?
23:09 Atarii to get this working lol
23:10 Atarii btw you say make this directory: motoactv_development/device/motorola/G2/
23:10 Atarii but your git checks out to android_device_motorola_G2
23:11 dproldan no, sorry.  I followed a couple of tutorials,  and if I had any error,  I found them on google
23:12 dproldan don't know exactly how git works, is that easy to fix?
23:12 Atarii do you have it all under /motoactv_development/device/motorola/G2/* ?
23:14 dproldan -  /home/dproldan/desarrollo/m​otoactv/device/motorola/G2
23:15 Atarii ok thanks
23:15 dproldan you mean that when you clone the git you get somthing like:  /home/dproldan/desarrollo/motoactv/device/m​otorola/G2/android_device_motorola_G2/xxxxx
23:15 Atarii yes :)
23:15 dproldan oops
23:17 dproldan when you repo sync the whole android sources,  you get both the device and vendor folders
23:17 Atarii ye
23:17 Atarii with samsung and another vendor
23:20 dproldan just mv everything inside that     android_device_motorola_G2/   back to   device/motorola/G2/
23:20 Atarii yea that's what I did :)
23:21 dproldan if it doesn't completely build,  you can try building individual packages
23:21 dproldan . build/envsetup      lunch generic_G2-userdebug     mm NameOfPackage
23:22 Atarii ok thanks

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