/srv/irclogs.ubuntu.com/2016/03/05/#snappy.txt

orbywhat is the correct way to configure the ip address of a snappy ubuntu-core?05:54
orbyin the same vein is there any special procedure for replacing the ubuntu account with a different admin user? or is it the same process as normal ubuntu?05:55
orbynot really sure how configs live on with the imaging system05:56
sergiusensasac`, ogra_, hey, so the kernel plugin now seems to work; I am just getting "Cannot load shared library libudev.so.1" on boot; I know you were looking into that and I'm working from a cached version, so is it working now?10:16
ogra_sergiusens, yeah, i'm working on that10:16
sergiusensgetting end to end working would be awesome :-)10:16
sergiusensogra_, kudos to you for being great :-)10:16
ogra_there are bugs in fakechroot that i'm currently trying to hack around10:16
sergiusensthe pieces are comming together10:16
sergiusensogra_, this affects all arches, right? I'm trying on amd64 due to convenience10:17
ogra_yeah, it does10:17
sergiusensI guess I won't be able to try out the procedure on  a dragonboard until I get to linaro connect10:17
ogra_on arm64 the linker wasnt copied in at all, sorry, i did care for that first yesterday, should have done it the other way round :)10:18
sergiusensheh, no worries you never know what will break next until it breaks10:18
sergiusensand getting things out of the way is a good thing ;-)10:19
sergiusensogra_, do you know out of hand if to get a nice kernel build from git://kernel.ubuntu.com/ubuntu/ubuntu-xenial.git I can go with kdefconfig on its own?10:20
sergiusensI'm afraid debian/rules does a lot of massaging in between, but maybe just to get a deb10:20
ogra_i dont thijk you can ... the config usually lives in the debian ir debian.$arch dir in ubuntu10:21
ogra_s/ir/or/10:21
* sergiusens tries10:21
ogra_assembled by scripts (ande checked for required parameters) during build10:22
sergiusensogra_, heh, the assembled by scripts means it is not there initially in a clone/checkout though :-)10:25
ogra_it is there, but in parts10:25
ogra_sergiusens, i though asac had asked the kernel team for their check scripts and included them in the kernel plugin10:26
ogra_after all we need to make sure that the required options are all set (systemd reqs., cgroups, squashfs etc etc)10:27
sergiusensogra_, you mean this http://kernel.ubuntu.com/git/ubuntu/ubuntu-xenial.git/tree/debian/scripts/config-check ?10:29
ogra_sergiusens, yeah, there is another one though10:29
sergiusensogra_, well we don't have that yet, but nothing says we can't force enable some features (to make it transparent)10:30
ogra_ah, mightr just be an input file10:30
sergiusenshttp://kernel.ubuntu.com/git/ubuntu/ubuntu-xenial.git/tree/debian/scripts/misc/kernelconfig10:30
ogra_debian.$arch/config/annotations has the required options10:30
ogra_not sure which script exactly consumes it though10:31
sergiusensogra_, that's a generated file though, not here http://kernel.ubuntu.com/git/ubuntu/ubuntu-xenial.git/tree/debian10:31
ogra_(these scriptrs are a maze of perl code )10:31
sergiusensyup10:31
ogra_sergiusens, ok, 0.7.32 should ship with libudev now10:41
ogra_oh, but i havent disabled the resize script yet, that might cause havoc on second boot10:42
ogra_(on the dragonboard only)10:42
sergiusensogra_, heh; so I just need to create an os image now; I hope my bandwidth is good enough11:24
sergiusensogra_, can you remind me mvo's branch for creating those?11:25
ogra_sergiusens, http://bazaar.launchpad.net/~mvo/snappy/mksnap-os-kernel/files11:44
ogra_sergiusens, but that means you need a fresh tarball too11:45
ogra_(which will take some time, the package is still in -proposed11:46
ogra_)11:46
ogra_i'll trigger a tarball build once it migrated11:51
ogra_heh, and having said that, it just did11:51
sergiusensogra_, oh, ok; I'll wait for the rootfs build11:52
ogra_triggered11:52
* sergiusens is still cloning from kernel.ubuntu.com11:52
ogra_https://launchpad.net/~ubuntu-cdimage/+livefs/ubuntu/xenial/ubuntu-core-system-image/11:53
ogra_(if you want to watch it)11:53
sergiusensogra_, what else can I do :-P12:06
sergiusensogra_, Receiving objects: 100% (4489986/4489986), 999.75 MiB | 119.00 KiB/s, done.12:25
ogra_all done12:25
sergiusensubuntu kernel12:25
sergiusenswow12:25
sergiusensa shallow clone12:25
ogra_heh12:25
sergiusensogra_, builders during the weekend are a joy!12:26
ogra_yeah :)12:26
ogra_so now i need to fix the resize script ... and i think we should have a script included in the initrd package that makes injecting modules and firmware an easy task12:29
ogra_(doing all the nasty depmod stuff for you etc)12:29
longsleepogra_: _that_ would be awesome :)12:30
sergiusensogra_, by mounting /lib/modules?12:30
sergiusensogra_, oh, now I see12:31
ogra_sergiusens, just something like "inject-modules.sh /path/to/initrd.img /path/to/modules/dir"12:31
ogra_it would unpack, push the needed modules in, run depmod and re-pack12:31
ogra_since thats quite fiddly12:31
sergiusensogra_, to replace https://github.com/sergiusens/snapcraft/blob/feature/1552168/kernel-plugin/snapcraft/plugins/kernel.py#L15412:32
* ogra_ looks12:32
sergiusensogra_, yeah, basically what is done there, maybe cleaner12:32
ogra_sergiusens, i see it uses modules.dep ... where would that come from ?12:32
sergiusensogra_, so infinity talked about writing a "copy_module" thingie which would take care of copying the correct firmware12:32
ogra_(our kernel packages only run depmod from the postinst)12:32
sergiusensogra_, the kernel build12:33
ogra_ah, i see. it is a source build12:33
sergiusensyeah, this is all source12:33
sergiusensusing the upstream ubuntu kernel deb comes later12:33
ogra_well, that is the bit i need on the builders12:34
ogra_where we use packaged kernels12:34
ogra_hmm, do i see that right that you actually include *all* modules ?12:35
ogra_that will give you quite a bloated initrd in the end ...12:35
sergiusensogra_, no just the modules listed12:35
ogra_after all you only want squashfs and vfat/nls as mandatory modules12:36
sergiusensogra_, it only does a --show-depends for self.options.kernel_initrd_mods12:36
sergiusenswhich is in snapcraft.yaml12:36
ogra_ah, k12:36
sergiusensand I guess we can add mandatory modules here as an improvement; unless `show-depends` returns `builtin`12:37
ogra_yeah12:37
ogra_(i still think we shold just enforce squashfs to be builtin on all non distro kernels though)12:37
ogra_that way you wouldnt even need to re-pack the initrd at all :)12:38
sergiusensogra_, heh, I'd say the same for fat12:38
sergiusenswhy create a module for something will always load12:38
sergiusens*that will12:38
longsleepsometimes it might not even be possible to build a kernel - but in my configs i include all the modules required for snappy directly in vmlinux - so should be good12:39
ogra_vfat is builtin in your distro kernel12:39
ogra_but the nls modules arent12:39
longsleepah12:39
ogra_s/your/our/12:39
longsleepi am currently working on the Pine64 kernel config, i got nls,vfat and squashfs12:40
ogra_yeah, thats good12:40
sergiusensdon't forget apparmor12:40
ogra_right, and the right cgroups options12:40
longsleepyeah - i did not backport that yet .. its crappy Kernel 3.10 again :)12:40
ogra_fun12:41
longsleepif you are interested - https://github.com/longsleep/linux-pine64/blob/pine64-hacks-1.2/arch/arm64/configs/sun50iw1p1smp_linux_defconfig12:41
longsleepno snappy yet, but i got a fully functional xenial image12:41
ogra_would be interesting to see if it works with the new snapcraft plugin;)12:41
longsleepwill try it soon - an probably for odroid c2 as well if not somebody else will have done it when i find the time12:42
longsleep(c2 has Kernel 3.14 which is not much better ..)12:43
sergiusensogra_, longsleep I am still missing dtb integration12:45
sergiusensgoing to work on that during my 12 flight that's just around the corner12:46
ogra_where are you atm ?12:46
sergiusensI hope I have everything ready to work offline though :-)12:46
sergiusensogra_, Chile12:46
ogra_oh, not changed the continent yet12:46
sergiusensogra_, bad connections, 12 hour layover here as well12:46
ogra_woah12:46
sergiusensogra_, the flght leaving last night was fully booked12:46
longsleepsergiusens: dtb just needs to be copied to /boot or /media/boot for pine64,c1 and c212:46
sergiusensso total travel time is 43 hours12:47
longsleepoh my12:47
ogra_woah12:47
sergiusensreturn is only 246 :-)12:47
sergiusenswoops12:47
sergiusens2612:47
sergiusensogra_, it's fine, they have beds here; I12:47
ogra_heh12:47
longsleepi hope you can bring a battery to the cabin - last time they took mine away before boarding "too high capacity" ..12:47
sergiusensI'm only worried that I will arrive Monday 00:30 so no time to adapt to a new timezone and only 6 hours or less of sleep to get ready for a packed Monday12:48
sergiusenslongsleep, I got upgraded to business ;-)12:48
sergiusensmost planes here have plugs for long haul flights in economy though12:48
longsleepright if they work :)12:49
sergiusensheh, you have to checkout the awesome planes we have here :-)12:49
sergiusensin any case it is 12 hours to Sidney then 8 more to Bangkok12:50
longsleepwell in business that should be ok :)12:50
longsleepdid you get upgraded for both flights?12:50
sergiusensthe first 12 are business12:50
sergiusensthe remaining 8 are something else12:51
longsleepso when you land snapcraft has learned to build a perfectly fine device snap (or whatever it is called)?12:51
sergiusenskernel snap12:52
sergiusenslongsleep, it already seems to be building correctly for amd64 except for that initrd thing ogra just uploaded12:52
longsleepsergiusens: thats good, i will finish up to build a classix xenial image for Pine64 this weekend amd then go snappy next week - i guess that will help a lot12:53
sergiusensnothing glamorous about this, but what the heck http://paste.ubuntu.com/15291572/12:53
longsleepwhat about building stuff for u-boots which do not support initrd.img or vmlinuz?12:54
ogra_not supported anymore12:55
longsleepi did not look into arm64 booting on snappy yet, but at least the kernel cannot be named vmlinuz can it?12:55
ogra_people need to use the u-boot patches for raw files and need to use the patches for the .env file12:55
ogra_we use the same patches on the dragonboard ... kernel is vmlinuz, initrd is initrd.img12:56
longsleepok i see - i have some research to do then12:56
longsleephow do you build vmlinuz for arm64? Or is it just Image gzip compressed there?12:56
ogra_its like five lines in the build config to change usually12:56
ogra_mak zImage12:56
ogra_?12:56
ogra_*make12:57
longsleepi was under the impression that is not supported on arm64 - probably got that wrong12:57
ogra_works fine on the dragonboard ...12:57
ogra_but i guess it is a matter of the u-boot implementation12:57
ogra_(and on what u-boot release you base initially)12:58
longsleepthat too, but i thought that there is no self extractor code in the kernel on arm6412:58
ogra_http://bazaar.launchpad.net/~ogra/+junk/dragonboard/view/head:/uboot.patch12:59
longsleepbut i can already tell that it will be some work to get devices boot vmlinuz and initrd instead of uImage and uInitrd12:59
longsleepwhat is the u-boot command you boot with on dragonboard?13:00
longsleepbootz?13:00
ogra_booti i think13:00
longsleepok thats good, but what i do not get is how booti works with vmlinuz but thats probably something i missed13:01
ogra_http://bazaar.launchpad.net/~snappy-dev/snappy-hub/snappy-systems/view/head:/dragonboard/uboot.env.in13:01
ogra_thats our current dragonboard env13:01
ogra_booti ${linux_addr} ${ramdisk_addr}:${initrd_size} ${fdt_addr}13:02
longsleepthanks, looks good and pretty compatible to mainline u-boot13:02
longsleepthough, i am far away from mainline on the pine64 at the moment :/13:03
ogra_yeah, thanks to the 96boards guys ...13:03
ogra_i think their stuff is already flowing upstream even13:03
longsleepright now, i need to use boota on pine64 and thus also do not have a vmlinuz nor a initrd.im, its all inside a android wrapped kernel.img13:04
ogra_oh ?13:04
longsleepi want to backport booti to the old u-boot eventually, might even be a requirement to get snappy running13:04
ogra_why dont you make u-boot that kernel.img then ?13:04
ogra_and just use the u-boot features13:05
ogra_thats what i do on the dragonboard13:05
longsleepsure, but regarding snapcraft support that will not work right13:05
ogra_http://bazaar.launchpad.net/~ogra/+junk/dragonboard/files13:05
ogra_thats my basic boot setup (independent from snappy)13:05
ogra_(see the README for details)13:05
longsleepyes, i got a similar thing https://github.com/longsleep/build-pine64-image/tree/master/u-boot-postprocess13:06
ogra_the dragonboard also only supports android style booting by default13:06
ogra_lk -> kernel.img usually13:06
ogra_i just trun it into lk -> u-boot.img13:07
longsleepok, but their u-boot supports booti already13:07
ogra_by pretending the u-boot.img is a kernel one13:07
ogra_yeah, indeed13:07
ogra_and you have neither booti nor bootz ?13:07
longsleepwell bootz will not work with the Kernel i have as it does not have an extractor for gz, i have only the uncompressed image and put that into the android format13:08
longsleepit has bootz, but the bootz code does not have the hack to switch to 64-bit mode13:09
ogra_isnt that just a kconfig thing ?13:09
longsleepyes and no, there is just no aarch64 code for it in the kernel13:09
ogra_bah13:09
longsleepogra_: thats the u-boot config i currently use btw https://github.com/longsleep/u-boot-pine64/blob/pine64-hacks/include/configs/sun50iw1p1.h13:10
longsleepeverything should work out somehow, i was planning to backport booti from mainline u-boot including the world hack anyways to get rid of the android boot stuff13:11
ogra_sounds good13:12
longsleeplongsleep@mose2:/media/longsleep/Storage/Pine64/build-pine64-image/linux-pine64$ make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- LOCALVERSION=-longsleep -j4 zImage13:12
longsleepmake: *** No rule to make target 'zImage'.  Stop.13:12
longsleep:)13:12
ogra_oh my13:12
longsleepi did not even know that mainline Kernels now have a self extractor for aarch6413:13
longsleepbecause i did not look that is :)13:13
longsleepso for now, i would prefer if snappy/snapcraft would not be fixated to require vmlinuz or initrd.img or be fixed to those file names13:16
longsleepcould make it much easier for platform adopters13:16
ogra_well, as long as you support uboot.env you should still be free to do what you want after all13:17
longsleepyeah, thats good then13:17
ogra_uboot.env is definitely essential though since snappy modifies it13:17
longsleepi alread added all the stuff for the env file including the redundant thing we figured out ages ago. I hope it did not change :)13:17
ogra_from userspace13:17
ogra_see the dragonboard patch ;)13:18
ogra_didnt change13:18
ogra_(and the option still has the typo upstream ;) )13:18
longsleephehe ok great - then i think all is well13:18
longsleepogra_: btw, do you know the reason why in Xenial the serial getty service starts after rc-local service? Seems wrong and is annoying.13:31
longsleep/lib/systemd/system/serial-getty@.service has After=rc-local.service13:32
ogra_nope, no idea13:38
ogra_but thats a getty ... you actually want all boot scripts to have run before you allow logins13:39
ogra_it's a bit weird to tie it to that specific service though13:39
* ogra_ goes afk a bit 13:41
sergiusensubottu, am I here?14:50
ubottusergiusens: I am only a bot, please don't think I'm intelligent :)14:50
sergiusensogra_, asac` http://paste.ubuntu.com/15293021/15:16
sergiusensit is alive!15:16
* sergiusens prepares for boarding15:16
zygasergiusens: congrats15:18
zygasergiusens: have a safe trip15:18
sergiusenszyga, thanks, I just need it working on a dragon board now15:19
=== Abhishek_ is now known as Abhishek_|afk
=== devil is now known as Guest66916
=== Guest66916 is now known as devil_

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