From alexander.u at keepgo.com Wed Feb 8 09:25:26 2017 From: alexander.u at keepgo.com (Alexander Unger) Date: Wed, 8 Feb 2017 11:25:26 +0200 Subject: Problem with firmware flashing Message-ID: Hi, our company bought two SIMtrace Hardware Kits. We want to use SIM forwarder firmware in our project. but have problem with flashing it to the board. in one way I installed toolchain as described at http://osmocom.org/projects/baseband/wiki/GnuArmToolchain and made forwarder firmware - success1. but any tries to flash it using dfu-util failed. tries was next: -------------------------- - from windows10 host using steps from https://github.com/kiibohd/controller/wiki/Loading-DFU-Firmware#windows - kii-dfu can`t flash it due to three dfu devices with NO serial numbers. Try using dfu-util with -a0 flag gives same result as later cases - DFU found, state idle, activate alternative=0 ... and nothing more. reruns not helps. reconnects with or w/o BOOTLOADER button gives same result - nothing. --------------------- - same win10 host with vmWare Ubuntu16.04 VM. tries to install using ubuntu. device shown on lsusb - dfu mode on. dfu-utils installed, toolchain too, firmware made OK. simtrace made too. BUG1 experiment with simtrace gives output with wrong parsing of commands - may be you have to open bug case to resolve it. same results with usb2 on vm and usb3. all tries to flash forwarder or reader to board failed on same place as before. tried with button at connect and using -ao and w/o button and using -i param (forgot number of interface for apps partition mb was -i1 ) - failed - pure ubuntu 16.04 host. all above with same results. using usb3 port and usb2 extender. -------------------------------- Now the time to tell about second way - SAM-BA . here is another problem: used http://osmocom.org/projects/simtrace/wiki/SIMtrace_Firmware installed GnuArmToolchain . as described on toolchain link, included to PATH. Trying to do: git clone git://git.osmocom.org/openpcd.git cd openpcd/firmware make -f Makefile.dfu BOARD=SIMTRACE make BOARD=SIMTRACE DEBUG=1 TARGET=main_simtrace cat dfu.bin main_simtrace.bin > main_simtrace.samba cd ../.. failed on 3rd string: make -f Makefile.dfu BOARD=SIMTRACE - arm-elf-gcc not found! tries to rename arm-none-eabi gcc to arm-elf-gcc was not successful. so I cant produce your dfu.bin to use samba (I made it with success) with cat dfu.bin my_forwarder.bin > my_forwarder.samba Also, at the string cat dfu.bin main_simtrace.bin > main_simtrace.samba we see dfu.bin which is possibly dfu-boot-loader with wrong name which crashes brain of google so we have a BUG2: - to rename produced dfu.bin filename to something relative i.e. dfu-boot-loader-arm-SAM7.bin - to place link to binary of loader(s) at your instructions. installed also crosstool-ng - but arm-elf-gcc not found too So, we have fails using dfu-util and unmaking state of firmware which gives use of SAM-BA impossible due to insufficient dfu-boot-loader-arm-SAM7.bin aka dfu-bin. This situation looks like failed "smoke test"... Please help me to solve these issues. Regards, Alexandr -- https://L-in-K.com/147a258u369 -------------- next part -------------- An HTML attachment was scrubbed... URL: From holger at freyther.de Wed Feb 8 10:53:10 2017 From: holger at freyther.de (Holger Freyther) Date: Wed, 8 Feb 2017 17:53:10 +0700 Subject: Problem with firmware flashing In-Reply-To: References: Message-ID: <9DEEFF0F-B484-4ACC-A708-05CF4608FC94@freyther.de> > On 8 Feb 2017, at 16:25, Alexander Unger wrote: Hi! > This situation looks like failed "smoke test"... or just bitrot. The software was developed some time ago and you are using newer operating systems, tools, compilers. SIMtrace is a Free Software project and it lives by contributions. > - same win10 host with vmWare Ubuntu16.04 VM. tries to install using ubuntu. device shown on lsusb - dfu mode on. dfu-utils installed, toolchain too, firmware made OK. simtrace made too. > > BUG1 > experiment with simtrace gives output with wrong parsing of commands - may be you have to open bug case to resolve it. same results with usb2 on vm and usb3. Apparently the dfu implementation in the bootloader and dfu-util are not compatible with each other. http://lists.osmocom.org/pipermail/simtrace/2016-November.txt We have a known working version and known broken, it should be reasonable to git bisect dfu-utils and then seeing what needs to be changed in dfu-util or the bootloader should be more clear then. > Now the time to tell about second way - SAM-BA . here is another problem: > > used http://osmocom.org/projects/simtrace/wiki/SIMtrace_Firmware > > installed GnuArmToolchain. as described on toolchain link, included to PATH. Let me remove that link to OsmocomBB. The binary toolchain we referred to is long gone, the firmware predates the default usage of EABI. E.g. change "Makefile" to use $(CROSS_COMPILE)cc and such and then see if make .. CROSS_COMPILE=arm-none-eabi- works then. > > So, we have fails using dfu-util and unmaking state of firmware which gives use of SAM-BA impossible due to insufficient dfu-boot-loader-arm-SAM7.bin aka dfu-bin. * dfu-util is known since November. Happy to accept patches * arm-elf-gcc.. wasn't aware of that but it is not clear that the EABI toolchain will generate a working binary. https://osmocom.org/attachments/download/2147/main_simtrace_v05.samba for the v05 files to be used with samba. cheers holger From lists.tormod at gmail.com Sun Feb 12 21:02:26 2017 From: lists.tormod at gmail.com (Tormod Volden) Date: Sun, 12 Feb 2017 22:02:26 +0100 Subject: dfu-util and simtrace Message-ID: Hi, I looked through the archives of this list and saw that an issue with dfu-util and simtrace was discussed. Can anyone here do some simple debugging on it? Remote access would have been great, but I guess the device hangs and must be reset all the time during testing so it might not be so efficient. The issue was also reported in the dfu-util bug tracker, but the OP went silent, so please add any useful information there (or Cc me on your replies here). https://sourceforge.net/p/dfu-util/tickets/33/ Best regards, Tormod From sz.mielczarek at gmail.com Sat Feb 18 09:12:38 2017 From: sz.mielczarek at gmail.com (Szymon Mielczarek) Date: Sat, 18 Feb 2017 10:12:38 +0100 Subject: Problem with firmware flashing using dfu-util Message-ID: In a response to "Problem with firmware flashing" thread. I couldn't easily reply in the original thread so I am writing in a new one. Hi Alexander, As Holger mentioned, it seems that both dfu (the one provided with device and dfu-util) are not compatible with each other. I will try to debug this issue a little bit later. Anyway, I was able to flash the board using an older version of dfu-util on Windows 7. Here are my steps (on Windows): 1. Download and unpack dfu-util v0.6 (dfu-util-0.6-win32.zip.bz2) from: http://dfu-util.sourceforge.net/releases/ 2. Install USB drivers (http://zadig.akeo.ie/) 3. Enter DFU mode (the red LED should turn on) 4. Flash the device from cmd line dfu-util -d 16c0:0762 -R -a0 -D sim_forwarder-simtrace-at91sam7s128-flash_dfu.bin On Linux machine I am using the following configuration: - Ubuntu 14.04 (natively booted, not VM) - dfu-util v0.5 -- BR, Szymon -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists.tormod at gmail.com Tue Feb 21 22:45:49 2017 From: lists.tormod at gmail.com (Tormod Volden) Date: Tue, 21 Feb 2017 23:45:49 +0100 Subject: dfu-util and simtrace Message-ID: On Sun, Feb 12, 2017 at 10:02 PM, Tormod Volden wrote: > I looked through the archives of this list and saw that an issue with > dfu-util and simtrace was discussed. Can anyone here do some simple > debugging on it? Remote access would have been great, but I guess the > device hangs and must be reset all the time during testing so it might > not be so efficient. Thanks to Szymon Mielczarek, this issue has now been fixed. You can use latest git of dfu-util to program your SIMtrace. git clone git://git.code.sf.net/p/dfu-util/dfu-util Best regards, Tormod From holger at freyther.de Mon Feb 27 01:26:38 2017 From: holger at freyther.de (Holger Freyther) Date: Mon, 27 Feb 2017 08:26:38 +0700 Subject: Problem with firmware flashing In-Reply-To: References: <9DEEFF0F-B484-4ACC-A708-05CF4608FC94@freyther.de> Message-ID: > On 20 Feb 2017, at 00:23, Alexander Unger wrote: > > Hey! > or just bitrot. > I didn't said something bad about project... Sorry... I didn't feel offended and think "bitrot" is more close to a fact. The simtrace firmware is a community project and has not been updated to work with latest compilers and tools. E.g. using old code with new tools might or might not work or fail in other ways (e.g. compiles but doesn't run) > > Is anywhere working executable of sam7 to flash our "brick"-card and revive it? I don't know but sysmocom is using the utility to flash all the devices using SAM-BA. > it should be a single Makefile for old and new compilers regards From pedrocab at gmail.com Mon Feb 27 16:03:26 2017 From: pedrocab at gmail.com (Pedro Cabrera) Date: Mon, 27 Feb 2017 17:03:26 +0100 Subject: Trying to use simtrace with 4FF NFC/SIM cards Message-ID: Hi all, I come to all of you as I'm trying to use simtrace to capture the UE-SIM traffic with a 4G+ SIM card, called "next gen SIM card" (the ones with NFC). The only thing I see is the ATR, and the mobile never detects the SIM card. I try also to read the SIM card plugin directly into the SCR3310 card reader, but the reader didn't recognize the SIM card (no led activity). At the beginning I thought this must be a new standard for the NFC/SIM cards, but reading 3GPP TS 31.101 V13.2.0 (2016-06), I understood only Class B and C operating conditions should be supported by 3G MEs (page 10 of the document), and using transmission protocols T=0 and T=1. So looks like nothing has change in the protocols/electrical conditions. I look for 3GPP specs folder searching for something related with this NFC/SIM (http://www.3gpp.org/DynaReport/31-series.htm), but nothing appear. Also searching in google about this simcards I just found Orange document describing the business strategy to use NFC services/wallet; "On February 21st 2011 many of the world?s leading mobile operators (15 in total) including Orange announced their collective commitment to SIM-based mobile NFC and intention to launch commercial mobile NFC services. In November 2011, the Chinese MNOs increased the momentum of support to SIM based NFC. In January, GSMA communicated that more than 60 MNOs now support these initiatives." Source: https://www.orange.com/en/content/download/12418/258640/version/1/file/Orange%2BNFC%2Band%2BOrange%2BMoney%2BFact%2BSheet%2B-%2BFebruary%2B2013.pdf But still didn't found any technical spec for this sim cards. Most strange for me is that plugging this SIM card in an old Samsung Galaxy S3 is working normally, so ask myself why plugging in SCR3310 reader or simtrace is not working. Can anyone help me with this SIM cards specifications? Does anyone been able to read with SIM readers? Best Regards, Pedro -------------- next part -------------- An HTML attachment was scrubbed... URL: