Re: [PATCH 1/1] bcm2835: move mci register at board level

2013-11-04 Thread Sascha Hauer
On Sun, Nov 03, 2013 at 08:30:44AM +0100, Alexander Aring wrote: On Sun, Nov 03, 2013 at 08:07:08AM +0100, Jean-Christophe PLAGNIOL-VILLARD wrote: not all board have a SD coard s/coard/card Applied and fixed typo. Sascha -- Pengutronix e.K. |

Re: [PATCH] don't scan bbt if CONFIG_NAND_BBT not set

2013-11-04 Thread Sascha Hauer
On Mon, Nov 04, 2013 at 11:36:49AM +0800, 张忠山 wrote: From: 张忠山 zzs0...@gmail.com when CONFIG_NAND_BBT not set, chip-scan_bbt is NULL and NAND_SKIP_BBTSCAN not set. So barebox crashed, this is the message .. nand: ONFI param page 0 valid nand: ONFI flash detected

barebox on i.MX53 in serial downloader boot mode

2013-11-04 Thread Wjatscheslaw Stoljarski (Slawa)
Hi, has anyone tried to start barebox on i.MX53 in 11 boot mode (serial downloader)? I've tried on Freescale Loco board with pmic da9053, but without success. In 00 boot mode (internal boot) works perfectly. U-Boot works in both modes. DCD in u-boot and in barebox is the same. Even I can

Re: barebox on i.MX53 in serial downloader boot mode

2013-11-04 Thread Eric Bénard
Hi, Le Mon, 04 Nov 2013 12:56:57 +0100, Wjatscheslaw Stoljarski (Slawa) wjatscheslaw.stoljar...@kiwigrid.com a écrit : has anyone tried to start barebox on i.MX53 in 11 boot mode (serial downloader)? I've tried on Freescale Loco board with pmic da9053, but without success. In 00 boot mode

[PATCH 06/11] fs: Add function to get cdev by mountpath

2013-11-04 Thread Sascha Hauer
This is useful to know for the bootloader spec implementation. Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- fs/fs.c | 13 + include/fs.h | 2 ++ 2 files changed, 15 insertions(+) diff --git a/fs/fs.c b/fs/fs.c index 7d558e9..4563a81 100644 --- a/fs/fs.c +++ b/fs/fs.c

bootspec work

2013-11-04 Thread Sascha Hauer
The bootloader spec defines a single /boot per device. This is very good for the general purpose distribution usecase. This extension is mostly useful for embedded systems (for which barebox was written). On embdedded systems we often have images which contain both a kernel and a rootfilesystem.

[PATCH 02/11] blspec: Push device_detect into blspec_scan_device

2013-11-04 Thread Sascha Hauer
Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- common/blspec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/blspec.c b/common/blspec.c index a564602..dd8ec4b 100644 --- a/common/blspec.c +++ b/common/blspec.c @@ -317,6 +317,8 @@ int

[PATCH 10/11] blspec: Make error message more clear

2013-11-04 Thread Sascha Hauer
Nothing found on is a bit unspecific. Make clear that no bootspec entry is found. Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- common/blspec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/blspec.c b/common/blspec.c index cfefd26..ec45f0b 100644 ---

[PATCH 04/11] blspec: Allow to boot partitions

2013-11-04 Thread Sascha Hauer
Instead of only allowing complete devices we now also allow single partitions to look for bootloader spec entries. Normally the bootloader spec defines a way to find a partition containing /boot on a device. On embedded systems it's often useful instead to have only a single partition image

[PATCH 07/11] blspec: make cdev optional

2013-11-04 Thread Sascha Hauer
the cdev for a given directory can be determined by get_cdev_by_mountpath(). Use this function and remove the cdev argument from blspec_scan_directory(). Also, export the function to make code possible which boots the bootloader spec entries found in directories. Signed-off-by: Sascha Hauer

[PATCH 03/11] blspec: rename _hwdevice functions to _devicename

2013-11-04 Thread Sascha Hauer
Since it's not necessarily the hardware device this seems to be a more appropriate name. Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- commands/boot.c | 2 +- common/blspec.c | 10 +- include/blspec.h | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git

[PATCH 09/11] boot command: make more flexible

2013-11-04 Thread Sascha Hauer
With this we can do 'boot name' where name is one of: - a filename under /env/boot/ - a full path to a boot script - a device name - a partition name under /dev/ - a full path to a directory which - contains boot scripts, or - contains a loader/entries/ directory containing bootspec

