=== jmc93739653 is now known as jmc93739653_ === jmc93739653_ is now known as jmc93739653 [04:08] lol [04:08] "This is the bug tracker, with mail notifications going to developers who have" [04:08] many things to work on. Please keep the discussion to necessary technical [04:08] details. Refusal to do so may result in termination of your account. We hope [04:08] for your understanding. === asac_ is now known as asac [08:31] gregoiregentil: Thanks; I had not tested it, will look at fixing the patch to use MOUNTPOINT === ogra_ is now known as ogra [11:11] fresh uboot-imx is uploaded with the lastest patchset ... [11:18] lool, i could need some expert help with image partitioning .... http://paste.ubuntu.com/354966/ has the script that alex and i worked out for uboot images based on redboot-install, but somehow that results in a vfat partition uboot only reads corrupted data from [11:19] you probably see something obvious we both dont find [11:21] Hi there... does anyone know why there were no armel daily-live images for the last couple of days? [11:22] 20100108 seems to work well, but the more recent images seem to have no armel variants. [11:23] http://people.canonical.com/~ubuntu-archive/livefs-build-logs/lucid/ubuntu-imx51/ doesnt indicate that there were any builds [11:23] not even attempts [11:24] Is that expected, or did something go wrong? [11:25] http://cdimages.ubuntu.com/ports/daily-live/ has 20100110 and 20100111, but they only seem to have ia64 and powerpc [11:26] ogra: Does it relate to some other script? [11:26] dmart: That's when the build failed [11:26] Hmm someone dropped the weather report from the topic [11:28] sorry reconnect [11:28] Ah perhaps only -mobile had it [11:28] dmart: http://qa.ubuntu.com/reports/ogasawara/weatherreport.html [11:28] no hanging procs on the main buildserver [11:28] i wonder why there are no buiold attempts then [11:29] dmart: So what it means is that either the ISO or the livefs failed to build [11:29] dmart: livefs http://people.canonical.com/~ubuntu-archive/livefs-build-logs/lucid/ [11:29] No log at all :-/ [11:30] Strange [11:30] right, as i said, no attempt [11:30] x86 built though ... so the builds were not disabled [11:32] The crons certainly list armel [11:32] right [11:32] hello .. I'm happy :) .. Karmic is running fine on my new board ( http://www.technexion.com/index.php/thunderpack ) [11:33] great to hear === ogra_ is now known as ogra [11:38] Can I add this board to "ARM/DeviceSupport" on ubuntu wiki ? [11:39] ===== Downloading live filesystem images ===== [11:39] Mon Jan 11 05:35:27 GMT 2010 [11:39] Read error (Connection reset by peer) in headers. [11:39] That's how the CD build fail [11:39] I suspect the livefs builder is down [11:39] yep [11:40] i pinged lamont already [11:41] ADcomp: Which kernel tree supports the board? [11:41] ADcomp: Does linux-omap support it? linux? [11:42] lool: 2.6.31 [11:43] ADcomp: You mean naked linux 2.6.31 will support this board? [11:46] lool: compiling this one : https://code.launchpad.net/~beagleboard-kernel/+junk/2.6-stable [11:46] ogra: touch can be dropped at the start of the script [11:46] thats from linux-omap [11:47] lool, yeah, i noted that too, alex added it, but thats surely not the issue [11:47] ogra: I'm reading it anyway, so better making comments on all things I see [11:48] UBOOT_SIZE=$(wc -c $UBOOT_BIN |cut -d ' ' -f1) => stat much better [11:48] i also want to switch to your ingenious way of creating the empty image without time loss [11:48] lool: diff = http://pastebin.com/f60903eb6 [11:48] stat -c %s foobar [11:48] lool, yeah, i havent ported all the functions yet, stat will be used in the next iteration [11:48] yep [11:48] the other script has a proper function for it [11:49] ogra: The first partition seems too small to me [11:50] 142848B [11:51] ogra@osiris:~/Desktop/uboot$ ls -l uboot-imx51_to3.bin [11:51] -rwxr-xr-x 1 ogra ogra 142952 2010-01-07 17:20 uboot-imx51_to3.bin [11:51] You changed FIS_SIZE to UBOOT_SIZE, but the FIS starts at offset zero of the disk while UBOOT starts at offset zero of the partition [11:51] hrm [11:51] you are right [11:51] You need to add 512 to UBOOT_SIZE - 1 [11:51] * ogra slaps forehead ... [11:51] oh my ! [11:51] * ogra blushes [11:51] indeed [11:51] asac, ^^^ [11:52] Ah hold on, you actually seek and skip 1024 bytes in UBOOT_BIN [11:52] Where do these 1024 come from? Is this padded? [11:52] yes, so it needs to be 1024 [11:52] no [11:52] could be 512 [11:52] well. [11:52] i am sure i did that [11:53] i even aligned it to cluster sizes [11:53] I don't understand what asac is saying; can I get a sample binary? [11:53] like looking what cluster size the real SD card would have and then see that [11:53] asac, its not the cluster sizes or anything [11:53] asac, the uboot partition is smaller than uboot itself [11:53] sure. i aligned by 512 ... using integer match [11:54] e.g. so the size was bigger [11:54] but i wont remove the hope. so give it a try ;) [11:54] math [11:54] asac: I'm asking about the 1024 offset in the binary and in the dd output; I don't understand where the 1024 come from if it's not padded [11:54] its padded [11:55] and i had a working uboot image with that ... just tat that partitioning was manually done on the SD before [11:55] i seriously dont know exactly why its there, but it clearly worked here [11:55] we dont add any extra padding during package build [11:56] so it should be unpadded [11:56] right. but the .bin itself has probably a MBR at the beginning or something [11:56] So if it's padded, you need to remove 1024 to uboot_size when creating the partition [11:56] it shouldnt [11:56] feel free to put the full .bin onto it [11:56] What do you use as input? [11:56] lool: remove size? why would a too big partition cause any issues? [11:56] lool, input ? [11:57] ogra: as input uboot .bin [11:57] asac: It wouldn't be the issue, but it's still wrong [11:57] the uboot-imx51 package [11:57] the to3.bin from the current uboot-imx51 package [11:57] yeah. [11:57] and we dont pad it during build, i dont think it gets padded upstream, so there should be no padding at all [11:58] ogra: can you pload the DEBUG build? [11:58] or want to wait f you find something here? [11:58] gimme some time, i will upoload it with the rest of the default config changes later today [11:58] I checked and it's padded with 0x400 bytes [11:58] if we get the image going i'd like to add all changes in one go [11:59] yes, so skipping 1024 makes sense [11:59] Yes [11:59] +ok, thats 1024 [11:59] -+ [11:59] Unless the first 4 bytes are a jump or something 'b601 00ea' not sure [11:59] Certainly the next 1020 bytes are zeroes, so I'm tempted to think it's padded [12:00] intresting, that must come from upistream then [12:00] most likely for if you load it into flash or something [12:00] Stupid openid prevents me from using my editor on the paste stuff [12:01] yes [12:01] thats annoying [12:01] i want openid to go away for past.ubnutu.com [12:01] you cannot even wget the "download " link anymore [12:01] asac: Exactly [12:01] Not even with w3m which I think might actually process javascript; you hit a Continue button [12:02] i complained now [12:02] just FYI, clementine needs a powercycle [12:02] dmart, ^^^ the builder hangs [12:02] Is the script kept in bzr somewhere? [12:02] lool, not yet [12:02] Can I patch it in place and send you the new version? [12:02] we're in very early stages [12:02] ogra was too lazy for that ... so we used pastebin ;) [12:02] yeah [12:02] sorry [12:02] me ?!? [12:02] bah [12:02] * ogra throws a snowball at asac [12:02] yes, you are the owner, so you are supposed to do that in bzr :) [12:02] I don't know whom [12:03] i am just the peer poking you [12:03] pfft [12:04] For the 1024 bytes padding issue in U-Boot, I think the on-SoC low-level bootloader ignores the first K and executes the bootloader binary from offset 1024 in the boot device. This seems to apply to RedBoot and U-Boot (I've successfully booted U-Boot this way at my end) [12:05] It has nothing to do with any notional block size on the device AFAUK [12:05] (afaik) [12:05] dmart: Agreed; we're just trying to get the math right [12:05] We're not writing the full image to disk as it would erase the partition table [12:05] dmart, yes, i'm just wondering what adds the padiing, in redboot we add it during package build iirc, while we dont do that in the uboot build [12:06] ogra: God [12:06] Dunno there. The U-Boot build process may add it. [12:06] You copied the PART1_ID_OFFSET="$(hex2dec 0x1c2)" [12:06] That's probably the issue [12:06] it must be something before uboot [12:06] Oh no that's always correct [12:06] Nevermind :) [12:06] right [12:06] i checked that manually [12:06] ogra: i found a bug in that [12:06] I thought it was the offset of the data, not in the partition table [12:07] but that didnt change a thing [12:07] ogra: with sh the data fs partition string dding breaks [12:07] you have to wrap it with bash -c "..." [12:07] otherwise that printf outputs 3 bytes [12:07] not here [12:07] and you end up with this odd E.. FS partitoin [12:07] ogra: ppost what you have for fdisk -l [12:08] first partitoin isnt Non-FS data iirc for you [12:08] thats the bug [12:08] ogra@osiris:~/Desktop/uboot$ fdisk -l test.img |grep test.img1 [12:08] test.img1 1 1 139+ da Nicht-DS-Daten [12:08] looks like it should [12:09] strange [12:09] then i dont know whats going on with my dash ;) [12:09] it definitly is broke here [12:09] its your vanilla kernel breaking it :P [12:10] bah [12:11] I had a check for the size of the partition and there is none here [12:11] none? [12:11] ogra, asac: Do you have a run with debug output of the script? [12:12] what did you try? [12:12] i dont even know which version of the script you are using [12:12] ogra: can you push whatever you currently have to some bzr branch so we have the same baseline ;)? [12:12] asac: I'm not using any; I'm changing the one ogra pinged me with earlier here [12:12] I will give you an updated one fixing the issues I listed [12:12] lool: so ogra gave you a script [12:13] asac, waiting for what lool will send me and put that in bzr [12:13] ok. getting cigarettes ... hope its there after that [12:14] want to give it a try ;) [12:14] now that the bbg2 works [12:17] lool, adding the 512 to UBOOT_SIZE doesnt change a thing here [12:18] shenki: anything you needed from me? [12:18] BBG U-Boot > fatload mmc 0:2 0x90008000 /uimage [12:18] reading /uimage [12:18] still hangs there [12:18] * asac out for cigarettes for real now ;) [12:20] * lool pushes lp:~lool/+junk/uboot-image-script [12:21] ogra: I don't have babbage 2, so I can't try the output on a babbage board; I could perhaps run the script but that's the best I can do; I'm still finishing the review, if I don't have any idea, I will ask for the output of the script and the boot output [12:22] ok [12:22] UBOOT_SIZE=$(($(stat -c %s "$UBOOT_BIN") - 1024)) ?? [12:22] why do you subtract the padding ? [12:24] ./uboot-image-script: 67: arithmetic expression: expecting primary: ""62914560" / 1024" [12:24] * ogra checks [12:29] I pushed sanity checks [12:29] ogra: Looks like parted output is bofus [12:30] ah [12:30] ogra: Could you send a set -x run output? [12:30] * lool goes to lunch and will look at this when coming back [12:30] will do [12:30] I will add further checks at the end of the script [12:31] hmm, seems that trashed the uboot binary [12:31] doesnt get to a prompt [12:35] lool, http://paste.ubuntu.com/354994/ [12:36] the uboot binary is definately truncated in this version though [12:36] one question i am not sure about: man parted say that mkpart takes [start] [end] .. we seem to pass [start] [size] though. is manpage really wrong? [12:37] hmm, we should pass [start] [size+start] [12:37] yes [12:38] * ogra will try that but needs some food too now [12:50] ok repushed lp:~ubuntu-armel/+junk/uboot-image-script [12:54] asac: Did you talk to lutin about the EFL stuff? [12:56] the inclusion thing? i told him to think about it [12:56] but he didnt like it. [12:56] havent got a final decision yet [12:57] asac: ah, OK [13:00] ogra: Just looking at the script... [13:01] 39: UBOOT_SIZE=$(($(stat -c %s "$UBOOT_BIN") - 1024)) [13:01] pushed a few fixes so it works oob here [13:01] 40: log_run parted -s "$IMAGE" mkpart primary fat32 "512B" "$(($UBOOT_SIZE - 1))B" [13:01] That makes the partition size = UBOOT_SIZE - 512 [13:01] This is `stat -c %s "$UBOOT_BIN"` - 1536... is the U-Boot binary getting truncated by the fs partition? [13:01] On line 40, maybe you want UBOOT_SIZE + 512 - 1. [13:01] dmart: pull again [13:01] lp:~ubuntu-armel/+junk/uboot-image-script [13:02] i already ensured that last parameter is END now rather than size [13:02] Ah, that should work :) [13:02] (I think) [13:07] doesnt work here [13:07] i still end up with a truncated uboot [13:07] tried my branch? [13:08] yes [13:08] just zeroed my Sd to make sure its actually using the proper image [13:09] ogra i get uboot promot ;) [13:09] i dont [13:09] In: serial [13:09] Out: serial [13:09] Err: serial [13:09] Net: FEC0 [PRIME] [13:09] thats it [13:09] hangs there forever [13:09] In: serial [13:09] Out: serial [13:09] Err: serial [13:09] Net: FEC0 [PRIME] [13:09] Hit any key to stop autoboot: 0 [13:09] BBG U-Boot > mmcinfo [13:10] even powering off the board doesnt change it [13:10] whats the imagezize you give on the cmdline ? [13:10] ./uboot-image-script ../out.img ../data/vmlinuz-2.6.31-601-imx51 ../data/uboot-imx51_to3.bin 90M [13:11] oh, you give it in M [13:11] yes [13:11] its in M ;) [13:11] * ogra tries that [13:11] * asac thinks about building his own uboot on jocote [13:11] * asac has never seen the .bin work there ;) [13:11] are you sure it ever worked? [13:12] ogra: can you create the partitions manually and see if that really helps still? [13:12] oh damned !!!! [13:12] just want to be sure we are not running after a bad horse [13:12] * ogra durses chromium [13:12] what? [13:12] *curses even [13:12] heh [13:12] crashed? [13:12] it created a ton of scripts on my desktop [13:12] enumerating them [13:13] instead of overwriting when i download a new version [13:13] so i copied the same all the time into my workdir :P [13:13] yes [13:13] ogra: use bzr branch ;) [13:13] bzr ftw [13:14] * asac schedules a bzr brain-wash session for sprint [13:14] heh [13:15] still not reading uImage though [13:15] yes [13:15] ogra: we need the DEBUG build asap [13:15] we are moving in circles ;) [13:15] maybe we just see whats going on there [13:15] * asac hopes [13:16] what do you expect to achieve from a DEBUG build beond that it will tell you earlier that the image is corrupted (bad CRC) [13:16] ogra: if you can make a image that works manually, we can dd the partition table and the first few K off and use that rather than parted [13:16] nah [13:16] then i'd rather use fdisk scripts [13:16] i want to see details [13:16] we dont see anything atm [13:16] we do [13:17] just wait about 20min [13:17] uboot will restart [13:17] what does that tell you? [13:17] and will exec the commands over again ... then it shows a bad CRC for the image [13:18] so are you 100% sure that the current .bin works right if you do the part table manually? [13:19] it worked before, yes [13:19] i'm still using the one from friday which worked fine [13:19] what partition sizes did you use there? [13:24] hmm, doesnt seem like uboot for imx has any debug config options at all [13:26] but fat.c etc. [13:26] they want -DDEBUG [13:26] Number Start End Size Type File system Flags [13:26] 1 1024B 143359B 142336B primary [13:26] 2 143360B 63058431B 62915072B primary fat32 lba [13:26] the first partition is to small [13:27] ogra@osiris:~/Desktop/uboot$ ls -l uboot-imx51_to3.bin [13:27] -rwxr-xr-x 1 ogra ogra 142952 2010-01-07 17:20 uboot-imx51_to3.bin [13:27] 616 bytes to small [13:27] how did we get there ? [13:28] err [13:28] uboot_start=1024 ??? [13:28] why 1024 ? [13:28] ogra: So the /boot partition is miscomputed [13:29] otherwise the script will bail out below [13:29] log_run parted -s "$IMAGE" mkpart primary fat32 "$((${PART1_END_B%B} + 1))B" "${BOOT_SIZE}B" [13:29] maybe that was a bug in first place [13:29] That should be PART1_END + 1 + BOOT_SIZE as second arg [13:29] (end) [13:29] Instead of size [13:29] yes [13:29] we use that for redboot though [13:29] lool: is that in latest? [13:29] Also, it's inclusive, so you can substract one [13:29] i wonder why it doesnt break there [13:29] asac: Dunno, I'm working of my branch [13:29] i thought i made it use end everywhere now [13:30] asac, 1024 is way to much offset for the start [13:30] the ~ubuntu-armel branch [13:30] i fixed [13:30] Oh [13:30] asac, 512 for the MBR ... [13:30] * lool merges [13:30] i fixed a bunch ;) [13:30] ogra: 512 for MBR, 512 for part table? [13:30] err, yes [13:30] mbr has part table included [13:30] well, 512 for offset :) [13:31] 1024 leaves a gap [13:32] die "UBoot partition starts at $PART1_START_B but needs to start at 1024B for the ROM to find the bootloader" [13:32] thats why we needed it [13:32] Hmm actually 512B is enough for both [13:32] thats nonsense [13:32] so either we need to adjust that or 1024 is ok [13:32] where did you get that from ? [13:32] good [13:32] asac: Why do you start the partition at 1024B instead of 512B?> [13:32] lets use uboot_start there [13:32] and use that in both places ;) [13:32] * asac commits [13:33] asac: I merged though, you might have to merge now [13:33] /me branches this time [13:33] silly chromium [13:33] done [13:33] -log_run parted -s "$IMAGE" mkpart primary fat32 "512B" "$(($UBOOT_SIZE - 1))B" [13:33] +log_run parted -s "$IMAGE" mkpart primary fat32 "${uboot_start}B" "$(($UBOOT_SIZE - 1 + $uboot_start))B" [13:33] That doesn't make any sense to me [13:33] err. thats bad habit ;) [13:33] anyway [13:33] merging [13:34] asac: Why did you add uboot_start? [13:34] so we can just flit one var now ;) [13:34] asac: Yes but it used to start at 512B, right? [13:35] lool: you added the die check so i fixed the start ... and made a variable out of it [13:35] so now we go back to 512 [13:35] ok merge mess finished [13:37] Gah [13:37] uboot_start doesn't mean the same thing now [13:38] UBOOT_SIZE is wrong now [13:39] yes. thats an oversight [13:39] should use the same [13:39] well [13:39] not [13:39] UBOOT_SIZE 1024 is the padding [13:39] the uboot_start is the partition start [13:40] the dd is wrong a bit yes. [13:41] no. no idea what you meant by the die test [13:41] Ok fixed now [13:41] i definitly used thie uboot_start only for partition bits [13:41] I renamed to PART1_START and added a real UBOOT_START if you prefer that [13:42] ok [13:42] whatever works ;) [13:42] lool: thats not good [13:42] "136376 - "1024"" [13:42] ./uboot-image-script: 44: arithmetic expression: expecting primary: "136376 - "1024"" [13:42] * asac fixes [13:43] done [13:44] + 1 - 1 ? [13:44] why dont you just drop +1 [13:45] ogra: To avoid someone adding +1 again :) there wasn't any in the first version AFAIR [13:45] That's odd, I didn't know $(()) wasn't doing expansion [13:45] uboot-image-script/uboot-image-script: 44: arithmetic expression: expecting primary: "142952 - "1024"" [13:45] doesnt change a thing for me [13:46] odd. on bbg2 reset powers off [13:46] ;) [13:46] Yup [13:46] old bug [13:47] yes. wasnt sure that uboot reset command has same effect [13:47] ericm_: cooloney: hi [13:47] ericm_: cooloney: any update on kernel upload? [13:50] he mailed the kernel list with a pull request [13:50] i guess its up to apw to pull and roll now [13:50] ogra: btw, replacing ../out.img with /dev/mmblk0 ... it doesnt help ... isnt that the way you did it? [13:50] cool [13:50] asac, marvell patch rebase finished but seems there are many issues with recent lucid [13:50] not atm, no [13:51] asac, will check with NCommander for that [13:51] ogra: how did you create the good partition table? [13:51] asac, i roll an image and dd it currently ... [13:51] asac, I've already sent the status report but would like to hold on for a while til those issues are solved [13:51] i dont have a good part table atm ... [13:51] ogra: but how did you do it when you had that [13:51] ;) [13:51] ericm_: what issues are those? [13:51] do we have bugs tracking the progress? [13:52] before i used lool's way of creating an empty image with a 512 byte blocksize and used that value for fdisk -C [13:52] asac, gdm or gnome-panel respawned again and again [13:53] asac, and X constantly freezes up [13:53] you should be able to do the same by: fdisk -C $(($(stat -c %s $imagename) / 512)) $imagename [13:53] or some such [13:54] asac, have already checked with Marvell on those issues and no solution yet - I'll ping them more frequently on these [13:55] ogra, asac: Could you test the latest version? [13:55] sure [13:55] * ogra pulls [13:56] * asac dds [13:56] * ogra too [13:56] ogra, what are you waiting for me to do? [13:56] apw: upload imx51 [13:57] kernel [13:57] apw, [Lucid] Git pull request for fsl-imx51 branch upload [13:57] apw, from kernel-team@ [13:57] you are desiring it be the a-2 kernel? willing to take the pain? [13:57] apw, we*re waiting for an upload [13:57] apw, right [13:57] it has been tested on friday by a bunch of us [13:58] as long as aufs isnt meesed up it should be a fine kernel for A2 [13:58] lool: same issue. hanging on loading uimage [13:58] asac: So this is on B2.0? Could you paste full boot output? [13:58] same on 2.5 here === ericm_ is now known as ericm-Zzzz [13:59] asac, ogra: I added one more sanity check to verify that the partition is sufficiently big; please repull and rerun (no need to dd to SD card) [13:59] ogra, as you tested it on friday you know its good yes [13:59] lool: http://paste.ubuntu.com/355017/ [13:59] seems the sso was removed!!! [13:59] and if its not you can live with it [13:59] apw, under the assumption that cooloney didnt change anything :) [13:59] asac: SSO? [13:59] signle sign on [13:59] on paste.u.c [13:59] asac: Oh nice [13:59] i ad to add my nick again ;) [13:59] asac: Can you fatls without hanging? [14:00] lool, http://paste.ubuntu.com/355018/ [14:00] same for me [14:00] lool: yes [14:00] we always could do that [14:00] right [14:00] which is why i would like to have a uboot DEBUG build [14:00] only loading doesnt work [14:00] to see whats going on ;) [14:00] Are you guys sure of your load address? It's not overwriting some important area? [14:00] we had it working [14:00] with good partition table [14:01] but i had a different uboot.bin ... so i rely on ogra saying that his image is good too for that [14:01] Did one of you two re-run the latest version with the check? [14:01] not yet [14:02] BBG U-Boot > fatls mmc 0:2 3062220 uimage [14:02] 1 file(s), 0 dir(s) [14:02] lool: which version? [14:02] r19 [14:02] you mean the script or the uboot.bin? [14:02] script [14:02] yes [14:02] thats what i am trying [14:02] So the test passes? [14:02] hangs on uimage loading [14:02] it didnt fail ;) [14:02] let me double check [14:02] neither here [14:02] Ok good [14:03] http://paste.ubuntu.com/355025/ [14:03] lool: ^ [14:03] Well what you guys could do is take your SD, copy the uImage to your PC, re-do the mkfs by hand on the second partition, copy uImage back [14:03] That would rule out mcopy [14:03] right [14:04] * asac does that [14:04] well i have the uImage here in CWD [14:04] PWD [14:04] so i will just copy that after mounting the SD [14:04] asac: I added code to rm it in the latest version [14:04] heh you remove the uImage now ;) [14:05] sabotage [14:05] * asac recreates [14:05] hangs here [14:05] oh, wait, i used the wrong uimage :P [14:05] hangs too [14:06] So I think we need to find a working image again and replace the uboot.bin and the uimage [14:06] i used the right one [14:06] let me check if i really wiped mine [14:07] hamgs [14:07] *hangs [14:07] yes [14:07] i have it ;) [14:07] here [14:07] one sec [14:07] we can dd off the partition table ;) [14:07] i have a FSL binary [14:08] it works [14:08] http://paste.ubuntu.com/355027/ [14:08] but that doesnt use the .bin by ogra [14:08] i had my own in december [14:08] which i used to create that [14:09] I added code to use tempfiles properly [14:09] ok [14:09] asac: Let's replace the .bin then [14:09] http://people.canonical.com/~ogra/uImage [14:09] lool: then i dont even have that image anymore :) [14:10] asac: ? [14:10] i have it on a SD card only [14:10] I mean copy the working .bin in the non-working image (if it's smaller than ogra's .bin) [14:10] let me see if i can dd it [14:10] i dont have that .bin anymore :( [14:10] it died with the USB harddrive [14:10] lool, the uboot.bin wors fine [14:10] and i dont know the size anymore [14:10] asac: You could hack our script to have a very large UBOOT partition to be able to dd some MBs of data from your SD to that one [14:11] ogra: Did you ever boot a kernel with the uboot.bin? [14:11] several [14:11] yes [14:11] BBG U-Boot > fatload mmc 0:2 0x90008000 /uimage [14:11] reading /uimage [14:11] 2211052 bytes read [14:11] we.. i never saw the current .bin working. but i will now manually create the part table etc. and see [14:11] thats with the fslk uimage [14:11] ogra: so how do you create that part table [14:11] *FSL [14:11] asac: Add UBOOT_SIZE=$((12 * 1024 * 1024)) after UBOOT_SIZE= in the script and dd 10 MBs of your SD [14:11] can you post that script please [14:11] lool: yes. let me check [14:11] asac, i used the script [14:12] ogra: so all is fine? [14:12] no [14:12] let me try something, one sec [14:12] why did it work for you then? [14:12] asac, did you use the uImage i just posted ? [14:12] no. i used mine [14:12] e.g. the one created by the script [14:12] a few minutes ago [14:13] I added copyright to the script, since we all work for Canonical, right? ;) [14:13] you want me to test that? [14:13] (I picked a BSD style header) [14:13] we are supposed to use GPLv3 (not later) ;) [14:14] ok [14:14] personally fine ;) [14:14] so [14:14] * asac waits for ogra [14:14] i create the image which i dd with the script [14:14] then mount the second partition (leaving nautilus do that) [14:14] and then just cp the other uImage in place [14:14] ok [14:14] that seems to work [14:15] odd [14:15] So it would be the uImage? [14:15] how did you produce that? [14:15] lets check the mkimage args [14:15] ogra: ? [14:15] what ? [14:15] how you produce the uImage that works [14:16] i dont [14:16] its a binary FSL offers [14:16] 2.6.28 [14:16] old kernel [14:16] ok [14:16] thats why i made us look at mkimage for two days last week [14:16] So with uboot-image-script + FSL uImage, it works? [14:16] oh, wait ! [14:16] now it hangs [14:17] lool, no, it doesnt [14:17] i missed a reformat in the above descriptopn [14:17] ogra: doesnt help [14:17] BBG U-Boot > fatload mmc 0:2 0x90008000 uimage1 [14:17] reading uimage1 [14:17] hangs [14:17] i forgot i had run one mkfs.vfat when you asked [14:17] to rule out mcopy :P [14:18] So uboot-image-script + mkfs + FSL uImage works? [14:18] right [14:18] What about uboot-image-script + mkfs + our uImage? [14:18] without mkfs it doesnt [14:18] asac: Could you confirm? [14:18] what mkfs should i run? [14:18] I guess mkdosfs -F32 /dev/sdcard2 [14:19] trying [14:19] then write our uImage and FSL uImage and see what you get [14:19] sure [14:19] ogra@osiris:~/Desktop/uboot$ sudo mkfs.vfat /dev/mmcblk0p2 [14:19] mkfs.vfat 3.0.3 (18 May 2009) [14:19] ogra@osiris:~/Desktop/uboot$ cp ../uImage /media/37B5-7516/ [14:19] got that [14:19] thats what i do here [14:19] ogra: You used mkfs.vfat? Could you try mkdosfs -F32 instead? [14:19] So that we can rule out various things in the script [14:19] will try [14:20] but the above works definately [14:20] kernel in bad state. thinks its mounted [14:20] poor you [14:20] get better HW :) [14:20] sudo mkdosfs /dev/mmcblk0p2 [14:20] mkdosfs 3.0.3 (18 May 2009) [14:20] mkdosfs: /dev/mmcblk0p2 contains a mounted file system. [14:20] Probably because of the hang [14:20] asac: dd zero to it first [14:20] ok let me check [14:20] asac: It's a mkdosfs bug I guess [14:21] * asac puts fresh img on sd [14:21] ogra: so what mkdosfs are you running? without F32? [14:21] Right, rewriting the image is enough as well [14:21] didnt help [14:21] aha ! [14:21] its really bad kernel [14:21] rebooting [14:22] That's odd [14:22] mkdosfs -F32 makes it hang [14:22] ogra: does the trick help withour uimage? [14:22] Cool [14:22] ogra: Try -F16 [14:22] * asac checks that [14:22] It's small enough to be FAT16 [14:22] I'm pretty sure mkfs.vfat might pick FAT 16 if it's small enough [14:22] If nothing is specified, mkdosfs will automatically select between 12, 16 and 32 bit. [14:22] From the mkfs.vfat man page [14:22] lool the script is busted [14:23] asac: How so? [14:23] http://paste.ubuntu.com/355033/ [14:23] probably your tmp stuff ;) [14:23] BBG U-Boot > fatload mmc 0:2 0x90008000 /uimage [14:23] reading /uimage [14:23] 2211052 bytes read [14:23] YAY ! [14:23] -F16 FTW [14:23] asac: thanks [14:23] oh my [14:23] asac: Apparently can;t put the X where I like [14:23] that costed so much time for nothing [14:23] having double " [14:23] ? [14:24] ogra: we started with F16 not working ;) [14:24] asac: that's fine [14:24] asac: see the mktemp error [14:24] well, it works [14:24] yeah [14:24] * asac backs it out locally to get something going [14:24] * ogra tries our uImage now [14:25] asac: Fixed and fixed 16 bits too [14:25] good [14:25] And moved the set -e so that mktemp fails the script [14:25] right [14:25] hmm [14:25] hangs [14:26] So uImage is next I guess? [14:26] yeah [14:26] ogra@osiris:~/Desktop/uboot$ mkimage -l ../uImage [14:26] Image Name: Linux-2.6.31-170-ga88b882 [14:26] Created: Sun Dec 6 23:57:01 2009 [14:26] Image Type: ARM Linux Kernel Image (uncompressed) [14:26] Data Size: 2210988 Bytes = 2159.17 kB = 2.11 MB [14:26] Load Address: 0x90008000 [14:26] Entry Point: 0x90008000 [14:26] ogra: You could change UIMAGE to point to FSL uImage in the script and remove the mkimage, that should allow testing the full script with FSL image [14:26] ogra@osiris:~/Desktop/uboot$ mkimage -l uimage [14:26] Image Name: LinuxRocks [14:26] Created: Mon Jan 11 15:07:33 2010 [14:26] Image Type: ARM Linux Kernel Image (uncompressed) [14:26] Data Size: 3062156 Bytes = 2990.39 kB = 2.92 MB [14:26] Load Address: 0x90800000 [14:26] Entry Point: 0x90800000 [14:26] oh [14:26] the adresses differ [14:26] Not the same kernel though [14:27] on my other image it doesnt matter [14:27] what you put on the load address etc. [14:27] Tss someone got the address wrong ;) [14:27] its all the fatload [14:27] asac: What do you mean? [14:27] asac: if the address is wrong or the kernel differ, you might erase important memory or use a different code path in uboot [14:27] the uImage works perfect on my SD that has my hadcrafted stuff [14:28] e.g. if the kernel is bigger or the address different, it could erase other memory [14:28] Also the kernel boot stuff might have changed across the versions [14:28] i am saying that exactly the uImage we are now producing works on my SD card :) [14:28] asac: With which uboot? [14:28] and i can boot it [14:28] the same version [14:28] hmm, still hangs with our image [14:28] could be its the previous code drop [14:28] Ok so our uboot + out uImage work? [14:28] from FSL [14:29] my uboot works with our uImage [14:29] out uboot doesnt work even with the F32 dropped [14:29] But our uboot doens't work with our uimage? [14:29] so i will check the Load Address now [14:29] Ok [14:29] yes [14:29] my uboot works with everything [14:29] Even the load address? [14:29] the Load Address is completely irrelevant [14:29] but you dont use mkimage from the archive [14:29] Yeah it's overruled [14:29] you specify the load address on the fatload promt [14:29] prompt [14:29] Yeah [14:29] and thats what is used [14:29] right [14:30] The entry point might matter though [14:30] anyway. let me still try ;) [14:30] It's wrong too [14:30] doesnt matter for my other image [14:30] well. atr least that one works ;) [14:30] let me check [14:30] using 0x90008000 for both now [14:30] lool, i'm testing with the same avlues FSL uses and it doesnt work [14:31] right. [14:31] asac, so which mkimage do you have installed atm ? [14:32] karmic [14:32] the one from the archive or the one from source [14:32] karmic archive [14:32] maybe its oosync? [14:32] shouldnt be [14:32] did you update the archive? [14:32] no, i dont touch mkimage [14:32] yeah [14:32] but i dont think its mkimage [14:32] i uploaded a fresh uboot bin today though [14:32] whatever i do it works with the other uboot thing i had [14:32] but that should only just have built now [14:33] ok [14:33] there were a bunch of new patches [14:33] we migh want to try that binary [14:33] yeah [14:33] not sure what changed though ;) [14:34] 0064-ENGR00119505-MX51-BBG-Change-DDR2-settings looks intresting [14:34] 0065-ENGR00119526-MX25-Fix-mmc-read-write-failure-on-mmc too [14:34] the others are rather generic or other mx platforms [14:35] ok so the fsl image really works [14:35] which is strange ;) [14:35] yes [14:35] and the worst is, there is no documentation to find anywhere how it was produced [14:35] mkimage -l is all i can get [14:36] which is how i found my load address and entry point defaults for initial testing [14:36] i really think its just the size difference [14:36] i doubt that [14:36] at that stage uboot doesnt do much with it [14:36] just parse header and load to mem [14:36] i managed to boot your uImage too last week, remember ? [14:37] the uImage we produce works fine on my other SD card [14:37] with a fully manually created SD [14:37] yes. but my uboot from december works for everything [14:37] you cannot break it [14:37] ;) [14:37] do you remember which config you used to build it ? [14:37] * ogra guesses the oine thats gone from the tree in the last two uboot drops [14:37] i used mx51 ... it was the last code drop [14:38] (e.g. the first uboot 2009.08 we had) [14:38] ogra: no. it was the new config [14:38] ah, yeah, the config was redone afterwards [14:38] just not the same code drop we are using now [14:38] hmm [14:38] the one before [14:38] and i build it in karmic [14:38] right, i use the same [14:38] but from the package [14:38] those are the different parameters [14:38] karmic + old code drop [14:38] built in lucid on a babbage [14:38] smae code drop [14:39] ogra: the package is the december code drop, isnt it? [14:39] but from the package [14:39] was [14:39] until today [14:39] yes. but i used the one before that [14:39] the one i use is the same as yours [14:39] you went back? [14:39] to Nov? [14:39] we had no .08 drop before that [14:39] odd [14:39] my image was produced on Dec 07 [14:39] maybe the last karmic code drop already had that? [14:40] the dec. drop i uploaded right before my holidays has the forst 2009.08 [14:40] yes, but thats after 07 Dec [14:40] and was the first code drop i ever published [14:40] so it means there was a 08 code drop before [14:40] where did you get that ? [14:40] ogra: you uploaded the one from before somewhere [14:40] and i took that [14:40] hmm [14:40] let me check if i still have it [14:41] * ogra looks at chinstrap [14:41] deleted it :( [14:41] well, its nothing we can use anyway [14:42] and i think its more a prob of karmic vs lucid building [14:42] asac: Try using our kernel in FSL image? [14:42] which remonds me, we likely dont have a dove lucid build either [14:42] mkimage it with FSL args and put it on a copy of the FSL image? [14:44] ## Booting kernel from Legacy Image at 90800000 ... [14:44] Image Name: LinuxRocks [14:44] Image Type: ARM Linux Kernel Image (uncompressed) [14:44] Data Size: 3062156 Bytes = 2.9 MB [14:44] Load Address: 90008000 [14:44] Entry Point: 90008000 [14:44] Verifying Checksum ... Bad Data CRC [14:44] ERROR: can't get kernel image! [14:44] aha [14:45] let me build a .bin in karmic chroot [14:46] ogra, asac: I updated the script to drop explicit rms since cleanup() will take care of that; I think you guys need to figure out the contents now, the script itself seems ok except perhaps for the mkimage call [14:47] Can't help you much more without hardware I'm afraid [14:47] yeah, thanks so much [14:47] thats ok ;) [14:47] * ogra hugs lool [14:47] thanks a lot [14:47] np [14:47] * ogra has david call in 10 ... [14:48] asac, so resetting the board with a configured uboot gets me the above with our uimage [14:48] Bad Data CRC seems the prob here [14:48] yes. we need debug in fat and so on [14:48] i am sure that there must be issues during loading things [14:49] * ogra tries the new uboot.bin [14:49] new? [14:49] todays [14:50] ah [14:50] so on karmic we build with -marm [14:50] is that the case for lucid too? [14:51] yes, its upstream in 2009.08 [14:51] kk [14:51] i dropped the patch today [14:52] you said you didnt have to patch the inline functions for your build [14:52] no clue. it was the code drop we dont have anymore. i applied all the upstream patches and made a build without packaging [14:53] so yeah. most likely [14:53] upstream==fsl [14:53] hmm, i wonder why gcc didnt choke on the inline functions [14:54] are you sure you used gcc 4.4 ? [14:54] 4.4 will definately not accept them [14:54] * ogra needs coffee for the call [14:56] ogra: yes. i did the same i remember now (looking at the patch) [14:56] or i used static inline [14:58] ok [15:42] * ogra is our for 1h [16:17] apw: so i think we didnt come to a conclusion on the kernel upload. will that just happen tomorrow? [16:17] asac, sorry? [16:17] should i not be uploading? [16:19] nono ... it _should_ [16:22] what happened with the livecd builds over the weekend? [16:22] asac broke them [16:27] plars: clementine needs a reboot [16:27] plars: IS is aware [16:34] asac, ok well it'll happen as soon as i can get the damn thing to build correctly ... its resisting [17:02] hmm [17:02] ok [17:05] asac, its on the buildd [17:05] apw: rock!!! [17:06] you get to keep both pieces :) [17:06] heh [17:14] ogra: did you enable ext2 in latest .bin already? [17:29] asac, no, should i ? [17:33] asac, in my testing it didnt change a thing, loading hung with etx2 was well as with vfat [17:34] apw, "* drop a number of modules no longer built" what are these ? is there a list ? [17:45] disconnect [17:45] ...er... [21:06] Hi everyone! [21:07] Has anyone tried building lucid rootfs (ubuntu-minimal) with rootstock? [21:07] ameya, the lucid change hasn't landed in rootstock yet, however i'm using this for the moment: https://code.launchpad.net/~beagleboard-kernel/+junk/project-rootstock-lucid [21:09] I am using the same [21:10] I received "ubuntu-minimal: Depends: ureadahead but it is not going to be installed" [21:10] and finally Kernel panic - not syncing: Attempted to kill init! [21:10] I: Killed ... [21:11] weird... my daily test build worked this morning: http://rcn-ee.homeip.net:81/dl/daily/ubuntu-lucid.log [21:13] actually my "xfce4 image" worked after the 'ubuntu-minimal' kernel panic'd... I'd give it another try, lots of changes going on... [21:13] I am using: project-rootstock/lucid-support : 33 [21:17] I checked at packages.ubuntu.com that ureadahead for lucid is only available for amd64 and i386 [21:17] if ubuntu-minimal depends on ureadahead then won't it create a problem? [21:18] packages.ubuntu.com doesn't list arm, it's here: http://ports.ubuntu.com/pool/main/u/ureadahead/ [21:18] ohhh! thanks :) [21:19] can you tell me your command for building lucid? [21:19] I will try again [21:21] ameya, i would just try it again, packages for lucid are updated daily, so something was weird at your time of running it.. Nothing special: sudo ./rootstock --fqdn beagleboard --login ubuntu --password temppwd --imagesize 2G --seed nano,linux-firmware,wireless-tools,usbutils --dist lucid [21:21] hmm [21:22] ameya: ubuntu-minimal wont depend on ureadahead on an arch if it's not available [21:22] (germinate does check that) [21:23] lool, Thanks! [22:01] trying alternate on dove and seeing a debootstrap error configuring required packages, anyone tried alternate recently and seen that? [22:01] NCommander maybe? ^ [22:01] odd, seems to still be making progress in the background even though I didn't tell it to continue yet [22:33] plars, ugh .... [22:33] plars, can you check the imx51 alternate as well? [22:38] NCommander: not at the moment