From zero-kelvin at gmx.de Tue May 7 18:56:59 2013 From: zero-kelvin at gmx.de (dexter) Date: Tue, 07 May 2013 20:56:59 +0200 Subject: Osmocom Berlin User Group meeting In-Reply-To: <20120818115942.GV29525@prithivi.gnumonks.org> References: <502d01a9.mirider@mirider.augusta.de> <20120818115942.GV29525@prithivi.gnumonks.org> Message-ID: <51894E7B.8080707@gmx.de> Hi folks. This is the announcement for the next Osmocom Berlin meeting. May 08, 8pm @ CCC Berlin, Marienstr. 11, 10117 Berlin There is no formal presentation scheduled for this meeting. If you are interested to show up, feel free to do so. There is no registration required. The meeting is free as in "free beer", despite no actual free beer being around. Regards, Philipp Maier From craig_comstock at yahoo.com Thu May 2 13:49:34 2013 From: craig_comstock at yahoo.com (Craig Comstock) Date: Thu, 2 May 2013 06:49:34 -0700 (PDT) Subject: Pirelli DPL10 - nuttx and dump flash for restore later In-Reply-To: References: <1365172285.43518.YahooMailNeo@web121004.mail.ne1.yahoo.com> Message-ID: <1367502574.39905.YahooMailNeo@web121003.mail.ne1.yahoo.com> I did get this working on the DPL10 by enabling IRDA console. I did it two ways: copying nuttx/configs/compal_e88 to nuttx/configs/pirelli_dpl10 and editing nsh_highram/defconfig and after reading more carefully just using compal_e88 and editing nuttx/.config CONFIG_SERIAL_IRDA_CONSOLE=y maybe I could submit a patch that made a new directory for pirelli_dpl10 that matches compal_e88 but has IRDA console enabled? now on to other things... like layer 1/2, graphics... -Craig ________________________________ From: Alan Carvalho de Assis To: Craig Comstock Cc: "baseband-devel at lists.osmocom.org" Sent: Friday, April 5, 2013 12:24 PM Subject: Re: Pirelli DPL10 - nuttx and dump flash for restore later Hi Craig, On 4/5/13, Craig Comstock wrote: > > I was wondering if someone could give me a nudge on how to get started > getting nuttx working on this phone? > I never tested it on Pirelli phone, but since it is same baseband as GTA phones, you just need to use: $ cd nuttx/tools $ ./configure.sh compal_e88/nsh_highram $ cd .. $ make Then upload nuttx.bin using chainload.compalram.bin as explained here: http://bb.osmocom.org/trac/wiki/nuttx-bb/configurations Keep in mind the main development platform for nuttx-bb is C155 (compal_e99). If you need help, please enter in IRC channel ##nuttx-bb (irc.freenode.net). More info: http://bb.osmocom.org/trac/wiki/nuttx-bb Best Regards, Alan -------------- next part -------------- An HTML attachment was scrubbed... URL: From acassis at gmail.com Thu May 2 14:33:13 2013 From: acassis at gmail.com (Alan Carvalho de Assis) Date: Thu, 2 May 2013 11:33:13 -0300 Subject: Pirelli DPL10 - nuttx and dump flash for restore later In-Reply-To: <1367502574.39905.YahooMailNeo@web121003.mail.ne1.yahoo.com> References: <1365172285.43518.YahooMailNeo@web121004.mail.ne1.yahoo.com> <1367502574.39905.YahooMailNeo@web121003.mail.ne1.yahoo.com> Message-ID: Hi Craig, Yes, creating a new board config to pirelli_dp10 is the right thing to do. Patches are welcome! Best Regards, Alan On 5/2/13, Craig Comstock wrote: > I did get this working on the DPL10 by enabling IRDA console. > > I did it two ways: copying nuttx/configs/compal_e88 to > nuttx/configs/pirelli_dpl10 and editing nsh_highram/defconfig and after > reading more carefully just using compal_e88 and editing > nuttx/.config > > > CONFIG_SERIAL_IRDA_CONSOLE=y > > > maybe I could submit a patch that made a new directory for pirelli_dpl10 > that matches compal_e88 but has IRDA console enabled? > > now on to other things... like layer 1/2, graphics... > -Craig > > > ________________________________ > From: Alan Carvalho de Assis > > To: Craig Comstock > Cc: "baseband-devel at lists.osmocom.org" > Sent: Friday, April 5, 2013 12:24 PM > Subject: Re: Pirelli DPL10 - nuttx and dump flash for restore later > > > Hi Craig, > > On 4/5/13, Craig Comstock wrote: >> >> I was wondering if someone could give me a nudge on how to get started >> getting nuttx working on this phone? >> > > I never tested it on Pirelli phone, but since it is same baseband as > GTA phones, you just need to use: > > $ cd nuttx/tools > $ ./configure.sh compal_e88/nsh_highram > $ cd .. > $ make > > Then upload nuttx.bin using chainload.compalram.bin as explained here: > > http://bb.osmocom.org/trac/wiki/nuttx-bb/configurations > > Keep in mind the main development platform for nuttx-bb is C155 > (compal_e99). > > If you need help, please enter in IRC channel ##nuttx-bb > (irc.freenode.net). > > More info: > http://bb.osmocom.org/trac/wiki/nuttx-bb > > Best Regards, > > Alan From craig_comstock at yahoo.com Sat May 4 01:48:34 2013 From: craig_comstock at yahoo.com (Craig Comstock) Date: Fri, 3 May 2013 18:48:34 -0700 (PDT) Subject: Pirelli DPL-10 nuttx work in progress? In-Reply-To: References: Message-ID: <1367632114.27916.YahooMailNeo@web121002.mail.ne1.yahoo.com> Hi all, So now I have nuttx console working via IRDA on my Pirelli DPL-10 phone. Here are my next steps... I wanted to see if anyone else was working on these? - port the osmocom fb driver over to a nuttx lcd driver - get layer1 + some version of "mobile" working on the device - write a custom UI so this can be my daily driver - and in relation to the last item... send a finished phone w/ firmware to be certified by the FCC? http://transition.fcc.gov/oet/ea/procedures.html Does that sound about right? Anybody working on any of these bits? I'm not expecting this to happen overnight by any means... just expect it to be interesting and a good learning experience. Thanks, Craig -------------- next part -------------- An HTML attachment was scrubbed... URL: From acassis at gmail.com Sat May 4 21:36:22 2013 From: acassis at gmail.com (Alan Carvalho de Assis) Date: Sat, 4 May 2013 18:36:22 -0300 Subject: Pirelli DPL-10 nuttx work in progress? In-Reply-To: <1367632114.27916.YahooMailNeo@web121002.mail.ne1.yahoo.com> References: <1367632114.27916.YahooMailNeo@web121002.mail.ne1.yahoo.com> Message-ID: Hi Craig, On 5/3/13, Craig Comstock wrote: > Hi all, > > So now I have nuttx console working via IRDA on my Pirelli DPL-10 phone. > Here are my next steps... I wanted to see if anyone else was working on > these? > > - port the osmocom fb driver over to a nuttx lcd driver I worked in the LCD driver of Motorola C155 to NuttX, this is already in the NuttX mainline. > - get layer1 + some version of "mobile" working on the device This is the next step to do, unfortunately me, Denis and Thomas are not working on this currently. To do it correctly you need to understand how layer1 works and how to implement it over a RTOS. > - write a custom UI so this can be my daily driver This is the last thing to do, first we need layer1/2 working inside the phone. > - and in relation to the last item... send a finished phone w/ firmware to > be certified by the FCC? > > http://transition.fcc.gov/oet/ea/procedures.html > I don't know about FCC prices, but here in Brazil Anatel certification is a little bit expansive (at least for me). But I think this special case, where the physical device was already certified will be less expansive. > Does that sound about right? Anybody working on any of these bits? I'm not > expecting this to happen > overnight by any means... just expect it to be interesting and a good > learning experience. > Surely it will be interesting, I learning much helping Denis to port NuttX to Motorola phones. Best Regards, Alan From ubuntugirl2013 at gmail.com Thu May 9 21:01:44 2013 From: ubuntugirl2013 at gmail.com (ubuntugirl) Date: Thu, 9 May 2013 14:01:44 -0700 Subject: Which is the best branch for running mobile on DP-L10? Message-ID: Hello, I have just got myself a Pirelli DP-L10, and I would like to use it to demonstrate OsmocomBB to my local LUG. I would like to demonstrate mobile, talking to layer1 via osmocon, making and receiving a voice call, sending and receiving SMS. I only have a few basic questions: - Should I use the master branch in osmocom-bb git, or one of the other branches? The Branches page in the wiki is blank. - Am I correct in my understanding that, at least in some branch (see above), osmocom-bb does support this phone well enough to actually make a call? (Yes, I realize that layers 2&3 run on an attached host, hence the phone has to be tethered to a laptop running osmocon and mobile the whole time, and I do know how to enable Tx in the target build. :) - How is the voice routing implemented? Do I need to use lcr integration on the host, or will the audio come out of the phone's own speaker even though all higher layers of the stack are running on the PC? If the voice call audio does go through the phone's own speaker and mic, which ones? This phone model has both an earpiece speaker and a loudspeaker, plus the usual analog headset jack. Which of these audio routing options are supported, if any? Thanks everyone for this awesome project! I can't wait to show it working to my LUG. Kim From 246tnt at gmail.com Thu May 9 21:23:39 2013 From: 246tnt at gmail.com (Sylvain Munaut) Date: Thu, 9 May 2013 23:23:39 +0200 Subject: Which is the best branch for running mobile on DP-L10? In-Reply-To: References: Message-ID: Hi, > - Should I use the master branch in osmocom-bb git, or one of the > other branches? The Branches page in the wiki is blank. Currently, master. If you have trouble establishing voice calls, you can try to cherry-pick df6269173cbc72e02964159cb60d2db712eb0f07 over master. > - Am I correct in my understanding that, at least in some branch (see > above), osmocom-bb does support this phone well enough to actually > make a call? (Yes, I realize that layers 2&3 run on an attached host, > hence the phone has to be tethered to a laptop running osmocon and > mobile the whole time, and I do know how to enable Tx in the target > build. :) voice & sms should work fine from the master branch. Some small code changes might be needed for the DP-L10 though, not sure, I never really use this phone myself so I can't say. The wiki might have more info and if it doesn't, feel free to update it once you figured it out. > - How is the voice routing implemented? Do I need to use lcr > integration on the host, or will the audio come out of the phone's own > speaker even though all higher layers of the stack are running on the > PC? If the voice call audio does go through the phone's own speaker > and mic, which ones? This phone model has both an earpiece speaker and > a loudspeaker, plus the usual analog headset jack. Which of these > audio routing options are supported, if any? By default the audio will be router to/from the phone default speaker/microphone. That's because during normal phone function, the ARM and the higher layer never even see audio ... the audio frames are received, demodulated, decoded, decompressed and directly fed to the speaker all inside the DSP. The upper layer just configures the audio mode. We also added the option to route the audio frame to/from the PC in the firmware by using some special DSP mode but if you want to get the audio externally this is currently only possible with the LCR integration. (or you have to modify the code ...) Cheers, Sylvain From ubuntugirl2013 at gmail.com Mon May 13 01:01:49 2013 From: ubuntugirl2013 at gmail.com (ubuntugirl) Date: Sun, 12 May 2013 17:01:49 -0800 Subject: Which is the best branch for running mobile on DP-L10? In-Reply-To: References: Message-ID: On 5/9/13, Sylvain Munaut <246tnt at gmail.com> wrote: > voice & sms should work fine from the master branch. Thanks a lot - I just got it working! I've tested both voice and SMS, both MO and MT - all 4 worked for me on T-Mobile USA. > If you have trouble establishing voice calls, you can try to > cherry-pick df6269173cbc72e02964159cb60d2db712eb0f07 over master. At first it seemed to me that the master branch code wasn't working without this patch, but that turned out to be a pilot error on my part. Right now it seems to work the same for me with or without the patch. But I'm curious as to what that patch does, what does it fix, and if it fixes a real bug, why it isn't in the mainline... There one remaining issue of concern, though: every now and then, even though my mobile station under test is completely quiescent/idle and stationary, I see stuff like this pouring in the vty telnet window: OsmocomBB# % (MS 1) % Searching network... % (MS 1) % On Network, normal service: United States of America, T-Mobile USA Please pardon my ignorance if what I'm seeing is something completely normal and harmless, but it seems as if the mobile is periodically losing contact with the network and has to re-register, i.e., "bouncing". The phone's original proprietary fw doesn't seem to do anything like that - at my place it shows high signal strength (5 bars), and appears to be in a "totally solid" contact with the network. Is OsmocomBB mobile really making poor contact with the network (lack of RF calibration maybe?), losing this contact periodically and having to re-register, or do the messages indicate something else altogether? On the test voice calls I've made, the far end audio sounded just fine to me, and I was able to stay on the call long enough for the person on the other end to get bored - suggesting that the radio link is probably fine - but while idle/quiescent, it sometimes "bounces" a lot, sometimes so much that it's difficult to type a command line in without these messages interjecting. > Some small code changes might be needed for the DP-L10 though, not > sure, I never really use this phone myself so I can't say. The wiki > might have more info and if it doesn't, feel free to update it once > you figured it out. I didn't have to do anything special. Setting the IMEI to the proper value from the phone's shipping carton, switching from DCS to PCS by entering "no dcs" and "pcs" under "conf t" -> "ms 1" -> "support", and running with layer1.highram.bin compiled with Tx enabled made it "just work" - aside from the "bouncing" issue described above, and my pilot error of trying to dial an invalid number the first time I tried to make a call. > By default the audio will be router to/from the phone default > speaker/microphone. Confirming: on this phone model, the "default" speaker is the earpiece one, or at least that's the one that gave me the audio when making or answering a call. Has anyone tried to get the loudspeaker to work on this phone? > That's because during normal phone function, the ARM and the higher > layer never even see audio ... the audio frames are received, > demodulated, decoded, decompressed and directly fed to the speaker all > inside the DSP. The upper layer just configures the audio mode. Thanks, I got it. Kim From peter at stuge.se Mon May 13 03:14:53 2013 From: peter at stuge.se (Peter Stuge) Date: Mon, 13 May 2013 05:14:53 +0200 Subject: Which is the best branch for running mobile on DP-L10? In-Reply-To: References: Message-ID: <20130513031453.31357.qmail@stuge.se> ubuntugirl wrote: > it seems as if the mobile is periodically losing contact with the > network and has to re-register Is it actually losing contact? Is it the cell re-selection procedure? Terminals periodically scan for surrounding cells in order to switch if they see a better one. //Peter From ubuntugirl2013 at gmail.com Mon May 13 07:11:30 2013 From: ubuntugirl2013 at gmail.com (ubuntugirl) Date: Sun, 12 May 2013 23:11:30 -0800 Subject: Which is the best branch for running mobile on DP-L10? In-Reply-To: <20130513031453.31357.qmail@stuge.se> References: <20130513031453.31357.qmail@stuge.se> Message-ID: On 5/12/13, Peter Stuge wrote: > Is it actually losing contact? I thought that's what the "% Searching network..." line implied - or does it not? How else would I test it? If there is a loss of network contact indeed, it is rather brief, probably a little less than a second - hence a direct test of reachability for MT calls/SMS would be difficult. > Is it the cell re-selection procedure? > > Terminals periodically scan for surrounding cells in order to switch > if they see a better one. OK, I guess I can see that a phone has no way of knowing that it is stationary, so it has to execute that periodic procedure "just in case". But does this process require temporarily breaking the link with the current serving cell in order to check out the others? What if an incoming call or SMS happens to arrive right at that moment? All I'm saying is that to a "lay" end user seeing "Searching network..." in the UI means "oh sh*t, my phone is out of coverage or marginal - bad!". I'm trying to figure out if that is indeed what's going on, or if, considering the not-yet-for-end-users nature of OsmocomBB, the messages being printed by mobile mean something totally different from the naturally expected end-user meaning. Kim From osmocom at ehlers.info Mon May 13 08:57:03 2013 From: osmocom at ehlers.info (Tim Ehlers) Date: Mon, 13 May 2013 10:57:03 +0200 (CEST) Subject: Which is the best branch for running mobile on DP-L10? In-Reply-To: References: <20130513031453.31357.qmail@stuge.se> Message-ID: On Sun, 12 May 2013, ubuntugirl wrote: Hi, >> Is it the cell re-selection procedure? >> >> Terminals periodically scan for surrounding cells in order to switch >> if they see a better one. > > OK, I guess I can see that a phone has no way of knowing that it is > stationary, so it has to execute that periodic procedure "just in > case". > [...] you can set "no neighbour-measurement". This would turn the re-selection off. I have identified the neighbour-measurement as one of the reasons, why my phone is crashing from time to time. I think that is because of the burst-data sent from layer1 to layer23 over serial and somehow is not completely flow-controled: kernel: [900845.794906] ttyS7: 1 input overrun(s) These messages don't disappear, but are more seldom, since the data between the layers is reduced. So my advice at the moment is to disable neighbour-measurement, when using the phone stationary. Cheers Tim From holger at freyther.de Mon May 13 13:05:37 2013 From: holger at freyther.de (Holger Hans Peter Freyther) Date: Mon, 13 May 2013 15:05:37 +0200 Subject: Which is the best branch for running mobile on DP-L10? In-Reply-To: References: <20130513031453.31357.qmail@stuge.se> Message-ID: <20130513130537.GA4013@xiaoyu.lan> On Mon, May 13, 2013 at 10:57:03AM +0200, Tim Ehlers wrote: > On Sun, 12 May 2013, ubuntugirl wrote: > kernel: [900845.794906] ttyS7: 1 input overrun(s) probably the easiest fix is to have osmocon stop reading in the size of one and do the buffering inside the osmocon code. From choukoumoun at gmail.com Tue May 14 12:41:51 2013 From: choukoumoun at gmail.com (choukoumoun) Date: Tue, 14 May 2013 14:41:51 +0200 Subject: [osmocom] Fucking battery Message-ID: <5192310F.7020102@gmail.com> Hello My Motorola batteries are all swollen and therefore defective. anyone has a solution for connecting to power directly to the battery connector by usb? I thought used a 3.7V zener diodes in parallel between the - and + USB power and a series resistor. Thank you. From peter at stuge.se Tue May 14 13:24:27 2013 From: peter at stuge.se (Peter Stuge) Date: Tue, 14 May 2013 15:24:27 +0200 Subject: [osmocom] Fucking battery In-Reply-To: <5192310F.7020102@gmail.com> References: <5192310F.7020102@gmail.com> Message-ID: <20130514132427.9112.qmail@stuge.se> choukoumoun wrote: > anyone has a solution for connecting to power directly to the > battery connector by usb? > > I thought used a 3.7V zener diodes in parallel between the - and + > USB power and a series resistor. I've used LP3874. You'll need a fair bit of capacitance in order to transmit. //Peter From choukoumoun at gmail.com Tue May 14 13:49:12 2013 From: choukoumoun at gmail.com (choukoumoun) Date: Tue, 14 May 2013 15:49:12 +0200 Subject: [osmocom] Fucking battery In-Reply-To: <20130514132427.9112.qmail@stuge.se> References: <5192310F.7020102@gmail.com> <20130514132427.9112.qmail@stuge.se> Message-ID: <519240D8.5080100@gmail.com> Le 14/05/2013 15:24, Peter Stuge a ?crit : > choukoumoun wrote: >> anyone has a solution for connecting to power directly to the >> battery connector by usb? >> >> I thought used a 3.7V zener diodes in parallel between the - and + >> USB power and a series resistor. > I've used LP3874. You'll need a fair bit of capacitance in order to transmit. > > > //Peter > Nice !!!! How you connect? it was just the power connect to a USB port and trasmition and another connection. From peter at stuge.se Tue May 14 14:22:07 2013 From: peter at stuge.se (Peter Stuge) Date: Tue, 14 May 2013 16:22:07 +0200 Subject: [osmocom] Fucking battery In-Reply-To: <519240D8.5080100@gmail.com> References: <5192310F.7020102@gmail.com> <20130514132427.9112.qmail@stuge.se> <519240D8.5080100@gmail.com> Message-ID: <20130514142207.13977.qmail@stuge.se> choukoumoun wrote: >>> anyone has a solution for connecting to power directly to the >>> battery connector by usb? >>> >>> I thought used a 3.7V zener diodes in parallel between the - and + >>> USB power and a series resistor. >> >> I've used LP3874. You'll need a fair bit of capacitance in order to >> transmit. > > Nice !!!! > How you connect? I designed a PCB with a battery contact and a case to hold it in place. I've seen several people solder connections permanently to the phone. > it was just the power connect to a USB port and trasmition and > another connection. I don't understand this. //Peter From choukoumoun at gmail.com Tue May 14 15:34:13 2013 From: choukoumoun at gmail.com (choukoumoun) Date: Tue, 14 May 2013 17:34:13 +0200 Subject: [osmocom] ******* battery In-Reply-To: <20130514142207.13977.qmail@stuge.se> References: <5192310F.7020102@gmail.com> <20130514132427.9112.qmail@stuge.se> <519240D8.5080100@gmail.com> <20130514142207.13977.qmail@stuge.se> Message-ID: <51925975.5080905@gmail.com> Le 14/05/2013 16:22, Peter Stuge a ?crit : > choukoumoun wrote: >>>> anyone has a solution for connecting to power directly to the >>>> battery connector by usb? >>>> >>>> I thought used a 3.7V zener diodes in parallel between the - and + >>>> USB power and a series resistor. >>> I've used LP3874. You'll need a fair bit of capacitance in order to >>> transmit. >> Nice !!!! >> How you connect? > I designed a PCB with a battery contact and a case to hold it in > place. I've seen several people solder connections permanently to > the phone. > > Great !!!! Ok you will have a connection diagram? or a file for the PCB? >> it was just the power connect to a USB port and trasmition and >> another connection. > I don't understand this. I meant that I do not want to mix power and serial connection > > > //Peter > -------------- next part -------------- An HTML attachment was scrubbed... URL: From dodegkr at gmail.com Tue May 14 18:13:38 2013 From: dodegkr at gmail.com (Dave Davies) Date: Tue, 14 May 2013 19:13:38 +0100 Subject: [osmocom] Fucking battery In-Reply-To: <20130514142207.13977.qmail@stuge.se> References: <5192310F.7020102@gmail.com> <20130514132427.9112.qmail@stuge.se> <519240D8.5080100@gmail.com> <20130514142207.13977.qmail@stuge.se> Message-ID: A 'Fucking' Battery, I haven't ever seen one of those before. Perhaps some decorum in your choice of words on a mailing list would help. From Max.Suraev at fairwaves.ru Tue May 14 14:19:11 2013 From: Max.Suraev at fairwaves.ru (=?UTF-8?B?4piO?=) Date: Tue, 14 May 2013 16:19:11 +0200 Subject: [osmocom] Fucking battery In-Reply-To: <20130514132427.9112.qmail@stuge.se> References: <5192310F.7020102@gmail.com> <20130514132427.9112.qmail@stuge.se> Message-ID: <519247DF.1070201@fairwaves.ru> 14.05.2013 15:24, Peter Stuge ?????: > choukoumoun wrote: >> anyone has a solution for connecting to power directly to the >> battery connector by usb? >> >> I thought used a 3.7V zener diodes in parallel between the - and + >> USB power and a series resistor. > > I've used LP3874. You'll need a fair bit of capacitance in order to transmit. > > > //Peter > Is it possible to combine both signal and power lines within one usb cable? Would love to see schematics. -- best regards, Max, http://fairwaves.ru From niceguy108 at gmail.com Fri May 17 07:38:53 2013 From: niceguy108 at gmail.com (Bhaskar11) Date: Fri, 17 May 2013 13:08:53 +0530 Subject: Some Patch files Message-ID: Here are some bug fix and corrections patches. This is my first attempt, so please forgive errors and let me know if there is any problem. B. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: 0001-Bugfix-payload_len-should-be-signed-int.patch Type: application/octet-stream Size: 898 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: 0001-Added-get_mm_name-to-header.patch Type: application/octet-stream Size: 991 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: 0001-Corrections-to-Tech-Spec-reference-TS-05.08.patch Type: application/octet-stream Size: 893 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: 0001-correction-to-Tech-Specs-reference.patch Type: application/octet-stream Size: 838 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: 0001-gsm48_chan_mode-correction-was-0x23-corrected-to-0x1.patch Type: application/octet-stream Size: 821 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: 0001-GSM48_MT_RR_VGCS_UPL_GRANT-value-corrected.patch Type: application/octet-stream Size: 879 bytes Desc: not available URL: From niceguy108 at gmail.com Sat May 18 05:29:25 2013 From: niceguy108 at gmail.com (Bhaskar11) Date: Sat, 18 May 2013 10:59:25 +0530 Subject: Some Patch files In-Reply-To: References: Message-ID: Two more bugfix patches. Please give me feedback if these patches are working ok. B. On Fri, May 17, 2013 at 1:08 PM, Bhaskar11 wrote: > Here are some bug fix and corrections patches. > > This is my first attempt, so please forgive errors and let me know if > there is any problem. > > B. > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: 0001-Bugfix-transaction_id-should-be-unsigned-int-to-perm.patch Type: application/octet-stream Size: 882 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: 0001-Bugfix-transaction_id-should-be-unsigned-int-to-allo.patch Type: application/octet-stream Size: 886 bytes Desc: not available URL: From holger at freyther.de Sat May 18 09:13:23 2013 From: holger at freyther.de (Holger Hans Peter Freyther) Date: Sat, 18 May 2013 11:13:23 +0200 Subject: Some Patch files In-Reply-To: References: Message-ID: <20130518091323.GE10637@xiaoyu.lan> On Sat, May 18, 2013 at 10:59:25AM +0530, Bhaskar11 wrote: > Two more bugfix patches. Please give me feedback if these patches are > working ok. thanks, i will attempt to review/merge them over the next couple of days. From 246tnt at gmail.com Sat May 18 09:37:26 2013 From: 246tnt at gmail.com (Sylvain Munaut) Date: Sat, 18 May 2013 11:37:26 +0200 Subject: Some Patch files In-Reply-To: <20130518091323.GE10637@xiaoyu.lan> References: <20130518091323.GE10637@xiaoyu.lan> Message-ID: On Sat, May 18, 2013 at 11:13 AM, Holger Hans Peter Freyther wrote: > On Sat, May 18, 2013 at 10:59:25AM +0530, Bhaskar11 wrote: >> Two more bugfix patches. Please give me feedback if these patches are >> working ok. > > thanks, i will attempt to review/merge them over the next couple > of days. I had a quick look at the last two, but I'm not convinced, I'll probably rewrite a fix for those. 1) There is actually 3 places where trans_assign_trans_id is used and the one that's correct uses 'int' and not 'int8_t' and this seems a better approach because that's the native return type of the trans_assign_trans_id function. This way we have 'int' (return value allowing full valid range of uint8_t + negative values for error) and 'uint8_t' ( final valid value stored in structure ), and we avoid going from int -> int8_t -> uint8_t. And as a bonus the three places in the code with this pattern are now consistent with each other. 2) The patch title is wrong : - It actually says "should be unsigned int to allow negative values" - It's also too long and doesn't include an indication of the subsystem it refers to. 3) IMHO, Those two patches are trivial and similar enough to have been made in one commit. I've attached as an example the corrected patch I will apply, for future reference. I'll probably get to the other later in the day. Cheers, Sylvain -------------- next part -------------- A non-text attachment was scrubbed... Name: 0001-host-mobile-Fix-trans_assign_trans_id-users-error-ch.patch Type: application/octet-stream Size: 1711 bytes Desc: not available URL: From niceguy108 at gmail.com Mon May 20 06:57:10 2013 From: niceguy108 at gmail.com (Bhaskar11) Date: Mon, 20 May 2013 12:27:10 +0530 Subject: Some Patch files In-Reply-To: References: <20130518091323.GE10637@xiaoyu.lan> Message-ID: Three few more patches. Hope these are better done. B. On Sat, May 18, 2013 at 3:07 PM, Sylvain Munaut <246tnt at gmail.com> wrote: > On Sat, May 18, 2013 at 11:13 AM, Holger Hans Peter Freyther > wrote: > > On Sat, May 18, 2013 at 10:59:25AM +0530, Bhaskar11 wrote: > >> Two more bugfix patches. Please give me feedback if these patches are > >> working ok. > > > > thanks, i will attempt to review/merge them over the next couple > > of days. > > > I had a quick look at the last two, but I'm not convinced, I'll > probably rewrite a fix for those. > > 1) There is actually 3 places where trans_assign_trans_id is used and > the one that's correct uses 'int' and not 'int8_t' and this seems a > better approach because that's the native return type of the > trans_assign_trans_id function. This way we have 'int' (return value > allowing full valid range of uint8_t + negative values for error) and > 'uint8_t' ( final valid value stored in structure ), and we avoid > going from int -> int8_t -> uint8_t. And as a bonus the three places > in the code with this pattern are now consistent with each other. > > 2) The patch title is wrong : > - It actually says "should be unsigned int to allow negative values" > - It's also too long and doesn't include an indication of the > subsystem it refers to. > > 3) IMHO, Those two patches are trivial and similar enough to have been > made in one commit. > > I've attached as an example the corrected patch I will apply, for > future reference. > > I'll probably get to the other later in the day. > > Cheers, > > Sylvain > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: 0001-Bugfix-correction-to-printf-format-specifier.patch Type: application/octet-stream Size: 738 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: 0001-Bugfix-in-app_mobile.c-added-error-checking-in-l23_a.patch Type: application/octet-stream Size: 1190 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: 0001-app_mobile.h-extern-added-to-config_dir-to-prevent-d.patch Type: application/octet-stream Size: 910 bytes Desc: not available URL: From laforge at gnumonks.org Thu May 23 05:59:53 2013 From: laforge at gnumonks.org (Harald Welte) Date: Thu, 23 May 2013 07:59:53 +0200 Subject: Some Patch files In-Reply-To: References: Message-ID: <20130523055953.GR27243@nataraja.gnumonks.org> Hi Bhaskar, On Fri, May 17, 2013 at 01:08:53PM +0530, Bhaskar11 wrote: > Here are some bug fix and corrections patches. I've applied all patches of this [first] set, thanks for your contributions. > This is my first attempt, so please forgive errors and let me know if there > is any problem. Recommendations for the future: * please follow the rules regarding the commit message i've written in my other mail * please send every patch as a separate mail to this list, preferrably by using 'git send-email'. This way we don't have to manually save each and every attachment but it fits the automatic workflow. Also, feedback for individual patches on the mailing list is simplified. Regards, Harald -- - Harald Welte http://laforge.gnumonks.org/ ============================================================================ "Privacy in residential applications is a desirable marketing option." (ETSI EN 300 175-7 Ch. A6) From sdrfnord at gmx.de Fri May 17 19:26:29 2013 From: sdrfnord at gmx.de (Marcel `sdrfnord` McKinnon) Date: Fri, 17 May 2013 21:26:29 +0200 Subject: Game Snake for OsmocomBB Message-ID: <51968465.1060307@gmx.de> Hi everyone I have hacked the game Snake for OsmocomBB. It was mostly for my own education and I thought I make a short announcement on this list that such piece of code also exists. Feel free to play around with it and merge it in the project repository if you want. Code: https://github.com/sdrfnord/osmocom-bb/tree/sdrfnord/ui A picture of the game: http://www.flickr.com/photos/sdrfnord/8626533489/in/photostream I developed and tested it for the C121. During development I also implemented fb_set_p to set one pixel and fb_bw8_line to draw a line. (For the ST7558 LC Display Controller) The code for fb_bw8_line is copied from http://de.wikipedia.org/w/index.php?title=Bresenham-Algorithmus&stable=1#Kompakte_Variante I hope this does not interfere with the GPL ? Another thing I added is twl3025_power_off_now for a fast reboot which I used for development. -- Kind regards Marcel `sdrfnord` McKinnon From niceguy108 at gmail.com Sat May 18 05:37:42 2013 From: niceguy108 at gmail.com (Bhaskar11) Date: Sat, 18 May 2013 11:07:42 +0530 Subject: Query on TPU doc Message-ID: The TPU Debugger code lists: static const char *tpu_addr_name[0x1f] = { [0] = "TSP_CTLR1", [1] = "TSP_CTRL2", [*4*] = "TSP_TX_*1*", [*3*] = "TSP_TX_*2*", [*2*] = "TSP_TX_*3*", [5] = "TSP_TX_4", [6] = "TSPACT_L", ...... Was wondering if the numbering is a typo. Could not find documentation online. Just bringing to your notice for check. Could you please confirm that items 2,3,4 are not supposed to be in sequence. Thanks. B. -------------- next part -------------- An HTML attachment was scrubbed... URL: From 246tnt at gmail.com Sat May 18 07:20:26 2013 From: 246tnt at gmail.com (Sylvain Munaut) Date: Sat, 18 May 2013 09:20:26 +0200 Subject: Query on TPU doc In-Reply-To: References: Message-ID: Hi, > The TPU Debugger code lists: > > static const char *tpu_addr_name[0x1f] = { > [0] = "TSP_CTLR1", > [1] = "TSP_CTRL2", > [4] = "TSP_TX_1", > [3] = "TSP_TX_2", > [2] = "TSP_TX_3", > [5] = "TSP_TX_4", > [6] = "TSPACT_L", > ...... > > Was wondering if the numbering is a typo. No, it's correct. Cheers, Sylvain From niceguy108 at gmail.com Wed May 22 17:27:21 2013 From: niceguy108 at gmail.com (Bhaskar11) Date: Wed, 22 May 2013 22:57:21 +0530 Subject: bad crc in osmoload [SOLVED!] Message-ID: Solved the "bad crc" problem in Osmoload. The bug was inadvertently introduced in osmoload.c in update SHA ID 6ce46e7a86f4de0b1eef9c641ef6cfb49f1255cd on 9.9..2012 when msgb_get() was replaced by msgb_pull() as part of a large scale change. Looks like no one else had tried a "osmoload memdump" since then. Am enclosing patch to fix this bug. B. On Tue, May 14, 2013 at 5:26 PM, Bhaskar11 wrote: > Hi all, > > I'm trying to flash RSSI app to my C118 following instructions on > http://bb.osmocom.org/trac/wiki/flashing. > > First step Osmocon with loader works fine. > > Second step with "osmoload memdump 0x000000 0x2000 compal_loader.bin" > gives the following output: > > Dumping 8192 bytes of memory at 0x0 to file compal_loader.bin > > bad crc 4190 (not 0000) at offset 0x00000000 > bad crc f041 (not b209) at offset 0x000000f0 > bad crc f041 (not 79d3) at offset 0x000001e0 > ... > bad crc f041 (not fe61) at offset 0x00001e00 > bad crc 8257 (not 4cd6) at offset 0x00001ef0 > bad crc a401 (not 0000) at offset 0x00001fe0done. > > Would appreciate any guidance on what I can do to set this right. > > A general question: > If I flash RSSI app succesfully, can I later restore the original C118 > code and use the cell as before? (assuming I have saved the full memory > dump to disk!) Or is that gone for good? > > Thanks for your guidance. > > B. > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: 0001-Bugfix-in-Osmoload.c-Assigning-correct-value-to-data.patch Type: application/octet-stream Size: 935 bytes Desc: not available URL: From niceguy108 at gmail.com Wed May 22 18:10:59 2013 From: niceguy108 at gmail.com (Bhaskar11) Date: Wed, 22 May 2013 23:40:59 +0530 Subject: bad crc in osmoload [SOLVED!] (updated patch) Message-ID: Here is a better Patch more consistent with rest of OsmocomBB coding style and more elegant. Please ignore previous patch offered (which works also but is relatively kludgy). B. On Wed, May 22, 2013 at 10:57 PM, Bhaskar11 wrote: > Solved the "bad crc" problem in Osmoload. > > The bug was inadvertently introduced in osmoload.c in update SHA > ID 6ce46e7a86f4de0b1eef9c641ef6cfb49f1255cd on 9.9..2012 when msgb_get() > was replaced by msgb_pull() as part of a large scale change. Looks like no > one else had tried a "osmoload memdump" since then. > > Am enclosing patch to fix this bug. > > B. > > > > On Tue, May 14, 2013 at 5:26 PM, Bhaskar11 wrote: > >> Hi all, >> >> I'm trying to flash RSSI app to my C118 following instructions on >> http://bb.osmocom.org/trac/wiki/flashing. >> >> First step Osmocon with loader works fine. >> >> Second step with "osmoload memdump 0x000000 0x2000 compal_loader.bin" >> gives the following output: >> >> Dumping 8192 bytes of memory at 0x0 to file compal_loader.bin >> >> bad crc 4190 (not 0000) at offset 0x00000000 >> bad crc f041 (not b209) at offset 0x000000f0 >> bad crc f041 (not 79d3) at offset 0x000001e0 >> ... >> bad crc f041 (not fe61) at offset 0x00001e00 >> bad crc 8257 (not 4cd6) at offset 0x00001ef0 >> bad crc a401 (not 0000) at offset 0x00001fe0done. >> >> Would appreciate any guidance on what I can do to set this right. >> >> A general question: >> If I flash RSSI app succesfully, can I later restore the original C118 >> code and use the cell as before? (assuming I have saved the full memory >> dump to disk!) Or is that gone for good? >> >> Thanks for your guidance. >> >> B. >> >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: 0001-Bugfix-in-Osmoload.c-Assigning-correct-value-to-data.patch Type: application/octet-stream Size: 959 bytes Desc: not available URL: From laforge at gnumonks.org Thu May 23 05:47:09 2013 From: laforge at gnumonks.org (Harald Welte) Date: Thu, 23 May 2013 07:47:09 +0200 Subject: bad crc in osmoload [SOLVED!] (updated patch) In-Reply-To: References: Message-ID: <20130523054709.GQ27243@nataraja.gnumonks.org> Hi Bhaskar, On Wed, May 22, 2013 at 11:40:59PM +0530, Bhaskar11 wrote: > Here is a better Patch more consistent with rest of OsmocomBB coding style > and more elegant. Thanks, I've applied the patch. Please make sure to follow general rules for formatting git log messages (not just relevant for OsmocomBB). The first line is a short summary of the change, followed by one line of space, followed by a detailed description of the change. Lines must not exceed 80 characters, like the source code. Your patch contained only a single line, which 'git log' will not wrap. Furthermore, there was no separate one-line summary. I've re-formatted it. Regards, Harald -- - Harald Welte http://laforge.gnumonks.org/ ============================================================================ "Privacy in residential applications is a desirable marketing option." (ETSI EN 300 175-7 Ch. A6) From niceguy108 at gmail.com Thu May 23 09:24:34 2013 From: niceguy108 at gmail.com (Bhaskar11) Date: Thu, 23 May 2013 14:54:34 +0530 Subject: Query on flashing the loader Message-ID: This is my first attempt to flash the loader. 1) The instructions on http://bb.osmocom.org/trac/wiki/flashing require loading the file named "target/firmware/board/compal_e88/loader.*e88loader* .bin". Strangely I do not have this file after compilation. I have loader.compalram.bin and loader.highram.bin. I also have layer1.e88loader.bin and rssi.e88loader.bin. Can you please guide me? 2) The guide for flashing an application says to use rssi.e88flash.bin. Does that mean if I want to flash "layer1" as my application, then I must use layer1.*e88flash*.bin at that point? Thank you for your help. B. -------------- next part -------------- An HTML attachment was scrubbed... URL: From niceguy108 at gmail.com Sun May 26 10:29:52 2013 From: niceguy108 at gmail.com (Bhaskar11) Date: Sun, 26 May 2013 15:59:52 +0530 Subject: Query on flashing the loader In-Reply-To: References: Message-ID: Hi Sylvain, Going through the firmware Makefile I find that you had explicitly enabled only compalram & highram environments for the loader app in your patch dated 11.12.2012. The current wiki on flashing at http://bb.osmocom.org/trac/wiki/flashing requires to load "osmoload fprogram 0 0x002000 target/firmware/board/compal_e88/loader.*e88loader*.bin" and flash rssi applications with "osmoload fprogram 0 0x010000 target/firmware/board/compal_e88/rssi.e88flash.bin". 1. So is the wiki wrong or do we need to patch the Makefile? 2. I want to flash layer1 app so that I don't have to download it every time. Should I be loading "layer1.e88flash.bin" or "layer1.compalram.bin"? Both my questions arise because I don't understand the difference between layer1.e88flash.bin and layer1.compalram.bin and layer1.e88loader.bin. I understand that the highram environment is only for OpenMoko (is that correct?). A note of clarification will be helpful. Since I have already bricked a phone on the first point I am not able to solve these by experimenting. :-( B. On Thu, May 23, 2013 at 2:54 PM, Bhaskar11 wrote: > This is my first attempt to flash the loader. > > 1) The instructions on http://bb.osmocom.org/trac/wiki/flashing require > loading the file named "target/firmware/board/compal_e88/loader.*e88loader > *.bin". > > Strangely I do not have this file after compilation. I have > loader.compalram.bin and loader.highram.bin. I also > have layer1.e88loader.bin and rssi.e88loader.bin. > > Can you please guide me? > > 2) The guide for flashing an application says to use rssi.e88flash.bin. > Does that mean if I want to flash "layer1" as my application, then I must > use layer1.*e88flash*.bin at that point? > > Thank you for your help. > > B. > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From niceguy108 at gmail.com Thu May 23 11:14:18 2013 From: niceguy108 at gmail.com (Bhaskar11) Date: Thu, 23 May 2013 16:44:18 +0530 Subject: PATCH: Bugfix in Firmware loader main.c: Assigning correct value to data pointer Message-ID: Patched in format according to guidelines. B. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: 0001-Bugfix-in-Firmware-loader-main.c-Assigning-correct-v.patch Type: application/octet-stream Size: 2066 bytes Desc: not available URL: From akibsayyed at gmail.com Thu May 23 12:21:45 2013 From: akibsayyed at gmail.com (Akib Sayyed) Date: Thu, 23 May 2013 17:51:45 +0530 Subject: PATCH: Bugfix in Firmware loader main.c: Assigning correct value to data pointer In-Reply-To: References: Message-ID: bhaskar Have you solved issue with flashing. On Thu, May 23, 2013 at 4:44 PM, Bhaskar11 wrote: > Patched in format according to guidelines. > > B. > > -- Akib Sayyed Matrix-Shell akibsayyed at gmail.com akibsayyed at matrixshell.com Mob:- +91-966-514-2243 -------------- next part -------------- An HTML attachment was scrubbed... URL: From niceguy108 at gmail.com Thu May 23 11:52:50 2013 From: niceguy108 at gmail.com (Bhaskar11) Date: Thu, 23 May 2013 17:22:50 +0530 Subject: [PATCH] * Bugfix in firmware trf5151.c: Setting correct mask for ARFCN value Message-ID: -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: 0001-Bugfix-in-firmware-trf5151.c-Setting-correct-mask-fo.patch Type: application/octet-stream Size: 783 bytes Desc: not available URL: From niceguy108 at gmail.com Thu May 23 12:03:52 2013 From: niceguy108 at gmail.com (Bhaskar11) Date: Thu, 23 May 2013 17:33:52 +0530 Subject: [PATCH] Bugfix in Firmware primfbsb.c "return" with a value in function returning void Message-ID: -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: 0001-Bugfix-in-Firmware-prim_fbsb.c-return-with-a-value-i.patch Type: application/octet-stream Size: 882 bytes Desc: not available URL: From niceguy108 at gmail.com Thu May 23 12:27:52 2013 From: niceguy108 at gmail.com (Bhaskar11) Date: Thu, 23 May 2013 17:57:52 +0530 Subject: Patch by email Message-ID: I have some problem sending patches by "git send-email" since I am working in a Windows system. My next email is an experimental workaround. Please let me know if it works ok. B. -------------- next part -------------- An HTML attachment was scrubbed... URL: From niceguy108 at gmail.com Thu May 23 12:32:48 2013 From: niceguy108 at gmail.com (Bhaskar11) Date: Thu, 23 May 2013 18:02:48 +0530 Subject: [PATCH] * Bugfix in Firmware: initialising variables Message-ID: From niceguy108 at gmail.com Wed May 22 07:38:02 2013 From: niceguy108 at gmail.com (Bhaskar) Date: Wed, 22 May 2013 13:08:02 +0530 Subject: [PATCH] * Bugfix in Firmware: initialising variables Message-ID: Under specific circumstances, these variables would have been used without initialisation. --- src/target/firmware/apps/loader/main.c | 2 +- src/target/firmware/layer1/mframe_sched.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/target/firmware/apps/loader/main.c b/src/target/firmware/apps/loader/main.c index 8bdbc74..c74c045 100644 --- a/src/target/firmware/apps/loader/main.c +++ b/src/target/firmware/apps/loader/main.c @@ -213,7 +213,7 @@ static void cmd_handler(uint8_t dlci, struct msgb *msg) uint8_t command = msgb_pull_u8(msg); - int res; + int res = 0; flash_lock_t lock; diff --git a/src/target/firmware/layer1/mframe_sched.c b/src/target/firmware/layer1/mframe_sched.c index f3a6b43..047d709 100644 --- a/src/target/firmware/layer1/mframe_sched.c +++ b/src/target/firmware/layer1/mframe_sched.c @@ -343,7 +343,7 @@ static const struct mframe_sched_item *sched_set_for_task[32] = { /* encodes a channel number according to 08.58 Chapter 9.3.1 */ uint8_t mframe_task2chan_nr(enum mframe_task mft, uint8_t ts) { - uint8_t cbits; + uint8_t cbits = 0; switch (mft) { case MF_TASK_BCCH_NORM: -- 1.7.9 --047d7bdc15d456c2b204dd61e109 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
From d1ad22fa60= e9d52bac246391b2fb6de57fb067b7 Mon Sep 17 00:00:00 2001
From: Bhaskar <niceguy108 at gmail.com>
Date: Wed, 22 May 2013 13:08:02 = +0530
Subject: [PATC= H] * Bugfix in Firmware: initialising variables

