Advertisement
Guest User

Untitled

a guest
Aug 9th, 2011
329
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.21 KB | None | 0 0
  1. Index: firmware/export/config/gigabeats.h
  2. ===================================================================
  3. --- firmware/export/config/gigabeats.h (revision 30260)
  4. +++ firmware/export/config/gigabeats.h (working copy)
  5. @@ -75,6 +75,8 @@
  6. that needs spinups and can cause skips when shaked */
  7. #define HAVE_DISK_STORAGE
  8.  
  9. +#define HAVE_MULTIVOLUME
  10. +
  11. /* Define this if you have a software controlled poweroff */
  12. #define HAVE_SW_POWEROFF
  13.  
  14. Index: firmware/usbstack/usb_storage.c
  15. ===================================================================
  16. --- firmware/usbstack/usb_storage.c (revision 30260)
  17. +++ firmware/usbstack/usb_storage.c (working copy)
  18. @@ -1256,5 +1256,5 @@
  19. tb.inquiry->Versions = 4; /* SPC-2 */
  20. tb.inquiry->Format = 2; /* SPC-2/3 inquiry format */
  21.  
  22. - tb.inquiry->DeviceTypeModifier = DEVICE_REMOVABLE;
  23. + tb.inquiry->DeviceTypeModifier = 0;
  24. }
  25. Index: firmware/target/arm/imx31/gigabeat-s/usb-target.h
  26. ===================================================================
  27. --- firmware/target/arm/imx31/gigabeat-s/usb-target.h (revision 30260)
  28. +++ firmware/target/arm/imx31/gigabeat-s/usb-target.h (working copy)
  29. @@ -33,14 +33,6 @@
  30. /** Sector read/write filters **/
  31.  
  32. /* Filter some things in the MBR - see usb-gigabeat-s.c */
  33. -void usb_fix_mbr(unsigned char *mbr);
  34. -#define USBSTOR_READ_SECTORS_FILTER() \
  35. - ({ if (cur_cmd.sector == 0) \
  36. - usb_fix_mbr(cur_cmd.data[cur_cmd.data_select]); \
  37. - 0; })
  38.  
  39. -/* Disallow MBR writes entirely since it was "fixed" in usb_fix_mbr */
  40. -#define USBSTOR_WRITE_SECTORS_FILTER() \
  41. - ({ cur_cmd.sector != 0 ? 0 : -1; })
  42.  
  43. #endif /* USB_TARGET */
  44. Index: firmware/common/disk.c
  45. ===================================================================
  46. --- firmware/common/disk.c (revision 30260)
  47. +++ firmware/common/disk.c (working copy)
  48. @@ -49,6 +49,7 @@
  49. static const unsigned char fat_partition_types[] = {
  50. 0x0b, 0x1b, /* FAT32 + hidden variant */
  51. 0x0c, 0x1c, /* FAT32 (LBA) + hidden variant */
  52. + 0xff, /* added to support extra-well hidden partitions on gigabeat S */
  53. #ifdef HAVE_FAT16SUPPORT
  54. 0x04, 0x14, /* FAT16 <= 32MB + hidden variant */
  55. 0x06, 0x16, /* FAT16 > 32MB + hidden variant */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement