140-pogoplug_e02.patch 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. --- a/include/configs/pogo_e02.h
  2. +++ b/include/configs/pogo_e02.h
  3. @@ -54,23 +54,30 @@
  4. #endif
  5. #define CONFIG_ENV_SIZE 0x20000 /* 128k */
  6. -#define CONFIG_ENV_OFFSET 0x60000 /* env starts here */
  7. +#define CONFIG_ENV_OFFSET 0xe0000 /* env starts here */
  8. /*
  9. * Default environment variables
  10. */
  11. #define CONFIG_BOOTCOMMAND \
  12. - "setenv bootargs $(bootargs_console); " \
  13. - "run bootcmd_usb; " \
  14. - "bootm 0x00800000 0x01100000"
  15. + "setenv bootargs ${console} ${mtdparts} ${bootargs_root}; " \
  16. + "ubi part ubi; " \
  17. + "ubifsmount ubi:rootfs; " \
  18. + "ubi read 0x800000 kernel; " \
  19. + "bootm 0x800000"
  20. +
  21. +#define CONFIG_MTDPARTS \
  22. + "mtdparts=orion_nand:" \
  23. + "0xe0000@0x0(uboot)," \
  24. + "0x20000@0xe0000(uboot_env)," \
  25. + "0x100000@0x100000(second_stage_uboot)," \
  26. + "-@0x200000(ubi)\0"
  27. #define CONFIG_EXTRA_ENV_SETTINGS \
  28. - "mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage)," \
  29. - "32M(rootfs),-(data)\0"\
  30. - "mtdids=nand0=orion_nand\0"\
  31. - "bootargs_console=console=ttyS0,115200\0" \
  32. - "bootcmd_usb=usb start; ext2load usb 0:1 0x00800000 /uImage; " \
  33. - "ext2load usb 0:1 0x01100000 /uInitrd\0"
  34. + "console=console=ttyS0,115200\0" \
  35. + "mtdids=nand0=orion_nand\0" \
  36. + "mtdparts="CONFIG_MTDPARTS \
  37. + "bootargs_root=\0"
  38. /*
  39. * Ethernet Driver configuration