Re: Shall 'bmp' uncompress automagically?

2012-03-12 Thread Jean-Christophe PLAGNIOL-VILLARD
On 23:10 Sat 10 Mar , Wolfram Sang wrote: > Hi, > > since we have 'file_detect_type' in barebox, we could use it to automagically > uncompress BMP files. Pseudo-code: > > if (file_detect_type(bmp) != BMP) { > /* No BMP? Try to depack stream */ > ret = uncompress(bmp, unpacked_bmp)

Re: [PATCH 1/1] net: dhcp: allow to set transmitted vendor id

2012-03-12 Thread Sascha Hauer
On Thu, Mar 08, 2012 at 03:03:26PM +0100, Jean-Christophe PLAGNIOL-VILLARD wrote: > From: Enrico Scholz > > For net boot setups it is useful to submit boot params like server or > bootfile over dhcp. To distinguish barebox from e.g. pxe machines, > a custom vendor id can be sent in dhcp discover

[PATCH] drivers/mtd: improve docg3 write speed

2012-03-12 Thread Robert Jarzmik
When programming or erasing a page, don't wait systematically for 3s, but finish the operation as soon as the hardware has finished, and timeout if 3 seconds have passed. Signed-off-by: Robert Jarzmik --- drivers/mtd/devices/docg3.c |5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-)

[PATCH v2] NET: Add support for ks8851_mll

2012-03-12 Thread Jan Weitzel
Add support for KS8851 16bit MLL chip from Micrel Inc. Signed-off-by: Jan Weitzel --- v2: use dev_* for messages drivers/base/resource.c | 33 ++ drivers/net/Kconfig |7 + drivers/net/Makefile |1 + drivers/net/ks8851_mll.c | 892

Re: [RFC V2 0/6] barebox PCI support

2012-03-12 Thread Sascha Hauer
Hi Antony, On Thu, Mar 08, 2012 at 11:50:26PM +0400, Antony Pavlov wrote: > This patch series introduce PCI support to barebox. > > Thanks to Jean-Christophe PLAGNIOL-VILLARD for reviewing and adding > some PCI common code. > > The patches are draft. They need a very big future work, so I put on

[PATCH 01/14] macb: fix mmu support

2012-03-12 Thread Jean-Christophe PLAGNIOL-VILLARD
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- drivers/net/macb.c |8 +--- 1 files changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers/net/macb.c b/drivers/net/macb.c index ab0d1af..48492e5 100644 --- a/drivers/net/macb.c +++ b/drivers/net/macb.c @@ -50,6 +50,7 @@ #includ

[PATCH 06/14] at91sam9261ek/9g10ek: update partition layout

2012-03-12 Thread Jean-Christophe PLAGNIOL-VILLARD
Update partition layout to be able to boot from nand with the bootstrap. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- arch/arm/boards/at91sam9261ek/env/config |4 ++-- arch/arm/boards/at91sam9261ek/init.c |8 ++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --gi

[PATCH 00/14] Atmel ref board update

2012-03-12 Thread Jean-Christophe PLAGNIOL-VILLARD
Hi, The following patch sereis update the Atmel reference board support with - MMU Support - USB Device - DFU - USB Gadget Serial - GPIO Keyboard - LEDS - of boot please pull The following changes since commit e0d6747

[PATCH 05/14] at91sam9263ek: update defconfig

2012-03-12 Thread Jean-Christophe PLAGNIOL-VILLARD
- set max size to 256KiB - enable MMU - bootm: enable oftree and initrd support - nand: drop non used hw ecc Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- arch/arm/configs/at91sam9263ek_defconfig | 17 +++-- 1 files changed, 15 insertions(+), 2 deletions(-) diff --git a/

[PATCH 07/14] at91sam9261ek/9g10ek: add leds support

2012-03-12 Thread Jean-Christophe PLAGNIOL-VILLARD
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- arch/arm/boards/at91sam9261ek/init.c | 38 ++ arch/arm/configs/at91sam9261ek_defconfig |5 arch/arm/configs/at91sam9g10ek_defconfig |5 3 files changed, 48 insertions(+), 0 deletions(-) diff -

[PATCH 13/14] at91sam9m10g45ek: update defconfig

2012-03-12 Thread Jean-Christophe PLAGNIOL-VILLARD
- use tslf - bootm: enable oftree and uimage support - enable mmu support - drop cfi support (no nor on the board) Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- arch/arm/configs/at91sam9m10g45ek_defconfig | 27 +++ 1 files changed, 19 insertions(+), 8 deletion

[PATCH 12/14] at91sam9m10g45ek: add leds support

2012-03-12 Thread Jean-Christophe PLAGNIOL-VILLARD
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- arch/arm/boards/at91sam9m10g45ek/init.c | 37 +++ arch/arm/configs/at91sam9m10g45ek_defconfig |5 +++ 2 files changed, 42 insertions(+), 0 deletions(-) diff --git a/arch/arm/boards/at91sam9m10g45ek/init.c b/ar

serial S3: fix local structure malloc

2012-03-12 Thread Juergen Beisert
Patch 2c5404651091e985c9009aa417d80fdaf50d7a68 introduces a private structure for the S3C based UARTs but still reserves the memory for the smaller structure which fails at runtime. Signed-off-by: Juergen Beisert diff --git a/drivers/serial/serial_s3c.c b/drivers/serial/serial_s3c.c index a5

[PATCH 04/14] at91sam9263ek: add dfu and usb serial support

2012-03-12 Thread Jean-Christophe PLAGNIOL-VILLARD
if left_click is pressed 5s during boot enable dfu otherwise usbserial Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- arch/arm/boards/at91sam9263ek/env/bin/init_board | 51 ++ arch/arm/boards/at91sam9263ek/init.c | 29 arch/arm/configs/at91sa

[PATCH 03/14] at91sam9263ek: add leds support

2012-03-12 Thread Jean-Christophe PLAGNIOL-VILLARD
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- arch/arm/boards/at91sam9263ek/init.c | 31 ++ arch/arm/configs/at91sam9263ek_defconfig |5 2 files changed, 36 insertions(+), 0 deletions(-) diff --git a/arch/arm/boards/at91sam9263ek/init.c b/arch/ar

[PATCH 11/14] at91sam9m10g45ek: update partition layout

2012-03-12 Thread Jean-Christophe PLAGNIOL-VILLARD
This will allow to boot from nand with the bootstrap. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- arch/arm/boards/at91sam9m10g45ek/env/config |4 ++-- arch/arm/boards/at91sam9m10g45ek/init.c |9 +++-- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/arch/arm

[PATCH 02/14] at91sam9263ek: add runtime nor detection

2012-03-12 Thread Jean-Christophe PLAGNIOL-VILLARD
most of the board does not have a nor soldered update the nand partition table to boot from nand with bootstrap Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- arch/arm/boards/at91sam9263ek/env/config |6 +++--- arch/arm/boards/at91sam9263ek/init.c | 23 ++- 2

[PATCH 00/14] Atmel Reference Board Update

2012-03-12 Thread Jean-Christophe PLAGNIOL-VILLARD
Hi, This patch serie update the support of the Atmel Reference Board with - MMU - USB device - DFU - USB Gadget Serial - LEDS - gpio Keyboard Please pull The following changes since commit e0d674735b26c279d4cb6c73c140f1e0866a7953:

[PATCH 08/14] at91sam9261ek/9g10ek: add dfu and usb serial support

2012-03-12 Thread Jean-Christophe PLAGNIOL-VILLARD
if bp3 is pressed 5s during boot enable dfu otherwise usbserial Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- arch/arm/boards/at91sam9261ek/env/bin/init_board | 51 ++ arch/arm/boards/at91sam9261ek/init.c | 26 +++ arch/arm/configs/at91sam9261ek_

[PATCH 10/14] at91sam9261ek/9g10ek: update board supprt

2012-03-12 Thread Jean-Christophe PLAGNIOL-VILLARD
update fancy prompt to be the same as the other Atmel board use the same feature on 9g10ek and 9261ek - use tlsf - enable MMU - set max size to 256KiB - bootm: add initrd support - nand: drop non used hw ecc and oob device Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- arch/arm/boar

[PATCH 14/14] at91sam9260ek/9g20ek: update defconfig

2012-03-12 Thread Jean-Christophe PLAGNIOL-VILLARD
- enable MMU support - set max size to 256KiB Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- arch/arm/configs/at91sam9260ek_defconfig |3 ++- arch/arm/configs/at91sam9g20ek_defconfig |3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/arch/arm/configs/at91sam926

[PATCH] ENV: remove kernelimage_type from env/config

2012-03-12 Thread Jan Weitzel
drop kernelimage_type bootm now boots all of them. Signed-off-by: Jan Weitzel --- arch/arm/boards/at91sam9260ek/env/config |5 - arch/openrisc/boards/generic/env/config |1 - 2 files changed, 0 insertions(+), 6 deletions(-) diff --git a/arch/arm/boards/at91sam9260ek/env/config b/a

[PATCH v2] omap: add support for phycard-a-xl2

2012-03-12 Thread Jan Weitzel
Support for omap4 based Phytec phyCARD-A-XL2 board Signed-off-by: Jan Weitzel --- v2: remove kernelimage_type from env use CONFIG_THUMB2_BAREBOX for MLO move noinline keyword between storage class and type arch/arm/Makefile |1 + arch/arm/boards/phyc

[PATCH 09/14] at91sam9261ek/9g10ek: add gpio Keyboard support

2012-03-12 Thread Jean-Christophe PLAGNIOL-VILLARD
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- arch/arm/boards/at91sam9261ek/init.c | 39 ++ arch/arm/configs/at91sam9261ek_defconfig |1 + arch/arm/configs/at91sam9g10ek_defconfig |1 + 3 files changed, 41 insertions(+), 0 deletions(-) diff --git a

[PATCH] imx_nand_load_image: change all users to use barebox_image_size

2012-03-12 Thread Michael Grzeschik
Signed-off-by: Michael Grzeschik --- arch/arm/boards/eukrea_cpuimx25/eukrea_cpuimx25.c |3 ++- arch/arm/boards/eukrea_cpuimx25/lowlevel.c|3 ++- arch/arm/boards/eukrea_cpuimx27/eukrea_cpuimx27.c |3 ++- arch/arm/boards/eukrea_cpuimx35/lowlevel.c|3 ++- arch/arm/boa

Re: [RFC V2 5/6] net: add Realtek 8139 Ethernet controller support

2012-03-12 Thread Sascha Hauer
On Thu, Mar 08, 2012 at 11:50:31PM +0400, Antony Pavlov wrote: > This driver is based on Linux 2.6.39 8139too driver. > > + > +static void rtl8139_chip_reset(struct rtl8139_priv *priv) > +{ > + int i; > + > +#ifdef RTL8139_DEBUG > + printf("rtl8139_chip_reset()\n"); > +#endif Please use d

Shall 'bmp' uncompress automagically?

2012-03-12 Thread Wolfram Sang
Hi, since we have 'file_detect_type' in barebox, we could use it to automagically uncompress BMP files. Pseudo-code: if (file_detect_type(bmp) != BMP) { /* No BMP? Try to depack stream */ ret = uncompress(bmp, unpacked_bmp); if (ret < 0 || file_detect_type(unpacked_bmp) !=

Re: [RFC V2 1/6] PCI: initial commit (draft)

2012-03-12 Thread Sascha Hauer
On Thu, Mar 08, 2012 at 11:50:27PM +0400, Antony Pavlov wrote: > used shorten version of linux-2.6.39 pci_ids.h > > + > +static int pci_init(void) > +{ > + pcibios_init(); > + > + if (!pci_present()) { > + printf("PCI: No PCI bus detected\n"); > + return 0; > +