1
0
mirror of git://projects.qi-hardware.com/xburst-tools.git synced 2024-11-25 23:45:18 +02:00

rename inflash to xburst-tools

Signed-off-by: Xiangfu Liu <xiangfu.z@gmail.com>
This commit is contained in:
Xiangfu Liu 2009-06-29 23:17:29 +08:00
parent 476093fe0e
commit d5a74247a2
58 changed files with 48 additions and 48 deletions

View File

@ -1,5 +0,0 @@
inflash (20090630-1) unstable; urgency=low
* Initial release (Closes: #nnnn) <nnnn is the bug number of your ITP>
-- xiangfu <xiangfu.z@gmail.com> Mon, 29 Jun 2009 16:24:32 +0800

View File

@ -1,3 +0,0 @@
usr/bin
usr/share/inflash
usr/man/man1

View File

@ -1,4 +1,4 @@
* inflash ChangeLog * xburst-tools ChangeLog
25Jun2009 [WS] some cleanup in directory structure and build system 25Jun2009 [WS] some cleanup in directory structure and build system

View File

@ -1,5 +1,5 @@
* *
* inflash * xburst-tools
* *
* Utility to respond to Ingenic XBurst USB boot protocol, provide * Utility to respond to Ingenic XBurst USB boot protocol, provide
* initial boot stages and ability to access NAND on device. * initial boot stages and ability to access NAND on device.
@ -14,7 +14,7 @@ modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version as published by the Free Software Foundation; either version
3 of the License, or (at your option) any later version. 3 of the License, or (at your option) any later version.
inflash is the Linux version of a Windows utility from Ingenic called 'usbboot'. xburst-tools is the Linux version of a Windows utility from Ingenic called 'usbboot'.
Homepage: http://www.ingenic.cn/eng/productServ/kfyd/compiler/pffaqContents.aspx#questionAnchor8 Homepage: http://www.ingenic.cn/eng/productServ/kfyd/compiler/pffaqContents.aspx#questionAnchor8
Manual: ftp://ftp.ingenic.cn/3sw/00tools/usb_boot/manual/USB_Boot_Tool_Manual_1.4_EN.pdf Manual: ftp://ftp.ingenic.cn/3sw/00tools/usb_boot/manual/USB_Boot_Tool_Manual_1.4_EN.pdf
@ -25,14 +25,14 @@ Build and Installation:
./configure ./configure
make make
make install make install
*) make install will install the 'inflash' binary to /usr/bin/inflash *) make install will install the 'xburst-tools' binary to /usr/bin/xburst-tools
and the stage 1 and 2 bootloaders as well as inflash.cfg configuration and the stage 1 and 2 bootloaders as well as xburst-tools.cfg configuration
file into /usr/share/inflash file into /usr/share/xburst-tools
Configuration file: /usr/share/inflash/inflash.cfg Configuration file: /usr/share/xburst-tools/xburst-tools.cfg
Examples: Examples:
sudo inflash (invoking inflash without options will let you enter commands at the inflash prompt) sudo xburst-tools (invoking xburst-tools without options will let you enter commands at the xburst-tools prompt)
sudo inflash -c "boot" sudo xburst-tools -c "boot"
sudo inflash -c "nprog 0 u-boot-nand.bin 0 0 -n" sudo xburst-tools -c "nprog 0 u-boot-nand.bin 0 0 -n"
sudo inflash -c "nprog 2048 uImage 0 0 -n" sudo xburst-tools -c "nprog 2048 uImage 0 0 -n"

View File

@ -2,7 +2,7 @@
# Process this file with autoconf to produce a configure script. # Process this file with autoconf to produce a configure script.
AC_PREREQ(2.63) AC_PREREQ(2.63)
AC_INIT([inflash], [0.1]) AC_INIT([xburst-tools], [0.1])
AC_CONFIG_AUX_DIR(m4) AC_CONFIG_AUX_DIR(m4)
AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION) AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION)
AM_CONFIG_HEADER([config.h]) AM_CONFIG_HEADER([config.h])

View File

