/srv/irclogs.ubuntu.com/2015/04/03/#ubuntu-touch.txt

danriksooo - does anyone know when is the next ubunntu phone gonna come out?01:15
danrikI just broke my android - but I want something more serious than bq aquaris.01:16
k1ldid not hear anything more than "soon"01:17
danrikk1l, ok - then how about best supported phone so far?  nexus 5?01:17
k1lerm. both nexus 4 and 5 seem to be ok?01:18
DonkeyHoteinexus5 has no bluetooth and won't play videos01:22
k1loh.01:23
k1lnexus4 was the original dev device.01:23
danrikk1l, so that leaves only nexus 4?01:24
DonkeyHoteithe meizu mx4 is the next phone01:24
danrikdamn. mx4 is gsm, im on verizon :(.01:29
=== chihchun_afk is now known as chihchun
FR43D14ZHello People :D Hay alguien que hable español?02:52
EdwardMorbiusguys I have a serious issue with my BQ, this morning it froze and I powered it off then on and now I am stuck at boot loop at the BQ logo and powered by Ubuntu screen.07:35
EdwardMorbiusnow attempting to enter recovery, still waiting at the ubuntu logo07:43
EdwardMorbiusa few bq logo flashes and now it boots "normally"??07:45
ogra_EdwardMorbius, https://lists.launchpad.net/ubuntu-phone/msg11819.html07:46
EdwardMorbiusogra I think this has something to do with changed system language07:47
ogra_from what to what did you change it ?07:47
EdwardMorbiusI switched from english us to english uk and I read on the Internet about someone else getting bootloop after they changed language07:47
ogra_could you comment on the bu that is mentioned in the above mail ?07:48
ogra_*bu07:48
ogra_bah07:48
ogra_*bug07:48
EdwardMorbiuswill do so now, because I had one phone freeze before but I powered it off and on normally07:48
EdwardMorbiusbut now I got bootloop07:48
ogra_oh, you sounded like it booted again above07:49
EdwardMorbiusthe option in the gui erase&reset everything will make a full factory reset right?07:49
EdwardMorbiusIt did boot but looks shaky to me07:49
ogra_yes :/07:49
ogra_define "looks shaky"07:49
EdwardMorbiusindicator date time is bugged and I got to gui some time ago too, attempted a new reboot from gui and again got the bootloop07:49
EdwardMorbiusso I believe factory reset is the way to get everything in the clear again07:50
ogra_yeah, but at lest you have the ui up to be able to pull down photos etc if needed07:51
ogra_the factory reset will sort it07:51
EdwardMorbiusdidnt have any photos worth saving anyway, restoring all my settings will be a little chore though07:53
ogra_yeah, we really need a backup tool for this ... one that stores and restores all data and settings07:53
EdwardMorbiusphone resetted and I am commenting on the bug now07:53
EdwardMorbiusyes that would be very helpful07:53
ogra_thanks !07:53
EdwardMorbiusjust posted, too bad I had to reset the phone, I am guessing all the logs are gone now too.07:55
ogra_yes, but you are the second person that claims it happened after language switch ... that at least gives a pointer07:55
ogra_(though trying to reproduce it on a development device here doesnt get me the issue)07:56
EdwardMorbiusdevelopment device as in nexus 4?07:56
ogra_no, a pre-production bq07:56
ogra_same device .... but with android buttons on the glass :)07:57
EdwardMorbiusmaybe someone with the production device should attempt it, gremlins inside may be different than in the pre production one.07:57
ogra_yeah07:57
EdwardMorbiuswhen device froze I was like "oh I will post some logs as bug report later on" but then :O :D07:58
ogra_yeah, if you cant boot that wont help :)07:58
EdwardMorbiusI am not touching the system language again :D08:00
ogra_heh08:00
ogra_there might be a differnce in how the welcome wizard sets it and how the system settings do08:00
EdwardMorbiustrue, someone should check that, it is possibly an oversight08:01
ogra_riht, i will ... after easter vacation though ... i'm not officially here :)08:01
EdwardMorbiuslets hope no more people get ideas about changing the system language :D08:02
ogra_yep :/08:03
EdwardMorbiusand that backup tool would be veeery nice if someone can make it08:04
EdwardMorbiusupdating apps...08:09
EdwardMorbiusIs it just me or is the Ubuntu Store sometimes a bit slow?08:10
=== thomas_ is now known as Guest55350
Isotop7i rootstrock-ng only useable for the supported devices? what would i do if i had a freshly build system.img for my galaxy s410:22
Isotop7?10:22
rickspencer3good morning all10:54
rickspencer3shall I assume that everyone is on holiday today?10:54
rickspencer3except us poor saps from the USA, and then I guess I assume I am the only one crazy enough to be up already?10:55
didrocksrickspencer3: real part of France is working as well :)10:56
rickspencer3hey!10:56
didrockshey ;)10:56
rickspencer3bon courage!10:56
didrocksmerci, à toi aussi !10:57
rickspencer3I was not expecting a response :)10:57
greybackthe heathen land of Ireland also defiant11:01
didrocksgreyback: hey! you keep wanting to be different than the UK, I see ;)11:02
greybackdidrocks: you're lucky there's an ocean between us!11:03
didrocksgreyback: j/k ;)11:03
greyback:D11:03
rickspencer3greyback!11:05
greybackrickspencer3: at your service *hat tip* :)11:05
rickspencer3o/11:05
rickspencer3just saying "hi"11:05
rickspencer3I got up early because I was so worried about the bootloop issue I couldn't sleep11:06
rickspencer3I imagined hundreds of people factory resetting their phones this morning :/11:06
=== cwayne-afk is now known as cwayne
=== dkessel_ is now known as dkessel
Isotop7how do i get my compiled images and the rootfs to my s4 in order to get it up running?11:34
rickspencer3Isotop7, hey, I feart that the channel may be slightly laggy for you today, I know I lot of people are afk b/c of Easter :/11:40
Laneydudes, I'm getting "invalid cross-device link" when using the citrain thingy to install a silo11:40
Laneyhow go problem fix I?11:40
seb128Laney, you might want #ubuntu-ci-eng rather11:56
ogra_Laney, i think robru fiddled with the code very recently ... (last week)11:57
ogra_probably check if there is a newer version11:58
Laneywhere?11:58
ogra_phablet-team PPA11:58
LaneyI used that Ubuntu archive thing11:58
Laneyogra_: how did you test that lxc-android-config fix?12:17
ogra_i made the file writable through writable-paths and rebooted12:18
ogra_installing lxc-android-config is rather painful so i only tested the chnage12:18
Laneyso touch /userdata/.wriatble_paths; reboot; edit; rm /.../.; reboot; test ?12:18
ogra_i never touch writable_paths...12:19
Laneyyou can just edit it?12:19
ogra_wget the deb ... reboo to recovery ...12:19
Laneywoah12:19
Laneywhat is this?12:19
ogra_install lxc-android-config chrooted into the rootfs12:19
ogra_then reboot ...12:20
LaneyO_O12:20
didrocksit's only a file change, right?12:20
ogra_thats how to install this package12:20
ogra_as i said ... painfull12:20
ogra_thanks to our bindmount farm spanning across partitions12:20
didrocksyou can mount -o remount,rw …, do the change, reboot12:20
ogra_not to test the package12:20
ogra_but yeah, to test the change12:21
didrocksyeah, not the package, but just the 8 char changes in a string file12:21
ogra_right, that wont tell you if the package did the right thing though ... but is enough o check the change works12:21
Laneygiven that you think it does and jibel says it does not ...12:22
ogra_yeah, i told him i'll research it after the holidays12:22
ogra_is there a reason why we dont use the same .override mechanism we use in vivid ?12:23
didrocksseems that all frenchies are trying to make Laney's life hard :)12:23
Laneyconspiracy!12:23
didrocksogra_: well, it needs some changes to multiple components to work12:23
didrockswhoopsie, whoopsie-preferences…12:23
didrocksnot sure you want those changes for rtm12:23
didrocks(handling transitions…)12:23
ogra_didrocks, ah, no12:24
didrocksogra_: look at the postinsts, you will have fun :p12:24
didrocksbut I think those kind of changes are good, no more "ENABLE" in conffiles12:24
ogra_i dont really care about conffiles on the phone :)12:25
didrocksogra_: well, you have to find a way to transition though?12:25
didrockslike, how would you transition to the new system with the .override12:25
ogra_why ? we just replace12:25
didrocksonce moved to vivid?12:25
Laneyhow do you preserve the user setting?12:25
didrocksok, so the user disabled whoopsie12:25
didrocks/etc/default/whoopsie have ENABLED=false12:25
didrocksin vivid-based image, this reflect in the /etc/init/whoopsie.override with "manual"12:25
didrockshow do you handle that in the touch world?12:26
ogra_ah, that ... yeah, a simple upstart job does that ... in our upgrade management12:26
didrocksok, this happens in recovery, after the unpack?12:26
ogra_we have that upstart subdir wheer you can drop transition jobs12:26
didrocks(and before removing files that are not anymore in the new image?)12:26
ogra_on first boot after upgrade12:26
didrockshum12:26
didrocksbut /etc/default/whoopsie would disappear, wouldn't it?12:26
ogra_or by developer chice on every boot)12:26
didrocksor we keep it and let the transition job deleting it?12:27
ogra_yep12:27
didrocksogra_: that's the thing based on session-migration or something else?12:27
ogra_something else12:27
didrocks(because my session-migration is only executed by session)12:27
ogra_right12:27
didrocksok, was afraid it was going to start too late12:27
ogra_search for boot in /etc/init on a phone12:28
didrockssounds good then, I'm just afraid we forget about it though12:28
didrocks(and that's just one case)12:28
ogra_there is a subdir and a job executing th bits indside that subdir12:28
ogra_both called boot-$something12:28
* ogra_ has no phone cnsole around12:28
didrocksogra_: no worry, but I think as long as we have the pre/post* world and this image-based one, we might miss those transitions on one side or the other12:29
ogra_we surely will12:29
* ogra_ looksforward to snappy 12:29
didrocks;)12:29
ogra_getting rid of all the deb mess :)12:30
lemmsterSuppose I want to replace Ubuntu with Android on the Aquaris e4.5 (I need PGP support for email), can I use fastboot flashall with imgs taken from bq's firmware zips for an hard reset?12:30
ogra_lemmster, i fear thats something you need to ask bq12:31
ogra_not sure you can install android at all, since the partitioning scheme is different12:31
EdwardMorbiusogra I believe it can be done because I think I saw someone on Twitter that said he reflashed the phone with Android while he waits for bugs to be fixed in UT12:32
ogra_and ... well ... there are no android buttons on the glass ...12:32
dbealHow can I enable ttyUSB/ttyACM usb serial support for host-mode usb (on a Nexus 5)?12:32
lemmsterogra_: There are manuals on the web to replace android with ubuntu. I would assume the reverse should be possible as well (not that I have tried the former).12:32
lemmsterEdwardMorbius: You still happen to have a ref to the tweet?12:33
EdwardMorbiusogra that can be solved by using softkeys if firmware allows it and it should I believe12:33
ogra_lemmster, well, i know that there is a different partitioning scheme applied to ubuntu phones ... it might or might not work12:33
EdwardMorbiuslemmster I will check if I have it somewhere12:33
ogra_this is definitely not something we exercise in development :)12:33
=== tosky__ is now known as tosk
=== tosk is now known as tosky
ogra_also keep in mind that the flashing of android might perhaps change the partitioning ... i have no idea how the android zips work in this case ... it might prevent you from re-installing ubuntu then12:35
EdwardMorbiuslemmster https://twitter.com/sharkdrink/status/58178666848050380812:35
lemmsterEdwardMorbius: Thanks12:36
EdwardMorbiuslemmster no problem12:37
EdwardMorbiusso I heard on the last Ubuntu live session that the UT actually has another theme inside, the Ambience but currently there is no way you can switch to it, that correct?12:41
Laneyogra_: do you know of any documentation for this writable-paths file?12:45
LaneyI just checked and after modifying it (even with 'transition') /etc/default/apport is empty on reboot12:45
ogra_apport12:46
ogra_?12:46
Laneywhoopsie!12:47
ogra_ah12:47
ogra_:)12:47
Laneywait WTF now it's not12:47
Laneynow I'm questioning the nature of reality itself12:47
ogra_http://bazaar.launchpad.net/~ubuntu-branches/ubuntu/vivid/initramfs-tools-ubuntu-touch/vivid/view/head:/scripts/touch12:48
ogra_line 336ff12:48
Laneyhex line numbers12:49
ogra_heh12:49
dbealHow do I chrt into the lxc container?12:50
ogra_lxc-console -t0 -nandroid12:50
ogra_from the running ubuntu12:50
dbealCool12:51
ogra_(you need ctrl-a-q to exit it)12:51
Laneyogra_: Could not write configuration: Failed to create file '/etc/default/whoopsie.0NIIWX': Read-only file system13:06
Laneyit's trying to do an atomic write13:06
ogra_yeah, that wont wrk13:06
Laneysnazzy13:06
ogra_Laney, that will be a bigger change ... we have a dir for such special cases, but the file needs to be pre-created during build13:08
ogra_what you want is /userdata/system-data/etc/writable/whoopsie and a bind mount like hostname and localtime use13:08
LaneyI remember this hack13:09
Laneygoing to go climbing instead :)13:12
ogra_enjoy :)13:12
peat-psuwitrsalveti: ping13:14
dbealHow do I compile a .ko for the hammerhead kernel?13:19
spazzymotohey guys, i hope someone can help me. Im working on the port for the one plus one and im struggling to get the /firmware partition to mount correctly. From what i have read there is a script that runs that updates the fstab on boot? I have tried to correct add some code to out the correct mount options for /firmware in the script /usr/lib/lxc-android-config/update-fstab but have had no luck. Any ideas13:20
ogra_spazzymoto, that script just grabs the fstab from android and processes it, if you have a /factory entry in your android fstab it will be automatically created13:28
ogra_err13:28
ogra_/firmware13:28
spazzymotohmm13:31
spazzymotoi do have it in my fstab.bacon13:31
spazzymotobut if i check /etc/fstab once booted i dont see an entry for /firmware13:31
spazzymotoand doing an ls /firmware returns nothing either13:32
spazzymotoif i manually mount it with /dev/mmcblk0p1 /firmware vfat ro,shortname=lower,uid=1000,gid=1026,dmask=227,fmask=337,context=u:object_r:firmware_file:s0 wait i can browse the partition13:32
ogra_http://bazaar.launchpad.net/~ubuntu-branches/ubuntu/vivid/initramfs-tools-ubuntu-touch/vivid/view/head:/scripts/touch#L40813:33
ogra_and http://bazaar.launchpad.net/~ubuntu-branches/ubuntu/vivid/initramfs-tools-ubuntu-touch/vivid/view/head:/scripts/touch#L82 for the function13:33
spazzymotothank you let me have a look at that13:35
ogra_hmm, looking at this code, i wonder what happens if you have multiple fstab files in that location :)13:39
ogra_spazzymoto, do you have more than one file that starts with "fstab" in yoour android rootfs ?13:39
spazzymotoogra, only 1 file hey13:41
spazzymotoi do see the message [   16.174895] initrd: mounting /dev/disk/by-partlabel/modem as /root/android//firmware13:50
lemmsterogra_: FYI: I successfully flashed Android with this MKT Flash Tool on Windows and the bq firmware reset image.13:50
spazzymotoah mount: special device /dev/block/platform/msm_sdcc.1/by-name/modem does not exist :( will try change this to /dev/mmcblk0p113:54
ogra_lemmster, right, as i said, you might not be able t go back ... better test that before you start usingthe phone ;)13:55
ogra_spazzymoto, wont that break android then ?13:57
lemmsterogra_: I will try to go back the moment the features I'm missing are there.13:57
ogra_you usually dont have /dev/mmcblkX there13:57
dbealIs there an Ubuntu Touch that doesn't require Android?13:57
ogra_dbeal, there is the desktop-next image for PCs13:57
spazzymotoorga :/ ah i didnt know that13:57
ogra_spazzymoto, you rather want to make sure your kernel provides /dev/block/platform/msm_sdcc.1/by-name/modem ...13:58
spazzymotoogra, thanks for the help. Ill go research on how to make that happen13:59
ogra_:)13:59
ogra_spazzymoto, are you sureat all that you need /firmware on the ubuntu side ?13:59
ogra_usually the modem is completely handled inside the container ... ubuntu talks to it via rild14:00
spazzymotoi might be on the wrong tack. Im seeing these messages in my dmesg14:01
spazzymoto[   20.829270] msm_ipc_load_default_node: Failed to load modem [   20.858718] pil-q6v5-mss fc880000.qcom,mss: mba: Failed to locate mba.mdt14:01
ogra_well, that is something your init.rc in the container should handle i guess14:01
ogra_the kernel prints messages for both systems ... it is sometimes hard to allocate them to the right one ... but i guess this one comes from inside the container14:02
spazzymotook cool :) let me poke around a bit more. Thanks for putting me on the right path14:04
dbealIs there a phone with Ubuntu that doesn't require Android?14:36
dbeal[02:27] <ogra_> dbeal, there is the desktop-next image for PCs14:36
ogra_dbeal, no14:36
ogra_if you want to make any use of the hardware yu wont get around using the binary drivers14:36
dbealIn my mind, a phone is a small computer.14:37
ogra_sure14:38
dbealSo is the problem that, for some specific hardware (e.g., Nexus 5 camera), the only drivers available are within Android?14:38
ogra_well, if it would just be the camera :)14:38
ogra_modem, all sensors, gps, camera, graphics chip, audio and video codecs14:39
dbealAre those all binary only drivers?14:39
ogra_yes14:39
dbealIs there one for host-mode usb serial support?14:40
ogra_that really depends on the device14:40
dbealSay for example I wanted to connect a Bus Pirate or Aardvark?14:40
dbealArduino also has a usb serial interface.14:41
ogra_as i said, that competely depends on the device you run on14:42
dbealWhat about this device?14:43
dbeal[ 1245.529600] usb 1-1: Product: FT232R USB UART [ 1245.529625] usb 1-1: Manufacturer: FTDI14:43
ogra_no idea14:43
ogra_what about it14:43
dbealI would expect a /dev/ttyUSB* or /dev/ttyACM* entry to appear when connecting a usb serial device.14:45
dbealWith a module like this.14:45
ogra_if your kernel supports it, sure14:45
dbealusbserial              45100  1 ftdi_sio14:45
dbealWould I need to recompile the kernel?14:45
ogra_and if the USB interface isnt blocked by something the kernel ships14:45
ogra_i have no idea, really14:46
ogra_totally depends on your device and how the kernel is set up by default, what it already does with the usb port etc etc14:46
dbealI'm pretty new to the Ubuntu Touch architecture, so I'm not entirely sure how the system works with the lxc and how kernel module compilation works.14:47
ogra_this is a bit like you coming to a car shop, showing a random bolt from your car to a mechanic and asking why the radion doesnt work :)14:47
ogra_*radio14:47
ogra_tha also depends on the device ... for the nexus devces we ue normal linux kernel packages in the archive ... the binaries get dynamically pulled in during the build of the android container in the android package ...  for all othr devices we build the kernel during the container build instead of using a binary deb14:48
DencoHello everybody, I'm trying to figure out if I have a problem with BQ's Aquaris E4.5 Ubuntu Edition. Is this correct place to try it?14:53
ogra_you aretrying to figure out ?14:53
dbealWhat is the name of the linux kernel and android container package?14:53
ogra_dbeal, the android package is called android ... the kernel packages are linux-image-$your-devices-codename (i.e. "mako" for N4 or "flo" for N7)14:54
dbealI don't seem to have an "android" package.14:56
ogra_it is in the ubuntu archive14:56
dbealI don't have a linux-image package installed either.14:57
ogra_installed ?14:57
ogra_no14:57
ogra_these bits live all in the device tarball14:57
pmcgowanDenco, most likely yes14:57
dbealWhere is the device tarball?14:58
DencoMy BQ's Aquaris lost 13% of battery in two hours after it was fully charged. I made just 2 phone calls in that time, it was just lying on the table the rest of the time. Is this normal?14:58
ogra_depends on your device once again14:58
dbealI have an N5.14:59
=== chihchun is now known as chihchun_afk
ogra_dbeal, we don have device taballs for N5 ...14:59
ogra_dbeal, for that i think you need to talk to Tassadar14:59
dbealSo when I ran a system update this morning, it actually rebuilt the kernel?14:59
ogra_no14:59
ogra_it is rebuilt beofore the device tarball hits the server15:00
dbealIt just downloaded a new container binary?15:00
dbealOh, ok15:00
dbealIs there a package I can install to build my own kernel containers?15:00
ogra_not sure how the N5 is maintained15:01
ogra_might be there is a hammerhead linuc-image package somewhere, no idea15:02
dbealDoes the BQ also use Android?15:02
Tassadaryep, there is15:02
ogra_"<ogra_> if you want to make any use of the hardware you wont get around using the binary drivers"15:02
ogra_^^that applies to all phones ... including the bq indeed15:02
dbeallinux-hammerhead - Complete Linux kernel for the Nexus 5 (hammerhead).15:03
dbealIf I have an N5 device, why don't I need to have linux-image-hammerhead installed?15:04
ogra_because you boot from a boot.img file15:04
Tassadarhttps://code-review.phablet.ubuntu.com/gitweb?p=ubuntu/kernel/trusty.git;a=summary this is the kernel source15:04
ogra_installing the pckage would just waste diskspace ... it wouldnt be used15:05
ogra_*package15:05
dbealIs there any special reason why the N5 is not officially supported?15:05
dbealWhat would I do with the hammerhead kernel package?15:05
ogra_no, no special reason except that canonical doesnt have N5s15:06
dbealI would be fine with the idea of binary drivers, if they were designed as microkernel-style device drivers.15:10
ogra_well, they are designed as the manufacturer decided ... not much anyone but them can do about that15:11
ogra_its like nvidia on PCs15:11
dbeale.g., each binary driver operates as an independent process that communicates with a parent kernel solely via message passing.  Any process that wanted to talk to the device would then talk directly to the device driver process.15:12
ogra_(except that the binary drivers provided for android are not linked against linux libc but android bionic)15:12
ogra_dbeal, what do you do with the binary daemons that are needed to initialize and configure the driver ?15:13
dbealIt almost seems like the android-as-lxc architecture is a step towards the slippery microkernel slope.15:13
ogra_(note, they are also not linked against libc and wont run on linux out of the box)15:13
ogra_it is the most elegant solution we found to the problem ...15:14
ogra_jolla and firefoxOS have the same issue btw ...15:15
Se7i don t found anymore the fb messanger...was installed...disinstalled...gone from store :/15:15
dbealGood question.15:16
LeousSamahey15:17
LeousSamahello15:17
LeousSamaI am developing an Ubuntu Phone application "QML app with C++ plugin (cmake)" but I have so many qml files so I want to separate them by functionality15:21
LeousSamaApplicationName15:21
LeousSama    CMakeListes.txt15:21
LeousSama    ..15:21
LeousSama    app15:21
LeousSama        CmakeListes.txt15:21
LeousSama        ApplicationName.desktop.in15:21
LeousSama        tests15:21
LeousSama        mainComponents15:21
LeousSama            sub directories of mainComponents15:21
LeousSama                some files15:21
LeousSama            some other files15:21
LeousSama        ApplicationName.qml15:21
LeousSama    po15:21
LeousSama        CMakeListes.txt15:21
LeousSama    ApplicationName.apparmor15:21
LeousSama    manifest.json.in15:21
LeousSamabut the "mainComponents" folder dose not appear in the project tree and after some searches I found that I must add CMakeListes.txt in every new folder and this:15:21
dbealOkay, so you have binary drivers, binary daemons, but you can still build the android lxc kernel?15:21
LeousSamaadd_subdirectory(folder_name)15:21
LeousSamainstruction in the parent folder CMakeListes.txt file but I don't if there is more to add and I don't know how to create the CMakeListes.txt15:21
ogra_LeousSama, please use a pastebin like paste.ubuntu.com15:21
LeousSamathanks15:21
ogra_and you might have better luck in #ubuntu-app-devel with that question15:22
LeousSamaok sorry15:22
ogra_dbeal, the kernel luckily desnt care about the libc that is used in the rootfs15:22
ogra_we use a patched android source (see the porting guide from the topic, it explans the kernel changes)15:23
ogra_so the kernel serves both OSes15:23
dbealBut are the binary device drivers all compiled into that kernel?15:24
ogra_no15:24
dbealNo, that wouldn't make sense, would it?15:24
ogra_most of them reside as libs in the container15:24
ogra_or as firmware ...15:25
ogra_or even as daemons15:25
dbealOk, so the kernel just has to be binary compatible with the binary kernel modules?15:25
ogra_(which simply include the driver bits)15:25
ogra_right15:25
ogra_and the environment has to provide the files in the right places15:25
ogra_since the binaries usually have hardcoded paths etc15:26
ogra_ifthey read configs or lod other binary stuff15:26
ogra_*load15:26
dbealHence the chroot/lxc15:26
ogra_right15:27
ogra_https://developer.ubuntu.com/static/devportal_uploaded/136981fa-6287-49d3-9874-06f40b2e4eb7-cms_page_media/380/ubuntu_touch_architecture.png15:27
ogra_that illustrates it pretty well (a bit outdated though)15:27
dbealAre the modules in /system/lib/modules/ binary-only, or are they the ones you can build from source?15:28
ogra_(and there is a set of arrows missing, the orange par can indeed always talk directly to the kernel too)15:28
dbealHow do I load or inspect the state of one of the binary-only drivers?15:28
ogra_however you would do it on android :)15:28
ogra_differs per device and driver15:29
ogra_you can enter the running contaner with "lxc-console -t0 -nandroid"15:29
ogra_and poke around in there if you like15:29
dbealIt looks like /system/lib/modules looks like it has linux native modules.  I might be able to build something like usbserial or cdc_acm support in.15:33
ogra_sure, you should be able to drop them there and update the module deps15:33
=== ahayzen is now known as ahayzen_
=== ahayzen_ is now known as ahayzen__
=== ahayzen__ is now known as ahayzen
peat-psuwitawe_: ping15:40
awe_peat-psuwit, pong15:43
peat-psuwitawe_: Now I have a working fix for ofono now, what should I do to create a new plugin for it?15:44
awe_so we maintain ofono for ubuntu in a github repo15:45
awe_and would be glad to review new pull-requests15:45
awe_one thing that's different than standard ofono plugins15:46
dbeal# mount -oremount,rw /lib/modules mount: cannot remount /dev/loop1 read-write, is write-protected15:46
awe_is we use our own plugin to dynamically load a rilmodem type device plugin vs. using the std udevng plugin normally used by ofono15:46
awe_peat-psuwit, here's the git repo: https://github.com/rilmodem/ofono15:47
dbealIs it possible to load a .ko from somewhere other than the write-protected /lib/modules?15:47
ogra_sure, you can use insmod ...15:47
awe_peat-psuwit, and here's the plugin we use to dynamically load device-specific ofono plugins: https://github.com/rilmodem/ofono/blob/master/plugins/rildev.c15:47
awe_peat-psuwit, maybe the first step would be to create grab a copy of our repo, apply your changes15:49
awe_have you just changed the existing code directly?15:49
awe_( ie. modified the ril.c device plugin, and rilmodem code itself )15:50
peat-psuwitawe_: I actually edit drivers/rilmodem/sim.c in function sim_status_cb15:51
peat-psuwitto call my function that fire another request15:51
awe_are you familiar with git/github?15:52
peat-psuwitI also edit gril stuff to support new type of request.15:52
peat-psuwitawe_: I'm pretty good about git.15:52
awe_ok.   then probably the best approach would be to clone our git repo, apply your changes to your own branch, then ask abeato or myself to review15:53
awe_my guess is that you'll probably need to re-work slightly so that it would be acceptable to us15:53
awe_my guess is you'd probably need a device-specific plugin15:53
awe_similar to mtk.c or ril.c15:53
awe_and then some things can be done inline via device quirks15:54
awe_some things ( like overriding functions )15:54
awe_might require a new modem driver15:54
awe_but again, I would get your code into a git branch on github that we could review, and we can progress from there...15:54
peat-psuwitawe_: Let me upload my version of code to github first.15:55
peat-psuwitShouldn't be too long. :)15:55
awe_ok15:57
awe_note, we have a lot on our plate at the moment, but will try to squeeze this in as soon as possible15:57
awe_thanks!15:57
dbealHow long will the battery last if I am building a kernel?16:07
dbealHow do I resize my 2G root partition?16:09
dbealShould I just append zeros to system.img and run resize2fs?16:13
=== Tassadar_ is now known as Tassadar
ahayzenHey is there anyway i can emulate what happens when an OOM hits a specific app (I need to be able todo it manually because the music-app has a lifecycle exception at the moment)?16:15
dbeal# dd if=/dev/zero bs=4096 count=512000 >> /userdata/system.img16:18
Talustushm no16:18
Talustusdd conv=notrunc oflag=append if=/dev/zero of=/path/to/your/file bs=1M count=102416:18
Talustuswould append 1GB to it16:18
ogra_ahayzen, i guess tvoss or ricmm could help you ... but i dooubt you will find them online beofre monday/tuuesday16:19
ogra_dbeal, why do you want to do that ?16:19
ahayzenogra_, ah ok i'll ask then thanks :)16:19
ogra_easter holiday in many european countries :)16:19
dbeal# resize2fs system.img  resize2fs 1.42.12 (29-Aug-2014) Resizing the filesystem on system.img to 1024000 (4k) blocks. The filesystem on system.img is now 1024000 (4k) blocks long.16:19
dbealWould a sparse truncate have been better?16:20
ogra_why do you do that ?16:20
dbealI would like to increase the size of the root partition.16:20
ogra_yes, why ?16:20
dbealI ran out of space while trying to install the kernel source and build dependencies.16:20
ogra_(i see *what* you do, i was wondering why16:21
ogra_ugh16:21
* ogra_ quietly points to https://wiki.ubuntu.com/KernelTeam/ARMKernelCrossCompile16:21
Talustusyeah16:21
Talustuswhy compiling a kernel on the device ^^16:21
ogra_if you compile *on* the device, just create a chroot16:21
Talustusthat would need ages16:21
dbealThank you, I am not sure my battery can last through the full compile.16:21
ogra_no need to mess up your system and lose updates etc16:21
dbealOk, that seems smarter.16:22
ogra_on your device in /home/phablet: wget http://cdimage.ubuntu.com/ubuntu-core/daily-preinstalled/current/vivid-preinstalled-core-armhf.tar.gz ...16:23
ogra_untar .. chroot into the untarred system ... install your build stuff ...16:23
ogra_but for kernels you really want to cross build on a PC ... easier and faster16:23
Talustusi guess a single compile on device will nearly eat your bat.^^16:24
ogra_yeah, you definitely want to keep it on a charger when doing that16:24
ogra_on a real charger ... not a usb port on your laptop :)16:25
dbealCool16:31
dbealWhy do system updates require read-only root partition?16:33
ogra_because the update is a diff between two versions of the rootfs16:33
dbealA binary diff?16:33
ogra_that only works if the rootfs you have isidentical with the one the server used to create that diff16:33
ogra_yes16:34
dbealWhy doesn't it use something like dist-upgrade?16:34
ogra_would you like your update to take 1h while it configures single packages ?16:34
Talustusand then it fails after 58min and 59s16:34
Talustus:D16:34
ogra_nah, it wouldnt fail but it would detect a conffile change and try to ask you a question about it :)16:35
Talustus^^16:35
ogra_(with a pupunder that stays behind the UI indeed)16:35
ogra_*popunder16:36
ogra_applying the diff for the whole rootfs usually takes a few seconds16:36
ogra_while a package by package upgrade takes waaaay longer16:36
dbealAh16:39
dbealIf I ran dist-upgrade, would it end up with the same upgrade?16:41
ogra_no16:42
ogra_and it would break sooner or later16:42
ogra_apt is fine for installing a few packages when working on the core system ... but not for much more16:42
ogra_(and with re-flashing the device after your work is done in mind)16:43
dbealIs there some kind of strategic Ubuntu move towards binary-only distribution releases?16:44
ogra_??16:45
ogra_what do you mean by binary-only ?16:45
ogra_all ubuntu releases have always been binary16:46
dbealWell, a binary-only release requires the system image to be kept immutable in order for it to participate in an upgrade cycle.16:47
ogra_ubuntu will surely switch in the long term to image based upgrades, yes16:48
mr_novemberNexus 4 with ubuntu is not being detected on QT creator. it does a device search, detects the phone for a second and then goes back to searching..16:48
ogra_effectively ubuntu will switch to snappy everywhere at some point16:48
mr_novemberI am not able to figure this out. Are there logs on the phone somewhere?16:49
ogra_mr_november, is the screen unlocked ?16:49
mr_novemberYes16:49
ogra_and developer mode is enabled ?16:49
dbealIn order for this upgrade cycle to be tenable, the entire system image would have to remain immutable indefinitely.16:49
mr_novemberYep16:49
ogra_dbeal, yes, anything wrong with that ?16:49
mr_novemberThe phone shows battery charging and not charging with same fluctuation16:50
mr_novemberAs soon as I quit QT creator, the phone charges constantly16:50
ogra_mr_november, that sounds like a hardware prob ...16:50
mr_novemberI have tested the cable16:50
mr_novemberI am able to push several files using adb16:50
ogra_very weird16:50
mr_novemberI know!16:50
dbealHow do I customize the Ubuntu system if its system image must remain immutable?16:51
ogra_have you checked if you are up to date with all sdk related packages ?16:51
mr_novemberI just installed them yesterday from the ppa. also did a dist-upgrade16:51
ogra_is the bttery level very low or some such ?16:52
mr_novemberIt is at 80% right now16:52
ogra_did you tinker in any way with the phone install ?16:52
ogra_(making it writable, changing system bits)16:53
dbealI was not aware of the new Snappy strategy..16:53
ogra_dbeal, snappy brings 100% upgrade safety ... cant really claim that for apt upgrades ... there are always corner cases where upgrades fail16:54
mterrychrisccoulson, man, is jenkins down or something?   I was really hoping that the mirserver oxide branch would generate debs overnight.  I've been cross compiling this morning to test.  I already miss working with Qml16:54
mr_novemberogra_, not that I can recall. I have just used adb for pushing files etc.16:54
dbealsnappy: command not found16:55
ogra_mr_november, well, it seems like somthing the sdk does causes this ... while i work on the developer mode, this part seems fine to me (adb works) ... i'm not sure ifyou can stillcatch anyone from the sdk team to help in #ubuntu-app-devel (easter holidays all over europe this weekend)16:56
ogra_dbeal, that only works on a snappy system :)16:56
mr_novemberogra_, I see, thanks though16:56
mr_novemberI just noticed that I cannot access the storage through the file explorer16:57
dbealThis is the first time I'm hearing about snappy and Ubuntu Core.  Does snappy work with Ubuntu Touch?16:57
mr_novemberThat's new.16:57
ogra_dbeal, not yet ... snappy is the next evolution step of the technology we developed for the phone ...16:57
dbealIs Ubuntu Touch just being snappy-esque with its binary image updates?16:57
ogra_at some point the phone will move to snappy as a base16:58
dbealI see.16:58
ogra_snappy was developed out of the phon system ... now went its own way and once matured it will return to the phone :)16:58
dbealLike a snappy boomerang?17:01
dbealIs snappy ready for desktop use?17:01
ogra_more like a child that has grown up17:01
ogra_not yet, no17:02
ogra_the framework interface isnt 100% done yet ... on snappy nothing talks directly to the system and graphical apps require a graphics server framework fist17:02
ogra_snappy focus is on cloud and IoT currently17:03
dbealIoT as in BeagleBone Black?17:03
ogra_i know mterry did some hackery of dumping a whole desktop into one snap package though17:03
dbealOr Intel Edison?17:03
ogra_right17:03
ogra_or RPi ...17:03
ogra_or ninjasphere ...17:04
dbealHow is a snappy system customized?17:10
ogra_not at all ...17:10
ogra_what would you customize ?17:10
dbealAnything and everything, I suppose.17:11
ogra_you would have to create your own image if you wanted that17:11
ogra_at last for the 100MB or so that the core system is17:11
mterrychrisccoulson, is there a release of oxide happening anyway?  Or is this mirserver patch the only thing waiting?17:11
mterrykgunn, btw bug 1439829 is a vivid regression that is pretty serious in terms of being a crash during wizard.  Wanted to put it on your radar17:12
ubot5bug 1439829 in oxide-qt (Ubuntu) "Wizard crashes when trying to view HERE terms and conditions" [Undecided,In progress] https://launchpad.net/bugs/143982917:12
bzoltanogra_:  holidays are overrated :) mr_november -> I can try to help if it still does not work17:16
mr_novemberThanks bzoltan17:17
ogra_bzoltan, nah, holidays are the days where you can program your private projects ;)17:17
mr_novemberI am still not getting a stable detect on QT creator17:17
ogra_bzoltan, sounds a bit like it falls over when establishing ssh on top of the adb connection (iirc thats what you do)17:18
bzoltanogra_:  I am done with that for today :) I was hacking on a blckbox wifi sd card what came with chinese labels... not a victory march17:19
bzoltanmr_november: ogra_ : the device detection does not use much ssh.17:20
ogra_well, i'm still crying over the G+ apis here ... trying to finish my semi native G+ app sharing bits for photos and videos17:20
bzoltanmr_november:  so what is the symptom?17:20
mr_novemberSure, I'll try to explain in detail.17:20
mr_novemberWhen I connect the nexus 4 to my laptop using USB, usually everything is fine. I can browse files in the explorer, adb devices lists it, I can even push a large file17:21
mr_novemberAnd the device is charging of course . As soon as I run QT Creator though17:21
chrisccoulsonmterry, the next release is from the current stable branch (https://code.launchpad.net/~oxide-developers/oxide/1.5), which is in here already https://launchpad.net/~ubuntu-mozilla-security/+archive/ubuntu/ppa/17:22
mterrychrisccoulson, I was just wondering if it wouldn't be faster to test this fix in a silo17:22
chrisccoulsonmterry, what sort of hardware are you building on?17:23
mr_novemberIt starts fluctuating. The charging symbol goes on and off, it disappears and reappears in the file explorer, and the QT creator device log shows 'detecting device' and then detected and then back to detecting17:23
mterrychrisccoulson, cross compiling on my laptop  :(17:23
chrisccoulsonmterry, this is for testing on the device?17:23
bzoltanmr_november:  most of the device connectivity is done by simple scripts under /usr/share/qtcreator/ubuntu/scripts/17:24
mterrychrisccoulson, yah17:24
chrisccoulsonmterry, and vivid?17:24
mterrychrisccoulson, yeah17:24
mr_novemberbzoltan, okay17:24
bzoltanmr_november:  try the device_search device_version device_wait_for_shell to see if they return smart values or hang or print some crap17:24
chrisccoulsonmterry, I've already got a fully built tree here for vivid/armhf. I could probably create a build for you in about 5 minutes :)17:25
bzoltanmr_november:  but form what you say it feels that your adbd is unstable or doing something odd17:25
mterrychrisccoulson, you lovely lovely person17:26
mterrychrisccoulson, I just wanted to test that mirserver branch17:26
mr_novemberbzoltan, I see. I am going to try the scripts17:26
mterrychrisccoulson, I don't *think* it needs modification per greyback's comments -- the current code checks the return of the eglcontext call17:26
Se7an app uninstalled leave trace on the device?17:27
chrisccoulsonmterry, it won't be a package though (I have a script that creates a tarball, which provides a wrapper script for testing the new version)17:27
chrisccoulsonbut you can probably copy the files wherever17:27
bzoltanmr_november:  and please check your syslog too. I am afraid that the QtC is just a victim here ... if the system thinks that the usb device was disconnected then it does what you say17:27
bzoltanmr_november:  and the charging symbol does indicate that it receives current for some time and then it looses it17:28
chrisccoulsonmterry, aha, you need to add an #include <QLatin1String> to all of the modified files :)17:28
chrisccoulsonit fails to build here17:28
mterrychrisccoulson, ah!  Good ok17:28
mr_novemberbzoltan, but the current is stable when qt creator is off17:29
mr_novemberalso device_search returned a positive result17:30
bzoltanmr_november:  what about the device_version17:30
chrisccoulsonmterry, how were you doing a cross-build btw? Are you using the packaging? (Note, I haven't tried using that)17:30
mr_novemberis my device version 25?17:30
mr_novemberbzoltan, also device wait for shell is not in this folder17:31
mterrychrisccoulson, updated.  Yeah, I was doing a pbuilder build17:31
chrisccoulsonmterry, aha, I'm not sure how much success you would have with that, given that Chromium needs both a target and host compiler17:31
bzoltanmr_november: /usr/share/qtcreator/ubuntu/scripts/device_wait_for_shell17:32
chrisccoulsonmterry, Oxide supports cross-compiling without the packaging - http://bazaar.launchpad.net/~oxide-developers/oxide/oxide.trunk/view/head:/build/toolchain_configs/ubuntu-arm-linux-gnueabihf.cmake :)17:32
chrisccoulsonI did start writing some instructions for it a while ago, but never got around to finishing them (https://wiki.ubuntu.com/Oxide/ArmCrossCompiling)17:32
mterrychrisccoulson, I've only really dealt with oxide yesterday and today but I already hate it17:32
chrisccoulsonheh17:32
mr_novemberbzoltan, device_version result is device_version: 25: ./functions.inc: function: not found17:33
* ogra_ wonders how to tell a webview about the timezone he is in ... 17:33
chrisccoulsonmterry, you need a fairly quick machine (I have 16GB of RAM and a Samsung 840 Pro SSD)17:33
bzoltanmr_november:  you need to be in that directory17:34
ogra_timestamps in articles in a page i show in the webview always jump around between UTC and my timezone depending on how often i reload17:34
chrisccoulsonmterry, ok, that's linking now :)17:35
mr_novemberbzoltan, I am in /usr/share/qtcreator/ubuntu/scripts17:35
mterrychrisccoulson, sweet17:35
bzoltanmr_november:  well, if you do not have the functions.inc there then your SDK is prety badly busted17:35
mr_novemberfunctions.inc is there17:36
mr_novemberdevice_search returns 0098f70d1d524baa       device usb:2-1.1 product:occam model:Nexus_4 device:mako17:36
bzoltanmr_november:  so what `./device_version 0098f70d1d524baa` tells17:37
bzoltanmr_november: and ./device_wait_for_shell 0098f70d1d524baa17:38
mr_novemberhold on17:38
mr_novemberThe first one returned nothing17:39
mr_november:|17:39
mr_novemberAnd second returns no such file or directory17:40
mr_novemberI think I should reinstall qt creator17:40
bzoltanmr_november:  I think you should remove all sdk and qtc related packages, check that you do not have any legacy PPAs or old packages and install it from the scratch17:41
mr_novemberbzoltan, just to check, I am on precise. Does that matter?17:42
bzoltanmr_november:  Err :) it does17:42
mr_novemberOh great17:42
bzoltanmr_november:  you need to get permission from the archeology authorities to use such old SDK17:42
mr_novemberLol17:43
bzoltanmr_november:  Okey :) at least we have figured out what the problem is. Enjoy your upgrade :) Trusty is cool.17:44
mr_novemberbzoltan, Trusty Tahr it is then, thanks17:45
* ogra_ sighs about timezones ...17:45
mr_novemberbzoltan, until then, can you help me with something17:45
mr_novemberis there a way I can export all my SMSs?17:46
ogra_so if i click a link, the time is right on the target page when it loads first ... once i reload the page, the timestamp jumps to UTC17:47
* ogra_ doesnt get that ... 17:47
ogra_chrisccoulson, is there any secret property in oxide i could use to tell a webview about the timezone a user is in ?17:48
spazzymotoogra, after some playing around it seems the partitions in my fstab.bacon are not mounting in the lxc container. Any ideas on how i can start to debug why?17:50
ogra_spazzymoto, check syslog and /var/log/dmesg17:50
peat-psuwitawe_: https://github.com/rilmodem/ofono/pull/17418:04
peat-psuwitawe_: Sorry for a delay. I was implementing multi-sim, but doesn't work.18:05
peat-psuwitThat code doesn't for 2nd slot, but can be used for 1st one.18:06
awe_peat-psuwit, so is this a working branch, or do you still have work to do?18:06
awe_ok18:06
awe_as mentioned, I won't be able to get to this till next week sometime, but I'll share with abeato18:06
awe_fyi, you might want to change your description to mention the specific device.  The base rilmodem code works on the nexus4, which is a Qualcomm device18:07
peat-psuwitawe_: Oh, I forgot that. I'll edit that now.18:08
peat-psuwitawe_: Done.18:10
awe_thanks18:10
peat-psuwitawe_: How should I distribute this in my port?18:11
awe_well, we need to get the patch right first18:12
awe_we have try to maintain a single ubuntu read-only filesystem for touch images18:12
awe_so the idea would be to get your changes into the archive at some point18:12
awe_but as I mentioned, we need to first review, and I imagine they'll be some changes18:12
awe_if you really want/need to build a derivative image with custom packages, it's possible, but a lot of work, and you'd need to discuss someone else like maybe ogra_18:14
peat-psuwitawe_: It'll probably miss vivid's freeze deadline, right?18:14
awe_well, as ofono is really only used by touch, it's possible you might be able to get it in still, but that's not something I can answer right now18:15
ogra_for hacks you can ship stuff inside the device tarball18:15
awe_packages?18:15
ogra_no, files18:15
awe_yea, this needs a package18:15
ogra_and they get bind mounted into the rootfs18:15
ogra_so you need the "mountpoint files" in the rootfs too for that18:15
awe_peat-psuwit, again we'll need to review, and that'll have to wait till next week sometime... we have a lot of other work on our plate atm18:16
awe_so let's talk more next week18:16
awe_there's not much I can tell you today18:16
peat-psuwitawe_: That's fine. Thank you!18:16
awe_np18:16
peat-psuwitogra_: You mean extract files in android's tree, and get them included in system image?18:17
awe_peat-psuwit, you probably don't want to go there...18:18
ogra_peat-psuwit, in your android tree there is an ubuntu/ subdir ...18:18
ogra_files in there will get bind mounted over existing files in the ubuntu rootfs if the path patches something existing18:18
ogra_s/pathes/matches/18:18
peat-psuwitogra_: Oh, I miss that. You mean in device tarball, the same one that ships system.img, right?18:20
ogra_yes18:27
kenvandinerenato___, in case you're around, check out https://code.launchpad.net/~ken-vandine/content-hub/serialized_content_transfers18:27
ogra_but your target file needs to exist, as i said18:27
ogra_since it will serve as mountpint for a bind mount18:28
kenvandinerenato___, it's mostly what we discussed, ContentItem.stream is a QByteArray and adds a streamType property for the mime-type18:28
kenvandinerenato___, and i added convenience getter/setter for text which sets the stream to a string and the streamType to plain/text18:29
peat-psuwitogra_: Okay, I'll try that.18:29
kenvandinerenato___, i still need to do the same with url, store it in the same stream instead of a separate variable, i'll get to that after i get back from vacation :)18:29
Se7shit fb app crashed all phone19:13
ogra_hmm, now i thought there is a new version of popey's stallboard with tedg's voice ... https://appstore.bhdouglass.com/app/tedtalks.mk1973 ...20:18
ogra_... but in the end it isnt :)20:19
tedg:-(20:19
=== ahoneybun__ is now known as ahoneybun
=== szymon is now known as szymon_
=== szymon_ is now known as szymon_W
brunch875Wohooo! New keyboard for 20€. And it's a good one! I'm like a child with a new toy21:00
brunch875By the way, GPS has stopped working at all for me21:00
brunch875nothing works, even after factory reset21:00
brunch875Is there trouble with the servers or am I the only one?21:00

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