Re: [ptxdist] [PATCH 1/1] add new packet x-load
Hi Flavio, sorry for the delay. I've read your email today. Am Donnerstag, den 07.06.2012, 16:56 -0300 schrieb Flavio de Castro Alves Filho: Hello, I'm affraid that the file x-load-f243938.tar.bz2 located at the repository is not fine. I was unable to build MLO file with that file. Comparing with the git repository (https://git.gitorious.org/x-load-omap3/mainline.git), I could find the ift target. First of all, read the help pages in menuconfig: config X_LOAD_MAKE_IFT bool prompt generate signed ift file help When this option is enabled, a so-called IFT file is generated. You need a X-Loader source tree that supports this. This must know about the make target 'ift' so ptxdist can do the following: make ift. In details you will need the tool signGP from http://beagleboard.googlecode.com/files/signGP.c So, you have to present a patch in your private BSP to do that! Some comments to the file x-load-f243938.tar.bz2: The source package x-load-f243938.tar.bz2 located on the Pengutronix mirror is a snapshot of this git repo by Steve Sakoman: https://gitorious.org/x-load-omap3/mainline/commit/f243938 PTXdist is a distribution build and management system and requires source tarballs in a specific given version. The problem with x-load is, that there is nowhere a official source tarball storage with latest releases. That's why Pengutronix (Marc) have upload this snapshot. Feel free to submit a patch (and a new source tarball) for a newer x-load version to ptxdist mailing list that solves your problems. br, Stephan Best regards, Flavio Flavio de Castro Alves Filho Phi Innovations www.phiinnovations.com Phone: +55 19 3709 1358 Mobile: +55 19 9823 9332 Skype: flavio.de.castro.alves.filho 2010/8/6 Stephan Linz l...@li-pro.net Am Freitag, 6. August 2010, um 09:20:17 schrieb Marc Kleine-Budde: ---snip-- tnx, pushed to master. but, crap, it doesn't work :(...see inline comments: --snip-- +X_LOAD_MAKE_OPT:= CROSS_COMPILE= $(BOOTLOADER_CROSS_COMPILE) HOSTCC=$(HOSTCC) +X_LOAD_MAKE_PAR := NO + +$(STATEDIR)/x-load.prepare: + @$(call targetinfo) + @$(call compile, X_LOAD, $(PTXCONF_X_LOAD_CONFIG)) I think the second parameter overwrites _MAKE_OPT. I'm not sure why it does this, looks like a bug. It should be fixed, but that requires some time and testing... However I can work around this limitation by changing _MAKE_OPT to _MAKE_ENV. This surprises me because it has properly compiled for me I'll push this fix. tnx a lot. I'll try out your fix. Give me a hint (here). -- Viele Grüße, Stephan Linz __ OpenDCC: http://www.li-pro.net/opendcc.phtml PC/M: http://www.li-pro.net/pcm.phtml CDK4AVR: http://cdk4avr.sourceforge.net/ CDK4NIOS: http://cdk4nios.sourceforge.net/ CDK4MSP: http://cdk4msp.sourceforge.net/ CPM4L: http://download.opensuse.org/repositories/home:/rexut:/CPM4L -- ptxdist mailing list ptxdist@pengutronix.de -- ptxdist mailing list ptxdist@pengutronix.de
Re: [ptxdist] [PATCH 1/1] add new packet x-load
Hello, I'm affraid that the file x-load-f243938.tar.bz2 located at the repository is not fine. I was unable to build MLO file with that file. Comparing with the git repository (https://git.gitorious.org/x-load-omap3/mainline.git), I could find the ift target. Best regards, Flavio Flavio de Castro Alves Filho Phi Innovations www.phiinnovations.com Phone: +55 19 3709 1358 Mobile: +55 19 9823 9332 Skype: flavio.de.castro.alves.filho 2010/8/6 Stephan Linz l...@li-pro.net Am Freitag, 6. August 2010, um 09:20:17 schrieb Marc Kleine-Budde: ---snip-- tnx, pushed to master. but, crap, it doesn't work :(...see inline comments: --snip-- +X_LOAD_MAKE_OPT:= CROSS_COMPILE=$(BOOTLOADER_CROSS_COMPILE) HOSTCC=$(HOSTCC) +X_LOAD_MAKE_PAR := NO + +$(STATEDIR)/x-load.prepare: + @$(call targetinfo) + @$(call compile, X_LOAD, $(PTXCONF_X_LOAD_CONFIG)) I think the second parameter overwrites _MAKE_OPT. I'm not sure why it does this, looks like a bug. It should be fixed, but that requires some time and testing... However I can work around this limitation by changing _MAKE_OPT to _MAKE_ENV. This surprises me because it has properly compiled for me I'll push this fix. tnx a lot. I'll try out your fix. Give me a hint (here). -- Viele Grüße, Stephan Linz __ OpenDCC: http://www.li-pro.net/opendcc.phtml PC/M: http://www.li-pro.net/pcm.phtml CDK4AVR: http://cdk4avr.sourceforge.net/ CDK4NIOS: http://cdk4nios.sourceforge.net/ CDK4MSP: http://cdk4msp.sourceforge.net/ CPM4L: http://download.opensuse.org/repositories/home:/rexut:/CPM4L -- ptxdist mailing list ptxdist@pengutronix.de -- ptxdist mailing list ptxdist@pengutronix.de
Re: [ptxdist] [PATCH 1/1] add new packet x-load
Stephan Linz wrote: x-load is a first level bootloader for Texas Intruments OMAP microprocessors (similar to the AT91Bootstrap application). This bootstrap package is required on TI OMAP boards where dataflash/nandflash or USB/RS232 is used to boot from. In any of these cases the internal bootROM of the OMAP core is used to boot the board with. tnx, pushed to master. but, crap, it doesn't work :(...see inline comments: Signed-off-by: Stephan Linz l...@li-pro.net --- platforms/x-load.in | 51 ++ rules/x-load.make | 85 +++ 2 files changed, 136 insertions(+), 0 deletions(-) create mode 100644 platforms/x-load.in create mode 100644 rules/x-load.make diff --git a/platforms/x-load.in b/platforms/x-load.in new file mode 100644 index 000..b6840a1 --- /dev/null +++ b/platforms/x-load.in @@ -0,0 +1,51 @@ +## SECTION=bootloader + +menuconfig X_LOAD + bool + depends on ARCH_ARM_OMAP + prompt x-loader + help + The X-Loader is a first level bootloader for Texas Intruments OMAP + microprocessors (similar to the AT91Bootstrap application). It is + used for booting these microprocessors from NAND-flash, MMC/SD-card, + USB or serial interfaces. + +if X_LOAD + +config X_LOAD_VERSION + string + default f243938 + prompt x-loader version + help + Enter the X-Loader version you want to build. Usally something like 1.4.2 + + NOTICE: The X-Loader source tree was never released as download archive. + As long as that fact exists you can use the archived tarballs at: + + http://www.ptxdist.org/software/ptxdist/temporary-src/ + + or have to store a local tarball inside your ptxdist project root at: + + ${PTXDIST_WORKSPACE}/local_src/ + +config X_LOAD_CONFIG + string + prompt x-loader config target + help + The X-Loader make config target. Usually something like + yourbox_config. See X-Loader's main Makefile for possible + configuration targets. + +config X_LOAD_MAKE_IFT + bool + prompt generate signed ift file + help + When this option is enabled, a so-called IFT file is generated. You + need a X-Loader source tree that supports this. This must know about + the make target 'ift' so ptxdist can do the following: make ift. + + In details you will need the tool signGP from + http://beagleboard.googlecode.com/files/signGP.c + +endif + diff --git a/rules/x-load.make b/rules/x-load.make new file mode 100644 index 000..7ec445d --- /dev/null +++ b/rules/x-load.make @@ -0,0 +1,85 @@ +# -*-makefile-*- +# +# Copyright (C) 2010 by Stephan Linz +# +# See CREDITS for details about who has contributed to this project. +# +# For further information about the PTXdist project and license conditions +# see the README file. +# + +# +# We provide this package +# +PACKAGES-$(PTXCONF_X_LOAD) += x-load + +# +# Paths and names +# +X_LOAD_VERSION := $(call remove_quotes,$(PTXCONF_X_LOAD_VERSION)) +X_LOAD := x-load-$(X_LOAD_VERSION) +X_LOAD_SUFFIX:= tar.bz2 +X_LOAD_URL := http://www.ptxdist.org/software/ptxdist/temporary-src/$(X_LOAD).$(X_LOAD_SUFFIX) +X_LOAD_SOURCE:= $(SRCDIR)/$(X_LOAD).$(X_LOAD_SUFFIX) +X_LOAD_DIR := $(BUILDDIR)/$(X_LOAD) + +# +# Prepare +# + +X_LOAD_MAKE_OPT := CROSS_COMPILE=$(BOOTLOADER_CROSS_COMPILE) HOSTCC=$(HOSTCC) +X_LOAD_MAKE_PAR := NO + +$(STATEDIR)/x-load.prepare: + @$(call targetinfo) + @$(call compile, X_LOAD, $(PTXCONF_X_LOAD_CONFIG)) I think the second parameter overwrites _MAKE_OPT. I'm not sure why it does this, looks like a bug. It should be fixed, but that requires some time and testing... However I can work around this limitation by changing _MAKE_OPT to _MAKE_ENV. I'll push this fix. + @$(call touch) + +# +# Compile +# + +ifdef PTXCONF_X_LOAD_MAKE_IFT +X_LOAD_BUILD_TARGETS += ift +endif + +X_LOAD_BUILD_TARGETS += all + +$(STATEDIR)/x-load.compile: + @$(call targetinfo) +ifneq ($(strip $(X_LOAD_BUILD_TARGETS)), ) + @$(call compile, X_LOAD, $(X_LOAD_BUILD_TARGETS)) +endif + @$(call touch) + +# +# Install +# + +$(STATEDIR)/x-load.install: + @$(call targetinfo) + @$(call touch) + +#
[ptxdist] [PATCH 1/1] add new packet x-load
x-load is a first level bootloader for Texas Intruments OMAP microprocessors (similar to the AT91Bootstrap application). This bootstrap package is required on TI OMAP boards where dataflash/nandflash or USB/RS232 is used to boot from. In any of these cases the internal bootROM of the OMAP core is used to boot the board with. Signed-off-by: Stephan Linz l...@li-pro.net --- platforms/x-load.in | 51 +++ rules/x-load.make | 94 +++ 2 files changed, 145 insertions(+), 0 deletions(-) create mode 100644 platforms/x-load.in create mode 100644 rules/x-load.make diff --git a/platforms/x-load.in b/platforms/x-load.in new file mode 100644 index 000..b6840a1 --- /dev/null +++ b/platforms/x-load.in @@ -0,0 +1,51 @@ +## SECTION=bootloader + +menuconfig X_LOAD + bool + depends on ARCH_ARM_OMAP + prompt x-loader + help + The X-Loader is a first level bootloader for Texas Intruments OMAP + microprocessors (similar to the AT91Bootstrap application). It is + used for booting these microprocessors from NAND-flash, MMC/SD-card, + USB or serial interfaces. + +if X_LOAD + +config X_LOAD_VERSION + string + default f243938 + prompt x-loader version + help + Enter the X-Loader version you want to build. Usally something like 1.4.2 + + NOTICE: The X-Loader source tree was never released as download archive. + As long as that fact exists you can use the archived tarballs at: + + http://www.ptxdist.org/software/ptxdist/temporary-src/ + + or have to store a local tarball inside your ptxdist project root at: + + ${PTXDIST_WORKSPACE}/local_src/ + +config X_LOAD_CONFIG + string + prompt x-loader config target + help + The X-Loader make config target. Usually something like + yourbox_config. See X-Loader's main Makefile for possible + configuration targets. + +config X_LOAD_MAKE_IFT + bool + prompt generate signed ift file + help + When this option is enabled, a so-called IFT file is generated. You + need a X-Loader source tree that supports this. This must know about + the make target 'ift' so ptxdist can do the following: make ift. + + In details you will need the tool signGP from + http://beagleboard.googlecode.com/files/signGP.c + +endif + diff --git a/rules/x-load.make b/rules/x-load.make new file mode 100644 index 000..d316611 --- /dev/null +++ b/rules/x-load.make @@ -0,0 +1,94 @@ +# -*-makefile-*- +# +# Copyright (C) 2010 by Stephan Linz +# +# See CREDITS for details about who has contributed to this project. +# +# For further information about the PTXdist project and license conditions +# see the README file. +# + +# +# We provide this package +# +PACKAGES-$(PTXCONF_X_LOAD) += x-load + +# +# Paths and names +# +X_LOAD_VERSION := $(call remove_quotes,$(PTXCONF_X_LOAD_VERSION)) +X_LOAD := x-load-$(X_LOAD_VERSION) +X_LOAD_SUFFIX := tar.bz2 +X_LOAD_URL := http://www.ptxdist.org/software/ptxdist/temporary-src/$(X_LOAD).$(X_LOAD_SUFFIX) +X_LOAD_SOURCE := $(SRCDIR)/$(X_LOAD).$(X_LOAD_SUFFIX) +X_LOAD_DIR := $(BUILDDIR)/$(X_LOAD) + +# +# Get +# + +$(X_LOAD_SOURCE): + @$(call targetinfo) + @$(call get, X_LOAD) + +# +# Prepare +# + +X_LOAD_PATH:= PATH=$(CROSS_PATH) +X_LOAD_MAKE_OPT:= CROSS_COMPILE=$(BOOTLOADER_CROSS_COMPILE) HOSTCC=$(HOSTCC) +X_LOAD_MAKE_PAR:= NO + +$(STATEDIR)/x-load.prepare: + @$(call targetinfo) + @$(call compile, X_LOAD, $(PTXCONF_X_LOAD_CONFIG)) + @$(call touch) + +# +# Compile +# + +ifdef PTXCONF_X_LOAD_MAKE_IFT +X_LOAD_BUILD_TARGETS += ift +endif + +X_LOAD_BUILD_TARGETS += all + +$(STATEDIR)/x-load.compile: + @$(call targetinfo) +ifneq ($(strip $(X_LOAD_BUILD_TARGETS)), ) + @$(call compile, X_LOAD, $(X_LOAD_BUILD_TARGETS)) +endif + @$(call touch) + +# +# Install +# + +$(STATEDIR)/x-load.install: + @$(call targetinfo) + @$(call touch) + +# +# Target-Install +# + +$(STATEDIR)/x-load.targetinstall: + @$(call
[ptxdist] [PATCH 1/1] add new packet x-load
x-load is a first level bootloader for Texas Intruments OMAP microprocessors (similar to the AT91Bootstrap application). This bootstrap package is required on TI OMAP boards where dataflash/nandflash or USB/RS232 is used to boot from. In any of these cases the internal bootROM of the OMAP core is used to boot the board with. Signed-off-by: Stephan Linz l...@li-pro.net --- platforms/x-load.in | 51 +++ rules/x-load.make | 94 +++ 2 files changed, 145 insertions(+), 0 deletions(-) create mode 100644 platforms/x-load.in create mode 100644 rules/x-load.make diff --git a/platforms/x-load.in b/platforms/x-load.in new file mode 100644 index 000..b6840a1 --- /dev/null +++ b/platforms/x-load.in @@ -0,0 +1,51 @@ +## SECTION=bootloader + +menuconfig X_LOAD + bool + depends on ARCH_ARM_OMAP + prompt x-loader + help + The X-Loader is a first level bootloader for Texas Intruments OMAP + microprocessors (similar to the AT91Bootstrap application). It is + used for booting these microprocessors from NAND-flash, MMC/SD-card, + USB or serial interfaces. + +if X_LOAD + +config X_LOAD_VERSION + string + default f243938 + prompt x-loader version + help + Enter the X-Loader version you want to build. Usally something like 1.4.2 + + NOTICE: The X-Loader source tree was never released as download archive. + As long as that fact exists you can use the archived tarballs at: + + http://www.ptxdist.org/software/ptxdist/temporary-src/ + + or have to store a local tarball inside your ptxdist project root at: + + ${PTXDIST_WORKSPACE}/local_src/ + +config X_LOAD_CONFIG + string + prompt x-loader config target + help + The X-Loader make config target. Usually something like + yourbox_config. See X-Loader's main Makefile for possible + configuration targets. + +config X_LOAD_MAKE_IFT + bool + prompt generate signed ift file + help + When this option is enabled, a so-called IFT file is generated. You + need a X-Loader source tree that supports this. This must know about + the make target 'ift' so ptxdist can do the following: make ift. + + In details you will need the tool signGP from + http://beagleboard.googlecode.com/files/signGP.c + +endif + diff --git a/rules/x-load.make b/rules/x-load.make new file mode 100644 index 000..d316611 --- /dev/null +++ b/rules/x-load.make @@ -0,0 +1,94 @@ +# -*-makefile-*- +# +# Copyright (C) 2010 by Stephan Linz +# +# See CREDITS for details about who has contributed to this project. +# +# For further information about the PTXdist project and license conditions +# see the README file. +# + +# +# We provide this package +# +PACKAGES-$(PTXCONF_X_LOAD) += x-load + +# +# Paths and names +# +X_LOAD_VERSION := $(call remove_quotes,$(PTXCONF_X_LOAD_VERSION)) +X_LOAD := x-load-$(X_LOAD_VERSION) +X_LOAD_SUFFIX := tar.bz2 +X_LOAD_URL := http://www.ptxdist.org/software/ptxdist/temporary-src/$(X_LOAD).$(X_LOAD_SUFFIX) +X_LOAD_SOURCE := $(SRCDIR)/$(X_LOAD).$(X_LOAD_SUFFIX) +X_LOAD_DIR := $(BUILDDIR)/$(X_LOAD) + +# +# Get +# + +$(X_LOAD_SOURCE): + @$(call targetinfo) + @$(call get, X_LOAD) + +# +# Prepare +# + +X_LOAD_PATH:= PATH=$(CROSS_PATH) +X_LOAD_MAKE_OPT:= CROSS_COMPILE=$(BOOTLOADER_CROSS_COMPILE) HOSTCC=$(HOSTCC) +X_LOAD_MAKE_PAR:= NO + +$(STATEDIR)/x-load.prepare: + @$(call targetinfo) + @$(call compile, X_LOAD, $(PTXCONF_X_LOAD_CONFIG)) + @$(call touch) + +# +# Compile +# + +ifdef PTXCONF_X_LOAD_MAKE_IFT +X_LOAD_BUILD_TARGETS += ift +endif + +X_LOAD_BUILD_TARGETS += all + +$(STATEDIR)/x-load.compile: + @$(call targetinfo) +ifneq ($(strip $(X_LOAD_BUILD_TARGETS)), ) + @$(call compile, X_LOAD, $(X_LOAD_BUILD_TARGETS)) +endif + @$(call touch) + +# +# Install +# + +$(STATEDIR)/x-load.install: + @$(call targetinfo) + @$(call touch) + +# +# Target-Install +# + +$(STATEDIR)/x-load.targetinstall: + @$(call
Re: [ptxdist] [PATCH 1/1] add new packet x-load
On Thu, Aug 05, 2010 at 06:40:19PM +0200, Marc Kleine-Budde wrote: can you send me the x-load tarball as mail? I already uploaded them to temporary-src. rsc -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0| Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917- | -- ptxdist mailing list ptxdist@pengutronix.de
[ptxdist] [PATCH 1/1] add new packet x-load
x-load is a first level bootloader for Texas Intruments OMAP microprocessors (similar to the AT91Bootstrap application). This bootstrap package is required on TI OMAP boards where dataflash/nandflash or USB/RS232 is used to boot from. In any of these cases the internal bootROM of the OMAP core is used to boot the board with. Signed-off-by: Stephan Linz l...@li-pro.net --- platforms/x-load.in | 51 ++ rules/x-load.make | 85 +++ 2 files changed, 136 insertions(+), 0 deletions(-) create mode 100644 platforms/x-load.in create mode 100644 rules/x-load.make diff --git a/platforms/x-load.in b/platforms/x-load.in new file mode 100644 index 000..b6840a1 --- /dev/null +++ b/platforms/x-load.in @@ -0,0 +1,51 @@ +## SECTION=bootloader + +menuconfig X_LOAD + bool + depends on ARCH_ARM_OMAP + prompt x-loader + help + The X-Loader is a first level bootloader for Texas Intruments OMAP + microprocessors (similar to the AT91Bootstrap application). It is + used for booting these microprocessors from NAND-flash, MMC/SD-card, + USB or serial interfaces. + +if X_LOAD + +config X_LOAD_VERSION + string + default f243938 + prompt x-loader version + help + Enter the X-Loader version you want to build. Usally something like 1.4.2 + + NOTICE: The X-Loader source tree was never released as download archive. + As long as that fact exists you can use the archived tarballs at: + + http://www.ptxdist.org/software/ptxdist/temporary-src/ + + or have to store a local tarball inside your ptxdist project root at: + + ${PTXDIST_WORKSPACE}/local_src/ + +config X_LOAD_CONFIG + string + prompt x-loader config target + help + The X-Loader make config target. Usually something like + yourbox_config. See X-Loader's main Makefile for possible + configuration targets. + +config X_LOAD_MAKE_IFT + bool + prompt generate signed ift file + help + When this option is enabled, a so-called IFT file is generated. You + need a X-Loader source tree that supports this. This must know about + the make target 'ift' so ptxdist can do the following: make ift. + + In details you will need the tool signGP from + http://beagleboard.googlecode.com/files/signGP.c + +endif + diff --git a/rules/x-load.make b/rules/x-load.make new file mode 100644 index 000..7ec445d --- /dev/null +++ b/rules/x-load.make @@ -0,0 +1,85 @@ +# -*-makefile-*- +# +# Copyright (C) 2010 by Stephan Linz +# +# See CREDITS for details about who has contributed to this project. +# +# For further information about the PTXdist project and license conditions +# see the README file. +# + +# +# We provide this package +# +PACKAGES-$(PTXCONF_X_LOAD) += x-load + +# +# Paths and names +# +X_LOAD_VERSION := $(call remove_quotes,$(PTXCONF_X_LOAD_VERSION)) +X_LOAD := x-load-$(X_LOAD_VERSION) +X_LOAD_SUFFIX := tar.bz2 +X_LOAD_URL := http://www.ptxdist.org/software/ptxdist/temporary-src/$(X_LOAD).$(X_LOAD_SUFFIX) +X_LOAD_SOURCE := $(SRCDIR)/$(X_LOAD).$(X_LOAD_SUFFIX) +X_LOAD_DIR := $(BUILDDIR)/$(X_LOAD) + +# +# Prepare +# + +X_LOAD_MAKE_OPT:= CROSS_COMPILE=$(BOOTLOADER_CROSS_COMPILE) HOSTCC=$(HOSTCC) +X_LOAD_MAKE_PAR:= NO + +$(STATEDIR)/x-load.prepare: + @$(call targetinfo) + @$(call compile, X_LOAD, $(PTXCONF_X_LOAD_CONFIG)) + @$(call touch) + +# +# Compile +# + +ifdef PTXCONF_X_LOAD_MAKE_IFT +X_LOAD_BUILD_TARGETS += ift +endif + +X_LOAD_BUILD_TARGETS += all + +$(STATEDIR)/x-load.compile: + @$(call targetinfo) +ifneq ($(strip $(X_LOAD_BUILD_TARGETS)), ) + @$(call compile, X_LOAD, $(X_LOAD_BUILD_TARGETS)) +endif + @$(call touch) + +# +# Install +# + +$(STATEDIR)/x-load.install: + @$(call targetinfo) + @$(call touch) + +# +# Target-Install +# + +$(STATEDIR)/x-load.targetinstall: + @$(call targetinfo) + @install -D -m644 $(X_LOAD_DIR)/x-load.bin $(IMAGEDIR)/x-load.bin +ifdef PTXCONF_X_LOAD_MAKE_IFT + @install -D -m644 $(X_LOAD_DIR)/x-load.bin.ift $(IMAGEDIR)/x-load.bin.ift + @install -D -m644 $(X_LOAD_DIR)/x-load.bin.ift $(IMAGEDIR)/MLO +endif +