[U-Boot] [PATCH] [v2] powerpc/85xx: introduce 'fdt verify' command

2010-11-17 Thread Timur Tabi
Introduce the 'fdt verify' command, which verifies some of the physical addresses in the device tree. U-Boot uses macros to determine where devices should be located in physical memory, and Linux uses the device tree to determine where the devices are actually located. However, U-Boot does not up

Re: [U-Boot] [PATCH] [v2] powerpc/85xx: introduce 'fdt verify' command

2010-11-17 Thread Wolfgang Denk
Dear Timur Tabi, In message <1290015805-18791-1-git-send-email-ti...@freescale.com> you wrote: > Introduce the 'fdt verify' command, which verifies some of the physical > addresses in the device tree. > + addr = fdt_translate_address(blob, off, reg); > + if (!addr) > +

Re: [U-Boot] [PATCH] [v2] powerpc/85xx: introduce 'fdt verify' command

2010-11-17 Thread Timur Tabi
Wolfgang Denk wrote: >> > struct fdt_header *working_fdt; >> > @@ -436,6 +450,10 @@ int do_fdt (cmd_tbl_t * cmdtp, int flag, int argc, >> > char * const argv[]) >> >else if (strncmp(argv[1], "re", 2) == 0) { >> >fdt_resize(working_fdt); >> >} >> > + /* verify the addresses in