Re: Calling the kernel from a mini-bootloader

2008-07-22 Thread Guillaume Dargaud
Answering to myself to try and provide more background info: As a follow up to my previous messages, I now have a working kernel and a working bootloader... but not when they are both together. Case in point: - load zImage.elf to DRAM 0x40 with JTAG debugger. Run it. It runs fine. - Loa

Re: Calling the kernel from a mini-bootloader

2008-07-22 Thread Guillaume Dargaud
Thank you Milton for the detailed explanation. It'll take me quite a while to digest it. As a follow up to my previous messages, I now have a working kernel and a working bootloader... but not when they are both together. Case in point: - load zImage.elf to DRAM 0x40 with JTAG debugger.

Re: Calling the kernel from a mini-bootloader

2008-07-18 Thread Milton Miller
On Fri Jul 18 18:43:11 EST 2008, Guillaume Dargaud wrote: Hello Milton and David, thanks for the answers. This is a very reasonable approach, and is quite similar to what I do. Makes me feel better !!! You actually have a few choices. You can put just the loaded data, or you can put the elf

Re: Calling the kernel from a mini-bootloader

2008-07-18 Thread Milton Miller
On Jul 17, 2008, at 10:47 PM, David Gibson wrote: On Thu, Jul 17, 2008 at 11:14:11AM -0500, Milton Miller wrote: On Thu Jul 17 at 23:22:28 EST in 2008, Guillaume Dargaud wrote: [snip] [more snip] We call this the flattened device tree. Your firmware doesn't have to deal with this though,

Re: Calling the kernel from a mini-bootloader

2008-07-18 Thread Guillaume Dargaud
Hello Milton and David, thanks t=for the answers. This is a very reasonable approach, and is quite similar to what I do. Makes me feel better !!! You actually have a few choices. You can put just the loaded data, or you can put the elf file and parse the header in your boot loader. I cannot

Re: Calling the kernel from a mini-bootloader

2008-07-17 Thread David Gibson
On Thu, Jul 17, 2008 at 11:14:11AM -0500, Milton Miller wrote: > On Thu Jul 17 at 23:22:28 EST in 2008, Guillaume Dargaud wrote: [snip] >> Maybe the main() of the kernel can receive argv/argc the usual way, >> and I >> just need to call "0x40(argc, argv);" but I have no idea if that >> work

Re: Calling the kernel from a mini-bootloader

2008-07-17 Thread Milton Miller
On Thu Jul 17 at 23:22:28 EST in 2008, Guillaume Dargaud wrote: Hello all, I'm in the process of writing a mini-bootloaler for a custom board and would like some feedback on my boot methodology. Basically the kernel code (elf file) is copied into memory by a JTAG debugger. A custom program (y

Calling the kernel from a mini-bootloader

2008-07-17 Thread Guillaume Dargaud
Hello all, I'm in the process of writing a mini-bootloaler for a custom board and would like some feedback on my boot methodology. Basically the kernel code (elf file) is copied into memory by a JTAG debugger. A custom program (yet to be finished) then copies it onto an onboard flash memory u