-#if defined(CONFIG_OF_LIBFDT)
- if (fdt_chosen(of_flat_tree, initrd_start, initrd_end, 0) < 0) {
- puts ("ERROR: Failed to create the /chosen node, aborting.\nMust RESET board to recover\n");
- do_reset (cmdtp, flag, argc, argv);
- }
-#ifdef CONFIG_OF_HAS_UBOOT_ENV
- if (fdt_env(of_flat_tree) < 0) {
- puts ("ERROR: Failed to create the /u-boot-env node, aborting.\nMust RESET board to recover\n");
- do_reset (cmdtp, flag, argc, argv);
- }
-#endif
-#ifdef CONFIG_OF_HAS_BD_T
- if (fdt_bd_t(of_flat_tree) < 0) {
- puts ("ERROR: Failed to create the /bd_t node, aborting.\nMust RESET board to recover\n");
- do_reset (cmdtp, flag, argc, argv);
- }
-#endif
-#endif /* if defined(CONFIG_OF_LIBFDT) */
-