/srv/irclogs.ubuntu.com/2012/08/09/#ubuntu-arm.txt

rsalvetiogra_: seems the flash-kernel hook at initramfs broke the way linaro uses to generate the image03:28
rsalvetiwithout a valid fstab, update-initramfs will be blocked at /usr/share/initramfs-tools/hooks/flash_kernel_set_root03:29
rsalvetiat pause_error03:29
rsalvetithat's just because we install the kernel and the extra packages before setting up the rootfs03:33
rsalvetiogra_: while we could fix at linaro-media-create, to set up fstab before installing the packages, this would probably be an issue when using a chroot that contains a valid kernel package installed03:36
rsalvetiguess it'd also try to update the initramfs, and would prompt the user at the same warning message03:37
rsalvetiogra_: mind reviewing the debdiff? bug 103473405:44
ubot2Launchpad bug 1034734 in flash-kernel "flash-kernel shouldn't prompt the user when updating initramfs in case there's no valid /etc/fstab" [Medium,Confirmed] https://launchpad.net/bugs/103473405:44
rsalvetiI pushed a similar version at our overlay ppa and I'm finally able to get them working and booting again05:44
rsalvetiwithout this patch it'll set root as "", which it'll not end up finding the rootfs to mount at the boot05:45
rsalvetijanimo: probably what caused your boot issue as well ^05:45
* rsalveti gone05:45
infinityrsalveti: fstab is the wrong place to be looking for the root device in the first place.08:00
janimorsalveti, you mean the quantal linaro image not booting? thanks08:26
ogra_rsalveti, i'm working currently on changing that ;)08:37
janimoinfinity, thanks for the cedarview package reviews08:37
ogra_rsalveti, /etc/default/flash-kernel will carry the cmdline, you can just put a default value for root= in there08:38
ogra_infinity, its not wrong, it is doing what it is defined to do (there ia a switch in the db for it  that i will flick as soon as we generate proper bootloader configs again)09:45
infinityogra_: No, it's wrong regardless.  Systems can run without an fstab.  Refusing to install a bootloader because you can't be bothered to actually find the rootfs (but, instead, just trust fstab) is, well.  Wrong.09:59
infinityogra_: But I agree that the wrongness will be worked around by switching to commandline mangling.09:59
ogra_not if you say that the parameter in the config will do exactly this :)09:59
infinityogra_: Still, there's no reason to hardcode / ANYWHERE.10:00
ogra_once we can set Bootloader-sets-root to yes it will behave properly10:00
infinityogra_: I'd have to double-check, but I imagine update-grub does it on the fly, not from conffiles.10:00
ogra_if grub has a setting "make-grub-search-for-root-in-fstab" and i set that, it is exactly what i expect it to do10:01
ogra_we simply default to the equivalent option in flash-kernel atm10:02
ogra_which is wrong but unavoidable until we have proper bootloader configuration in place10:04
infinityogra_: No, but I mean, when you change things to use /etc/default, you're still hardcoding the rootfs.10:04
ogra_yep10:04
infinityI see no reason to do that...10:06
ogra_just to provie an easy way for the user to change the cmdline10:06
infinityNo, I'm cool with the easy way to change the commandline.10:07
ogra_in a generic place all arm setups we offer has10:07
infinityNot the hardcoding of the rootfs.10:07
ogra_oh, i read you now10:07
ogra_you want the logic from grub copied into f-k10:07
ogra_or at least similar behavior ...10:08
infinityIndeed.10:08
* ogra_ agress but doesnt want something like /etc/grub/ in the end :)10:08
infinityYou should be able to ship /etc/default/f-k in a way where it's the same on every normal system.10:09
infinityAnd running f-k should "just work".10:09
ogra_right10:09
infinityHaving the rootfs hardcoded anywhere is wrong.10:09
ogra_btw ... it just struck me that all the live installer stuff i'm doing here is total nonsense10:09
ogra_we just need to export FLASH_KERNEL_SKIP ...10:10
ogra_(and make sure its unset when we run f-k-i)10:10
infinityI still think that diverting update-initramfs and only calling it once at the end of the install is the Right Thing, optimisation-wise.10:10
infinityBut that's certainly not flash-kernel's job.10:10
ogra_well, diverting works fine up to the point where pkgsel wants to do the same10:11
infinityYes, like I said, it shouldn't be any package's job to do it.10:11
ogra_my option would be to check for an existing diversion and mangle the DIVERTS list10:11
infinityIt should be something the installer cleverly sorts out at a more fundamental level (as ubiquity does).10:11
ogra_but that adds more code that i like to10:12
infinityBut, in your case, exporting a magic variable does seem much simpler. :P10:12
=== Quintasan_ is now known as Quintasan
ogra_*than10:12
ogra_hmm, except that in-target doesnt seem to carry it over into the chroot10:13
ogra_weird, i thought it should10:13
infinityin-target just runs commands...10:13
infinitychroot /target blah blah10:13
ogra_yeh, i know10:14
infinityThat certainly won't carry an environment.10:14
infinityAnd probably clears it intentionally.10:14
ogra_thats what i mean10:14
infinityYeah, I misread the first time, and thought you were doing somehting odd like "in-target export FOO=1"10:16
ogra_nope, i just set FLASH_KERNEL_SKIP=1 in the live-installer.postinst at the top10:18
ogra_hmm, i should probably export as well :P10:18
infinityDid you export it?10:18
infinityJinx.10:18
* ogra_ sighs, bug 1028905 is making me mad10:18
ubot2Launchpad bug 1028905 in cdrom-detect "cdrom-detect in quantal omap4 hangs trying to look for install media on an extended partition" [High,Confirmed] https://launchpad.net/bugs/102890510:18
ogra_funnily i didnt see it once during the bamboo-feeder testing where we used rotary usb didsk ...10:21
ogra_i wonder if its actually limited to flash storage by whatever reason10:21
infinityCould be, it was on flash that I saw it here too.10:23
infinityBut... Weird, if so.10:23
ogra_yep10:24
ogra_yeah, exporting works fine indeed10:37
ogra_infinity, hmm, so grub uses grub-probe from grub-common to find the uuid, i wonder how evil people would consider making flash-kernel depend on grub-common10:43
infinityogra_: Hah.  Seems a bit silly. ;)10:46
ogra_well, grub-probe is a c binary, not sure i would want to pull something like this into f-k10:47
infinityIf it doesn't depend on anything else in grub-common, one could perhaps examine shipping the binary on its own.10:48
ogra_(and i surely dont want to have to maintain it)10:48
infinityOr something.10:48
ogra_i guess we have enough scripted alternative tools to find / though10:49
ogra_from where i could steal snippets and put them into f-k10:49
=== piezo_ is now known as piezo
LetoThe2ndhowdy! ubuntu runs the pandaboard with the ondemand governor by default - any nice way to pin it down at 920MHz? or just hackish things?13:03
LetoThe2ndmodify the ondemand init script?13:04
NekoLetoThe2nd, blacklist cpufreq-ondemand.ko so it can't load if it's a module (although this doesn't stop GNOME from picking it), and pick performance as a governor instead. That said, GNOME definitely forces ondemand the first time you load the power management utilities. Since Unity tends to re-use GNOME code and I think this is definitely one of the things they re-used, there's not really a good way of doing it. You could take the ondemand gover13:13
Nekonor out completely though :)13:13
LetoThe2ndNeko: no gnome there, its a cli only install13:14
Nekooh, then nothing should try and load it if you blacklist it in theory13:14
rsalvetisigh, nothing more depressing than your server's hd failing13:34
rsalvetiogra_: sorry, didn't follow the entire discussion, but my issue with the current way flash-kernel is dealing with the rootfs parameter is that it replaces the one provided by the bootloader13:34
rsalvetiwhile that can fix a few cases, where the user can't change the bootloader settings, it can also cause some other side effects13:34
rsalvetilike not allowing the user to change the rootfs by the command line, just from the rootfs13:34
rsalvetibesides that, the implementation was wrong as well, fixed with my debdiff13:35
rsalvetiogra_: how are you planning on fixing the issue?13:35
rsalvetijust because that breaks our quantal images13:35
ogra_rsalveti, just edit the db entry as i described in the bug13:36
rsalvetioh, will check the bug, just got on-line13:37
ogra_which i will make the default once we started generating bootloader configs again13:37
ogra_currently it is just set in a way that forces the lookup in fstab13:37
rsalvetiwell, it's looking for that setting, but it's broken anyway13:38
ogra_no, it isnt13:38
rsalvetiit fails before actually checking for Bootloader-sets-root13:38
rsalvetibecause we don't have any fstab by the time that script runs!13:38
ogra_oh, that would be broken13:38
ogra_Bootloader-sets-root should definitely trigger looking for fstab13:39
ogra_if thats not happening the right way, i agree it is a bug13:39
ogra_Bootloader-sets-root: yes should just use whatever the bootloader config provides13:39
ogra_and shouldnt use fstab or the initrd at all13:40
ogra_if thats not working as expectd that needs fixing13:40
ogra_the point is that we currently forcefully default to checking fstab13:40
ogra_on purpose13:40
rsalvetiyeah13:41
ogra_so the behavior is exactly what we defined in the config13:41
rsalvetithe patch I sent it's just makes the script to skip this setting, because in case there's no fstab, there's nothing to do13:42
ogra_Bootloader-sets-root: yes looking for fstab is a bug though, but a different one13:42
ogra_right, it isnt supposed to do that, since your initrd wont have the needed entry then13:42
rsalvetithe problem with the current code is that it checks for /etc/fstab first and then check for  Bootloader-sets-root13:42
ogra_it should fail if it cant set the entry13:42
ogra_right, lets fix that then13:42
rsalvetiogra_: alright, let me propose a better fix then13:43
ogra_suppressing something that was explicitly set isnt the solution though13:43
rsalvetiyup13:44
* ogra_ tried out postler today ... looked like an awesome minimal desktop mail client... until i found my password in clear text in ~/.config/postler :P13:45
Quintasanogra_:  :D13:46
infinityogra_: But you run full disk encryption anyway, so it doesn't matter, right? :P13:54
ogra_hahaha13:55
infinityogra_: (And most mail clients store passwords in reversible hashes, it's not actually any more secure)13:55
ogra_ture ... but plain text ... uh13:56
infinityPlain text it just not having silly pretense.13:56
ogra_and no, i dont get why anyone would use disk encryption on a home desktop13:56
infinityAs long as the file perms are correct, it's the same level of security as every other client.13:56
ogra_ogra@anubis:~/Devel/kernels/build/ubuntu-precise-imx6-sabre-77f462e$ ls ../*deb14:00
ogra_../crypto-modules-3.2.0-1001-imx6-sabre-di_3.2.0-1001.2_armhf.udeb  ../linux-headers-3.2.0-1001_3.2.0-1001.2_armhf.deb             ../linux-image-3.2.0-1001-imx6-sabre_3.2.0-1001.2_armhf.deb        ../nic-shared-modules-3.2.0-1001-imx6-sabre-di_3.2.0-1001.2_armhf.udeb14:00
ogra_../kernel-image-3.2.0-1001-imx6-sabre-di_3.2.0-1001.2_armhf.udeb    ../linux-headers-3.2.0-1001-imx6-sabre_3.2.0-1001.2_armhf.deb  ../mouse-modules-3.2.0-1001-imx6-sabre-di_3.2.0-1001.2_armhf.udeb  ../storage-core-modules-3.2.0-1001-imx6-sabre-di_3.2.0-1001.2_armhf.udeb14:00
ogra_:D14:00
* ogra_ really loves that he can cross build a fully packaged kernel in 4min now :)14:00
ogra_it doesnt build manyu udebs though14:00
ogra_infinity, want it ? or do you build yourself anyway ?14:01
infinityogra_: I haven't built it yet, no, I'm happy to trust your binaries, if you want to toss them somewhere for me.14:03
* ogra_ pushes to preople.c.c14:03
ogra_infinity, http://people.canonical.com/~ogra/mx6/14:16
ogra_oh, nice, mx6 uses 5V 4A, i can actually use my panda PSU14:18
LetoThe2ndogra_: crossbuilding just u/zImage or a real package?14:27
ogra_LetoThe2nd, the whole package ;)14:30
ogra_and all its udebs14:30
ogra_and headers etc14:30
LetoThe2ndogra_: mind sharing the procedure?14:30
LetoThe2ndmake deb-pkg is broken :(14:30
LetoThe2ndjsut getting into rt-testing the omap4 and that could come in handy :)14:31
ogra_i mount an 8G tmpfs, unpack the source package in there and then run:14:31
ogra_DEB_BUILD_OPTIONS=parallel=8 CROSS_COMPILE=arm-linux-gnueabihf- dpkg-buildpackage -b -aarmhf14:31
LetoThe2ndinside the source folder i assume?14:32
ogra_yep14:32
LetoThe2ndrequires a debian patched kernel, i'd guess?14:32
ogra_at least a debian dir, yeah14:32
LetoThe2nd*notes*14:33
ogra_LOL14:55
ogra_that shipped microSD image for the mx6 is awesome14:55
ogra_i specifically like  /viminfo and /session.vim14:56
=== zyga is now known as zya-afk
ogra_haha14:58
ogra_and /root/.bash_history tells you how to play big_buck_bunny on it14:58
GrueMasterogra_: Is this a publicly available platform or is it still early?16:13
ogra_GrueMaster, thats just an mx6 board someone handed to me in boston16:13
GrueMasterAh.16:14
ogra_it comes with a preinstalled oneiric linaro microSd in the slot16:14
GrueMasterheh16:14
ogra_armel indeed :(16:14
ogra_which is bad since it ships all the binardy drivers as debs in /root ...16:14
GrueMasterI fount the iMX6 dev boards on Freescale's website, but no info or pics.  Just basic info and huge price tage.16:15
GrueMasters/tage/tag16:15
ogra_well, quad core with sata16:15
ogra_no idea what they cost16:15
GrueMaster:D16:15
GrueMasterThe "cheapest" I see is $399 USD16:15
GrueMasterSo ~1.50 Euro.16:16
rsalvetiogra_: the weird thing with the flash-kernel hook script is that it always expect to set the ROOT param at the initramfs16:16
GrueMaster(note price adjusted for sarcastic effect).16:16
rsalvetiif Bootloader-sets-root is set to yes, it'll force it anyway expecting the parameter from the bootloader to be wrong16:17
ogra_rsalveti, even if the confi g option is set differently ?16:17
rsalvetiif it's set to no, it'll provide one anyway16:17
rsalvetiyup16:17
rsalvetiogra_: http://paste.ubuntu.com/1138037/16:17
ogra_right. yes should make it ignore all root search functions16:17
ogra_eek !16:17
ogra_that definitely needs fixing16:18
rsalvetiso basically, with flash-kernel, there's no way to use the root parameter from the bootloader16:18
ogra_yes, i plan hanging that by adding a function that either reads a var or determies it from the current list of mounts16:19
ogra_*changing16:19
ogra_not hanging :P16:19
rsalvetisure, but we need to deal with this use case as well16:19
ogra_in any case line 9 and 10 are horridly wrong16:19
rsalvetiguess the variable Bootloader-sets-root is used wrongly here16:19
ogra_just remove 6-10 ?16:20
rsalvetiwe could have one option to force the initrd to overwrite the bootloader cmdline16:20
rsalvetinot in case of the official and supported platforms for ubuntu16:20
rsalvetibut in case there's no way to chagne the bootloader settings16:20
ogra_the official and supported platforms in ubuntu will have a proper config already16:20
rsalvetijust thinking that this would need to land at debian at some point16:20
rsalvetiyeah16:21
ogra_flash-kernel-installer will create it16:21
rsalvetiactually, officially we don't need to use this hook at ubuntu16:22
* ogra_ really doesnt get that assumption of root=/dev/ram16:22
rsalvetibut it'd be nice to get it fixed anyway16:22
rsalvetiogra_: in case the bootloader hardcode the root argument16:22
rsalvetifor some weird and bizarre values :-)16:22
ogra_and ?16:22
ogra_if the bootloader hardcodes /dev/ram as root= something went seriously wrong way before flash-kernel16:23
rsalvetiyou still want to boot your distro, pointing to a different rootfs16:23
ogra_and f-k shouldnt be the one working around this16:23
rsalvetisure, but one workaround, and probably what was done initially at flash-kernel, is to fix that at the initrd level16:23
ogra_which is just wrong16:23
rsalvetinot that sure16:23
ogra_hardcoding your root= line in an initramfs is plainly wrong16:24
ogra_if you actually *want* this and set the config to do it, thats fine, but it cant be the default16:25
rsalvetiyup, we should probably just use another variable16:25
ogra_and if your installer did the right stuff, you will have a bootloader congif with either root=UUID= or root=/dev/whatever116:25
rsalvetiBootloader-sets-root: (required) when "yes" indicates that the   bootloader passes a root= value to the kernel and that this should be   overriden in the initrd; when "no", flash-kernel only sets a default   value for the root device, which allows end-users to pass root= to the kernel16:25
GrueMasterFound it.  Expensive little beast.  http://boundarydevices.com/products/sabre-lite-imx6-sbc/16:26
rsalvetiCost will be $199 in Production (October 2012)16:26
GrueMaster$299 pre-production, $199 production (~10/2012)16:26
ogra_rsalveti, err, wheer is that from ?16:26
ogra_oh, wow16:27
rsalvetiogra_: README :-)16:27
ogra_i have read the README x times now16:27
ogra_i never noticed the "and that this should be16:27
ogra_  overriden in the initrd"16:27
ogra_so yeah, definitely wrong16:28
ogra_the initrd cant override, thats total nonsense16:28
rsalvetinot for debian I'd guess16:28
rsalvetithen we'd probably need to handle it differently here16:28
ogra_yes16:28
rsalvetiprobably by creating another option, or by just skipping in case it's ubuntu16:28
ogra_i fear we will end up with a lot of diversion from debian again anyway16:29
rsalvetilike Trust-Bootloader-root :-)16:29
ogra_so i dont mind mangling the "yes" case to do the right thing16:29
rsalvetiyeah, let me open a bug at debian about that16:29
ogra_heh16:30
rsalvetilet me just grab some food first16:30
rsalvetilunchtime16:30
ogra_i doubt you will get any positive feedback :)16:30
prpplaguejust fyi, i need all comments posted on omap5 wishlist by COB friday21:23
ogra_infinity, FYI building linux-ti-omap4 on the mx6 takes 100min (i left it doing three test runs, one with parallel=8 which intrestingly took 1min longer than without)... on launchpad the saem is listed with 4h+ atm22:32
ogra_*same22:32
infinityogra_: Righ, so vaguely half the time with twice the cores.  That's not unexpected for well-multithreaded builds.22:38
infinityogra_: (Which is why I'd prefer people stop using kernel builds as build benchmarks, unless that's the only thing we ever build)22:38
ogra_yeah, what surprised me was that the build actually used all cfour cores regardless22:39
infinity"regardless"?22:39
ogra_well, even with DEB_BUILD_OPTIONS=parallel=8 which i thought might speed it up (two threads per core should be possible) the build didnt make a difference to not setting DEB_BUILD_OPTIONS22:41
infinityTwo threads per core definitely won't speed anything up. :P22:41
ogra_well, it actually delayed it by 60sec :)22:41
ogra_not significant22:41
infinityYeah, cause you cause more I/O contention.22:42
ogra_still, i thought if i dont define parallel i would have expected to build single core22:42
infinityNope, cause the kernel rules file is tricky.22:43
ogra_ah, it does checks ?22:43
infinityIf you define parallel=, it uses what you ask for, but if you don't, it uses $(getconf _NPROCESSORS_ONLN)22:43
ogra_aha22:43
ogra_so thats package specific, k22:43
infinityYeah.22:43
ogra_well, at least we know it can build a kernel in half the time a panda can :)22:44
ogra_if i find some spare time i want to try a livefs build tomorrow ... that should really fly on 60MB/s22:44
ogra_i sadly cant get cooloney'S kernel to boot ...22:45
ogra_i suspect the package should ship devicetree files somewhere but i cant find any22:45

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