
Hi All
im trying to use U-boot for i386/AMDSC520 implemetation ... Fixed a lot of files ..
last i had to worry with the implemtation of the mkimage and linux - do_bootm implementation I was not able to start a kernel now at all ..system hangs ..
know reason why ..any hints ? suggestions ..or anyone here how has fixed it ? any help would be very nice !!
best regards
Wolfgang k.
@ Wolfgang Denk : Hallo ! -- wer pflegt eigentlich den i368 code scheint sein jahren nix mehr passiert zu sein und im vergleich zum PPC um jahrhunderte zurück zu liegen :-(( geschweiged das der code so wie er im cvs is auch nur annähernd starten würde ...
---------------------------------------------------------------------------- int enter_realmode(u16 seg, u16 off, struct pt_regs *in, struct pt_regs *out) { printf("before bios_setup...\n");
/* setup out thin bios emulation */ if (bios_setup()) { return -1; }
printf("before realmode_setup...\n"); if (realmode_setup()) { return -1; }
printf("after bios_setup...\n"); in->eip = off; in->xcs = seg; if (3>(in->esp & 0xffff)) { printf("Warning: entering realmode with sp < 4 will fail\n"); }
printf("before memcpy...\n"); memcpy(REALMODE_MAILBOX, in, sizeof(struct pt_regs)); asm("wbinvd\n"); printf("after memcpy...\n");
__asm__ volatile ( "lcall $0x20,%0\n" : : "i" (&realmode_enter) );
asm("wbinvd\n"); memcpy(out, REALMODE_MAILBOX, sizeof(struct pt_regs)); return out->eax;
schould exec of teh kernel start here?????????????????????? }
LOG:
U-Boot 1.0.2 (Apr 28 2004 - 00:01:51)
######################################################### # Adopted for HOPF AMD SC520 Embbeded BOARD # ######################################################### U-Boot code: 08FC0000 -> 08FDF349 data: 03F00000 -> 03F017F3 BSS: 03F017F4 -> 03F0BCBF stack: 03F0BCC0 -> 03F13CBF DRAM Configuration: Bank #0: 00000000 64 MB Bank #0: Micron / Intel 28F640J3A Flash: 16 MB FLASH: 16 MB set_irq(): map INTA to IRQ9 00 11 8086 1209 0200 09 In: serial Out: serial Err: serial Net: i82559#0 ***SC520 hopf BOARD last stage init done*** boot => bootm 8000000 U-Boot Command_code_tabelle: 08FD7C36 -> 08FD80B8 U-Boot Cmd_table_start_search: 08FD7C38 ## Booting image at 08000000 ... Image Name: Hopf Embedded Linux Kernel Image Type: Intel x86 Linux Kernel Image (uncompressed) // fix for i368 mkimage ! Data Size: 752142 Bytes = 734.5 kB Load Address: 00000000 Entry Point: 00000000 Verifying Checksum ... OK OK No initrd Using boot protocol version 2.03 Linux kernel version 2.4.21-NANO-rthal5 (rac@chicago) #2 Tue Apr 27 19:58:10 CEST 2004 Kernel command line: "console=ttyS0,9600 root=/dev/ram0 rw " Loading bzImage at address 0x00100000 (749070 bytes) ## Transferring control to Linux (at address 00090000) ...
Starting kernel ...
before bios_setup... before realmode_setup... after bios_setup... before memcpy... after memcpy...