[01:40] hey guys === panda is now known as Guest59538 === asac_ is now known as asac [02:58] morning [02:59] hey bud [02:59] XorA|gone: you get a chance to fill in the pandaboard survey? [02:59] prpplague: already done [02:59] XorA|gone: dandy [03:00] probably the only hope I have of getting one :-D [03:00] a chronos watch? [03:00] XorA|gone: you still haven't gotten a pandaboard? === Guest59538 is now known as panda|x201 [04:18] prpplague: nope [04:19] * XorA|gone is now starting to hate hardware designers [04:19] prpplague: thats not you BTW :D [04:19] hehe === fta` is now known as fta [09:00] flash-kernel needs changes for panda ;( [09:01] 1. 2.6.38-rc has "OMAP4 Panda board" not "OMAP4430 Panda Board" [09:01] 2. linaro kernel is 'omap' not 'omap4' flaovour === asac_ is now known as asac [09:42] hrw, you mean /proc/cpuinfo changed for panda? [10:00] yes [10:00] who knows, maybe one day there will be 4440 based panda [10:42] on a panda, how can I pass boot arguments to the kernel from u-boot without adding a new boot.scr ? I'd like to pass nosmp [10:43] easiest it to edit boot.scr [10:47] hrw: I'm afraid there are multiple versions of the kernel which can boot panda in natty and the latest flash-kernel changes don't allow this [10:48] I know [10:52] well, -omap is tricky, tres is trivial [10:52] s/tres/the rest/ [10:52] * ogra doesnt get where the letters went, i definitely typed them [10:53] I prefer to not touch flash-kernel. my changes ends in ogra's merge queue which is huge enough [10:54] hrw, i will surely fix the cpuinfo bit but would appreciate a patch to handle the case where the package is named -omap [10:54] i fear that will break NCommander's changes for generic kernel installation [10:54] Why does flash-kernel limit which kernels can boot? Shouldn't it take the latest usefully installed kernel, and perform the appropriate action? [10:55] hmm, wait, you are right, flash-kernel doesnt care for package names at all [10:55] * ogra re-checks [10:55] it cares for flavour names [10:55] it shouldnt [10:55] If it cares for flavour names, it needs to be fixed. [10:55] then kill sub_arch check [10:59] Hrm, but it ought care about subarch. [11:00] persia, it does that since NCommander added his subarch stuff [11:00] uname -r | sed -e 's/.*-//' [11:00] it doesnt care for package names but for flavour in uname [11:01] Right. [11:01] which also breaks blaze [11:02] Debian flash-kernel uses kfile to determine subarchi. [11:02] With subarch=$(echo "$kfile" | sed -e 's/.*-//') [11:04] The confusing bit is that the Debian version seems to be willing to accept kfile=/boot/vmlinuz and I'm unsure how that works with check_subarch [11:07] flash-kernel require rewrite I think [11:08] Ah, I see. if subarch="", check_subarch always returns true. [11:11] that doesnt matter [11:11] what matters is that check_subarch is completely ignored on dove omap and omap4 arches [11:12] Ah, because there are no "machine" entries. I see. [11:13] yep [11:13] the prob is that instead of guessing for a proper kernel the code just makes it ignore the check [11:13] and installs whatever kernel is available [11:14] to be proper implemented it would need more of a database and some clever algorhythms to do guesswork [11:15] Right. I see the issue now. flash-kernel is just entirely different for omap|omap4 than everything else, which is a bit confusing. [11:15] a proper implementation would be possible with devicetree db's [11:16] you could match kernel features against the actual hw [11:16] How would that work? [11:16] the kernel ships the devicetree data anyway [11:17] so you iterate over the devices and match them against the actual HW of the board on your first run or from d-i [11:18] if you find the kernel supports a) the arch and b) enough devices for booting, you write a flag [11:18] that flag is looked up on flash-kernel run [11:18] How does one define b) ? [11:19] rootfs device, serial support and basic init ... you need a db for that indeed [11:19] Why do we care about serial? How can we identify "basic init" for arbitrary boards? [11:19] you could spill a warning if not everything is supported [11:20] you cant you will always need a matching db about whats needed for init [11:20] but that way you can at least support a wider range of HW without breaking it for totally unsupported stuff [11:21] Makes porting new devices kinda annoying. I thought with devicetree, we were expecting the kernel to be able to do discovery-boot on arbitrary devices. [11:21] only for devices it has a machine file for [11:21] I thought you would be able to specify a machine file on the kernel command line. [11:21] you still have the toplevel subarch [11:22] i.e. take the touchbook ... [11:22] essentially its a beagle [11:22] and you can use a beagle kernel on it [11:22] but wont have much devices [11:22] since the devices are special and never have been pushed upstream [11:23] you will still be able to boot into serial with any std beagle kernel though [11:25] So, let's say there is a device with necessary upstream support. Should that just work? [11:26] And with the current model, what ought be done differently for the touchbook? It seems to me that it wouldn't be any different to use the machine specifier or running_subarch. [11:26] (as the subarch isn't changing) [11:28] it would be able to tell you that you only have minimal kernel support and optionally ask you about proceeding or not [11:28] So, increase the verbosity of the "Generic Subarch" warning, and ask the user to confirm the operation? [11:29] leave the user the option to not mess up his system [11:31] I can't reconcile wanting to be able to boot (perhaps with confirmation) on devices the code doesn't know about and wanting to have a comprehensive DB controlling the booting. [11:31] How would that work? [11:31] heh, well, if you run flash-kernel you already have a working system [11:32] if you would run it on a kernel that drops features you surely would want a warning [11:33] Yes, but if you run flash-kernel-installer, you may not have a working system yet. [11:34] if you run flash-kernel-installer on such a system, d-i has a bug [11:34] Huh? Why? [11:34] it shouldnt install on unsupported HW [11:34] actually the check should happen way way earlier [11:36] So, I'm a user. I copy some data I downloaded off the internet onto my card. I stick it in my device. I turn it on. [11:37] and d-i (or whgatever else) politely tells you that you in max will run that device with a serial console [11:37] At this point, there are three options. If I'm booting an alternate image, base-installer checks to make sure I'm installing an acceptable kernel. [11:37] or tell you its not supported at all [11:37] or it just works [11:37] If I'm booting a live image, there is no check. [11:37] if I'm booting a pre-installed image, there is no check. [11:37] right, we should add that to jasper [11:37] jasper should probably leverage base-installer to do that. [11:38] yes [11:38] But there's still the live image case. [11:38] its on my WI list [11:38] Heh, OK. [11:38] thats why i asked you about your tool in main ;) [11:38] How is that related? [11:38] device-detect gets me more detailed info [11:38] Than what? [11:39] archdetect (which is what base-installer uses) [11:41] Please *don't* use devicetype-detect for that. [11:41] You'd just be duplicating the test suite, etc. [11:41] but i need to match against more detailed data than archdetect can deliver [11:42] No you don't. [11:42] jasper *is* duplicating stuff [11:42] If you need more specificity, you need to get that into archdetect [11:42] thats its whole purpose [11:42] no, i dont [11:42] I thought we had a UDS session about that. [11:42] archdetect does exactly what its supposed to do [11:42] And decided that jasper should *not* duplicate stuff. [11:42] but doesnt get me enough data back [11:43] jasper *has* to duplicate casper functions [11:43] thats its whole purpose [11:43] What data do you need? [11:43] if you would check live images you would have to implement it in casper [11:43] arch *and* device [11:43] Why? [11:44] because our kernels can support more than one device [11:44] So, back to my story. [11:44] I boot into the live image. Everything is working. I press install. [11:45] and it would be clever to i.e. be able to shut off gdm if you detect you run on a beagle C4 [11:45] It installs, the install runs flash-kernel installer. It installs the kernel that I booted. [11:45] Why do I care if I'm using a device that you've never heard about? [11:45] yeah, thats no issue [11:45] It is if you care about device. [11:45] Because if you care about device, you're going to tell me it doesn't work, and maybe try not to install. [11:46] exactly [11:46] So it is an issue, which is a bug. Let's look at another way to do it that doesn't have that problem. [11:47] As I see it, we have two ways we can fail. [11:48] We fail if we write a kernel to a device which can't use it, and render it unbootable. [11:48] We fail if we refuse to work on a device on which the kernel works. [11:48] Do you see any others? [11:48] half way working devices [11:49] and devices for which this image isnt suited [11:49] (beagle C4 with a full desktop for example) [11:49] I refuse to have an opinion on whether someone wants to run a given image on a given device. That decision belongs to the user. All we can do is suggest things. [11:49] we can adjust defaults [11:50] I don't think that's being nice. [11:50] if i turn off gdm on a C4 thats helping the user and gdm is still there to be started if he wants to [11:50] Let's imagine someone has a beagle C4 that they hacked to have 1G ram and are running overclocked in liquid nitrogen bath: who are we to say they can't run normal desktop? [11:50] they can [11:51] and given they were clever enough to hack it that way i would trust them to find out how to re-renable gdm [11:51] Anyway, we're getting sidetracked. Let's ignore all the defaults for now. [11:52] So, about devices that only kinda work: is the failure if we boot our kernel, or if we don't boot our kernel? [11:52] I'll claim the failure is to not boot the kernel, as otherwise we can never collect useful bug reports. [11:52] yes, i agree [11:52] but the user needs to know about it [11:53] I've no issue with that. [11:53] if you boot a kernel that has no display support at all the user needs to know that [11:53] How can you tell the user this? There's no display... [11:54] mors code on an LED :P [11:54] *morse [11:54] You're mad! [11:55] no, indeed you are right, if we are in first boot that doesnt help [11:55] Going back something useful. [11:55] if i install a development kernel it does though [11:55] So, we've booted the first time with a downloaded install image. [11:55] right, that either boots or doesnt [11:56] As a result, we have confidence that the kernel we booted is sufficient to allow the user interaction, which implies able to boot off install media, input/output of some sort, etc. [11:56] yes [11:56] And I claim we can trust the user to have selected the appropriate input/output (serial console, KVM, etc.) for their needs. [11:57] if the user sees it booting he should, yeah [11:57] Next, we do the install steps (jasper/ubiquity/d-i). [11:57] At this point, we end up calling flash-kernel-installer [11:58] This should succeed. I've no issues with warning the user in the event that it's a device we don't know, but since we booted on that kernel, we ought to be able to install that kernel on the device. [11:59] then flash-kernel-installer should have no checks at all [11:59] Now, here's where it gets tricky. [12:00] There's N different kernels in the archive, and K different ways to mangle the kernel to make it bootable. [12:00] the point is that you need to identify the way the device boots [12:00] in which case you again need the data about the device, not the arch [12:00] So, we care about K, but not about N? [12:01] you just said yourself, if we are booted from that kernel to a point where it works, we dont need to care about N [12:02] flash-kernel will only dump the kernel in a different place [12:02] the place is the point [12:02] and that depends on the device data [12:02] OK, so for that we want the machine info from CPUinfo [12:02] right [12:02] but probably even more [12:02] i.e. beagle C4 vs XM [12:02] And the abstraction of omap_flash_kernel and dove_flash_kernel only breaks things. [12:03] cpuinfo doesnt identify the difference [12:03] devicetype-detect doesn't. [12:03] hmm, we should enhance it that way [12:03] (actually, devicetype-detect only outputs strings like "netbook", "laptop", "desktop", "phone", etc. (even less detail)) [12:04] No. The point of devicetype-detect is to add some flexibility to laptop-detect. [12:04] device-name detect would be more intresting, yes [12:04] devicename-detect has all sorts of arch-specific hackery, but for armel, just uses machine from cpuinfo. [12:05] devicename-detect is mostly interesting because it has the equivalent collection for every architecture. [12:05] So, again, that's no more information. [12:05] it should have revision data [12:05] cpuinfo has that. Devicename-detect doesn't care. [12:05] or at least a switch to show it [12:05] Parsing cpuinfo is significantly more robust. [12:06] but exhausts what flash-kernel can do atm [12:06] How do you mean? [12:07] machine=$(grep "^Hardware" /proc/cpuinfo | sed 's/Hardware\s*:\s*//') [12:07] Right. [12:07] thats all that is matched against [12:07] and not all boards ahve a revision in cpuinfo [12:07] so you cant just blindly match against it [12:08] You're saying that cpuinfo:Hardware doesn't have an identity relation to method-to-make-kernel-bootable? [12:08] not on all boards [12:09] thats the prob [12:09] "OMAP3 Beagle Board" [12:09] is returned for *all* beagles since revision A [12:10] so you can have a 128M, 256M or 512M version with or without flash etc etc [12:10] Is this a kernel bug, or is there additional information available that lets us identify the specific requirements for boot? [12:10] no, thats a design decision from the manufacturer [12:10] persia: it is not a kernel bug [12:10] A3/B7/C3 are beagleboard. they just have different revision [12:11] XM too [12:11] ogra: never played with xM [12:11] So, is there additional information available that lets us identify the specific requirements for boot? [12:11] and you will see the same prob on panda [12:11] though here its even worse since the kernel string changed between revisions [12:12] would be intresting to know what the linaro kernel says on blaze or tablet [12:12] or on the RIM tablet :) [12:12] or the new LG phone ... [12:12] So, is there additional information available that lets us identify the specific requirements for boot? [12:13] not on beagle, i think there is a sysfs file somewhere and u-boot should know it too by poking some HW info [12:13] but u-boot is gone at that point [12:14] Do we know which sysfs file? [12:14] no, i dont atm [12:14] Because we ought to be checking that to define machine in flash-kernel/flash-kernel-installer, rather than cpuinfo:hardware [12:14] and dont have either board around to check [12:14] hrw, Any ideas? [12:15] cpuinfo:hardware is ok for top level identification [12:15] cpuinfo:hardware + cpuinfo:revision are nearly always present on arm [12:15] No, it's useless, if there isn't an identity relation between that and technique-for-making-device-bootable [12:16] hrw, does that pair have an identity relation to technique-for-making-device-bootable? [12:16] persia: sorry, I didn't followed whole discussion [12:16] persia: even hw+rev will not tell you do you need uImage or zImage. [12:16] Ah, so yeah, that's not complete. [12:16] beagleboard can have u-boot or Qi or barebox or anyother bootloader [12:17] Basically, we need some way to know what method to use to make a device bootable. [12:17] Or rather, to be able to select from a set of recipes to convert a packaged kernel into whatever format/placement/etc. is required so that it is a bootable kernel. [12:18] if you stick to 'this machine is ubuntu stock config' then hw+rev should work for most I think [12:19] What do you mean by "ubuntu stock config"? [12:20] granted that device runs known bootloader [12:21] otherwise you will end in hell of providing uImage + zImage + wtfImage + .... + yabImage [12:21] rim tablet may not be so easy to get your own kernel executing on [12:22] I'm willing to pick a preferred bootloader on a per-device basis. [12:22] lilstevie, Why? [12:23] the playbook devel images are starting to show RSA 4096bit signatures [12:23] Oh, annoying bootloader. I'm happy to ignore those devices. [12:24] heh [12:24] the galaxy tab is starting to do my head in too [12:24] Most of the time someone figures out a way to work around them at some point, and only after that is anyone likely to run Ubuntu on them. [12:25] something really doesnt want to let X work on it [12:25] if it is anything like iDevices someone will need to write a replacement bootloader for it [12:25] ogra, Do you know of a case where Hardware+Revision matches two different devices with different requirements for flash-kernel? [12:26] is there a way of getting greater detail on what is screwing with Xorg than -verbose 20 [12:28] lilstevie, You might ask the folk in #ubuntu-x [12:31] persia: ok thanks I asked over there [12:36] ikepanhc, Hey. Do you happen to know if there is a unique device entry in the sysfs tree, or if our best information is Hardware+Revision from cpuinfo? [12:36] did someone stacked beagles with pandas? [12:37] do we have a tiwlan driver somewhere? [12:38] persia: you need the list of device within SoC? [12:38] ikepanhc, Rather, when booting a retail device, I'm trying to have a unique identifier for what to do with a kernel post-install so it will boot. [12:39] Sorry for the confusion around the word "device" [12:40] apachelogger, There's one in a PPA: https://launchpad.net/~tiomap-dev/+archive/release : probably needs some review if it is to be in-archive. [12:41] persia: so, I guess you need a way to identify the SoC because you want to use the same image on different platform? [12:41] hm [12:41] persia: one gets to wonder if it works with omap3 :D [12:41] ikepanhc, It's more than just SoC: for example, the Touchbook and the Beagle are both the same SoC, but different hardware. [12:41] apachelogger, Heh. No idea. [12:42] persia: ok :) [12:42] persia: ok, then for SoC, cpuinfo maybe not perfect but as I know, its the only one [12:43] persia: but for other device outside the SoC, I believe we need to probe them one by one [12:43] persia, the PPA one will go away, it has been reimplemented in .38 [12:43] ikepanhc, Thanks for the confirmation. Right now, we're using cpuinfo:Hardware, but we'll look at cpuinfo:Hardware+revision. If that's not enough, we might request more from the kernels :) [12:43] persia, touchbook is such a case as you ask for above, it is identical to beagle in all aspects [12:43] persia: some hardware designer will try to use gpio pins or ROM for identifying hardwares [12:44] persia: but there is no standard rule for this [12:44] apachelogger, Try the .38 omap3 kernel from the linux source package, and see if the wlan just works. [12:44] ikepanhc, Ah, OK. That makes it extra tricky. Thanks. [12:44] :) [12:44] well, I don't have much to try yet :D [12:44] though [12:45] I'll get an archos 101 it would seem [12:45] apachelogger: nice device [12:46] persia: i2c:50 on beagleboard will give you ID of extension board for example [12:46] a notion ink adam would still be nicer ^^ [12:47] ogra, So, I'm wondering if it's hubris to assume we can guess how to make a kernel bootable. I wonder if we wouldn't do well to catalog a set of post-install recipes, and then have the user select one (defaulting based on cpuinfo:Hardware)? [12:47] hmm, i would prefer to automate it more [12:48] I'm thinking that we have some conffile that specifies the recipe to use, and just reuse it reliably post-install. [12:49] So users would only encounter this on first install, when they are asked to confirm booting method: and it's just the confirmation for some devices, other devices would have to select an alternate method *OR* choose "none", and do it manually. [12:49] hmm, yeah [12:50] So, for the Touchbook/Beagle example, we default to Beagle, but someone with a Touchbook could select Touchbook. [12:51] Mind you, if they happen to be installing a kernel that doesn't have the support for the Touchbook, they will be unhappy, but that's a separate issue. [12:51] And once there is richer devicetree support, we could consider doing an analysis between current hardware and supported hardware, and informing the user if we believe they are installing a poor kernel for their device. [12:51] But that's not for Natty. [12:51] yep [12:52] NCommander, So, the above massively impacts your generic-subarch stuff. [12:53] Basically, we're not convinced that there is a useful relationship between detected-subarchitecture and recipe-to-make-just-installed-kernel-boot. [12:54] NCommander, Do you think we can leverage the generic-subarch spec to do as described above, or do you think we need to do something differently? [12:57] persia, doesn't ARM linux have a machine ID mechanism which had to be setup in the bootloader? [12:58] see http://www.arm.linux.org.uk/developer/machines/ [12:59] sveinse: but you can make kernel which boots on more then one machineID [13:00] sveinse, I don't believe we can see that from userspace, I'mo not convinced there's an identity relationship between that machine ID and the method by which the kernel is made bootable, and I know of devices (e.g. Sharp Netwalker) that do not have a registered unique machineID (which has caused issues with upstreaming support for that device) [13:00] Mind you, I'd be glad to be wrong :) [13:01] NCommander, Since you'll apparently encounter this in backscroll: the description of what I'd like to do starts at :47 [13:02] persia, It's probably true, though. We had a long discussion internally whether to register a public machine ID or not, since it would reveal info about a upcoming product [13:02] hrw, I think we would have cases where the same kernel would boot on multiple devices, using different recipes to make it bootable. [13:03] sveinse, I can't emphasize enough that you really want to have one registered in order to ensure support for the device can eventually go upstream. Use a funny codename, or something that otherwise is unidentifyable with any specifics. [13:04] I do embrace the Machine ID idea in all cases, because as you've said, without it you can't know reliably which HW you're on [13:05] Things like "rhino" or "snowball" or "guppy" or "spitz" don't tend to be very informative. [13:05] Even with it, it's not easy to know, but yeah :) [13:06] USB has it, PCI has it, even mobles phone all have systems for tracking the HW its running on [13:06] iirc PC has it as well via. the DMI [13:08] So you suggest that we ought to try to expose the machineID to userspace, and then claim there is an identity between machineID and recipe-for-kernel-postinstall-mangling? File bugs for devices without machineIDs? [13:10] I would love that yes, but I fear many boards/bootloaders don't set this ID properly [13:11] The machine type codename ("rhino", "snowball" etc.) is irrelevant. It's the number which should uniquely identify the HW. [13:13] And it would be nice if the machine id also could add a field for revision. Now I need to put in some custom mechanism for identifying the board revision to load the correct driver options, etc. [13:13] devicetree is better for that. [13:14] And in the absence of devicetree, a detection algorithm. [13:14] I still need to determine which HW revision I'm on. [13:15] I can probe, but that is implementation dependant. If I could get the revision along with the machine ID, it would be sufficient to inform the SW which HW its running on [13:15] I assert that you care which revision of each peripheral you have, rather than which revision of the board/retail device you have. [13:16] Which is why I claim machineID isn't the right place for that. [13:18] sorry, what do you mean? Machine ID identifies the HW, right? The HW revision number also follows the HW, so it's linked to the Machine ID [13:19] pluggable peripherals are IMHO another ballgame and needs its separate scheme for identification (like USB VID/PID) [13:19] I believe that non-pluggable peripherals ought be treated the same, for the most part. [13:19] Helps reduce duplication of code or special-casing when the same components are used on multiple boards, etc. [13:20] ah, I see. [13:20] That would require that the SoC implementors agreed upon some scheme for device ID on peripherals... [13:20] Yes. [13:21] good luck with convincing them of that [13:21] Well, rather that the board implementor happened to select components, all of which had some scheme for device ID implemented. [13:21] I second that, but doubt it will be easy to convince the mfgs [13:22] heh :) [13:23] When you port linux to a new SoC, you need to make the platform driver's list [13:23] what if you would have to put some pre-defined ID in here, a scheme like USB VID/PID? [13:23] maybe once windows arm devices start being sold [13:24] sveinse, Perhaps, but I'm thinking more about off-SoC peripherals. I'd much rather only have to identify SoC+revision than board+revision and then go hunt up a lookup table. [13:26] lilstevie, Why would that be different? The more so considering all the existing ARM devices that run various flavours of Windows? [13:27] persia, what kind of off-SoC peripherals are we talking about? this doesn't apply for USB at least [13:27] well once windows8 arm gets released that will push for uniform identification methods [13:28] sveinse, Being a software person, I probably have an incomplete picture: I've been presuming that the reason we care about per-machine stuff rather than just per-SoC stuff (with machineID) is that there exists some set of hardware that is on the board and not part of the SoC that is important for booting and initial bringup. I've no idea about the specifics. [13:29] persia, SoC+revision only identifies, well, the SoC. board+revision gives you the ability to know e.g. which gpio is connected to what. [13:29] possibility, not ability per se [13:30] Right, and it's that bit which I'd hope to have some way to identify without tracking board revisions. [13:31] I understand what you want, and I do agree, but I don't think the picture is that easy unfortunately [13:31] What complicates it? [13:32] Many SoC is capable of booting without support from other devices except memory [13:33] Take ethernet as one example: The phy may be external or internal to the phy, same applies to the MAC. You don't know that from a generic SW point of view while booting [13:33] I ment external or internal to the SoC [13:35] And these different implementation choices require different hinting to the drivers, in a way that the drivers cannot handle through discoverability? [13:36] s/discoverability/discovery/ [13:44] persia, essentially yes [13:46] I see. I don't much like it, but I think the right answer is to handle that with devicetree rather than trying to engineer something else currently, for all that means waiting a bit more. [13:46] iirc, the kernel uses the machine id to select which platform init to run. And the platform init (like arch/arm/mach-omap2/board-omap3beagle.c) sets up all the drivers and devices specific to the HW [13:47] That makes sense. [13:50] BTW: looking in the board-omap3beagle.c I find a function named omap3_beagle_init_rev() which actually probes some gpio pins for HW revision. -- Because the designers of the beagle board decided to place the HW revision scheme that way [13:52] When I come to think about it, it wouldn't help to have the HW revision number along the machineID from the bootloader, beacuse its "just" software. Then the bootloader would have to do some HW probing anyways, and then you're back were we started [13:53] oh how time flies... [13:54] * sveinse *leaving* [14:22] persia: efikamx smarttop support on its way to linaro-image-tools https://code.launchpad.net/~lool/linaro-image-tools/efikamx/+merge/50151 [14:41] lool, Cool. === 16WAAHT8Q is now known as ian_brasil [14:43] lool, I notice overo listed there as well. Is that working cleanly with the linaro builds? [14:44] persia: It is, albeit there is a kernel issue which has a patch [14:44] I think it's hdmi output or so [14:44] Your merge doesn't seem to have EfikamxConfig: that was already merged? [14:45] LP #660811 [14:45] Launchpad bug 660811 in linux "Display is not working on Gumstix Overo" [Undecided,Fix released] https://launchpad.net/bugs/660811 [14:45] persia: +class EfikamxConfig(Mx5Config): [14:45] 28 + uboot_name = 'efikamx' [14:45] +class EfikamxConfig(Mx5Config): [14:45] gah [14:45] persia: I see it [14:46] Am I reading 660811 correctly as fixed-in-maverick-open-in-natty? [14:48] Right. That's just me not understanding linaro-image-tools. Sorry. [14:51] persia: 660811 > yes [14:51] albeit I think the bug tasks are bogus [14:53] What's wrong with the bug tasks? [14:55] it says linux [14:55] I thought that omap3 kernels were produced by the linux source package for both maverick and natty. [14:58] right [14:58] just not for lucid [15:00] Yeah, but I think Andy is commenting for the Linaro kernel [15:01] Ah, so maybe it needs some linux-linaro tasks as well? [15:01] But we ought get that patch into linux anyway: regressions are bad. [15:02] I've checked all trees and added missing tasks [15:02] the linux task is still needed [15:06] hrw, just uploaded a little present for you ;) [15:12] ogra: flash-kernel finally? [15:12] :) [15:22] Bah I've just noticed that Ubuntu's flash-kernel doesn't remove tmpfiles it creates and has some insecure constructs like usage of tempfile + suffix [15:22] And needs a merge with upstream :) [15:24] upstream only adds unused arches [15:24] else i would have done it [15:25] There's some code-safety and syntax improvements as well. [15:25] ogra: what did you do of the check_subarch part in the end? [15:25] lool, have you seen initramfs-tools upstreams comment on the bug i files about create vs update ? he claims that the kernel should ship the scripts that call update-initramfs and flash-kernel [15:25] lool, nothing yet [15:25] i need the right data first [15:26] * ogra hasnt run .38 yet [15:26] lool, and i have no real idea what to do about -omap vs -omap4 atm [15:27] Could we just allow *both* "omap" and "omap4" for omap4 hardware? [15:27] its about the uname check [15:27] Or does this go back to the earlier discussion, and I should ignore it this time? [15:28] not sure [15:28] its quick fix vs proper implementation i think [15:28] the latter is as you stated not natty [15:28] What? [15:28] I said that doing devicetree mapping of capabilities was not-natty. [15:28] there are three subarch concepts in Ubuntu's flash-kernel (and two in Debian's) [15:29] lool, yes, the third one is NCommander's subarch detection [15:29] I don't see any reason not to do selectable-recipe for natty, as the generic-subarch spec is still pending, and I no longer believe that solves the actual problem it was intended to solve. [15:29] which as i stated above in the discussion just a way of ignoring subarch detection and spilling a message on certain arches [15:29] one is uname -r (running_subarch), Ubuntu-only, one is the sufix of the vmlinuz which we're about to install, and the third one is the subarch name which we use for the platform [15:30] then there are four, not three [15:30] What? Where is the fourth? [15:30] my personal preference would be to never use uname, and to change flash-kernel to create a flash-kernel.conf on install or upgrades which documents the kernel which one prefers to run [15:31] Where are the logs for this channel located? [15:31] persia, two debian ones, plus ubuntus vmlinuz plus ignoring arch check completely on dove, omap and omap4 [15:31] I'd also like to add selectable-flash-recipe to that conffile, and get away from the tight integration of machine and flash-recipe. [15:32] sveinse: usually irclogs.ubuntu.com is the place for ubuntu chans [15:32] ogra, No. $running_subarch is the one that is used to ignore things. It's not a fourth one. [15:32] lool, agreed [15:33] persia: Yeah; I'm not sure how much should be configurable, but I think there should be a recipe or "method" concept for installign the kernel, e.g. NAND vs MMC [15:33] persia: I've actually started work on cleaning up flash-kernel upstream; I'm not at the method part yet, but I made good progress on the rest [15:34] In the earlier discussion, we use the Touchbook vs. the Beagle as an example, where someone might want to have different install recipes for the same reported hardware. [15:35] Obviously, we should default to the sensible recipe for the detected hardware, but in cases where it's uncertain, or cases where there are choices, or cases where the hardware is unknown at release time (but the user knows a supplied recipe works), the user can still do something useful. [15:36] Yeah [15:37] flash-kernel basically needs extension and configuration points; it's just hard to get these right and not end up with a very painful to maintain system [15:37] or risking to break systems [15:37] * ogra is eager to see functions and hw database separated as a first step [15:38] that's what I'm working on ATM [15:38] it's really a lot of work though [15:38] cool ! [15:38] yeah [15:38] lool, still in bash ? [15:38] well, in POSIX shell [15:38] hopefully [15:38] janimo: I don't really mind :-) [15:38] there are some painful points I admit [15:39] * ogra prefers shell [15:39] but I always liked shell, I'm a bit of a masochist [15:39] well it i s great for the seemless integration with the OS and running commands, but it is not a sane programming language [15:39] part of the reason why flash-kernel is spaghetti [15:39] I tend to disagree [15:39] Debian's flash-kernel is actually readable, just has a lot of code duplication [15:40] and I would hope my reworked code is even more readable [15:40] ubuntu isnt so much [15:40] thats the issue ... we added on top of debians and not always in the most appropriate way [15:43] janimo: Another quite sad choice is to intend everything with a tab; it makes it really hard to read when code gets nested a bit :-/ [15:55] lool: just adjust your tabstop to 2 or something; its why I prefer tabs to spaces [15:56] NCommander, So, about generic subarch and the lack of apparent relationship between SoC and flashing-recipe. What's your opinion? [15:57] persia: I'm not quite sure I follow [15:58] So, based on the set of devices seen, there seems to be no useful relationship between the SoC and the recipe required to ensure that the available kernel is used for the next boot. [15:59] NCommander, did you read backlog of the last hours ? [15:59] And you're working on this generic-subarch spec, which seems to focus on providing a good installation experience regardless of whether the device is one that happens to be certified in some way. [15:59] (if not, i would suggest to do so) [15:59] ogra: I didn, but still confused [16:00] persia: I disagree, the install scripts should be smart enough to detect what's present and properly install based on that [16:01] What sort of detection do you imagine? [16:03] Specifically, I don't see how we can determine the bootloader configuration in a safe or repeatable manner, especially for devices where we aren't installing the bootloader. [16:03] persia: on devices we support, we assume the bootloader is uboot, and its installed to the SD card or NAND [16:04] its straightforward to check if the bootloader is there, and if so, write boot files [16:04] So, why does ogra claim this breaks some devices? [16:04] it breaks the blaze [16:05] ogra: ?, for blaze we simply write to SD card, same as panda [16:05] doesnt work with emmc [16:05] the device names are different [16:05] you have assigned the bug, read it [16:06] ogra: we don't support using the eMMC, nor have we ever. The block device is written out by flash-kernel-installer into a confiugration file [16:06] * ogra sighs [16:08] ogra: am I wrong about supportng the eMMC for booting? [16:08] it should not break at least,. please read the bug [16:08] ogra: care to provide a link? [16:08] it think it was discussed teher since maverick [16:11] * GrueMaster looks [16:11] ogra: and my work mostly beeon of dove until this cycle, and then on panda; I don't even have a blaze; I have to borrow GrueMaster's [16:12] I think it is Bug #626749 [16:12] Launchpad bug 626749 in flash-kernel "flash-kernel tries to use MTD devices on OMAP4 when no flash-kernel.conf exists" [Medium,Confirmed] https://launchpad.net/bugs/626749 [16:12] So, specifics aside, can we not imagine a device that should just work that doesn't have an identical recipe to make a kernel boot? [16:13] * NCommander can't [16:13] What about Touchbook & Beagle, discussed earlier. [16:14] Apparently they have the same cpuinfo [16:14] persia: The hard part about this is platform availability. [16:14] GrueMaster, Why? [16:14] If you don't have one, makes it hard to support. [16:14] persia: already handled by existing code. If the bootloader is on an SD card already, flash-kernel writes to the SD card, else it tries to write to NAND [16:15] the bug GrueMaster references is simply the code tries to write to NAND unconditionally if theres no configuration info [16:15] which is a bug [16:15] NCommander: That assumes /etc/flash-kernel.conf. [16:15] GrueMaster: which exists if somene installed with one of our images [16:15] GrueMaster, Why? The point of a flexible architecture is that it allows one to support anything that doesn't work (and accept fixes to tune that). An inflexible model only supports that which was tested and verified. [16:16] persia: I was referring to the current code, which is not flexible. [16:17] Well, it's worse than that: parts of it are inflexible, and other parts simply assume a recipe works because it's "dove" or "omap" or "omap4" [16:18] persia, beagle C vs XM [16:18] ogra, What's the difference in recipe for those? [16:18] stop using the touchbook example ;) [16:18] NAND vs SD boot [16:18] persia: Beagle C has nand, XM doesn't. [16:18] identical cpuinfo [16:18] Physically. [16:18] ogra: same rev too? [16:18] Better example. [16:19] ogra: GrueMaster: so you detect for NAND and use it if its available if something isn't set in flash-kernel.conf [16:19] NCommander: how you check for nand? [16:19] NCommander: /proc/mtd? [16:20] Even our current images are broken wrt beagle C. If the Beagle has had Lucid installed (or anything else that used nand), our current images will fail as they are set to boot from sd only. [16:20] hrw: yeah and the device in /dev/* [16:20] NCommander: "modprobe mtdram" and your test will fail [16:20] Indeed. [16:21] Alternately, modprobe nandsim [16:22] Will that work in the case of Tegra? [16:22] Tegra will hit the hardcoded path [16:22] Or other systems where the user may not want to kill nand? [16:23] persia: so you think then generic subarch should die and shelf it as a spec? [16:24] Well, I'm not sure about that. [16:24] The more I think about available devices, the more I think that the set of recipes doesn't map well to the set of subarchitectures. [16:24] persia: you've just made a very convincing case that its not going to have a wide swatch of support [16:24] persia: right [16:25] And so while I'm hugely in favour of the goal of making it just work on arbitrary devices, I wonder if splitting by subarch is the right way to do that. [16:25] NCommander, it shouldnt die but needs more detailed testing for devices [16:25] So I guess I wonder if you'd be interested in doing some sort of recipe-mapping model rather than a subarch-mapping model in your work for natty. [16:26] pI dropped out of Mileage Plus years ago after flying 300,00 revenue miles as a 1k or at the mid tier level over 5 years ago.Moved all my business to AA/ One World where I am far happier with fairness on redemption. [16:26] I would like to go back to UA so I am monitoring the situation but stll feel UA is too stingy with seats to justify switching back.But if the Starnet blocking scenario is over they may have lifted the largest issue off the platform [16:26] I will be monitoring the situation .Thanks for the heads up all [16:26] argh [16:26] I really need to hack Xorg.conf and remove this stupid pasting behavior [16:26] ?? [16:27] persia: a lot of boards can't be easily told apart, Beagle and BeagleXM both identify themselves as Beageboard in /proc/cpuinfo [16:27] heh, yeah, you should [16:27] NCommander, Right, and I've come to believe that this is even more widely true in retail devices based on various platforms. [16:27] NCommander, right, so we need to find a better solution on top of the cpuinfo [16:27] cpuinfo is good but not enough [16:28] So, because we can't tell them apart, we should provide a menu of recipes, and default best we can. [16:28] And leave the rest for documentation. [16:28] persia: ugh, that's fugly, and adds a lot of complexity to user installs [16:28] For most users, it should be pressing enter once for confirmation. [16:29] persia: for most users, they won't know the difference [16:29] For a few users, it may be more complicated, but the alternative is to force them to hack things together manually. [16:29] Maybe using a separate conf file would be better. That way, it can be more easily updated without package rebuilding. [16:29] If we can't do it automatically, then I rather not do it [16:29] i would prefer better automation before we resort to interaction [16:29] but its a good last resort [16:29] And we already have too many complaints about stuff that we know is broken because someone didn't perform a regular install. [16:29] By conf file, I mean a file with a list of supported platforms that can be easily updated. [16:30] I'm happy with something like debconf-priority-low: adjustable, but not shown by default. [16:32] looks like you will end with database keeping lot of scripts which will check which exactly hardware it is run on [16:33] like "if cpuinfo=beagleboard and amount-of-ram=256M then Cx elseif amount-of-ram=512M and lsusb |grep ID-OF-SMSC then beaglexm else ax/bx" [16:33] Why? [16:34] I imagine having install-to-NAND, install-to-SD, etc. Just a few recipes. Then, some routine that picks a reasonable recipe. [16:34] The biggest problem is system identification. cpuinfo just isn't always enough. [16:35] it is enough as a base but not for details [16:36] let me get this right: The problem is how to write the kernel image into NAND or MMC (FAT partition) or similar, right? [16:36] Kinda. [16:36] More of how to detect which to use. [16:37] There's a script (flash-kernel) that gets called when a new kernel is installed. This script needs to do something to convert the unpacked kernel .deb into something that is being booted on the device. [16:39] interesting and challenging. I've made a manual post-kernel-install script to move it to the FAT partition (use mmc boot) which surely isn't an elegant solution [16:41] * sveinse wish the HW bootloader in the SoC could read sector 0 from NAND or MMC and behave like a PC bootloader. Maybe. [16:42] sveinse, Take a look at the flash-kernel package. Both flash-kernel and debian/flash-kernel-installer-postinst are interesting. [16:44] * sveinse is reinventing the wheel... [16:45] Can't have that :) [16:47] more wheels !!! [16:47] hrw, amount-of-ram might not be the best, there's "white label" c4 boards with 512Mb. ;) [16:47] ~/cr [16:47] rcn-ee_at_work: nice [16:49] I'm a little curious about bug 705689. Does anyone knows if this will result in a patch & update for armel-cross 4.5 ? [16:49] Launchpad bug 705689 in gcc-4.5 "QT applications crash with segfault error on armel when QT is built with gcc 4.5 on natty" [High,Confirmed] https://launchpad.net/bugs/705689 [16:49] sveinse: It's relatively close to what happens, problem is that every SoC needs a different first piece of code to run, to setup the DDR for instance [16:49] hrw, you can get it from dmesg, since the gpio detect is printed out.. [16:50] hrw, dmesg | grep "Beagle Rev:" [16:50] rcn-ee_at_work: how you check dmesg on machine which works for 2 months and have /var/log/dmesg removed? [16:51] lool, the FAT load from MMC is a HW bootloader implementation in OMAP, iirc [16:51] hrw, not easy.. userspace progam to read all 3 gpio pins? [16:53] hrw, if you know your on a beagle... looks at "cat /proc/cpuinfo" the xM is "CPU variant : 0x3" the Bx/Cx should be "CPU variant : 0x1" [16:53] sveinse: That's correct, but DDR isn't setup at this point; it's setup by this piece loaded from MMC ("MLO"); the ROM could technically set it up if it was padded in some special ways, but that's a different config block from SoC to SoC [16:53] sveinse: So concretely, you have different constraints on the data / location from different SoCs [16:53] You could arrange for writing the first sectors on a lot of SoCs though [16:54] lool: WOuld it make sense for MLO to setup an area in memory that could be read by userspace similar to dmidecode? [16:55] hrw, yeap it is.. http://pastebin.com/5WP3TSiK (comparsion of c4/xM) [16:57] Something like dmidecode would be nice. I wish all architectures had it. [16:57] thats easy [16:58] just add a BIOS to all arches :) [16:58] well, the dmi info is actually in concept the same as the machine id we talked about earlier [16:58] GrueMaster: what kind of data do you intend to provide? [16:58] I think UEFI has provisions to pass various data [16:58] lool, device lists ? [16:58] rcn-ee_at_work: thx [16:59] Well, concerning tables of devices, we're leaning towards device tree [16:59] rsalveti: around? [16:59] lool, i think devicetree will solve that anyway [16:59] Basic hardware info, similar to what dmidecode provides. Like what busses are available, what the system is, etc. [16:59] If/when it appears. [16:59] ogra: I have x86 which does not use efi and can be booted even without bios [16:59] lool, Will I be able to get stuff like Manufacturer, Product Name, etc. from devicetree? [16:59] I have been hearing about devicetree since 2009. [16:59] hrw, pfft, prototypes [17:00] hrw, btw, my booking is finally confirmed i'll arrive on sunday evening [17:00] ogra: no, on-the-shelf hardware [17:00] ogra: with coreboot [17:00] persia: I'm not sure about these specific things; it's mainly to describe the hardware layout, but I'm pretty sure it would be easy to have the information [17:01] hrw, how do you remove the BIOS from that ? [17:01] In all cases, having dmiinfo or devicetree, will imply that the MLO or bootloader must setup the information uniquely for each HW and revision. [17:01] hrw: The difference there is all x86 cpu's fetch from the same location for booting. Not so with arm. [17:01] sveinse: Correct, or the firmware [17:01] ogra: coreboot ;D [17:02] GrueMaster: ah but you define booting as after the BIOS [17:02] lool, OK. That's the information I wanted from dmidecode, but I don't really care where I get it. [17:02] ogra: coreboot can load filo or grub as payload without any bios legacy stuff [17:02] hrw, i know coreboot, i worked with it in the past [17:02] lool: No I don't. I define booting as after the cpu is initialized ant goes external to fetch code. [17:02] hrw, still there is a BIOS coming up on the boards i used it [17:03] unless you remove the eprom probably [17:03] yes, so in that respect, this bootloader or firmware which prepares the machine for kernel boot, is a BIOS per definition. It could provide the information needed for flash-kernel [17:03] Or flash coreboot into the eeprom [17:04] sveinse, The complicated thing is that the ARM community doesn't tend to favour two-stage bootloaders, but wants an all-in-one solution, including both full init *AND* kernel load. [17:04] Some devices support OpenFirmware, and some second-stage bootloaders were ported in the past, but nothing recent has separated stages. [17:05] persia, I have yet too see a SoC device booting directly into linux kernel. All I've encountered so far have two stage boots [17:06] As lool said, the DDR needs to be setup and the kernel command line, and so on by the bootloader [17:07] sveinse: iirc on omap3 you can add header to kernel image which will setup ddr etc (which xloader does normally) and boot [17:07] sveinse: kernel cmdline needs to be hardcoded in kernel [17:07] only on 3530, not ? [17:07] it is? hmm. I need to check my sources... [17:08] sveinse, I heard of some demos about it, but you mean "two-stage" to be bootloader/kernel. When I talk about "two-stage" bootloaders, I'm talking about the sort of thing we see for x86, powerpc, sparc, etc. where one uses one codebase to init, launches to another codebase for kernel selection, and then loads the kernel. [17:08] ah, then I agree [17:09] bios -> grub -> kernel or chiprom -> xloader -> uboot -> kernel... [17:09] So, EFI/grub or OF/yaboot, etc. (although I think we'll switch to OF/grub for natty powerpc, but I may be mistaken) [17:09] persia: On x86 images, we currently have 3 stages: bios, bootloader (lilo, grub, etc), kernel. [17:09] It is possible for x86 to have one: Linux-bios. [17:09] anyway it is time for me [17:09] In fact when doing OMAP MMC boot its 3 stages as well: MLO -> Uboot -> Kernel [17:10] sveinse: mlo is read by inchip code [17:10] On SOC's, most fetch from an internal rom on the SOC, then fetch from there. [17:10] hrw, do you know anything about the 4.5 gcc bug in respect of Qt? [17:10] sveinse, Indeed. OMAP is the closest we have to sanity, but it's still not quite there: lots of messiness in MLO, and Uboot could be doing a lot more than it does in that context. [17:10] sveinse: no [17:10] * hrw -> out [17:10] have a nice rest of day people [17:11] Actually omap/omap4 is 4 stage by that logic: SoC ROM, MLO, u-boot, kernel. [17:12] The SoC ROM is stage-0, by my nomenclature. [17:12] x86 BIOS would be stage-1 [17:12] Ok, in binary you are correct. [17:12] silo would be stage-2 [17:12] :p [17:12] We are (for boottime reasons) considering to skip the MLO -> uboot part of the boot. I.e. let the MLO image load the kernel itself with a small init function for setting up the magic things like DDR & co [17:12] X86 always fetches from CS:IP F000:FFF0 [17:13] Or the end of 1M. [17:13] uboot is not efficient if you are waiting for it :D [17:16] GrueMaster: If ARM always fetched from the same addr, would that help us in any way? [17:16] Might. [17:17] I don't know much about arm architecture, but I believe it may already. Just most SoC vendors put rom code there on die. [17:17] Which can't be changed. [17:18] Because the BIOS or whatever you name it, will always contain the board specific initialization which is the same that we do in our bootloaders [17:18] With x86, it is the flash-rom chip on most systems. [17:18] So the question is more to agree upon some dmi-like struct that needs to be setup prior to kerel boot [17:18] http://en.wikipedia.org/wiki/Booting has some interesting details on this. [17:19] sveinse: right. That would need to be done by MLO/u-boot. [17:19] yes, [17:19] Or the kernel if it is used directly (which may happen in the future). [17:19] In concept, arm has one (1) dmi-like information: MachineID. Period [17:21] As I said, I am new to the architecture, but on x86, the bios loads and probes the platform for "extra" devices that aren't hardcoded into the bios already. [17:21] Things like pci devices, drives, memory boards, etc. [17:22] Out of interest: How is that done? (I dont mean PCI and USB devices, because they have well defined ID's attached to them) [17:23] Each vendor uses core bios code from one of the bios vendors (ami, phoenix, etc) and adds board specific information to it. [17:24] So in the case of arm, MLO would be board specific. u-boot & kernel not so much as they should get the info they need from MLO. [17:24] and how is this any different from arm's machineid ? [17:25] I'd have to look, but the machine ID is very limited in what it contains. [17:25] Does it change between Beagle C4 and other devices using the same CPU? [17:26] Yes, that I agree. You'd need some database to provide the extra information, like how to update the kernel [17:26] sveinse, In the x86 world, one encodes the map of devices and layout in code, following one of three known formats (mostly concurrrently two with modern devices). [17:26] And it does not support extra information, like revision number. I would love to see that feature added. And call it dmi info [17:27] Personally, I prefer the OF model, where one has board-specific code that loads, which loads a datafile from a known location, and uses that to determine what to do (and can pass the data to the kernel). The ARM devicetree stuff mirrors that, except it doesn't mandate OF (unfortunately) [17:28] OF? Do you have any references to that? [17:28] OpenFirmware [17:28] You can look at the openhackware package for an example implementation: that one targets qemu's powerpc. [17:29] I just checked /proc/cpuinfo on my Motorola Droid and it is almost identical to Beagle C4. The only difference is the Hardware and Revision lines. [17:30] That's expected: Hardware and Revision are the lines that are checked for all device-specific stuff. [17:30] Oh, and bogomips. (for some reason my droid is running at 249 - odd). [17:31] I think we're talking about the same. A datafile at some specific location could provide a dmi-info like structure with a devicetree or similar. I would shurely like to have such a featureset added [17:31] I don't know the complete set, but there was once a port of OF for Marvell's MMP (PXA688-based) as prior work on ARM. [17:31] Note that as much as I like the model, I can't recommend OF for use on ARM: I simply have never used OF on ARM, nor have I heard stories about anyone working on a port to new hardware. [17:32] GrueMaster, bogomips are intentionally bogus: ignore those. [17:32] persia: Checking Hardware and Revision isn't enough. In the example of Beagle C4 & BeagleXM, they are the same. [17:32] ok [17:32] GrueMaster, the droid has pm scaling working, hence the low bogomips.. [17:32] the revision in /proc/cpuinfo only gives the SoC revision not the board's, iirc [17:33] sveinse, it's a single case, on the "beagle" you can use /proc/cpuinfo to determine weither it's a Bx/Cx series or xM... [17:34] GrueMaster, Right, which is why I 1) want to separate flash-kernel recipe from machine type (cpuinfo:Hardware), and 2) was asking about Manufacturer and Product strings from devicetree [17:37] GrueMaster, you need to check the "varient' and "revision" to differentiate the beagle's... http://pastebin.com/5WP3TSiK [17:38] Yes, I know. [17:39] rcn-ee_at_work: That is for the cpu only, right? The Hardare lines are board specific? [17:39] yeap, cpu only... the hardware line comes from the board-omap3beagle.c file.. [17:40] gpio pin probed, right? [17:41] no, the cat /proc/cpuinfo is pure processor.. the gpio pin probed is just dumped to dmesg on bootup.. [17:41] anyone know if andy green is on irc? [17:44] rcn-ee_at_work: So there is no way for software to detect hardware differences then? [17:46] GrueMaster, well we can detect an xM board vs a bx/cx board.. but to seperate a C1/2/3 vs a C4 we need to read the gpio pins.. [17:47] (like what is already done in the board-omap3beagle.c ..) [17:49] i don't know if it would be excepted, but could we modify the "hardware" line in /proc/cpuinfo based on gpio pin setup we have? [17:51] prpplague: He is agreen on IRC an hangs on #linaro from time to time, but not all the time [17:51] prpplague: He is on ATM [17:51] lool: thanks found him [17:53] rcn-ee_at_work: My ideal goal would be to have an arch specific kernel (armv7) that could detect what it was on and move forward without having to be specificly compiled for beagle?Panda/Blaze/Dove/imx51/etc. [17:53] Having MLO with the proper info could allow that. [17:53] GrueMaster, linaro is working on such a beast. [17:54] Cool. [17:55] GrueMaster, actually right now you can boot the same kernel on all the mailine omap3/4 boards... so either mlo/u-boot would have to hint on omap vs imx51.. [17:58] The next step would be to have some way for userspace to get more info on the platform, similar to dmidecode. [17:58] devicetree [17:59] And I think linux-linaro-omap already has the necessary bits to boot on all omap3/4 devices. [17:59] ok, then all that needs to happen is for it to fall in my lap for rigorous testing. :P [18:00] Well, you can grab linux-linaro-omap today, and see if that works. [18:00] The devicetree stuff seems to still be future. [18:00] (but getting *very* close) [18:01] since both the imx51 and omap are pretty well supported in mainline, if you can get both to atleast build in one uImage.. it might work.. [18:02] If I get bored, I might see if I can fire up my babbage with a more recent kernel/image. if... [18:02] :P [18:04] for kicks.. what's the best supported imx51 target in mainline right now? [18:05] I think it is the Efika Netbook. Apparently linaro got a bunch. I missed out. :( [18:06] * GrueMaster never gets cool hardware, only semi-functional development systems [18:09] They are available retail. [18:09] * persia has purchased any number of retail ARM devices now [18:09] Not even that expensive, as laptops go, although you should probably only get one if you plan to actually use it for something other than idle speculation. [18:10] rcn-ee, mainline, best supported is still the Babbage for imx51. [18:53] What is the relationship between the ubuntu native (and armel-cross) compiler and the one provided by linaro? [18:53] they are the same [18:53] linaro maintains the arm toolchain in ubuntu [18:54] ah, ok. thanks [18:56] I see both 4.4 and 4.5 is available from armel-cross. Which to use. I.e. why would I consider using 4.4 over the 4.5? [18:57] sveinse: Ubuntu gcc-4.x includes the Linaro patchset + Ubuntu patches; cross compilers are built from the exact same sources, but less frequently [18:59] We're having some issues with compiling Qt (QWS not X11), and it seems surprisingly similar to bug 705689. So my question is what do I lose by downgrading the (cross)compiler to 4.4 [18:59] Launchpad bug 705689 in gcc-4.5 "QT applications crash with segfault error on armel when QT is built with gcc 4.5 on natty" [High,Confirmed] https://launchpad.net/bugs/705689 [18:59] sveinse: sometimes we have multiple versions because the new one is not stable enough, or because we still need the old one for some time [18:59] sveinse: well we're not developping 4.4 any further in Linaro [18:59] sveinse: and it will eventually go away [18:59] Is there a wiki page describing how the OMAP4 server image is meant to be installed? [18:59] ah, that's an answer, thanks [19:00] Hey there lool [19:01] GrueMaster, I discovered why the kernel recommends "grub" when the kernel fails to install: it's a string in debian.master/rules.d/armel.mk : turns out it doesn't mean anything. Dunno if it's worth fixing. [19:01] hey martyn [19:03] martyn, So, there's two answers to that. 1) there's work on a minimal jasper-based image, which you don't really "install", as such. 2) someone could work on debian-installer and add more omap4 support for some into-real-target install. [19:03] Err, rather, *if* there existed a wiki page about it, it would have two answers ... [19:03] * persia believes such a page doesn't currently exist [19:03] i.e. "don't bother, not even ready for alpha" [19:03] "use rootstock" [19:03] Um, no. [19:04] The main issue is that nobody is working on it. If you want to do it, it's not that hard to get working. [19:04] I know, but right this second, I'm teaching someone how to get a system image up .. more about expediency [19:05] The big obstacle is that most folk with OMAP4 have pandas, and pandas don't have flash: they just boot off the SD card. As a result, there's no useful answer to how one should "flash" a kernel and boot configuration. [19:05] If you just want a system image, just write an SD card, boot it, and maybe trim the installed packages. That's the expedient way. [19:06] Post-boot, migrate /var and /srv to some real storage device, and reboot. [19:06] Heh.. I'm trying for Versatile Express [19:06] so the image has nothing bootable for me [19:06] interesting. [19:06] martyn, If you want to use non-archive kernels, rootstock is your best option. When are you uploading a kernel to the archive? [19:06] not just a versatile express either .. but one that's been chopped up and reformed into a Calxeda system [19:07] persia: Not for a while yet .. probably not till .39 [19:07] So, natty+1? [19:07] better answer would be 'once we have silicon in house' [19:07] heh. [19:07] because before then, it's all based on simulation, fpga, hard engineering, and good intentions [19:08] I've heard some murmurs about folk doing armel servers, so there's a chance that it's just a matter of uploading the kernel and making a few patches. If nobody does one, you may have to tweak a few more things. === ian_brasil__ is now known as ian_brasil === TheUni_ is now known as TheUni [21:53] apachelogger, thumb2 support is presumed for every Ubuntu armel device [21:58] persia: ok [21:58] NCommander: I get segfaults for every kde app all within Qt, ScottK suggests that you said it is a gcc bug? [21:58] on the n900 that is [21:59] apachelogger: no, thats NEON built into Qt by accident. Will be fixed when 4.7.2 is uploaded [22:00] NCommander: the n900 cpu supports neon though? [22:00] apachelogger: oh ... hrm ... it does, doesn't it [22:00] it did with maverick ^^ [22:01] * apachelogger installs libqt4-dbg [22:01] apachelogger: it may be related to the recent precompiled header bug we found. [22:01] That's the one I was referring to I think. [22:02] hey ogra (or anyone).. what secret magic is done to make the boot partition on an sd card not automatically mount under /media? And is it possible to reverse this? [22:04] robclark, I believe it's just a hidden partition. [22:04] Why do you want it mounted? [22:04] how does one make a partition hidden/unhidden? [22:04] robclark, /sbin/mkdosfs -n "SERVICEV001" -F 32 ${ROOTDEV}1 [22:04] fdisk :) [22:04] just rename ti [22:04] *it [22:04] ok, so just based on the partition name [22:04] yep [22:05] it is more convenient to copy over new kernels when I'm mucking with stuff it it mounts itself ;-) [22:05] note that you will have it permanently on your desktop once renamed [22:05] no prob [22:05] that is what I want [22:05] k [22:05] thx :-) [22:05] ogra, It's not a hidden partition? Why not? [22:05] persia, the naming hides it [22:05] udev ignores it completely that way [22:06] we dont want to hide it from mount but prevent automounting [22:06] It seems to me that you're using a hack that accidentally works rather than using the partition table as it was designed. [22:08] GrueMaster: what bug is that? [22:08] persia: Actually, this is a predefined use case in udev. It is mainly to hide pre-installed partitions. [22:09] GrueMaster, Doesn't make me like it any more, but yeah, it's because of a common naming scheme for certain OEM restore partitions. [22:10] apachelogger: Bug 705689 [22:10] Launchpad bug 705689 in gcc-4.5 "QT applications crash with segfault error on armel when QT is built with gcc 4.5 on natty" [High,Confirmed] https://launchpad.net/bugs/705689 [22:10] GrueMaster: 4:4.7.1-0ubuntu9 ought to be built agianst 4.4 though [22:10] oh [22:11] nevermind me, apparently I have ubuntu7 :O [22:11] heh [22:12] You had me doing a double-take. Had to check my panda. [22:46] lool, does: check_subarch "imx51" look ok for the efika stuff ? [23:45] ogra: Dunno [23:46] ogra: I don't know Ubuntu's flash-kernel [23:47] GrueMaster: ubuntu9 does not seem to fix the issue though :S [23:52] apachelogger, Everything linked against qt4-x11 is still segfaulting apparently randomly? [23:52] I wouldn't say random... it *always* segfaults [23:52] gdb says it is in kdeui though ... getting rid of that and trying again now [23:54] lool, well, you complained at the bug [23:56] righto [23:56] persia: something is fishy with current qt combined with kdelibs [23:56] From what I could tell from the bug before, it seemed that the segfault happened just about anywhere it could, because of being caused by an inline macro definition. What I'm wondering is if everything linked against qt4-x11 that built during the time it was built with gcc-4.5 needs to be rebuilt. [23:57] persia: a rebuild could indeed fix this, as some kdelibs stuff is sort of used as plugin for Qt (e.g. fileopen dialogs) [23:57] without kdelibs unity-2d starts without segfault [23:58] ogra: well I complained because I saw a commented out line, and suggested either fixing it to be consistent (no idea which value it should have though), or removing it entirely [23:58] + #check_subarch $running_subarch [23:58] Was unity-2d rebuilt against ubuntu9? [23:59] yep [23:59] ogra: does that make sense now? [23:59] persia: ubuntu9 was uploaded feb 7, unity-2d feb 15 [23:59] ogra: I just looked at the diff, I don't know how running_subarch should be handled [23:59] Well, that's annoying. On the bright side, most of the base of KDE FTBFS anyway currently, so it needs to be rebuilt. [23:59] hmm