**** BEGIN LOGGING AT Thu Jul 16 02:59:57 2009 Jul 16 03:10:03 marex: Wondering if you'd know if most CDMA modems would follow the specifications or will they most likely use a lot of custom commands that will make me unable to even get it to make a call? Jul 16 03:10:41 I found a PDF describing AT commands for talking to CDMA modems, but not sure if it's any use Jul 16 03:12:17 hmm, this pdf also contains commands specific to certain carriers, that's a plus Jul 16 03:15:39 also, how are the speaker and mic connected to the modem? Do they usually just exist as channels in the mixer or is it more low level then that? Jul 16 03:20:09 hmm, mic and speaker gain controls are listed in the spec Jul 16 03:22:32 when I try to load my custom build of 2.6.31-rc2 on my 755, cocoboot can find my zImage (1st partition is 256MB fat16, contains zImage only), but not my initrd.gz. Loading the zImage locks up the phone and turns off the keyboard backlight. Jul 16 03:22:51 should the kernel load be getting farther even with no initrd.gz? Jul 16 03:23:20 where does my initrd.gz live? I'm using sleep_walker's debian-armel rootfs from april. Jul 16 03:23:40 (rootfs extracted to the second partition, 1.6GB ext3) Jul 16 03:29:49 mekius: no idea about cdma, as for the mixer, yes, the audio output from the modem is connected to the sound chip Jul 16 03:29:59 the sound chip then does the mixing Jul 16 03:30:15 then, the usb/serial is connected to the cpu as a control port Jul 16 03:30:31 k Jul 16 03:30:49 donspaulding: you dont need initrd.gz at all Jul 16 03:31:10 so really the connection to the modem is just a serial connection, so nothing more then the std serial drivers are necessary? Jul 16 03:31:12 donspaulding: I think you have problems with machine id ... Jul 16 03:31:22 mekius: probably Jul 16 03:31:30 unless you built your kernel without all the necessary modules to mount the rootfs, you don't need an initrd/initramfs Jul 16 03:31:39 mekius: maybe some wrapper if it uses some obscure way to receive commands/respond to them Jul 16 03:32:17 marex: yeah heh Jul 16 03:32:34 donspaulding: well ... at least not for new ... if you have configured the kernel with pxafb support and support for your device, it's all good Jul 16 03:32:45 marex: But does it sound reasonable that they would all use a standard set of AT commands to communicate with them with maybe a few carrier specific ones? Jul 16 03:32:56 that's what most GSM modems do no? Jul 16 03:35:22 yes Jul 16 03:35:42 k :) Jul 16 03:35:51 the one is htc beetles can be dialed using standard at commands (Im running through it right now) Jul 16 03:35:58 s/is/in/ Jul 16 03:36:00 I was thinking this would be harder, but it seems fairly trivial to dial a number heh Jul 16 03:36:10 and receive calls as long as you're watching the stream Jul 16 03:36:17 well try running minicom on the modem port Jul 16 03:36:22 yeah Jul 16 03:36:41 I'm thinking of grabbing the latest kernel from sleepwalker and loading it on my phone and seeing if I can find the modem :) Jul 16 03:36:56 is the modem in a separate place or does it just show up as a std ttyS* Jul 16 03:37:22 ttyS* Jul 16 03:38:11 fun :) Jul 16 03:38:14 btw the hard part can be if the manufacturer is an idiot and does use some binary way to supply at commands to the modem ... Jul 16 03:38:21 that would be quite lame Jul 16 03:38:25 it doesnt happen much today though Jul 16 03:38:45 in that case I'd have to write a wrapper app that does the conversion and communicates to/from the modem Jul 16 03:39:05 which you'll want anyways if you ever hope to receive calls in a proper manner :P Jul 16 03:39:40 naw, properly patch gsmd and that's all Jul 16 03:40:21 lol, a google search for gsmd shows "Greater Swiss Mountain Dog Club of America" as the first result :P Jul 16 03:40:32 that beats out openmoko lol Jul 16 03:41:12 is gsmd still maintained these days now that they've switched to qtopia? Jul 16 03:42:53 hmm, can't believe noone hasn't made a cdma version of gsmd Jul 16 03:44:52 sorry marex, jumping around between screens. I've added the 755 files in arch/arm which are just copies of the treo680 stuff that sleep_walker did. When you say problems with machine id, are you talking about in Cocoboot, or the kernel build? Jul 16 03:47:50 marex: hmm, wish I could just throw a debian install on my phone and apt-get everything, but that ain't happening without a data connection heh Jul 16 03:48:26 donspaulding: what machind ID are you booting from cocoboot with ? (the number in top left corner) Jul 16 03:48:44 mekius: ues networking doesnt work ? Jul 16 03:48:48 *usb Jul 16 03:49:28 while I'm in linux on the phone? Jul 16 03:49:33 how would that work? Jul 16 03:49:41 If I can do that it would be sweet hh Jul 16 03:49:42 heh Jul 16 03:49:48 marex: 1424 Jul 16 03:50:04 donspaulding: that's treo755, right ? Jul 16 03:50:08 yup Jul 16 03:50:13 having to build a new OE image to get new apps kinda sucks or building the opkg or whatever it's called Jul 16 03:50:58 so, what's in arch/arcm/mach-pxa/t755p.c (or whatever you called it) on line starting "MACHINE_START" ? Jul 16 03:51:06 s/arcm/arm/ Jul 16 03:51:36 (damn, this 22kbps is interactive as postal service) Jul 16 03:52:21 rofl Jul 16 03:52:31 brb, switching to laptop for some more research/hacking Jul 16 03:52:38 mekius: well usb networking should work (ask sleepwalker for details), the idea is it registers as network interface usb0 on both sides and you just configure it Jul 16 03:52:53 nice, unfortunately he's away atm :P Jul 16 03:53:10 i'll see if i can find anything online Jul 16 03:54:06 well just try plugging in the usb cable Jul 16 03:54:14 see dmesg id anything changed Jul 16 03:54:21 *if Jul 16 03:58:37 marex: http://pastebin.org/2462 Jul 16 04:00:30 and http://pastebin.org/2463 Jul 16 04:02:54 donspaulding: loading, please wait (afk, breakfast ... it should load by then) Jul 16 04:03:26 desertdog: hello Jul 16 04:03:48 donspaulding: that looks correct Jul 16 04:04:32 desertdog: donspaulding is also interexted in yout t755 work Jul 16 04:04:58 donspaulding: did you ever got t680 kernel to boot ? Jul 16 04:05:05 hello Jul 16 04:05:20 donspaulding: pastebin your kernel config (.config) Jul 16 04:06:03 marex: Do you know anything I can search for that might point me to what sleepwalker uses? Jul 16 04:06:29 mekius[work]: for what? Jul 16 04:07:09 marex: doing the network sharing over the usb data cable Jul 16 04:07:40 well just plug in the cable, it detects as usb0 interface, then use ifconfig Jul 16 04:08:02 marex: never tried the t680 kernel Jul 16 04:08:40 marex: hmm, not seeing it :D Jul 16 04:08:49 marex: probably needs a module of some sort I'd guess Jul 16 04:08:59 (if sleepwalker enabled it in kernel config) Jul 16 04:09:05 marex: pxafb was built as a module, does it need to be builtin Jul 16 04:09:07 ? Jul 16 04:09:16 well sorry, the connection is to slow ... I wasnt finished typing the rest of the sentence Jul 16 04:09:27 *too Jul 16 04:09:44 marex: oh, I need to be running linux, makes sense :) Jul 16 04:09:49 donspaulding: yes, to use framebuffer Jul 16 04:11:33 ah, the bootpack page for Emfox's 680 stuff seems to explain how to do it Jul 16 04:11:43 http://pastebin.org/2464 Jul 16 04:11:52 ( most recent .config Jul 16 04:11:53 ) Jul 16 04:15:07 donspaulding: well throw out all the unnecessary drivers (pcmcia ...) and even disable modules support Jul 16 04:16:29 leave just CONFIG_MACH_TREO755P CONFIG_FB_PXA ( you dont even need overlays, smartpanel ...) and related stuff Jul 16 04:16:46 marex: should I be doing this by hand? Jul 16 04:16:53 I've been using menuconfig Jul 16 04:16:53 so you just kernel supporting framebuffer and basic stuff Jul 16 04:17:00 donspaulding: sure, use menuconfig Jul 16 04:17:21 disable all you dont need Jul 16 04:19:12 ok Jul 16 04:24:39 I don't need Jul 16 04:25:06 sorry, premature ejaculation of bits. Jul 16 04:25:14 gross Jul 16 04:26:01 do I need parallel port support for any reason? Jul 16 04:26:04 marex: CONFIG_MACH_TREO680 works for centro too eh? Jul 16 04:26:05 Jul 16 04:26:49 mekius[work]: I think so Jul 16 04:26:51 k Jul 16 04:27:36 hmm, I have a usbnet.sh script, I must have done this before :D Jul 16 04:35:14 marex: where are the latest builds of cocoboot, only seeing 0.5.3 on hackndev, but I somehow have 0.6.1 on my phone heh Jul 16 04:36:39 not sure I even need a newer one, I know I've booted kernels just fine in the past so it will probably work fine Jul 16 04:38:04 try wiki/trac Jul 16 04:38:09 it's in the bootpacks section Jul 16 04:38:18 http://marex.hackndev.com/cocoboot.prc should be latest Jul 16 04:40:17 ah Jul 16 04:41:30 yeah, same version I already have, so I'll just keep the one that I know works :D Jul 16 04:43:55 mekius[work]: it's not the same, it's newer build Jul 16 04:46:04 you sure? :) Jul 16 04:46:09 i'll use it then Jul 16 04:55:19 oops, need the proper modules :) Jul 16 04:58:26 yes, Im sure ... are you sure you deleted the old one from your debice ? Jul 16 04:58:31 *device Jul 16 04:58:31 yes :) Jul 16 04:58:36 I got it loaded, no worries :) Jul 16 04:58:48 It just had the same version number so I figured it was the same Jul 16 04:58:49 then check the (i) icon in the top right corner Jul 16 04:58:54 I was able to boot the kernel with the centro number Jul 16 04:59:04 it should show build date Jul 16 04:59:38 will check it once I put the sdcard back in Jul 16 04:59:42 had to tweak my rootfs a bit Jul 16 05:00:14 sigh, already midnight :/ Jul 16 05:02:15 7am here Jul 16 05:10:06 that's when I leave the house for work :) Jul 16 05:12:56 sweet, got X disabled at startup since it decides to kinda puke heh Jul 16 05:15:42 hmm, well I can ping my host box, but there is no route between the usb0 and my eth0, guess i'll need to do something to make that work heh Jul 16 05:23:33 well enable ip forward and setup ip tables to do it Jul 16 05:23:41 yeah :/ Jul 16 05:24:04 can't take care of this with simple routes? Jul 16 05:24:24 echo "1" > /proc/sys/net/ipv4/ip_forward ; iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE or something like that Jul 16 05:24:41 hmm, neat :) Jul 16 05:24:49 well if you have router set up properly, oyu cna Jul 16 05:24:55 *you can Jul 16 05:27:11 heh, I don't even have iptables installed :P Jul 16 06:21:25 nice, my camera button is tab :D Jul 16 06:21:30 was hoping there was a tab Jul 16 06:32:53 marex: btw, build date on cocoboot is feb 2 2009 Jul 16 06:34:11 having issues with this ip forwarding crap, not sure why it's being such a pain Jul 16 06:34:31 I can ping my laptop which it's connected to and the laptop has ip_forwarding true, but nothing being forwarded :/ Jul 16 07:26:22 jeez ... paying $30 for this crappy internet connection is disgusting Jul 16 11:58:10 morning Jul 16 12:18:01 xMDKx: hello Jul 16 17:55:39 hrm, still only getting the "Loading /zImage 7188856b OK" message when trying to cocoboot my kernel (config here http://pastebin.com/m5400cc02 ) Jul 16 17:56:05 I think I'm going to give that YCMIAO tree a try. Jul 16 18:01:45 your kernel is 7 megs big ? Jul 16 18:06:43 marex_: yeah, with no module support, that's what it ballooned to. Jul 16 18:20:05 it should be around 800kb Jul 16 18:20:20 I told you to remove EVERYTHING you dont need Jul 16 18:26:46 wow, ok Jul 17 01:27:02 damn, no marex or sleepwalker :( Jul 17 02:03:15 sorry Jul 17 02:21:53 gah, wtf, cocoboot is just restarting my phone :/ Jul 17 02:22:23 now it worked, weird Jul 17 02:22:30 happened twice in a row and now it's fine :/ Jul 17 02:38:12 raster: know anything about ip forwarding? Jul 17 02:42:23 echo "1" > /proc/sys/net/ipv4/ip_forward Jul 17 02:42:33 sudo iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE Jul 17 02:42:33 sudo iptables -L Jul 17 02:42:34 :) Jul 17 02:44:15 yeah, don't all that :/ Jul 17 02:44:41 iptables -L shows nothing for input/forward/output Jul 17 02:44:41 done* Jul 17 02:44:54 does iptables need to be running? Jul 17 02:45:16 no Jul 17 02:45:19 kernel does it Jul 17 02:45:20 k Jul 17 02:45:30 that just loads up rules/info Jul 17 02:45:32 kernel does the rest Jul 17 02:45:35 hmm Jul 17 02:45:38 k Jul 17 02:48:47 hrm Jul 17 02:54:34 * mekius kicks his own ass Jul 17 02:54:41 I don't have an eth0, I have wlan0 :) Jul 17 02:55:04 I guess I was quite tired last night :P Jul 17 02:55:04 works great now Jul 17 02:55:10 odd thing is I have to do the ip_forward as actual root, sudo doesn't seem to work **** ENDING LOGGING AT Fri Jul 17 02:59:56 2009