140-pogoplug_e02.patch 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. --- a/include/configs/pogo_e02.h
  2. +++ b/include/configs/pogo_e02.h
  3. @@ -63,23 +63,35 @@
  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 root; " \
  17. + "ubifsmount ubi:rootfs; " \
  18. + "ubifsload 0x800000 ${kernel}; " \
  19. + "ubifsload 0x700000 ${fdt}; " \
  20. + "ubifsumount; " \
  21. + "fdt addr 0x700000; fdt resize; fdt chosen; " \
  22. + "bootz 0x800000 - 0x700000"
  23. +
  24. +#define CONFIG_MTDPARTS \
  25. + "mtdparts=orion_nand:" \
  26. + "0xe0000@0x0(uboot)," \
  27. + "0x20000@0xe0000(uboot_env)," \
  28. + "0x100000@0x100000(second_stage_uboot)," \
  29. + "-@0x200000(root)\0"
  30. #define CONFIG_EXTRA_ENV_SETTINGS \
  31. - "mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage)," \
  32. - "32M(rootfs),-(data)\0"\
  33. - "mtdids=nand0=orion_nand\0"\
  34. - "bootargs_console=console=ttyS0,115200\0" \
  35. - "bootcmd_usb=usb start; ext2load usb 0:1 0x00800000 /uImage; " \
  36. - "ext2load usb 0:1 0x01100000 /uInitrd\0"
  37. + "console=console=ttyS0,115200\0" \
  38. + "mtdids=nand0=orion_nand\0" \
  39. + "mtdparts="CONFIG_MTDPARTS \
  40. + "kernel=/boot/zImage\0" \
  41. + "fdt=/boot/pogo_e02.dtb\0" \
  42. + "bootargs_root=ubi.mtd=3 root=ubi0:rootfs rootfstype=ubifs rw\0"
  43. /*
  44. * Ethernet Driver configuration