[U-Boot-Users] u-boot error messages
藍佳凡
lan_chia_fan at yahoo.com.tw
Fri Oct 29 18:33:26 CEST 2004
I used u-boot-1.1.1 to boot linux.My target board is ALTERA DK1C20 and cpu is nios.I used tools/mkimage to encapsulate a linux kernel image with header information.But it display some error messages,it like that:
[root at 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.
Index: tools/mkimage.c
===================================================================
RCS file: /cvsroot/u-boot/u-boot/tools/mkimage.c,v
retrieving revision 1.13
diff -p -u -r1.13 mkimage.c
--- tools/mkimage.c 10 Jul 2004 22:36:01 -0000 1.13
+++ tools/mkimage.c 29 Oct 2004 00:01:12 -0000
@@ -86,6 +86,8 @@ table_entry_t arch_name[] = {
{ IH_CPU_MICROBLAZE, "microblaze", "MicroBlaze", },
{ IH_CPU_MIPS, "mips", "MIPS", },
{ IH_CPU_MIPS64, "mips64", "MIPS 64 Bit", },
+ { IH_CPU_NIOS, "nios", "NIOS", },
{ IH_CPU_PPC, "ppc", "PowerPC", },
{ IH_CPU_S390, "s390", "IBM S390", },
{ IH_CPU_SH, "sh", "SuperH", },
When I used tools/mkimage to encapsulate a linux kernel image with header information ,it is ok.
[root at 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 imagenios
Image Name: linux kernel
Created: Fri Oct 29 23:25:54 2004
Image Type: NIOS Linux Kernel Image (uncompressed)
Data Size: 1015552 Bytes = 991.75 kB = 0.97 MB
Load Address: 0x01010000
Entry Point: 0x01010000
[root at a901 u-boot-20040316cvs]#
When I boot linux image to my target board, it have error messages.
Like that:
DK1C20 > imi 200000
## Checking Image at 00200000 ...
Image Name: linux kernel
Image Type: Unknown Architecture Linux Kernel Image (uncompressed)
Data Size: 1015552 Bytes = 991.8 kB
Load Address: 01010000
Entry Point: 01010000
Verifying Checksum ... OK
DK1C20 > bootm 200000
## Booting image at 00200000 ...
Image Name: linux kernel
Image Type: Unknown Architecture Linux Kernel Image (uncompressed)
Data Size: 1015552 Bytes = 991.8 kB
Load Address: 01010000
Entry Point: 01010000
Verifying Checksum ... OK
Unimplemented compression type 39
DK1C20 >
Can you tell me how can I do ?
Much obliged.
Ps:my name is Bruce
my e-mail: lan_chia_fan at yahoo.com.tw
---------------------------------
Yahoo!奇摩Messenger6.0
更即時有趣的即時通訊世界,立即下載最新版!馬上下載
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.denx.de/pipermail/u-boot/attachments/20041030/ee9c960c/attachment.htm
More information about the U-Boot
mailing list