Brand new OLS (boot)loader tool - Windows and Linux

A cheap logic analyzer. Get one for $50, including worldwide shipping. A collaboration between the Gadget Factory and Dangerous Prototypes.

Re: Brand new OLS (boot)loader tool - Windows and Linux

Postby triden » Tue Aug 16, 2011 5:32 pm

Just got my OLS today.

I followed the instructions at: http://dangerousprototypes.com/docs/Log ... pplication
in an attempt to update the PIC and FPGA.

Everything I try gives an error:

sudo ./ols_fwloader -f APP -P /dev/ttyACM0 -V -t BIN -w /Downloads/ols-0308/OLS_Upgrader/FPGAROM/logic_sniffer_3.07-Demon-Core.bit
Found OLS HW: 1, FW: 3.0, Boot: 2
Error - unknown flash type (ef 40 14 00)
Is OLS in update mode ??
Unable to read Flash ID
Unable to open OLS

I guess I have the latest PIC firmware, but I am unable to tell what FPGA version is loaded. I thought I remember reading somewhere that the new boards were shipping with a newer flash chip.

Thanks.
triden
Newbie
Newbie
 
Posts: 6
Joined: Tue Aug 16, 2011 5:23 pm

Re: Brand new OLS (boot)loader tool - Windows and Linux

Postby jone » Tue Aug 16, 2011 6:01 pm

Yes, that id looks like a new Winbond flash chip (google says W25Q80).

Looking at the code, I think it's a simple change to define the new flash type, hopefully robots can confirm for sure.
jone
Jr. Member
Jr. Member
 
Posts: 64
Joined: Mon Jul 19, 2010 6:55 am

Re: Brand new OLS (boot)loader tool - Windows and Linux

Postby ian » Wed Aug 17, 2011 12:57 am

Hi triden,

Thanks for the report, I'm sorry about the problem.

Here's the list of chips we've used:
http://dangerousprototypes.com/docs/Log ... 1_JEDEC_ID

I am unaware of any other chips used in production. May I please ask where this OLS came from?

I believe there is an override command in the ols-loader application that will ignore flash type. I will also make a new app for you now.
User avatar
ian
Crew
Crew
 
Posts: 10803
Joined: Mon Jul 06, 2009 6:14 am

Re: Brand new OLS (boot)loader tool - Windows and Linux

Postby ian » Wed Aug 17, 2011 1:03 am

Here's an updated version. Lots of compile warnings, not sure it works.
Attachments
ols-loader.zip
(7.39 KiB) Downloaded 446 times
User avatar
ian
Crew
Crew
 
Posts: 10803
Joined: Mon Jul 06, 2009 6:14 am

Re: Brand new OLS (boot)loader tool - Windows and Linux

Postby jone » Wed Aug 17, 2011 6:22 am

Untested, but here's a quick patch for ols_fwloader if you're building from source...

Regards,
Jon
Attachments
flash_chips.patch
patch for additional flash chips
(596 Bytes) Downloaded 432 times
jone
Jr. Member
Jr. Member
 
Posts: 64
Joined: Mon Jul 19, 2010 6:55 am

Re: Brand new OLS (boot)loader tool - Windows and Linux

Postby triden » Thu Aug 18, 2011 12:55 pm

ian wrote:Hi triden,
I am unaware of any other chips used in production. May I please ask where this OLS came from?


I purchased my OLS from Gadget Factory. It shows Logic Sniffer v1.04 on the silkscreen.
triden
Newbie
Newbie
 
Posts: 6
Joined: Tue Aug 16, 2011 5:23 pm

Re: Brand new OLS (boot)loader tool - Windows and Linux

Postby triden » Thu Aug 18, 2011 1:09 pm

jone wrote:Untested, but here's a quick patch for ols_fwloader if you're building from source...
Regards,
Jon


Joh,

Thanks for the fast patch update. I recompiled and it now appears to work fine.

sudo ./ols_fwloader -f BOOT -n -P /dev/ttyACM0 -V -w Downloads/ols-0308/OLS_Upgrader/PIC_firmware/OLSv1.firmware.v3.0.hex
Found OLS HW: 1, FW: 3.0, Boot: 2
Found flash: WINBOND W25Q80
OLS switched to bootloader mode
Bootloader version 0.2.2
Bootloader version 0.2.2
Checking flash ... (0x0800 - 0x3c00)
Verified OK! :)

sudo ./ols_fwloader -f APP -P /dev/ttyACM0 -V -t BIN -w Downloads/ols-0308/OLS_Upgrader/FPGAROM/logic_sniffer_3.07-Demon-Core.bit
Found OLS HW: 1, FW: 3.0, Boot: 2
Found flash: WINBOND W25Q80
Checking flash ...
.....................
Verify OK

