Skip to contentSkip to conversation

mpc 860 boot linux2.6.23 problem

DISCUSSION keng_629 5 participants 11 messages Oct 15, 2007 – Oct 21, 2007 1 message not in the archive

lore
Share & tools
lore

keng_629

author
#0 lore raw

i am proting linux2.63.23 to mpc860t board with uboot1.1.4 as bootloader. my bootargs is root=/dev/ram rw init=/linuxrc.
i use debugger to see the regedits, find pc is run in the cpu_idle(). what is wrong with my kernel, plese give me some advice.thank you .

yours keng_629

keng_629
2007-10-15

#1 lore raw
Quoted 5 lines · keng_629 wrote:

i am proting linux2.63.23 to mpc860t board with uboot1.1.4 as bootloader. my bootargs is root=/dev/ram rw init=/linuxrc.
i use debugger to see the regedits, find pc is run in the cpu_idle(). what is wrong with my kernel, plese give me some advice.thank you .

Posting the same thing over and over again isn't going to change the response. Try head-of-Linus's-git, make sure you're using arch/powerpc, and post the device tree you're using. Without more information, we can't help you.

-Scott

#2 lore raw
Quoted 11 lines · In message <[email protected]> you wrote:
Quoted 5 lines · keng_629 wrote:

i am proting linux2.63.23 to mpc860t board with uboot1.1.4 as bootloader. my bootargs is root=/dev/ram rw init=/linuxrc.
i use debugger to see the regedits, find pc is run in the cpu_idle(). what is wrong with my kernel, plese give me some advice.thank you .

Posting the same thing over and over again isn't going to change the response. Try head-of-Linus's-git, make sure you're using arch/powerpc, and post the device tree you're using. Without more information, we can't help you.

Just to point out the obvious: U-Boot 1.1.4 is *way* too old to support any device-tree based kernel, so the fist step is to update U-Boot to a somewhat recent version (i. e. 1.3.0-rcX).

Best regards,

Wolfgang Denk

Signature · 4 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: [email protected]
"Faith: not *wanting* to know what is true."    - Friedrich Nietzsche
#3 lore raw
Quoted 7 lines · Wolfgang Denk
Quoted 6 lines · In message <[email protected]> you wrote:
Quoted 5 lines · keng_629 wrote:

i am proting linux2.63.23 to mpc860t board with uboot1.1.4 as bootloader. my bootargs is root=/dev/ram rw init=/linuxrc.
i use debugger to see the regedits, find pc is run in the cpu_idle(). what is wrong with my kernel, plese give me some advice.thank you .

Quoted 5 lines
Quoted 1 line

Posting the same thing over and over again isn't going to change the response. Try head-of-Linus's-git, make sure you're using arch/powerpc, and post the device tree you're using. Without more information, we can't help you.

Just to point out the obvious: U-Boot 1.1.4 is *way* too old to support any device-tree based kernel, so the fist step is to update U-Boot to a somewhat recent version (i. e. 1.3.0-rcX).

Upgrading to the latest u-boot certainly shouldn't hurt, but I don't think there's any device tree support for 8xx yet, so for now he should boot with cuImage.

-Scott

#4 lore raw
Quoted 2 lines · Scott Wood

Upgrading to the latest u-boot certainly shouldn't hurt, but I don't think there's any device tree support for 8xx yet,

Have you tried it? Works for me. In fact, most
of the development you see today was done
by Pantelis on the 8xx.

	-- Dan
#5 lore raw
Quoted 9 lines · Dan Malek
Quoted 2 lines · Scott Wood

Upgrading to the latest u-boot certainly shouldn't hurt, but I don't think there's any device tree support for 8xx yet,

Have you tried it? Works for me. In fact, most
of the development you see today was done
by Pantelis on the 8xx.

I just pulled Wolfgang's latest u-boot tree, and I don't see any fdt or ft_ calls in cpu/mpc8xx, nor in any 8xx board that I recognize.

I may have been unclear in that I was talking about device tree support in u-boot, not the kernel. Obviously there's device tree support in the kernel, as evidenced by my reference to using cuImage.

-Scott

#6 lore raw
Quoted 1 line · Scott Wood

I just pulled Wolfgang's latest u-boot tree, and I don't see any fdt or ft_ calls in cpu/mpc8xx, nor in any 8xx board that I recognize.