[PATCH 08/11] boot: Print boot entries in the order they are

2013-11-04 Thread Sascha Hauer
Instead of first printing the traditional entries and the bootloader spec entries afterwards. Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- commands/boot.c | 18 -- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/commands/boot.c b/commands/boot.c index

[PATCH 05/11] blspec: Let scan functions return the number of entries found

2013-11-04 Thread Sascha Hauer
So that callers can detect whether entries are found or not. Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- common/blspec.c | 53 + include/blspec.h | 2 +- 2 files changed, 34 insertions(+), 21 deletions(-) diff --git

[PATCH 01/11] kernel-install: Add missing error messages

2013-11-04 Thread Sascha Hauer
In some cases kernel-install can fail without printing anything. Add error messages for these cases. Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- scripts/kernel-install.c | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/scripts/kernel-install.c

[PATCH 11/11] boot command: Add timeout support for menu

2013-11-04 Thread Sascha Hauer
Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- commands/boot.c | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/commands/boot.c b/commands/boot.c index 1bec406..91766e0 100644 --- a/commands/boot.c +++ b/commands/boot.c @@ -21,6 +21,7 @@ #include blspec.h

Re: [PATCH 1/2] USB: i.MX: Make DT dr_mode phy_type parameters kernel compatible

2013-11-04 Thread Sascha Hauer
On Tue, Oct 29, 2013 at 01:59:17PM +0400, Alexander Shiyan wrote: Since the mainline kernel now has its own dr_mode and phy_type DT-options for setting modes of USB ports, do these kernel parameters compatible by removing barebox prefix. Signed-off-by: Alexander Shiyan shc_w...@mail.ru

Re: barebox on i.MX53 in serial downloader boot mode

2013-11-04 Thread Wjatscheslaw Stoljarski (Slawa)
On 11/04/2013 01:48 PM, Eric Bénard wrote: Hi, has anyone tried to start barebox on i.MX53 in 11 boot mode (serial downloader)? I've tried on Freescale Loco board with pmic da9053, but without success. In 00 boot mode (internal boot) works perfectly. U-Boot works in both modes. DCD in u-boot

Re: barebox on i.MX53 in serial downloader boot mode

2013-11-04 Thread Eric Bénard
Hi Wjatscheslaw, Le Mon, 04 Nov 2013 16:00:49 +0100, Wjatscheslaw Stoljarski (Slawa) wjatscheslaw.stoljar...@kiwigrid.com a écrit : On 11/04/2013 01:48 PM, Eric Bénard wrote: Hi, has anyone tried to start barebox on i.MX53 in 11 boot mode (serial downloader)? I've tried on Freescale Loco

Re: barebox on i.MX53 in serial downloader boot mode

2013-11-04 Thread Eric Bénard
Le Mon, 04 Nov 2013 17:04:46 +0100, Wjatscheslaw Stoljarski (Slawa) wjatscheslaw.stoljar...@kiwigrid.com a écrit : On 11/04/2013 04:07 PM, Eric Bénard wrote: Hi Wjatscheslaw, Le Mon, 04 Nov 2013 16:00:49 +0100, Wjatscheslaw Stoljarski (Slawa) wjatscheslaw.stoljar...@kiwigrid.com a

Re: barebox on i.MX53 in serial downloader boot mode

