diff --git a/inflash/README b/inflash/README index d058a99..ca5b04b 100644 --- a/inflash/README +++ b/inflash/README @@ -16,9 +16,18 @@ as published by the Free Software Foundation; either version Build Requirements: libusb-dev, libconfuse-dev -To run inflash you need device stage 1 (fw.bin), stage 2 (usb_boot.bin) -and usb_boot.cfg for device configuration. +Build and Installation: + ./autogen.sh + ./configure + make + make install + *) make install will install the 'inflash' binary to /usr/bin/inflash + and the stage 1 and 2 bootloaders as well as inflash.cfg configuration + file into /usr/share/inflash -sudo ./inflash -c "boot" -sudo ./inflash -c "nprog 0 u-boot-nand.bin 0 0 -n" -sudo ./inflash -c "nprog 2048 uImage 0 0 -n" +Configuration file: /usr/share/inflash/inflash.cfg + +Examples: + sudo inflash -c "boot" + sudo inflash -c "nprog 0 u-boot-nand.bin 0 0 -n" + sudo inflash -c "nprog 2048 uImage 0 0 -n" diff --git a/inflash/src/Makefile.am b/inflash/src/Makefile.am index e2752b2..e4d8bc1 100644 --- a/inflash/src/Makefile.am +++ b/inflash/src/Makefile.am @@ -13,7 +13,7 @@ prefix = /usr datadir = /usr/share/inflash data_DATA = ../xburst_stage1/xburst_stage1.bin ../xburst_stage2/xburst_stage2.bin \ - usb_boot.cfg + inflash.cfg EXTRA_DIST = $(datadir) ../xburst_stage1/xburst_stage1.bin: diff --git a/inflash/src/usb_boot.cfg b/inflash/src/inflash.cfg similarity index 69% rename from inflash/src/usb_boot.cfg rename to inflash/src/inflash.cfg index a669e7a..1d343ca 100644 --- a/inflash/src/usb_boot.cfg +++ b/inflash/src/inflash.cfg @@ -1,23 +1,17 @@ -/* - * create nand flash image for pavo board - * - * Copyright (C) 2009 xiangfu - * - * 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 or - * (at your option) version 3 of the License. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, - * MA 02111-1307 USA - */ +# +# inflash configuration file +# +# Utility to respond to Ingenic XBurst USB boot protocol, provide +# initial boot stages and ability to access NAND on device. +# +# Authors: Xiangfu Liu +# Marek Lindner +# +# 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 +# 3 of the License, or (at your option) any later version. +# # [PLL] EXTCLK = 12 #Define the external crystal in MHz diff --git a/inflash/src/ingenic_cfg.h b/inflash/src/ingenic_cfg.h index 1a18f02..3ea5b01 100644 --- a/inflash/src/ingenic_cfg.h +++ b/inflash/src/ingenic_cfg.h @@ -12,7 +12,7 @@ #include "usb_boot_defines.h" -#define CONFIG_FILE_PATH "/usr/share/inflash/usb_boot.cfg" +#define CONFIG_FILE_PATH "/usr/share/inflash/inflash.cfg" int hand_init_def(struct hand *hand); int check_dump_cfg(struct hand *hand);