From mboxrd@z Thu Jan 1 00:00:00 1970 From: Igor Grinberg Date: Fri, 01 Jul 2011 20:04:25 +0300 Subject: [U-Boot] U-boot SPL direct Linux boot In-Reply-To: References: Message-ID: <4E0DFE19.3010400@compulab.co.il> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 07/01/11 12:17, Simon Schwarz wrote: > Ok, topic ATAGS: > I see three ways doing ATAGS init for SPL: > 1. use bootm.c which means init bd correctly and add a bunch of #ifdef > CONFIG_PRELOADER to it - maybe also to some others i don't have on the > radar yet. While this is not clean, it might work good. > 2. Have ATAGS config in board config file and init it at compile time This is a problematic approach, because memory size, board revision, serial number and may be some others are only known in runtime. > 3. Doing it like Heiko and copy the ATAGS config done by u-boot This one is probably the most clean way. > My favourite here is number 2 because it would be faster than 1 and > won't take so much work and won't clutter the standard u-boot code > with #ifdefs. Also it is simpler to use than 3. the downside is that > the section for ATAGS config would be huge and the code could diverge > over time... Regarding the device tree on ARM, it is still not fully functional. Nevertheless, currently there is an attempt ([1] and [2]) to make kernel work with both, device tree and ATAGS and if I understood correctly, the ATAGS will have precedence over the DT, so closed source boot loaders will still work. [1] - http://www.spinics.net/lists/arm-kernel/msg128172.html [2] - http://www.spinics.net/lists/arm-kernel/msg129270.html -- Regards, Igor.