110-dockstar.patch 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. --- a/include/configs/dockstar.h
  2. +++ b/include/configs/dockstar.h
  3. @@ -17,20 +17,25 @@
  4. /*
  5. * Version number information
  6. */
  7. -#define CONFIG_IDENT_STRING "\nSeagate FreeAgent DockStar"
  8. +#define CONFIG_IDENT_STRING "Seagate FreeAgent DockStar"
  9. /*
  10. - * High Level Configuration Options (easy to change)
  11. + * High Level Configuration Options
  12. */
  13. -#define CONFIG_FEROCEON_88FR131 1 /* CPU Core subversion */
  14. -#define CONFIG_KW88F6281 1 /* SOC Name */
  15. -#define CONFIG_MACH_DOCKSTAR /* Machine type */
  16. +#define CONFIG_FEROCEON_88FR131 /* CPU Core subversion */
  17. +#define CONFIG_KW88F6281 /* SOC Name */
  18. #define CONFIG_SKIP_LOWLEVEL_INIT /* disable board lowlevel_init */
  19. /*
  20. + * Machine type
  21. + */
  22. +#define CONFIG_MACH_DOCKSTAR
  23. +
  24. +/*
  25. * Commands configuration
  26. */
  27. -#define CONFIG_SYS_NO_FLASH /* Declare no flash (NOR/SPI) */
  28. +#define CONFIG_SYS_NO_FLASH /* declare no flash (NOR/SPI) */
  29. +#define CONFIG_SYS_MVFS
  30. #include <config_cmd_default.h>
  31. #define CONFIG_CMD_DHCP
  32. #define CONFIG_CMD_ENV
  33. @@ -38,55 +43,52 @@
  34. #define CONFIG_CMD_NAND
  35. #define CONFIG_CMD_PING
  36. #define CONFIG_CMD_USB
  37. +
  38. /*
  39. * mv-common.h should be defined after CMD configs since it used them
  40. * to enable certain macros
  41. */
  42. #include "mv-common.h"
  43. -#undef CONFIG_SYS_PROMPT /* previously defined in mv-common.h */
  44. -#define CONFIG_SYS_PROMPT "DockStar> " /* Command Prompt */
  45. +#undef CONFIG_SYS_PROMPT
  46. +#define CONFIG_SYS_PROMPT "dockstar => "
  47. /*
  48. - * Environment variables configurations
  49. + * Environment variables configuration
  50. */
  51. #ifdef CONFIG_CMD_NAND
  52. -#define CONFIG_ENV_IS_IN_NAND 1
  53. -#define CONFIG_ENV_SECT_SIZE 0x20000 /* 128K */
  54. +#define CONFIG_ENV_IS_IN_NAND
  55. +#define CONFIG_ENV_SECT_SIZE 0x20000
  56. #else
  57. -#define CONFIG_ENV_IS_NOWHERE 1 /* if env in SDRAM */
  58. +#define CONFIG_ENV_IS_NOWHERE
  59. #endif
  60. -/*
  61. - * max 4k env size is enough, but in case of nand
  62. - * it has to be rounded to sector size
  63. - */
  64. -#define CONFIG_ENV_SIZE 0x20000 /* 128k */
  65. -#define CONFIG_ENV_ADDR 0x60000
  66. -#define CONFIG_ENV_OFFSET 0x60000 /* env starts here */
  67. +#define CONFIG_ENV_SIZE 0x20000
  68. +#define CONFIG_ENV_OFFSET 0xe0000
  69. /*
  70. * Default environment variables
  71. */
  72. #define CONFIG_BOOTCOMMAND \
  73. "setenv bootargs ${console} ${mtdparts} ${bootargs_root}; " \
  74. - "ubi part root; " \
  75. - "ubifsmount ubi:root; " \
  76. - "ubifsload 0x800000 ${kernel}; " \
  77. - "ubifsload 0x1100000 ${initrd}; " \
  78. - "bootm 0x800000 0x1100000"
  79. -
  80. -#define CONFIG_MTDPARTS "mtdparts=orion_nand:1m(uboot),-(root)\0"
  81. + "ubi part ubi; " \
  82. + "ubi read 0x800000 kernel; " \
  83. + "bootz 0x800000"
  84. +
  85. +#define CONFIG_MTDPARTS \
  86. + "mtdparts=orion_nand:" \
  87. + "0xe0000@0x0(uboot)," \
  88. + "0x20000@0xe0000(uboot_env)," \
  89. + "0x100000@0x100000(second_stage_uboot)," \
  90. + "-@0x200000(ubi)\0"
  91. #define CONFIG_EXTRA_ENV_SETTINGS \
  92. - "console=console=ttyS0,115200\0" \
  93. - "mtdids=nand0=orion_nand\0" \
  94. - "mtdparts="CONFIG_MTDPARTS \
  95. - "kernel=/boot/uImage\0" \
  96. - "initrd=/boot/uInitrd\0" \
  97. - "bootargs_root=ubi.mtd=1 root=ubi0:root rootfstype=ubifs ro\0"
  98. + "console=console=ttyS0,115200\0" \
  99. + "mtdids=nand0=orion_nand\0" \
  100. + "mtdparts="CONFIG_MTDPARTS \
  101. + "bootargs_root=\0"
  102. /*
  103. - * Ethernet Driver configuration
  104. + * Ethernet driver configuration
  105. */
  106. #ifdef CONFIG_CMD_NET
  107. #define CONFIG_MVGBE_PORTS {1, 0} /* enable port 0 only */
  108. @@ -102,7 +110,7 @@
  109. #define CONFIG_CMD_UBI
  110. #define CONFIG_CMD_UBIFS
  111. #define CONFIG_RBTREE
  112. -#define CONFIG_MTD_DEVICE /* needed for mtdparts commands */
  113. +#define CONFIG_MTD_DEVICE
  114. #define CONFIG_MTD_PARTITIONS
  115. #define CONFIG_CMD_MTDPARTS
  116. #define CONFIG_LZO