Skip to contentSkip to conversation

Booting Linux using a PlanetCore BootLoader

DISCUSSION Sam Song 4 participants 16 messages Oct 12, 2004 – Oct 16, 2004 1 message not in the archive

lore
Share & tools
lore

Sam Song

author
#1 lore raw
In reply to a message not in the archive
Quoted 3 lines · annamaya

now able to see the "relocation" messages by zImage and it now halts with the message "Now booting the kernel". I see that it is now hung in some delay

[snip]

Quoted 1 line

Linux/PPC load: root=/dev/nfs rw ip=on

Well, I guess there is sth wrong in your parameter passing to kernel. Add "Console=ttyS0,9600" in it and try.

=====
Best regards,

Sam

_________________________________________________________
Do You Yahoo!?
150万曲MP3疯狂搜,带您闯入音乐殿堂
http://music.yisou.com/
美女明星应有尽有,搜遍美图、艳图和酷图
http://image.yisou.com
1G就是1000兆,雅虎电邮自助扩容!
http://cn.rd.yahoo.com/mail_cn/tag/1g/*http://cn.mail.yahoo.com/event/mail_1g/

author
#16 lore raw

Re: linux 2.4.27 for 8xx?

In reply to a message not in the archive
Quoted 2 lines · [email protected] wrote:

is the vanilla kernel 2.4.27 from kernel.org
considered stable for MPC8xx systems?

I once used it for try but came up some making errors. I don't know why.

Quoted 2 lines

Or do I still have to go for the trees on
ppc.bkbits.net ?

You'd better to if u wanna to see the succeed earlier or switch to DENX linuxppc_2_4_devel cvs repository.

=====
Best regards,

Sam

_________________________________________________________
Do You Yahoo!?
150万曲MP3疯狂搜,带您闯入音乐殿堂
http://music.yisou.com/
美女明星应有尽有,搜遍美图、艳图和酷图
http://image.yisou.com
1G就是1000兆,雅虎电邮自助扩容!
http://cn.rd.yahoo.com/mail_cn/tag/1g/*http://cn.mail.yahoo.com/event/mail_1g/

#2 lore raw
In reply to Sam Song

My problem had to do with the fact that I was not sending my flash device information in the bd_info structure and therefore, jffs2 was crapping out. Once I turned include this info in bd_info, the kernel came up just fine and started to boot.

I am now trying to do an NFS mount of the root file system. Looks like the EP8280 uses LXT971A PHY device. I see that support for this device already exists in the driver. But I am not sure which GPIO lines are being used for MII_MDIO and MII_MDCK. I am also not sure about the PHY_INTERRUPT line. Does anyone have this info? Thanks much.

Quoted 16 lines · --- Sam Song
Quoted 1 line · annamaya

now able to see the "relocation" messages by

zImage

Quoted 2 lines

and it now halts with the message "Now booting the kernel". I see that it is now hung in some delay

[snip]

Quoted 1 line

Linux/PPC load: root=/dev/nfs rw ip=on

Well, I guess there is sth wrong in your parameter passing to kernel. Add "Console=ttyS0,9600" in it and
try.

Quoted 6 lines

=====
Best regards,

Sam

_________________________________________________________

Quoted 7 lines

Do You Yahoo!?
150ÍòÇúMP3·è¿ñËÑ£¬´øÄú´³ÈëÒôÀÖµîÌÃ
http://music.yisou.com/
ÃÀÅ®Ã÷ÐÇÓ¦Óо¡ÓУ¬ËѱéÃÀͼ¡¢ÑÞͼºÍ¿áͼ
http://image.yisou.com
1G¾ÍÊÇ1000Õ×£¬ÑÅ»¢µçÓÊ×ÔÖúÀ©ÈÝ£¡

http://cn.rd.yahoo.com/mail_cn/tag/1g/*http://cn.mail.yahoo.com/event/mail_1g/

Quoted 1 line

__________________________________
Do you Yahoo!?
Yahoo! Mail Address AutoComplete - You start. We finish.
http://promotions.yahoo.com/new_mail

#3 lore raw
Quoted 2 lines · annamaya

I am now trying to do an NFS mount of the root file system. Looks like the EP8280 uses LXT971A PHY device.

I have one of their first 8260 boards that I used to do the initial Linux port long ago. At that time, they had some weird CPLD implementation of MDIO that I could never get to work properly. Not a bad idea, just didn't seem to be implemented properly. I know they have done a second revision of this board, and I suspect the 8280 is just a glue into the same location design.

With that board you should have received sufficient information to determine what to do, although they have always been quite secretive about releasing enough information to successfully write software.

In the interim, just compile the driver without any MDIO control, hack the call to fcc_restart() at the end of init_fcc_startup() to just force half or full duplex (0 or 1) based upon the switch you are using.

Good Luck.

	-- Dan
