Hi:
I used u-boot-
[root@a901 u-boot-20040316cvs]# tools/mkimage -n 'linux kernel' \
> -A nios -O linux -T kernel -C none -a 1010000 -e 1010000 \
> -d /opt/cdk4nios/src/u-boot-20040316cvs/linux.bin uimage
Invalid CPU Type - valid names are: alpha, arm, x86, ia64, mips, mips64, ppc, s3 90, sh, sparc, sparc64, m68k
Because my cpu is nios,so my linux kernel can't boot.
I try follow patch.
diff -Naurbx CVS u-boot-2004-10-20 /common/cmd_bootm.c
u-boot-work/common/cmd_bootm.c
---
u-boot-2004-10-20/common/cmd_bootm.c 2004-10-10 17:27:32.000000000
-0400
+++ u-boot-work/common/cmd_bootm.c 2004-11-01 19:14:59.000000000 -0500
@@ -1189,7 +1189,9 @@
case IH_CPU_SPARC: arch = "SPARC"; break;
case IH_CPU_SPARC64: arch = "SPARC 64 Bit"; break;
case IH_CPU_M68K: arch = "M68K"; break;
+ case IH_CPU_NIOS: arch = "Nios"; break;
case IH_CPU_MICROBLAZE: arch = "Microblaze"; break;
+ case IH_CPU_NIOS2: arch = "Nios-II"; break;
default: arch = "Unknown Architecture"; break;
}
diff -Naurbx CVS u-boot-2004-10-20 /tools/mkimage.c
u-boot-work/tools/mkimage.c
---
u-boot-2004-10-20/tools/mkimage.c 2004-07-10 18:36:01.000000000
-0400
+++ u-boot-work/tools/mkimage.c 2004-11-01 19:18:06.000000000 -0500
@@ -86,6 +86,8 @@
{ IH_CPU_MICROBLAZE, "microblaze", "MicroBlaze", },
{ IH_CPU_MIPS, "mips", "MIPS", },
{
IH_CPU_MIPS64, "mips64", "MIPS 64 Bit", },
+ { IH_CPU_NIOS, "nios", "Nios", },
+ { IH_CPU_NIOS2, "nios2", "Nios-II", },
{ IH_CPU_PPC, "ppc", "PowerPC", },
{ IH_CPU_S390, "s390", "IBM S390", },
{ IH_CPU_SH, "sh", "SuperH", },
When I boot linux image to my target board, it have error messages.
Like that:
DK
Using MAC Address 08:00:3E:26:
TFTP from server 192.168.2.16; our IP address is 192.168.2.21
Filename 'image.bin'.
Load address: 0x1010000
Loading: T invalid RARP header
#################################################################
#################################################################
#################################################################
####
done
Bytes transferred = 1015616 (f
DK
DK
## Checking Image at 00600000 ...
Image Name: linux kernel
Image Type: Nios Linux Kernel Image (uncompressed)
Data Size: 1015552 Bytes = 991.8 kB
Load Address: 01010000
Entry Point: 01010000
Verifying Checksum ... OK
DK
## Booting image at 00600000 ...
Image Name: linux kernel
Image Type: Nios Linux Kernel Image (uncompressed)
Data Size: 1015552 Bytes = 991.8 kB
Load Address: 01010000
Entry Point: 01010000
Verifying Checksum ... OK
Unimplemented compression type 39
DK
Have anyone can tell me how to do
Ps:u-boot version:U-Boot
my name is Bruce
my e-mail: lan_chia_fan@yahoo.com.tw