diff options
author | pancake <pancake@pluna> | 2008-01-14 11:25:08 +0100 |
---|---|---|
committer | pancake <pancake@pluna> | 2008-01-14 11:25:08 +0100 |
commit | 288cad1c2e401e5dfbd029b95f62ca05c85d3d61 (patch) | |
tree | ac2652d1998dc9e641d49e367b3a853b2728b6c8 /src/dump.c | |
parent | 4115aab13d70bbe8300562bcd789cc5bc27c8ded (diff) | |
download | 0xFFFF-288cad1c2e401e5dfbd029b95f62ca05c85d3d61.tar.bz2 |
* Up to 0.3.2
* Add HAVE_USB to config.mk
- Now is possible to build a usb-less version of the flasher
(only for unpacking and so, offline operations)
* Refactor varname. Avoid portability problems:
- reboot -> moboreboot
Diffstat (limited to 'src/dump.c')
-rw-r--r-- | src/dump.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -18,7 +18,6 @@ #include "main.h" #include "hexdump.h" -#include <usb.h> #include <stdio.h> #include <stdlib.h> #include <string.h> @@ -81,8 +80,11 @@ __rf_extract_exit: #include <sys/ioctl.h> #include <sys/types.h> #include <sys/stat.h> -#include <asm/types.h> +//#include <asm/types.h> #include <mtd/mtd-user.h> +#ifndef loff_t +#define loff_t off_t +#endif #define M_RDONLY 0x00000001 #define M_RDRW 0x00000002 @@ -380,6 +382,7 @@ int nanddump(char *mtddev, unsigned long start_addr, unsigned long length, char /* Write out page data */ //if (pretty_print) dump_bytes(readbuf, bs); + write(ofd, readbuf, bs); progressbar(ofs, end_addr); // OOB STUFF // |