**** BEGIN LOGGING AT Thu Jan 07 02:59:56 2010 Jan 07 03:51:43 Hello people of #ubuntu-arm! Jan 07 03:51:50 Hey zooko` Jan 07 03:52:05 Suppose I know that on a certain ARM CPU algorithm X takes 60,000 cycles per use and algorithm Y takes 15,000 cycles. Jan 07 03:52:45 Now, I want to know if the difference between these algorithms would be significant in terms of battery life. Jan 07 03:52:55 Depends on what you're doing in general. Jan 07 03:53:00 Supposing your ARM CPU is battery powered, and you execute one or the other of these algorithms a few thousand times. Jan 07 03:53:16 If most of the processor time of the system is spent in the algorithm, you'll likely do better with the one that takes less cycles. Jan 07 03:53:34 If most of the processor time is spent rendering html, then it doesn't matter as much :) Jan 07 03:54:28 So, we should be able to estimate whether 45,000 cycles times let's say 1000 executions of the algorithm adds up to a significant or insignificant fraction of your battery, maybe? Jan 07 03:54:51 I'm not sure there's a direct relation. Jan 07 03:55:03 Generally, the more you spin the processor, the more power it uses. Jan 07 03:55:15 Isn't it linear? Jan 07 03:55:16 But, depending on the processor, some operations may take more power than others. Jan 07 03:55:25 Hm, because of RAM access? Jan 07 03:55:45 No, because of processor design. Jan 07 03:55:48 The algorithm that takes more CPU cycles also uses tables in RAM a lot. Jan 07 03:55:57 Where the other one just does a whole bunch of arithmetic. Jan 07 03:56:17 Let's say I have two processors that support vector operations. One does this with a parallel matrix, and the other spins really, really fast over the operations. Jan 07 03:56:34 These are going to have different power characteristics for the same instruction sequence. Jan 07 03:57:04 Right. Jan 07 03:57:15 So this page here says http://www.arm.com/products/CPUs/ARM_Cortex-A8.html Jan 07 03:57:24 0.59 mW/MHz. Jan 07 03:57:35 I think that means that 45,000 cycles times 1000 executions is Jan 07 03:57:51 26 W Jan 07 03:57:56 I may be mistaken, but I believe that is for the reference implementation, which may or may not be the implementation on any actual processor in the wild. Jan 07 03:58:22 Yes there is a big disclaimer right below that. Jan 07 03:58:36 Do you know how to get a number drawn from a real implementation? Jan 07 03:58:43 Say, one running Ubuntu that you happen to have at hand? :-) Jan 07 03:58:48 Note that it also says "power with cache". If the algorithm that uses lots of RAM happens to exceed the cache, you may end up with unexpected latency of operation when polling RAM. Jan 07 03:59:20 I wouldn't be able to measure that: there's something wonky with the battery meter in my device. Jan 07 04:00:24 Anyway, is 26 W a significant amount Jan 07 04:00:33 Depends on the battery. Jan 07 04:00:36 huh-oh it is time for me to stop using electric lights and computer screens. Jan 07 04:00:44 If you're talking about a watch, yes. If you're talking about a workstation, not really. Jan 07 04:00:47 How big is the battery in your favorite smartphone Jan 07 04:01:01 Plus, 26W doesn't really mean anything without the context of runtime. Jan 07 04:01:16 Yes it does -- I want to know 26W per battery recharge. Jan 07 04:01:25 Is that going to mean I have to recharge more often, or is it negligible. Jan 07 04:01:29 I don't believe in smartphones :) But let's say something like 3Wh Jan 07 04:02:06 So 26W would drain the battery in something like 20 minutes. Jan 07 04:02:21 This here nexus one thingie http://www.google.com/phone/static/en_US-nexusone_tech_specs.html says 1400 mAH Jan 07 04:02:28 At what voltage? Jan 07 04:03:19 I'd guess it's probably about 1.8V, so somewhere like 2.5Wh Jan 07 04:03:22 Hrm, doesn't say. Jan 07 04:03:24 Ok. Jan 07 04:03:59 Okay so this tells me that this quick kludgey approximation shows that this difference is significant. Jan 07 04:04:09 Which means I have to approximate more carefully if I want to know if it is *really* significant. :-) Jan 07 04:04:11 Well, if you need to run the operation constantly. Jan 07 04:04:33 The estimate I was just doing was "if you want to do this thing 1000 times in a row" Jan 07 04:04:44 and the thing costs either 15,000 CPU cycles or 60,000 CPU cycles each time. Jan 07 04:04:53 Right, but you measured it in watts, which is energy/time Jan 07 04:05:06 So without knowing how long it takes to do it 1000 times in a row, it's meaningless. Jan 07 04:05:11 Wait if it has 2.5 Wh and you draw (let's say) 25 W doesn't that mean you drain it in one hour? Jan 07 04:05:17 No. Jan 07 04:05:20 That's 6 minutes. Jan 07 04:05:22 Oh, I'm really confusde. Jan 07 04:05:33 OK. Jan 07 04:05:36 2.5 Wh is ability to provide 2.5 W for 1 h. Jan 07 04:05:37 ? Jan 07 04:05:48 So, energy is voltage times amperage Jan 07 04:05:59 And power is energy divided by time Jan 07 04:06:09 So 2.5Wh is a measure of energy (power * time) Jan 07 04:06:17 It's 2.5W for an hour, or 25W for 6 minutes. Jan 07 04:06:25 Ok. Jan 07 04:06:39 Or 1W for 2.5 hours. Doesn't matter. Jan 07 04:06:48 Okay that makes sense. Jan 07 04:08:04 Now, if there is a rough guide that x operations / second = x joules / second (1 watt = 1 joule / second), we can estimate the number of joules required for an operation. Jan 07 04:08:14 Waitasec, why are batteries measured in power * time. Instead of just in power. Jan 07 04:08:19 Err. Jan 07 04:08:28 And if there is *no* latency, we can then estimate the number of operations available for a given energy budget. Jan 07 04:08:44 Hm. Jan 07 04:08:45 Because batteries contain an amount of energy, rather than an amount of power. Jan 07 04:08:56 I see. Jan 07 04:09:14 Batteries usually have upper and lower limits of power draw, but they can only present power to the total amount of stored energy. Jan 07 04:09:37 That makes sense. Jan 07 04:09:47 So, the average 3Wh battery you buy on the street probably can't be configured to give 3MW even for 3.6 milliseconds. Jan 07 04:10:23 And it probably can't handle a draw of 1 nanowatt for centuries. Jan 07 04:10:48 :-) Jan 07 04:10:50 But for sane values, it's usually safe to assume that one is operating within the battery contraints, and just treat it as an energy storage device. Jan 07 04:11:27 Right. Jan 07 04:13:04 So, as long as we're doing wild speculation on potentially invalid specs, we can roughly say that <0.59mW/MHz is <0.59mJ/MOps Jan 07 04:13:24 Running 45,000 operations 1,000 times is about 45MOps Jan 07 04:13:52 So that's something like 26.5 mJ Jan 07 04:13:54 Right. Jan 07 04:14:47 Note that not every processor operates at one operation per clock cycle, so we're already in largely invalid calculations. Jan 07 04:14:47 No I think 26.5 J Jan 07 04:14:59 * zooko` nods Jan 07 04:15:03 0.59 * 45 = 26.5 Jan 07 04:15:07 So the unit doesn't change. Jan 07 04:15:19 I'll run real benchmarks for time, but I'm not sure how to benchmark energy usage. Jan 07 04:15:51 It's usually done with power meters on development boards. Jan 07 04:16:07 Yes, but you left out the 1000 time. Jan 07 04:16:23 More usefully, it's probably going to be less power to run the algorithm that requires fewer operations, especially if it also requires fewer calls to RAM. Jan 07 04:16:30 a thing which takes 45,000 operations is about 26.5 mJ, so 1000 of those is 26.5 J, right? Jan 07 04:16:39 No, 45,000 operations * 1,000 times is 45,000,000 operations, or 45Mops. Jan 07 04:16:46 Oh. Jan 07 04:17:17 So it takes only 0.59 mJ to do that thing 1000 times. Jan 07 04:17:56 Right, which isn't that much. Jan 07 04:18:14 Why did this come out looking small when the other calculation came out looking large. Jan 07 04:18:27 But because it calls to RAM, and because we made all sorts of assumptions to get that value, it's likely to be more than that in real-world usage. Jan 07 04:19:13 Where did I get that 26 W number earlier... Jan 07 04:20:10 Dunno, but 26W would be running the operations all in parallel for soemthing like 10 days. Jan 07 04:20:25 (at least if all the operations consume 26mJ) Jan 07 04:21:46 Heh. Jan 07 04:21:57 Off by a million error. Jan 07 04:22:20 Minor mistake :) Jan 07 04:22:44 Okay so if our *new* estimate is reasonable then the difference between these two algorithms is insignificant. :-) Jan 07 04:23:17 Well, depends on usage. Jan 07 04:23:34 If it's the primary application of the processor, a factor of more than 3 can make a difference. Jan 07 04:23:41 If it just happens once in a while, it doesn't matter. Jan 07 04:50:09 What do you mean a factor of more than 3. Jan 07 04:51:35 You said 45,000 vs. 15,000 and that the 45,000 one needed more RAM. Jan 07 04:51:58 So I read that as a factor of more than 3: 3 times the operations + potentially additional effort to pull from RAM. Jan 07 04:59:02 thinks get even more interesting when the processor does voltage and frequency scaling, because then 1 operation at 1GHz != 1 op at 500MHz Jan 07 04:59:07 *things Jan 07 04:59:17 I see. Jan 07 06:19:04 shenki: for arm, i'm not using the thumb option, although i believe -march=armv5te includes thumb? Jan 07 06:21:05 armin76: try forcing it with a -marm Jan 07 06:21:57 armin76: are you building locally? Jan 07 06:22:16 s/locally/natively/ Jan 07 06:24:49 * persia thinks -marm vs. -mthumb are different Jan 07 06:25:38 i would agree :) one will force your compiler to emit 32-bit arm code, the other will force 16-bit thumb code Jan 07 06:26:14 well, the 16bit ness fo thumb is a bit blurry if you're building for thumb2 Jan 07 06:31:43 Well, yeah, but -march doesn't necessarily imply either, as far as I understand. Jan 07 06:32:12 (although this depends on toolchain config, and armin76 has a special toolchain) Jan 07 06:33:08 yeah Jan 07 06:33:45 i think we're on the same page, i was just suggesting he try -marm to make sure that isn't the issue Jan 07 06:34:07 * shenki is the author of the v8 build file Jan 07 07:07:26 shenki: persia: will try, but its weird since on armv7 works fine Jan 07 07:07:48 both toolchains are different, thoguh, armv5te is softfloat while armv7 is not Jan 07 07:07:55 though* Jan 07 07:08:27 so what i think is that maybe the assembler is using armv7-only code Jan 07 07:08:30 but i'm no expert Jan 07 07:08:48 and chromium builds fine without v8 Jan 07 07:11:02 what does -marm do? Jan 07 07:11:28 -marm and -mthumb specify which instruction set to target for the given -march Jan 07 07:11:55 (mind you, there are defaults hidden in the toolchain config, but this lets one be explicit) Jan 07 07:12:04 kHH Jan 07 07:12:07 nsh Jan 07 07:12:09 err Jan 07 07:12:16 i don't use -mthumb either :P Jan 07 07:12:27 But do you know which is implied by your toolchain config? Jan 07 07:12:37 The suggestion was to override, in case this was the problem Jan 07 07:13:42 http://dpaste.com/141952/ Jan 07 07:13:45 sure, i'll try Jan 07 11:04:25 hi Jan 07 11:04:53 armin76: you say with armv7=1 it bult? Jan 07 11:05:03 or just on armv7 without that flag Jan 07 11:05:29 ogra: ;) Jan 07 11:05:51 asac: without the flag Jan 07 11:06:39 asac, yo Jan 07 11:07:08 asac, well, i built mkimage from the tree now on x86, but still no go :( Jan 07 11:07:40 ogra: try the command i gave you ;) Jan 07 11:07:47 or was that identitical? Jan 07 11:07:59 it was Jan 07 11:08:04 mkimage -A arm -O linux -T kernel -C none -a 0x90800000 -e 0x90800000 -n LinuxRocks -d boot/vmlinuz-2.6.31-601-imx51 uImageN Jan 07 11:08:11 mkimage -A arm -O linux -T kernel -C none -a 0x90800000 -e 0x90800000 -n "Linux" -d ./boot/vmlinuz-2.6.31-601-imx51 ./uimage Jan 07 11:08:15 the name is important ;) Jan 07 11:08:26 haha Jan 07 11:08:35 i swear Jan 07 11:08:40 *g* Jan 07 11:08:49 it must be != Linux ;) Jan 07 11:08:56 shall i upload that uImageN somewhere? Jan 07 11:09:00 no Jan 07 11:09:04 i have your old one Jan 07 11:09:04 ok Jan 07 11:09:08 right Jan 07 11:09:14 i used mkimage from karmic x86 Jan 07 11:09:27 if you use that it has to work for you too ;) Jan 07 11:09:36 ogra@osiris:~/Desktop/tmp$ mkimage -l ./uimage|grep ^Data Jan 07 11:09:37 Data Size: 3062156 Bytes = 2990.39 kB = 2.92 MB Jan 07 11:09:37 ogra@osiris:~/Desktop/tmp$ mkimage -l ./uImage.asac.908000000|grep ^Data Jan 07 11:09:37 Data Size: 3063148 Bytes = 2991.36 kB = 2.92 MB Jan 07 11:09:48 the size differs Jan 07 11:09:55 * ogra wonders why Jan 07 11:09:56 the new size is different yes Jan 07 11:10:02 let me check what the new one has Jan 07 11:10:06 i thin kit was a different kernel Jan 07 11:10:24 Data Size: 3062156 Bytes = 2990.39 kB = 2.92 MB Jan 07 11:10:26 thats the new Jan 07 11:10:34 that boots Jan 07 11:10:35 same as mine Jan 07 11:10:47 md5sum? Jan 07 11:10:55 and you used mkimage from the archive this time ? Jan 07 11:10:59 8c1cf14ad6e4ef9c1479678c8e606872 uImageN Jan 07 11:11:07 ogra: yes. i used x86 karmic mkimage Jan 07 11:11:14 ogra@osiris:~/Desktop/tmp$ md5sum ./uimage Jan 07 11:11:14 6134a0836cb224e3135acbd8c862ed00 ./uimage Jan 07 11:11:27 * ogra doesnt get it Jan 07 11:11:27 right. you have a different name Jan 07 11:11:28 ;) Jan 07 11:11:36 really ... Jan 07 11:11:52 * ogra now tries with a different name juts for giggles Jan 07 11:11:57 haha Jan 07 11:12:08 i tell you it will work. also no ./ Jan 07 11:12:09 ;) Jan 07 11:13:10 * ogra wishes he had a clue whats wrong Jan 07 11:15:17 mkimage -A arm -O linux -T kernel -C none -a 0x90800000 -e 0x90800000 -n Lalala -d boot/vmlinuz-2.6.31-601-imx51 uimage Jan 07 11:15:19 no change Jan 07 11:15:27 afte3r loading ... http://paste.ubuntu.com/352834/ Jan 07 11:15:30 does that work for you? Jan 07 11:15:36 iminfo? Jan 07 11:15:42 i cant load Jan 07 11:15:45 :P Jan 07 11:15:50 else i'd try Jan 07 11:16:17 please run the same command so we can compare md5sums Jan 07 11:17:12 ogra@osiris:~/Desktop/tmp$ mkimage -A arm -O linux -T kernel -C none -a 0x90800000 -e 0x90800000 -n LinuxRocks -d boot/vmlinuz-2.6.31-601-imx51 uImageN Jan 07 11:17:13 ... Jan 07 11:17:16 ogra@osiris:~/Desktop/tmp$ md5sum uImageN Jan 07 11:17:16 807feee5a32a1805eccf4509574211e3 uImageN Jan 07 11:17:37 8c1cf14ad6e4ef9c1479678c8e606872 uImageN Jan 07 11:17:40 odd Jan 07 11:18:01 ii uboot-mkimage 0.4 Jan 07 11:18:07 same Jan 07 11:18:28 wait Jan 07 11:18:35 i use a -pae kernel Jan 07 11:18:38 9184c83fbca680969199928bfcb8748d boot/vmlinuz-2.6.31-601-imx51 Jan 07 11:18:43 i wonder if that could make any difference Jan 07 11:18:47 791f2ca366f78922a9a981bd173ba3b9 /usr/bin/mkimage Jan 07 11:18:59 ogra@osiris:~/Desktop/tmp$ md5sum boot/vmlinuz-2.6.31-601-imx51 Jan 07 11:18:59 9184c83fbca680969199928bfcb8748d boot/vmlinuz-2.6.31-601-imx51 Jan 07 11:19:01 aha ! Jan 07 11:19:15 thats the same Jan 07 11:19:31 oh, i looked at mkimage :P Jan 07 11:19:44 791f2ca366f78922a9a981bd173ba3b9 /usr/bin/mkimage Jan 07 11:19:50 yeah Jan 07 11:19:54 so its obviously your computer ;) Jan 07 11:19:59 you are on i386 ? Jan 07 11:20:09 uname -a Jan 07 11:20:09 Linux tinya 2.6.32-02063202-generic #02063202 SMP Sat Dec 19 11:00:49 UTC 2009 i686 GNU/Linux Jan 07 11:20:13 hmm. i am on a .32 kernel Jan 07 11:20:20 would be odd if thats causing it Jan 07 11:20:27 ogra@osiris:~/Desktop/tmp$ uname -a Jan 07 11:20:27 Linux osiris 2.6.31-14-generic-pae #48+ureadahead2-Ubuntu SMP Wed Oct 28 16:24:28 UTC 2009 i686 GNU/Linux Jan 07 11:20:45 yeah that would be extremely odd ;) Jan 07 11:20:47 still using keybuks toy kernel Jan 07 11:21:40 shall i reboot into the karmic kernel? Jan 07 11:21:54 letr me try on a different machine first Jan 07 11:22:09 i would suggest that you use a vanilla kernel too rather: http://kernel.ubuntu.com/~kernel-ppa/mainline/ Jan 07 11:22:19 i have v2.6.32.2/ afair Jan 07 11:22:58 what does pae do? memory shuffeling? Jan 07 11:23:23 using above 3G Jan 07 11:23:29 so yes Jan 07 11:23:41 above 3g? Jan 07 11:24:18 http://en.wikipedia.org/wiki/Physical_Address_Extension Jan 07 11:24:21 ogra@heizung:~/tmp$ mkimage -A arm -O linux -T kernel -C none -a 0x90800000 -e 0x90800000 -n LinuxRocks -d boot/vmlinuz-2.6.31-601-imx51 uImageN Jan 07 11:24:22 you have more than 4g? Jan 07 11:24:27 ogra@heizung:~/tmp$ md5sum uImageN Jan 07 11:24:27 1ad5cba13bce2849dd49bf70ad221bef uImageN Jan 07 11:24:33 no, i have 4G Jan 07 11:24:44 the std generic kernel can only address 3 Jan 07 11:25:11 the machine i tried now is on lucid though Jan 07 11:25:21 yeah. thats a different mkimage version? Jan 07 11:25:36 nope Jan 07 11:25:41 wow Jan 07 11:25:42 mkimage wasnt updated ever Jan 07 11:25:50 so how can it be so different? Jan 07 11:25:57 can you try to boot the kernel i have? Jan 07 11:26:32 linux-image-2.6.32-02063202-generic 2.6.32-02063202 Linux kernel image for version 2.6.32 on x86/x86_64 Jan 07 11:26:50 though i am quite sure i used the .31 kernel from plain karmic as well Jan 07 11:26:57 http://kernel.ubuntu.com/~kernel-ppa/mainline/v2.6.32.2/linux-headers-2.6.32-02063202-generic_2.6.32-02063202_i386.deb Jan 07 11:27:03 http://kernel.ubuntu.com/~kernel-ppa/mainline/v2.6.32.2/linux-headers-2.6.32-02063202_2.6.32-02063202_all.deb Jan 07 11:27:06 well, the lucid try makes no difference Jan 07 11:27:08 http://kernel.ubuntu.com/~kernel-ppa/mainline/v2.6.32.2/linux-image-2.6.32-02063202-generic_2.6.32-02063202_i386.deb Jan 07 11:27:28 yeah. but the checksum is different too. really odd that its different in first place Jan 07 11:27:29 err Jan 07 11:27:32 ogra@heizung:~/tmp$ uname -a Jan 07 11:27:32 Linux heizung 2.6.27-7-generic #1 SMP Fri Oct 24 06:42:44 UTC 2008 i686 GNU/Linux Jan 07 11:27:41 hmm, why didnt that get upgraded Jan 07 11:27:43 let me see if the same run yields the same checksum Jan 07 11:28:12 so Jan 07 11:28:20 seems they add a timestamp or something Jan 07 11:28:25 so the checksum is useless Jan 07 11:28:29 indeed Jan 07 11:28:33 * ogra slaps forehead Jan 07 11:28:46 Created: Thu Jan 7 12:23:59 2010 Jan 07 11:28:49 sigh Jan 07 11:28:50 yeah Jan 07 11:28:53 seeing it now too ;) Jan 07 11:29:06 maybe binary diff ;) Jan 07 11:29:08 still doesnt explain why it doesnt work Jan 07 11:29:25 it has to work with hardy btw Jan 07 11:29:33 thats what the builder runs Jan 07 11:30:28 give me your x86 created uImage Jan 07 11:30:36 http://people.canonical.com/~asac/tmp/uImageN.1 Jan 07 11:30:41 thats the one Jan 07 11:31:07 be back in 5 Jan 07 11:32:09 hmm, hangs too here Jan 07 11:33:35 well. it hanged for me for the first try too Jan 07 11:34:22 you used my script to create the card ? Jan 07 11:34:28 after reset it worked Jan 07 11:34:34 i.e. same filesystem Jan 07 11:34:37 i did it manually at some point Jan 07 11:34:41 one sec Jan 07 11:34:42 hmm Jan 07 11:34:50 FAT32 here Jan 07 11:35:55 http://paste.ubuntu.com/352846/ Jan 07 11:36:25 so ... try it a few times Jan 07 11:36:37 maybe the uboot build you did is less reliable wrt to SD Jan 07 11:36:40 than mine Jan 07 11:37:03 do you have the script somewhere? Jan 07 11:37:15 what script ? Jan 07 11:37:17 e.g. something i can use to create it like you do? Jan 07 11:37:22 ah Jan 07 11:37:28 its on the spec Jan 07 11:37:40 at best a script called: mkbootfloppy Jan 07 11:37:45 yes. i used that manually Jan 07 11:37:59 http://paste.ubuntu.com/352850/ Jan 07 11:38:26 the uboot binary is still stuck in NEW Jan 07 11:38:51 yes. our archive admin is lagging ;) Jan 07 11:38:53 hehe Jan 07 11:39:01 why is it in new? Jan 07 11:39:09 shouldnt we reuse package names? Jan 07 11:39:26 the binary has a hardcoded version thanks to NC Jan 07 11:39:27 anyway. the other image still loads for you? Jan 07 11:39:31 e.g. the .asac uImage Jan 07 11:39:32 ? Jan 07 11:39:39 * ogra tries that again Jan 07 11:39:41 ogra: did you fix that this time? Jan 07 11:39:54 e.g. without version? Jan 07 11:39:57 nope Jan 07 11:40:06 i updated it ... Jan 07 11:40:09 so next time it would be thanks to you ;) Jan 07 11:40:16 indeed :) Jan 07 11:41:21 BBG U-Boot > fatload mmc 0:2 0x90800000 /uimage Jan 07 11:41:21 reading /uimage Jan 07 11:41:21 3063212 bytes read Jan 07 11:41:32 no prob with your old one Jan 07 11:42:15 try the new one right after that Jan 07 11:43:35 version Jan 07 11:43:35 U-Boot 2009.08 (Dec 07 2009 - 07:37:24) Jan 07 11:44:30 U-Boot 2009.08 (Jan 06 2010 - 09:44:19) Jan 07 11:44:36 same thing Jan 07 11:44:53 built on the babbge from the updated source package Jan 07 11:46:27 did you build it with -marm ? Jan 07 11:47:16 ogra: i just build it with the _bbg rule ... no tweaks added Jan 07 11:47:28 on lucid ? Jan 07 11:47:48 you need tewaks Jan 07 11:47:53 *tweaks Jan 07 11:48:04 well. i tweaked some config Jan 07 11:48:06 there are some inline finctions gcc will choke on Jan 07 11:48:10 *func Jan 07 11:48:17 hmm Jan 07 11:48:28 anyway. let me fix your script to do all oob and then try Jan 07 11:49:07 grab the sourcepackage for uboot-imx Jan 07 11:49:13 1000_fix_gcc_4.4_compatibility.patch is needed Jan 07 11:49:47 i dont get how you got it building without that Jan 07 11:49:55 at least on lucid Jan 07 11:50:43 ogra: put your uboot.bin somewhere ;) Jan 07 11:50:52 hmm Jan 07 11:50:53 ok Jan 07 11:51:11 i dont have a lucid install atm. only chroot. but i can try that i guess Jan 07 11:51:43 have .dsc link? Jan 07 11:51:45 ogra: ? Jan 07 11:51:56 http://people.canonical.com/~ogra/uboot-imx51_to3.bin Jan 07 11:52:06 apt-get source uboot-imx51 Jan 07 11:52:10 why is that to3? Jan 07 11:52:21 thx Jan 07 11:52:24 let me try the bin first Jan 07 11:52:25 because FSL updated it to the tape out 3 release Jan 07 11:53:30 for the .bin the -to3 name is right ... for the binary package name not so much Jan 07 11:54:10 but its unlikely that we'll see something >to3 before lucid i guess Jan 07 11:56:46 so the get_part_data is busted somewhat Jan 07 11:57:13 is it ? Jan 07 11:57:27 its empty Jan 07 11:57:42 e.g last dd is: Jan 07 11:57:48 should make the first part end at the end of uboot Jan 07 11:57:49 dd conv=notrunc bs= if=./boot.img of=out.bin seek=1 Jan 07 11:58:23 "`(set -- $(get_part_data 1); echo "$2")`" Jan 07 11:58:23 UBOOT_SIZE is correct ? Jan 07 11:58:26 what is $2? Jan 07 11:58:37 well. i reused $2 now for KERNEL ;) Jan 07 11:58:41 so thats the prob i guess Jan 07 11:58:44 but what is that ment to be? Jan 07 11:59:07 good question, i have to check the redboot-install script Jan 07 11:59:13 thats where it inherits from Jan 07 11:59:32 PART1_END_B="`(set -- $(get_part_data 1); echo "$2")`" Jan 07 11:59:35 i dont know what that means Jan 07 11:59:42 what does the set -- do? Jan 07 12:00:48 echo $2 should realte to the return of get_part_data Jan 07 12:00:48 hmm. this doesnt create the .bin ;) Jan 07 12:01:02 how to best create the .bin? Jan 07 12:01:07 no, its the proof of concept script Jan 07 12:01:09 just dd 4G? Jan 07 12:01:14 well i am fixing that now Jan 07 12:01:15 ;) Jan 07 12:01:23 it expects that you either write to mmc directly or have a .img already Jan 07 12:01:33 4G ? Jan 07 12:01:54 no, it should determine the size of the squashfs and roll the image based on that Jan 07 12:01:56 dd if=/dev/null of=$IMAGE bs=1 count=$IMAGE_SIZE Jan 07 12:01:58 like that? Jan 07 12:02:09 thats all stuff i have to do when i sanitize it for debian-cd Jan 07 12:02:12 sure Jan 07 12:02:16 but is that ok? Jan 07 12:02:23 bs=1 ? Jan 07 12:02:27 thats 1 byte :) Jan 07 12:02:41 use 1M Jan 07 12:03:17 right Jan 07 12:03:28 using IMAGE_SIZE and count=1 Jan 07 12:03:36 i use the script directly on my mmc Jan 07 12:03:50 so i dont care for images atm Jan 07 12:04:20 and it cant be the scripts fault ... Jan 07 12:04:28 given that your kernel works Jan 07 12:04:42 well. so just dd doesnt work Jan 07 12:04:47 file created is 0 bytes Jan 07 12:04:52 dd if=/dev/null of=out.bin bs=1M count=1 Jan 07 12:04:55 * asac feels dumb Jan 07 12:05:08 if=/dev/null ? Jan 07 12:05:14 better try zero Jan 07 12:05:37 great Jan 07 12:05:39 sorry, didnt spot that above Jan 07 12:05:55 now things happen Jan 07 12:06:22 note that BOOT_SIZE is set to 17M atm Jan 07 12:06:38 so the image you write to should be 18M at least Jan 07 12:07:19 http://paste.ubuntu.com/352869/ Jan 07 12:07:22 so that feels better Jan 07 12:07:46 looks ok Jan 07 12:08:07 you added a mkimage -l :) Jan 07 12:08:13 * asac pumps it to the sd Jan 07 12:08:14 oh right Jan 07 12:08:16 good idea Jan 07 12:08:28 or just a mkimage ? Jan 07 12:09:35 ogra: it already dumped that there Jan 07 12:09:40 mkimage itself does that at the end Jan 07 12:09:41 ;) Jan 07 12:10:00 right, so you added the mkimage call :) Jan 07 12:10:02 ok ... dd'ing Jan 07 12:10:04 yes Jan 07 12:10:07 everything oob Jan 07 12:10:27 apart from the proper defaults in uboot :) Jan 07 12:10:28 cat mkubootimg.sh | pastebinit Jan 07 12:10:28 http://pastebin.com/f3e4d51a7 Jan 07 12:11:01 great Jan 07 12:11:34 hmm didnt work that great Jan 07 12:11:39 1 512B 137kB 136kB primary Jan 07 12:11:39 2 137kB 16.8MB 16.6MB primary lba Jan 07 12:11:43 fat32 is missing Jan 07 12:12:10 whats that ? fdisk -l ? Jan 07 12:12:34 udo parted /dev/mmcblk0 print Jan 07 12:12:36 s Jan 07 12:12:39 sudo parted /dev/mmcblk0 print Jan 07 12:12:49 after dding Jan 07 12:13:00 same for the .bin directly Jan 07 12:13:16 weird Jan 07 12:13:26 line 52 in your script should have created it Jan 07 12:13:43 err Jan 07 12:13:44 * asac adds a set -e Jan 07 12:13:50 and line 56 indeed Jan 07 12:14:01 seems to not error at least Jan 07 12:14:34 parted -s out.bin mkpart primary fat32 136704B 16777216B Jan 07 12:14:36 thats what it runs Jan 07 12:14:56 looks ok Jan 07 12:15:34 part data: 512B 136703B 136192B Jan 07 12:17:05 why is boot size 16M? Jan 07 12:17:12 hmm Jan 07 12:17:14 just because :) Jan 07 12:17:15 thats what is printed Jan 07 12:17:27 you can pick any value you like Jan 07 12:17:28 just not fat32 Jan 07 12:17:52 16M seems to well fit a kernel and initrd ... was enough for my testing Jan 07 12:18:09 boot size should in the end actually be the image size Jan 07 12:18:26 we only need one vfat partition for squashfs, kernel and initrd Jan 07 12:18:42 i just picked a value that leaves enough space Jan 07 12:19:05 mkdosfs ./boot.img Jan 07 12:19:24 guess the dd where the boot.img gest dded wipes the part table bits Jan 07 12:19:27 has nothing to do with parted Jan 07 12:19:36 shouldnt Jan 07 12:20:01 oh Jan 07 12:20:02 ;) Jan 07 12:20:13 now it probably works ;) Jan 07 12:20:22 what was missing ? Jan 07 12:20:36 well. i had an echo before the final dd ;) Jan 07 12:20:37 2 137kB 16.8MB 16.6MB primary fat16 lba Jan 07 12:20:41 odd that its fat16 now Jan 07 12:20:45 yeah Jan 07 12:20:51 is that normal? Jan 07 12:20:54 nope Jan 07 12:21:11 oh, wait, it is Jan 07 12:21:21 2 137kB 16,8MB 16,6MB primary fat16 lba Jan 07 12:21:28 thats my sd Jan 07 12:21:28 ok let me use -F 32 Jan 07 12:21:41 cfdisk will report fat32 though Jan 07 12:21:44 or fdisk Jan 07 12:21:49 WARNING: Not enough clusters for a 32 bit FAT! Jan 07 12:22:02 but it worked Jan 07 12:22:08 2 137kB 16.8MB 16.6MB primary fat32 lba Jan 07 12:23:00 i guess we need to properly work with cylinder sizes Jan 07 12:23:44 i.e. the first partition needs to become big enough to end at a cylinder Jan 07 12:24:46 ok Jan 07 12:24:51 so your 16m was just too small Jan 07 12:24:52 boots ? Jan 07 12:24:53 60 is better Jan 07 12:24:57 not there yet ;) Jan 07 12:25:03 to small ? Jan 07 12:25:13 for a 2.5M kernel binary ? Jan 07 12:25:18 for fat32 Jan 07 12:25:24 oh Jan 07 12:25:29 seems it needs a minimums size > 16m Jan 07 12:25:34 i used 60 and the warning is gone Jan 07 12:25:34 ah Jan 07 12:25:37 now dding Jan 07 12:25:39 cool Jan 07 12:25:43 lets hope Jan 07 12:26:03 good Jan 07 12:26:06 it automounts here Jan 07 12:26:41 good... uboot prompt ;) Jan 07 12:27:27 http://paste.ubuntu.com/352878/ Jan 07 12:27:28 hmm Jan 07 12:27:30 invalid FAT entry Jan 07 12:27:32 but it read it Jan 07 12:27:46 Bad CRC Jan 07 12:27:56 darn ;) Jan 07 12:28:01 now i am not sure if its the SD card Jan 07 12:28:05 it never liked me much Jan 07 12:28:22 http://paste.ubuntu.com/352881/ Jan 07 12:28:57 wondering if i should just wipe the windows CE sandisk Jan 07 12:29:01 will i need that at some point? Jan 07 12:29:06 have no place to dd it to Jan 07 12:29:12 you have a winCE sandisk ? Jan 07 12:29:27 the b2.5 shipped with an ubuntu one Jan 07 12:29:34 http://pastebin.com/f63ce246d Jan 07 12:29:37 thats the last version Jan 07 12:29:39 yes Jan 07 12:29:49 i have two: windows CE + ubuntu Jan 07 12:30:05 well, someone on the team will still have one i guess Jan 07 12:30:20 good point Jan 07 12:30:24 JamieBennett, did you keep your WinCE babbage SD ? Jan 07 12:30:28 JamieBennett: can you keep your winCE SD? Jan 07 12:30:30 hehe Jan 07 12:30:32 heh Jan 07 12:31:02 let me go through the script again Jan 07 12:31:06 maybe we truncate something Jan 07 12:31:43 let me try without F32 Jan 07 12:32:22 i just tried with a manually created fat32 part (60M) Jan 07 12:32:30 no change here for my uimage Jan 07 12:32:48 so fdisk really says 32 Jan 07 12:32:53 Verifying Checksum ... Bad Data CRC Jan 07 12:32:53 ERROR: can't get kernel image! Jan 07 12:32:59 thats what i get after a reset Jan 07 12:33:46 * ogra needs a break and fresh pain killers Jan 07 12:34:05 back soon Jan 07 12:35:07 kk Jan 07 12:51:26 ogra, asac: no, ran out of SD's and presumed it wasn't needed Jan 07 12:51:40 I think you can download it can't you? Jan 07 12:51:53 no clue Jan 07 12:51:57 its licensed i guess Jan 07 12:53:32 asac: http://www.microsoft.com/windowsembedded/en-us/products/windowsce/getting-started.mspx Jan 07 12:53:58 need to register though :( Jan 07 12:56:28 who knows if that is really the same anyway Jan 07 12:56:31 could be a custom build Jan 07 12:57:15 asac: indeed Jan 07 12:58:09 http://pastebin.com/f3bc21930 Jan 07 12:58:15 please run that like Jan 07 12:58:28 sh mkubootimg.sh out.bin data/vmlinuz-2.6.31-601-imx51 data/uboot-imx51_to3.bin 110M Jan 07 12:58:42 since you probably have a SD for experimenting ;) Jan 07 12:58:56 ls data/ Jan 07 12:58:58 uboot-imx51_to3.bin vmlinuz-2.6.31-601-imx51 Jan 07 12:59:28 ls data/ Jan 07 12:59:28 uboot-imx51_to3.bin vmlinuz-2.6.31-601-imx51 Jan 07 12:59:30 http://people.canonical.com/~ogra/uboot-imx51_to3.bin Jan 07 12:59:47 vm linuz just from the .deb Jan 07 13:00:45 * asac dds wince somewhere Jan 07 13:05:43 asac: Just checked, wince is on a disk in the bsp Jan 07 13:06:06 disk as in dvd (or cdrom, not sure) Jan 07 13:11:32 re Jan 07 13:11:45 asac, does it boot ? Jan 07 13:13:43 bad fatfs still Jan 07 13:13:54 but thats probably my SD card Jan 07 13:14:18 will now wipe the sandisk Jan 07 13:14:26 btw, saturn has two 4g sandisk for 12 EUR atm Jan 07 13:14:27 ;) Jan 07 13:14:37 yesterday TV advertisement Jan 07 13:14:39 heh Jan 07 13:15:03 echo $((100000 * 512)) 1200000 Jan 07 13:15:12 1200000 Jan 07 13:15:14 why is that? Jan 07 13:15:19 err Jan 07 13:15:20 that was two lines Jan 07 13:15:24 echo $((100000 * 512)) Jan 07 13:15:27 1200000 Jan 07 13:15:33 hmm Jan 07 13:15:39 use bc insteadc ? Jan 07 13:15:44 *instead Jan 07 13:15:49 bc? Jan 07 13:16:07 we use that syntax everywhere in the script Jan 07 13:16:09 ogra@osiris:~/Desktop/tmp$ echo 1+1 |bc Jan 07 13:16:09 2 Jan 07 13:16:17 yes. but we use that everwhere Jan 07 13:16:22 right Jan 07 13:16:24 wanted to ensure that its properly cylinder aligned Jan 07 13:16:30 no idea why it prints 120000 Jan 07 13:16:32 but that / 512 * 512 doesnt work Jan 07 13:16:43 our arithmetics are unreliable Jan 07 13:16:58 i get 5120000 here Jan 07 13:17:09 as it should be Jan 07 13:17:20 ogra: as do I Jan 07 13:17:34 i am in bash Jan 07 13:17:44 you are in posh? Jan 07 13:17:45 ;) Jan 07 13:17:45 asac, is using an upstream kernel ... missing the ubuntu-count patches :P Jan 07 13:17:52 haha Jan 07 13:17:58 and the uImage fixup mem patch Jan 07 13:18:02 i'm in bash indeed Jan 07 13:18:02 thats the trade Jan 07 13:18:02 ;) Jan 07 13:18:09 heh Jan 07 13:18:12 no calc, but good images Jan 07 13:18:22 so your system cant count but produce proper images Jan 07 13:19:19 ogra@osiris:~/Desktop/tmp$ sh -c "echo $((100000 * 512))" Jan 07 13:19:20 51200000 Jan 07 13:19:23 dash is fine too Jan 07 13:19:38 ok trying Jan 07 13:20:09 so ... sandisk doesnt have probs like that ... but i hang on loading ;) Jan 07 13:21:09 so bash is broken for me ;) Jan 07 13:21:11 works in sh Jan 07 13:21:42 intresting Jan 07 13:21:48 lucid ? Jan 07 13:21:51 or karmic Jan 07 13:23:58 eek ! Jan 07 13:24:11 i totally forgot we need a MIR for uboot ... its not in main yet Jan 07 13:24:57 karmic Jan 07 13:25:08 asac, do you happen to have a buildlog from your uboot build ? Jan 07 13:25:35 i noticed that gcc seems to forcefully be set to -march=armv5 in mine Jan 07 13:28:38 no ... all that was wiped Jan 07 13:29:07 have to reboot ... kernel doesnt release the SD anymore Jan 07 13:30:28 * ogra drops the thumb disabling patch and checks if it FTBFS Jan 07 13:33:55 so how to best figure cylinder boundaries? Jan 07 13:35:10 fdisk probably Jan 07 13:35:25 * ogra sighs, where does the -marm come from Jan 07 13:35:35 anyone played with changing the initramfs on lucid? When I call sudo update-initramfs.distrib -u I get 5 "Can't open /scripts/casper-functions" error messages Jan 07 13:35:58 not yet, no Jan 07 13:36:02 :( Jan 07 13:36:06 32768 Jan 07 13:36:19 Units = cylinders of 64 * 512 = 32768 bytes Jan 07 13:36:22 let me try to align that Jan 07 13:38:17 hmm -marm seems to be set upstream Jan 07 13:56:05 ogra: odd is that mkpart interprets last argument as size Jan 07 13:56:10 _while_ man says its "end" Jan 07 14:05:43 ogra: so have the same prob as you if i use that it seems Jan 07 14:05:55 the difference is that the SD that works really has a good partition table Jan 07 14:06:01 Device Boot Start End Blocks Id System Jan 07 14:06:01 /dev/mmcblk0p1 1 256 16383+ da Non-FS data Jan 07 14:06:01 /dev/mmcblk0p2 257 10587 661184 c W95 FAT32 (LBA) Jan 07 14:13:40 ok Jan 07 14:14:46 so its not uboot's fault, thats good to know Jan 07 14:15:10 darn. i killed my good SD by accident :( Jan 07 14:15:19 ogra: uboots fault? Jan 07 14:15:26 its our script that creates bad partitions Jan 07 14:15:36 i dont think its uboot... so far at least ;) Jan 07 14:15:37 i was worried its the uboot in the package vs your home rolled one Jan 07 14:15:54 ogra: well. the image i gave you worked with your uboot :) Jan 07 14:15:56 let me roll an SD manually Jan 07 14:16:03 darn i hate me for killing my uboot SD Jan 07 14:16:05 :( Jan 07 14:19:02 so my original uimage doesnt load either Jan 07 14:19:07 i think its your uboot bin Jan 07 14:19:59 or really the partition table. because mine is now busted too :( Jan 07 14:28:51 HOORAYYY Jan 07 14:28:54 http://paste.ubuntu.com/352937/ Jan 07 14:29:35 wiping the table and just creating a vfat partition with gparted with enough offset and my images work too Jan 07 14:29:53 so its definately the poartitioning Jan 07 14:31:42 asac, well, for the live image we could just leave the first partition and only make sure the second one has enough offset Jan 07 14:32:27 i.e. use a fixed value of say 500k Jan 07 14:32:43 that should be enough to fit uboot in Jan 07 14:33:44 or even 200k Jan 07 14:33:54 no reason uboot should ever grow beyond that Jan 07 14:35:05 * ogra takes asacs script and just sets UBOOT_SIZE to a fixed value ... lets see Jan 07 14:46:32 i did all that already ... didnt help Jan 07 14:46:34 darn Jan 07 14:46:41 so i didnt wipe my uboot image (still have that Jan 07 14:46:50 but my boot floppy for my production system :( Jan 07 14:47:57 aww Jan 07 14:48:34 ogra: so now i double checked Jan 07 14:48:45 the uboot thing that works really has good partition bounds Jan 07 14:48:55 right Jan 07 14:49:01 http://paste.ubuntu.com/352945/ Jan 07 14:49:05 no complain Jan 07 14:49:27 yep, same here Jan 07 14:49:33 same here? Jan 07 14:49:37 thought yours doesnt work ;) Jan 07 14:49:46 read above Jan 07 14:49:46 how did you produce your partition table? Jan 07 14:49:52 gparted Jan 07 14:49:53 manually Jan 07 14:50:12 ok so how can we find good cylinder bounds? Jan 07 14:50:13 i dd'ed uboot to the initialized SD Jan 07 14:50:21 seems that cylinder size is target media specific Jan 07 14:50:27 thern created a partition with offset in gparted Jan 07 14:50:41 copied uimage in there and it works with every uimage i have Jan 07 14:51:06 so ... why do we create this first partition with the odd fs id again? Jan 07 14:51:08 * ogra checks if there is a chance we can use ext2 for /boot Jan 07 14:51:22 asac, to protect the space where the bootloader lives Jan 07 14:51:23 we need to enable ext2 in uboot for that Jan 07 14:51:27 right Jan 07 14:51:33 not sure how well it works Jan 07 14:51:35 protect in what way? Jan 07 14:51:43 if we just create one vfat partition with enough offset Jan 07 14:51:44 from partitioning apps Jan 07 14:51:47 how is that not enough ? Jan 07 14:52:00 ok Jan 07 14:52:07 if we re-use the SD later as bootfloppy that space should be protected Jan 07 14:52:20 if we dont, we dont really need to care imho Jan 07 14:52:23 so ... how can we do that properly? seems that cylinder size is depending on the SD card Jan 07 14:52:27 i had one with 32K Jan 07 14:52:31 this one is 64K Jan 07 14:52:42 it doesnt depend on the card ... Jan 07 14:52:51 if you get it right in the image file Jan 07 14:52:56 really... then why do i have two different values? Jan 07 14:53:00 hmm Jan 07 14:53:11 because you look at the partition table Jan 07 14:53:20 the one thats initialized on the card Jan 07 14:53:25 yes Jan 07 14:53:29 so parted can set that? Jan 07 14:53:29 if that lives in the image it shouldnt matter Jan 07 14:53:33 persia: shenki: fails exactly the same way with -marm Jan 07 14:53:50 let me look into some docs Jan 07 14:53:57 ogra: does bbg just run the bootloader from 1024 ... or from first partition? Jan 07 14:54:33 probably doesnt matter ... fdisk -l on the .bin says cylinder size that is full Jan 07 14:54:35 babbage doesnt care about partitions Jan 07 14:55:09 it just tries to find the bootloader directly after the MBR Jan 07 14:55:56 well, actually at the start of the SD but skips the MBR Jan 07 14:56:52 ogra: may i ask whats the point on supporting the babbage if real users are going to have it? will all the devices based on imx51 work like the babbage? Jan 07 14:57:10 similar at least Jan 07 14:57:16 s/users are go/users aren't go/ Jan 07 14:57:33 its a developer platform Jan 07 14:58:21 you guys have any plan on qualcomm stuff? Jan 07 15:03:53 nope Jan 07 15:04:20 asac, i think we need to shuffle around with the cylinders and heads a bit with fdisk Jan 07 15:06:27 with fdisk? Jan 07 15:06:31 parted is too dumb? Jan 07 15:10:19 $imagesize_in_bytes / 255 / 63 / 512 = $number_of_cylinders Jan 07 15:10:50 we somehow need to let the partition table know about that number of cylinders Jan 07 15:12:37 hmm Jan 07 15:12:37 ok Jan 07 15:13:08 checking how parted can do that Jan 07 15:13:54 ogra: i am not sure that its really in the partition table Jan 07 15:13:58 if i check on the .bin Jan 07 15:14:04 its a different number than after dding it to SD Jan 07 15:14:06 use fdisk -C Jan 07 15:14:47 i see that number with fdisk -l too Jan 07 15:15:52 i dont get why it works with the reboot images Jan 07 15:15:59 Device Boot Start End Blocks Id System Jan 07 15:15:59 lucid-desktop-armel+imx51.img1 1 512 32767+ da Non-FS data Jan 07 15:15:59 lucid-desktop-armel+imx51.img2 513 10591 645056 c W95 FAT32 (LBA) Jan 07 15:16:15 how are the bounds with B ? Jan 07 15:16:19 most likely they are just right? Jan 07 15:16:36 the script is the same Jan 07 15:16:45 the one we use to create the image Jan 07 15:17:24 and we dont shuffle the partitions or the table in it Jan 07 15:17:49 damn. need to reboot again. this mmc driver stuff is really immature Jan 07 15:18:00 thats actually why i am running .32 kernel as its better there Jan 07 15:18:00 on your laptop ? Jan 07 15:18:02 yes Jan 07 15:18:09 never had instabilities Jan 07 15:18:19 if i dont unmount and unplug it sometimes hangs badly Jan 07 15:18:31 oh, i always unmount Jan 07 15:18:40 i'm lazy, using nautilus :) Jan 07 15:19:19 nautilus "eject" never worked for me Jan 07 15:19:21 unmount worked Jan 07 15:19:27 ok reboot Jan 07 15:25:45 most annoying after every reboot: Jan 07 15:25:45 screen /dev/ttyUSB0 115200 Jan 07 15:25:45 Cannot make directory '/var/run/screen': Permission denied Jan 07 15:26:00 ls -l /var/run/screen Jan 07 15:26:00 ls: cannot access /var/run/screen: No such file or directory Jan 07 15:26:27 asac: btw, i found out that chromium needs to have write access to /dev/shm Jan 07 15:26:28 sudo mkdir /var/run/screen Jan 07 15:26:31 yes Jan 07 15:26:38 thats why its not working in a bindmounted chroot Jan 07 15:26:50 because bindmount somewhat fails to keep permissions for /dev Jan 07 15:27:05 use minicom not screen :) Jan 07 15:27:21 well. screen always worked ... just started to fall apart 2 month ago :( Jan 07 15:27:35 i blame upstart ;) Jan 07 15:27:52 asac: guess you need to bindmount /dev/shm as well, like you have to do with /dev/pts Jan 07 15:28:00 yeah, always a good candidate Jan 07 15:29:01 armin76: that alone doesnt help Jan 07 15:29:09 i tried that ;) Jan 07 15:29:19 ogra: so loading uramdisk hangs Jan 07 15:29:24 ogra: sure gzip is enabled? Jan 07 15:29:32 you said you werent sure Jan 07 15:29:40 asac: wfm Jan 07 15:29:53 asac: blame upstart as well :D Jan 07 15:30:25 just tried it Jan 07 15:31:05 you are right Jan 07 15:31:10 have that mounted in lucid chroot Jan 07 15:31:20 asac fails Jan 07 15:31:21 i win Jan 07 15:32:00 you are late. thats all ;) Jan 07 15:32:11 armin76_the_lagger Jan 07 15:32:56 i don't have so many boards as you do, slacker Jan 07 15:33:25 ogra: try this: mkimage -A arm -O linux -T ramdisk -C gzip -a 0x0 -e 0x0 -n LinuxRocks -d boot/initrd.img-2.6.31-105-imx51 uRamdisk Jan 07 15:33:28 it doesnt load Jan 07 15:33:38 let me unpack that and use none Jan 07 15:34:51 thats what debian on the sheevaplug uses: mkimage -A arm -O linux -T ramdisk -C gzip -a 0x00000000 -e 0x00000000 -n initramfs -d initrd.img-2.6.29-2-kirkwood uInitrd Jan 07 15:35:27 pretty much the same Jan 07 15:35:54 yes. i surely got it loading Jan 07 15:35:57 maybe i unpacked it Jan 07 15:36:13 why would you ? Jan 07 15:36:31 because maybe uboot doesnt like gzip ;) Jan 07 15:36:33 yep Jan 07 15:36:34 taht worked Jan 07 15:36:38 gunzip the initrd Jan 07 15:36:41 put it in as none Jan 07 15:36:43 then it loads Jan 07 15:36:50 well, i'm still chewing on the partitioning Jan 07 15:36:59 yeah Jan 07 15:37:04 so you get to busybox ? Jan 07 15:37:06 i somehow need to get a boot floppy ;) Jan 07 15:37:16 as i wiped it and cannot even boot in my great prod environment anymore Jan 07 15:37:19 no Jan 07 15:37:22 i am now trying ;) Jan 07 15:37:40 * asac sets root=UUID=6483f06d-1216-43df-931f-faddc9c1db27 Jan 07 15:40:22 ogra: it doesnt like that root :( http://paste.ubuntu.com/352971/ Jan 07 15:40:43 so /dev/ram? Jan 07 15:41:14 it doesnt find the initramfs Jan 07 15:41:25 hmm. thought i loaded it Jan 07 15:41:31 but doesnt use it Jan 07 15:41:41 http://paste.ubuntu.com/352973/ Jan 07 15:41:44 thats what i did Jan 07 15:43:58 * asac slaps himself Jan 07 15:44:05 plugging the usb disk to the board might help ;) Jan 07 15:44:33 does that Jan 07 15:44:35 not really Jan 07 15:44:45 your initramfs doesnt get executed Jan 07 15:44:48 by the kernel Jan 07 15:46:03 so what is wrong ;)? Jan 07 15:46:22 the address maybe? Jan 07 15:47:17 initrd=... wrong? Jan 07 15:47:49 the latter i suspect Jan 07 15:49:09 wait, try loading uinitrd first Jan 07 15:49:17 flip the adresses in bootm Jan 07 15:49:52 sigh, i really dont get that partition thing Jan 07 15:50:09 why does it work with the redboot images Jan 07 15:51:10 uninitrd first? Jan 07 15:53:23 flip the adresses Jan 07 15:54:44 bootm [addr [arg ...]] Jan 07 15:54:44 - boot application image stored in memory Jan 07 15:54:44 passing arguments 'arg ...'; when booting a Linux kernel, Jan 07 15:54:44 'arg' can be the address of an initrd image Jan 07 15:55:07 did you try it ? Jan 07 15:55:36 bootm 0x90B00000 0x90008000 Jan 07 15:56:03 i read the doc and it says that initrd is second ;) Jan 07 15:56:04 now trying Jan 07 15:57:08 Wrong Image Type for bootm command Jan 07 15:57:08 ERROR: can't get kernel image! Jan 07 15:57:11 so expdected Jan 07 15:57:21 now trying to not load ramdisk, but rather loading it from vfat Jan 07 15:57:21 ok, was worth a try Jan 07 16:01:09 great Jan 07 16:01:12 end of work Jan 07 16:01:20 board doesnt show any sign of live anymore :( Jan 07 16:01:56 asac: wait, I'm not the only one to have kill a board now ;) Jan 07 16:02:00 did you trash your SD ? Jan 07 16:02:16 what do you mean? Jan 07 16:02:24 note that it wont stay on if it doesnt find the bootrecord Jan 07 16:02:27 i dont see any lamp if i push on the button :( Jan 07 16:02:32 oh Jan 07 16:02:32 yes Jan 07 16:02:35 but no lamp goes on Jan 07 16:02:59 how did you manage that ? Jan 07 16:03:04 i dont know Jan 07 16:03:08 i put in the sd Jan 07 16:03:22 * JamieBennett notes he killed his with the wrong power lead not in software Jan 07 16:03:22 * ogra hasnt seen anyone fry a board apart from using over-power Jan 07 16:03:30 :) Jan 07 16:03:38 lol Jan 07 16:03:38 overpower? Jan 07 16:03:46 flowerpower! Jan 07 16:04:30 asac: in my case it was a mis-labelled (or rather not labelled) power lead running 12v so nothing for you to worry about Jan 07 16:04:55 asac: remove the sd :D Jan 07 16:05:49 it wont power on without SD Jan 07 16:06:04 ogra: but it does light up for a second Jan 07 16:06:09 oh Jan 07 16:06:16 if you hold the power button Jan 07 16:06:35 right, but if it doesnt do that anyway, the Sd shouldnt matter Jan 07 16:06:44 ogra: right Jan 07 16:07:14 sigh Jan 07 16:07:17 nothing Jan 07 16:07:20 ogra: we did have someone make a board produce "magic white smoke" though :) Jan 07 16:07:51 plars, well, but he's known for his magic skills anyway :) Jan 07 16:10:09 * ogra enables ext2 in uboot Jan 07 16:13:27 JamieBennett: you have a bbg2? Jan 07 16:13:34 does that work with same power adapter? Jan 07 16:13:48 asac: I have a 2.0 and 2.5 Jan 07 16:14:09 2.5 has same adapter Jan 07 16:14:15 2.0 is 12v Jan 07 16:14:36 ah ok Jan 07 16:14:48 so i need to get the 12v from my other place Jan 07 16:14:52 beforei can continue on bbg2 Jan 07 16:14:57 measure Jan 07 16:15:19 pick a voltmeter and check if you have no voltage before playing with power adapters Jan 07 16:15:52 the 2.5 should have a 5V adapter btw Jan 07 16:16:04 not 12 Jan 07 16:16:11 thats 2.0 Jan 07 16:16:37 ogra: yes as I pointed out above. 2.5 and 3.0 have 12v, 2.0 has 12v Jan 07 16:16:46 5v that should of been Jan 07 16:16:49 :) Jan 07 16:17:23 i just wanted to prevent asac from plugging in 12V Jan 07 16:17:40 I'm in pain, took the kids in the snow for 30 mins sledging and now my backside hurts from a rather fast decent without the sledge :) Jan 07 16:17:53 ouch Jan 07 16:18:06 ogra: yep, can't be too careful with them power adapters ;) Jan 07 16:18:09 * ogra only leaves the house if absolutely necessary Jan 07 16:18:19 way to cold outside Jan 07 16:19:35 i definitly didnt replug any power adapter or so Jan 07 16:21:15 i have a warrenty thing for this board Jan 07 16:22:04 though i have no place of purchase Jan 07 16:22:35 BBG U-Boot > ext2ls mmc 0:2 Jan 07 16:22:35 1024 . Jan 07 16:22:35 1024 .. Jan 07 16:22:35 12288 lost+found Jan 07 16:22:35 64 uimage Jan 07 16:23:14 cool Jan 07 16:23:18 BBG U-Boot > ext2load mmc 0:2 0x90008000 /uimage Jan 07 16:23:19 Loading file "/uimage" from mmc device 0:2 (xxa2) Jan 07 16:23:19 64 bytes read Jan 07 16:23:20 but that doesnt matter for our problems ;) Jan 07 16:23:26 thats wrong Jan 07 16:23:30 64 bytes read Jan 07 16:23:34 no, the file is broken Jan 07 16:23:38 oh why it so small? Jan 07 16:23:39 see the ls Jan 07 16:23:39 hehe Jan 07 16:23:42 yeah Jan 07 16:28:06 well, has the same issues Jan 07 16:30:53 hum... can any one here help me? getting a kernel panic when trying to start ubuntu arm in qemu. The error is "Attempted to kill init" Jan 07 17:02:09 fta: do you know where we can tweak the default profile for chromium? Jan 07 17:02:13 e.g. different homepage etc.? Jan 07 17:16:58 fta: seems todays chromium dailies failed Jan 07 17:17:07 probably needs some GL depends? Jan 07 17:31:41 fta: build-tree/src/third_party/gles_book_examples/ is in our orig too Jan 07 17:31:43 please strip that Jan 07 17:57:54 fta: http://pastebin.com/f5f971220 ... somehow the ForwardingHeaders matches are now working Jan 07 17:57:55 asac, i have a problem with the gl thing: for webgl, they have a patched glu because of http://crbug.com/16800 (nvidia has its own broken libgl), but for gpu (new), they want the system gl/glu headers Jan 07 17:58:11 the rest works well Jan 07 17:58:37 http://paste.ubuntu.com/353039/ Jan 07 17:59:04 so in the current state, i can't provide both gpu & webgl without breaking javascript (like the gmail timezone bug) Jan 07 17:59:31 ah ok. so thats not the reason for the build failure? Jan 07 17:59:50 why do we need both? Jan 07 17:59:53 what is webgl? Jan 07 18:00:07 oh thats chromium stuff Jan 07 18:00:26 how does that work for them then? Jan 07 18:00:39 seems we are not doing anything special ... e.g. use their webgl and system gl/glu headers for gpu Jan 07 18:01:08 the build failure could easily be solved with build-deps += mesa-common-dev libgl1-mesa-dev libglu1-mesa-dev but that means breaking js (http://crbug.com/16800) Jan 07 18:02:24 ok found the prob with the licensecheck i think Jan 07 18:02:32 webgl: http://arstechnica.com/open-source/news/2009/08/webgl-standard-to-bring-3d-web-without-browser-plugins.ars Jan 07 18:02:58 http://arstechnica.com/open-source/news/2009/12/webgl-draft-published-khronos-seeks-community-involvement.ars Jan 07 18:03:48 breaking js like their time thing? Jan 07 18:04:00 why does it work for them? Jan 07 18:04:52 because it only breaks if you're using the nvidia driver Jan 07 18:04:57 like i do Jan 07 18:05:09 ok. so they are happy with that? Jan 07 18:05:12 no Jan 07 18:05:18 otherwise i would suggest to file a bug and wait till they figure it out Jan 07 18:05:42 and for that time accept that nvidia is broken. feels like they will work on that with high prio Jan 07 18:05:44 they fixed it for webgl by patching glu to not load libGl.so.1 directly Jan 07 18:05:56 but it's back with the new gpu feature Jan 07 18:05:57 right Jan 07 18:06:18 so they will have to do something about gpu too Jan 07 18:06:34 i already reported that to the gpu guy Jan 07 18:06:35 right. thats why i think we should just do what they do and accept bugs they have for the time being Jan 07 18:06:59 (he's in california) Jan 07 18:11:40 the bot kicks off at 4am so i still still have time to discuss with upstream, maybe there's a better fix, if there's nothing, i'll add the build-deps Jan 07 18:12:26 yeah Jan 07 18:12:42 i would assume that if they build with both enabled they have the same time regression Jan 07 18:12:48 so we would just replicate their behaviour Jan 07 18:14:42 asac, http://groups.google.com/group/chromium-dev/browse_thread/thread/a7d337e88e63af6d# Jan 07 18:17:14 shenki: around? Jan 07 18:17:35 asac: did you try armv7=1? Jan 07 18:19:50 armin76: no, because we have no NEON in kernel and buld system doesnt allow to disable that Jan 07 18:19:54 is on my list to fix in build systme Jan 07 18:21:30 ah, right Jan 07 18:21:33 sorry i forgot *g* Jan 07 21:46:23 asac: the firefox in that ppa seems to work for me on babbage Jan 07 21:46:40 plars: cool thanks. alrady set it to DONE :) Jan 07 21:46:46 (the item) Jan 07 22:06:45 lool, that was you I was talking to about pixman et al, right? Jan 07 22:15:46 cwillu_at_work: from ubuntu yes, the other guy was ssvb Jan 07 22:19:37 cwillu_at_work: Yes Jan 07 22:19:41 As armin76 said Jan 07 22:25:37 was just re-reading http://lists.cairographics.org/archives/cairo/2009-October/018421.html, looking for confirmation that an neon'ified pixman does what I think it does; I now think I misread it when I poked you just now :p Jan 07 23:21:11 * cwillu_at_work raids cgit.freedesktop.org for unreleased neon pixman patches **** ENDING LOGGING AT Fri Jan 08 02:59:57 2010