Re: [U-Boot] [PATCH 2/2] P4080/PBL: add tool to support pbl image build.

2012-06-04 Thread Xie Shaohui-B21989
Hello, Anatolij,

Sorry for the late response, I had no chance until recently to work on the 
rebase of this patch. I've posted a new version and cc-ed to you.
Thanks!


Best Regards, 
Shaohui Xie 

>-Original Message-
>From: Anatolij Gustschin [mailto:ag...@denx.de]
>Sent: Wednesday, April 25, 2012 5:35 PM
>To: Xie Shaohui-B21989
>Cc: u-boot@lists.denx.de; kumar.g...@freescale.com
>Subject: Re: [U-Boot] [PATCH 2/2] P4080/PBL: add tool to support pbl image
>build.
>
>Hi,
>
>On Wed, 16 Mar 2011 10:11:03 +0800
>Shaohui Xie  wrote:
>
>> The tool can build u-boot image which can be used by PBL, run "make
>> P4080DS_RAMBOOT_PBL" can make all works done, the default output image
>> is u-boot.pbl, for more details please refer to doc/README.pblimage.
>>
>> Signed-off-by: Shaohui Xie 
>> ---
>>  Makefile|5 +
>>  board/freescale/corenet_ds/config.mk|   26 +++
>>  board/freescale/corenet_ds/pblimage.cfg |   59 ++
>>  common/image.c  |1 +
>>  doc/README.pblimage |   83 
>>  include/image.h |1 +
>>  tools/Makefile  |2 +
>>  tools/mkimage.c |5 +
>>  tools/mkimage.h |2 +
>>  tools/pblimage.c|  329
>+++
>>  tools/pblimage.h|   36 
>>  11 files changed, 549 insertions(+), 0 deletions(-)  create mode
>> 100644 board/freescale/corenet_ds/config.mk
>>  create mode 100644 board/freescale/corenet_ds/pblimage.cfg
>>  create mode 100644 doc/README.pblimage  create mode 100644
>> tools/pblimage.c  create mode 100644 tools/pblimage.h
>
>This patch doesn't apply on top of current u-boot.git master.
>Please rebase and resubmit. Thanks.
>
>Anatolij


___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH 2/2] P4080/PBL: add tool to support pbl image build.

2012-04-25 Thread Anatolij Gustschin
Hi,

On Wed, 16 Mar 2011 10:11:03 +0800
Shaohui Xie  wrote:

> The tool can build u-boot image which can be used by PBL,
> run "make P4080DS_RAMBOOT_PBL" can make all works done,
> the default output image is u-boot.pbl, for more details
> please refer to doc/README.pblimage.
> 
> Signed-off-by: Shaohui Xie 
> ---
>  Makefile|5 +
>  board/freescale/corenet_ds/config.mk|   26 +++
>  board/freescale/corenet_ds/pblimage.cfg |   59 ++
>  common/image.c  |1 +
>  doc/README.pblimage |   83 
>  include/image.h |1 +
>  tools/Makefile  |2 +
>  tools/mkimage.c |5 +
>  tools/mkimage.h |2 +
>  tools/pblimage.c|  329 
> +++
>  tools/pblimage.h|   36 
>  11 files changed, 549 insertions(+), 0 deletions(-)
>  create mode 100644 board/freescale/corenet_ds/config.mk
>  create mode 100644 board/freescale/corenet_ds/pblimage.cfg
>  create mode 100644 doc/README.pblimage
>  create mode 100644 tools/pblimage.c
>  create mode 100644 tools/pblimage.h

This patch doesn't apply on top of current u-boot.git master.
Please rebase and resubmit. Thanks.

Anatolij
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH 2/2] P4080/PBL: add tool to support pbl image build.

2011-03-15 Thread Shaohui Xie
The tool can build u-boot image which can be used by PBL,
run "make P4080DS_RAMBOOT_PBL" can make all works done,
the default output image is u-boot.pbl, for more details
please refer to doc/README.pblimage.

