diff -Naurb u-boot-2004-08-24/common/cmd_bdinfo.c u-boot-nios2/common/cmd_bdinfo.c --- u-boot-2004-08-24/common/cmd_bdinfo.c 2004-06-08 20:34:47.000000000 -0400 +++ u-boot-nios2/common/cmd_bdinfo.c 2004-08-24 07:07:54.000000000 -0400 @@ -131,6 +131,39 @@ return 0; } +#elif defined(CONFIG_NIOS2) /* Nios-II */ + +int do_bdinfo ( cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]) +{ + DECLARE_GLOBAL_DATA_PTR; + + int i; + bd_t *bd = gd->bd; + + print_num ("mem start", (ulong)bd->bi_memstart); + print_num ("mem size", (ulong)bd->bi_memsize); + print_num ("flash start", (ulong)bd->bi_flashstart); + print_num ("flash size", (ulong)bd->bi_flashsize); + print_num ("flash offset", (ulong)bd->bi_flashoffset); + +#if defined(CFG_SRAM_BASE) + print_num ("sram start", (ulong)bd->bi_sramstart); + print_num ("sram size", (ulong)bd->bi_sramsize); +#endif + +#if defined(CFG_CMD_NET) + puts ("ethaddr ="); + for (i=0; i<6; ++i) { + printf ("%c%02X", i ? ':' : ' ', bd->bi_enetaddr[i]); + } + puts ("\nip_addr = "); + print_IPaddr (bd->bi_ip_addr); +#endif + + printf ("\nbaudrate = %ld bps\n", bd->bi_baudrate); + + return 0; +} #else /* ! PPC, which leaves MIPS */ diff -Naurb u-boot-2004-08-24/common/cmd_bootm.c u-boot-nios2/common/cmd_bootm.c --- u-boot-2004-08-24/common/cmd_bootm.c 2004-04-18 17:13:43.000000000 -0400 +++ u-boot-nios2/common/cmd_bootm.c 2004-08-24 07:09:47.000000000 -0400 @@ -244,6 +244,8 @@ if (hdr->ih_arch != IH_CPU_M68K) #elif defined(__microblaze__) if (hdr->ih_arch != IH_CPU_MICROBLAZE) +#elif defined(__nios2__) + if (hdr->ih_arch != IH_CPU_NIOS2) #else # error Unknown CPU type #endif