* Re: How can I boot a program from flash on ML403? [not found] <mailman.120.1171370674.21008.linuxppc-embedded@ozlabs.org> @ 2007-02-13 18:57 ` Lorenz Kolb 2007-02-15 4:57 ` Leonid 0 siblings, 1 reply; 6+ messages in thread From: Lorenz Kolb @ 2007-02-13 18:57 UTC (permalink / raw) To: linuxppc-embedded Hi, I wasted a lot of time making fitting u-boot into the 64K of BRAM, just to see data2mem from EDK 8.1 crashing Thus my current (dirty) solution is: Using SREC Bootloader from Xilinx' EDK to load a U-Boot and make U-Boot load Linux both located on flash. Actually, it is quick and dirty, but it works fine for testing... Greetings, Lorenz Kolb On Tue, 13 Feb 2007 20:17:00 +0800 yunfeizhang@sjtu.edu.cn wrote: >hi, all: > I want to porting u-boot to ML403,but first I should master booting a common app from flash first.Who can tell how to do that?Any details about u-boot on ML403 is also prefered > Thanks for all your kindness! ^ permalink raw reply [flat|nested] 6+ messages in thread
* RE: How can I boot a program from flash on ML403? 2007-02-13 18:57 ` How can I boot a program from flash on ML403? Lorenz Kolb @ 2007-02-15 4:57 ` Leonid 2007-02-15 7:12 ` Lorenz Kolb 0 siblings, 1 reply; 6+ messages in thread From: Leonid @ 2007-02-15 4:57 UTC (permalink / raw) To: Lorenz Kolb, linuxppc-embedded Sent: Tuesday, February 13, 2007 10:57 AM Lorenz Kolb: > Thus my current (dirty) solution is: > Using SREC Bootloader from Xilinx' EDK to load a U-Boot and make U-Boot=20 > load Linux both located on flash. > Actually, it is quick and dirty, but it works fine for testing... I use the same scheme (called 3-stage boot) but I don't see what is dirty about it. For testing/debugging you even can load u-boot directly into memory using XMD. Of course, image must be compiled to run from memory, not flash. BTW, do you (or anybody) have XTEMAC drivers for ML403 u-boot? Regards, Leonid. ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: RE: How can I boot a program from flash on ML403? 2007-02-15 4:57 ` Leonid @ 2007-02-15 7:12 ` Lorenz Kolb 2007-02-15 15:55 ` Leonid 0 siblings, 1 reply; 6+ messages in thread From: Lorenz Kolb @ 2007-02-15 7:12 UTC (permalink / raw) To: 'Leonid', linuxppc-embedded Hi Leonid, > I use the same scheme (called 3-stage boot) but I don't see what is dirty about it. For testing/debugging you even can load u-boot directly into memory using XMD. Of course, image must be compiled to run from memory, not flash. actually I call it dirty as SREC is a quite stupid format (for a bootloader, as it has to be decoded first) and so the loader wastes a lot of time at least for productive use we do not want this three stage boot. Actually my partner and I even fitted an u-boot directly into BRAM (if it is loaded via XMD), unfortunately the binutils of ELDK from W. Denk screwed the elf (sections were out of segment) and even after fixing that manually (with a hex editor) data2mem from Xilinx messes something up. > BTW, do you (or anybody) have XTEMAC drivers for ML403 u-boot? Actually we did not yet focus on that, we currently mount our NFS by placing a small initrd image on flash that loads drivers for opb_ethernet and mounts an nfs volume an chroots to it. Best Regards, Lorenz ^ permalink raw reply [flat|nested] 6+ messages in thread
* RE: RE: How can I boot a program from flash on ML403? 2007-02-15 7:12 ` Lorenz Kolb @ 2007-02-15 15:55 ` Leonid 0 siblings, 0 replies; 6+ messages in thread From: Leonid @ 2007-02-15 15:55 UTC (permalink / raw) To: Lorenz Kolb, linuxppc-embedded On Wednesday, February 14, 2007 11:12 PM Lorenz Kolb > > I use the same scheme (called 3-stage boot) but I don't see what is dirty > > about it. For testing/debugging you even can load u-boot directly into > > memory using XMD. Of course, image must be compiled to run from memory,=20 > > not flash. > actually I call it dirty as SREC is a quite stupid format (for a=20 > bootloader, > as it has to be decoded first) and so the loader wastes a lot of time at > least for productive use we do not want this three stage boot. [Leonid] When I use "3-stage boot" name I actually don't mean that SREC format used in production. This is too slow indeed. Here how it works for me: - u-boot is ALWAYS compiled to run directly from RAM. You can place it on flash using JTAG or u-boot itself on later stage (see below). Compilation results include binary (for flash burning), ELF and SREC files. - Early boot (tiny BRAM based program) wakes up, checks whether u-boot presents on the flash (can be different criteria) or wait for some input or read some config to know where pick up u-boot from. If it's on the flash already, early boot copies u-boot to RAM and launches it, otherwise waits for SREC file to be sent via serial interface, copies it into RAM and starts. - u-boot does the rest of job (linux boot, etc...). On this stage you can use u-boot to program u-boot image (compiled to run from RAM) onto the flash for next reboot. This scheme works perfectly for ARM, Xilinx and actually is a good choice for any architecture where CPU itself fetches boot code from boot location into memory (ARM) or code can reside in RAM from the very beginning (FPGA with soft/hard CPU cores). In traditional approach (with relocation) u-boot kind of contains both functionalities which probably best choice for traditional PPC boards. =20 > Actually my partner and I even fitted an u-boot directly into BRAM (if it > is loaded via XMD),=20 [Leonid] I also use XMD but load u-boot ELF directly to RAM. Early boot is not used in this setup and this is quickest and most convenient way for debug. Best Regards, Leonid. ^ permalink raw reply [flat|nested] 6+ messages in thread
* How can I boot a program from flash on ML403? @ 2007-02-13 12:17 yunfeizhang 2007-02-13 12:49 ` Ming Liu 0 siblings, 1 reply; 6+ messages in thread From: yunfeizhang @ 2007-02-13 12:17 UTC (permalink / raw) To: linuxppc-embedded hi, all: I want to porting u-boot to ML403,but first I should master booting a common app from flash first.Who can tell how to do that?Any details about u-boot on ML403 is also prefered Thanks for all your kindness! ^ permalink raw reply [flat|nested] 6+ messages in thread
* RE: How can I boot a program from flash on ML403? 2007-02-13 12:17 yunfeizhang @ 2007-02-13 12:49 ` Ming Liu 0 siblings, 0 replies; 6+ messages in thread From: Ming Liu @ 2007-02-13 12:49 UTC (permalink / raw) To: yunfeizhang; +Cc: linuxppc-embedded Hi, Pls refer to the ml403 user guide. There are several booting mechanisms including the common and useful one from CPLD+Flash for Linux application. BR Ming >From: yunfeizhang@sjtu.edu.cn >To: linuxppc-embedded@ozlabs.org >Subject: How can I boot a program from flash on ML403? >Date: Tue, 13 Feb 2007 20:17:00 +0800 > >hi, all: > > I want to porting u-boot to ML403,but first I should master booting a common app from flash first.Who can tell how to do that?Any details about u-boot on ML403 is also prefered > > Thanks for all your kindness! > >_______________________________________________ >Linuxppc-embedded mailing list >Linuxppc-embedded@ozlabs.org >https://ozlabs.org/mailman/listinfo/linuxppc-embedded _________________________________________________________________ 与联机的朋友进行交流,请使用 MSN Messenger: http://messenger.msn.com/cn ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2007-02-15 15:55 UTC | newest] Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- [not found] <mailman.120.1171370674.21008.linuxppc-embedded@ozlabs.org> 2007-02-13 18:57 ` How can I boot a program from flash on ML403? Lorenz Kolb 2007-02-15 4:57 ` Leonid 2007-02-15 7:12 ` Lorenz Kolb 2007-02-15 15:55 ` Leonid 2007-02-13 12:17 yunfeizhang 2007-02-13 12:49 ` Ming Liu
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.