linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* How to load a linux kernel under vxworks bootloader (PPC860 board)
@ 2005-07-28  4:16 FCG WANG Baohua
  2005-07-28  4:28 ` Frank
  2005-07-28 15:01 ` Guy Streeter
  0 siblings, 2 replies; 4+ messages in thread
From: FCG WANG Baohua @ 2005-07-28  4:16 UTC (permalink / raw)
  To: linuxppc-embedded

[-- Attachment #1: Type: text/plain, Size: 410 bytes --]

Dear All:
  I want to boot a linux 2.4.25 kernel under vxworks bootloader. When I using flat mode(0x200000 -->  0x10000) kernel  uncompressed ELF format ( vmlinux ),
 and download it using TFTP of vxworks, it print the "starting at 0x1000 ...." and  freeze.  No input or output on serial port.
 The version of vxworks is 5.3.1. 
 can you give me some detail advice or give me a tool to slove it? thanks !

[-- Attachment #2: Type: text/html, Size: 1168 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: How to load a linux kernel under vxworks bootloader (PPC860 board)
  2005-07-28  4:16 How to load a linux kernel under vxworks bootloader (PPC860 board) FCG WANG Baohua
@ 2005-07-28  4:28 ` Frank
  2005-07-28  7:47   ` Esben Nielsen
  2005-07-28 15:01 ` Guy Streeter
  1 sibling, 1 reply; 4+ messages in thread
From: Frank @ 2005-07-28  4:28 UTC (permalink / raw)
  To: FCG WANG Baohua, linuxppc-embedded



--- FCG WANG Baohua <Baohua.WANG@alcatel-sbell.com.cn> wrote:

> Dear All:
>   I want to boot a linux 2.4.25 kernel under vxworks
> bootloader. When I using flat mode(0x200000 -->  0x10000)
> kernel  uncompressed ELF format ( vmlinux ),
>  and download it using TFTP of vxworks, it print the "starting
> at 0x1000 ...." and  freeze.  No input or output on serial
> port.
>  The version of vxworks is 5.3.1. 
>  can you give me some detail advice or give me a tool to slove
> it? thanks !

Do what I did:
Replace the vxWorks rom with you u-boot and you can boot Linux
or vxWorks with the same bootloader.

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: How to load a linux kernel under vxworks bootloader (PPC860 board)
  2005-07-28  4:28 ` Frank
@ 2005-07-28  7:47   ` Esben Nielsen
  0 siblings, 0 replies; 4+ messages in thread
From: Esben Nielsen @ 2005-07-28  7:47 UTC (permalink / raw)
  To: Frank; +Cc: FCG WANG Baohua, linuxppc-embedded

On Wed, 27 Jul 2005, Frank wrote:

> 
> 
> --- FCG WANG Baohua <Baohua.WANG@alcatel-sbell.com.cn> wrote:
> 
> > Dear All:
> >   I want to boot a linux 2.4.25 kernel under vxworks
> > bootloader. When I using flat mode(0x200000 -->  0x10000)
> > kernel  uncompressed ELF format ( vmlinux ),
> >  and download it using TFTP of vxworks, it print the "starting
> > at 0x1000 ...." and  freeze.  No input or output on serial
> > port.
> >  The version of vxworks is 5.3.1. 
> >  can you give me some detail advice or give me a tool to slove
> > it? thanks !

I have done it on a MPC5200 with a vxWorks 5.5 bootsector with ethernet
support: I just boot over FTP.  Give it the Linux kernel in elf-format, 
the bootsector doesn't care, _what_ the code actually is, it just loads
and run it. 

For vxWorks <= 5.4 I believe coff is used instead of elf - at least on
some architectures. Then you have a problem, because the kernel isn't
compiled to coff :-(

Esben


> 
> Do what I did:
> Replace the vxWorks rom with you u-boot and you can boot Linux
> or vxWorks with the same bootloader.
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com 
> _______________________________________________
> Linuxppc-embedded mailing list
> Linuxppc-embedded@ozlabs.org
> https://ozlabs.org/mailman/listinfo/linuxppc-embedded
> 

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: How to load a linux kernel under vxworks bootloader (PPC860 board)
  2005-07-28  4:16 How to load a linux kernel under vxworks bootloader (PPC860 board) FCG WANG Baohua
  2005-07-28  4:28 ` Frank
@ 2005-07-28 15:01 ` Guy Streeter
  1 sibling, 0 replies; 4+ messages in thread
From: Guy Streeter @ 2005-07-28 15:01 UTC (permalink / raw)
  To: FCG WANG Baohua; +Cc: linuxppc-embedded

On Thu, 2005-07-28 at 12:16 +0800, FCG WANG Baohua wrote:
> Dear All: 
>   I want to boot a linux 2.4.25 kernel under vxworks bootloader. When
> I using flat mode(0x200000 -->  0x10000) kernel  uncompressed ELF
> format ( vmlinux ),
> 
>  and download it using TFTP of vxworks, it print the "starting at
> 0x1000 ...." and  freeze.  No input or output on serial port.
> 
>  The version of vxworks is 5.3.1.  
>  can you give me some detail advice or give me a tool to slove it?
> thanks !

Most ppc kernels depend on the bootloader to configure some devices and
to leave some configuration data in a known memory location so that the
kernel (or the kernel's boot wrapper) can use the devices and data
during startup.
None of the board-specific startup code in kernel supports booting from
a VxWorks bootloader. Code I have written to do that for some boards
doesn't appear to be in the kernel anywhere.
You will need to look at the startup code your board is using and figure
out how to do without the device and data setup normally provided by the
bootloader. I addition, you will need to make sure the kernel is trying
to use the console port at the same baud rate as VxWorks.

--Guy Streeter

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-07-28 15:01 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-28  4:16 How to load a linux kernel under vxworks bootloader (PPC860 board) FCG WANG Baohua
2005-07-28  4:28 ` Frank
2005-07-28  7:47   ` Esben Nielsen
2005-07-28 15:01 ` Guy Streeter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).