rockbox/utils/jz4740_tools
Thomas Jarosch 2ee2a9697a Fix crash on uninitialized variable
The WRITE() macro checks if the "fw" pointer
is open upon fwrite() error. Since fw was
not initialized before use, it might crash for non-zero fw.

cppcheck reported.
[utils/jz4740_tools/HXFreplace.c:187]: (error) Uninitialized variable: fw

Change-Id: I558170f9f17828c9fd515a5da36ad8b5cb30a9ad
2015-01-13 21:57:24 +01:00
..
windows_driver Remove superfluous executable bits on a bunch of files. 2011-06-08 14:22:03 +00:00
DLanalyser.c Commit DLanalyser tool, made by Jin Le 2008-10-27 18:45:01 +00:00
HXF2IHFS.c Jz4740 tools: 2008-08-12 16:55:59 +00:00
HXFmerge.c Make sure files which aren't windows-specific use \n line endings only 2010-06-17 16:59:51 +00:00
HXFreplace.c Fix crash on uninitialized variable 2015-01-13 21:57:24 +01:00
HXFsplit.c Make sure files which aren't windows-specific use \n line endings only 2010-06-17 16:59:51 +00:00
IHFSsplit.c * Clean up Jz4740 USB tool a bit 2008-09-03 12:42:14 +00:00
Makefile jz4740_tools : bin2c.c location has changed 2009-06-19 23:00:07 +00:00
README Update jz4740_tools README 2009-04-21 15:41:21 +00:00
jz4740.h Jz4740 Tools: 2008-07-03 12:17:56 +00:00
jz4740_usbtool.c jz4740 usbtool: Fix undefined behavior in set_reg() 2015-01-04 18:16:44 +01:00

README

*******************************************************************************
   Jz4740 USB tools

  Made by Maurus Cuelenaere for Rockbox
  Copyright (C) 2008
*******************************************************************************

To compile usbtools, you'll need jz_xloader (which can be get at
http://repo.or.cz/w/jz_xloader.git, do
"git clone git://repo.or.cz/jz_xloader.git ." for a clone in the current dir).

When you're on Linux, just type "make linux" to compile all the utilities (make
sure you have libusb-dev installed).
For cleaning: "make clean-linux"

When you're on Windows, install MingW32 and LibUSB-Win32 and edit "Makefile" to
make sure "WIN_DRIVERS_LIBUSB_DIR" is set correctly.
For cleaning: "make clean-win"

When Windows pops up the window when it needs drivers for a "Jz4740 USB Boot
Device" (VID=601A, PID=4740), point it to the windows_driver/ directory.

On Linux there's no driver installation, everything is handled through LibUSB.

That's all!

More info/tools:
  * http://www.rockbox.org/wiki/ChinaChip

 ***************************************************************************
 *             __________               __   ___.
 *   Open      \______   \ ____   ____ |  | _\_ |__   _______  ___
 *   Source     |       _//  _ \_/ ___\|  |/ /| __ \ /  _ \  \/  /
 *   Jukebox    |    |   (  <_> )  \___|    < | \_\ (  <_> > <  <
 *   Firmware   |____|_  /\____/ \___  >__|_ \|___  /\____/__/\_ \
 *                     \/            \/     \/    \/            \/
 * $Id$
 *
 * 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 software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
 * KIND, either express or implied.
 *
 ****************************************************************************