From patchwork Tue Apr 2 13:10:16 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: a.wlodarczyk@samsung.com X-Patchwork-Id: 232990 X-Patchwork-Delegate: promsoft@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 5E71B2C013B for ; Wed, 3 Apr 2013 00:11:48 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 4F87E4A276; Tue, 2 Apr 2013 15:11:45 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id pj7dvwtnA9jt; Tue, 2 Apr 2013 15:11:45 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id F12424A26F; Tue, 2 Apr 2013 15:11:43 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 8176D4A26F for ; Tue, 2 Apr 2013 15:11:00 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id NbS8XATeuo8D for ; Tue, 2 Apr 2013 15:10:56 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mailout2.samsung.com (mailout2.samsung.com [203.254.224.25]) by theia.denx.de (Postfix) with ESMTP id 5C16D4A26D for ; Tue, 2 Apr 2013 15:10:54 +0200 (CEST) Received: from epcpsbgm1.samsung.com (epcpsbgm1 [203.254.230.26]) by mailout2.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MKM006Y6PY3EVS0@mailout2.samsung.com> for u-boot@lists.denx.de; Tue, 02 Apr 2013 22:10:51 +0900 (KST) X-AuditID: cbfee61a-b7fa86d0000045ae-9e-515ad8dbc9d2 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 7F.20.17838.BD8DA515; Tue, 02 Apr 2013 22:10:51 +0900 (KST) Received: from mcdsrvbld02.digital.local ([106.116.37.23]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MKM00M2EPXP4J60@mmp2.samsung.com>; Tue, 02 Apr 2013 22:10:51 +0900 (KST) From: a.wlodarczyk@samsung.com To: u-boot@lists.denx.de Date: Tue, 02 Apr 2013 15:10:16 +0200 Message-id: <1364908216-11400-1-git-send-email-a.wlodarczyk@samsung.com> X-Mailer: git-send-email 1.7.10 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrMJMWRmVeSWpSXmKPExsVy+t9jQd3bN6ICDY61yVnc+9fPZHG26Q27 xZuHmxktOo60MFq83dvJ7sDqcfbODkaPvi2rGAOYorhsUlJzMstSi/TtErgy9szqZivYLVYx f1srSwPjIqEuRk4OCQETiW1rn7NC2GISF+6tZwOxhQSmM0osmG3SxcgFZHcxSaxYMwcowcHB JiAncamFHaRGREBC4lf/VUaQGmaBOYwSn49uZwZJCAskSex5ugisiEVAVWJ160Ywm1fAQ6Lx wFQmiGXyEk/v97FNYORewMiwilE0tSC5oDgpPddQrzgxt7g0L10vOT93EyPY68+kdjCubLA4 xCjAwajEw+swJzJQiDWxrLgy9xCjBAezkghv3M6oQCHelMTKqtSi/Pii0pzU4kOM0hwsSuK8 B1qtA4UE0hNLUrNTUwtSi2CyTBycUg2MS95fn6aeti8+gIOVIc4sQtdL5r7ohtSY6xodx+S/ JnBmLb749ZfTtAqvTwVbQny21jwRYwjuUVo5p63Cl13ZVbegaTZD/m+7kvQL+20+1b34+iHi 1KzZT0oXFAhF+xxIP2Yu8Tu8xUvrwtOWE/1Rs9QnmoRIiXJX9mzJkOYWvJxVpMUmf0GJpTgj 0VCLuag4EQBxmuw39gEAAA== X-Mailman-Approved-At: Tue, 02 Apr 2013 15:11:42 +0200 Cc: Kyungmin Park , Arkadiusz Wlodarczyk Subject: [U-Boot] [PATCH, v1] arm:trats: change auto-booting to boot kernel with separate device tree blob X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de From: Arkadiusz Wlodarczyk Signed-off-by: Arkadiusz Wlodarczyk Signed-off-by: Kyungmin Park Tested-by: Arkadiusz Wlodarczyk Cc: Minkyu Kang --- Changes: Modify autoboot scripts that are included in environment variables of default environment in order to load device tree to memory prior to booting and to pass device tree address to mboot command. Switch on dft library, that is necessary for mboot command to pass the device tree address in memory to kernel. Added device tree file entry in DFU items table in order to facilitate uploading the device tree blob file on a target. --- --- include/configs/trats.h | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/include/configs/trats.h b/include/configs/trats.h index 31d8190..b044fcc 100644 --- a/include/configs/trats.h +++ b/include/configs/trats.h @@ -146,7 +146,8 @@ #define CONFIG_DFU_ALT \ "u-boot mmc 80 400;" \ - "uImage ext4 0 2\0" \ + "uImage ext4 0 2;" \ + "exynos4210-trats.dtb ext4 0 2\0" #define CONFIG_ENV_OVERWRITE #define CONFIG_SYS_CONSOLE_INFO_QUIET @@ -154,7 +155,7 @@ #define CONFIG_EXTRA_ENV_SETTINGS \ "bootk=" \ - "run loaduimage; bootm 0x40007FC0\0" \ + "run loaddtb; run loaduimage; bootm 0x40007FC0 - ${fdtaddr}\0" \ "updatemmc=" \ "mmc boot 0 1 1 1; mmc write 0 0x42008000 0 0x200;" \ "mmc boot 0 1 1 0\0" \ @@ -177,7 +178,7 @@ "mmcboot=" \ "setenv bootargs root=/dev/mmcblk${mmcdev}p${mmcrootpart} " \ "${lpj} rootwait ${console} ${meminfo} ${opts} ${lcdinfo}; " \ - "run loaduimage; bootm 0x40007FC0\0" \ + "run loaddtb; run loaduimage; bootm 0x40007FC0 - ${fdtaddr}\0" \ "bootchart=setenv opts init=/sbin/bootchartd; run bootcmd\0" \ "boottrace=setenv opts initcall_debug; run bootcmd\0" \ "mmcoops=mmc read 0 0x40000000 0x40 8; md 0x40000000 0x400\0" \ @@ -188,6 +189,8 @@ "nfsroot=/nfsroot/arm\0" \ "bootblock=" CONFIG_BOOTBLOCK "\0" \ "loaduimage=ext4load mmc ${mmcdev}:${mmcbootpart} 0x40007FC0 uImage\0" \ + "loaddtb=ext4load mmc ${mmcdev}:${mmcbootpart} ${fdtaddr}" \ + "${fdtfile}\0" \ "mmcdev=0\0" \ "mmcbootpart=2\0" \ "mmcrootpart=5\0" \ @@ -211,7 +214,10 @@ " /${splfile} ${spl_imgaddr} ${spl_imgsize};" \ "setenv spl_imgsize;" \ "setenv spl_imgaddr;" \ - "setenv spl_addr_tmp;\0" + "setenv spl_addr_tmp;\0" \ + "fdtaddr=40800000\0" \ + "fdtfile=exynos4210-trats.dtb\0" + /* Miscellaneous configurable options */ #define CONFIG_SYS_LONGHELP /* undef to save memory */ @@ -321,4 +327,7 @@ #define CONFIG_USB_GADGET_MASS_STORAGE #endif +/* Pass open firmware flat tree */ +#define CONFIG_OF_LIBFDT 1 + #endif /* __CONFIG_H */