Under specific circ= umstances, these variables would have been used without initialisation.

<= font face=3D"courier new, monospace">---
=A0src/target/firmware/apps/load= er/main.c =A0 =A0| =A0 =A02 +-
=A0src/target/firmware/layer1/mframe_sched.c | =A0 =A02 +-
=A02 files changed, 2 ins= ertions(+), 2 deletions(-)

diff --git a/src/target/firmware/apps/loader/ma= in.c b/src/target/firmware/apps/loader/main.c
index 8bdbc74..c74c045 100644
--- a/src/target/firmware/apps/l= oader/main.c
+++ b/s= rc/target/firmware/apps/loader/main.c
@@ -213,7 +213,7 @@ static void cmd_handler(uint8_t dlci,= struct msgb *msg)
=A0
=A0 = uint8_t command =3D msgb_pull_u8(msg);
=A0
- int res;
+ int res =3D 0;=
=A0
=A0 = flash_lock_t lock;
=A0
diff --git a/src/target/firmware= /layer1/mframe_sched.c b/src/target/firmware/layer1/mframe_sched.c
index f3a6b43..047d709 10064= 4
--- a/src/target/firmware/layer1= /mframe_sched.c
+++ = b/src/target/firmware/layer1/mframe_sched.c
@@ -343,7 +343,7 @@ static const struct mframe_sche= d_item *sched_set_for_task[32] =3D {
=A0/* encodes a channel number a= ccording to 08.58 Chapter 9.3.1 */
=A0uint8_t mframe_task2chan_nr(enum mframe_task mft, uint8_t= ts)
=A0{
- uint8_t cbits;
= + uint8_t cbits =3D 0;
=A0
=A0 = switch (mft) {
case MF_TASK_BCCH_N= ORM:
--=A0
1.7.9

--047d7bdc15d456c2b204dd61e109-- From niceguy108 at gmail.com Thu May 23 12:35:02 2013 From: niceguy108 at gmail.com (Bhaskar11) Date: Thu, 23 May 2013 18:05:02 +0530 Subject: [PATCH] * Bugfix in Firmware: initialising variables In-Reply-To: References: Message-ID: Including Patch file just in case. B. On Thu, May 23, 2013 at 6:02 PM, Bhaskar11 wrote: > From d1ad22fa60e9d52bac246391b2fb6de57fb067b7 Mon Sep 17 00:00:00 2001 > From: Bhaskar > Date: Wed, 22 May 2013 13:08:02 +0530 > Subject: [PATCH] * Bugfix in Firmware: initialising variables > > Under specific circumstances, these variables would have been used without > initialisation. > > --- > src/target/firmware/apps/loader/main.c | 2 +- > src/target/firmware/layer1/mframe_sched.c | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/src/target/firmware/apps/loader/main.c > b/src/target/firmware/apps/loader/main.c > index 8bdbc74..c74c045 100644 > --- a/src/target/firmware/apps/loader/main.c > +++ b/src/target/firmware/apps/loader/main.c > @@ -213,7 +213,7 @@ static void cmd_handler(uint8_t dlci, struct msgb *msg) > > uint8_t command = msgb_pull_u8(msg); > > - int res; > + int res = 0; > > flash_lock_t lock; > > diff --git a/src/target/firmware/layer1/mframe_sched.c > b/src/target/firmware/layer1/mframe_sched.c > index f3a6b43..047d709 100644 > --- a/src/target/firmware/layer1/mframe_sched.c > +++ b/src/target/firmware/layer1/mframe_sched.c > @@ -343,7 +343,7 @@ static const struct mframe_sched_item > *sched_set_for_task[32] = { > /* encodes a channel number according to 08.58 Chapter 9.3.1 */ > uint8_t mframe_task2chan_nr(enum mframe_task mft, uint8_t ts) > { > - uint8_t cbits; > + uint8_t cbits = 0; > > switch (mft) { > case MF_TASK_BCCH_NORM: > -- > 1.7.9 > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: 0001-Bugfix-in-Firmware-initialised-variables.patch Type: application/octet-stream Size: 1422 bytes Desc: not available URL: From niceguy108 at gmail.com Tue May 28 06:54:11 2013 From: niceguy108 at gmail.com (Bhaskar11) Date: Tue, 28 May 2013 12:24:11 +0530 Subject: [PATCH] * Bugfix in Firmware: initialising variables In-Reply-To: References: Message-ID: Please let me know if this email format patch worked ok. I have a few more patches that I'm waiting to send. B. On Thu, May 23, 2013 at 6:02 PM, Bhaskar11 wrote: > From d1ad22fa60e9d52bac246391b2fb6de57fb067b7 Mon Sep 17 00:00:00 2001 > From: Bhaskar > Date: Wed, 22 May 2013 13:08:02 +0530 > Subject: [PATCH] * Bugfix in Firmware: initialising variables > > Under specific circumstances, these variables would have been used without > initialisation. > > --- > src/target/firmware/apps/loader/main.c | 2 +- > src/target/firmware/layer1/mframe_sched.c | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/src/target/firmware/apps/loader/main.c > b/src/target/firmware/apps/loader/main.c > index 8bdbc74..c74c045 100644 > --- a/src/target/firmware/apps/loader/main.c > +++ b/src/target/firmware/apps/loader/main.c > @@ -213,7 +213,7 @@ static void cmd_handler(uint8_t dlci, struct msgb *msg) > > uint8_t command = msgb_pull_u8(msg); > > - int res; > + int res = 0; > > flash_lock_t lock; > > diff --git a/src/target/firmware/layer1/mframe_sched.c > b/src/target/firmware/layer1/mframe_sched.c > index f3a6b43..047d709 100644 > --- a/src/target/firmware/layer1/mframe_sched.c > +++ b/src/target/firmware/layer1/mframe_sched.c > @@ -343,7 +343,7 @@ static const struct mframe_sched_item > *sched_set_for_task[32] = { > /* encodes a channel number according to 08.58 Chapter 9.3.1 */ > uint8_t mframe_task2chan_nr(enum mframe_task mft, uint8_t ts) > { > - uint8_t cbits; > + uint8_t cbits = 0; > > switch (mft) { > case MF_TASK_BCCH_NORM: > -- > 1.7.9 > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From 246tnt at gmail.com Tue May 28 07:48:41 2013 From: 246tnt at gmail.com (Sylvain Munaut) Date: Tue, 28 May 2013 09:48:41 +0200 Subject: [PATCH] * Bugfix in Firmware: initialising variables In-Reply-To: References: Message-ID: Please learn to use git-sendemail and posts all the patch at once in a series because I'm spending more time trying to figure out which patch I've applied than actually reviewing them. And the patch you tried to include inline manually above is completely mangled and un-usable. Cheers, Sylvain From niceguy108 at gmail.com Thu May 23 12:49:57 2013 From: niceguy108 at gmail.com (Bhaskar11) Date: Thu, 23 May 2013 18:19:57 +0530 Subject: flashing problem fixed Message-ID: The two patches I have posted (separately) relating to "msgb_pull" use in Osmocom and firmware are required to fix the flashing problem! With these patches, I am able to use all the flash functions now. I still need to load the file "loader.e88loader.bin" which does not appear in my compile, as mentioned in a separate email. I bricked a phone by aborting the flashing at that stage! :-( Any advice on this will be appreciated. B. On Thu, May 23, 2013 at 5:51 PM, Akib Sayyed wrote: > bhaskar > > Have you solved issue with flashing. > > > On Thu, May 23, 2013 at 4:44 PM, Bhaskar11 wrote: > >> Patched in format according to guidelines. >> >> B. >> >> > > > -- > Akib Sayyed > Matrix-Shell > akibsayyed at gmail.com > akibsayyed at matrixshell.com > Mob:- +91-966-514-2243 > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From altaf329 at gmail.com Mon May 27 07:24:15 2013 From: altaf329 at gmail.com (Altaf) Date: Mon, 27 May 2013 00:24:15 -0700 (PDT) Subject: Suggestions required to implement Calypso BTS with GPRS (minimal) Message-ID: <1369639455404-4026049.post@n3.nabble.com> I have been successful in running the calypso BTS and registering phones to it. I have also examined the source code implemented. I am currently doing an Internship in Berlin and the company wants to demonstrate to it customers that 2G services are not secure. Basically we are designing a securtiy demonstrator. We want to do man-in-the-middle attacks with the existing open source s/w. So we thought a B100 USrp would be the need of the hour. But I am really interested working with the calypso phones because I am comfortable with the source code and have already worked on it. I want to try (do) implementing the GPRS functionality to this calypso BTS. Since the work is mostly involved at Layer1 or lets say transceiver. I tried running OpenBTS-gprs version and resulted with some info. The mframe_sched in the trx doesnt contain info about the how to handle packet channels or the multiframes do not have the Packet channels. So when the BTS assigns (on CCCH) a dedicated channel and the calypso phone fails to receive uplink or doesnt provide a way for the phone to access the BTS. I understand the working of trx and want to add this GPRS functionality to trx. I am aiming to implement minimal GPRS functionality. I have also seen how OpenBTS-gprs has triggers this packet channel or the way multiframes handle PDCH, PTCH.. By observing them I can get some idea. In this regard I request from you few suggestions such as where I have to work more and what are the challenges I will face. your suggestions are valuable to me. -- View this message in context: http://baseband-devel.722152.n3.nabble.com/Suggestions-required-to-implement-Calypso-BTS-with-GPRS-minimal-tp4026049.html Sent from the baseband-devel mailing list archive at Nabble.com.