From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefan Roese Date: Mon, 9 Jun 2008 06:56:36 +0200 Subject: [U-Boot-Users] 2-step U-boot(?) In-Reply-To: <52CF207E00A9394C8CD1423668654840A8B3DB1E@4rf-nz-exch02.local.4rf.com> References: <52CF207E00A9394C8CD1423668654840A8B3DB1E@4rf-nz-exch02.local.4rf.com> Message-ID: <200806090656.36251.sr@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Monday 09 June 2008, Frank Wei wrote: > I'm new to u-boot. Has anybody tried to make 2-step u-boot? I mean a really > small u-boot (the first u-boot) possible only needs to initialize the CPU, > memory... and load the full featured (the second u-boot) u-boot and the > Linux to the RAM. In this way the second u-boot as an application can be > updated on the fly. > > Could you please share your knowledge here If you have done the job or the > similar? Yes, there already is a framework for a 2-stage U-Boot booting in place. Take a look at the nand_spl (NAND Secondary Program Loader) infrastructure: nand_spl/* doc/README.nand-boot-ppc440 Here a small (4k) image is build which only inits the basic CPU stuff, RAM and NAND controller. Then a full-blown U-Boot image is loaded from NAND. Best regards, Stefan ===================================================================== DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office at denx.de =====================================================================