diff --git a/INSTALL b/INSTALL new file mode 100644 index 0000000..46a4b4e --- /dev/null +++ b/INSTALL @@ -0,0 +1,14 @@ +Build Requirements: libusb-dev, libconfuse-dev + +Build and Installation: + ./autogen.sh + ./configure --enable-firmware --prefix=/usr + make + make install + *) make install will install the 'usbboot' and 'xbboot' binary to /usr/bin/usbboot, + target stages to /usr/share/xburst-tools/, usbboot configure file 'usbboot.cfg' + file into /etc/xburst-tools. + +Buile Debian Package: + Please read debian/README.source + diff --git a/debian/.gitignore b/debian/.gitignore index 5f5e5ec..e24651b 100644 --- a/debian/.gitignore +++ b/debian/.gitignore @@ -1,5 +1,6 @@ /xburst_stage1.bin /xburst_stage2.bin +/stage1.bin /changelog.upstream /files diff --git a/debian/get-orig-source.sh b/debian/get-orig-source.sh index 86c1dce..eba3b53 100644 --- a/debian/get-orig-source.sh +++ b/debian/get-orig-source.sh @@ -26,5 +26,5 @@ upstream_version="${release}+${date}" # Generate tarball. echo "packaging $(git rev-parse --short FETCH_HEAD)" -git archive FETCH_HEAD -- usbboot | +git archive FETCH_HEAD -- usbboot xbboot | gzip -n -9 > "xburst-tools_$upstream_version.orig.tar.gz" diff --git a/usbboot/README.usbboot b/usbboot/README.usbboot index b3f6f28..867b4d1 100644 --- a/usbboot/README.usbboot +++ b/usbboot/README.usbboot @@ -24,25 +24,16 @@ Manual: ftp://ftp.ingenic.cn/3sw/00tools/usb_boot/manual/USB_Boot_Tool_Manual_1. Build Requirements: libusb-dev, libconfuse-dev Build and Installation: + cd ../ ./autogen.sh - ./configure + ./configure --enable-firmware --prefix=/usr make make install - *) make install will install the 'usbboot' binary to /usr/bin/usbboot - and the stage 1 and 2 bootloaders as well as usbboot.cfg configuration - file into /etc/xburst-tools - -Buile Package: - install the tools for build package - sudo apt-get install dpkg-dev - sudo apt-get install debhelper - run "dpkg-buildpackage -rfakeroot" to create the package. - -Configuration file: /etc/xburst-tools/usbboot.cfg + *) make install will install the 'usbboot' binary to /usr/bin/usbboot, + the stage 1 and 2 bootloaders to /usr/share/xburst-tools/, + usbboot.cfg configuration file into /etc/xburst-tools. Examples: sudo usbboot (invoking usbboot without options will let you enter commands at the usbboot prompt) sudo usbboot -c "boot" - sudo usbboot -c "nprog 0 u-boot-nand.bin 0 0 -n" - sudo usbboot -c "nprog 2048 uImage 0 0 -n" - + sudo usbboot -c "nprog 0 u-boot-nand.bin 0 0 -n" \ No newline at end of file diff --git a/xbboot/README.xbboot b/xbboot/README.xbboot index a737984..047dbcc 100644 --- a/xbboot/README.xbboot +++ b/xbboot/README.xbboot @@ -16,8 +16,9 @@ as published by the Free Software Foundation; either version Build Requirements: libusb-dev Build and Installation: + cd ../ ./autogen.sh - ./configure --enable-firmware + ./configure --enable-firmware --prefix=/usr make make install *) make install will install the xbboot binary to /usr/bin/xbboot