| 07:50.15 | *** join/#htc-blueangel rob_w-cgi (n=txuser@dd1010.kasserver.com) |
| 07:50.15 | *** mode/#htc-blueangel [+o rob_w-cgi] by ChanServ |
| 07:54.35 | rob_w-cgi | morning |
| 09:33.56 | lkcl | morning. bleh :) |
| 09:35.06 | rob_w-cgi | hey |
| 09:35.23 | lkcl | just trying to get the attention of the treo650 linux people... |
| 09:36.44 | rob_w-cgi | why that ? |
| 09:36.56 | lkcl | the more the merrier. |
| 09:37.51 | lkcl | they have "working-ish" hardware. |
| 09:37.51 | lkcl | ability to talk to the GSM radio etc. |
| 09:40.19 | rob_w-cgi | ? so do we ! |
| 09:41.23 | lkcl | yeh - but they're at the "we just got a kernel boot" stage so i thought they'd appreciate some links to thingy. openembedded etc. |
| 09:44.38 | lkcl | rob - did you put the thingy into the initrd about "mkdir -p /oldroot"? |
| 09:46.49 | rob_w-cgi | not in the one latest on gnulinux.biz |
| 09:48.50 | lkcl | ack. |
| 09:52.45 | lkcl | zzzz... gpe boot - package initialisation... zzz... |
| 09:55.24 | rob_w-cgi | crap i filled my /etc/modules and now it stucks on boot .. |
| 09:55.44 | lkcl | oops... |
| 09:55.45 | rob_w-cgi | seems there is on crappy module which hunts me |
| 09:55.54 | lkcl | muhahahah |
| 09:57.26 | rob_w-cgi | silence |
| 09:57.58 | rob_w-cgi | normally i wanna boot now , but i too scary that my new job offer wants to call me ... grgrg i am so keen to get it |
| 09:58.03 | lkcl | que, que? me or the ba? |
| 09:58.14 | lkcl | oh dear!! |
| 09:58.24 | lkcl | what a quandry to be in :) |
| 09:59.31 | rob_w-cgi | yeah i so nervous if that works out .. and i am the worst person on the planet to wait for things i want ! *falls of his chair * |
| 10:00.17 | *** join/#htc-blueangel cp15 (n=8fa4660d@www.it-schaller.de) |
| 10:00.17 | *** mode/#htc-blueangel [+o cp15] by ChanServ |
| 10:00.20 | rob_w-cgi | hmm i now have a hint on the current blueangel_battery bug but i dont think its materialisation in the code |
| 10:00.35 | cp15 | Good morning |
| 10:00.41 | rob_w-cgi | servus |
| 10:01.08 | cp15 | Is lkcl here? |
| 10:01.10 | lkcl | mornin |
| 10:01.11 | lkcl | yeh. |
| 10:01.13 | rob_w-cgi | no |
| 10:01.17 | lkcl | no. |
| 10:01.35 | cp15 | I have checked the irc logs and have seen you have a problem with sqlite |
| 10:01.39 | lkcl | i no exist. i am green. you can't see me |
| 10:01.47 | lkcl | i am at onnne with my environment. |
| 10:01.49 | lkcl | sorry. |
| 10:01.51 | lkcl | yes i do. |
| 10:01.53 | rob_w-cgi | *falls over lkcl * |
| 10:02.10 | cp15 | It is a problem because sqlite is built on 64 bit |
| 10:02.10 | lkcl | i am a squished gecko who thinks he's a chameleon. |
| 10:02.16 | lkcl | oops. |
| 10:02.30 | lkcl | oh fraggit. |
| 10:02.59 | lkcl | but it's cross-compiled!!! |
| 10:03.15 | cp15 | Take a look at btree.c:702 and find out where ptr gets defined |
| 10:03.35 | cp15 | There is a strange #ifdef which defines ptr to long long under some circumstances |
| 10:03.47 | lkcl | hm - inno said use the other thingy and it'd be fixed, damn :) |
| 10:04.00 | cp15 | No, it isn't fixed |
| 10:04.04 | lkcl | ah. |
| 10:04.27 | cp15 | He was just away for too long. I have rebuilt sqlite on my machine and packed it into the image |
| 10:04.55 | rob_w-cgi | cp15 i suspect some apm related functions in blueangel_battery to be the bugger .. will try today evening of that works out without them |
| 10:05.41 | cp15 | Ok, that would be fine. At least then we have a course battery level. The code to get the fine one is quite complicated |
| 10:08.09 | rob_w-cgi | you mean the conversion into usable "time left " or so ? |
| 10:09.05 | lkcl | *grumble*. we manually need to replace config.h |
| 10:09.09 | lkcl | that's doable isn't it? |
| 10:11.17 | lkcl | yehh, it's doable. |
| 10:13.45 | cp15 | The time left is another thing. The thing I mean is that the battery level from tsc2200 is very coarse (about 32 levels, if I remember corretly) and very nonlinear too |
| 10:16.04 | cp15 | Maybe we should send also a note to the sqlite developers that it breaks when cross-compiling it on a 64 bit machine |
| 10:16.29 | lkcl | they already have notes in the code saying "deal with this manually if you're cross-compiling". |
| 10:16.32 | lkcl | which is very lame. |
| 10:17.12 | lkcl | there's a packages/sqlite/sqlite-2.8.16/main.mk which over-rides their stuff anyway: i'm modifying that to simply say #define SQLITE_PTR_SZ 4 |
| 10:17.12 | rob_w-cgi | hmm that battery levels are also lame ?? is that because of the cells in the battery ? |
| 10:18.37 | rob_w-cgi | well ,, whatever .. i am again dying because of nervousity .. *maybe some more coffee helps ?! |
| 10:18.40 | lkcl | excellent, that does the trick. |
| 10:18.53 | lkcl | stay off the coffee! go get some peppermint tea instead. |
| 10:18.56 | lkcl | relax, dude :) |
| 10:19.37 | rob_w-cgi | hmm peppermint .. that maybe a try .. |
| 10:22.15 | lkcl | i love the effects of peppermint tea: they make my arms go all floppy. |
| 10:22.15 | cp15 | The nonlinearity is probably because of the cells... The coarse resolution is a design problem |
| 10:22.51 | lkcl | oh, bollocks. it's just crashed on suspend. again. even though i had thingy. blueangel_suspend |
| 10:23.28 | lkcl | breakfast. need breakfast. |
| 10:23.39 | lkcl | hey cp15 - we definitely need to do a slashdot article. |
| 10:24.01 | lkcl | brb.. |
| 10:24.25 | cp15 | lkcl: Do you know Arthur Dent? |
| 10:24.36 | lkcl | and linuxdevices. |
| 10:24.39 | lkcl | not personally, no |
| 10:24.51 | lkcl | good friend of my mum's though. |
| 10:25.11 | cp15 | You sound like him: He always needs a cup of tea |
| 10:25.26 | lkcl | ah, that's because i'm addicted to caffeine. |
| 10:25.32 | lkcl | cccccccc..c.ccccc. |
| 10:26.35 | rob_w-cgi | *looking for any tea in the office * |
| 10:26.38 | cp15 | Before we make or work known, I would like to have a easy to use installation system |
| 10:27.36 | cp15 | Because currently it is a bit too difficult and we will be overwhelmed with support questions |
| 10:28.29 | cp15 | BTW: lkcl, are you planning to come to the CCC congress between christmas and new year? I will hold a little talk about linux on the blue angel and also registered a little space for the xanadux project |
| 10:29.31 | lkcl | burble? where's that? |
| 10:29.32 | rob_w-cgi | hmm if my new job works out i maybe able to attend to it !!! |
| 10:30.05 | rob_w-cgi | *found green mint tea * |
| 10:30.08 | lkcl | *shrug* :) don't be too optimistic: remember, they're going to be thingies - hard-core techies. |
| 10:30.20 | lkcl | now boil kettle, rob - carefully :) |
| 10:30.44 | lkcl | and there's a wiki - it's not such a big hairy deal, i promise. |
| 10:31.02 | rob_w-cgi | well anyway if i fall over the chair ,, at least i will not be concious anymore and dont feel nervous in that ;-Z |
| 10:31.07 | lkcl | plus i don't mind yapping to people. |
| 10:31.40 | rob_w-cgi | * dedicates lkcl as 1st level supported |
| 10:31.41 | lkcl | damn i just picked up the himalaya instead :) |
| 10:31.46 | lkcl | eek! |
| 10:31.58 | lkcl | brb.... |
| 10:33.26 | rob_w-cgi | cp15 .. how about u ? did you think over our last private conversation ?? |
| 10:33.50 | rob_w-cgi | i might be able to also generate some little projects here and there |
| 10:34.10 | rob_w-cgi | crap my english is bad today *too nervous* |
| 10:34.22 | lkcl | what sort of funding would your planned business need, rob, and where are you based? |
| 10:35.05 | rob_w-cgi | hmm i dont know what sort of but i am open to anything .. based in germany -> south near munich |
| 10:35.42 | lkcl | you talked last week about a plan to set up something based on these devices, running linux. |
| 10:37.40 | rob_w-cgi | well yeah ... that is a plan .. |
| 10:38.43 | rob_w-cgi | basicly i ve contacts to a american guy who has contacts and offices now in taiwan .. so anther big plan would be to get a finished OEM device into here and get gpe on it -- selling that to fe smaller gsm providers .. |
| 10:39.09 | rob_w-cgi | also with that american guy i also do some driver development for tablet pc`s .. already |
| 10:39.45 | rob_w-cgi | we could off load this discussion from here and chat in a more different channel |
| 10:40.03 | lkcl | ack. |
| 10:40.08 | cp15 | lkcl: The CCC congress is in berlin, germany. I currently can't give you an url, because it is blocked from here. Take a look at www.ccc.de |
| 10:40.56 | lkcl | ah. berlin. i'm not very rich - but in theory... |
| 10:41.18 | lkcl | i have a friend i could possibly stay with... oh, drat, they're going to be in japan. |
| 10:41.25 | cp15 | If you can afford it, it is a must. Very interesting lectures |
| 10:41.46 | lkcl | wtf??? ba just went blank, no reason. |
| 10:42.35 | lkcl | it was doing the packages... |
| 10:43.15 | cp15 | If you just need a sleeping place, maybe I can help you out. I have rented a little flat for the congress time. But you probably need a sleeping bag, since the 3 beds in it are already occupied |
| 10:43.21 | lkcl | :) |
| 10:44.14 | lkcl | i really really can't afford it - it would be a big financial risk for me to take right now. |
| 10:44.59 | lkcl | it's a long story. |
| 10:46.25 | cp15 | Ok... Would have been nice, but I see that it is expensive |
| 10:46.25 | lkcl | i've just had to cancel all direct debits of all bank payments until i get some money - it's _that_ serious. |
| 10:47.18 | cp15 | But you told me you have a 75 GBP per month mobile contract? Isn't that the first place to save some money (but since you ordered the BA now, it is probably too late) |
| 10:48.21 | lkcl | 75 GBP is nothing compared to the rest of the outgoings. |
| 10:49.42 | cp15 | Yeah, my power bill is higher :-( |
| 10:57.41 | cp15 | rob_w: I have to wait for next year to think further about the things we talked about |
| 11:00.58 | rob_w-cgi | cool |
| 11:07.03 | lkcl | oops - screen is blank! |
| 11:07.10 | lkcl | it went into suspend, then back again. |
| 11:07.17 | lkcl | i now have a white screen |
| 11:07.20 | lkcl | but i can ssh in. |
| 11:07.32 | lkcl | after pressing the wakeup |
| 11:07.50 | cp15 | Hmm... I had a similar problem with my 0x6 ba. I thought it would be fixed, but it isn't |
| 11:08.02 | cp15 | Did it already wake up with a non white screen? |
| 11:10.49 | lkcl | yes. |
| 11:11.14 | cp15 | Hmm... Then I have to re-check the initialisation and shutdown sequences |
| 11:13.15 | lkcl | hmmm... the code i've compiled up is OSS not alsa... hmmm... |
| 11:13.21 | lkcl | gomunicator, that is. |
| 11:21.58 | lkcl | ok. what can i do. hmmm... |
| 11:25.14 | cp15 | What is the problem? |
| 11:30.27 | lkcl | running gomunicator back to my laptop, the sound isn't working. |
| 11:30.39 | lkcl | i was just wondering what to tackle next to see if i can get it working. |
| 11:31.09 | lkcl | or maybe just go look at some c-code |
| 11:33.16 | lkcl | darn - of course: i can't log in :) |
| 11:33.33 | lkcl | because i killed gpe-dm and it's waiting for a login. drat! |
| 11:33.44 | lkcl | damn and it's just gone to sleep again. waah! |
| 11:36.36 | rob_w-cgi | try to always get rid of the ipaq-sleep process |
| 11:36.51 | rob_w-cgi | or configure the auto-sleep accordingly |
| 11:38.30 | cp15 | Ok, that reminds me of another thing that is not working: Sound after sleep |
| 11:38.42 | cp15 | I tried to fix it, but it is not yet complete |
| 11:39.02 | cp15 | Actually I had problems to get a "go to sleep"/"wakeup" event |
| 11:39.15 | cp15 | Try to remove blueangel_audio and load it again |
| 11:41.06 | lkcl | can't attach default card mixer |
| 11:41.50 | lkcl | ah, right :) |
| 11:43.08 | rob_w-cgi | apmd should deliver those events ( if used ) , right ? |
| 11:43.36 | rob_w-cgi | therefore we could manage that inside /etc/apm/ |
| 11:44.28 | lkcl | ah ha. |
| 11:44.57 | cp15 | Better invest the time into fixing blueangel_audio than createing an ugly hack in /etc/apm |
| 11:46.47 | lkcl | _excellent_ - sound actually works, despite getting the mixer problem. i ran gpe-mixer and turned the volume up :) |
| 11:46.50 | rob_w-cgi | yes sir |
| 11:48.45 | lkcl | okay, ipaq-sleep killed - just can't start it again. oops. |
| 11:50.43 | lkcl | okay. yep. rmmod blueangel_audio and modprobe blueangel_audio, after a suspend, fixes it. |
| 11:50.56 | lkcl | what's wrong with a bloody good hack, then??? :) |
| 11:52.50 | rob_w-cgi | well that should fairly easy to be done in the module |
| 11:52.56 | lkcl | suggestions - cp15: put suspend thingies into blueangel_audio.c? is that the best way? |
| 11:54.11 | rob_w-cgi | i think so ,, 2.6 Agenda tells us that the modules need to take care of their state`s on their own ... those apm sections in /etc are actually left overs from 2.4 |
| 11:54.45 | rob_w-cgi | from what i know afaik |
| 11:55.10 | lkcl | ack. |
| 11:55.39 | lkcl | btw - what framebuffer's being used - the ATI one or the vga one i hacked? |
| 11:55.47 | rob_w-cgi | lkcl would you be interessted to join such a company or would know you where to get funding for those things ? |
| 11:56.28 | lkcl | i know of someone who knows a group of people who have just set up a VC fund, that's all. |
| 11:57.18 | rob_w-cgi | hmm what is the target of those funds ( if there are any ) ? |
| 11:57.28 | rob_w-cgi | IT ? mobil IT ? |
| 11:57.43 | lkcl | i don't know. just that my friend said "if you hear of anything".. |
| 11:57.56 | lkcl | and your idea was "anything" :) hence my curiosity. |
| 11:58.16 | lkcl | hmmm... there's w100fb.c suspend and resume code already... |
| 12:02.33 | lkcl | hmmm... where's the framebuffer initialisation being called, after blueangel_lcd_hw_init? |
| 12:05.06 | cp15 | lkcl: Yes, the blueangel_audio should re-initialize the audio after resume |
| 12:06.14 | cp15 | The framebuffer initalisation code is called by the kernel itself |
| 12:06.57 | cp15 | And the white screen problem is not a problem of the frame buffer, but more a problem of the display or its voltages |
| 12:07.01 | lkcl | before or after the lcd init? |
| 12:07.28 | lkcl | yeh, i remember having a bitch of a time getting the screen to work at all. |
| 12:07.42 | cp15 | You can run ati_dump (to be found on gnulinux.biz) and see that fb is working fine. The display is just displaying nothing |
| 12:07.48 | lkcl | ah. |
| 12:07.50 | lkcl | right. |
| 12:07.52 | lkcl | oh dear :) |
| 12:07.56 | rob_w-cgi | lkcl , well tell them maybe about ready to deliver pda smarthphones with a new os ;-) .. for smaller gsm providers .. maybe the get the same feeling |
| 12:08.02 | lkcl | oh yes |
| 12:08.05 | lkcl | rob_w-cgi: ack! |
| 12:08.22 | cp15 | BTW: How did you find out which bit is related to which display voltage? |
| 12:08.40 | lkcl | reverse-engineering and guess-work. |
| 12:08.59 | lkcl | weeks of it. |
| 12:09.06 | lkcl | just kept on going until it worked. |
| 12:09.24 | cp15 | I still know only the bits but not which voltage it controls |
| 12:09.24 | rob_w-cgi | congrats for that lkcl |
| 12:09.30 | rob_w-cgi | ~hail lkcl |
| 12:09.32 | apt | ACTION bows down to lkcl and chants, "I'M NOT WORTHY!!" |
| 12:09.32 | lkcl | echo asdasdasdsd > /dev/fb0 doesn't do nuffink. |
| 12:09.43 | lkcl | it wasn't rocket science! |
| 12:10.02 | lkcl | ack, cp15. |
| 12:11.14 | rob_w-cgi | cp15 what is again the properties of the needed ringtone ? |
| 12:12.06 | lkcl | i got em... |
| 12:12.33 | lkcl | It has to be 16000 Hz, stereo, format S16_LE |
| 12:12.33 | lkcl | raw format. |
| 12:12.34 | lkcl | you have to copy it as /usr/share/gomunicator/R&C_theme.raw |
| 12:13.07 | rob_w-cgi | thanks |
| 12:13.10 | lkcl | damn - bitbake isn't able to do a cvs checkout from sf.net of xanadux. |
| 12:13.16 | rob_w-cgi | so any known tool which will bring me that from a mp3 ? |
| 12:13.29 | lkcl | pretty much, yeh. |
| 12:13.55 | rob_w-cgi | like ? |
| 12:14.40 | lkcl | you're asking me??? :) all i did was run wavr and whistle!! |
| 12:15.01 | lkcl | ah - cvs checkout now decided it _did_ want to work... |
| 12:16.00 | lkcl | remember i'm a computing philistine: certain areas (like messing with sound conversion) i just... don't wanna :) |
| 12:22.58 | rob_w-cgi | hmm i am a sound newbie .. |
| 12:23.32 | rob_w-cgi | barely do mp3 `s n stuff .. so it looks like converting my magnum.wav wil ltake me some time |
| 12:25.10 | lkcl | .wav is just the same as .raw except for the first few bytes. |
| 12:25.25 | lkcl | that much i know. |
| 12:25.45 | rob_w-cgi | oh , interessting |
| 12:25.53 | lkcl | the first few bytes indicate the format - signed, 16/8, channels. |
| 12:25.57 | rob_w-cgi | hang on |
| 12:26.00 | lkcl | download the source code to wavplayer. |
| 12:26.17 | lkcl | it's only about 1,500 lines of code. |
| 12:27.43 | rob_w-cgi | ok my wav is 16000 16 bit 1 channel |
| 12:27.48 | lkcl | xxing ntl advert. |
| 12:27.58 | lkcl | okay so if you just used that it would play at double-speed :) |
| 12:28.19 | lkcl | ntl advert just caused firefox to crash. |
| 12:28.25 | rob_w-cgi | u mean renaming it into .raw |
| 12:28.28 | lkcl | i had loads of tabs open, too. |
| 12:28.30 | lkcl | yeh. |
| 12:29.00 | rob_w-cgi | so how would i "fix" that double speed ? |
| 12:32.19 | rob_w-cgi | i remmeber i had that double speed on my ipaq and i edited some sound conf file to have that fixed |
| 12:32.22 | cp15 | rob: Create a wave file, then run sox file.wav -t raw -c 2 -r 16000 -f SB16_LE file.raw (not sure about the exact parameters, you have to check the man page) |
| 12:32.45 | rob_w-cgi | *searches for sox* |
| 12:35.58 | rob_w-cgi | hmm all is fine except for the SB16_LE .. is that a "file format" or what parameter is that ? |
| 12:39.08 | lkcl | 16-bit and the byte order is swapped |
| 12:39.29 | lkcl | ah ha - that's the command. |
| 12:39.47 | lkcl | least-order or something. |
| 12:41.46 | rob_w-cgi | ok so that then should be sox input.wav -c 2 -r 16000 -w -x output.raw |
| 12:41.57 | rob_w-cgi | w for wide = 16bit and x for reverse byte order |
| 12:42.12 | cp15 | Ah, the SB16_LE was from aplay |
| 12:42.19 | cp15 | Try with and without -x |
| 12:42.28 | rob_w-cgi | hmm ok |
| 12:43.12 | cp15 | Has somebody here already tried fluidsynth? |
| 12:43.21 | cp15 | Can we use it to play midi ringtones? |
| 12:43.34 | lkcl | *snort* :) |
| 12:44.32 | *** join/#htc-blueangel oxi (i=oxi@153.Red-80-34-17.staticIP.rima-tde.net) |
| 12:44.34 | oxi | hi |
| 12:44.44 | lkcl | hello |
| 12:46.42 | rob_w-cgi | ahm how can i name a file R&C_them `?? the & gives me problems !! |
| 12:48.24 | lkcl | OW! loud! |
| 12:48.29 | lkcl | put a \ in front of the & |
| 12:48.38 | lkcl | turned the volume up a bit high... |
| 12:49.13 | oxi | im trying to install a linux on my htc universal and i thought i would probably try blueangels image before i move onto porting a base linux myself... so ive got a few questions |
| 12:49.28 | lkcl | sure. |
| 12:49.43 | lkcl | ooo. htc universal. |
| 12:49.48 | lkcl | fuun... |
| 12:50.47 | oxi | im a little worried i could lost my stable os so im wondering whats the best way to perform a complete backup. |
| 12:51.27 | oxi | also, i dont understand very well how could a bootloader be .exe therefore depending on windoze? |
| 12:51.33 | lkcl | using the standard windows sync program, activesync. |
| 12:51.44 | lkcl | do you remember LINLOADER.EXE? |
| 12:51.50 | lkcl | for the x86? |
| 12:51.56 | lkcl | it's the same thing. |
| 12:52.16 | lkcl | it's not a bootloader program: it's a bootstrap program. |
| 12:52.27 | oxi | hmmm |
| 12:52.53 | lkcl | therefore it has nothing to do with your existing OS. |
| 12:53.31 | lkcl | the only thing that you lose is your data because the data is stored in RAM, which is battery-operated. |
| 12:53.34 | oxi | anyway is it to risky to try this on my pda? does it overwrite the flash mem? |
| 12:53.50 | lkcl | not really, and no. |
| 12:53.50 | oxi | thats not an issue :) |
| 12:54.06 | oxi | cool |
| 12:54.29 | lkcl | the only thing is: you can't expect the htc blueangel kernel to run on a universal, it will have different hardware, different GPIO configuration, etc. |
| 12:55.08 | lkcl | so you have several months of research ahead of you - using haret.exe (hand-held reverse-engineering tool) before you can expect it to work. |
| 12:55.13 | rob_w-cgi | stupid name for our ringtone |
| 12:55.15 | oxi | also, do i need deep knowledge to port the thing? i mean, i know how to write c++ but i dont have a clue about pda hardware... i would crosscompile with oe for arm... and thats all... wouldnt know how to optimise for xscale ... |
| 12:55.41 | lkcl | there are stacks of ports already for xscale for you to base the work off of. |
| 12:56.09 | lkcl | analysing the hardware (taking it apart and photographing it) and finding out what chips are in it is one of the most important things. |
| 12:56.29 | lkcl | then you can look up the part numbers on the internet and find out if there are any datasheets for the chips. |
| 12:56.29 | oxi | o_O omg |
| 12:56.44 | lkcl | *shrug* - that's just the way it is! |
| 12:56.57 | lkcl | it's been done, already, for both the himalaya and the blueangel. |
| 12:57.35 | oxi | damn manufacturers |
| 12:57.58 | lkcl | cp15 - damn it. what cvs tag is downloaded from sourceforge by bitbake: i just added a couple of lines into the source code to do printks and they're not there. argh. |
| 12:58.07 | lkcl | oxi - yep! |
| 12:58.19 | lkcl | welcome to reverse-engineering :) |
| 12:58.29 | oxi | lkcl: thank you for all the info. you really helped me out :) |
| 12:58.51 | lkcl | well, i dunno about that :) do you _absolutely_ need a universal? blueangels are nice :) |
| 13:00.04 | oxi | well i already bought it... :~ |
| 13:00.10 | lkcl | oops :) |
| 13:00.25 | lkcl | that's what i did with my himalaya. |
| 13:00.34 | rob_w-cgi | sf,net naturally takes some "minutes" to tag your changes and therefore you will need to wait unitl you cvs co |
| 13:00.59 | lkcl | 18 months later i'm in the fortunate position of the work i did not being wasted because the revision 3 (blueangel) was very similar. |
| 13:01.04 | lkcl | ack, rob. ta. *sigh*... |
| 13:14.05 | lkcl | okay - cp15: the w100fb_resume is done BEFORE the blueangel_lcd_hw_init. |
| 13:14.12 | lkcl | that's the wrong way round. |
| 13:15.16 | lkcl | the LCD powerup sequence AFAIK does switch-on stuff that then you need to init the ATI chip... burble, burble... |
| 13:18.32 | lkcl | if the w100 framebuffer was a module i'd be able to test this. |
| 13:18.37 | lkcl | grr. |
| 13:18.56 | cp15 | Ok, that might be the problem |
| 13:19.18 | lkcl | how to change the order: any clue? |
| 13:20.13 | lkcl | or can we deliberately call an init function from inside the LCD |
| 13:20.24 | lkcl | in blueangel_lcd_suspend |
| 13:21.18 | lkcl | hack, hack :) |
| 13:38.22 | rob_w-cgi | i see the mail with oyur printk messages |
| 13:52.10 | lkcl | rob - would you be interested to do some work in this country? |
| 14:18.46 | lkcl | cp15 - hi. the thing is, the resume needs to be taken care of by one or the other - not both - or the ordering (registration) of suspend/resume needs to be reversed. |
| 14:20.52 | rob_w-cgi | lkcl , well feel free to private message me and gimme some more details |
| 14:27.42 | *** join/#htc-blueangel geers_ (n=DevzMan@c51008F31.inet.catch.no) |
| 14:46.29 | cp15 | lkcl: The public cvs takes some time to get updated from developer cvs |
| 14:46.29 | cp15 | But please don't use the cvs to insert debug code, do it in your local tree |
| 14:46.42 | cp15 | If I remember correctly blueangel_lcd_hw_init gets called from w100fb_resume |
| 14:46.58 | rob_w-cgi | right you can have a local patch in the oe tree |
| 14:47.45 | cp15 | You don't even need a patch, you simply can edit the kernel tee under work and remove the stamps after compile |
| 14:48.13 | rob_w-cgi | hehe or so |
| 14:52.58 | lkcl | ack, sorry. |
| 14:53.43 | lkcl | no it doesn't get called. |
| 14:54.26 | lkcl | if tg && tg->resume tg->resume(par) |
| 14:56.14 | lkcl | hmm, yes, you're right - but the lcd_hw_init fn doesn't show up in the right order in thingy. dmesg. sooo.... |
| 14:57.16 | lkcl | more debug! |
| 15:02.43 | lkcl | cp15: yep, you're right. err... yes. you're right. oh. |
| 15:02.44 | lkcl | ah. |
| 15:03.03 | lkcl | yes. |
| 15:03.05 | lkcl | okay. |
| 15:03.11 | lkcl | i can just reverse the order. ha ha :) |
| 15:05.02 | lkcl | oh btw - i copied run.do_compile.NNNN into linux-2.6-xda as a shellscript, and execute that - it does a quicker job. |
| 15:05.59 | lkcl | bitbake is _so_ half-baked... |
| 15:06.10 | lkcl | i so can't be bothered to pander to it. |
| 15:08.33 | lkcl | hmmm.... |
| 15:12.57 | rob_w-cgi | seems like loading blueangel_pcmcia these days locks it up |
| 15:14.17 | lkcl | that's better than the himalaya - there ain't no driver! |
| 15:18.49 | lkcl | hmmm.... |
| 15:26.03 | rob_w-cgi | ok i now have a handmade /etc/modules .. for what ever reason update-modules falls on my image here -- maybe as i just copied over my existing image at one point . .dont wanna loose my apps all the time ;-) |
| 15:33.12 | lkcl | you need 2 blueangels, don't you ;) |
| 15:34.11 | rob_w-cgi | me ? |
| 15:34.28 | lkcl | yes you! |
| 15:34.39 | lkcl | or two SD cards. |
| 15:34.40 | rob_w-cgi | well ,, hmm |
| 15:35.52 | rob_w-cgi | yeah 2 SD are to be fine .. and i need to raise some money then i do that |
| 15:48.32 | lkcl | hmmm... |
| 15:48.57 | lkcl | giving serious consideration to compiling w100fb as a module... |
| 15:53.09 | rob_w-cgi | ok so i now called my ba and started vibrating .. but no sound .. but i see on the console mutliple entry`s saying ring_timeout |
| 15:53.19 | rob_w-cgi | i used the reversed wav |
| 15:53.29 | lkcl | ok run the sound mixer |
| 15:53.35 | lkcl | also modprobe snd-mixer-oss |
| 15:53.40 | lkcl | and modprobe snd-pcm-oss |
| 15:53.46 | lkcl | yeh i know... |
| 15:53.56 | lkcl | run gpe-mixer |
| 15:54.03 | lkcl | to check the volume and mic levels. |
| 15:54.47 | rob_w-cgi | ok all full level and retry |
| 15:55.33 | rob_w-cgi | COOL ! works !!! reverse |
| 15:56.43 | lkcl | happy now? :) |
| 15:56.50 | rob_w-cgi | i will put the sox command on the wiki |
| 15:57.00 | lkcl | cp15 - this is what the "himalaya" initialisation of the lcd looked like: |
| 15:57.01 | lkcl | + ipaq_asic3_set_gpio_b(&h3900_asic3.dev, 0x0008, 0); |
| 15:57.01 | lkcl | + ipaq_asic3_set_gpio_b(&h3900_asic3.dev, 0x0080, 0); |
| 15:57.01 | lkcl | + ipaq_asic3_set_gpio_b(&h3900_asic3.dev, 0x0100, 0); |
| 15:57.02 | lkcl | + ipaq_asic3_set_gpio_b(&h3900_asic3.dev, 0x0800, 0); |
| 15:57.02 | lkcl | + |
| 15:57.03 | lkcl | + mdelay(500); |
| 15:57.05 | lkcl | + |
| 15:57.07 | lkcl | + ipaq_asic3_set_gpio_b(&h3900_asic3.dev, 0x0080, 0x0080); |
| 15:57.09 | lkcl | + mdelay(17); |
| 15:57.11 | lkcl | + |
| 15:57.13 | lkcl | + ipaq_asic3_set_gpio_b(&h3900_asic3.dev, 0x0100, 0x0100); |
| 15:57.15 | lkcl | + himalaya_init_ATI(); |
| 15:57.17 | lkcl | + mdelay(30); |
| 15:57.19 | lkcl | + |
| 15:57.21 | lkcl | + ipaq_asic3_set_gpio_b(&h3900_asic3.dev, 0x0800, 0x0800); |
| 15:57.23 | lkcl | + mdelay(30); |
| 15:57.25 | lkcl | + |
| 15:57.27 | lkcl | + ipaq_asic3_set_gpio_b(&h3900_asic3.dev, 0x0008, 0x0008); |
| 15:57.29 | lkcl | + mdelay(30); |
| 15:57.53 | rob_w-cgi | ok i am off to go home now |
| 15:57.54 | lkcl | it wasn't _quite_ just "switch it on and pray" |
| 15:57.59 | lkcl | k rob. |
| 15:58.10 | lkcl | oops he's gone... |
| 16:01.04 | rob_w-cgi | bbl ! |
| 16:01.08 | lkcl | k rob |
| 16:02.17 | *** part/#htc-blueangel rob_w-cgi (n=txuser@dd1010.kasserver.com) |
| 16:29.47 | *** join/#htc-blueangel oho_ (n=oho@calw-d9b91757.pool.mediaWays.net) |
| 17:00.44 | *** join/#htc-blueangel cp15 (i=vqppip@p549A0CEE.dip0.t-ipconnect.de) |
| 17:00.44 | *** mode/#htc-blueangel [+o cp15] by ChanServ |
| 17:00.56 | cp15 | re |
| 17:04.25 | lkcl | heya cp15. |
| 17:04.46 | lkcl | do you know who did the original "init" code for the blueangel lcd? |
| 17:07.52 | cp15 | I did it |
| 17:09.07 | lkcl | ok. cool. the himalaya one does 4 gpio lines all off, wait 500ms, switch one on, wait 17ms, switch another one one, do the ATI initialisation, wait 30 ms, switch another one on, wait 30 ms, switch the other one on. |
| 17:09.43 | lkcl | what you're doing is switching them all on, with ms delays of 0.6, 5, and 5, _then_ doing the ATI initialisation. |
| 17:10.23 | lkcl | so - the key question is - really: where did the initialisation come from? |
| 17:10.44 | cp15 | The current code: Reverse engineering of the windows driver |
| 17:10.46 | lkcl | cos i had to do about a week's worth of reverse-engineering of the wince dlls to get the himalaya initialisation sequence |
| 17:10.54 | lkcl | ah, okay. |
| 17:10.55 | lkcl | *sigh* :) |
| 17:11.02 | cp15 | The old code: Try and error |
| 17:11.29 | lkcl | okay. |
| 17:11.48 | cp15 | But I think at least part of the initalisation have to be done before ATI, because one of the bits controls ATI power |
| 17:11.57 | cp15 | At least I think |
| 17:12.13 | lkcl | yes. that's the way it is with the himalaya. |
| 17:12.39 | lkcl | powerup a couple of lines, wait, do the ATI init, then power the remaining lines. |
| 17:13.01 | lkcl | do you know which ones? :) |
| 17:13.40 | lkcl | do you have some pseudo-code from the windows driver? |
| 17:14.08 | lkcl | or, can you send me a dump so i can take a look at it, if you're happy to walk me through it? |
| 17:16.55 | lkcl | ooo, fun. |
| 17:17.08 | cp15 | It is not that big |
| 17:17.17 | cp15 | Explanation of the asic3 gpios can be found at http://wiki.xda-developers.com/index.php?pagename=BlueangelASIC3 |
| 17:17.43 | lkcl | ack. |
| 17:18.47 | lkcl | ok... what am i looking at, here.. |
| 17:19.15 | lkcl | what function am i looking for - or what line number? |
| 17:19.42 | lkcl | okay. |
| 17:19.47 | lkcl | dispaly_type_toppoly |
| 17:22.34 | cp15 | It is a commented disassembly of ahioem.dll which is used by ace_ddi.dll (ATI driver) |
| 17:22.46 | cp15 | Don't ask me when which function is called, I don't know |
| 17:22.53 | lkcl | :) |
| 17:25.11 | lkcl | okay, after this function display_type_toppoly gets called, there's gpuib_08 switched off, a 10ms delay, gpiob_10 on, a 1ms delay, then gpio20_on. |
| 17:26.25 | *** join/#htc-blueangel oho_ (n=oho@calw-d9b91749.pool.mediaWays.net) |
| 17:28.22 | lkcl | damn - what's this? sending spi data??? |
| 17:30.02 | oho_ | Hello |
| 17:31.10 | oho_ | cp15: I was and am still really bussy, but should have more time from the weekend onwards |
| 17:33.06 | oho_ | I am off again, as I haven't got a permanent internet connection at the moment |
| 17:33.09 | oho_ | see you |
| 17:33.50 | lkcl | okay. this is gonna take a while :) |
| 17:34.19 | lkcl | the question is: do i really want to spend that much time, again? *sigh*... |
| 17:35.51 | lkcl | the vga camera: it's an i2c device? |
| 17:59.08 | cp15 | Don't know for what the spi data is. But it is only used on toppoly (0x6) devices |
| 18:00.05 | cp15 | The camera is probably i2c with connections to SPI for jpeg image transfer and ATI for moving images |
| 18:17.04 | *** join/#htc-blueangel apt (i=ibot@pdpc/supporter/active/TimRiker/bot/apt) |
| 18:17.04 | *** topic/#htc-blueangel is HTC BlueAngel is still under development ! Feel free to ask and check also -> http://www.handhelds.org/moin/moin.cgi/BlueAngel | http://wiki.xda-developers.com/index.php?pagename=BlueangelResearch | http://gnulinux.biz/files/blueangel/sd/linux/ channel chat logs at http://ibot.rikers.org/%23htc-blueangel/ * http://www.userfriendly.org/ * |
| 18:27.16 | *** join/#htc-blueangel rob_w (n=bob@p85.212.149.228.tisdip.tiscali.de) |
| 18:27.16 | *** mode/#htc-blueangel [+o rob_w] by ChanServ |
| 18:42.00 | *** join/#htc-blueangel oxi (n=oxi@212.106.207.206) |
| 18:42.02 | oxi | hi |
| 18:44.45 | cp15 | Hi oxi |
| 19:07.51 | rob_w | cp15, are you fine to get the GPL into blueangel_kp ? |
| 19:08.38 | cp15 | Sure, I will fix it with the next commit |
| 19:09.09 | rob_w | let me do it ! |
| 19:10.12 | cp15 | Ok, go ahead |
| 19:18.10 | oxi | I tried your distro on my htc universal but unfortunately it doesnt boot up. Where should i get started for porting a very basic kernel for my pda? got oe already installed and have successfully crosscompiled some packages for blueangel... but i dont know what to do to start porting for my pda. Some guy in this channel told me i should reverse engineer... but how? |
| 19:19.44 | oxi | i thought booting off your distro would be a good start point as the processor is very near to mine |
| 19:20.07 | cp15 | This can't work since the display is totally different |
| 19:20.37 | cp15 | First: Does your device have any external serial connector? Do you have a cable for it? |
| 19:20.44 | oxi | yes i do |
| 19:20.47 | oxi | usb |
| 19:20.59 | oxi | thanks btw |
| 19:21.05 | cp15 | Not usb, rs232 |
| 19:21.33 | oxi | uhh i dont think so |
| 19:21.49 | cp15 | Have you already registered an arm machine type? |
| 19:22.04 | oxi | no... |
| 19:22.24 | oxi | what do you mean by register |
| 19:24.30 | oxi | i feel i lack basic knowledge about this... but since i know how to write c++ i was hoping i could maybe port a basic kernel for my device |
| 19:25.20 | cp15 | Ok, cr2 has already done it |
| 19:25.27 | cp15 | Your machine number is 855 |
| 19:26.10 | cp15 | Do you have some time next weekend? |
| 19:26.53 | oxi | yes |
| 19:26.55 | oxi | why? |
| 19:27.13 | oxi | what is that number? i dont get it |
| 19:27.18 | cp15 | Then maybe we can put together a at least booting kernel |
| 19:27.27 | cp15 | The number is the machine id |
| 19:27.30 | oxi | oh that would be wonderful :)) |
| 19:28.04 | cp15 | I will try to make it boot on my BA first without any special hardware references, so I hope it will work for you too |
| 19:28.20 | oxi | thank you :) |
| 19:28.35 | cp15 | The machine id is used by the kernel to discover on which machine it is running |
| 19:29.09 | oxi | oh ic |
| 19:30.51 | cp15 | I hope I can give you a booting kernel and a few tips, but for the rest you are on your own |
| 19:31.43 | cp15 | But try to contact cr2 from xanadux-developers.com, he knows the universal very well |
| 19:32.02 | oxi | thanthank you :) |
| 19:32.04 | oxi | ill do |
| 19:32.16 | rob_w | -1 Invalid module format <- what is that ? |
| 19:34.04 | rob_w | oh now i see wrong gcc i use by handcompiles |
| 19:36.46 | rob_w | seems like i need to update my toolchain to gcc 3.3.4 |
| 19:49.41 | lkcl | oxi - hi. machine number is a #define in the source code of the kernel - every new bit of hardware needs one, and it's used to enable different features at compile-time and at runtime. for example, two different Compaq IPAQs may use the same wireless device but they are at different memory locations in the two devices: you'd use the machine_id() function to tell you what address. |
| 19:50.20 | lkcl | http://wiki.xda-developers.com/index.php?pagename=HTC_Universal |
| 19:50.44 | lkcl | http://wiki.xda-developers.com/index.php?pagename=UniversalResearch |
| 19:51.30 | lkcl | http://wiki.xda-developers.com/index.php?pagename=Universal_Technical |
| 19:51.38 | lkcl | so - actually, quite a lot has been done already? |
| 19:51.41 | lkcl | ! |
| 19:51.57 | rob_w | use the source , luke right lkcl |
| 19:54.45 | lkcl | oh dear :) |
| 19:55.06 | lkcl | hmmm - it looks like it uses the PXA270 LCD. wauugh! |
| 19:56.21 | lkcl | ooo - and it does WCDMA (3G?) |
| 19:58.14 | cp15 | The LCD is compared to the BA much worse: Shared memory concept and no acceleration |
| 19:58.24 | cp15 | And this with an increased resolution |
| 20:00.01 | *** join/#htc-blueangel _cronos_ (n=cronos@ron34-1-82-224-149-102.fbx.proxad.net) |
| 20:11.53 | lkcl | heyy, that's okay - if it's got no camera, and not using that ATI chip, it's no big deal. the thing about the ATI chip is i heard it's got MPEG encode/decode built-in. |
| 20:15.38 | cp15 | It got even two cameras |
| 20:16.40 | cp15 | Yes, the ATI has a dct accellerator. Not really required on 240x320, but quite useful on 640x480 |
| 20:22.10 | oxi | hey lkcl, sorry i was afk, thanks for the info |
| 20:54.34 | cp15 | Good news everyone... I have fixed blueangel_battery so you should now get your battery charge status |
| 20:55.31 | rob_w | ohhhh i was that close .. |
| 20:55.32 | lkcl | excellent! |
| 20:55.40 | rob_w | dcc dcc |
| 20:55.48 | cp15 | It's in the cvs |
| 20:56.16 | cp15 | The trick was that the adc has to be stopped after the conversion is finished |
| 20:57.13 | rob_w | hmm let me see |
| 21:01.32 | rob_w | i hate those cvs emails ... as i dont know what the ! stands for !! |
| 21:02.40 | rob_w | oh oh my lcd flickers ?!?!?! |
| 21:03.17 | cp15 | Quick, turn it off |
| 21:03.28 | rob_w | hmm |
| 21:03.46 | rob_w | system is stuck .. no ssh ! |
| 21:04.25 | rob_w | that didnt look nice .. |
| 21:06.15 | cp15 | Was the screen blanker active? |
| 21:07.30 | rob_w | no it was during gomunicator was up and the message and number-enter fields where the most flickering |
| 21:08.19 | cp15 | Maybe the ati got out of sync |
| 21:09.34 | rob_w | cp15, why is blueangel_asic.h in "the attic" ? |
| 21:10.13 | rob_w | or , what in gods name is "a attic in the kernel source tree " ?!? |
| 21:11.13 | cp15 | Attic=Dachboden |
| 21:11.24 | cp15 | This is where you store things no longer needed |
| 21:12.09 | rob_w | so far i also got .. aha ,,so then this header will soon be obsolete or "should be made obsolete soon " ? |
| 21:12.58 | cp15 | No, I accidentally imported it with a clean kernel source |
| 21:13.16 | cp15 | And so I removed it later and then imported it again |
| 21:13.27 | rob_w | ahm |
| 21:14.21 | rob_w | hmm can i use my account for sf.net in the kernel_cvs.bb |
| 21:15.05 | cp15 | Do you use key authentication? |
| 21:15.52 | rob_w | no |
| 21:16.27 | cp15 | Then maybe you get a problem with entering your password, but just try it |
| 21:23.21 | rob_w | works !! |
| 21:27.26 | lkcl | also, if a file is added only in a branch, not in the mainline, it gets put into the attic not into the main directory. |
| 21:28.51 | cp15 | So the attic is not only for things you no longer need, but also for things which you might need later :-) |
| 21:30.10 | lkcl | yepp |
| 21:30.10 | lkcl | so. |
| 21:30.18 | lkcl | what we gonna do about this frikkin lcd thing? |
| 21:30.55 | rob_w | prevent the software to lock up |
| 21:31.12 | cp15 | Have you found anything in the asm? |
| 21:31.30 | rob_w | unfortunatley i had no chance to capture logs |
| 21:31.32 | lkcl | i started looking at it, and it reminded me of the time i hurt my brain. |
| 21:31.48 | lkcl | how about creating an NFS-booting kernel? |
| 21:32.16 | cp15 | What would it have for advantages? |
| 21:32.24 | lkcl | one which doesn't need a framebuffer device - so it can be a module? |
| 21:32.30 | rob_w | i could direct the logs onto the sd , right ? |
| 21:32.34 | lkcl | then it's possible to load/unload |
| 21:32.39 | lkcl | yes, that too, rob. |
| 21:32.50 | cp15 | Does the framebuffer depend on nfs? |
| 21:33.10 | lkcl | if you set up an NFS-booting kernel, you can set up a thingy - root filesystem - which has log files stored there, etc. |
| 21:33.21 | lkcl | no, nfs root mount won't depend on framebuffer. |
| 21:34.23 | cp15 | Ok, I see... Feel free to add it to the initrd. But I think nfs is currently neither compiled in nor as a module |
| 21:34.37 | rob_w | well i dont have nfs everywhere |
| 21:34.52 | cp15 | Ok, nfs is compiled as a module |
| 21:34.55 | rob_w | i used nfs ?!? |
| 21:35.13 | rob_w | right |
| 22:20.55 | lkcl | you have to specifically select ROOT_NFS option and then you can specify root=nfs:/192.168.0.223/root on the kernel boot line. |
| 23:05.41 | cp15 | Will go to bed now |
| 23:05.43 | cp15 | Good night |