120-iconnect.patch 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. --- a/include/configs/iconnect.h
  2. +++ b/include/configs/iconnect.h
  3. @@ -59,30 +59,29 @@
  4. #define CONFIG_ENV_IS_NOWHERE
  5. #endif
  6. #define CONFIG_ENV_SIZE 0x20000
  7. -#define CONFIG_ENV_OFFSET 0x80000
  8. +#define CONFIG_ENV_OFFSET 0xe0000
  9. /*
  10. * Default environment variables
  11. */
  12. #define CONFIG_BOOTCOMMAND \
  13. "setenv bootargs ${console} ${mtdparts} ${bootargs_root}; " \
  14. - "ubi part rootfs; " \
  15. - "ubifsmount ubi:rootfs; " \
  16. - "ubifsload 0x800000 ${kernel}; " \
  17. + "ubi part ubi; " \
  18. + "ubi read 0x800000 kernel; " \
  19. "bootm 0x800000"
  20. #define CONFIG_MTDPARTS \
  21. - "mtdparts=orion_nand:" \
  22. - "0x80000@0x0(uboot)," \
  23. - "0x20000@0x80000(uboot_env)," \
  24. - "-@0xa0000(rootfs)\0"
  25. + "mtdparts=orion_nand:" \
  26. + "0xe0000@0x0(uboot)," \
  27. + "0x20000@0xe0000(uboot_env)," \
  28. + "0x100000@0x100000(second_stage_uboot)," \
  29. + "-@0x200000(ubi)\0"
  30. #define CONFIG_EXTRA_ENV_SETTINGS \
  31. "console=console=ttyS0,115200\0" \
  32. "mtdids=nand0=orion_nand\0" \
  33. "mtdparts="CONFIG_MTDPARTS \
  34. - "kernel=/boot/uImage\0" \
  35. - "bootargs_root=noinitrd ubi.mtd=2 root=ubi0:rootfs rootfstype=ubifs\0"
  36. + "bootargs_root=\0"
  37. /*
  38. * Ethernet driver configuration
  39. --- a/configs/iconnect_defconfig
  40. +++ b/configs/iconnect_defconfig
  41. @@ -7,6 +7,7 @@ CONFIG_SYS_PROMPT="iconnect => "
  42. # CONFIG_CMD_FLASH is not set
  43. CONFIG_CMD_USB=y
  44. # CONFIG_CMD_SETEXPR is not set
  45. +CONFIG_CMD_DHCP=y
  46. CONFIG_CMD_MII=y
  47. CONFIG_CMD_PING=y
  48. CONFIG_CMD_EXT2=y