=== ScriptRipper_ is now known as ScriptRipper [10:31] Oh we have two ARM emulators for FSL devices in the archive outside of Qemu [10:31] softgun can emulate imx21 and can run redboot [10:37] even the imx51 one ? [10:38] that would be perfect for setting up the images [10:51] No, just imx21 [13:37] Hmm /me just realized something really stupid :-/ [13:38] good that you relized it :) [13:38] My perl implementation of fconfig is falling short in front of redboot storing IP addresses and ESA addresses as the bytes of the raw C data structure [13:38] *realized [13:38] I don't see how I'll match that in perl [13:38] didnt you have that C tool ? [13:38] from the source you üpüointed me to [13:39] I had a C tool, but it was crap [13:39] For fconfig [13:40] I started fixing it for a bunch of things, but I gave up when faced with fitting in the addition / changing of values [13:44] ogra: 14:40 < lool> I started fixing it for a bunch of things, but I gave up when faced with fitting in the addition / changing of values [15:07] lool, Can't you use pack() and unpack() to replicate a struct? [15:09] persia: I can, but the struct might change from platform to platform [15:09] it's supposed to be opaque [15:10] Oh, yeah. If the struct isn't constructed in such a way to be independent, then you're out of luck :( [16:01] Good morning [16:04] persia: Yes, that's exactly the problem; even the on-flash format for a *bool* can vary between 2 and 4 bytes, depending on sizeof(bool)... [16:04] A bool! [16:04] 4 bytes! [16:08] Yep. [16:08] lool : Well, depending on the platform, compiler, etc... sure. [16:09] lool : These days, where people are no longer thinking in therms of bits and bytes, but rather kilo and mega ... to those developers, why not use an int for a bool? *sigh* [16:09] I'm not saying it's right, mind you .. just that it's common. [16:10] lool : You'll cry .. but on the PS2, on that cell processor ... a bool takes up a whopping full 128 bits. [16:10] There are app notes that say "if you need a boolean, consider allocating an int and using flags..." [16:11] lool, well, indeed TRUE is four letters ... :) [16:12] ogra : *groan* [16:13] ogra : So, I'm still stuck without a serial dongle for the board for at least another week. Is there any possibility I could get you to make an image that has the redboot kernel cmdline settings appended with "text"? [16:14] ogra : Since the Redboot does hash itself, and thus I can't twiddle the bits manually at the moment with a hex editor... [16:14] yes, i saw your question, but sorry, i have to much on my plate atm trying to get a new image with a new kernel up [16:14] *nod* [16:25] So, before I poke into this any deeper.. I thought Freescale had committed to porting u-boot (albeit this was posted on a forum back in '04) ... do you know if they are still responsible for it? [16:40] ogra: Are you using a modified Redboot? [16:40] Actually, that's a general Q to anyone... [16:41] i'm using the one from NCommander (which he packaged already but which didnt hit the archive yet) [16:42] * NCommander returns [16:46] Martyn: The FSL one [16:50] wooo, ecosconfig-imx was accepted! [16:50] Martyn: what? '04? [16:51] persia: Well concerning IP addresses, I was wrong, the format isn't too crazy as under linux typedef uint32_t in_addr_t [16:51] Martyn: i don't think the post i passed to you is from that date [16:52] haha [16:52] armin76 : Yep, twas. [16:52] Martyn: you saw the registration date of the guy who posted it [16:52] Ah :) [16:52] not the date of the post [16:52] http://www.powerdeveloper.org/forums/viewtopic.php?p=12019 [16:53] yay for X hanging [16:53] Posted: Tue Jan 27, 2009 4:25 pm Post subject: i.MX515 Project Guidelines [16:53] Martyn: ^ :) [16:55] NCommander, did you see my question on the redboot package ? [16:55] ogra, no I didn't [16:55] it looks like ecosconfig and redboot come from the same tarball, is that right ? [16:56] ogra, no, separate [16:56] ok [16:56] phew [16:56] Well ... upstream has them together [16:56] freescale has them seperate [16:56] eeek [16:56] thats what i asked about [16:56] I think the version FSL has is before they were merged [16:56] Because when I worked on the NSLU2 RedBoot, they were also separate [16:57] ok [16:57] ogra, its kinda weird :-/. If you want to look for yourself, in the redboot zip, the config tools are in tools/ecos_config_tools, and then I built a tarball out of the redboot code and patches out of the stuff in source [16:58] no, its fine, i just wanted to know if they were one tarball when you recieved them [16:58] ogra, well, it was the giant zip from hell :-) [16:58] NCommander : I need to change the redboot config in ogra's image .. would you be so kind as to link or send me the zip? [16:58] if its a) the tarball for ecosconfig and b) the content of the zip tarred up for redboot, thats fine [16:59] Martyn, pull the packages out of my PPA, ecosconfig-imx, and redboot-imx [16:59] You need to build on an ARM machine with an arm-gnueabi-linux toolchain. [17:00] What's the address for your PPA? [17:00] I need to add you to the sources.list [17:00] Martyn, https://edge.launchpad.net/~mcasadevall/+archive/ppa [17:01] Martyn, its a devirtualized PPA so you can also pull binaries down for it on ARM (since you need to build on ARM if you want to just use debuild) [17:01] Martyn, what configuration change to you want to make? [17:01] Martyn, http://wiki.ubuntu.com/ARM/BuildingBabbageRedBoot - this will likely help you [17:02] got it. [17:03] ogra : Is the default installed gcc on your image the eabi toolchain? [17:03] installed/installable [17:03] Martyn, no, this RedBoot been modified to use a linux toolchain vs. an eabi [17:03] It won't compile with an eabi toolchain. [17:03] foobie. [17:04] foobie? [17:07] Martyn, what are you trying to do? [17:07] Heh, that's what my young cousin used to say when she tried to say "fubar" [17:08] NCommander : My babbage shipped without the JTAG/serial dongle. I want to start ogra's live image in text, rather than full X mode [17:08] Oh [17:08] The tests I'm running need as much free RAM as possible, and the board only has 512... [17:08] The config line isn't in the source code, its in the config partition of the image. [17:08] * NCommander notes that its possible to telnet into RedBoot over ethernet, but those options in ogra's image are off. [17:08] Right, and you can't change the partition of the image by hand (it's hashed, and if changed will prevent booting) [17:09] Martyn, lool was working on a tool to do just that [17:09] Yep, it's not ready yet that I know it. [17:09] it/of [17:11] Martyn: what kind of serial does it need? [17:11] armin76, a specially developed external board [17:11] with mxcuart chip [17:11] Hmm problem [17:11] oh... [17:11] fconfig includes the MAC address [17:12] Found key :fec_esa_data: of type :6: sensing :fec_esa: with data length 8; value:42:00:00:EA:18:F0: [17:12] do we care ` [17:12] ? [17:12] mine isn't set right and it works [17:12] we're not using the ethernet port during boot. [17:12] right [17:12] Yes, but if we keep the SD card for booting, it will have broken networking [17:12] (in redboot only of course) [17:12] Only temporarily [17:12] right [17:13] Is the ethernet address correctly detected on boot by linux? [17:13] lool, and who cares ? [17:13] * ogra cant check atm [17:13] but if not we can generate one randomly [17:14] the mac address is stored in the chip, and is read by the driver early on for most adapters... [17:15] ogra : Indeed. As long as you don't use the reserved 00:00:00:00:00:00 address ... it should work fine. [17:15] right [17:15] although generating a random one each boot, may confuse an upstream switch :) [17:15] well, it should have at least the venmdor part set by default [17:16] and it is present on the chip anyway. When linux comes up, the driver will set the mac correctly. [17:16] * NCommander wonders if he should strip out some of the ecos source thats unused [17:16] The copyright file is a freaking mess :-/ [17:18] Martyn: Well sometimes the linux driver just relies on the hardware as initialized by the boot loader to know its MAC [17:18] I know some d-i platforms are parsing the MAC address from the bootloader data [17:18] NCommander: yeah for ecosconfig \o/ [17:19] lool, RedBoot is done aside from its copyright file (which just broke 130 lines :-/) [17:22] NCommander: You complain about 130 lines of copyright, I'd like to complain about my stupid 600 lines of perl [17:22] Perl seemed like a good choice, but I'm not sure it was [17:22] lool, what are you coding in perl? [17:22] shell FTW ! [17:22] Still on fconfig [17:23] * NCommander would have choosen C and canobolized the existing code. [17:23] ogra: I'm confident it was a better choice than shell for this task :-) [17:23] nah [17:23] :) [17:23] autoconf has long providen you can do ANYTHING in sh [17:23] One reason it's useful to have it in C (and not C++ or Perl or anything) is to have it in an initrd rootfs; otherwise the libs suck a lot of space [17:24] NCommander: Yeah, and it has "providen" that it's ugly and nobody gets it right too :-P [17:24] you think to far in advance [17:24] ogra: That's actually the reason fis.cpp was rewritten in C for NSLU2 :-) [17:24] we really dont need it in initramfs atm [17:24] its enough to have it in the rootfs [17:25] ogra: I'm just mentionning it for completeness in this discussion; I do think there could be value in having it in initramfs for d-i [17:25] Anyway [17:25] I can parse the full config now; let's write it from scratch [17:25] d-i is out of scope as well for jaunty [17:26] all we wnat is to write the initial config and the initramfs and kernel binaries to SD for now [17:26] Yes [17:27] ogra: Would have I thought of that though, I would have pursued the C version, as ugly as it was, or rewritten one [17:27] thats what i thought you were doing until this morning [17:28] * ogra curses ... no input possibility in the latest kernel [17:31] ogra: A C version? [17:33] lool, the tool you pointed me to the other day [17:35] ogra: Well the fconfig one was awful in the implementation [17:35] but it worked ? [17:35] I fixed it up for the read code path, but the write code path was too awful [17:35] ogra: It didn't have any write support and that required a lot of things [17:37] hmm, i thought the site you pointed me to talked about write support [17:37] ogra: For fis.c probably [17:37] right [17:37] ogra: Two different upstreams [17:37] fconfig is wholy different [17:37] It's a separate project [17:38] I found 3 fis implementations and one fconfig one; the fconfig one was the problematic one [17:38] Well TBH I'm not perfectly happy with the fis ones, but it's ok, we can use them as is [17:38] fputs("Read, write or list Redboot configuration\n", stdout); [17:38] fputs("usage: fconfig [-r|-w|-l]" [17:38] " -d dev -o offset -n nickname -x value\n", stdout); [17:38] fputs("'dev' may be a char device, block device or a file\n", stdout); [17:38] fputs("'offset' is the offset in bytes on the device\n", stdout); [17:38] fputs("Supported types: \n", stdout); [17:38] for (i = 0; i < NUM_TYPES; i++) { [17:38] printf(" - %s\n", TYPE_NAME(i)); [17:38] } [17:38] fputs("Additional switches: \n", stdout); [17:38] fputs(" -v:\tVerbose mode, use more to increase verbosity\n", stdout); [17:38] fputs(" -s:\tSilent mode, absolutely no messages printed\n", stdout); [17:38] thats what i see in the source [17:39] i would have expected -w to be "write" [17:39] Yes, but it overwrites an existing config with the same config [17:39] ugh [17:39] Exactly what I said: "ugh" :) [17:41] ugh [17:41] * NCommander prays he's wrong [17:42] gramattically your ugh looks right :) [17:42] lool, ogra, we've got a problem :-/ [17:42] The RedBoot/ecos tree has 4 clause BSD code intermixed with GPLv2 code. [17:42] * ogra has lots of problems toiday ... no news [17:43] fis create initramfs [17:43] whoops ... wrong focus [17:44] * NCommander sighs, and takes a look upstream [17:44] NCommander: Hmpf [17:44] NCommander: Where exactly is the 4-clause BSD? [17:45] lool, its the ecos network stack, I don't think I can rip it out. [17:45] (it looks like someone copy and pasted an older version of the OpenBSD stack ...) [17:45] Before they made the change to a newer BSD license (the copyright notices are 1992-1993) [17:45] NCommander: Is this an upstream issue? [17:46] Looks like, I'm poking ecos's CVS repo to see if it was resolved in a later version [17:46] Even RedBoot bits are 4-clause, such as packages/redboot/current/include/net/tftp.h [17:46] NCommander: it was not [17:46] so its still an issue upstream? [17:46] NCommander: So 1) bring it up on the upstream list 2) mention the issue on debian/copyright and the fact that you contacted upstream about it [17:46] NCommander: It's still an issue upstream [17:47] Well from a checkout some days old, but it doesn't change much [17:47] worst case it forces the packages to restricted [17:47] Er, lool, GPLv2 and BSD 4-clause are incompatible; you can't license code together. [17:47] The two licenses conflict with each other ... [17:47] NCommander: But ECos folks did and RedBoot has been shipping in millions of devices [17:47] right [17:48] * NCommander remembers he was asked this question on his P&P for NM ... [17:48] I thought the adversing clause constitued an additional restriction which breaks the GPL. [17:48] debian ... [17:48] NCommander: It does [17:48] I'm lost then ... [18:41] ogra: Did you start looking into cdimage bits for SD card images for babbage? [18:56] NCommander: Where is the redboot source you're using ATM? [18:57] lool, on my HDD. [18:57] lool, I'm uploading a copy to REVU in a few minutes [18:57] NCommander: I just need to check values of redboot configs; any older version is fine [18:57] I'm grabbing redboot-imx from your ppa [18:58] lool, that's fine. [18:58] * NCommander is just determining if this package is going to universe or to multiverse [18:59] I don't think we have anything in main with four-clause BSD (which could be problematic for anyone adversing), but on the flip side, debian-legal says 4-clause BSD can go in main [18:59] (debian main) [19:08] * lool curses Xorg crashes when doing development [19:18] lool, I'm suffering from the random USB device insertions taking X down. [19:22] Is there a full ubuntu 9.04 live image available for the OMAP3 evm board built by mistral? [19:22] * Martyn reads through the scrollback ... [19:23] * Martyn is with ogra -- shell FTW [19:25] NCommander : You have it right. 4-clause and GPL are mutually incompatible [19:26] NCommander : LGPL and 4-clause may be compatible, depending. [19:26] Martyn, there is an exception in the GPL code in this package to allow it to be linked. [19:26] NCommander: Sounds like the lesser GPL then [19:27] Martyn, no, its GPL with an exception clause [19:27] (there is a difference) [19:27] Weird. [19:27] Cool but weird :) [19:28] * Martyn doesn't care about the licenses much when developing .. I just Want It To Work(tm) [19:28] If it means I have a rewrite a section of code afterwards, the development goes faster. [19:30] ogra : I may have a network driver bug to report. Should I post it to Launchpad? [19:31] Rx stops completely, and in a way I can reproduce, when fragmented packets are present. [19:32] (I've been doing some lighttpd load testing. It occurs on the Babbage, but not on the EVM or Beagle) [19:33] Tx still sends packets, Rx does not receive any, and ifconfig reports no further packets being counted. [22:17] Hi All...I am trying to get jaunty on my N810 [22:18] I am trying to follow instructions http://www.internettablettalk.com/forums/showthread.php?t=25975... [22:18] I am unable to do debootstrap [22:18] I wonder why [22:19] appreciate any help? [22:32] faso, what was the error? [22:35] actually I am unable to locate debootstrap in any of the repositories [22:35] Do u know where I can install it from [22:35] ? [22:57] faso: It's in all Ubuntus [22:57] I mean available to them