From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernd Krumboeck Subject: Re: usb_8dev: firmware and windows library Date: Sun, 26 Jan 2014 10:38:50 +0100 Message-ID: <52E4D7AA.4060903@universalnet.at> References: <52DE5EEF.6080100@hartkopp.net> <52DE60C7.3050906@8devices.com> <52DFC08C.2040400@universalnet.at> <52DFD9B7.40300@pengutronix.de> <52E36208.3020100@universalnet.at> <52E37EF4.3090807@universalnet.at> <52E3EC8F.30200@hartkopp.net> <52E4CEA2.5030407@universalnet.at> <52E4D3D4.8040307@8devices.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from smtp.xy24.at ([85.126.109.136]:58761 "EHLO renate.xy24.at" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751130AbaAZJjM (ORCPT ); Sun, 26 Jan 2014 04:39:12 -0500 In-Reply-To: <52E4D3D4.8040307@8devices.com> Sender: linux-can-owner@vger.kernel.org List-ID: To: Gediminas Simanskis , Oliver Hartkopp , Brennan Ashton Cc: Marc Kleine-Budde , linux-can@vger.kernel.org, Uwe Bonnes Hi! Thank you for the fast response. Protection against disassembling? Is it possible to get the key? regards, Bernd Am 2014-01-26 10:22, schrieb Gediminas Simanskis: > Hello, > > binary image must be encrypted in RC4 format with 40 bit key before making DFU file. > > Gediminas > >> Hi! >> >> >> I tried to build my own firmware for the microcontroller with GNU Toolchain. >> I was able to build, but it doesn't work. >> Sadly I'm not able to debug. >> >> >> Maybe someone has an idea? >> >> >> CAUTION: You can brick your hardware, if you accidentally overwrite the bootloader! >> >> If you work careful you can easily flash back to original firmware. >> >> >> >> Setup project and build project: >> 1. Download GNU Toolchain for ARM (https://launchpad.net/gcc-arm-embedded) >> 2. Unpack into /opt >> 3. Set Path: "export PATH=/opt/gcc-arm-none-eabi-4_8-2013q4/bin/:$PATH" >> 4. Unpack gccstartup.tar.gz >> 5. execute "make" >> >> >> Convert bin file to dfu file: >> 1. Download dfu-20101118.tgz from http://www.seeedstudio.com/forum/viewtopic.php?p=4504#p4504 >> 2. Unpack wherever you want >> 3. execute "python dfu.py -b 0x20006000:main.bin main.dfu" >> >> >> Flash to device: >> https://github.com/krumboeck/usb2can_firmware#flash-the-device-linux-experimental >> >> >> What it should do (but does not work): >> * Simple startup for C language >> * Turn on the red led >> >> >> Attached files: >> gccstartup.tar.gz --- Project source >> main.bin --- Binary output for flashing >> main.map --- Linker Mapping file >> >> >> Some last thoughts: >> * The memory map from Gediminas contains a .checksum section. Maybe the bootloader do some checks? >> * Maybe the binary file is ok, but the dfu file is not compatible? >> >> >> >> regards, >> Bernd >> >> >> >> Am 2014-01-25 17:55, schrieb Oliver Hartkopp: >>> Hello Brennan, >>> >>> a packet from Germany to the US is about 16 EUR with DHL and 60EUR with UPS?? >>> Maybe I missed anything with the UPS Website while trying to get some shipping >>> costs %-] >>> >>> Btw. with all the customs stuff it looks pretty pointless to sent this adapter >>> to you from Germany and back again :-( >>> >>> I know some guys in the US that bought some of these adapters last year. >>> I'll try to contact them on Monday if it's possible to lend you one of the >>> adapters and ship it inside the US. >>> >>> Regards, >>> Oliver >>> >>> On 25.01.2014 16:55, Brennan Ashton wrote: >>>> Bernd, >>>> Assuming it's not coming from the Arctic Circle or something I have no >>>> problem covering the cost of shipping. Just shoot me a private email >>>> with how much shipping is and how to get the funds to you. >>>> >>>> --Brennan >>>> >>>> On 1/25/14, Bernd Krumboeck wrote: >>>>> I could lend, but the delivery costs would eat my pocket. ;-) >>>>> >>>>> Maybe I could find some time in the next days. >>>>> Are you willing to assist by mail? >>>>> >>>>> >>>>> regards, >>>>> Bernd >>>>> >>>>> >>>>> >>>>> Am 2014-01-25 09:29, schrieb Brennan Ashton: >>>>>> If there is interest and someone can lend me one of these for a bit of >>>>>> time I'm sure I could get this ported over to the GCC arm tool chain. >>>>>> I have done a few IAR to GCC ports and besides a few tricks they >>>>>> usually are not too bad. >>>>>> >>>>>> --Brennan Ashton >>>>>> >>>>>> On 1/24/14, Bernd Krumboeck wrote: >>>>>>> Hi! >>>>>>> >>>>>>> >>>>>>> Source code from firmware v1.5: >>>>>>> https://github.com/krumboeck/usb2can_firmware >>>>>>> >>>>>>> >>>>>>> After some experiments I was able to flash the firmware with dfu-util >>>>>>> under >>>>>>> linux: >>>>>>> https://github.com/krumboeck/usb2can_firmware#flash-the-device-linux-experimental >>>>>>> >>>>>>> >>>>>>> Sadly I don't know the way how to build the firmware with a free tools >>>>>>> chain. >>>>>>> >>>>>>> >>>>>>> regards, >>>>>>> Bernd >>>>>>> >>>>>>> >>>>>>> Am 2014-01-22 15:46, schrieb Marc Kleine-Budde: >>>>>>>> On 01/22/2014 01:58 PM, Bernd Krumboeck wrote: >>>>>>>>> May I kindly ask you to send me a diff/patch about the changes, so I >>>>>>>>> can >>>>>>>>> update the firmware sources on github. >>>>>>>> >>>>>>>> A complete new set of sources will do, too. Git will create the diff >>>>>>>> for >>>>>>>> you. :) >>>>>>>> >>>>>>>> Marc >>>>>>>> >>>>> > > -- > To unsubscribe from this list: send the line "unsubscribe linux-can" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html