/srv/irclogs.ubuntu.com/2010/01/11/#ubuntu-arm.txt

=== jmc93739653 is now known as jmc93739653_
=== jmc93739653_ is now known as jmc93739653
pwnguinlol04:08
pwnguin"This is the bug tracker, with mail notifications going to developers who have"04:08
pwnguinmany things to work on. Please keep the discussion to necessary technical04:08
pwnguindetails. Refusal to do so may result in termination of your account. We hope04:08
pwnguinfor your understanding.04:08
=== asac_ is now known as asac
loolgregoiregentil: Thanks; I had not tested it, will look at fixing the patch to use MOUNTPOINT08:31
=== ogra_ is now known as ogra
ografresh uboot-imx is uploaded with the lastest patchset ...11:11
ogralool, 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 from11:18
ograyou probably see something obvious we both dont find11:19
dmartHi there... does anyone know why there were no armel daily-live images for the last couple of days?11:21
dmart20100108 seems to work well, but the more recent images seem to have no armel variants.11:22
ograhttp://people.canonical.com/~ubuntu-archive/livefs-build-logs/lucid/ubuntu-imx51/ doesnt indicate that there were any builds11:23
ogranot even attempts11:23
dmartIs that expected, or did something go wrong?11:24
dmarthttp://cdimages.ubuntu.com/ports/daily-live/ has 20100110 and 20100111, but they only seem to have ia64 and powerpc11:25
loologra: Does it relate to some other script?11:26
looldmart: That's when the build failed11:26
loolHmm someone dropped the weather report from the topic11:26
ogra_sorry reconnect11:28
loolAh perhaps only -mobile had it11:28
looldmart: http://qa.ubuntu.com/reports/ogasawara/weatherreport.html11:28
ogra_no hanging procs on the main buildserver11:28
ogra_i wonder why there are no buiold attempts then11:28
looldmart: So what it means is that either the ISO or the livefs failed to build11:29
looldmart: livefs http://people.canonical.com/~ubuntu-archive/livefs-build-logs/lucid/11:29
loolNo log at all   :-/11:29
dmartStrange11:30
ogra_right, as i said, no attempt11:30
ogra_x86 built though ... so the builds were not disabled11:30
loolThe crons certainly list armel11:32
ogra_right11:32
ADcomphello .. I'm happy :) .. Karmic is running fine on my new board ( http://www.technexion.com/index.php/thunderpack )11:32
ogra_great to hear11:33
=== ogra_ is now known as ogra
ADcompCan I add this board to "ARM/DeviceSupport" on ubuntu wiki  ?11:38
lool===== Downloading live filesystem images =====11:39
loolMon Jan 11 05:35:27 GMT 201011:39
loolRead error (Connection reset by peer) in headers.11:39
loolThat's how the CD build fail11:39
loolI suspect the livefs builder is down11:39
ograyep11:39
ograi pinged lamont already11:40
loolADcomp: Which kernel tree supports the board?11:41
loolADcomp: Does linux-omap support it?  linux?11:41
ADcomplool: 2.6.3111:42
loolADcomp: You mean naked linux 2.6.31 will support this board?11:43
ADcomplool: compiling this one : https://code.launchpad.net/~beagleboard-kernel/+junk/2.6-stable11:46
loologra: touch can be dropped at the start of the script11:46
ograthats from linux-omap11:46
ogralool, yeah, i noted that too, alex added it, but thats surely not the issue11:47
loologra: I'm reading it anyway, so better making comments on all things I see11:47
loolUBOOT_SIZE=$(wc -c $UBOOT_BIN |cut -d ' ' -f1) => stat much better11:48
ograi also want to switch to your ingenious way of creating the empty image without time loss11:48
ADcomplool: diff = http://pastebin.com/f60903eb611:48
loolstat -c %s foobar11:48
ogralool, yeah, i havent ported all the functions yet, stat will be used in the next iteration11:48
ograyep11:48
ograthe other script has a proper function for it11:48
loologra: The first partition seems too small to me11:49
ogra142848B11:50
ograogra@osiris:~/Desktop/uboot$ ls -l uboot-imx51_to3.bin11:51
ogra-rwxr-xr-x 1 ogra ogra 142952 2010-01-07 17:20 uboot-imx51_to3.bin11:51
loolYou changed FIS_SIZE to UBOOT_SIZE, but the FIS starts at offset zero of the disk while UBOOT starts at offset zero of the partition11:51
ograhrm11:51
ograyou are right11:51
loolYou need to add 512 to UBOOT_SIZE - 111:51
* ogra slaps forehead ...11:51
ograoh my !11:51
* ogra blushes 11:51
ograindeed11:51
ograasac, ^^^11:51
loolAh hold on, you actually seek and skip 1024 bytes in UBOOT_BIN11:52
loolWhere do these 1024 come from?  Is this padded?11:52
ograyes, so it needs to be 102411:52
ograno11:52
ogracould be 51211:52
asacwell.11:52
asaci am sure i did that11:52
asaci even aligned it to cluster sizes11:53
loolI don't understand what asac is saying; can I get a sample binary?11:53
asaclike looking what cluster size the real SD card would have and then see that11:53
ograasac, its not the cluster sizes or anything11:53
ograasac, the uboot partition is smaller than uboot itself11:53
asacsure. i aligned by 512 ... using integer match11:53
asace.g. so the size was bigger11:54
asacbut i wont remove the hope. so give it a try ;)11:54
asacmath11:54
loolasac: 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 padded11:54
asacits padded11:54
asacand i had a working uboot image with that ... just tat that partitioning was manually done on the SD before11:55
asaci seriously dont know exactly why its there, but it clearly worked here11:55
ograwe dont add any extra padding during package build11:55
ograso it should be unpadded11:56
asacright. but the .bin itself has probably a MBR at the beginning or something11:56
loolSo if it's padded, you need to remove 1024 to uboot_size when creating the partition11:56
ograit shouldnt11:56
asacfeel free to put the full .bin onto it11:56
loolWhat do you use as input?11:56
asaclool: remove size? why would a too big partition cause any issues?11:56
ogralool, input ?11:56
loologra: as input uboot .bin11:57
loolasac: It wouldn't be the issue, but it's still wrong11:57
asacthe uboot-imx51 package11:57
ograthe to3.bin from the current uboot-imx51 package11:57
asacyeah.11:57
ograand we dont pad it during build, i dont think it gets padded upstream, so there should be no padding at all11:57
asacogra: can you pload the DEBUG build?11:58
asacor want to wait f you find something here?11:58
ogragimme some time, i will upoload it with the rest of the default config changes later today11:58
loolI checked and it's padded with 0x400 bytes11:58
ograif we get the image going i'd like to add all changes in one go11:58
asacyes, so skipping 1024 makes sense11:59
loolYes11:59
ogra+ok, thats 102411:59
ogra-+11:59
loolUnless the first 4 bytes are a jump or something 'b601 00ea' not sure11:59
loolCertainly the next 1020 bytes are zeroes, so I'm tempted to think it's padded11:59
ograintresting, that must come from upistream then12:00
asacmost likely for if you load it into flash or something12:00
loolStupid openid prevents me from using my editor on the paste stuff12:00
asacyes12:01
asacthats annoying12:01
asaci want openid to go away for past.ubnutu.com12:01
asacyou cannot even wget the "download " link anymore12:01
loolasac: Exactly12:01
loolNot even with w3m which I think might actually process javascript; you hit a Continue button12:01
asaci complained now12:02
ograjust FYI, clementine needs a powercycle12:02
ogradmart, ^^^ the builder hangs12:02
loolIs the script kept in bzr somewhere?12:02
ogralool, not yet12:02
loolCan I patch it in place and send you the new version?12:02
ograwe're in very early stages12:02
asacogra was too lazy for that ... so we used pastebin ;)12:02
ograyeah12:02
asacsorry12:02
ograme ?!?12:02
ograbah12:02
* ogra throws a snowball at asac12:02
asacyes, you are the owner, so you are supposed to do that in bzr :)12:02
loolI don't know whom12:02
asaci am just the peer poking you12:03
ograpfft12:03
dmartFor 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:04
dmartIt has nothing to do with any notional block size on the device AFAUK12:05
dmart(afaik)12:05
looldmart: Agreed; we're just trying to get the math right12:05
loolWe're not writing the full image to disk as it would erase the partition table12:05
ogradmart, 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 build12:05
loologra: God12:06
dmartDunno there.  The U-Boot build process may add it.12:06
loolYou copied the PART1_ID_OFFSET="$(hex2dec 0x1c2)"12:06
loolThat's probably the issue12:06
asacit must be something before uboot12:06
loolOh no that's always correct12:06
loolNevermind  :)12:06
ograright12:06
ograi checked that manually12:06
asacogra: i found a bug in that12:06
loolI thought it was the offset of the data, not in the partition table12:06
asacbut that didnt change a thing12:07
asacogra: with sh the data fs partition string dding breaks12:07
asacyou have to wrap it with bash -c "..."12:07
asacotherwise that printf outputs 3 bytes12:07
ogranot here12:07
asacand you end up with this odd E.. FS partitoin12:07
asacogra: ppost what you have for fdisk -l12:07
asacfirst partitoin isnt Non-FS data iirc for you12:08
asacthats the bug12:08
ograogra@osiris:~/Desktop/uboot$ fdisk -l test.img |grep test.img112:08
ogratest.img1               1           1         139+  da  Nicht-DS-Daten12:08
ogralooks like it should12:08
asacstrange12:09
asacthen i dont know whats going on with my dash ;)12:09
asacit definitly is broke here12:09
ograits your vanilla kernel breaking it :P12:09
asacbah12:10
loolI had a check for the size of the partition and there is none here12:11
asacnone?12:11
loologra, asac: Do you have a run with debug output of the script?12:11
asacwhat did you try?12:12
asaci dont even know which version of the script you are using12:12
asacogra: can you push whatever you currently have to some bzr branch so we have the same baseline ;)?12:12
loolasac: I'm not using any; I'm changing the one ogra pinged me with earlier here12:12
loolI will give you an updated one fixing the issues I listed12:12
asaclool: so ogra gave you a script12:12
ograasac, waiting for what lool will send me and put that in bzr12:13
asacok. getting cigarettes ... hope its there after that12:13
asacwant to give it a try ;)12:14
asacnow that the bbg2 works12:14
ogralool, adding the 512 to UBOOT_SIZE doesnt change a thing here12:17
asacshenki: anything you needed from me?12:18
ograBBG U-Boot > fatload mmc 0:2 0x90008000 /uimage12:18
ograreading /uimage12:18
ograstill hangs there12:18
* asac out for cigarettes for real now ;)12:18
* lool pushes lp:~lool/+junk/uboot-image-script12:20
loologra: 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 output12:21
ograok12:22
ograUBOOT_SIZE=$(($(stat -c %s "$UBOOT_BIN") - 1024)) ??12:22
ograwhy do you subtract the padding ?12:22
ogra./uboot-image-script: 67: arithmetic expression: expecting primary: ""62914560" / 1024"12:24
* ogra checks12:24
loolI pushed sanity checks12:29
loologra: Looks like parted output is bofus12:29
ograah12:30
loologra: Could you send a set -x run output?12:30
* lool goes to lunch and will look at this when coming back12:30
ograwill do12:30
loolI will add further checks at the end of the script12:30
ograhmm, seems that trashed the uboot binary12:31
ogradoesnt get to a prompt12:31
ogralool, http://paste.ubuntu.com/354994/12:35
ograthe uboot binary is definately truncated in this version though12:36
asacone 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:36
ograhmm, we should pass [start] [size+start]12:37
asacyes12:37
* ogra will try that but needs some food too now 12:38
asacok repushed lp:~ubuntu-armel/+junk/uboot-image-script12:50
JamieBennettasac: Did you talk to lutin about the EFL stuff?12:54
asacthe inclusion thing? i told him to think about it12:56
asacbut he didnt like it.12:56
asachavent got a final decision yet12:56
JamieBennettasac: ah, OK12:57
dmartogra: Just looking at the script...13:00
dmart39: UBOOT_SIZE=$(($(stat -c %s "$UBOOT_BIN") - 1024))13:01
asacpushed a few fixes so it works oob here13:01
dmart40: log_run parted -s "$IMAGE" mkpart primary fat32 "512B" "$(($UBOOT_SIZE - 1))B"13:01
dmartThat makes the partition size = UBOOT_SIZE - 51213:01
dmartThis is `stat -c %s "$UBOOT_BIN"` - 1536... is the U-Boot binary getting truncated by the fs partition?13:01
dmartOn line 40, maybe you want UBOOT_SIZE + 512 - 1.13:01
asacdmart: pull again13:01
asaclp:~ubuntu-armel/+junk/uboot-image-script13:01
asaci already ensured that last parameter is END now rather than size13:02
dmartAh, that should work :)13:02
dmart(I think)13:02
ogradoesnt work here13:07
ograi still end up with a truncated uboot13:07
asactried my branch?13:07
ograyes13:08
ograjust zeroed my Sd to make sure its actually using the proper image13:08
asacogra i get uboot promot ;)13:09
ograi dont13:09
ograIn:    serial13:09
ograOut:   serial13:09
ograErr:   serial13:09
ograNet:   FEC0 [PRIME]13:09
ograthats it13:09
ograhangs there forever13:09
asacIn:    serial13:09
asacOut:   serial13:09
asacErr:   serial13:09
asacNet:   FEC0 [PRIME]13:09
asacHit any key to stop autoboot:  013:09
asacBBG U-Boot > mmcinfo13:09
ograeven powering off the board doesnt change it13:10
ograwhats the imagezize you give on the cmdline ?13:10
asac./uboot-image-script ../out.img ../data/vmlinuz-2.6.31-601-imx51 ../data/uboot-imx51_to3.bin 90M13:10
ograoh, you give it in M13:11
asacyes13:11
asacits in M ;)13:11
* ogra tries that13:11
* asac thinks about building his own uboot on jocote13:11
* asac has never seen the .bin work there ;)13:11
asacare you sure it ever worked?13:11
asacogra: can you create the partitions manually and see if that really helps still?13:12
ograoh damned !!!!13:12
asacjust want to be sure we are not running after a bad horse13:12
* ogra durses chromium13:12
asacwhat?13:12
ogra*curses even13:12
asacheh13:12
asaccrashed?13:12
ograit created a ton of scripts on my desktop13:12
ograenumerating them13:12
ograinstead of overwriting when i download a new version13:13
ograso i copied the same all the time into my workdir :P13:13
asacyes13:13
asacogra: use bzr branch ;)13:13
asacbzr ftw13:13
* asac schedules a bzr brain-wash session for sprint13:14
ograheh13:14
ograstill not reading uImage though13:15
asacyes13:15
asacogra: we need the DEBUG build asap13:15
asacwe are moving in circles ;)13:15
asacmaybe we just see whats going on there13:15
* asac hopes13:15
ograwhat 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
asacogra: 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 parted13:16
ogranah13:16
ograthen i'd rather use fdisk scripts13:16
asaci want to see details13:16
asacwe dont see anything atm13:16
ograwe do13:16
ograjust wait about 20min13:17
ograuboot will restart13:17
asacwhat does that tell you?13:17
ograand will exec the commands over again ... then it shows a bad CRC for the image13:17
asacso are you 100% sure that the current .bin works right if you do the part table manually?13:18
ograit worked before, yes13:19
ograi'm still using the one from friday which worked fine13:19
asacwhat partition sizes did you use there?13:19
ograhmm, doesnt seem like uboot for imx has any debug config options at all13:24
asacbut fat.c etc.13:26
asacthey want -DDEBUG13:26
ograNumber  Start    End        Size       Type     File system  Flags13:26
ogra 1      1024B    143359B    142336B    primary13:26
ogra 2      143360B  63058431B  62915072B  primary  fat32        lba13:26
ograthe first partition is to small13:26
ograogra@osiris:~/Desktop/uboot$ ls -l uboot-imx51_to3.bin13:27
ogra-rwxr-xr-x 1 ogra ogra 142952 2010-01-07 17:20 uboot-imx51_to3.bin13:27
ogra616 bytes to small13:27
ograhow did we get there ?13:27
ograerr13:28
ograuboot_start=1024 ???13:28
ograwhy 1024 ?13:28
loologra: So the /boot partition is miscomputed13:28
asacotherwise the script will bail out below13:29
loollog_run parted -s "$IMAGE" mkpart primary fat32 "$((${PART1_END_B%B} + 1))B" "${BOOT_SIZE}B"13:29
asacmaybe that was a bug in first place13:29
loolThat should be PART1_END + 1 + BOOT_SIZE as second arg13:29
lool(end)13:29
loolInstead of size13:29
ograyes13:29
ograwe use that for redboot though13:29
asaclool: is that in latest?13:29
loolAlso, it's inclusive, so you can substract one13:29
ograi wonder why it doesnt break there13:29
loolasac: Dunno, I'm working of my branch13:29
asaci thought i made it use end everywhere now13:29
ograasac, 1024 is way to much offset for the start13:30
asacthe ~ubuntu-armel branch13:30
asaci fixed13:30
loolOh13:30
ograasac, 512 for the MBR ...13:30
* lool merges13:30
asaci fixed a bunch ;)13:30
loologra: 512 for MBR, 512 for part table?13:30
ograerr, yes13:30
asacmbr has part table included13:30
ograwell, 512 for offset :)13:30
ogra1024 leaves a gap13:31
asac    die "UBoot partition starts at $PART1_START_B but needs to start at 1024B for the ROM to find the bootloader"13:32
asacthats why we needed it13:32
loolHmm actually 512B is enough for both13:32
ograthats nonsense13:32
asacso either we need to adjust that or 1024 is ok13:32
ograwhere did you get that from ?13:32
asacgood13:32
loolasac: Why do you start the partition at 1024B instead of 512B?>13:32
asaclets use uboot_start there13:32
asacand use that in both places ;)13:32
* asac commits13:32
loolasac: I merged though, you might have to merge now13:33
ogra /me branches this time13:33
ograsilly chromium13:33
asacdone13:33
lool-log_run parted -s "$IMAGE" mkpart primary fat32 "512B" "$(($UBOOT_SIZE - 1))B"13:33
lool+log_run parted -s "$IMAGE" mkpart primary fat32 "${uboot_start}B" "$(($UBOOT_SIZE - 1 + $uboot_start))B"13:33
loolThat doesn't make any sense to me13:33
asacerr. thats bad habit ;)13:33
asacanyway13:33
asacmerging13:33
loolasac: Why did you add uboot_start?13:34
asacso we can just flit one var now ;)13:34
loolasac: Yes but it used to start at 512B, right?13:34
asaclool: you added the die check so i fixed the start ... and made a variable out of it13:35
asacso now we go back to 51213:35
asacok merge mess finished13:35
loolGah13:37
looluboot_start doesn't mean the same thing now13:37
loolUBOOT_SIZE is wrong now13:38
asacyes. thats an oversight13:39
asacshould use the same13:39
asacwell13:39
asacnot13:39
asacUBOOT_SIZE 1024 is the padding13:39
asacthe uboot_start is the partition start13:39
asacthe dd is wrong a bit yes.13:40
asacno. no idea what you meant by the die test13:41
loolOk fixed now13:41
asaci definitly used thie uboot_start only for partition bits13:41
loolI renamed to PART1_START and added a real UBOOT_START if you prefer that13:41
asacok13:42
asacwhatever works ;)13:42
asaclool: thats not good13:42
asac"136376 - "1024""13:42
asac./uboot-image-script: 44: arithmetic expression: expecting primary: "136376 - "1024""13:42
* asac fixes13:42
asacdone13:43
ogra + 1 - 1 ?13:44
ograwhy dont you just drop +113:44
loologra: To avoid someone adding +1 again  :)  there wasn't any in the first version AFAIR13:45
loolThat's odd, I didn't know $(()) wasn't doing expansion13:45
ograuboot-image-script/uboot-image-script: 44: arithmetic expression: expecting primary: "142952 - "1024""13:45
ogradoesnt change a thing for me13:45
asacodd. on bbg2 reset powers off13:46
asac;)13:46
loolYup13:46
ograold bug13:46
asacyes. wasnt sure that uboot reset command has same effect13:47
asacericm_: cooloney: hi13:47
asacericm_: cooloney: any update on kernel upload?13:47
ograhe mailed the kernel list with a pull request13:50
ograi guess its up to apw to pull and roll now13:50
asacogra: btw, replacing ../out.img with /dev/mmblk0 ... it doesnt help ... isnt that the way you did it?13:50
asaccool13:50
ericm_asac, marvell patch rebase finished but seems there are many issues with recent lucid13:50
ogranot atm, no13:50
ericm_asac, will check with NCommander for that13:51
asacogra: how did you create the good partition table?13:51
ograasac, i roll an image and dd it currently ...13:51
ericm_asac, I've already sent the status report but would like to hold on for a while til those issues are solved13:51
ograi dont have a good part table atm ...13:51
asacogra: but how did you do it when you had that13:51
asac;)13:51
asacericm_: what issues are those?13:51
asacdo we have bugs tracking the progress?13:51
ograbefore i used lool's way of creating an empty image with a 512 byte blocksize and used that value for fdisk -C13:52
ericm_asac, gdm or gnome-panel respawned again and again13:52
ericm_asac, and X constantly freezes up13:53
ograyou should be able to do the same by: fdisk -C $(($(stat -c %s $imagename) / 512)) $imagename13:53
ograor some such13:53
ericm_asac, have already checked with Marvell on those issues and no solution yet - I'll ping them more frequently on these13:54
loologra, asac: Could you test the latest version?13:55
asacsure13:55
* ogra pulls13:55
* asac dds13:56
* ogra too13:56
apwogra, what are you waiting for me to do?13:56
asacapw: upload imx5113:56
asackernel13:57
ograapw, [Lucid] Git pull request for fsl-imx51 branch upload13:57
ograapw, from kernel-team@13:57
apwyou are desiring it be the a-2 kernel?  willing to take the pain?13:57
ograapw, we*re waiting for an upload13:57
ograapw, right13:57
ograit has been tested on friday by a bunch of us13:57
ograas long as aufs isnt meesed up it should be a fine kernel for A213:58
asaclool: same issue. hanging on loading uimage13:58
loolasac: So this is on B2.0?  Could you paste full boot output?13:58
ograsame on 2.5 here13:58
=== ericm_ is now known as ericm-Zzzz
loolasac, 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
apwogra, as you tested it on friday you know its good yes13:59
asaclool: http://paste.ubuntu.com/355017/13:59
asacseems the sso was removed!!!13:59
apwand if its not you can live with it13:59
ograapw, under the assumption that cooloney didnt change anything :)13:59
loolasac: SSO?13:59
asacsignle sign on13:59
asacon paste.u.c13:59
loolasac: Oh nice13:59
asaci ad to add my nick again ;)13:59
loolasac: Can you fatls without hanging?13:59
ogralool, http://paste.ubuntu.com/355018/14:00
ograsame for me14:00
asaclool: yes14:00
asacwe always could do that14:00
ograright14:00
asacwhich is why i would like to have a uboot DEBUG build14:00
ograonly loading doesnt work14:00
asacto see whats going on ;)14:00
loolAre you guys sure of your load address?  It's not overwriting some important area?14:00
asacwe had it working14:00
asacwith good partition table14:00
asacbut i had a different uboot.bin ... so i rely on ogra saying that his image is good too for that14:01
loolDid one of you two re-run the latest version with the check?14:01
ogranot yet14:01
asacBBG U-Boot > fatls mmc 0:2 3062220   uimage14:02
asac1 file(s), 0 dir(s)14:02
asaclool: which version?14:02
loolr1914:02
asacyou mean the script or the uboot.bin?14:02
loolscript14:02
asacyes14:02
asacthats what i am trying14:02
loolSo the test passes?14:02
asachangs on uimage loading14:02
asacit didnt fail ;)14:02
asaclet me double check14:02
ograneither here14:02
loolOk good14:02
asachttp://paste.ubuntu.com/355025/14:03
asaclool: ^14:03
loolWell 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 back14:03
loolThat would rule out mcopy14:03
ograright14:03
* asac does that14:04
asacwell i have the uImage here in CWD14:04
asacPWD14:04
asacso i will just copy that after mounting the SD14:04
loolasac: I added code to rm it in the latest version14:04
asacheh you remove the uImage now ;)14:04
asacsabotage14:05
* asac recreates14:05
ograhangs here14:05
ograoh, wait, i used the wrong uimage :P14:05
asachangs too14:05
loolSo I think we need to find a working image again and replace the uboot.bin and the uimage14:06
asaci used the right one14:06
asaclet me check if i really wiped mine14:06
ograhamgs14:07
ogra*hangs14:07
asacyes14:07
asaci have it ;)14:07
asachere14:07
ograone sec14:07
asacwe can dd off the partition table ;)14:07
ograi have a FSL binary14:07
asacit works14:08
asachttp://paste.ubuntu.com/355027/14:08
asacbut that doesnt use the .bin by ogra14:08
asaci had my own in december14:08
asacwhich i used to create that14:08
loolI added code to use tempfiles properly14:09
asacok14:09
loolasac: Let's replace the .bin then14:09
ograhttp://people.canonical.com/~ogra/uImage14:09
asaclool: then i dont even have that image anymore :)14:09
loolasac: ?14:10
asaci have it on a SD card only14:10
loolI mean copy the working .bin in the non-working image (if it's smaller than ogra's .bin)14:10
asaclet me see if i can dd it14:10
asaci dont have that .bin anymore :(14:10
asacit died with the USB harddrive14:10
ogralool, the uboot.bin wors fine14:10
asacand i dont know the size anymore14:10
loolasac: 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 one14:10
loologra: Did you ever boot a kernel with the uboot.bin?14:11
ograseveral14:11
asacyes14:11
ograBBG U-Boot > fatload mmc 0:2 0x90008000 /uimage14:11
ograreading /uimage14:11
ogra2211052 bytes read14:11
asacwe.. i never saw the current .bin working. but i will now manually create the part table etc. and see14:11
ograthats with the fslk uimage14:11
asacogra: so how do you create that part table14:11
ogra*FSL14:11
loolasac: Add UBOOT_SIZE=$((12 * 1024 * 1024)) after UBOOT_SIZE= in the script and dd 10 MBs of your SD14:11
asaccan you post that script please14:11
asaclool: yes. let me check14:11
ograasac, i used the script14:11
asacogra: so all is fine?14:12
ograno14:12
ogralet me try something, one sec14:12
asacwhy did it work for you then?14:12
ograasac, did you use the uImage i just posted ?14:12
asacno. i used mine14:12
asace.g. the one created by the script14:12
asaca few minutes ago14:12
loolI added copyright to the script, since we all work for Canonical, right?  ;)14:13
asacyou want me to test that?14:13
lool(I picked a BSD style header)14:13
asacwe are supposed to use GPLv3 (not later) ;)14:13
ograok14:14
asacpersonally fine ;)14:14
ograso14:14
* asac waits for ogra14:14
ograi create the image which i dd with the script14:14
ograthen mount the second partition (leaving nautilus do that)14:14
ograand then just cp the other uImage in place14:14
asacok14:14
ograthat seems to work14:14
asacodd14:15
loolSo it would be the uImage?14:15
asachow did you produce that?14:15
loollets check the mkimage args14:15
asacogra: ?14:15
ograwhat ?14:15
asachow you produce the uImage that works14:15
ograi dont14:16
ograits a binary FSL offers14:16
ogra2.6.2814:16
ograold kernel14:16
asacok14:16
ograthats why i made us look at mkimage for two days last week14:16
loolSo with uboot-image-script + FSL uImage, it works?14:16
ograoh, wait !14:16
ogranow it hangs14:16
ogralool, no, it doesnt14:17
ograi missed a reformat in the above descriptopn14:17
asacogra: doesnt help14:17
asacBBG U-Boot > fatload mmc 0:2 0x90008000 uimage114:17
asacreading uimage114:17
asachangs14:17
ograi forgot i had run one mkfs.vfat when you asked14:17
ograto rule out mcopy :P14:17
loolSo uboot-image-script + mkfs + FSL uImage works?14:18
ograright14:18
loolWhat about uboot-image-script + mkfs + our uImage?14:18
ograwithout mkfs it doesnt14:18
loolasac: Could you confirm?14:18
asacwhat mkfs should i run?14:18
loolI guess mkdosfs -F32 /dev/sdcard214:18
asactrying14:19
loolthen write our uImage and FSL uImage and see what you get14:19
asacsure14:19
ograogra@osiris:~/Desktop/uboot$ sudo mkfs.vfat /dev/mmcblk0p214:19
ogramkfs.vfat 3.0.3 (18 May 2009)14:19
ograogra@osiris:~/Desktop/uboot$ cp ../uImage /media/37B5-7516/14:19
asacgot that14:19
ograthats what i do here14:19
loologra: You used mkfs.vfat?  Could you try mkdosfs -F32 instead?14:19
loolSo that we can rule out various things in the script14:19
ograwill try14:19
ograbut the above works definately14:20
asackernel in bad state. thinks its mounted14:20
ograpoor you14:20
ograget better HW :)14:20
asacsudo mkdosfs /dev/mmcblk0p214:20
asacmkdosfs 3.0.3 (18 May 2009)14:20
asacmkdosfs: /dev/mmcblk0p2 contains a mounted file system.14:20
loolProbably because of the hang14:20
loolasac: dd zero to it first14:20
asacok let me check14:20
loolasac: It's a mkdosfs bug I guess14:20
* asac puts fresh img on sd14:21
asacogra: so what mkdosfs are you running? without F32?14:21
loolRight, rewriting the image is enough as well14:21
asacdidnt help14:21
ograaha !14:21
asacits really bad kernel14:21
asacrebooting14:21
loolThat's odd14:22
ogramkdosfs -F32 makes it hang14:22
asacogra: does the trick help withour uimage?14:22
loolCool14:22
loologra: Try -F1614:22
* asac checks that14:22
loolIt's small enough to be FAT1614:22
loolI'm pretty sure mkfs.vfat might pick FAT 16 if it's small enough14:22
loolIf  nothing  is  specified,  mkdosfs  will  automatically select  between  12, 16 and 32 bit.14:22
loolFrom the mkfs.vfat man page14:22
asaclool the script is busted14:22
loolasac: How so?14:23
asachttp://paste.ubuntu.com/355033/14:23
asacprobably your tmp stuff ;)14:23
ograBBG U-Boot > fatload mmc 0:2 0x90008000 /uimage14:23
ograreading /uimage14:23
ogra2211052 bytes read14:23
ograYAY !14:23
ogra-F16 FTW14:23
loolasac: thanks14:23
ograoh my14:23
loolasac: Apparently can;t put the X where I like14:23
ograthat costed so much time for nothing14:23
asachaving double "14:23
asac?14:23
asacogra: we started with F16 not working ;)14:24
loolasac: that's fine14:24
loolasac: see the mktemp error14:24
ograwell, it works14:24
asacyeah14:24
* asac backs it out locally to get something going14:24
* ogra tries our uImage now14:24
loolasac: Fixed and fixed 16 bits too14:25
asacgood14:25
loolAnd moved the set -e so that mktemp fails the script14:25
asacright14:25
ograhmm14:25
ograhangs14:25
loolSo uImage is next I guess?14:26
ograyeah14:26
ograogra@osiris:~/Desktop/uboot$ mkimage -l ../uImage14:26
ograImage Name:   Linux-2.6.31-170-ga88b88214:26
ograCreated:      Sun Dec  6 23:57:01 200914:26
ograImage Type:   ARM Linux Kernel Image (uncompressed)14:26
ograData Size:    2210988 Bytes = 2159.17 kB = 2.11 MB14:26
ograLoad Address: 0x9000800014:26
ograEntry Point:  0x9000800014:26
loologra: 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 image14:26
ograogra@osiris:~/Desktop/uboot$ mkimage -l uimage14:26
ograImage Name:   LinuxRocks14:26
ograCreated:      Mon Jan 11 15:07:33 201014:26
ograImage Type:   ARM Linux Kernel Image (uncompressed)14:26
ograData Size:    3062156 Bytes = 2990.39 kB = 2.92 MB14:26
ograLoad Address: 0x9080000014:26
ograEntry Point:  0x9080000014:26
ograoh14:26
ograthe adresses differ14:26
loolNot the same kernel though14:26
asacon my other image it doesnt matter14:27
asacwhat you put on the load address etc.14:27
loolTss someone got the address wrong   ;)14:27
asacits all the fatload14:27
loolasac: What do you mean?14:27
loolasac: if the address is wrong or the kernel differ, you might erase important memory or use a different code path in uboot14:27
asacthe uImage works perfect on my SD that has my hadcrafted stuff14:27
loole.g. if the kernel is bigger or the address different, it could erase other memory14:28
loolAlso the kernel boot stuff might have changed across the versions14:28
asaci am saying that exactly the uImage we are now producing works on my SD card :)14:28
loolasac: With which uboot?14:28
asacand i can boot it14:28
asacthe same version14:28
ograhmm, still hangs with our image14:28
asaccould be its the previous code drop14:28
loolOk so our uboot + out uImage work?14:28
asacfrom FSL14:28
asacmy uboot works with our uImage14:29
asacout uboot doesnt work even with the F32 dropped14:29
loolBut our uboot doens't work with our uimage?14:29
asacso i will check the Load Address now14:29
loolOk14:29
asacyes14:29
asacmy uboot works with everything14:29
loolEven the load address?14:29
asacthe Load Address is completely irrelevant14:29
ograbut you dont use mkimage from the archive14:29
loolYeah it's overruled14:29
asacyou specify the load address on the fatload promt14:29
asacprompt14:29
loolYeah14:29
asacand thats what is used14:29
asacright14:29
loolThe entry point might matter though14:30
asacanyway. let me still try ;)14:30
loolIt's wrong too14:30
asacdoesnt matter for my other image14:30
asacwell. atr least that one works ;)14:30
asaclet me check14:30
asacusing 0x90008000 for both now14:30
ogralool, i'm testing with the same avlues FSL uses and it doesnt work14:30
asacright.14:31
ograasac, so which mkimage do you have installed atm  ?14:31
asackarmic14:32
ograthe one from the archive or the one from source14:32
asackarmic archive14:32
asacmaybe its oosync?14:32
ograshouldnt be14:32
asacdid you update the archive?14:32
ograno, i dont touch mkimage14:32
asacyeah14:32
asacbut i dont think its mkimage14:32
ograi uploaded a fresh uboot bin today though14:32
asacwhatever i do it works with the other uboot thing i had14:32
ograbut that should only just have built now14:32
asacok14:33
ograthere were a bunch of new patches14:33
ograwe migh want to try that binary14:33
asacyeah14:33
asacnot sure what changed though ;)14:33
ogra0064-ENGR00119505-MX51-BBG-Change-DDR2-settings looks intresting14:34
ogra0065-ENGR00119526-MX25-Fix-mmc-read-write-failure-on-mmc too14:34
ograthe others are rather generic or other mx platforms14:34
asacok so the fsl image really works14:35
asacwhich is strange ;)14:35
ograyes14:35
ograand the worst is, there is no documentation to find anywhere how it was produced14:35
ogramkimage -l is all i can get14:35
ograwhich is how i found my load address and entry point defaults for initial testing14:36
asaci really think its just the size difference14:36
ograi doubt that14:36
asacat that stage uboot doesnt do much with it14:36
asacjust parse header and load to mem14:36
ograi managed to boot your uImage too last week, remember ?14:36
asacthe uImage we produce works fine on my other SD card14:37
ograwith a fully manually created SD14:37
asacyes. but my uboot from december works for everything14:37
asacyou cannot break it14:37
asac;)14:37
ogrado 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 drops14:37
asaci used mx51 ... it was the last code drop14:37
asac(e.g. the first uboot 2009.08 we had)14:38
asacogra: no. it was the new config14:38
ograah, yeah, the config was redone afterwards14:38
asacjust not the same code drop we are using now14:38
ograhmm14:38
asacthe one before14:38
asacand i build it in karmic14:38
ograright, i use the same14:38
ograbut from the package14:38
asacthose are the different parameters14:38
asackarmic + old code drop14:38
ograbuilt in lucid on a babbage14:38
ograsmae code drop14:38
asacogra: the package is the december code drop, isnt it?14:39
ograbut from the package14:39
ograwas14:39
ograuntil today14:39
asacyes. but i used the one before that14:39
ograthe one i use is the same as yours14:39
asacyou went back?14:39
asacto Nov?14:39
ograwe had no .08 drop before that14:39
asacodd14:39
asacmy image was produced on Dec 0714:39
asacmaybe the last karmic code drop already had that?14:39
ograthe dec. drop i uploaded right before my holidays has the forst 2009.0814:40
asacyes, but thats after 07 Dec14:40
ograand was the first code drop i ever published14:40
asacso it means there was a 08 code drop before14:40
ograwhere did you get that ?14:40
asacogra: you uploaded the one from before somewhere14:40
asacand i took that14:40
ograhmm14:40
asaclet me check if i still have it14:40
* ogra looks at chinstrap14:41
asacdeleted it :(14:41
ograwell, its nothing we can use anyway14:41
ograand i think its more a prob of karmic vs lucid building14:42
loolasac: Try using our kernel in FSL image?14:42
ograwhich remonds me, we likely dont have a dove lucid build either14:42
loolmkimage it with FSL args and put it on a copy of the FSL image?14:42
ogra## Booting kernel from Legacy Image at 90800000 ...14:44
ogra   Image Name:   LinuxRocks14:44
ogra   Image Type:   ARM Linux Kernel Image (uncompressed)14:44
ogra   Data Size:    3062156 Bytes =  2.9 MB14:44
ogra   Load Address: 9000800014:44
ogra   Entry Point:  9000800014:44
ogra   Verifying Checksum ... Bad Data CRC14:44
ograERROR: can't get kernel image!14:44
ograaha14:44
asaclet me build a .bin in karmic chroot14:45
loologra, 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 call14:46
loolCan't help you much more without hardware I'm afraid14:47
ograyeah, thanks so much14:47
asacthats ok ;)14:47
* ogra hugs lool 14:47
asacthanks a lot14:47
loolnp14:47
* ogra has david call in 10 ...14:47
ograasac, so resetting the board with a configured uboot gets me the above with our uimage14:48
ograBad Data CRC seems the prob here14:48
asacyes. we need debug in fat and so on14:48
asaci am sure that there must be issues during loading things14:48
* ogra tries the new uboot.bin14:49
asacnew?14:49
ogratodays14:49
asacah14:50
asacso on karmic we build with -marm14:50
asacis that the case for lucid too?14:50
ograyes, its upstream in 2009.0814:51
asackk14:51
ograi dropped the patch today14:51
ograyou said you didnt have to patch the inline functions for your build14:52
asacno clue. it was the code drop we dont have anymore. i applied all the upstream patches and made a build without packaging14:52
asacso yeah. most likely14:53
asacupstream==fsl14:53
ograhmm, i wonder why gcc didnt choke on the inline functions14:53
ograare you sure you used gcc 4.4 ?14:54
ogra4.4 will definately not accept them14:54
* ogra needs coffee for the call 14:54
asacogra: yes. i did the same i remember now (looking at the patch)14:56
asacor i used static inline14:56
ograok14:58
* ogra is our for 1h15:42
asacapw: so i think we didnt come to a conclusion on the kernel upload. will that just happen tomorrow?16:17
apwasac, sorry?16:17
apwshould i not be uploading?16:17
asacnono ... it _should_16:19
plarswhat happened with the livecd builds over the weekend?16:22
armin76asac broke them16:22
loolplars: clementine needs a reboot16:27
loolplars: IS is aware16:27
apwasac, ok well it'll happen as soon as i can get the damn thing to build correctly ... its resisting16:34
asachmm17:02
asacok17:02
apwasac, its on the buildd17:05
asacapw: rock!!!17:05
apwyou get to keep both pieces :)17:06
asacheh17:06
asacogra: did you enable ext2 in latest .bin already?17:14
ograasac, no, should i ?17:29
ograasac, in my testing it didnt change a thing, loading hung with etx2 was well as with vfat17:33
ograapw, "* drop a number of modules no longer built" what are these ? is there a list ?17:34
dmartdisconnect17:45
dmart...er...17:45
ameyaHi everyone!21:06
ameyaHas anyone tried building lucid rootfs (ubuntu-minimal) with rootstock?21:07
rcn-eeameya, 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-lucid21:07
ameyaI am using the same21:09
ameyaI received "ubuntu-minimal: Depends: ureadahead but it is not going to be installed"21:10
ameyaand finally Kernel panic - not syncing: Attempted to kill init!21:10
ameyaI: Killed ...21:10
rcn-eeweird...  my daily test build worked this morning: http://rcn-ee.homeip.net:81/dl/daily/ubuntu-lucid.log21:11
rcn-eeactually my "xfce4 image" worked after the 'ubuntu-minimal' kernel panic'd...  I'd give it another try, lots of changes going on...21:13
ameyaI am using: project-rootstock/lucid-support : 3321:13
ameyaI checked at packages.ubuntu.com that ureadahead for lucid is only available for amd64 and i38621:17
ameyaif ubuntu-minimal depends on ureadahead then won't it create a problem?21:17
rcn-eepackages.ubuntu.com doesn't list arm, it's here: http://ports.ubuntu.com/pool/main/u/ureadahead/21:18
ameyaohhh! thanks :)21:18
ameyacan you tell me your command for building lucid?21:19
ameyaI will try again21:19
rcn-eeameya, 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 lucid21:21
ameyahmm21:21
loolameya: ubuntu-minimal wont depend on ureadahead on an arch if it's not available21:22
lool(germinate does check that)21:22
ameyalool, Thanks!21:23
plarstrying alternate on dove and seeing a debootstrap error configuring required packages, anyone tried alternate recently and seen that?22:01
plarsNCommander maybe? ^22:01
plarsodd, seems to still be making progress in the background even though I didn't tell it to continue yet22:01
NCommanderplars, ugh ....22:33
NCommanderplars, can you check the imx51 alternate as well?22:33
plarsNCommander: not at the moment22:38

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