110-dockstar.patch 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  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,58 @@
  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 root; " \
  82. + "ubifsmount ubi:rootfs; " \
  83. + "ubifsload 0x800000 ${kernel}; " \
  84. + "ubifsload 0x700000 ${fdt}; " \
  85. + "ubifsumount; " \
  86. + "fdt addr 0x700000; fdt resize; fdt chosen; " \
  87. + "bootz 0x800000 - 0x700000"
  88. +
  89. +#define CONFIG_MTDPARTS \
  90. + "mtdparts=orion_nand:" \
  91. + "0xe0000@0x0(uboot)," \
  92. + "0x20000@0xe0000(uboot_env)," \
  93. + "0x100000@0x100000(second_stage_uboot)," \
  94. + "-@0x200000(root)\0"
  95. #define CONFIG_EXTRA_ENV_SETTINGS \
  96. - "console=console=ttyS0,115200\0" \
  97. - "mtdids=nand0=orion_nand\0" \
  98. - "mtdparts="CONFIG_MTDPARTS \
  99. - "kernel=/boot/uImage\0" \
  100. - "initrd=/boot/uInitrd\0" \
  101. - "bootargs_root=ubi.mtd=1 root=ubi0:root rootfstype=ubifs ro\0"
  102. + "console=console=ttyS0,115200\0" \
  103. + "mtdids=nand0=orion_nand\0" \
  104. + "mtdparts="CONFIG_MTDPARTS \
  105. + "kernel=/boot/zImage\0" \
  106. + "fdt=/boot/dockstar.dtb\0" \
  107. + "bootargs_root=ubi.mtd=3 root=ubi0:rootfs rootfstype=ubifs rw\0"
  108. /*
  109. - * Ethernet Driver configuration
  110. + * Ethernet driver configuration
  111. */
  112. #ifdef CONFIG_CMD_NET
  113. #define CONFIG_MVGBE_PORTS {1, 0} /* enable port 0 only */
  114. @@ -102,7 +110,7 @@
  115. #define CONFIG_CMD_UBI
  116. #define CONFIG_CMD_UBIFS
  117. #define CONFIG_RBTREE
  118. -#define CONFIG_MTD_DEVICE /* needed for mtdparts commands */
  119. +#define CONFIG_MTD_DEVICE
  120. #define CONFIG_MTD_PARTITIONS
  121. #define CONFIG_CMD_MTDPARTS
  122. #define CONFIG_LZO