sudo ./ols_fwloader -P /dev/ttyACM0 -f APP -S
Found OLS HW: 1, FW: 3.0, Boot: 2
Found flash: WINBOND W25Q80
done...
Passed self-test :)
triden
Newbie
Newbie
 
Posts: 6
Joined: Tue Aug 16, 2011 5:23 pm

Re: Brand new OLS (boot)loader tool - Windows and Linux

Postby robots » Thu Aug 18, 2011 3:17 pm

Thanks. I have added these IDs to the github repository.
User avatar
robots
Hero Member
Hero Member
 
Posts: 569
Joined: Sat Dec 05, 2009 11:19 am
Location: CZ/Prague

Re: Brand new OLS (boot)loader tool - Windows and Linux

Postby ian » Fri Aug 19, 2011 1:52 am

Thanks everyone!
User avatar
ian
Crew
Crew
 
Posts: 10803
Joined: Mon Jul 06, 2009 6:14 am

Re: Brand new OLS (boot)loader tool - Windows and Linux

Postby chautygorcy » Thu Apr 26, 2012 1:41 am

Since there are two different crystal configurations out there, it is important to protect that region from overwrite.
chautygorcy
Newbie
Newbie
 
Posts: 2
Joined: Thu Apr 26, 2012 12:49 am

Re: Brand new OLS (boot)loader tool - Windows and Linux

Postby robots » Thu Apr 26, 2012 1:53 am

and you are trying to say?

the tool actually protect you from writing to the Bootloader part(first xx kb), and to the fuse part (last few bytes).
User avatar
robots
Hero Member
Hero Member
 
Posts: 569
Joined: Sat Dec 05, 2009 11:19 am
Location: CZ/Prague

Re: Brand new OLS (boot)loader tool - Windows and Linux

Postby jrsub25 » Mon Jun 18, 2012 12:45 pm

Hello,
I wrote a codeless kext that allows this tool to work under Mac OS X. It also works for all the other firmware loaders for the Diolan-type bootloaders found on the OLS and IRToy. I have only tested it on 10.7.4, but it should work on others.
Attachments
MacOSX_DiolanDeviceDriver.zip
(3.57 KiB) Downloaded 541 times
jrsub25
Newbie
Newbie
 
Posts: 3
Joined: Mon Jun 18, 2012 12:19 pm

Re: Brand new OLS (boot)loader tool - Windows and Linux

Postby ian » Wed Jun 20, 2012 1:34 am

jrsub25,


Thanks for this contribution. Can you please share a little about how it works, I'm not familiar with Mac. I'll add a link to the documentation.
User avatar
ian
Crew
Crew
 
Posts: 10803
Joined: Mon Jul 06, 2009 6:14 am

Re: Brand new OLS (boot)loader tool - Windows and Linux

Postby jrsub25 » Wed Jun 20, 2012 11:52 am

Hi Ian,

In operation, a codeless kext is a bit like udev. When a device in the Diolan bootloader-mode is connected to the Mac, it is matched to the IOUSBHID Driver. Libusb has no way to unmatch this driver and use the generic IOUSBInterface. This leads to errors about "Cannot claim USB device." The DiolanDeviceDriver matches the device with PID, VID, and bcdDevice, giving it the highest probe score, thereby blocking IOUSBHID and using standard IOKit. The driver has no code in it, simply a plist file. By matching to VID, PID, and bcdDevice, it only effects the bootloader mode. There are entries for the OLS and IRToy.

To install:

sudo cp -r {path to the kext}/DiolanDeviceDriver.kext /System/Library/Extensions/

sudo kextutil /System/Library/Extensions/DiolanDeviceDriver.kext

sudo touch /System/Library/Extensions

As a note, those on 32bit systems may have to edit all instances of "com.apple.kpi.iokit" in the plist file to "com.apple.kernel.iokit". Other devices can also be added to the file.
jrsub25
Newbie
Newbie
 
Posts: 3
Joined: Mon Jun 18, 2012 12:19 pm

Re: Brand new OLS (boot)loader tool - Windows and Linux

Postby Bingo » Tue Jul 17, 2012 2:49 pm

Just added a stepguide for building the ols updater on Linux (ubuntu 10.04)
http://www.mikrocontroller.net/topic/26 ... 93#2759493

Direct Link : http://www.mikrocontroller.net/attachme ... pguide.txt

Maybe it helps someone , building the ols_loader from github sources.

/Bingo
Bingo
Newbie
Newbie
 
Posts: 24
Joined: Tue Apr 26, 2011 10:37 am

Previous

Return to Open Bench Logic Sniffer

cron