2013-11-04 Thread Wjatscheslaw Stoljarski (Slawa)
On 11/04/2013 04:07 PM, Eric Bénard wrote: Hi Wjatscheslaw, Le Mon, 04 Nov 2013 16:00:49 +0100, Wjatscheslaw Stoljarski (Slawa) wjatscheslaw.stoljar...@kiwigrid.com a écrit : On 11/04/2013 01:48 PM, Eric Bénard wrote: Hi, has anyone tried to start barebox on i.MX53 in 11 boot mode (serial

Re: barebox on i.MX53 in serial downloader boot mode

2013-11-04 Thread Wjatscheslaw Stoljarski (Slawa)
On 11/04/2013 05:06 PM, Eric Bénard wrote: Le Mon, 04 Nov 2013 17:04:46 +0100, Wjatscheslaw Stoljarski (Slawa) wjatscheslaw.stoljar...@kiwigrid.com a écrit : On 11/04/2013 04:07 PM, Eric Bénard wrote: Hi Wjatscheslaw, Le Mon, 04 Nov 2013 16:00:49 +0100, Wjatscheslaw Stoljarski (Slawa)

Re: [PATCH 4/5] ppc: DA923RC: add board support

2013-11-04 Thread Renaud Barbier
On 01/11/2013 20:28, Sascha Hauer wrote: I found a way to do it. This implies to: - register the i2c-imx driver at the postcore initcall level. - register the board i2c bus at the postcore initcall level and perform the rest of the board initialization. The i2c-imx driver is shared

Re: [PATCH 07/11] blspec: make cdev optional

2013-11-04 Thread Alexander Aring
Hi Sascha, On Mon, Nov 04, 2013 at 03:04:26PM +0100, Sascha Hauer wrote: - entry-me.display = asprintf(%-20s %-20s %s, devname, hwdevname, + entry-me.display = asprintf(%-20s %-20s %s, + devname ? devname : , +

[PATCH v2 2/6] gui: convert graphic utils to respect line_length

2013-11-04 Thread Andre Heider
Signed-off-by: Andre Heider a.hei...@gmail.com --- lib/gui/graphic_utils.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/gui/graphic_utils.c b/lib/gui/graphic_utils.c index 95687df..300c525 100644 --- a/lib/gui/graphic_utils.c +++ b/lib/gui/graphic_utils.c @@

[PATCH v2 5/6] video: add a BCM2835 framebuffer driver

2013-11-04 Thread Andre Heider
Use the mailbox driver to set up a framebuffer based on the firmware configuration. Signed-off-by: Andre Heider a.hei...@gmail.com --- arch/arm/boards/raspberry-pi/rpi.c| 1 + arch/arm/mach-bcm2835/include/mach/core.h | 5 ++ drivers/video/Kconfig | 6 ++

[PATCH v2 4/6] ARM: bcm2835: add missing mbox overscan response field

2013-11-04 Thread Andre Heider
Add the missing right field to struct bcm2835_mbox_tag_overscan. Signed-off-by: Andre Heider a.hei...@gmail.com --- arch/arm/mach-bcm2835/include/mach/mbox.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-bcm2835/include/mach/mbox.h b/arch/arm/mach-bcm2835/include/mach/mbox.h

[PATCH v2 1/6] fb: add a line_length value to struct fb_info

2013-11-04 Thread Andre Heider
Add support for framebuffers with noncontiguous horizontal lines. Video drivers can set this value if the hardware requires it. In case a driver does not set it, the current value of xres * (bpp / 8) is used instead. Signed-off-by: Andre Heider a.hei...@gmail.com --- drivers/video/fb.c | 11

[PATCH v2 3/6] gui: convert the bmp renderer to respect line_length

2013-11-04 Thread Andre Heider
Signed-off-by: Andre Heider a.hei...@gmail.com --- lib/gui/bmp.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/gui/bmp.c b/lib/gui/bmp.c index 6bf8cd0..dcf3095 100644 --- a/lib/gui/bmp.c +++ b/lib/gui/bmp.c @@ -78,8 +78,8 @@ static int bmp_renderer(struct screen

[PATCH v2 0/6] BCM2835 / simple framebuffer support

2013-11-04 Thread Andre Heider
This is v2 of my patch set posted on 10/24. It adds framebuffer support for the RPi and provides an additional config knob to set up the kernel's simplefb driver. The active barebox framebuffer is basis for that feature, so that other platforms can make use of it. This simplefb option depends on

Re: [PATCH v2 1/6] fb: add a line_length value to struct fb_info

2013-11-04 Thread Alexander Aring
On Tue, Nov 05, 2013 at 12:00:59AM +0100, Andre Heider wrote: Add support for framebuffers with noncontiguous horizontal lines. Video drivers can set this value if the hardware requires it. In case a driver does not set it, the current value of xres * (bpp / 8) is used instead.

Re: [PATCH 4/5] ppc: DA923RC: add board support

2013-11-04 Thread Sascha Hauer
On Mon, Nov 04, 2013 at 06:06:29PM +, Renaud Barbier wrote: On 01/11/2013 20:28, Sascha Hauer wrote: I found a way to do it. This implies to: - register the i2c-imx driver at the postcore initcall level. - register the board i2c bus at the postcore initcall level and perform the