Signed-off-by: Shaohui Xie 
---
 Makefile|5 +
 board/freescale/corenet_ds/config.mk|   26 +++
 board/freescale/corenet_ds/pblimage.cfg |   59 ++
 common/image.c  |1 +
 doc/README.pblimage |   83 
 include/image.h |1 +
 tools/Makefile  |2 +
 tools/mkimage.c |5 +
 tools/mkimage.h |2 +
 tools/pblimage.c|  329 +++
 tools/pblimage.h|   36 
 11 files changed, 549 insertions(+), 0 deletions(-)
 create mode 100644 board/freescale/corenet_ds/config.mk
 create mode 100644 board/freescale/corenet_ds/pblimage.cfg
 create mode 100644 doc/README.pblimage
 create mode 100644 tools/pblimage.c
 create mode 100644 tools/pblimage.h

diff --git a/Makefile b/Makefile
index dc2e3d8..ca6078e 100644
--- a/Makefile
+++ b/Makefile
@@ -361,6 +361,10 @@ $(obj)u-boot.kwb:   $(obj)u-boot.bin
$(obj)tools/mkimage -n $(CONFIG_SYS_KWD_CONFIG) -T kwbimage \
-a $(CONFIG_SYS_TEXT_BASE) -e $(CONFIG_SYS_TEXT_BASE) -d $< $@
 
+$(obj)u-boot.pbl:   $(obj)u-boot.bin
+   $(obj)tools/mkimage -n $(PBL_CONFIG) -T pblimage \
+   -d $< $@
+
 $(obj)u-boot.sha1: $(obj)u-boot.bin
$(obj)tools/ubsha1 $(obj)u-boot.bin
 
@@ -1156,6 +1160,7 @@ clobber:  clean
$(obj)cscope.* $(obj)*.*~
@rm -f $(obj)u-boot $(obj)u-boot.map $(obj)u-boot.hex $(ALL)
@rm -f $(obj)u-boot.kwb
+   @rm -f $(obj)u-boot.pbl
@rm -f $(obj)u-boot.imx
@rm -f $(obj)tools/{env/crc32.c,inca-swap-bytes}
@rm -f $(obj)arch/powerpc/cpu/mpc824x/bedbug_603e.c
diff --git a/board/freescale/corenet_ds/config.mk 
b/board/freescale/corenet_ds/config.mk
new file mode 100644
index 000..c94938f
--- /dev/null
+++ b/board/freescale/corenet_ds/config.mk
@@ -0,0 +1,26 @@
+#
+# Copyright 2011 Freescale Semiconductor, Inc.
+#
+# See file CREDITS for list of people who contributed to this
+# project.
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation; either version 2 of
+# the License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+# MA 02111-1307 USA
+#
+
+ifeq ($(CONFIG_RAMBOOT_PBL), y)
+PBL_CONFIG = $(SRCTREE)/board/$(BOARDDIR)/pblimage.cfg
+ALL += $(obj)u-boot.pbl
+endif
diff --git a/board/freescale/corenet_ds/pblimage.cfg 
b/board/freescale/corenet_ds/pblimage.cfg
new file mode 100644
index 000..96c55ee
--- /dev/null
+++ b/board/freescale/corenet_ds/pblimage.cfg
@@ -0,0 +1,59 @@
+#
+# Copyright 2011 Freescale Semiconductor, Inc.
+# Written-by: Shaohui Xie
+#
+# See file CREDITS for list of people who contributed to this
+# project.
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation; either version 2 of
+# the License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+# MA 02110-1301 USA
+#
+# Refer docs/README.pblimage for more details about how-to configure
+# and create PBL boot image
+#
+
+#PBL preamble and RCW header
+aa55aa55 010e0100
+#64 bytes RCW data
+4c58  18185218 
+40464000 3c3c2000 5800 6100
+   008b6000
+   
+
+#PBI commands
+#Initialize CPC1
+0901 00200400
+09138000 
+091380c0 0100
+09010100 
+09010104 fffb
+09010f00 0800
+0901 8000
+#Configure LAW for CPC1
+09000d00 
+09000d04 fff0
+09000d08 8113
+0910 
+0914 ff00
+0918 8100
+#Initialize eSPI controller
+0911 8403
+09110020 2d1700