#4 lore raw

Thanks for the reply Dan. Just before I got your mail, I was going through the fcc ethernet driver from mvista and I noticed the BCSR hack code to make the PHY work on an EP8260. I went back to the manual for the EP8280 and realized that they did something similar on this board, just as you guessed. I will add code to manage the PHY using these bits later.

Meanwhile, this board also has BCSR bits to control enabling and powering on the PHY. I was able to add a bit of code to my ethernet driver and I can now see the blinking lights on the ethernet port, similar to the ones I see during tftp transfers from the boot monitors. Interestingly, the boot monitor turns off all the PHYs while the ethernet port is not being access from the boot monitor. I fail to understand the reasoning.

Anyways, I am able to enable and power the PHY device and it looks like the port is seeing ethernet activity. But my driver doesn't work and complains about a TX timeout. I am sure I am missing something. Can you suggest something that I could try?

Thank you.

Quoted 31 lines · --- Dan Malek
Quoted 1 line · annamaya

I am now trying to do an NFS mount of the root

file

Quoted 1 line

system. Looks like the EP8280 uses LXT971A PHY

device.

I have one of their first 8260 boards that I used to do
the initial Linux port long ago. At that time, they had
some weird CPLD implementation of MDIO that I could never get to work properly. Not a bad idea, just didn't
seem to be implemented properly. I know they have done a second revision of this board, and I suspect the 8280 is just a glue into the same location design.

With that board you should have received sufficient information to determine what to do, although they have always been quite secretive about releasing enough information to successfully write software.

In the interim, just compile the driver without any MDIO control, hack the call to fcc_restart() at the end of init_fcc_startup() to just force half or full duplex (0 or 1) based upon the switch you are using.

Quoted 6 lines

Good Luck.

	-- Dan

__________________________________
Do you Yahoo!?
Y! Messenger - Communicate in real time. Download now.
http://messenger.yahoo.com

#5 lore raw
Quoted 3 lines · annamaya

..... But my driver doesn't work and complains about a TX timeout. I am sure I am missing something. Can you suggest something that I could try?

You are going to have to track down the clock and control signals for the FCC and make sure they are still connected the same way as the 8260. Sounds like they aren't. There are #defines at the top of the driver file that map the GPIO pins to the FCC signals.

	-- Dan
#6 lore raw

I was able to use the same driver on a PQ2-FADS board with an MPC8275 processor. Are you telling me that some of these pins are board specific? Thanks for your help.

Quoted 17 lines · --- Dan Malek
Quoted 2 lines · annamaya

..... But my driver doesn't work and complains
about a TX timeout. I am sure I am missing

something.

Quoted 1 line

Can you suggest something that I could try?

You are going to have to track down the clock and control signals for the FCC and make sure they are still connected the same way as the 8260. Sounds like they aren't. There are #defines at the top of the
driver file that map the GPIO pins to the FCC signals.

Quoted 3 lines
	-- Dan

_______________________________
Do you Yahoo!?
Declare Yourself - Register online to vote today!
http://vote.yahoo.com

#7 lore raw

I looked at the driver again and it looks like the TX and RX clock signals are board specific. I will also have to program the CMXFCR clock route register with the appropriate clocks. Am I on the right track here?

Quoted 34 lines · --- annamaya

I was able to use the same driver on a PQ2-FADS board
with an MPC8275 processor. Are you telling me that some of these pins are board specific? Thanks for your
help.

Quoted 5 lines · --- Dan Malek
Quoted 2 lines · annamaya

..... But my driver doesn't work and complains
about a TX timeout. I am sure I am missing

Quoted 7 lines

something.

Quoted 1 line

Can you suggest something that I could try?

You are going to have to track down the clock and control signals for the FCC and make sure they are still connected the same way as the 8260. Sounds like they aren't. There are #defines at the top

of

Quoted 8 lines

the
driver file that map the GPIO pins to the FCC signals.

	-- Dan
Quoted 8 lines

_______________________________
Do you Yahoo!?
Declare Yourself - Register online to vote today!
http://vote.yahoo.com
_______________________________________________
Linuxppc-embedded mailing list
[email protected]

https://ozlabs.org/mailman/listinfo/linuxppc-embedded

Quoted 1 line
#8 lore raw
Quoted 4 lines · annamaya

I looked at the driver again and it looks like the TX and RX clock signals are board specific. I will also have to program the CMXFCR clock route register with the appropriate clocks. Am I on the right track here?

Yep. :-)

	-- Dan
#9 lore raw

I verified that the TX and RX clock signals are correct and the CMXFCR route register is programmed correctly for FCC2. I still see TX timeout errors. I am stumped. :-(

Quoted 8 lines · --- Dan Malek
Quoted 1 line · annamaya

I looked at the driver again and it looks like the

TX

Quoted 1 line

and RX clock signals are board specific. I will

also

Quoted 1 line

have to program the CMXFCR clock route register

Quoted 10 lines

with

Quoted 1 line

the appropriate clocks. Am I on the right track

here?

Yep. :-)

	-- Dan

