]> git.sur5r.net Git - u-boot/blobdiff - common/cmd_bootm.c
Merge branch 'new-image' of git://www.denx.de/git/u-boot-testing
[u-boot] / common / cmd_bootm.c
index 789ee03387e2f80b06a3ec7baaca2d8b2a63cb7f..9e5ce4b38fc96228a942e968c020679e15c53aeb 100644 (file)
@@ -427,6 +427,17 @@ static int fit_check_kernel (const void *fit, int os_noffset, int verify)
        }
        show_boot_progress (105);
 
+#ifdef CONFIG_LOGBUFFER
+#ifndef CONFIG_ALT_LB_ADDR
+       kbd=gd->bd;
+       /* Prevent initrd from overwriting logbuffer */
+       if (initrd_high < (kbd->bi_memsize-LOGBUFF_LEN-LOGBUFF_OVERHEAD))
+               initrd_high = kbd->bi_memsize-LOGBUFF_LEN-LOGBUFF_OVERHEAD;
+       debug ("## Logbuffer at 0x%08lX ", kbd->bi_memsize-LOGBUFF_LEN);
+#else
+       debug ("## Logbuffer at 0x%08lX ", CONFIG_ALT_LB_ADDR);
+#endif
+#endif
        if (!fit_image_check_target_arch (fit, os_noffset)) {
                puts ("Unsupported Architecture\n");
                show_boot_progress (-105);