Holger Brunck | ff75d19 | 2023-01-24 09:42:40 +0100 | [diff] [blame] | 1 | #define BOOTFLASH_START 0xF0000000 |
| 2 | |
Holger Brunck | 1c7917e | 2022-12-02 18:22:38 +0100 | [diff] [blame] | 3 | arch=ppc_82xx |
| 4 | bootm_mapsize=CONFIG_SYS_BOOTM_LEN |
| 5 | checkfdt=true |
| 6 | set_fdthigh=true |
| 7 | |
| 8 | update=protect off BOOTFLASH_START +${filesize} && |
| 9 | erase BOOTFLASH_START +${filesize} && |
| 10 | cp.b ${load_addr_r} BOOTFLASH_START ${filesize} && |
| 11 | protect on BOOTFLASH_START +${filesize} |
| 12 | |
| 13 | newenv=prot off CONFIG_ENV_ADDR +0x40000 && |
| 14 | era CONFIG_ENV_ADDR +0x40000 |
| 15 | |
| 16 | unlock=yes |