__________________________________
Do you Yahoo!?
Y! Messenger - Communicate in real time. Download now.
http://messenger.yahoo.com

#10 lore raw
Quoted 4 lines · annamaya

I verified that the TX and RX clock signals are correct and the CMXFCR route register is programmed correctly for FCC2. I still see TX timeout errors. I am stumped. :-(

Do you have the FCC MAC set up properly for full or half duplex? If you don't have MDIO working, you are going to have to force this to the proper setting for your switch. I mentioned this in a previous message.

If that doesn't work, take a look at the CPM memory map and ensure the "special" FCC
area is mapped properly. I don't remember
if the 8280 has the "big" CPM like the 8260, or the small one like the 8272. There is
a configuration option that moves this memory address for the FCC fifos and special buffers.

	-- Dan
#11 lore raw

I cant believe I was stupid enough to beleive that the user's manual of an eval board was giving me the correct information.

The problem turned out to be that the FCC controllers were not assigned to the ports that the manual stated. They were switched. I was configuring the wrong FCC controllers. Doh!

By manually looking at the FCC registers during tftp transfers from the bootloader, I was able to figure out that the controller in use for the port was different from the one that the manual was telling me.

I appreciate all the help that I got in solving my weird problems. Special thanks to Dan. I think I am almost done supporting the EP8280 in the Linux Kernel from denx.

Quoted 26 lines · --- Dan Malek
Quoted 2 lines · annamaya

I verified that the TX and RX clock signals are
correct and the CMXFCR route register is

programmed

Quoted 1 line

correctly for FCC2. I still see TX timeout errors.

I

Quoted 1 line

am stumped. :-(

Do you have the FCC MAC set up properly for full or half duplex? If you don't have MDIO working,
you are going to have to force this to the proper setting for your switch. I mentioned this in a previous message.

If that doesn't work, take a look at the CPM memory map and ensure the "special" FCC area is mapped properly. I don't remember if the 8280 has the "big" CPM like the 8260, or the small one like the 8272. There is a configuration option that moves this memory address for the FCC fifos and special buffers.

Quoted 3 lines
	-- Dan

_______________________________
Do you Yahoo!?
Declare Yourself - Register online to vote today!
http://vote.yahoo.com

#12 lore raw
Quoted 3 lines · annamaya

I cant believe I was stupid enough to beleive that the user's manual of an eval board was giving me the correct information.

Well, you have to start somewhere. Good job
debugging, you get major points for that! :-)

	-- Dan
#13 lore raw

Thanks again. I am glad to be back on the mailing lists. And yes, forgot to say hi to Wolfgang Denk, another one of my mentors. Hey Denk.

And what's the story on lists.linuxppc.org. Will they ever retrieve the archives?

Quoted 5 lines · --- Dan Malek
Quoted 1 line · annamaya

I cant believe I was stupid enough to beleive that

the

Quoted 10 lines
Quoted 2 lines

user's manual of an eval board was giving me the
correct information.

Well, you have to start somewhere. Good job
debugging, you get major points for that! :-)

	-- Dan

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

#14 lore raw
Quoted 3 lines · In message <[email protected]> you wrote:

Thanks again. I am glad to be back on the mailing lists. And yes, forgot to say hi to Wolfgang Denk, another one of my mentors. Hey Denk.

Hello!

Quoted 2 lines

And what's the story on lists.linuxppc.org. Will they ever retrieve the archives?

I sent all my archives (back to 5 Dec 1998) to the current list maintainer to set up a new archive. Nothing happened since.

Best regards,

Wolfgang Denk

Signature · 3 lines
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: [email protected]
Every little picofarad has a nanohenry all its own.      - Don Vonada
author
#15 lore raw
In reply to annamaya

annamaya <[email protected]> wrote:

Quoted 3 lines

lists. And yes, forgot to say hi to Wolfgang Denk, another one of my mentors. Hey Denk.

I also have the same feeling as you. :-)

So why not feed back your work to DENX? There is no other appropriate public place to receive the 82xx and 8xx 2.4 patch, I am afraid.

BTW, I also have a patch against denx 2_4_devel on RPXlite, I wonder whether it's acceptable to send the patch to this list.

=====
Best regards,

Sam

_________________________________________________________
Do You Yahoo!?
150万曲MP3疯狂搜,带您闯入音乐殿堂
http://music.yisou.com/
美女明星应有尽有,搜遍美图、艳图和酷图
http://image.yisou.com
1G就是1000兆,雅虎电邮自助扩容!
http://cn.rd.yahoo.com/mail_cn/tag/1g/*http://cn.mail.yahoo.com/event/mail_1g/