2016-06-20 12:36:31 @kido faenil: good job for your talk at QtDay ! :) 2016-06-20 12:36:41 faenil kido: thanks man :) 2016-06-20 15:33:02 Asara kido: how do you see how much battery is left? 2016-06-20 15:33:14 Asara also what is the timeline of installing to the watch instead of having to fastboot eveyr time 2016-06-20 15:33:17 Asara :) 2016-06-20 15:34:55 @kido Asara: don't you have battery percentage in the quick settings page ? (when you are on the main clock screen scroll up) 2016-06-20 15:36:50 @kido to replace android you can use "fastboot flash boot boot.img" instead of "fastboot boot boot.img". It will still load a loop partition on android's virtual internal sdcard though. If you flash the rootfs on top of the system partition it should work 2016-06-20 15:37:09 @kido I highly recommend doing a backup of those partitions first though 2016-06-20 15:38:13 Asara oh nice i do 2016-06-20 15:38:29 Asara hm. 2016-06-20 15:38:31 Asara HM. 2016-06-20 15:38:38 Asara has it been done before? 2016-06-20 15:38:43 * Asara is willing to go into no mans land 2016-06-20 15:39:03 @kido I don't think so :) 2016-06-20 15:39:26 @kido I mean, I already flashed my boot partitions but never messed with the system partition 2016-06-20 15:40:06 @kido so you might have a surprise there, that's why you should definitely keep a backup 2016-06-20 15:40:12 Asara alright 2016-06-20 15:40:15 * Asara is gonna do it. 2016-06-20 15:40:18 Asara don't try and stop me! 2016-06-20 15:40:19 Asara lol 2016-06-20 15:40:23 @kido ahah 2016-06-20 15:40:28 @kido I'm not trying ! 2016-06-20 15:41:08 Asara okay so first reboot into bootloader, fastboot to backup the partitions to my computer, fastboot to flash the images, and done? 2016-06-20 15:41:42 @kido that's right but I'm not sure if you can backup from fastboot 2016-06-20 15:43:19 @kido for example you can use TWRP in your recovery partition 2016-06-20 15:44:56 Asara now i'm scared. 2016-06-20 15:44:56 Asara lol 2016-06-20 15:44:57 Asara kidding 2016-06-20 15:46:08 @kido flash twrp on recovery, boot it, backup, pull the backups on your pc, try to reflash them just to make sure, wipe data in order not to use the rootfs.ext2 loop file, reboot to bootloader, flash asteroid's boot.img on top of boot partition, flash rootfs on top of system and reboot. If anything goes wrong you can go back to bootloader by swiping LG screen from top left to bottom right then choose to boot 2016-06-20 15:46:08 @kido recovery and you'll get access to adb and restore backup ;) 2016-06-20 15:47:53 @kido there is pretty much no way you can brick your device, you should just be careful if you want to avoid high level of adrenaline in your veins :) 2016-06-20 15:51:44 @kido so I have an image with Qt 5.6 here, it works pretty well unless you want to close an app. at that point things start to mess up pretty bad until your filesystem... gets wiped! :D this is a pretty wild beast actually 2016-06-20 15:53:08 @kido of course it's also hidden behing an heisenbug, (it wouldn't be fun enough otherwise) if I try to gdb asteroid-launcher ld-linux.so segfaults straight away 2016-06-20 16:17:16 TheAppleMan you'll need to modify the init script to load from new partitions if you repartition the disk 2016-06-20 16:18:02 TheAppleMan say, if you want to use more of the 4GB space for asteroid 2016-06-20 16:19:16 TheAppleMan https://github.com/AsteroidOS/meta-bass-hybris/blob/master/recipes-core/initrdscripts/initramfs-boot-android/machine.conf 2016-06-20 16:31:29 Asara twrp looks amazing on the watch haha 2016-06-20 16:49:49 Asara so system shows up at 0mb 2016-06-20 16:49:52 Asara in twrp 2016-06-20 16:50:14 Asara failed to mount /system 2016-06-20 16:50:16 Asara :( 2016-06-20 16:51:10 Asara and when i select system in mount 2016-06-20 16:51:12 Asara it just does nothing 2016-06-20 17:02:54 @kido TheAppleMan: using the whole system partition should be enough. but the default image's size is much smaller, he would have to extend the partition somehow 2016-06-20 17:05:11 @kido Asara: anyway this will probably work http://forum.xda-developers.com/watch-urbane/development/guide-return-to-stock-g-watch-urbane-t3213603 2016-06-20 17:09:10 Asara kido: i suddenly don't care about backing stuff up 2016-06-20 17:09:19 @kido ;) 2016-06-20 17:09:21 Asara i can just install the default stuff 2016-06-20 17:09:21 Asara word. 2016-06-20 17:09:22 Asara word. 2016-06-20 17:09:28 Asara so 2016-06-20 17:09:31 Asara how do i do this 2016-06-20 17:10:34 @kido yes those images should be enough 2016-06-20 17:11:26 @kido well just reboot to bootloader and use fastboot flash boot & fastboot flash system with the thing you want to flash (for asteroid it will be zImage-dtb.bass.fastboot and the rootfs) 2016-06-20 17:12:35 Asara erasing system 2016-06-20 17:12:40 Asara sending sparse 'system' 2016-06-20 17:12:56 Asara FAILED (remote: size too large) 2016-06-20 17:12:56 Asara finished. total time: 8.954s 2016-06-20 17:14:08 @kido mhhh you should compare the size of asteroid's rootfs and android's system partition 2016-06-20 17:15:02 @kido and if data partition is larger then you might want to flash asteroid's rootfs on top of the data partition and change that line https://github.com/AsteroidOS/meta-bass-hybris/blob/master/recipes-core/initrdscripts/initramfs-boot-android/init.sh#L100 2016-06-20 17:15:38 @kido to boot data instead of system 2016-06-20 17:34:42 Asara kido: yeah... system.img ->256 MB 2016-06-20 17:34:49 Asara asteroid-> 457MB 2016-06-20 17:35:04 @kido ahah it has good reasons not to fit then 2016-06-20 17:35:19 @kido well this is bad news that we are so fat 2016-06-20 17:35:37 Asara alright so what do i do here? fastboot flash data rootfs.ext2 2016-06-20 17:35:52 Asara then mount the /boot and change that init line to point to data instead of system? 2016-06-20 17:35:53 @kido this is also an idea of contribution, if anyone wants to make asteroid more lightweight it's highly welcome 2016-06-20 17:36:08 @kido Asara: that's it but you will have a hard time mounting boot 2016-06-20 17:36:19 @kido so you should just modify the script in your asteroid's build directory 2016-06-20 17:36:26 @kido src directory* 2016-06-20 17:36:43 Asara I removed everything after the build 2016-06-20 17:36:45 @kido then build a new linux-bass and flash your fresh new boot.img 2016-06-20 17:36:48 * Asara felt bad using work stuff 2016-06-20 17:36:54 @kido ah 2016-06-20 17:36:54 Asara alright i'll just build it again idc 2016-06-20 17:36:55 Asara :D 2016-06-20 17:37:12 @kido well if you use bitabke linux-bass instead of bitbake asteroid-image 2016-06-20 17:37:19 @kido it should be *much* faster 2016-06-20 17:37:41 @kido it will still take you some time to re-build the cross compilation toolchain and so on 2016-06-20 17:37:44 @kido but overall it should be ok 2016-06-20 17:49:59 Asara oh 2016-06-20 17:50:04 Asara it seems like I never removed the stuffs 2016-06-20 17:50:08 @kido hehe 2016-06-20 17:52:44 Asara kido: there is a env variable here for the system_parition 2016-06-20 17:52:56 Asara can i specify data_partition instead? (i'm assuming there is no variable set for that lol) 2016-06-20 17:52:57 @kido yep, it's set from machine.conf 2016-06-20 17:53:30 @kido sdcard_partition should be what you want 2016-06-20 17:54:47 @kido damn QtWayland changed every API in 5.7 it's a mess to upgrade lipstick 2016-06-20 19:46:21 Asara okay i went to lunch and just got back 2016-06-20 20:02:18 @kido tell us if you have any problem 2016-06-20 20:02:27 @kido I mean, any *new* problem 2016-06-20 20:22:41 Asara FAILED (remote: partition table doesn't exist) 2016-06-20 20:22:58 Asara when doing fastboot flash data bass/asteroid-image-bass-20160620180724.rootfs.ext2 2016-06-20 20:23:02 @kido mhhhh 2016-06-20 20:25:53 Asara target reported max download size of 268435456 bytes 2016-06-20 20:25:53 Asara Invalid sparse file format at header magi 2016-06-20 20:26:08 Asara could that be why? 2016-06-20 20:27:59 @kido ok I was afraid you would have somehow lost your watch's partition table but it seems that asteroid-image-bass-20160620180724.rootfs.ext2 is just in a wrong format 2016-06-20 20:28:15 @kido like, it can't be directly flashed like that 2016-06-20 20:28:30 Asara ah 2016-06-20 20:30:03 Asara save me kido 2016-06-20 20:30:04 @kido mhhhh, maybe you should just try to push the ext2 file to sdcard like you would normaly do from android wear but from TWRP 2016-06-20 20:30:20 Asara er... 2016-06-20 20:30:22 @kido once you get something working we will be able to search how to make it work more cleanly 2016-06-20 20:30:25 Asara how would taht work? 2016-06-20 20:30:32 @kido with loop mounting :/ 2016-06-20 20:30:44 @kido I don't like that but let's make your watch work first 2016-06-20 20:30:58 Asara ok booting to twrp 2016-06-20 20:31:54 Asara push the ext2 file to sdcard like you would normaly do from android wear but from twrp 2016-06-20 20:31:57 Asara er... ? 2016-06-20 20:32:03 Asara as in adb push? 2016-06-20 20:32:47 @kido yes 2016-06-20 20:33:30 @kido from twrp you should have your watch in adb devices, at this point you should also be able to get a shell with adb shell. if you see you have /sdcard/linux/ then you can adb push the ext2 file to the usual place 2016-06-20 20:35:31 Asara ~ # ls /sdcard/linux/ 2016-06-20 20:35:31 Asara rootfs.ext2 2016-06-20 20:35:59 @kido okay you can push your file 2016-06-20 20:36:33 @kido when rebooting it should mount that file 2016-06-20 20:40:18 Asara which file do i push? 2016-06-20 20:40:29 @kido asteroid-image-bass-20160620180724.rootfs.ext2 2016-06-20 20:40:36 @kido just as usual 2016-06-20 20:41:25 Asara i mean that already works :P 2016-06-20 20:44:00 @kido oh your watch already boots to asteroid by default? sorry didn't get it 2016-06-20 20:44:17 @kido somehow, I thought you were stuck on boot logo sorry 2016-06-20 20:45:06 Asara wait not by default 2016-06-20 20:45:14 Asara OH 2016-06-20 20:45:18 Asara so by cvhanging the bootloader 2016-06-20 20:45:29 Asara to point to /data/linux/rootfs.ext2 2016-06-20 20:45:37 Asara it should boot to asteroid by default? 2016-06-20 20:45:47 @kido wait 2016-06-20 20:45:57 @kido the bootloader is the proprietary component that allow you use fastboot 2016-06-20 20:46:12 @kido it allows you to flash partitions or load a boot.img from usb 2016-06-20 20:46:17 Asara i mean the init* 2016-06-20 20:46:30 Asara ah nice 2016-06-20 20:46:31 Asara fantastic 2016-06-20 20:46:38 Asara it boots to asteroid 2016-06-20 20:46:38 @kido and yes the init which is in the ramfs which is in the boot.img can load anything you want 2016-06-20 20:46:39 Asara :D 2016-06-20 20:46:45 @kido cool! :) 2016-06-20 20:47:04 @kido the problem is that it mount this file in loop which is pretty bad 2016-06-20 20:47:19 Asara ah 2016-06-20 20:47:19 @kido I would like to replace the data partition with the content of this file 2016-06-20 20:47:24 Asara how do i do it 2016-06-20 20:47:26 Asara LETS DO IT kido 2016-06-20 20:47:31 * Asara is hyped 2016-06-20 20:47:54 @kido ahah, well it's just a matter of finding how to pack the ext2 file so that fastboot accepts to flash it :D 2016-06-20 21:16:59 @kido alright, we got Qt 5.6 working :) (actually I'm quite surprised by how smoother the experience seems) 2016-06-20 21:35:42 Asara kido: 2016-06-20 21:35:43 Asara The fasthalt and fastboot utilities are nothing more than aliases for the halt and reboot utilities. 2016-06-20 21:35:48 Asara - FreeBSD 2016-06-20 21:36:10 @kido yes pretty bad naming 2016-06-20 21:37:18 Asara kido: i think android uses ext4 for system.img 2016-06-20 21:37:42 Asara never mind ext2 should work 2016-06-20 21:37:42 Asara h.m 2016-06-20 21:38:39 @kido Asara: https://github.com/shr-distribution/meta-smartphone/blob/shr/meta-android/classes/android_image_types.bbclass 2016-06-20 21:38:53 @kido we should probably choose this image format somewhere 2016-06-20 21:39:16 @kido I have to go, I let you check if you find anything useful around that 2016-06-20 21:39:29 @kido but I'm quite confident this is the way to go 2016-06-20 21:39:46 Asara oh god i have no idea what you mean 2016-06-20 21:39:47 Asara :D 2016-06-20 21:40:22 @kido https://github.com/AsteroidOS/meta-bass-hybris/blob/master/conf/machine/bass.conf#L25 2016-06-20 21:40:34 Asara ah ha 2016-06-20 21:40:40 @kido try to change ext2 to ext4.fastboot 2016-06-20 21:40:52 @kido set ANDROID_BOARD_SYSTEMIMAGE_PARTITION_SIZE and ANDROID_BOARD_FLASH_BLOCK_SIZE 2016-06-20 21:41:09 Asara any recommendation for those two sizes? 2016-06-20 21:41:24 @kido build asteroid-image and you should get an ext4.fastboot file in your build directory that can probably be flashed by fastboot on top of the data partition 2016-06-20 21:41:49 @kido well it depends on the data partition you have 2016-06-20 21:41:57 @kido I mean, I don't know the size of your data partition 2016-06-20 21:42:19 @kido you can get inspired by that https://github.com/shr-distribution/meta-smartphone/blob/a606b89dbcff460c74517f621bd2630998c466fd/meta-asus/conf/machine/include/grouper.inc#L40 2016-06-20 21:42:27 @kido but the values depend on your device 2016-06-20 21:42:33 Asara tis the urbane 2016-06-20 21:42:43 Asara i'll look into it if you don't know off the top of your head 2016-06-20 21:42:49 TheAppleMan yeah i never looked at the partition table 2016-06-20 21:43:33 @kido TheAppleMan: sure, this is something new 2016-06-20 21:43:41 Asara yay i'm a part of smoething new 2016-06-20 21:43:41 Asara woo 2016-06-20 21:43:42 Asara lol 2016-06-20 21:44:59 @kido of course you are :) this is the exciting part 2016-06-20 21:47:12 Asara TheAppleMan: ANDROID_BOARD_SYSTEMIMAGE_PARTITION = "mmcblk0p15" 2016-06-20 21:47:12 Asara ANDROID_BOARD_SYSTEMIMAGE_PARTITION_SIZE = "1073741824" 2016-06-20 21:47:12 Asara ANDROID_BOARD_FLASH_BLOCK_SIZE = "131072" 2016-06-20 21:47:15 Asara would that be it? 2016-06-20 21:52:36 TheAppleMan good question, i don't actually know what they control 2016-06-20 21:53:09 Asara time to wing it. 2016-06-20 22:14:29 Asara okay remaking the image 2016-06-20 22:14:32 Asara and then i'll try to flash it 2016-06-20 23:27:36 Asara very good 2016-06-20 23:27:37 Asara ERROR: No IMAGE_CMD defined for IMAGE_FSTYPES entry 'ext4.fastboot' - possibly invalid type name or missing support class 2016-06-20 23:27:40 Asara ERROR: Function failed: do_rootfs 2016-06-20 23:27:43 Asara ERROR: Logfile of failure stored in: /gcloud/amar/asteroid/build/tmp-glibc/work/bass-oe-linux-gnueabi/asteroid-image/1.0-r0/temp/log.do_rootfs.1572 2016-06-20 23:27:46 Asara ERROR: Task 7 (/gcloud/amar/asteroid/src/meta-asteroid/recipes-core/image/asteroid-image.bb, do_rootfs) failed with exit code '1' 2016-06-20 23:27:49 Asara lol 2016-06-20 23:31:08 Asara okay changed it to ex4 instead of ext4.fastboot 2016-06-20 23:31:12 Asara and it built 2016-06-20 23:39:18 Asara nope so that doesn't work either 2016-06-20 23:39:21 Asara same issue as before 2016-06-20 23:39:30 Asara root@dvws:~ # /usr/local/bin/fastboot flash data bass/asteroid-image-bass-20160620212949.rootfs.ext4 2016-06-20 23:39:33 Asara target reported max download size of 268435456 bytes 2016-06-20 23:39:36 Asara Invalid sparse file format at header magi 2016-06-20 23:39:38 Asara error: write_sparse_skip_chunk: don't care size 191956992 is not a multiple of the block size 4096 2016-06-20 23:39:41 Asara Assertion failed: (pad >= 0), function write_all_blocks, file /wrkdirs/usr/ports/devel/android-tools-fastboot/work/platform_system_core-android-6.0.0_r26/fastboot/../libsparse/sparse.c, line 153. 2016-06-20 23:39:45 Asara Abort (core dumped) 2016-06-20 23:40:27 Asara probably not a new error 2016-06-20 23:40:33 Asara WAIT i'm stupid 2016-06-20 23:40:34 Asara one sec 2016-06-20 23:41:44 Asara wait yeah no can't flash over /data 2016-06-20 23:45:28 Asara also restart doesn't seem to work 2016-06-20 23:45:31 Asara I have to power off and power back on 2016-06-20 23:48:29 Asara hm. 2016-06-20 23:48:32 Asara maybe I fucked it up more than that 2016-06-20 23:48:37 Asara doesn't even come on now... 2016-06-20 23:49:42 Asara okay i held it until it vibrated twice and now its coming on. 2016-06-20 23:49:48 Asara weird shit. 2016-06-20 23:51:16 Asara huh 2016-06-20 23:51:22 Asara root@dvws:~ # adb shell 2016-06-20 23:51:22 Asara shell@android:/ $ 2016-06-20 23:51:29 Asara still on bootloader though 2016-06-20 23:52:06 Asara oh i lied 2016-06-20 23:52:07 Asara that was my phone 2016-06-20 23:52:19 Asara stuck on bootloader and not showing up in adb 2016-06-20 23:52:20 Asara nice :D 2016-06-20 23:52:21 Asara :(