@ -0,0 +1,5 @@
xburst-tools (20090630-1) unstable; urgency=low
* Initial release (Closes: #nnnn) <nnnn is the bug number of your ITP>
-- xiangfu <xiangfu.z@gmail.com> Mon, 29 Jun 2009 16:27:20 +0800

View File

@ -1,4 +1,4 @@
Source: inflash Source: xburst-tools
Section: misc Section: misc
Priority: extra Priority: extra
Maintainer: xiangfu liu <xiangfu.z@gmail.com> Maintainer: xiangfu liu <xiangfu.z@gmail.com>
@ -6,11 +6,11 @@ Build-Depends: debhelper (>= 7), libusb-dev, libconfuse-dev
Standards-Version: 3.8.0 Standards-Version: 3.8.0
Homepage: http://code.google.com/p/pi-project Homepage: http://code.google.com/p/pi-project
Package: inflash Package: xburst-tools
Architecture: any Architecture: any
Depends: ${shlibs:Depends}, libusb, libconfuse Depends: ${shlibs:Depends}, libusb, libconfuse
Description: host tool for Ingenic XBurst CPU USB boot and NAND flash access. Description: host tool for Ingenic XBurst CPU USB boot and NAND flash access.
inflash is a host tool for Ingenic XBurst CPU device usb boot. xburst-tools is a host tool for Ingenic XBurst CPU device usb boot.
it's can flash bootloader, kernel, rootfs to Ingenic XBurst CPU it's can flash bootloader, kernel, rootfs to Ingenic XBurst CPU
device nand. also have some test function for Ingenic XBurst CPU device nand. also have some test function for Ingenic XBurst CPU
device. device.

3
xburst-tools/debian/dirs Normal file
View File

@ -0,0 +1,3 @@
usr/bin
usr/share/xburst-tools
usr/man/man1

View File

@ -41,7 +41,7 @@ build-stamp: config.status
# Add here commands to compile the package. # Add here commands to compile the package.
$(MAKE) $(MAKE)
#docbook-to-man debian/inflash.sgml > inflash.1 #docbook-to-man debian/xburst-tools.sgml > xburst-tools.1
touch $@ touch $@
@ -62,8 +62,8 @@ install: build
dh_prep dh_prep
dh_installdirs dh_installdirs
# Add here commands to install the package into debian/inflash. # Add here commands to install the package into debian/xburst-tools.
$(MAKE) DESTDIR=$(CURDIR)/debian/inflash install $(MAKE) DESTDIR=$(CURDIR)/debian/xburst-tools install
# Build architecture-independent files here. # Build architecture-independent files here.

View File

@ -4,21 +4,21 @@ BUILD_BRANCH := $(shell git branch | grep ^\* | cut -d' ' -f2)
BUILD_HEAD := $(shell git show --pretty=oneline | head -n1 | cut -d' ' -f1 | cut -b1-16) BUILD_HEAD := $(shell git show --pretty=oneline | head -n1 | cut -d' ' -f1 | cut -b1-16)
BUILD_VERSION := ${BUILD_BRANCH}_${BUILD_HEAD} BUILD_VERSION := ${BUILD_BRANCH}_${BUILD_HEAD}
inflash_version.h: xburst_tools_version.h:
echo -e '#ifndef INFLASH_VERSION' \ echo -e '#ifndef XBURST_TOOLS_VERSION' \
'\n#define INFLASH_VERSION "20090628-1"' \ '\n#define XBURST_TOOLS_VERSION "20090630-1"' \
'\n#endif' > inflash_version.h '\n#endif' > xburst_tools_version.h
BUILT_SOURCES = inflash_version.h BUILT_SOURCES = xburst_tools_version.h
bin_PROGRAMS = inflash bin_PROGRAMS = xburst_tools
inflash_SOURCES = cmd.c command_line.c ingenic_cfg.c \ xburst_tools_SOURCES = cmd.c command_line.c ingenic_cfg.c \
ingenic_usb.c main.c ingenic_usb.c main.c
prefix = /usr prefix = /usr
datadir = /usr/share/inflash datadir = /usr/share/xburst_tools
data_DATA = ../xburst_stage1/xburst_stage1.bin \ data_DATA = ../xburst_stage1/xburst_stage1.bin \
../xburst_stage2/xburst_stage2.bin \ ../xburst_stage2/xburst_stage2.bin \
inflash.cfg xburst_tools.cfg
EXTRA_DIST = $(datadir) EXTRA_DIST = $(datadir)
../xburst_stage1/xburst_stage1.bin: ../xburst_stage1/xburst_stage1.bin:

View File

@ -13,7 +13,7 @@
#include "usb_boot_defines.h" #include "usb_boot_defines.h"
#include "ingenic_usb.h" #include "ingenic_usb.h"
#include "cmd.h" #include "cmd.h"
#include "inflash_version.h" #include "xburst_tools_version.h"
extern struct nand_in nand_in; extern struct nand_in nand_in;
extern struct sdram_in sdram_in; extern struct sdram_in sdram_in;
@ -97,7 +97,7 @@ static int handle_help(void)
static int handle_version(void) static int handle_version(void)
{ {
printf(" USB Boot Software current version: %s\n", INFLASH_VERSION); printf(" USB Boot Software current version: %s\n", XBURST_TOOLS_VERSION);
return 1; return 1;
} }
@ -284,7 +284,7 @@ int command_handle(char *buf)
debug_go(); debug_go();
break; break;
case 16: /* exit */ case 16: /* exit */
printf(" exiting inflash software\n"); printf(" exiting xburst-tools software\n");
return -1; /* return -1 to break the main.c while return -1; /* return -1 to break the main.c while
* then run usb_ingenic_cleanup*/ * then run usb_ingenic_cleanup*/
/*case 17: /*case 17:

View File

@ -12,7 +12,7 @@
#include "usb_boot_defines.h" #include "usb_boot_defines.h"
#define CONFIG_FILE_PATH "/usr/share/inflash/inflash.cfg" #define CONFIG_FILE_PATH "/usr/share/xburst_tools/xburst_tools.cfg"
int hand_init_def(struct hand *hand); int hand_init_def(struct hand *hand);
int check_dump_cfg(struct hand *hand); int check_dump_cfg(struct hand *hand);

View File

@ -37,8 +37,8 @@
#define VENDOR_ID 0x601a #define VENDOR_ID 0x601a
#define PRODUCT_ID 0x4740 #define PRODUCT_ID 0x4740
#define STAGE1_FILE_PATH "/usr/share/inflash/xburst_stage1.bin" #define STAGE1_FILE_PATH "/usr/share/xburst_tools/xburst_stage1.bin"
#define STAGE2_FILE_PATH "/usr/share/inflash/xburst_stage2.bin" #define STAGE2_FILE_PATH "/usr/share/xburst_tools/xburst_stage2.bin"
#define ARRAY_SIZE(a) (sizeof(a) / sizeof(a[0])) #define ARRAY_SIZE(a) (sizeof(a) / sizeof(a[0]))

View File

@ -12,7 +12,7 @@
#include <getopt.h> #include <getopt.h>
#include <unistd.h> #include <unistd.h>
#include <string.h> #include <string.h>
#include "inflash_version.h" #include "xburst_tools_version.h"
#include "command_line.h" #include "command_line.h"
#include "ingenic_usb.h" #include "ingenic_usb.h"
#include "ingenic_cfg.h" #include "ingenic_cfg.h"
@ -22,18 +22,18 @@ extern struct hand hand;
static void help(void) static void help(void)
{ {
printf("Usage: inflash [options] ...(must run as root)\n" printf("Usage: xburst-tools [options] ...(must run as root)\n"
" -h --help\t\t\tPrint this help message\n" " -h --help\t\t\tPrint this help message\n"
" -v --version\t\t\tPrint the version number\n" " -v --version\t\t\tPrint the version number\n"
" -c --command\t\t\tDirect run the commands, split by ';'\n" " -c --command\t\t\tDirect run the commands, split by ';'\n"
" <run without options to enter commands via inflash prompt>\n\n" " <run without options to enter commands via xburst-tools prompt>\n\n"
"Report bugs to <xiangfu.z@gmail.com>.\n" "Report bugs to <xiangfu.z@gmail.com>.\n"
); );
} }
static void print_version(void) static void print_version(void)
{ {
printf("inflash version: %s\n", INFLASH_VERSION); printf("xburst-tools version: %s\n", XBURST_TOOLS_VERSION);
} }
static struct option opts[] = { static struct option opts[] = {
@ -50,7 +50,7 @@ int main(int argc, char **argv)
char com_buf[256] = {0}; char com_buf[256] = {0};
char *cmdpt; char *cmdpt;
printf("inflash - Ingenic XBurst USB Boot Utility\n" printf("xburst-tools - Ingenic XBurst USB Boot Utility\n"
"(c) 2009 Ingenic Semiconductor Inc., Qi Hardware Inc., Xiangfu Liu, Marek Lindner\n" "(c) 2009 Ingenic Semiconductor Inc., Qi Hardware Inc., Xiangfu Liu, Marek Lindner\n"
"This program is Free Software and comes with ABSOLUTELY NO WARRANTY.\n\n"); "This program is Free Software and comes with ABSOLUTELY NO WARRANTY.\n\n");
@ -106,7 +106,7 @@ int main(int argc, char **argv)
} }
while (1) { while (1) {
printf("inflash :> "); printf("xburst-tools :> ");
cptr = fgets(com_buf, 256, stdin); cptr = fgets(com_buf, 256, stdin);
if (cptr == NULL) if (cptr == NULL)
continue; continue;

View File

@ -1,5 +1,5 @@
# #
# inflash configuration file # xburst-tools configuration file
# #
# Utility to respond to Ingenic XBurst USB boot protocol, provide # Utility to respond to Ingenic XBurst USB boot protocol, provide
# initial boot stages and ability to access NAND on device. # initial boot stages and ability to access NAND on device.