Re: [U-Boot] [Nios2-dev] [PATCH] nios2: use gc sections to reduce image size
On 28/05/10 23:27, Thomas Chou wrote: > Ian Abbott wrote: >> On 28/05/2010 05:08, Thomas Chou wrote: >>> Follow the discussion of Charles Manning and Mike Frysinger. >>> Using gc_sections helps reduce image size. >> Hi Thomas, >> >> Will that stop it working with the gcc3-based nios2 nommu toolchain? >> The version of 'ld' in that toolchain doesn't support the --gc-sections >> option. >> > > Hi Ian, > > I have tested with the gcc3-based nios2 nommu toolchain and gc-sections > works. > > The error that we met when building busybox might be caused by the > elf2flt process. There is no such problem generating elf. Hi Thomas, That was probably it then. I *knew* we had some problem building BusyBox with --gc-sections! -- -=( Ian Abbott @ MEV Ltd.E-mail: )=- -=( Tel: +44 (0)161 477 1898 FAX: +44 (0)161 718 3587 )=- ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
Re: [U-Boot] [Nios2-dev] [PATCH] nios2: use gc sections to reduce image size
On 28/05/2010 05:08, Thomas Chou wrote: > Follow the discussion of Charles Manning and Mike Frysinger. > Using gc_sections helps reduce image size. > > Configuring for nios2-generic board... > Before, >textdata bss dec hex filename > 1239793724 22892 150595 24c43 /tmp/u-boot/u-boot > After, >textdata bss dec hex filename > 1159833800 22732 142515 22cb3 /tmp/u-boot/u-boot > > Signed-off-by: Thomas Chou > --- > arch/nios2/config.mk |3 +++ > 1 files changed, 3 insertions(+), 0 deletions(-) > > diff --git a/arch/nios2/config.mk b/arch/nios2/config.mk > index 793cc43..aba96b3 100644 > --- a/arch/nios2/config.mk > +++ b/arch/nios2/config.mk > @@ -31,2 +31,5 @@ PLATFORM_CPPFLAGS += -DCONFIG_NIOS2 -D__NIOS2__ > > LDSCRIPT ?= $(SRCTREE)/$(CPUDIR)/u-boot.lds > + > +LDFLAGS += --gc-sections > +PLATFORM_RELFLAGS += -ffunction-sections -fdata-sections Hi Thomas, Will that stop it working with the gcc3-based nios2 nommu toolchain? The version of 'ld' in that toolchain doesn't support the --gc-sections option. -- -=( Ian Abbott @ MEV Ltd.E-mail: )=- -=( Tel: +44 (0)161 477 1898 FAX: +44 (0)161 718 3587 )=- ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
Re: [U-Boot] [Nios2-dev] [PATCH 4/6 v10] spi: add altera spi controller support
On 30/04/10 04:34, Thomas Chou wrote: > This patch adds the driver of altera spi controller, which is > used as epcs/spi flash controller. It also works with mmc_spi > driver. > > This driver support more than one spi bus, with base list declared > #define CONFIG_SYS_ALTERA_SPI_LIST { BASE_0,BASE_1,... } > > Signed-off-by: Thomas Chou Tested with EPCS64N flash chip on Altera 2C35 development board. Tested-by: Ian Abbott -- -=( Ian Abbott @ MEV Ltd.E-mail: )=- -=( Tel: +44 (0)161 477 1898 FAX: +44 (0)161 718 3587 )=- ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
Re: [U-Boot] [Nios2-dev] [PATCH 6/6 v3] nios2: add spi flash support to nios2-generic board
On 30/04/10 04:34, Thomas Chou wrote: > This patch enables the altera_spi and spi_flash drivers for the > nios2-generic board. It allows access to the EPCS/SPI flash on > the Altera EP1C20 board. > > Signed-off-by: Thomas Chou Tested with EPCS64N flash chip on Altera 2C35 development board. Tested-by: Ian Abbott -- -=( Ian Abbott @ MEV Ltd.E-mail: )=- -=( Tel: +44 (0)161 477 1898 FAX: +44 (0)161 718 3587 )=- ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
Re: [U-Boot] [Nios2-dev] [PATCH 3/6 v3] nios2: add gpio support to nios2-generic board
On 30/04/10 04:34, Thomas Chou wrote: > This patch adds gpio support of Altera PIO component to the > nios2-generic board. Though it drives only gpio_led at the > moment, it supports bidirectional port to control bit-banging > I2C, NAND flash busy status or button switches, etc. > > Signed-off-by: Thomas Chou Tested with LED on Altera 2C35 development board. Tested-by: Ian Abbott -- -=( Ian Abbott @ MEV Ltd.E-mail: )=- -=( Tel: +44 (0)161 477 1898 FAX: +44 (0)161 718 3587 )=- ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
Re: [U-Boot] [Nios2-dev] [PATCH 2/6 v2] misc: add gpio based status led driver
On 30/04/10 04:34, Thomas Chou wrote: > This patch adds a status led driver followed the GPIO access > conventions of Linux. The led mask is used to specify the gpio pin. > > Signed-off-by: Thomas Chou Tested on Altera 2C35 development board. Tested-by: Ian Abbott -- -=( Ian Abbott @ MEV Ltd.E-mail: )=- -=( Tel: +44 (0)161 477 1898 FAX: +44 (0)161 718 3587 )=- ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
Re: [U-Boot] [Nios2-dev] [PATCH 1/6 v4] nios2: add gpio support
On 30/04/10 04:34, Thomas Chou wrote: > This patch adds driver for a trivial gpio core, which is described > in http://nioswiki.com/GPIO. It is used for gpio led and nand flash > interface in u-boot. > > When CONFIG_SYS_GPIO_BASE is not defined, board may provide > its own driver. > > Signed-off-by: Thomas Chou Tested with LED on Altera 2C35 development board. Tested-by: Ian Abbott -- -=( Ian Abbott @ MEV Ltd.E-mail: )=- -=( Tel: +44 (0)161 477 1898 FAX: +44 (0)161 718 3587 )=- ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot