**** BEGIN LOGGING AT Fri Jun 29 02:59:58 2012 Jun 29 05:55:53 GNUtoo-hplaptop: no Jun 29 05:56:05 ok Jun 29 05:56:21 if I remember well it was something with alsa in the kernel Jun 29 05:56:27 or maybe in fsodeviced Jun 29 05:56:32 something very tricky Jun 29 13:24:48 hi Jun 29 13:26:14 GNUtoo-hplaptop, mirage335: I almost have galaxy nexus ril done. I have sort of written the firmware loader, but it fails 2 times out of 3, so need to fix some bugs. writing to IPC socket and receiving data seems to work Jun 29 13:26:40 so what's left is md5 nvdata checking and implementing ipc callbacks for libsamsung-ipc Jun 29 13:27:06 ok nice Jun 29 13:28:03 I wonder why sometimes the firmware loader just freezes. Either my typo or I need to add a select() somewhere Jun 29 14:49:46 Ok. How close are we to working graphics though? The phone is unbootable until that is fixed. Jun 29 15:56:18 SHR: 03shr-devel 07buildhistory * r1561be8786c3 10/packages/ (156 files in 156 dirs): packages: Build 201206291649 of shr 20120629 for machine om-gta02 on opmbuild Jun 29 17:31:56 SHR: 03shr-devel 07buildhistory * r565ec06b4eed 10/packages/ (156 files in 156 dirs): packages: Build 201206291828 of shr 20120629 for machine nokia900 on opmbuild Jun 29 17:59:07 SHR: 03shr-devel 07buildhistory * rddf883db15fc 10/packages/om_gta04-oe-linux-gnueabi/shr-version/ (latest shr-version/latest): packages: Build 201206291942 of shr 20120629 for machine om-gta04 on opmbuild Jun 29 18:26:07 SHR: 03shr-devel 07buildhistory * ra58b402995f0 10/packages/crespo-oe-linux-gnueabi/shr-version/ (latest shr-version/latest): packages: Build 201206292008 of shr 20120629 for machine crespo on opmbuild Jun 29 18:26:07 SHR: 03shr-devel 07buildhistory * r5593d44915db 10/images/crespo/eglibc/chroot-image/ (4 files): images: Build 201206292008 of shr 20120629 for machine crespo on opmbuild Jun 29 18:52:05 SHR: 03shr-devel 07buildhistory * r476f4c21eb36 10/packages/palmpre-oe-linux-gnueabi/shr-version/ (latest shr-version/latest): packages: Build 201206292035 of shr 20120629 for machine palmpre on opmbuild Jun 29 18:54:19 GNUtoo-hplaptop: hello , tomorrow i am back io i can start fixing audio for n900, during this time vala was currently updated to 0.16 true ? how do you develop ? for fso you have a small tutoriial or llink ? Jun 29 18:54:50 nschle85-netbook, yes it was, so it's now easier to develop for n900 Jun 29 18:55:06 I use morphis's devshell that is in his meta-staging Jun 29 18:55:08 on github Jun 29 18:55:17 then I run some scripts Jun 29 18:55:21 like that for instance: Jun 29 18:56:17 http://pastie.org/private/t3v1ixvtupuwr68i4obtw Jun 29 18:56:34 note that I'm very tired at the moment Jun 29 18:56:48 ok ill see tomorrow in the history Jun 29 18:57:17 GNUtoo-hplaptop: why are you tired ? you won against germany :-) Jun 29 18:57:39 because I'm ill(cold) Jun 29 18:58:02 GNUtoo-hplaptop: ups, i can feel like you Jun 29 18:58:10 ok Jun 29 18:58:12 np Jun 29 18:58:58 it's summer super-hot and I manage to take cold Jun 29 18:59:01 GNUtoo-hplaptop: so tomorrow ill update all the stuff at home and ill see how you feel Jun 29 18:59:16 ok Jun 29 18:59:37 here in estonia we have 17 degrees :-) Jun 29 18:59:51 in munich 32 are proposed Jun 29 19:00:00 ok Jun 29 19:00:29 + it's easy to get cold in transportation in italy Jun 29 19:00:31 so ill read some logs ... bye and i hope you feel better Jun 29 19:00:37 because outside it's very hot Jun 29 19:01:08 and then they put air conditioner in some transport but which creates a lot of cold Jun 29 19:01:12 way more than needed Jun 29 19:01:20 but I got cold with my own air conditioner tough Jun 29 19:01:45 my air condition in car is out of order :-) Jun 29 19:02:05 ok Jun 29 19:02:19 I kinda hate it when it's not hot outside and people shut the window and turn on the conditioner Jun 29 19:02:57 so ill not disturb you anymore .. by see you tomoirrow ? bye Jun 29 19:18:41 SHR: 03shr-devel 07buildhistory * r45bc5e38777c 10/packages/palmpre2-oe-linux-gnueabi/shr-version/ (latest shr-version/latest): packages: Build 201206292101 of shr 20120629 for machine palmpre2 on opmbuild Jun 29 19:43:53 would anyone be so kind to clarify why libsamsung-ipc doesn't do null-pointer checks in malloc, for example? is stability not a priority for SHR? Jun 29 19:46:48 Alex[sp3dev]_: some argue that when you're low on memory most of the time malloc wouldn't return an error but the program will crash when you first try to access the memory. Jun 29 19:49:51 PaulFertser: that's pretty silly and means the allocator is broken. It may very well be that the malloc may fail because heap is fragmented or someone requested an unrealistic amount of memory. But not checking pointers is opening a can of worms. I'll not touch others'c code, but in my code I always try to check all return codes and shut down gracefully Jun 29 19:50:45 Alex[sp3dev]_: the point is that practically you can't shut down gracefully on a modern system most of the time. That your app will get killed no matter how you treat the return value. Jun 29 19:51:07 PaulFertser: good point Jun 29 20:03:46 Alex[sp3dev]_: btw, crashing the app is probably sometimes even better than gracefully closing, because you get a coredump to tell exactly what and where failed. Jun 29 20:05:59 PaulFertser: but, potentially, not checking data sanity means opening up a security hole. Even being able to crash the system daemon is bad. There can be a lot of pros and cons. You probably have to balance between writing a lot of code and stability Jun 29 20:08:54 Alex[sp3dev]_: indeed :) Jun 29 20:22:32 actually malloc() is the only functioncall that arguably makes no sense to care too much about catching errors Jun 29 20:23:44 probably yeah, it's impossible to recover anyway Jun 29 21:19:05 DocScrutinizer: hey Doc :) Jun 29 22:24:23 huh.. finally shove my firmware loader and some hacks into libsamsung-ipc and ipc-modemctrl seems to get it all the way to registering on network http://pastebin.com/RHxnVpi3 Jun 29 22:31:44 GNUtoo-hplaptop: are you still awake? Jun 29 22:31:56 yes Jun 29 22:32:03 wow Jun 29 22:32:24 GNUtoo-hplaptop: any ideas how to build the ril now? Jun 29 22:32:39 hmmm Jun 29 22:32:51 mm in the ril dir I guess Jun 29 22:33:07 but what you need is rather samsung-ril which is a libril Jun 29 22:33:29 well, I checked out morphis's libsamsung-ipc and paulk's (from replicant manifest) samsung-ril and I get a lot of compilation errors Jun 29 22:33:38 ok Jun 29 22:33:41 which errors? Jun 29 22:33:59 because I guess it has some dependencies Jun 29 22:34:05 import it in your android tree Jun 29 22:34:30 like hardware/ril/samsung-ril/samsung-ril.c:397: error: 'RIL_REQUEST_REGISTRATION_STATE' undeclared (first use in this function) Jun 29 22:34:47 ah that's probably from rild Jun 29 22:35:49 libril/ril_commands.h: {RIL_REQUEST_REGISTRATION_STATE, dispatchVoid, responseStrings}, Jun 29 22:36:02 ah no sorry Jun 29 22:36:04 include/telephony/ril.h:#define RIL_REQUEST_REGISTRATION_STATE 20 Jun 29 22:36:09 in hardware Jun 29 22:36:26 and paulk is away for 2 days Jun 29 22:36:35 GNUtoo-hplaptop: what was the last successful replicant build built off? Jun 29 22:36:47 what do you mean? Jun 29 22:36:57 I built it some days ago and it worked Jun 29 22:37:08 ok, then I'm doing something wrong Jun 29 22:37:11 indeed Jun 29 22:37:17 I'm building on ics Jun 29 22:37:21 ah ok Jun 29 22:37:30 ics should build too Jun 29 22:37:37 it's highly experimental tough Jun 29 22:38:19 ok. let me push my dirty changes. I'll probably be away till monday when I work on properly integrating everything Jun 29 22:38:35 ok Jun 29 22:38:55 if you want I can help you integrate the changes Jun 29 22:39:51 but I can only build for now Jun 29 22:40:04 I don't have neither sgs2 nor galaxy nexus Jun 29 22:40:59 GNUtoo-hplaptop: I still want to fix some issues with the firmware loader, so it's not worth integrating now. I just need to push the changes not to lose them if the laptop fails or whatever Jun 29 22:41:12 yes Jun 29 22:41:25 ok Jun 29 22:41:37 so feel free to ping me for the integration Jun 29 22:41:46 when you'll want to integrate the changes Jun 29 22:42:38 pushed to https://github.com/astarasikov/libsamsung-ipc .trust me, the diff is huge ;) Jun 29 22:43:33 ok Jun 29 22:43:43 we'll also need to test on crespo etc... Jun 29 22:43:47 I can do that Jun 29 22:46:02 what's unimplemented in libsamsung-ipc anyway? we need a fully working phone. and while we can't reverse-engineer opengl blobs and don't currently have sources, telephony, gps and stuff like that is required to work perfectly with reversed drivers so I'll have to fix it anyway Jun 29 23:58:31 mirage335: good news. compiled samsung-ril with my galaxy nexus support. got registered on the network and even accepted the incoming call Jun 30 00:00:15 Awesome! Jun 30 00:00:46 Alex[sp3dev]: So, we just need just graphics support, and then we can get replicant working right? Jun 30 00:02:21 so. here's the IPC library https://github.com/astarasikov/libsamsung-ipc and RIL is at https://gitorious.org/~ast/replicant/asts-hardware_ril_samsung-ril/commits/xmm6260-dirty-wip . I'll be away during the weekend but will prepare the proper patches next week Jun 30 00:03:01 Ok... I'm not sure how I'd test them... Jun 30 00:03:07 mirage335: I think some work will need to be done to make GPRS working and verify all stuff works (like sound routing), but basically yes, only graphics are a major blocker Jun 30 00:03:23 Ahh. That's what I was asking. Jun 30 00:03:32 So basically, we don't have HSPDA stuff yet? Jun 30 00:03:35 No data? Jun 30 00:04:45 I'm not sure it is even implemented for nexus s. but wait. I have not even implemented RFS (remote filesystem) so half of the features must not work. You see, I'm given time at work to reverse some galaxy nexus parts. So I'll have to fix everything, but not during the weekends Jun 30 00:05:33 Ok. Jun 30 00:05:53 Thanks, I really appreciate this. Jun 30 00:06:45 so it may be that my dream of running ubuntu with qt4, x11 and fsogsm may come true Jun 30 00:12:32 mirage335: here's an image of an SMS received. http://rghost.ru/private/38948942/b2bfde40194c4c0ebd7cf3002a3e146a.view . Now good night everyone, I'm off to bed Jun 30 00:12:42 ttyl **** ENDING LOGGING AT Sat Jun 30 02:59:58 2012