diff options
| author | germeier <germeier> | 2002-09-15 12:03:22 +0000 | 
|---|---|---|
| committer | germeier <germeier> | 2002-09-15 12:03:22 +0000 | 
| commit | a9c7d297c5244f6ffc5ac0f977b56f7e19d14cd1 (patch) | |
| tree | 9fcfa9442c1574c9c7dee5b8ff4dd0560888e881 /mpiosh | |
| parent | f8ffc3a54f0f6dce3929b32fb582a77d871e87a3 (diff) | |
| download | mpiosh-a9c7d297c5244f6ffc5ac0f977b56f7e19d14cd1.tar.gz mpiosh-a9c7d297c5244f6ffc5ac0f977b56f7e19d14cd1.tar.bz2 mpiosh-a9c7d297c5244f6ffc5ac0f977b56f7e19d14cd1.zip  | |
added model identification
use 0x80 for external memory on the DMG line
added code to dump first 0x100 sectors of memory
Diffstat (limited to 'mpiosh')
| -rw-r--r-- | mpiosh/callback.c | 20 | ||||
| -rw-r--r-- | mpiosh/callback.h | 3 | ||||
| -rw-r--r-- | mpiosh/mpiosh.c | 5 | 
3 files changed, 23 insertions, 5 deletions
diff --git a/mpiosh/callback.c b/mpiosh/callback.c index cc520d5..ca89a82 100644 --- a/mpiosh/callback.c +++ b/mpiosh/callback.c @@ -2,7 +2,7 @@   *   * Author: Andreas Büsching  <crunchy@tzi.de>   * - * $Id: callback.c,v 1.6 2002/09/14 22:54:41 germeier Exp $ + * $Id: callback.c,v 1.7 2002/09/15 12:03:23 germeier Exp $   *   * Copyright (C) 2001 Andreas Büsching <crunchy@tzi.de>   * @@ -151,9 +151,10 @@ mpiosh_cmd_info(char *args[])    printf("firmware %s\n", info.firmware_id);    printf(" version : %s\n", info.firmware_version);    printf(" date    : %s\n", info.firmware_date); +  printf("model    : %s\n", info.model);    printf("memory\n"); -  printf(" internal: %s\n", info.firmware_mem_internal); -  printf(" external: %s\n", info.firmware_mem_external); +  printf(" internal: %s\n", info.mem_internal); +  printf(" external: %s\n", info.mem_external);  }  void @@ -525,6 +526,19 @@ mpiosh_cmd_switch(char *args[])  }  void +mpiosh_cmd_debug_mem(char *args[]) +{ +   +  MPIOSH_CHECK_CONNECTION_CLOSED; + +  UNUSED(args); +   +  mpio_memory_debug(mpiosh.dev, mpiosh.card); + +} + + +void  mpiosh_cmd_ldir(char *args[])  {    char			dir_buf[NAME_MAX]; diff --git a/mpiosh/callback.h b/mpiosh/callback.h index 622ab00..92642fa 100644 --- a/mpiosh/callback.h +++ b/mpiosh/callback.h @@ -2,7 +2,7 @@   *   * Author: Andreas Büsching  <crunchy@tzi.de>   * - * $Id: callback.h,v 1.2 2002/09/13 15:20:25 crunchy Exp $ + * $Id: callback.h,v 1.3 2002/09/15 12:03:23 germeier Exp $   *   * Copyright (C) 2001 Andreas Büsching <crunchy@tzi.de>   * @@ -46,6 +46,7 @@ void mpiosh_cmd_dump(char *args[]);  void mpiosh_cmd_free(char *args[]);  void mpiosh_cmd_format(char *args[]);  void mpiosh_cmd_switch(char *args[]); +void mpiosh_cmd_debug_mem(char *args[]);  /* local command callbacks */  void mpiosh_cmd_ldir(char *args[]); diff --git a/mpiosh/mpiosh.c b/mpiosh/mpiosh.c index 098adaa..30a773c 100644 --- a/mpiosh/mpiosh.c +++ b/mpiosh/mpiosh.c @@ -2,7 +2,7 @@  /*    * - * $Id: mpiosh.c,v 1.10 2002/09/14 23:34:49 crunchy Exp $ + * $Id: mpiosh.c,v 1.11 2002/09/15 12:03:23 germeier Exp $   *   * Author: Andreas Büsching  <crunchy@tzi.de>   * @@ -124,6 +124,9 @@ mpiosh_cmd_t commands[] = {    { "lmkdir", NULL,      "create a local directory",      mpiosh_cmd_lmkdir }, +  { "debug_memory", NULL, +    "dump the first 0x100 of the selected memory card", +    mpiosh_cmd_debug_mem },    { NULL, NULL, NULL, NULL }  };  | 