The STx XTc 885 is supported and was used for a majority of the FT development in u-boot. I just built it a few months ago, it worked fine, so if it isn't working today the changes should be minimal to bring it up to date.

Thanks.

	-- Dan
#7 lore raw
Quoted 10 lines · Dan Malek
Quoted 1 line · Scott Wood

I just pulled Wolfgang's latest u-boot tree, and I don't see any fdt or ft_ calls in cpu/mpc8xx, nor in any 8xx board that I recognize.

The STx XTc 885 is supported and was used for a majority of the FT development in u-boot. I just built it a few months ago, it worked fine, so if it isn't working today the changes should be minimal to bring it up to date.

OK, that wasn't a board I recognized. :-P

Still, most 8xx boards are not yet converted AFAICT. Not that it'd be hard to do so, but it might be a bit misleading to say "upgrade u-boot and get device tree support". :-)

-Scott

#10 lore raw
In reply to Scott Wood

Hi Scott,

Quoted 4 lines

I just pulled Wolfgang's latest u-boot tree, and I don't see any fdt or ft_ calls in cpu/mpc8xx, nor in any 8xx board that I recognize.

I may have been unclear in that I was talking about device tree support in u-boot, not the kernel. Obviously there's device tree support in the kernel, as evidenced by my reference to using cuImage.

Can u-boot work on dtb trees embedded in an cuImage, at all? How would command line arguments work without a chosen node?

I tried to boot a mpc823 using the 3 argument mboot command. u-boot processed the dtb and added the chosen node correctly, however the kernel immediately oopsed with unable to access virtual memory when accessing the dtb memory as this memory was not contained in the kernel MMU space.

Thanks,
Jochen

#11 lore raw
Quoted 8 lines · Jochen Friedrich

Hi Scott,

Quoted 4 lines

I just pulled Wolfgang's latest u-boot tree, and I don't see any fdt or ft_ calls in cpu/mpc8xx, nor in any 8xx board that I recognize.

I may have been unclear in that I was talking about device tree support in u-boot, not the kernel. Obviously there's device tree support in the kernel, as evidenced by my reference to using cuImage.

Can u-boot work on dtb trees embedded in an cuImage, at all?

No. If you want that, you need to use a normal uImage.

Quoted 2 lines

How would command line arguments work without a chosen node?

The bad old way: argument registers and the bd_t. The bootwrapper fills in /chosen/bootargs and other things based on that.

It's just for compatibility; use uImage if you can.

Quoted 5 lines

I tried to boot a mpc823 using the 3 argument mboot command. u-boot processed the dtb and added the chosen node correctly, however the kernel immediately oopsed with unable to access virtual memory when accessing the dtb memory as this memory was not contained in the kernel MMU space.

Make sure your version of u-boot understands the new bindings for things like brg frequency, or (less preferred) set it manually in your dts.

-Scott

author
#9 lore raw
In reply to a message not in the archive

the problem has solved ,it is the serial cpm dug,but i don't know where it is. i used the denx linux tree,it works fine,thank you for you help. thank you

keng_629
2007-10-19

发件人: Scott Wood
发送时间: 2007-10-18 01:32:05
收件人: Dan Malek
抄送: [email protected]
主题: Re: mpc 860 boot linux2.6.23 problem

Quoted 11 lines · Dan Malek
Quoted 2 lines · Scott Wood
 I  just  pulled  Wolfgang's  latest  u-boot  tree,  and  I  don't  see  any  fdt  
 or  ft_  calls  in  cpu/mpc8xx,  nor  in  any  8xx  board  that  I  recognize.

The STx XTc 885 is supported and was used for

 a  majority  of  the  FT  development  in  u-boot.    I
 just  built  it  a  few  months  ago,  it  worked  fine,  so

if it isn't working today the changes should be minimal to bring it up to date.

OK, that wasn't a board I recognized. :-P

Still,  most  8xx  boards  are  not  yet  converted  AFAICT.    Not  that  it'd  be  
hard  to  do  so,  but  it  might  be  a  bit  misleading  to  say  "upgrade  u-boot  

and get device tree support". :-)

-Scott
_______________________________________________
Linuxppc-embedded mailing list
[email protected]
https://ozlabs.org/mailman/listinfo/linuxppc-embedded