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

cooloneyogra_: please take a look at https://wiki.linaro.org/Boards/MX6QSabreLite00:54
scienteso shiii that is nice00:58
scienteswhere can i buy it?00:58
scientescooloney, where can i get that? freescales site was not helpful01:03
cooloneyscientes: oh, actually i don't know how to buy it, i got it from my manager01:04
=== plars_ is now known as plars
electronics-catI used the ubuntu 12.04 preinstalled omap4 linux image for the Pandaboard ES and after installing I try to install the proprietary graphics driver and it bombs out saying "SystemError: E:Unable to correct problems, you have held broken packages." Any way to fix this?08:02
sveinseI'm experimenting with putting together a dummy debian package on an intel system. I call "dpkg-buildpackage -aarmel -b -us -uc -nc" which works perfectly. However if I call "dpkg-buildpackage -aarmhf -b -us -uc -nc" dh binary just returns without any errors but it does absolutely nothing and hence no package.08:57
ogra_do you have the armhf cross toolchain installed ?08:58
sveinseThe package is debhelper based, and rules does not contain anything except a override_dh_auto_install. It never calls this in the armhf one.08:58
sveinseogra_: Yes I believe so08:59
ogra_cooloney_, well, i'm just using the shipped SD card and replace uImage after i rolled a package from your git tree, i was assuming this would work, butu apparently the kernel misses DT entries08:59
ogra_(at least it complains about DT stuff)09:00
ogra_Error: unrecognized/unsupported machine ID (r1 = 0x00000eb9).09:00
ogra_Available machine support:09:00
ogra_ID (hex)        NAME09:00
ogra_ffffffff        Freescale i.MX6 Quad (Device Tree)09:00
sveinseogra_: I have armhf gcc, g++ and thus libc, libstc++, binutils and so on09:01
ogra_cooloney_, ^^^09:01
ogra_sveinse, and the package has an entry for armhf in debian/control as well ?09:01
cooloney_ogra_: yeah, it uses DT by default. i grab linaro image here http://snapshots.linaro.org/precise/pre-built/lt-mx6/236/09:01
ogra_well, i want tzo use plain ubuntu images ...09:02
ogra_the userspace i have is fine with the kernel from the shipped SD ...09:02
sveinseogra_. /me embarrassed. You're right. It said armel.... Thanks09:02
cooloney_ogra_: after booting it up, i replace the kernel with my own built from the git tree09:02
ogra_i just dont seem to be able to replace the shipped one with it09:02
ogra_what mkimage command do you use ? probably i got the adresses wrong (though i picked them from the shipped kernel, they should work)09:03
cooloney_mkimage -A arm -O linux -T kernel -C none -a $ADDR -e $ADDR -n "Ubuntu Kernel @$ADDR" -d $INPUT $OUTPUT09:04
ogra_haha09:04
cooloney_the $ADDR should be 0x1000800009:04
ogra_ah, k09:04
sveinseI have a somewhat hard time reading gcc specs; what is the default CFLAGS for armhf?09:07
sveinseI try to cross compile x-loader and I get x-load/bu/cpu/omap3/start.S:1:0: sorry, unimplemented: -mfloat-abi=hard and VFP. But I guess you don't use x-load anymore anyways...09:09
ogra_cooloney_, still: Error: unrecognized/unsupported machine ID (r1 = 0x00000eb9).09:09
ogra_cooloney_, right after "Starting kernel ..."09:09
ogra_cooloney_, http://paste.ubuntu.com/1139260/ thats the complete boot log09:11
lilsteviesveinse, from what I understand x-load is still used, just as MLO (but I might be wrong I don't own any OMAP device"09:12
lilstevie)09:12
cooloney_ogra_: do you have board.dtb in your mmcblk0p2?09:12
cooloney_and what's your boot.scr09:12
ogra_the boot.scr is the same modulo a changed root=09:13
cooloney_ogra_: http://paste.ubuntu.com/1139265/, this is my boot.scr09:15
cooloney_ogra_: maybe you need my uImage, boot.scr and board.dtb09:15
ogra_well, i re-used the shipped boot.scr (6q_bootscript) ... that doesnt even define a .dtb09:16
ogra_there is a subdir in /boot on the card that carries one though09:16
ogra_cooloney_, where does the dtb come from ? i would have expected to find it in the package i built somewhere09:17
ogra_ogra@sabre:~$ dpkg -c linux-image-3.2.0-1001-imx6-sabre_3.2.0-1001.2_armhf.deb|grep dtb09:19
ogra_ogra@sabre:~$09:19
electronics-catsmashpot mcgoo09:21
cooloney_ogra_: actually i get the .dtb file from linaro image, i didn't change it09:22
electronics-cati take it proprietary powervr sgx is just broken right?09:22
ogra_electronics-cat, works fine here ...09:22
ogra_(at least using the integrated one (i.e. the one that you get offered via GUI right after install))09:23
electronics-catcan you tell me what image you used, cause I can't get that to install at all09:23
ogra_cooloney_, hmm, then let me try your boot.scr09:24
ogra_electronics-cat, the default ubuntu image for 12.04 ... the hardware manager app will pop up automatically after install and offer you the PVR driver09:24
cooloney_ogra_: need i sent you the board.dtb file?09:24
ogra_cooloney_, well, the SD ships three, i guess if i define it in boot.scr one might work :)09:25
electronics-catogra_: yeah it offers me the same thing, except when i try to do it, it says "SystemError: E:Unable to correct problems, you have held broken packages." after a while09:25
ogra_electronics-cat, that looks more like you messed up your package manager before ...09:26
cooloney_ogra_: great09:26
electronics-cative tried it twice on a fresh install09:26
ogra_you said 12.04, right ?09:26
ogra_not 12.1009:26
electronics-catubuntu-120.04-preinstalled-desktop-armhf+omap4.img09:27
electronics-cat12.0409:27
ogra_and you did no fiddling, adding of any PPAs etc ?09:27
electronics-catabsolutely NO fiddling at all.09:27
ogra_very strange, these images get massive testing09:28
ogra_cooloney_, hah, wow, of i click on "download as text" for your paste i get "DatabaseError: database disk image is malformed"09:29
ogra_fun09:29
* ogra_ copy/pastes line by line from the html page09:29
cooloney_ogra_: hah, you know i just sent your a virus in that page09:31
ogra_hehe ...09:32
sveinseWhen running armhf ubuntu, what must be armhf? I presume the bootloader can be armel, but the kernel must be armhf, right? Or will the interface between uboot and kernel fail if the eabi dont match up?09:54
ogra_only the userspace needs to be hf09:55
sveinseoh, I thought the kernel had to be armhf due to the userspace-kernel interface09:55
ogra_cooloney_, k, none of my dtb files work, gimme yours :)09:56
cooloney_ogra_: ok, will email you soon09:56
ogra_thx09:56
sveinseI have to admit not having total overview of what the specific differences between armel and armhf are09:57
sveinseIf the kernel is agnostic to armel and armhf, can a system have both armel and armhf installed via multiarch?10:03
ogra_hmpf, so following the linaro instructions to reflash seems to have bricked the board10:23
LetoThe2ndyay, bricking!10:26
=== zya-afk is now known as zyga
cooloney_ogra_: do you have any trick to speed up 'sbuild-update --keygen'11:06
cooloney_Not enough random bytes available.  Please do some other work to give11:06
cooloney_the OS a chance to collect more entropy! (Need 300 more bytes)11:06
ogra_cooloney_, never used sbuild11:12
ogra_better ask infinity11:12
* cooloney_ faint11:12
cooloney_ogra_: i assume you asked me never use sbuild, hah11:13
ogra_cooloney_, well, i usually just have a tarball with a chroot and manually build the package for a testbuild11:14
ogra_(in there indeed)11:15
ogra_i dont need any fancy buildd setup for that :)11:15
* ogra_ curses, so the only way to recover the mx6 is a windows tool 11:15
ogra_i dont have any windows copy around :(11:15
ogra_and while it runs under wine it doesnt find the usb port11:16
cooloney_ogra_: oh, you broke you mx6 board?11:23
ogra_i followed the linaro wiki to update the NOR bootloader11:23
cooloney_ogra_: me either, i have an broken one on the desk11:23
ogra_and after reboot the board is completely dead11:23
cooloney_yeah, i think some boards has problem to access SD card.11:24
ogra_there is a windows tool that can flash via USB to recover11:24
cooloney_even I booted it up from MicroSD, I cann't read/write SD card from U-boot11:24
ogra_i cant boot from anything anymore11:24
cooloney_ogra_: yeah, i just gave up since no Windows PC and borrowed one board from Eric11:25
ogra_hmm, there are two dip switches on the board11:25
ogra_i wonder if you can influence the boot process somehow with them11:25
ogra_heh, seems you can11:25
cooloney_ogra_: i think fsl will try to boot SD card directly in their new board.11:26
cooloney_ogra_: but for our broken board, have to use that windows tool to recover11:27
=== Chipaca is now known as __chip__
=== zyga is now known as zyga-afk
=== zyga-afk is now known as zyga
=== XorA|gone is now known as XorA
=== Quintasan_ is now known as Quintasan
ogra_sigh, finally fond an old win98 cd ... installation takes hours !13:42
infinityogra_: What on earth are you installing Win98 for?13:49
ogra_infinity, to unbrick my mx613:49
ogra_infinity, i made the mistake to follow the linaro instructions to update u-boot ... even though i only copy/pasted in the u-boot shell and it all seemed to work, the board is dead now13:50
ogra_and the tool FLS offers to unbrick via OTG is a windows tool13:50
infinityogra_: Sure, I get that.  It13:51
ogra_i couldnt get the OTG port recognized under wine so i'm trying a vbox install now13:51
infinityIt's specifically "why Win98" that I was asking. :P13:51
lilsteviewhy not xp, or something a little more modern that most people have on some machine tucked away in a corner13:51
lilstevieinfinity, heh I got you, I was thinking the same thing :p13:51
infinityThen again, Germans are known for their masochism.13:51
ogra_becuase the 98 CD is the only usable win media i found in my big brown box13:51
ogra_all PCs i bought the last 15 years were whitebox products13:52
ogra_so i never got any win licenses or media13:52
infinityogra_: I have several legit licenses for NT4/2K/XP/7, if you ever actually need a legit NT install sometime.13:52
* ogra_ had a hard time even finding a machine with usable CD rom over here13:52
ogra_well, as long as vbox can natively work with USB i should be good now13:53
ogra_though i might lose my left leg ... the laptop running vbox is pretty old and starts getting quite hot already13:54
infinityUgh.  I must need to go back to bed.13:54
infinityI just typed by 80 bazillion character GPG passphrase into a sudo prompt SIX TIMES before I realised it wanted my password, not my passphrase. :P13:54
ogra_lucky you didnt type it into IRC13:55
infinityI'm tired, not mentally deficient.13:55
* ogra_ twiddles thumbs watching a drum and little drumsticks on the screen13:55
lilstevielast time I tried to install windows in a vm it didn't work so well :(13:56
ogra_works fine apparently ... but its ultra slow13:57
lilstevieapparently 1.7GHz was far too much for win3.1 to handle13:57
ogra_3.1 from virtual floppies ?13:57
lilstevieyeah13:57
ogra_heh13:57
* ogra_ likes how it says "less than a minute" since 20min13:59
lilstevieheh13:59
lilsteviethat takes me back to running on real hardware when win9x was current :p13:59
lilstevieit will take 1 microsoft minute13:59
ogra_heh14:00
ogra_at least it has an innovative 640x480 splashscreen14:00
lilstevie:D14:00
* lilstevie wonders how much fun it would be to install win98 natively on his current hardware14:00
lilstevie27" monitor at 2560*144014:01
ogra_argh, i thought i was done ...14:01
ogra_but after first start it first wants to install drivers14:01
lilstevieah yeah, that14:01
* ogra_ totally forgot what a pain windows is14:01
lilsteviehey, at least modern windows is a little less painful14:02
ogra_but my little fried, the drum with sticks is back at least14:02
lilsteviewho ported tianocore uefi to the beagle btw14:02
* ogra_ has no idea14:03
lilsteviehm14:05
ogra_grrr, i forgot that adding a dns server needs a restart14:20
lilsteviefun14:24
=== doko__ is now known as doko
sveinseWhat is the relationship between plymouth and libpango ?  From what I see, plymouth does not depend on libpango. However, pango files are indeed used by plymouth...16:03
ogra_text rendering16:05
sveinseogra_ , yes. For some reason my lacks libpango and hence update-initramfs fails. plymouth wants to read libpango files and croaks. Isn't this an error in the deps?16:07
ogra_no, thats the opposite, it prevents you from a bug :)16:08
ogra_copy_exec in the plymouth hook is supposed to pull all libs in a binary is linked against16:08
ogra_if it cant it has to fail, else you would be left with a non-functional initrd16:08
sveinseogra_ maybe I'm getting this all wrong, but looking at /usr/share/initramfs-tools/hooks/plymouth it refers at the bottom to pango, right. But my system has no libpango since noone depends on it.16:12
ogra_plymouth does16:12
sveinseuhm. not immediate/direct dependency. neither in natty nor in precise (armel) afaics. I haven't searched the dependency tree (deps of deps) thou16:14
=== XorA is now known as XorA|gone
sveinseI hope I'm wrong...16:14
ogra_ogra@anubis:~/Devel/packages/flash-kernel-3.0~rc.4ubuntu18$ apt-cache rdepends libpango1.0-0|grep plymouth16:18
ogra_  plymouth-x1116:18
ogra_  plymouth-label16:18
sveinseogra_, But that's not plymouth... Point is I'm making a theme and it depends on plymouth (only for now). Which in turn does not depend on pango even if it does use it. Now, I see that common themes usually require plymouth-label which in turn pulls in libpango. I still think this to be a bug16:23
* ogra_ thinks its a feature16:24
sveinsewell Depends on plymouth in incomplete and hereby disobeyes the Ubuntu Policy manual...16:24
ogra_??16:25
ogra_initramfs-tools hooks dont obey to a packaging manual16:25
ogra_they dont have to16:25
sveinseIsn't the point of Depends to actually tell which packages I need to make use of this package?? "The Depends field should be used if the depended-on package is required for the depending package to provide a significant amount of functionality."16:27
sveinseplymouth is broken unless libpango is installed.16:27
sveinseWell, anyways. I can add plymouth-label as a dependency to my theme (even though that is not true) just to allow update-initramfs to complete16:28
sveinseogra_: No initramfs-tools hooks dont need to obey to the manual in itself, but the package system does, right? I mean the whole distribution is built upon sane dependencies16:31
ogra_Recommends: plymouth-theme-ubuntu-text | plymouth-theme16:32
ogra_recommends are installed by default in ubuntu16:32
sveinseUbuntu policy manual: ยง7.2 "Recommends: This declares a strong, but not absolute, dependency.". When a package become unusable because of a missing recommends package is rather stronger than recommends I'd say. But ok. I give. This is the most awkward usage of dependencies I've seen in a while.16:37
infinitysveinse: If the initramfs-tools hook unconditionally copies libpango without a hard dependency, that's a bug, yes.16:39
sveinseinfinity: It does16:40
infinitysveinse: Then please file the bug (if it's not already filed).16:40
sveinsethanks, will to (tomorrow)16:41
sveinsebut I see ogra_'s point, if a theme requires libpango and its not there, its much better to fail during update-initramfs rather than in boot because of missing so's.16:47
infinitysveinse: Sure, but either plymouth needs a dep on libpango, or how this all works needs to be made smarter.16:48
infinitysveinse: Being able to install plymouth but have the initramfs-hook fail is broken behaviour.16:48
sveinseinfinity: My initial proposal was to test for libpango presence in initramfs-tools hook and include it conditionally. I have a theme that do not need pango, and hence that would be a better solution for me.16:50
sveinseThe other is to simply depend on libpango from plymouth as you said16:50
sveinseReading the hook I think it comes from an assumption that a theme always depends on libpango and hence it's present when update is run16:52
sveinseAnother related thing ogra_: It seems /lib/plymouth/renderers/vga16fb.so is missing from the armhf packages, while present on armel (which also croaks update-initramfs). Is this is bug as well?16:58
ogra_no idea, file it and someone will look :)16:59
sveinseok, thansk16:59
sveinse*thanks16:59
ogra_rsalveti, poke17:05
rsalvetiogra_: hey17:05
ogra_rsalveti, do the ubuntu linaro images ship PVR ?17:06
ogra_(the ready made img's not what i build at home with l-m-c)17:06
rsalvetiogra_: yup17:06
ogra_hmm, so we could do that as well in ubuntu i assume17:06
rsalvetiogra_: stop updatting flash-kernel!17:06
rsalvetihahah17:06
rsalvetiI sent a better patch yesterday17:07
ogra_lol, tell rbasak17:07
rsalvetineed to rebase it again17:07
ogra_he always complains if i break his installs !!!17:07
ogra_users ...17:07
ogra_*g*17:07
rsalvetilol17:07
rsalvetiogra_: I think the license can be an issue on a few places17:08
ogra_rsalveti, well, unity-2d is considered dead now17:08
rsalvetiyeah, I knoe17:09
rsalvetiknow17:09
ogra_llvmpipe does apparently not work on GLES yet17:09
ogra_how could you know, decision was apparently just made :)17:09
rsalvetiwell, it was dead already, wasn't it?17:09
* ogra_ wants rsalveti's crystal ball !17:09
rsalvetiit was still around, but not maintained17:09
ogra_it wasnt clear if we drop it in quantal already17:09
rsalvetior you mean it's not going to be available anymore?17:09
ogra_right17:10
ogra_all 2D stuff will be gone from the desktop17:10
janimoogra_, since when is u-2d considered dead?17:10
ogra_janimo, UDS17:10
rsalvetiogra_: then we might need to include a way to install the proprietary drivers from the installer17:11
janimoso u-3d will be on all CDs?17:11
ogra_but back then it still sounded like it would stay around on the images in maintenance mode17:11
janimoI thought so far that u-2d would eventually replace the compiz based one :)17:11
ogra_which was apparently just decided to not happen17:11
ogra_janimo, we all hoped that :)17:11
janimolink to ml discussion or irclogs? I did not follow much of desktop recently17:12
janimobesides UDS talks I mean17:12
ogra_rsalveti, well, if you could ship them, we can as well, we just need to make sure ubiquity still works in framebuffer, i dont see a way to boot a live image and use dkms17:12
ogra_janimo, nope, there were no discussions at all apart from UDS :/17:12
janimook, since you said above 'was just decided'  I though very recently17:13
rsalvetihm, I don't see why we'd be using gles from the start17:13
rsalvetigles/opengle17:13
rsalvetiI we had plans to put wayland right at initrd :-)17:13
ogra_janimo, yes, the actual decision to drop it asap was made just now17:13
rsalvetibut that was just one part afaik17:13
ogra_i dont see wayland as the default in quantal17:14
janimobecause of the qt uncertainty or just carrying two similar codebases is not worth it17:14
ogra_nor do i see space on the images to ship it17:14
ogra_(in parallel with xorg)17:14
* ogra_ hugs jcrigby ... thanks for the upload !17:15
rsalvetiso framebuffer will still be an option for the installer, right?17:15
ogra_rsalveti, i hope so17:15
rsalvetiogra_: bug 1034734, a new debdiff for you sr17:15
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/103473417:15
ogra_uness they decide the slideshow needs to be in clutter or some other evil thing17:15
rsalvetiogra_: please review it :-)17:15
rsalvetiogra_: lol17:16
rsalvetiwould not be surprised17:16
rsalvetiboot log in 3d, fancy installer17:16
rsalvetithat's the future17:16
rsalveti:-)17:16
ogra_rsalveti, hmm, thats the third place we set FLASH_KERNEL_SKIP now17:16
ogra_i wonder if we cant do it more globally17:17
rsalvetiogra_: yup17:17
rsalvetiogra_: well, this is a hook for initramfs17:17
ogra_like in the flash-kernel script itself probably :)17:17
rsalvetiso it's not actually running flash-kernel17:17
ogra_(where we did it in the past)17:17
rsalvetibut more like, please don't mess with my system in case I don't want to run flash-kernel17:18
rsalveti:-)17:18
rsalvetibut I understood why we had 2 options yesterday on that crazy if block17:18
ogra_yep17:18
rsalvetione is setting the root to overwrite the one provided by the kernel17:18
rsalvetiand the other just to provide a default17:18
ogra_yeah, and we want the latter17:18
rsalvetiyup17:19
rsalvetiso if we keep as 'no', it'll behave as we want17:19
ogra_we will default to yes though17:19
rsalvetiwhy?17:19
ogra_as soon as i changed f-k-i to create a proper default config17:19
rsalvetithe yes is to replace the rootfs parameter from the boot loader17:19
rsalvetithere's no need to do it17:19
ogra_because by default ubuntu sets root=UUID= on the cmdline17:19
ogra_we dont want to have an initrd override that17:20
rsalvetisure, and that's why you actually want a no here17:20
ogra_no, we want a yes :)17:20
rsalvetino means it'll set a default root argument at the initramfs, that will not replace the one from the kernel17:20
ogra_if yes, then the bootloader sets the root parameter17:20
rsalvetino!17:20
rsalveti:-)17:20
ogra_if no, flash-kernel tiresd to set it in initrd17:20
rsalveticheck the readme17:20
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 kernel.17:21
rsalvetiso 'no' is what we want at ubuntu17:21
rsalvetiand my patch fixes the behavior to match exactly as we need17:22
infinityMy god, that's an unintuitively-named option.17:22
rsalvetiinfinity: exactly!17:22
ogra_++17:22
infinityIt should be "Initrd-overrides-root"17:22
ogra_talk to the linaro OCTO :P17:22
rsalvetilool: ^17:23
rsalvetiyour fault17:23
rsalveti:P17:23
ogra_its *all* his fault !17:23
rsalvetiit's your baby, you created the new monster17:23
loolinfinity: No, right now it's implemented with initrd, but with some boards it might set root in e.g. bootloader environment  :-)17:24
loolrsalveti: ^  :-)17:24
rsalvetiexactly17:25
rsalvetibut here17:25
rsalvetiwe have the bootloader setting the rootfs17:25
rsalvetiand we don't want that to be forced by the initramfs17:25
loolrsalveti: I've read the patch earlier today, but I didn't really see all the use cases for both adding the SKIP support (ok with that) *and* the other code changes17:25
loolrsalveti: Sure, so you want Blst: no17:26
rsalvetione, without /etc/fstab17:26
rsalveticurrently if you don't have a /etc/fstab it'll break and explode to the user17:26
loolrsalveti: not having a fstab is bad; why not have one?17:26
rsalvetilool: chroot?17:26
loolso you disable flash-kernel until you have one17:26
loolwhy do you need flash-kernel in a chroot?  :-)17:26
rsalvetiwhy disabling flash-kernel?17:27
rsalvetiwell, not sure, why not?17:27
rsalvetithis I got because of the way linaro-media-create runs17:27
rsalvetiit sets the /etc/fstab as the last step in the game17:27
rsalvetican be changed, but where I got the issue17:27
ogra_rsalveti, if you dont disable it it will try to write to the defined device17:27
rsalvetistill, it should deal with the situation where no rootfs can be found at /etc/fstab17:27
rsalvetibreaking and asking for user input is bad17:28
loolrsalveti: I don't like the user input thing, I agree, it's historical, but breaking the install by default kind of make sense to me17:28
lool*makes17:28
loolrather than silently resulting in an unbootable system17:28
rsalvetilool: that's why I'm now breaking in case we have a "yes" and we don't have a rootfs17:29
rsalvetiif we have a "no" we don't actually care17:29
loolrsalveti: l-m-c should have a step to install packages and a separate one to "make the system bootable", just like during an install17:29
ogra_lool, will you be at UDS btw ?17:30
ogra_we have patches piling up again and i think we shoudl sit down and look whats acceptable for debian and what needs to stay ubuntu only17:30
loolrsalveti: One thing which might not be obvious: Blsr is just a cosmetic thing for how the root is set by f-k, in *both* cases f-k needs to know the root dev17:30
loologra_: which one?17:30
ogra_next one17:30
loologra_: I'll be in Copenhagen17:30
ogra_great17:30
rsalvetilool: well, it doesn't need to know, that's the thing17:30
rsalvetilool: not at ubuntu at least17:30
ogra_lool, so mark 1h for f-k discussion over a beer or wine then ;)17:31
rsalvetiif we're dealing with the rootfs argument by ourself, we don't want flash-kernel to mess with it17:31
rsalvetiit tries to provide a default one, but if it can't find a rootfs, it'll just skip it17:32
rsalvetithat's why I changed at my patch17:32
rsalveti*what17:32
rsalvetiI don't know why the decision was made to always have a working rootfs at initrd17:32
rsalvetiI know that the use case 'yes' here is valid17:33
loolrsalveti: I'm not sure it's a good direction; f-k knows a bit too little about the boot details at the moment, moving towards it knowing less for certain devices isn't great   :-/17:33
rsalvetibut still, you're forcing the rootfs argument to the user17:33
rsalvetilool: why not?17:33
loolrsalveti: the system should know about the boot and root devices17:33
rsalvetithat's just the rootfs argument17:33
loolrsalveti: I don't undertsand "you're forcing the rootfs argument to the user"?17:34
loologra_: if I do that we're going to drink wine or beer for one hour  ;-)17:34
rsalvetiwell, by forcing a rootfs argument at the initrd, that also replaces the one provided by the kernel17:34
loolrsalveti: It's not necessarily forced17:34
rsalvetiit is17:34
loolrsalveti: one code path only sets a default17:34
rsalvetijust in case it's a 'no'17:35
loolrsalveti: that's the point of Blsr17:35
loolrsalveti: Yes17:35
loolrsalveti: The reason this exists is because some bootloaders hardcode it without f-k being able to update this17:35
rsalvetisure, but here you're assuming you know which bootloader is used17:35
loole.g. some systems hardcode root=/dev/ram/ram0, others hardcode /dev/hda1 when you want /dev/sda1 or /dev/md0 etc.17:36
rsalvetiand that can be updated17:36
rsalveti*it can't17:36
loolrsalveti: I'm explaining where the feature comes from17:36
rsalvetiI hate this idea of the system setting everything up for the user, and forcing him to use such options17:36
rsalvetiif he wants to change the rootfs, it'll be a huge pain17:36
loolrsalveti: Now, rather than always overriding the kernel root=, it was considered a good idea to only override it if it's hardcoded17:37
loolrsalveti: hold on17:37
loolrsalveti: I think you're jumping to conclusions17:37
rsalvetino, it's just weird we're assuming that for a few devices the user will not be able to update the bootloader17:38
rsalvetior the bootloader arguments17:38
loolNow that I've explained where this comes from, when I moved this option from an "if" in the code to the database, I also looked at the code and tried to make everything as automatic and config-less as possible17:38
loolI'm sure there are advanced use cases that were never well supported and that we should try to support17:38
loolBut I'd like to support these use cases in a solid and maintainable (upgradeable) way17:38
ogra_lool, i think if f-k is configured to not handle root= it should simply not handle it at all17:39
loolrsalveti: It's exactly that: for certain devices, we can't update the bootloader settings or the bootloader17:39
rsalvetiI understand, but it can be quite confusing as well17:39
rsalvetiit's hard for the user to understand that the initrd is replacing his own kernel options17:39
loolrsalveti: it might be because it's too risky to do so, because the sources are ancient / hard to build / missing, or because the feature is lacking17:39
ogra_the current behavior makes it still fiddle with it17:39
rsalvetiand that's not explicitly happening17:39
loolrsalveti: I understand, this is a historical implementation which has some advantages, let's think of how we can provide alternate options?17:40
rsalvetiwith the 'yes' path I'd be just happy if we had a *big* warning saying to the user that the system is now controlling the rootfs argument17:41
rsalvetiand for the 'no' case, please don't do anything :-)17:41
rsalvetiwhich is what we want at ubuntu17:41
loolrsalveti: I disagree17:41
loolI don't think we want to do nothing wiht Ubuntu17:41
ogra_we do :)17:41
loolwe should speak of concrete system-wide use cases rather than just thinking at the f-k level17:42
rsalvetiat ubuntu we want a file to control the rootfs argument17:42
ogra_we want to put root=UUID= in place from f-k-i17:42
loolif you do nothing you end up with a kernel panic because no root= is set17:42
infinitylool: For Ubuntu, hardcoding rootfs in an initrd is wrong, period.  Distro initrds should be generic.17:42
ogra_as we always did17:42
loolrsalveti: Yup, that's valid17:42
rsalvetiin our case, it's the boot.src17:42
rsalvetiuEnv or similar17:42
infinitylool: If I move my rootfs from one disk to another, and update my kernel cmdline, it should Just Work.17:42
loolinfinity: generic distro initrds are just a NTH IMO17:42
ogra_we have them on x8617:43
ogra_and i even can use my omap4 initrds on my ac10017:43
loolI can give you higher priority features that are missing such as supporting multiple kernels17:43
infinityWe can and should have them anywhere where the bootloader can set the kernel cmdline.17:43
ogra_as long as i dont make use of modules17:43
rsalvetiinitrd should be mostly generic17:44
rsalvetiand will be generic once we have a single zimage17:44
rsalvetiadding other options based on different systems, is wrong17:44
rsalvetiunless there's  no way to support17:44
infinityrsalveti: I don't mean generic across subarches (though that will be nice when subarches go away), I mean system-independant.17:44
rsalvetiand even with that, we should have a huge warning to the user17:44
loolFolks, I agree with your goals but I'll play devil's advocate: some Debian-supported devices have limited storage for the initrd and can only deal with MODULES=dep17:44
rsalvetibecause it breaks the default logic from the initrd17:44
loolthis makes the initrd non-generic17:45
infinityAn initrd generated on my Panda booting from /dev/sdb1 should work on another Panda booting from /dev/sda2.17:45
ogra_lool, some ubuntu ones too17:45
infinitylool: That's subarch.17:45
infinitylool: Maybe the word I want here is "portable", not "generic".17:45
infinityHardcoding filesystem localtion in an initrd breaks portability.17:45
infinitylocation, too.17:45
rsalveti++17:45
loolIn any case, I'm happy to note down "We want initrd to be as generic as possible, if the boards allow"17:45
loolas a goal17:46
ogra_lool, no... "we dont want f-k to make any use of the initrd if we told it not to"17:46
ogra_with emphasis on "any"17:46
loolthis is not a feature17:46
infinityIt's an anti-feature, which is even better. :P17:46
ogra_no, its a bug :)17:46
infinityLess is more.17:47
ogra_at least the current behavior is17:47
loolplease17:47
infinityIt's not flash-kernel's job to find the root filesystem, it's the initrd's job, in a generalised fashion.  Yes, in weird corner cases where you MUST override the kernel cmdline, sure, having that option is cool.17:48
ogra_i agree that rsalveti shouldnt run f-k in a chroot but i also agree that f-k should mess with the initrd if the bootloader sets the root17:48
ogra_*shouldnt17:48
infinityBut it's by no means the default state of affairs.  We trust out kernel cmdline, generally.17:48
loolinfinity: GRUB knows my root device17:48
infinitylool: Yes, GRUB is your bootloader, and it's setting the cmdline.17:48
loolGRUB sets my kernel cmdline17:48
ogra_boot.scr and uEnv.txt do too17:48
loolyes17:48
infinitylool: f-k isn't a bootloader.17:48
loolNo, but it also is in charge of making the system bootable17:48
ogra_it is in charge of putting the bits and pieces in the right places17:49
infinitylool: And, hence, it should set bits for u-boot systems, and not hardcode the same in the initrd.17:49
ogra_and in case of f-k-i i agree its in charge of doing initial configuration17:49
loolinfinity: Yes, I agree that we could have a more specialized / more clever approach on U-Boot systems17:49
loolit's painful though17:50
infinitylool: Yes, I understand this can't work this way everywhere.  That's no excuse for not doing it right where it can work.17:50
loolbut I'd like us to move to that17:50
loolinfinity: I'm not looking for excuses here, I'm explaining where the current implementation comes from17:50
loolI'm not saying we should keep it forever like this, I'm explaining why it's currently like this17:50
looland trying to understand the use cases so that we have a design to handle them, rather than workarounds for the current limitations17:51
loolfor instance, one thing which we could do is generate boot.scr or uEnv.txt with a root= in them, and have a f-k config file with a root fs override17:51
ogra_lool, thats the plan on my side17:52
loolor we could have a setting to ignore that the root device mentioned in fstab is missing17:52
rsalvetithe two ones I wanted to fix is, please don't stop to the user in case it can't find the rootfs while updating the initramfs, and the other is please don't do anything in case we have a 'no' here :-)17:52
loolrsalveti: I don't think it's a good idea not to have a fstab though17:52
rsalvetiand at ubuntu we'll mostly just support devices with a 'no'17:52
infinitylool: Not having an fstab actually works perfectly fine, it's not required.17:52
loolrsalveti: So what's the scenario for updating the initramfs somewhere else?17:52
infinitylool: And it's certainly not required to list / in fstab.17:52
ogra_lool, having /etc/default/flash-kernel carrying the distro defaults, if f-k runs we have a detection that merged root= with this and creates a preEnv.txt17:52
rsalvetilool: so if for some reason, I install flash-kernel into a chroot, I can't update initramfs17:52
rsalvetilet's suppose I want to mount the sd card somewhere17:53
rsalvetiand change something, or even update the initrd17:53
rsalvetiI can't!17:53
loolinfinity: An initrd shouldn't be required either, yet f-k assumes one right now17:53
rsalvetibecause it'll break and warn me that it could not find the original rootfs device17:53
loolinfinity: And you're not required to run a linux kernel either17:53
ogra_rsalveti, your chroot tool should set FLASH_KERNEL_SKIP17:53
loolin fact you could be booting Windows with flash-kernel, if you spend sufficient time porting it17:53
ogra_thats why we invented it17:53
rsalvetiogra_: that's also what I added to the patch17:53
loolseriously, let's stick to the useful questions  :-)17:53
infinitylool: Erm.  "Not relying on the contents of fstab" is perfectly reasonable and useful, unlike discussing booting Windows. :P17:54
rsalvetibut still, it should't break unless it's really needed17:54
rsalvetiunless we have a 'yes'17:54
loolrsalveti: So assuming you want to update the initrd on some other device, how would you set the target device?17:54
ogra_it should no-op actually17:54
rsalvetimounting the sd card at a different machine and updating the initrd is a quite solid use case17:54
loolrsalveti: Would we need some env var to chose it?17:54
rsalvetithat the user shouldn't need to set any skip variable17:55
loolrsalveti: (For the case where some devices require a custom initrd)17:55
loolinfinity: If we're designing a production system for end-users, it should have a fstab like standard system do17:55
rsalvetilool: then it needs to be run at the device, or break to the user warning that the rootfs can't be found17:55
rsalvetibut not on all use cases17:56
rsalvetithat's what I'm saying17:56
loolthat's needed to pickup mount options, for fsck etc.17:56
rsalvetiand that's what I changed at my patch :-)17:56
infinitylool: The "standard system" doesn't rely on the fstab to set up the bootloader.17:56
infinitylool: (By standard here, I mean "x86")17:56
* infinity shrugs.17:56
loolinfinity: no but it relies on a fstab being present17:56
infinityI've been pushing back against people who want to embed fstab snippets in initrds for other reasons, I'm irked to see it happen here.17:57
loolanyway, I don't think we need to spend out energy on the least useful case of supporting fstab-less systems; it's more important to fix the use case preventing e.g. Ricardo to create images17:57
infinityThis isn't about specialised devices or doing things between subarches, those are straw men.  An initrd generated on omap4 should work on any machine with a matching kernel.17:58
loolinfinity: Keep in mind it's historical; I'm happy if we implement ways to avoid it in the future17:58
rsalvetilool: so please take my patch! :-)17:58
rsalvetiI think we should go into 2 steps here17:58
rsalvetione is making sure we're not breaking anything with the current implementaiton17:58
rsalvetiand later fixing it properly, like not depending on fstab17:59
loolI think we shouldn't mix all problems in this IRC discussion, it's also getting close to diner for me (in fact I tried to run away an hour ago, but was pulled into another chat with Zach :-)17:59
rsalvetibut for ubuntu this case is not relevant I believe, because I don't think we'll support devices that forces the rootfs argument17:59
rsalvetibut I could be wrong17:59
loolrsalveti: That's right17:59
ogra_we'll have a detection routine that sets the UUID in ubuntu17:59
loolrsalveti: Also a while ago ogra_ told me that he wanted support for initrd-less booting for Ubuntu18:00
ogra_right18:00
lool(I don't remember why that was needed, but ISTR there was a valid reason)18:00
rsalvetiwell, I believe that's supported already18:00
rsalvetiat least for 12.0418:00
ogra_we just want the option as we have on all other arches18:00
rsalvetibut yeah, it'll break the ones that needs the 'yes' here, as for that we'd need an initrd anyway18:01
loolmaybe in Ubuntu's f-k, I don't think it's the case in Debian's18:01
ogra_since i merged 3.0 its not the case in ubuntu18:01
ogra_but its planned to be changed before FF18:01
loolrsalveti: Ok; diner is ready here now, could we discuss your specific problem(s) and get over the patch together next week?18:01
rsalvetilool: sure, that's covered at the bug already, but if needed we can discuss it properly again18:02
rsalvetiif you can just reply it later on it'd help already18:02
loolrsalveti: Would it be worth a bug that l-m-c doesn't generate the fstab before making the system bootable?18:02
rsalvetinot that sure, that shouldn't be a requirement18:03
rsalvetithat's my point18:03
rsalvetiwe don't support devices that we can't control the bootloader18:03
infinityIf you're building, say, a bootable installer, you *can't* generate a valid fstab before making the image bootable.18:04
rsalvetiogra_: the only thing that we probably need to check again with current debian implementation is that they are supporting device tree already18:04
infinityYou generate the fstab at install time.  Y'know, after you've booted.18:04
rsalvetiat the 3.2 version18:04
infinity(Granted, in these cases, we hand-craft the boot bits, and ignore f-k entirely)18:04
ogra_rsalveti, well we surely dont support it yet18:05
rsalvetiso we want to make sure we try to avoid duplication here18:05
rsalvetibut we'll need to support I believe18:05
ogra_i just fell over that when trying my mx6 board (before i briked it hard following the linaro instructions)18:05
ogra_that wikipage should get a big fat warning btw18:05
rsalvetiogra_: that's why my heads up :-)18:06
rsalvetiogra_: yup =\18:06
loolinfinity: But then don't run flash-kernel in it (SKIP=yes) -- I'm fine with the SKIP use case18:07
loolthat is, I'm fine with install the flash-kernel package with SKIP=yes, and then run flash-kernel when deploying on the device to make the device bootable18:08
loolrsalveti: Hmm I think you're envisioning the installer as running flash-kernel *and* setting up u-boot files, while I envision flash-kernel to also setup the u-boot files if needed18:09
ogra_setting up should only be happening by f-k-i18:09
loologra_: Wow, how did you manage to brick your board?18:09
ogra_f-k should only update18:09
ogra_lool, by following the linaro wiki (copy/paste)18:10
ogra_https://wiki.linaro.org/Boards/MX6QSabreLite18:10
loologra_: why did it get bricked?18:10
ogra_sudo dd if=iMX6DQ_SPI_to_uSDHC3.bin of=/dev/sdx ... then boot with this in the slot ... and copy paste the 5 lines into the u-boot shell18:10
ogra_that will tell you it successfully updated and crc checked etc ... and after that the board is dead18:11
ogra_i got the windows unbrick tool but lacka proper windows that can see raw usb devices to fix it ...18:12
ogra_(my weekend homework)18:12
loologra_: but is it because the files are for another board?18:13
ogra_its a sabrelite18:14
ogra_not sure if there are many iterations of it18:14
ogra_but i wouldnt think so18:15
ogra_i even have the same u-boot prompt (not that this says much)18:15
ogra_s/have/had/18:15
GrueMasterogra_: Try Win32ImageWriter?20:06

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