From zero-kelvin at gmx.de Thu Sep 19 21:41:55 2013 From: zero-kelvin at gmx.de (dexter) Date: Thu, 19 Sep 2013 23:41:55 +0200 Subject: UPDATE -- Osmocom Berlin User Group meeting -- NEXT MEETING In-Reply-To: <20130605121428.GA10030@nataraja.gnumonks.org> References: <502d01a9.mirider@mirider.augusta.de> <20120818115942.GV29525@prithivi.gnumonks.org> <51AF0097.10402@gmx.de> <20130605121428.GA10030@nataraja.gnumonks.org> Message-ID: <523B6FA3.1080701@gmx.de> Hi All. It's time Again! This is the announcement for the next Osmocom Berlin meeting. Sep 25, 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. I am looking forward to see you there! regards. Philipp From peter at stuge.se Thu Sep 19 23:34:13 2013 From: peter at stuge.se (Peter Stuge) Date: Fri, 20 Sep 2013 01:34:13 +0200 Subject: UPDATE -- Osmocom Berlin User Group meeting -- NEXT MEETING In-Reply-To: <523B6FA3.1080701@gmx.de> References: <502d01a9.mirider@mirider.augusta.de> <20120818115942.GV29525@prithivi.gnumonks.org> <51AF0097.10402@gmx.de> <20130605121428.GA10030@nataraja.gnumonks.org> <523B6FA3.1080701@gmx.de> Message-ID: <20130919233413.762.qmail@stuge.se> dexter wrote: > This is the announcement for the next Osmocom Berlin meeting. > > Sep 25, 8pm @ CCC Berlin, Marienstr. 11, 10117 Berlin > > There is no formal presentation scheduled for this meeting. We might talk about some ideas for the 30C3 test network, and if there's a good feeling about it maybe work on code for SIM cards. //Peter From trrl.cpr at gmail.com Mon Sep 2 08:45:25 2013 From: trrl.cpr at gmail.com (Terrel Cooper) Date: Mon, 2 Sep 2013 11:45:25 +0300 Subject: Assigment to TS 0 fails Message-ID: Hello, I figured out that all assigment requests from SDCCH to TCH Timeslot 0 fails. There is no problem for other timeslots. It seems that layer 1 can not sync to ts 0 channel succesfully. Is there anybody who observed this situation ? thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From craig_comstock at yahoo.com Tue Sep 3 17:01:02 2013 From: craig_comstock at yahoo.com (Craig Comstock) Date: Tue, 3 Sep 2013 10:01:02 -0700 (PDT) Subject: layer2/3 ported to target? paging attack code? Message-ID: <1378227662.93957.YahooMailNeo@web121005.mail.ne1.yahoo.com> Hey, I finally watched Nico's talk "let me answer that for you" and heard him say he ported layer2/3 to target. Also found a mailing list message about him cleaning it up and putting it up on git and sending it to a few folks. Did that code ever get shared? Would be cool to play around with and is certainly something I would eventually want to accomplish for my project of making a phone that works by itself. -Craig -------------- next part -------------- An HTML attachment was scrubbed... URL: From 246tnt at gmail.com Tue Sep 3 18:15:28 2013 From: 246tnt at gmail.com (Sylvain Munaut) Date: Tue, 3 Sep 2013 20:15:28 +0200 Subject: layer2/3 ported to target? paging attack code? In-Reply-To: <1378227662.93957.YahooMailNeo@web121005.mail.ne1.yahoo.com> References: <1378227662.93957.YahooMailNeo@web121005.mail.ne1.yahoo.com> Message-ID: Hi, On Tue, Sep 3, 2013 at 7:01 PM, Craig Comstock wrote: > Hey, I finally watched Nico's talk "let me answer that for you" and heard > him say he ported layer2/3 to target. No. He implemented a very basic l2/l3 that just did exactly what the attack needed (which in comparison to the whole 'mobile' application is very little) and nothing more. Cheers, Sylvain From craig_comstock at yahoo.com Tue Sep 3 18:27:22 2013 From: craig_comstock at yahoo.com (Craig Comstock) Date: Tue, 3 Sep 2013 11:27:22 -0700 (PDT) Subject: layer2/3 ported to target? paging attack code? In-Reply-To: References: <1378227662.93957.YahooMailNeo@web121005.mail.ne1.yahoo.com> Message-ID: <1378232842.92551.YahooMailNeo@web121004.mail.ne1.yahoo.com> Sure, I suspected as much but had to ask. :) For the time being I'll probably keep my focus on nuttx-bb and/or making a UI prototype in osmocom to see how it feels. Thanks, Craig ________________________________ From: Sylvain Munaut <246tnt at gmail.com> To: Craig Comstock Cc: "baseband-devel at lists.osmocom.org" Sent: Tuesday, September 3, 2013 1:15 PM Subject: Re: layer2/3 ported to target? paging attack code? Hi, On Tue, Sep 3, 2013 at 7:01 PM, Craig Comstock wrote: > Hey, I finally watched Nico's talk "let me answer that for you" and heard > him say he ported layer2/3 to target. No. He implemented a very basic l2/l3 that just did exactly what the attack needed (which in comparison to the whole 'mobile' application is very little) and nothing more. Cheers, ? ? Sylvain -------------- next part -------------- An HTML attachment was scrubbed... URL: From osmocom at ehlers.info Wed Sep 4 12:07:55 2013 From: osmocom at ehlers.info (Tim Ehlers) Date: Wed, 4 Sep 2013 14:07:55 +0200 (CEST) Subject: layer2/3 ported to target? paging attack code? In-Reply-To: <1378232842.92551.YahooMailNeo@web121004.mail.ne1.yahoo.com> References: <1378227662.93957.YahooMailNeo@web121005.mail.ne1.yahoo.com> <1378232842.92551.YahooMailNeo@web121004.mail.ne1.yahoo.com> Message-ID: On Tue, 3 Sep 2013, Craig Comstock wrote: Hi, > I suspected as much but had to ask. :) but anyhow, the code would be interesting. :) Cheers Tim From ml at mail.tsaitgaist.info Wed Sep 4 13:07:33 2013 From: ml at mail.tsaitgaist.info (Kevin Redon) Date: Wed, 04 Sep 2013 15:07:33 +0200 Subject: layer2/3 ported to target? paging attack code? In-Reply-To: References: <1378227662.93957.YahooMailNeo@web121005.mail.ne1.yahoo.com> <1378232842.92551.YahooMailNeo@web121004.mail.ne1.yahoo.com> Message-ID: <1378299933-sup-2371@dennou> Excerpts from Tim Ehlers's message of 2013-09-04 14:07:55 +0200: > On Tue, 3 Sep 2013, Craig Comstock wrote: > > Hi, > > > I suspected as much but had to ask. :) > > but anyhow, the code would be interesting. :) The code is available here http://tinyurl.com/fun-with-paging (apply on osmocom changeset 4f0acac4c1fa538082f54cb14bef0841aa9c8abb) but as sylvain said, it's not a complete layer2/3 port to the phone. It only handles the paging requests (and a bit SMSs) Kevin > > Cheers > > Tim From dario.lombardo.ml at gmail.com Wed Sep 4 14:13:18 2013 From: dario.lombardo.ml at gmail.com (Dario Lombardo) Date: Wed, 4 Sep 2013 16:13:18 +0200 Subject: layer2/3 ported to target? paging attack code? In-Reply-To: <1378299933-sup-2371@dennou> References: <1378227662.93957.YahooMailNeo@web121005.mail.ne1.yahoo.com> <1378232842.92551.YahooMailNeo@web121004.mail.ne1.yahoo.com> <1378299933-sup-2371@dennou> Message-ID: Anyone tried it? I've downloaded the patch and applied it to the changset you said. Compilation is ok. Should it generate new images to dump to phone? I can see only standard targets. Dario On Wed, Sep 4, 2013 at 3:07 PM, Kevin Redon wrote: > Excerpts from Tim Ehlers's message of 2013-09-04 14:07:55 +0200: > > On Tue, 3 Sep 2013, Craig Comstock wrote: > > > > Hi, > > > > > I suspected as much but had to ask. :) > > > > but anyhow, the code would be interesting. :) > > The code is available here > http://tinyurl.com/fun-with-paging > (apply on osmocom changeset 4f0acac4c1fa538082f54cb14bef0841aa9c8abb) > > but as sylvain said, it's not a complete layer2/3 port to the phone. > It only handles the paging requests (and a bit SMSs) > > Kevin > > > > > Cheers > > > > Tim > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From osmocom at ehlers.info Wed Sep 4 18:46:34 2013 From: osmocom at ehlers.info (Tim Ehlers) Date: Wed, 4 Sep 2013 20:46:34 +0200 (CEST) Subject: layer2/3 ported to target? paging attack code? In-Reply-To: References: <1378227662.93957.YahooMailNeo@web121005.mail.ne1.yahoo.com> <1378232842.92551.YahooMailNeo@web121004.mail.ne1.yahoo.com> <1378299933-sup-2371@dennou> Message-ID: On Wed, 4 Sep 2013, Dario Lombardo wrote: Hi, > Anyone tried it? I've downloaded the patch and applied it to the > changset you said. Compilation is ok. Should it generate new images to > dump to phone? I can see only standard targets.Dario yes, as I can see, the rssi Target has been modified. So need to load that target with the modified osmocon, which opens another UNIX-Socket /tmp/osmocom_mi to read the victims TMSI. Whith "*" you can toggle the attack modes, which are DETACH, PAGING, RANGE_PAGING, ALL_PAGING, STEAL_SMS. My only problem is, that I can't find out how to send the TMSI over the Socket. If I only send the TMSI with e.g. socat, I get Err from socket: Bad address from osmocon... What do I miss? Cheers Tim From ml at mail.tsaitgaist.info Wed Sep 4 20:08:45 2013 From: ml at mail.tsaitgaist.info (Kevin Redon) Date: Wed, 04 Sep 2013 22:08:45 +0200 Subject: layer2/3 ported to target? paging attack code? In-Reply-To: References: <1378227662.93957.YahooMailNeo@web121005.mail.ne1.yahoo.com> <1378232842.92551.YahooMailNeo@web121004.mail.ne1.yahoo.com> <1378299933-sup-2371@dennou> Message-ID: <1378325214-sup-34@dennou> sorry, here the scripts to push the values Excerpts from Tim Ehlers's message of 2013-09-04 20:46:34 +0200: > On Wed, 4 Sep 2013, Dario Lombardo wrote: > > Hi, > > > Anyone tried it? I've downloaded the patch and applied it to the > > changset you said. Compilation is ok. Should it generate new images to > > dump to phone? I can see only standard targets.Dario > > yes, as I can see, the rssi Target has been modified. So need to load that > target with the modified osmocon, which opens another UNIX-Socket > /tmp/osmocom_mi to read the victims TMSI. Whith "*" you can toggle the > attack modes, which are DETACH, PAGING, RANGE_PAGING, ALL_PAGING, > STEAL_SMS. > > My only problem is, that I can't find out how to send the TMSI over the > Socket. If I only send the TMSI with e.g. socat, I get > > Err from socket: Bad address > > from osmocon... > > What do I miss? > > Cheers > > Tim -------------- next part -------------- A non-text attachment was scrubbed... Name: push-tmsi.sh Type: application/x-sh Size: 335 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: push-kc.sh Type: application/x-sh Size: 431 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: push-range.sh Type: application/x-sh Size: 395 bytes Desc: not available URL: From osmocom at ehlers.info Wed Sep 4 20:32:48 2013 From: osmocom at ehlers.info (Tim Ehlers) Date: Wed, 4 Sep 2013 22:32:48 +0200 (CEST) Subject: layer2/3 ported to target? paging attack code? In-Reply-To: <1378325214-sup-34@dennou> References: <1378227662.93957.YahooMailNeo@web121005.mail.ne1.yahoo.com> <1378232842.92551.YahooMailNeo@web121004.mail.ne1.yahoo.com> <1378299933-sup-2371@dennou> <1378325214-sup-34@dennou> Message-ID: On Wed, 4 Sep 2013, Kevin Redon wrote: Hi Kevin, > sorry, here the scripts to push the values wow, ok. So I need to send "\x00\x04" and then the 4 hex values! Thanks for all! I try to understand the code a bit now. :) Cheers Tim From dario.lombardo.ml at gmail.com Thu Sep 5 12:32:39 2013 From: dario.lombardo.ml at gmail.com (Dario Lombardo) Date: Thu, 5 Sep 2013 14:32:39 +0200 Subject: layer2/3 ported to target? paging attack code? In-Reply-To: <1378325214-sup-34@dennou> References: <1378227662.93957.YahooMailNeo@web121005.mail.ne1.yahoo.com> <1378232842.92551.YahooMailNeo@web121004.mail.ne1.yahoo.com> <1378299933-sup-2371@dennou> <1378325214-sup-34@dennou> Message-ID: On Wed, Sep 4, 2013 at 10:08 PM, Kevin Redon wrote: > sorry, here the scripts to push the values > Is the software expected to say something when the tmsi is correctly pushed? -------------- next part -------------- An HTML attachment was scrubbed... URL: From osmocom at ehlers.info Thu Sep 5 13:32:01 2013 From: osmocom at ehlers.info (Tim Ehlers) Date: Thu, 5 Sep 2013 15:32:01 +0200 (CEST) Subject: layer2/3 ported to target? paging attack code? In-Reply-To: References: <1378227662.93957.YahooMailNeo@web121005.mail.ne1.yahoo.com> <1378232842.92551.YahooMailNeo@web121004.mail.ne1.yahoo.com> <1378299933-sup-2371@dennou> <1378325214-sup-34@dennou> Message-ID: On Thu, 5 Sep 2013, Dario Lombardo wrote: Hi, > On Wed, Sep 4, 2013 at 10:08 PM, Kevin Redon > wrote: > sorry, here the scripts to push the values > > Is the software expected to say something when the tmsi is correctly > pushed?? printf("changing victim TMSI to: "); for (i = 0; i < msg->len && i < 4; i++) { victim_tmsi[i] = msg->data[i]; printf("%02x ", victim_tmsi[i]); } puts("\n"); Best Tim From dario.lombardo.ml at gmail.com Thu Sep 5 14:38:02 2013 From: dario.lombardo.ml at gmail.com (Dario Lombardo) Date: Thu, 5 Sep 2013 16:38:02 +0200 Subject: layer2/3 ported to target? paging attack code? In-Reply-To: References: <1378227662.93957.YahooMailNeo@web121005.mail.ne1.yahoo.com> <1378232842.92551.YahooMailNeo@web121004.mail.ne1.yahoo.com> <1378299933-sup-2371@dennou> <1378325214-sup-34@dennou> Message-ID: Thanks. Does the POWER indications works for you? Despite of the arfcn I enter, I get always -110. Using RSSI from master, I can get -76 from the strongest cell (arfcn = 1). On Thu, Sep 5, 2013 at 3:32 PM, Tim Ehlers wrote: > On Thu, 5 Sep 2013, Dario Lombardo wrote: > > Hi, > > On Wed, Sep 4, 2013 at 10:08 PM, Kevin Redon >> wrote: >> sorry, here the scripts to push the values >> >> Is the software expected to say something when the tmsi is correctly >> pushed? >> > > printf("changing victim TMSI to: "); > for (i = 0; i < msg->len && i < 4; i++) { > victim_tmsi[i] = msg->data[i]; > printf("%02x ", victim_tmsi[i]); > } > puts("\n"); > > Best > > Tim -------------- next part -------------- An HTML attachment was scrubbed... URL: From osmocom at ehlers.info Thu Sep 5 14:51:54 2013 From: osmocom at ehlers.info (Tim Ehlers) Date: Thu, 5 Sep 2013 16:51:54 +0200 (CEST) Subject: layer2/3 ported to target? paging attack code? In-Reply-To: References: <1378227662.93957.YahooMailNeo@web121005.mail.ne1.yahoo.com> <1378232842.92551.YahooMailNeo@web121004.mail.ne1.yahoo.com> <1378299933-sup-2371@dennou> <1378325214-sup-34@dennou> Message-ID: On Thu, 5 Sep 2013, Dario Lombardo wrote: Hi Dario, > Does the POWER indications works for you? Despite of the arfcn I enter, I get always > -110.? > Using RSSI from master, I can get -76 from the strongest cell (arfcn = 1). I only tried one Cell (which is one of the strongest here) from O2 Germany in my Location and Power says -68, which is (nearly) the same as osmocombb-mobile says for that cell. So yes, I think it is working... Best Tim From edachleger at yahoo.com Mon Sep 9 14:52:57 2013 From: edachleger at yahoo.com (Erich Dachleger) Date: Mon, 9 Sep 2013 15:52:57 +0100 (BST) Subject: toolchain-script with live-cd Message-ID: <1378738377.65488.YahooMailNeo@web171202.mail.ir2.yahoo.com> Hi list, When using the build-toolchain script in the osmocom-bb wiki,which works fine, I sometimes also want to use the obtained toolchain on a live cd, with same OS. When I try to build the script on the live-cd I run out of space so I thougt it would be easy to just copy the the script built on first disk by issuing cp -r /root/dublin/install/* /root/copyfile and then tar cf name.tar copyfile/ && bzip2 name.tar Here dublin is the original folder where the full toolchain resulting from osmocombb buildscript, http://bb.osmocom.org/trac/wiki/GnuArmToolchain,? is placed. name.tar.bz2 is then copied onto the live-cd, decompressed into copyfile, but compiling osmocombb fails. I suspect I introduce errors when copying /root/dublin/install/* onto copyfile since that command is omitting files(such as binutils)and some directories, from the original directory, but copying the full original directory osmocombb-buildscript directory dublin would lead to lack of disc-space in the live-cd.? Somebody on the list noted in March that a simple chmod 777 /root/copyfile would fix it, but in my case it does not work. When I used the old now removed) toolchain available as tarball on the osmocombb-website about 7 months ago it worked to build on a live cd using that tooldchain, but maybe it is not possible to use the toolchain from the buildscript on such media as an OS booted from a live cd? /regards erich ---------------------------------------------------------------------------------------------------------- some error message from running osmocom-bb/src/make? on the live-cd: cd shared/libosmocore/build-target && ../configure \ ??????????????????????? --host=arm-elf --enable-embedded --disable-shared \ ??????????????????????? --disable-tests ac_cv_header_sys_select_h=no \ ??????????????????????? --disable-tests ac_cv_header_sys_socket_h=no \ ??????????????? CFLAGS="-Os -ffunction-sections -I/root/osmocom-bb/src/target/firmware/include -nostartfiles -nodefaultlibs" configure: WARNING: unrecognized options: --disable-tests, --disable-tests configure: WARNING: If you wanted to set the --build type, don't use --host. ??? If a cross compiler is detected then cross compile mode will be used. checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for arm-elf-strip... arm-elf-strip checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make sets $(MAKE)... (cached) yes checking for arm-elf-gcc... arm-elf-gcc checking whether the C compiler works... no configure: error: in `/root/osmocom-bb/src/shared/libosmocore/build-target': configure: error: C compiler cannot create executables See `config.log' for more details. make: *** [shared/libosmocore/build-target/Makefile] Error 77 ------------------------------------------------------------------------------------- also on live-cd: root at bt:~# arm-elf-gcc -v Using built-in specs. COLLECT_GCC=arm-elf-gcc COLLECT_LTO_WRAPPER=/root/apple/bin/../libexec/gcc/arm-elf/4.5.2/lto-wrapper Target: arm-elf Configured with: /root/dublin/src/gcc-4.5.2/configure --target=arm-elf --prefix=/root/dublin/install --enable-interwork --enable-multilib --with-float=soft --disable-werror --enable-languages=c,c++ --with-newlib --with-headers=/root/dublin/src/newlib-1.19.0/newlib/libc/include --with-system-zlib --disable-shared Thread model: single gcc version 4.5.2 (GCC) ----------------------------------------------------------------------------------------- Some content of osmocom-bb-buildscript on original disk where building of osmocombb works: root at bt:~/dublin# ls -a .? ..? build? gnu-arm-build.2.sh? install? src root at bt:~/dublin# cd build root at bt:~/dublin/build# ls -a .? ..? binutils-2.21.1? gcc-4.5.2? newlib-1.19.0 root at bt:~/dublin/build# cd .. root at bt:~/dublin# ls -a .? ..? build? gnu-arm-build.2.sh? install? src root at bt:~/dublin# cd src root at bt:~/dublin/src# ls -a .? ..? binutils-2.21.1? binutils-2.21.1a.tar.bz2? gcc-4.5.2? gcc-4.5.2.tar.bz2? newlib-1.19.0? newlib-1.19.0.tar.gz root at bt:~/dublin/src# cd .. root at bt:~/dublin# clear root at bt:~/dublin# ls -a .? ..? build? gnu-arm-build.2.sh? install? src root at bt:~/dublin# cd build root at bt:~/dublin/build# ls -a .? ..? binutils-2.21.1? gcc-4.5.2? newlib-1.19.0 -------------- next part -------------- An HTML attachment was scrubbed... URL: From edachleger at yahoo.com Thu Sep 12 13:35:09 2013 From: edachleger at yahoo.com (Erich Dachleger) Date: Thu, 12 Sep 2013 14:35:09 +0100 (BST) Subject: toolchain-script with live-cd In-Reply-To: <1378738377.65488.YahooMailNeo@web171202.mail.ir2.yahoo.com> References: <1378738377.65488.YahooMailNeo@web171202.mail.ir2.yahoo.com> Message-ID: <1378992909.64748.YahooMailNeo@web171204.mail.ir2.yahoo.com> ________________________________ Just answering my own question to confirm that the toolchain script also can be moved to a small medium like a live cd and compile osmocom-bb. First remove the src and build directories that are inside the folder from where the osmocom-bb toolchain script was run, here called dublin and then: cp -rp /root/dublin/install? /root/copyfolder tar cf name.tar copyfolder? && bzip2 name.tar Then copy name.tar.bz2 onto the live-cd and unpack it. Then mv copyfolder dublin The compilation errors disappeared after doing export LD_LIBRARY_PATH=/usr/local/lib and installing libmpc-dev Regards //erich -------------- next part -------------- An HTML attachment was scrubbed... URL: From gandguladze at hotmail.com Tue Sep 10 15:47:37 2013 From: gandguladze at hotmail.com (George Andguladze) Date: Tue, 10 Sep 2013 15:47:37 +0000 Subject: "Type not handled! 40" gprsdecode Message-ID: Hey there, I bumped into this error when testing gprsdecode from srldabs.de When I try the sample .dat files provided from srlabs.de it works fine though. Any hints? Kind Regards George AndguladzeSenior Software EngineerBusiness Management Technology www.bmt.ge -------------- next part -------------- An HTML attachment was scrubbed... URL: From rm.engineer84 at gmail.com Thu Sep 19 19:21:25 2013 From: rm.engineer84 at gmail.com (R M) Date: Fri, 20 Sep 2013 00:51:25 +0530 Subject: Issue related to Communication Message-ID: Hi all, I am asian. I am having this very problematic issue. In my day job, I provide production support for a large application. We have weekly calls with our clients. The clients are mostly European. One of them's surname is Welsh I am having a real hard time understanding their accent. I want to tell them that I cant understand thier accent. If I say so will it bad thing to say. That is, will they get offended by it ? I am asking this question as many here are from the European continent. Regards, Ronald -------------- next part -------------- An HTML attachment was scrubbed... URL: From peter at stuge.se Fri Sep 20 17:07:25 2013 From: peter at stuge.se (Peter Stuge) Date: Fri, 20 Sep 2013 19:07:25 +0200 Subject: Issue related to Communication In-Reply-To: References: Message-ID: <20130920170725.22118.qmail@stuge.se> Dear Ronald, I think you deserve respect and admiration for your interest in different cultures and wanting to learn how to communicate better across continents! This mailing list often has focus only on technology, but everybody here is interested in communication. I personally think that human communication is far more important than technology - the technology is only the tool we use to communicate between humans. R M wrote: > The clients are mostly European. One of them's surname is Welsh > > I am having a real hard time understanding their accent. I want to > tell them that I cant understand thier accent. Let me ask this: Do you have some ideas for how to solve the problem? > If I say so will it bad thing to say. That is, will they get offended by it ? My *guess* is that this person will not be offended if you express that because you are unused to their accent it is difficult for you to understand what they say. A smart person will appreciate that you mention this, because identifying and expressing the problem is the first step before finding a solution so that you can communicate more efficiently. There is some risk that their accent is a sensitive subject, but in my experience if you focus on wishing to reach better communication then that will be respected and appreciated. I would however make two suggestions: 1. Don't bring the accent up in a conference call and instead mention it in a direct conversation, or if you prefer maybe via email. If the accent is indeed a sensitive subject it is better to discuss person-to-person than in a conference call, and if you are the only one in the conference call who can not understand the accent then the topic is irrelevant for everybody else, and a waste of their time. 2. Try to offer a constructive suggestion for how you can solve the problem with the accent or maybe work around it. If you only point out the problem without suggesting a solution then the person may get the impression that you do not actually care very much about the problem and that you are just complaining for no reason. But if you mention the problem and immediately also offer a suggestion which you think will help, then it is quite obvious that you want to have better communication, which will hopefully be appreciated, just as it is by me. Good luck, and have a nice weekend //Peter PS. I can't understand welsh either. From jolly at eversberg.eu Sun Sep 29 13:32:03 2013 From: jolly at eversberg.eu (Andreas Eversberg) Date: Sun, 29 Sep 2013 15:32:03 +0200 Subject: [PATCH] Menu App to select highram images from phone's flash memory Message-ID: <1380461523-2887-1-git-send-email-jolly@eversberg.eu> --- src/target/firmware/Makefile | 3 +- src/target/firmware/apps/menu/main.c | 353 ++++++++++++++++++++++++++++++++++ 2 files changed, 355 insertions(+), 1 deletions(-) create mode 100644 src/target/firmware/apps/menu/main.c diff --git a/src/target/firmware/Makefile b/src/target/firmware/Makefile index 42f7ad4..0f4120f 100644 --- a/src/target/firmware/Makefile +++ b/src/target/firmware/Makefile @@ -84,11 +84,12 @@ BOARD_se_j100_ENVIRONMENTS=$(compal_COMMON_ENVIRONMENTS) # # List of all applications (meant to be overridden on command line) -APPLICATIONS?=hello_world compal_dsp_dump layer1 loader rssi +APPLICATIONS?=hello_world compal_dsp_dump layer1 loader rssi menu # Applications specific env requirements APP_loader_ENVIRONMENTS=compalram highram APP_rssi_ENVIRONMENTS=* -compalram +APP_menu_ENVIRONMENTS=* -highram # Various objects that are currently linked into all applications FLASH_OBJS=flash/cfi_flash.o diff --git a/src/target/firmware/apps/menu/main.c b/src/target/firmware/apps/menu/main.c new file mode 100644 index 0000000..47aadc4 --- /dev/null +++ b/src/target/firmware/apps/menu/main.c @@ -0,0 +1,353 @@ +/* Menu for Calypso Phone to load applicatios from flash */ + +/* (C) 2013 by Andreas Eversberg + * + * All Rights Reserved + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + * + */ + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#define RAM 0x00820000 +#define MAGIC 0x0083ff00 + +enum key_codes key_code = KEY_INV; +static volatile enum key_states key_state; + +int cursor = 0, scroll_apps = 0; + +struct apps { + char name[16]; + void *start; + int len; +} apps[32]; + +int _memcmp(char *s1, char *s2, int size) +{ + int i; + + for (i = 0; i < size; i++) { + if (*s1 < *s2) + return -1; + if (*s1 > *s2) + return 1; + s1++; + s2++; + } + + return 0; +} + +static void locate_apps(void) +{ + int i, j, k; + char *p; + + memset(apps, 0, sizeof(apps)); + + for (j = 0, i = 0x010000; i < 0x200000; i += 0x10000) { + p = (char *)i; + /* check for highram header: "highram:" */ + if (!!_memcmp(p, "highram:", 8)) + continue; + p += 8; + /* check for app name after header: "highram:\n" */ + printf("found highram image at flash mem address 0x%p\n", + (char *)i); + for (k = 0; k < (int)sizeof(apps[j].name) - 1; k++) { + if (p[k] == '\n') + break; + } + if (k == sizeof(apps[j].name) - 3) { + printf("skipping: corrupt highram header, no '\\n' " + "after image name or name more larger than %d " + "digits\n", (int)sizeof(apps[j].name) - 3); + continue; + } + if (j < 9) + apps[j].name[0] = '1' + j; + else if (j == 9) + apps[j].name[0] = '0'; + else + apps[j].name[0] = ' '; + apps[j].name[1] = ' '; + memcpy(apps[j].name + 2, p, k); + apps[j].len = 0x20000; + p += k + 1; + /* p points to highram image after header */ + apps[j].start = p; + j++; + } +} + +static void wait_key_release(void) +{ + /* wait for key release */ + while (key_state == PRESSED) { + delay_ms(10); + keypad_poll(); + } +} + +static void load_app(void) +{ + static int i; + static void (*f) (void) = (void (*)(void))RAM; + + wait_key_release(); + + local_irq_disable(); + + for (i = 0; i < apps[cursor].len; i++) + ((unsigned char *)RAM)[i] = ((unsigned char *)apps[cursor].start)[i]; + f(); +} + +/* UI */ + +static void refresh_display(void) +{ +#if 0 + char text[16]; + int bat = battery_info.battery_percent; +#endif + int i; + + fb_clear(); + + /* header */ + fb_setbg(FB_COLOR_WHITE); + if (1) { + fb_setfg(FB_COLOR_BLUE); + fb_setfont(FB_FONT_HELVR08); + fb_gotoxy(0, 7); + fb_putstr("Osmocom Menu", -1); + fb_setfg(FB_COLOR_RGB(0xc0, 0xc0, 0x00)); + fb_setfont(FB_FONT_SYMBOLS); +#if 0 + fb_gotoxy(framebuffer->width - 15, 8); + if (bat >= 100 && (battery_info.flags & BATTERY_CHG_ENABLED) + && !(battery_info.flags & BATTERY_CHARGING)) + fb_putstr("@HHBC", framebuffer->width); + else { + sprintf(text, "@%c%c%cC", (bat >= 30) ? 'B':'A', + (bat >= 60) ? 'B':'A', (bat >= 90) ? 'B':'A'); + fb_putstr(text, framebuffer->width); + } +#endif + fb_gotoxy(0, 8); + fb_putstr("GGEGG", framebuffer->width); + fb_setfg(FB_COLOR_GREEN); + fb_gotoxy(0, 10); + fb_boxto(framebuffer->width - 1, 10); + } + fb_setfg(FB_COLOR_BLACK); + fb_setfont(FB_FONT_C64); + + + for (i = 0; i < 5; i++) { + if (!apps[scroll_apps + i].name) + break; + if (scroll_apps + i == cursor) { + fb_setfg(FB_COLOR_WHITE); + fb_setbg(FB_COLOR_BLUE); + } + fb_gotoxy(0, 20 + i * 10); + fb_putstr(apps[scroll_apps + i].name, + framebuffer->width); + if (scroll_apps + i == cursor) { + fb_setfg(FB_COLOR_BLACK); + fb_setbg(FB_COLOR_WHITE); + } + } + if (i == 0) { + fb_gotoxy(0, 50); + fb_putstr("No apps!", -1); + } + + fb_flush(); +} + +static void handle_key_code() +{ + if (key_code == KEY_INV) + return; + + switch (key_code) { + case KEY_1: + case KEY_2: + case KEY_3: + case KEY_4: + case KEY_5: + case KEY_6: + case KEY_7: + case KEY_8: + case KEY_9: + if (apps[key_code - KEY_1].len) { + cursor = key_code - KEY_1; + load_app(); + } + break; + case KEY_0: + if (apps[9].len) { + cursor = 9; + load_app(); + } + break; + case KEY_UP: + if (cursor == 0) + return; + cursor--; + if (cursor < scroll_apps) + scroll_apps = cursor; + refresh_display(); + break; + case KEY_DOWN: + if (!apps[cursor + 1].name[0]) + return; + cursor++; + if (cursor >= scroll_apps + 5) + scroll_apps = cursor - 4; + refresh_display(); + break; + case KEY_OK: + if (apps[cursor].len) + load_app(); + break; + case KEY_POWER: + wait_key_release(); + twl3025_power_off(); + break; + default: + break; + } + + key_code = KEY_INV; +} + +/* Main Program */ +const char *hr = "======================================================================\n"; + +static void key_handler(enum key_codes code, enum key_states state) +{ + key_state = state; + + if (state != PRESSED) + return; + + key_code = code; +} + +extern void putchar_asm(uint32_t c); + +static const uint8_t phone_ack[] = { 0x1b, 0xf6, 0x02, 0x00, 0x41, 0x03, 0x42 }; + +int main(void) +{ + int i; + + /* Simulate a compal loader saying "ACK" */ + for (i = 0; i < (int)sizeof(phone_ack); i++) { + putchar_asm(phone_ack[i]); + } + + board_init(0); + + puts("\n\nOsmocomBB Menu (revision " GIT_REVISION ")\n"); + puts(hr); + + fb_clear(); + + fb_setfg(FB_COLOR_BLACK); + fb_setbg(FB_COLOR_WHITE); + fb_setfont(FB_FONT_HELVB14); + + fb_gotoxy(2,20); + fb_putstr("menu",framebuffer->width-4); + + fb_setfg(FB_COLOR_RED); + fb_setbg(FB_COLOR_BLUE); + + fb_gotoxy(2,25); + fb_boxto(framebuffer->width-3,38); + + fb_setfg(FB_COLOR_WHITE); + fb_setfont(FB_FONT_HELVR08); + fb_gotoxy(8,33); + fb_putstr("osmocom-bb",framebuffer->width-4); + + fb_flush(); + + /* Dump device identification */ + dump_dev_id(); + puts(hr); + + /* Dump clock config before PLL set */ + calypso_clk_dump(); + puts(hr); + + keypad_set_handler(&key_handler); + + /* Dump clock config after PLL set */ + calypso_clk_dump(); + puts(hr); + +// display_unset_attr(DISP_ATTR_INVERT); + + locate_apps(); + + while (1) { + for (i = 0; i < 50; i++) { + keypad_poll(); + delay_ms(10); + osmo_timers_update(); + handle_key_code(); + } + refresh_display(); + } + + /* NOT REACHED */ + + twl3025_power_off(); +} + -- 1.7.3.4 From andreas at eversberg.eu Sun Sep 29 13:33:19 2013 From: andreas at eversberg.eu (Andreas Eversberg) Date: Sun, 29 Sep 2013 15:33:19 +0200 Subject: [PATCH] Menu App to select highram images from phone's flash memory In-Reply-To: <5248152C.9050107@eversberg.eu> References: <1380452630-1326-1-git-send-email-jolly@eversberg.eu> <5248152C.9050107@eversberg.eu> Message-ID: <52482C1F.10103@eversberg.eu> sorry, wrong mailing list. so i try again: Andreas Eversberg wrote: > hi, > > this forthcoming tutorial describes the usage (flashing) of the menu app: > > https://bb.osmocom.org/trac/wiki/flashing_new > > andreas > > From anmu at etc-network.de Mon Sep 30 16:44:54 2013 From: anmu at etc-network.de (Andreas) Date: Mon, 30 Sep 2013 18:44:54 +0200 Subject: bad crc when trying to flash application Message-ID: <20130930164454.GA18693@pocken.who.de> Hello, I have problems flashing applications to the motorola c123. I tried it with several phones. Booting and running applications via USB is working well, but unfortunately flashing does not work. Following both of the tutorials (flashing and flashing_new) the command "host/osmocon/osmoload fprogram 0 0x010000 compal_loader.bin" outputs: Loading 8192 bytes of memory at 0x10000 in chip 0 from file compal_loader.bin bad crc 9bf1 (not e0bc) at offset 0x00000000 status 5242976, aborting The memdump-command seems to work - I get a file compal_loader.bin with an md5sum of f59dee5a67b4114251acd0d279eacd85. The "funlock" and "erase"-command seemed to be successful, according to the output of osmocom ("Unlocking block at 0x00010000, meaning 00010000", "Erasing block 0x00010000...done") and the fact, that the original firmware does not load anymore, when erased :-) I am using debian 6.0 (32bit) with a cross-compile-environment setup as described on http://bb.osmocom.org/trac/wiki/GnuArmToolchain to compile osmocom. The libosmocore has Patch 5b6416a729b46aab8ac7ea25a7ec91f3afeaf4fc (latest master-Branch), but I am using commit f2ab5e14967426f4845b51def4d9105af22f9ad2 from the master-branch of osmocom, because with the latest version of osmocom, the phones would not boot - I get only an output of "got 2 bytes from modem, data looks like: 04 81 ..", then osmocom exits. The motorola c123 is connected via USB-Hub and an CP2102-Cable I got from sysmocom. Could anybody please give me a where the error is or what else I can try to solve the problem. Thanks for help. greetings, Andreas From 246tnt at gmail.com Mon Sep 30 18:03:55 2013 From: 246tnt at gmail.com (Sylvain Munaut) Date: Mon, 30 Sep 2013 20:03:55 +0200 Subject: bad crc when trying to flash application In-Reply-To: <20130930164454.GA18693@pocken.who.de> References: <20130930164454.GA18693@pocken.who.de> Message-ID: > bad crc 9bf1 (not e0bc) at offset 0x00000000 > status 5242976, aborting Make sure to use the very latest git. A patch was very recently pushed wrt to this. Cheers, Sylvain