150-goflexhome.patch 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. --- a/include/configs/goflexhome.h
  2. +++ b/include/configs/goflexhome.h
  3. @@ -66,17 +66,15 @@
  4. */
  5. #define CONFIG_BOOTCOMMAND \
  6. "setenv bootargs ${console} ${mtdparts} ${bootargs_root}; " \
  7. - "ubi part root; " \
  8. - "ubifsmount ubi:root; " \
  9. - "ubifsload 0x800000 ${kernel}; " \
  10. + "ubi part ubi; " \
  11. + "ubi read 0x800000 kernel; " \
  12. "bootm 0x800000"
  13. #define CONFIG_EXTRA_ENV_SETTINGS \
  14. "console=console=ttyS0,115200\0" \
  15. "mtdids=nand0=orion_nand\0" \
  16. - "mtdparts="CONFIG_MTDPARTS_DEFAULT \
  17. - "kernel=/boot/uImage\0" \
  18. - "bootargs_root=ubi.mtd=root root=ubi0:root rootfstype=ubifs ro\0"
  19. + "mtdparts="CONFIG_MTDPARTS_DEFAULT "\0" \
  20. + "bootargs_root=\0"
  21. /*
  22. * Ethernet Driver configuration
  23. --- a/configs/goflexhome_defconfig
  24. +++ b/configs/goflexhome_defconfig
  25. @@ -23,7 +23,7 @@ CONFIG_CMD_EXT4=y
  26. CONFIG_CMD_JFFS2=y
  27. CONFIG_CMD_MTDPARTS=y
  28. CONFIG_MTDIDS_DEFAULT="nand0=orion_nand"
  29. -CONFIG_MTDPARTS_DEFAULT="mtdparts=orion_nand:1m(uboot),6M(uImage),-(root)"
  30. +CONFIG_MTDPARTS_DEFAULT="mtdparts=orion_nand:1m(uboot),255m(ubi)"
  31. CONFIG_CMD_UBI=y
  32. CONFIG_ISO_PARTITION=y
  33. CONFIG_OF_CONTROL=y