110-dockstar.patch 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. --- a/include/configs/dockstar.h
  2. +++ b/include/configs/dockstar.h
  3. @@ -17,6 +17,7 @@
  4. #define CONFIG_FEROCEON_88FR131 1 /* CPU Core subversion */
  5. #define CONFIG_KW88F6281 1 /* SOC Name */
  6. #define CONFIG_SKIP_LOWLEVEL_INIT /* disable board lowlevel_init */
  7. +#define CONFIG_SYS_MVFS
  8. /*
  9. * mv-common.h should be defined after CMD configs since it used them
  10. @@ -35,27 +36,22 @@
  11. * it has to be rounded to sector size
  12. */
  13. #define CONFIG_ENV_SIZE 0x20000 /* 128k */
  14. -#define CONFIG_ENV_ADDR 0x80000
  15. -#define CONFIG_ENV_OFFSET 0x80000 /* env starts here */
  16. +#define CONFIG_ENV_OFFSET 0xe0000 /* env starts here */
  17. /*
  18. * Default environment variables
  19. */
  20. #define CONFIG_BOOTCOMMAND \
  21. "setenv bootargs ${console} ${mtdparts} ${bootargs_root}; " \
  22. - "ubi part root; " \
  23. - "ubifsmount ubi:root; " \
  24. - "ubifsload 0x800000 ${kernel}; " \
  25. - "ubifsload 0x1100000 ${initrd}; " \
  26. - "bootm 0x800000 0x1100000"
  27. + "ubi part ubi; " \
  28. + "ubi read 0x800000 kernel; " \
  29. + "bootm 0x800000"
  30. #define CONFIG_EXTRA_ENV_SETTINGS \
  31. - "console=console=ttyS0,115200\0" \
  32. - "mtdids=nand0=orion_nand\0" \
  33. - "mtdparts="CONFIG_MTDPARTS_DEFAULT \
  34. - "kernel=/boot/uImage\0" \
  35. - "initrd=/boot/uInitrd\0" \
  36. - "bootargs_root=ubi.mtd=1 root=ubi0:root rootfstype=ubifs ro\0"
  37. + "console=console=ttyS0,115200\0" \
  38. + "mtdids=nand0=orion_nand\0" \
  39. + "mtdparts="CONFIG_MTDPARTS_DEFAULT "\0" \
  40. + "bootargs_root=\0"
  41. /*
  42. * Ethernet Driver configuration
  43. --- a/configs/dockstar_defconfig
  44. +++ b/configs/dockstar_defconfig
  45. @@ -18,7 +18,7 @@ CONFIG_CMD_PING=y
  46. CONFIG_CMD_FAT=y
  47. CONFIG_CMD_JFFS2=y
  48. CONFIG_CMD_MTDPARTS=y
  49. -CONFIG_MTDPARTS_DEFAULT="mtdparts=orion_nand:1m(uboot),-(root)"
  50. +CONFIG_MTDPARTS_DEFAULT="mtdparts=orion_nand:0xe0000@0x0(uboot),0x20000@0xe0000(uboot_env),0x100000@0x100000(second_stage_uboot),-@0x200000(ubi)"
  51. CONFIG_CMD_UBI=y
  52. CONFIG_ISO_PARTITION=y
  53. CONFIG_OF_CONTROL=y