[U-Boot-Users] Uboot mpc8xx porting

As is understand by seeing the code, there is a bd_info structure that the U-boot sends to the kernel through registers. Now one of the main information that is passed on is the address of the start of the bd_info structure in the memory. At the end of the structure the last member is again a structure pointer that points to monitor routines.
I have a U-boot working fine, i have tested example applications on our target board and found everything is fine. Does this mean that the monitor routines are fine. When i try to load kernel, the kernel executes some code in head_8xx.S and hangs. As told in the Readme file i have checked with the IMMR start to be matching with ppcboot.h.
Why is the Kernel hanging? Will the Kernel use the getc,puts and other monitor functions of the U-boot for messages? How do i proceed? I have tried with both uclinux and linux kernels on the board.
Any information will be of great help
thanks
Vishwanath Patil

In message c0dc62120602051956y1cd7611dv184b1ca974e93a54@mail.gmail.com you wrote:
As is understand by seeing the code, there is a bd_info structure that the U-boot sends to the kernel through registers. Now one of the main information that is passed on is the address of the start of the bd_info structure in the memory. At the end of the structure the last
Right.
member is again a structure pointer that points to monitor routines.
Not really. These pointers have been there historically, but they are not used normally. They'd be of limited use anyway.
I have a U-boot working fine, i have tested example applications on our target board and found everything is fine. Does this mean that the monitor routines are fine. When i try to load kernel, the kernel
Yes.
executes some code in head_8xx.S and hangs. As told in the Readme file i have checked with the IMMR start to be matching with ppcboot.h.
How do you know that the kernel is hanging in head_8xx.S ? Don't modify that file! Don't try adding random code there.
Why is the Kernel hanging? Will the Kernel use the getc,puts and other monitor functions of the U-boot for messages? How do i proceed? I have
No, it will not. To proceed, try o find out where the kernel is hanging. Are there any messages in the log buffer? [Read the FAQ!] Then attach your BDI2000 and debug the kernel...
Best regards,
Wolfgang Denk
participants (2)
-
Vishwanath Patil
-
Wolfgang Denk