[U-Boot] [PATCH v2 1/1] lib/display_options: Fix print_freq

2015-08-24 Thread Suriyan Ramasami
SUPPORT is not defined in an SPL build. Example board: smartweb Signed-off-by: Suriyan Ramasami --- v2: * Get rid of variable 'n' altogether v1: * Remove #ifdef CONFIG_SPL_SERIAL_SUPPORT lib/display_options.c | 10 +- 1 file changed, 1 insertion(+), 9 deletions(

Re: [U-Boot] [PATCH v1 1/1] lib/display_options: Fix print_freq

2015-08-24 Thread Suriyan Ramasami
Hello Heiko/Simon, On Sun, Aug 23, 2015 at 10:37 PM, Heiko Schocher wrote: > Hello Simon, Suriyan Ramasami, > > Am 22.08.2015 um 02:36 schrieb Simon Glass: > >> Hi, >> >> On 18 August 2015 at 10:25, Suriyan Ramasami wrote: >> >>> Build without CON

[U-Boot] Question regarding CONFIG_DM_USB

2015-08-18 Thread Suriyan Ramasami
Hi folks and Simon, After moving to the driver model for USB, I see that the call to board_usb_init() is not done anymore. This has the board specific initialisation sequence. It used to be called before the driver model existed by usb_lowlevel_init(). Without it, usb fails to work. I see t

[U-Boot] [PATCH v1 1/1] lib/display_options: Fix print_freq

2015-08-18 Thread Suriyan Ramasami
variables when building with CONFIG_SPL_SERIAL_SUPPORT not being defined in an SPL build. Signed-off-by: Suriyan Ramasami --- lib/display_options.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/lib/display_options.c b/lib/display_options.c index df134cd..80316a4 100644 --- a/lib

Re: [U-Boot] [PATCH] fs-test.sh: minor fixes

2015-08-12 Thread Suriyan Ramasami
On Aug 12, 2015 8:08 AM, "Stephen Warren" wrote: > > On 08/12/2015 08:29 AM, Suriyan Ramasami wrote: >> >> Hi Stephen, >> >>Small nitpick, just to be consistent (for that particular line), we >> could use OUT_FILE="${OUT}.${1}.${fs}

Re: [U-Boot] [PATCH] fs-test.sh: minor fixes

2015-08-12 Thread Suriyan Ramasami
Hi Stephen, Small nitpick, just to be consistent (for that particular line), we could use OUT_FILE="${OUT}.${1}.${fs}.out" Acked-by: Suriyan Ramasami Best Regards On Mon, Aug 10, 2015 at 9:45 PM, Stephen Warren wrote: > - Re-direct stderr into the log files, so any errors U-B

Re: [U-Boot] Odroid XU3 - exynos5422 - SPL - iRAM/sRAM address

2015-02-25 Thread Suriyan Ramasami
Hello Kevin, Sorry to have put this in the back burner. Life knocked me over the head seeking attention. I shall focus back on this soon. Sorry, once again, - Suriyan On Wed, Feb 25, 2015 at 1:38 PM, Kevin Hilman wrote: > Hi Suriyan, > > On Thu, Jan 22, 2015 at 5:46 PM, Suriyan

Re: [U-Boot] Odroid XU3 - exynos5422 - SPL - iRAM/sRAM address

2015-01-22 Thread Suriyan Ramasami
On Thu, Jan 22, 2015 at 9:51 AM, Kevin Hilman wrote: > Suriyan Ramasami writes: > >> Hello Kevin, >> >> On Wed, Jan 21, 2015 at 4:54 PM, Kevin Hilman wrote: >>> Hi Surijan, >>> >>> Suriyan Ramasami writes: >>> >>>> Hello

Re: [U-Boot] Odroid XU3 - exynos5422 - SPL - iRAM/sRAM address

2015-01-21 Thread Suriyan Ramasami
Hello Kevin, On Wed, Jan 21, 2015 at 4:54 PM, Kevin Hilman wrote: > Hi Surijan, > > Suriyan Ramasami writes: > >> Hello Sjoerd Simons, >>A signed BL2 which allows unsigned BL2 chain load is already >> available for experimentation. Refer this link: >> htt

Re: [U-Boot] Odroid XU3 - exynos5422 - SPL - iRAM/sRAM address

2015-01-20 Thread Suriyan Ramasami
Hello Kevin, On Tue, Jan 20, 2015 at 3:38 PM, Suriyan Ramasami wrote: > Hello Kevin, > > On Tue, Jan 20, 2015 at 3:29 PM, Suriyan Ramasami wrote: >> Hello Kevin, >> >> On Tue, Jan 20, 2015 at 2:43 PM, Kevin Hilman wrote: >>> Suriyan Ramasami writes: >>

Re: [U-Boot] Odroid XU3 - exynos5422 - SPL - iRAM/sRAM address

2015-01-20 Thread Suriyan Ramasami
Hello Kevin, On Tue, Jan 20, 2015 at 3:29 PM, Suriyan Ramasami wrote: > Hello Kevin, > > On Tue, Jan 20, 2015 at 2:43 PM, Kevin Hilman wrote: >> Suriyan Ramasami writes: >> >>> Hello Kevin, >>>These are the changes that would be necessary in uboot

Re: [U-Boot] Odroid XU3 - exynos5422 - SPL - iRAM/sRAM address

2015-01-20 Thread Suriyan Ramasami
Hello Kevin, On Tue, Jan 20, 2015 at 2:43 PM, Kevin Hilman wrote: > Suriyan Ramasami writes: > >> Hello Kevin, >>These are the changes that would be necessary in uboot mainline for SPL: >> >> arch/arm/cpu/armv7/exynos/Kconfig >> - select OF_C

Re: [U-Boot] Odroid XU3 - exynos5422 - SPL - iRAM/sRAM address

2015-01-20 Thread Suriyan Ramasami
of the Samsung docs, hence, one solution was to copy over HKs ddr init function, and then the mainline SPL runs. Regards - Suriyan On Tue, Jan 20, 2015 at 1:30 PM, Kevin Hilman wrote: > Hello Suriyan, > > Suriyan Ramasami writes: > >> Hello Sjoerd Simons, >>A signed

Re: [U-Boot] Odroid XU3 - exynos5422 - SPL - iRAM/sRAM address

2015-01-20 Thread Suriyan Ramasami
rdkernel to >> sign every time ? :/ >> >> >> On Fri, 2014-12-19 at 15:45 -0800, Suriyan Ramasami wrote: >> > Just to close the loop. >> > >> > For the XU3, scanning memory, I found the signed BL2 loaded at address >> > 0x02027000. >>

Re: [U-Boot] [PATCH v11 0/3] Adds support for Exynos5422 odroid xu3 board

2014-12-09 Thread Suriyan Ramasami
Hello Hyungwon Hwang, On Tue, Dec 9, 2014 at 7:52 PM, Hyungwon Hwang wrote: > Dear Suriyan, > > On Tue, 09 Dec 2014 18:29:56 -0800 > Suriyan Ramasami wrote: > >> Hello Hyungwon Hwang, >> >> On Tue, Dec 9, 2014 at 4:58 PM, Hyungwon Hwang >> wrote: >>

Re: [U-Boot] [PATCH v11 0/3] Adds support for Exynos5422 odroid xu3 board

2014-12-09 Thread Suriyan Ramasami
Hello Hyungwon Hwang, On Tue, Dec 9, 2014 at 4:58 PM, Hyungwon Hwang wrote: > Dear Kevin, > > On Tue, 09 Dec 2014 15:36:00 -0800 > Kevin Hilman wrote: > >> Hyungwon Hwang writes: >> >> > This is v11 of the patchset adding support Odroud XU3 board. >> >> I finally got around to testing this on t

Re: [U-Boot] [PATCH v2] odroid-XU3: Add entry for DTS EHCI GPIO

2014-12-08 Thread Suriyan Ramasami
Hello Hyungwon Hwang, On Mon, Dec 8, 2014 at 7:01 PM, Hyungwon Hwang wrote: > Dear Sjoerd, > > On Fri, 05 Dec 2014 21:26:10 +0100 > Sjoerd Simons wrote: > >> Add samsung,vbus-gpio information for the XU3. This allows the usage >> of the EHCI controller on the XU3, which is connected to the SMSC

Re: [U-Boot] exynos: snow: external SD/MMC broken

2014-12-04 Thread Suriyan Ramasami
Hello Jaehoon Chung, Guillaume GARDET, On Thu, Dec 4, 2014 at 1:11 AM, Guillaume Gardet wrote: > > Le 04/12/2014 09:00, Jaehoon Chung a écrit : >> >> Hi, GUillaume >> >> On 12/04/2014 09:18 AM, Minkyu Kang wrote: >>> >>> + Jaehoon Chung >>> >>> On 04/12/14 00:23, Guillaume Gardet wrote:

Re: [U-Boot] [PATCH v1] tools/kwboot: Allow just -t to function

2014-12-03 Thread Suriyan Ramasami
Just a gentle ping to see if this can be commented on/Acked/Merged ? Thanks - Suiryan On Tue, Nov 25, 2014 at 1:59 PM, Suriyan Ramasami wrote: > When kwboot is invoked with -t the code implicitly assumes that one > of -b (boot message) or -d (debug message) with an image file is spe

Re: [U-Boot] [PATCH v10 0/4] Adds support for Exynos5422 odroid xu3 board

2014-12-03 Thread Suriyan Ramasami
gnueabihf- -j8 >> 5. Now you can use u-boot-dtb.bin for your downloading >> >> WARNING: (update in V10) >> It was impossible to make the u-boot image smaller than 335872 bytes, and >> also >> I did not want to waste my time to make it fit for that restriction, &

Re: [U-Boot] [PATCH v9 2/2] Odroid-XU3: Add documentation for Odroid-XU3

2014-12-02 Thread Suriyan Ramasami
Hello Simon, Lukasz, On Tue, Dec 2, 2014 at 2:29 PM, Lukasz Majewski wrote: > Hi Simon, > >> Hi, >> >> On 28 November 2014 at 06:46, Lukasz Majewski >> wrote: >> > Hello Javier, >> > >> >> Hello Lukasz, >> >> >> >> On Fri, Nov 28, 2014 at 9:39 AM, Lukasz Majewski >> >> wrote: >> >> >> I have ye

Re: [U-Boot] [PATCH v1] fdt: Allow non-FDT kernels to boot when CONFIG_OF_LIBFDT is defined

2014-11-27 Thread Suriyan Ramasami
Hello Simon, Thanks for the review! and happy Thanksgiving :-) On Thu, Nov 27, 2014 at 7:58 AM, Simon Glass wrote: > Hi Suriyan, > > On 20 November 2014 at 16:55, Suriyan Ramasami wrote: >> The boot commands - bootz/bootm mandate a third argument which is the >> addres

[U-Boot] [PATCH v2] fdt: Allow non-FDT kernels to boot when CONFIG_OF_LIBFDT is defined

2014-11-27 Thread Suriyan Ramasami
making the third parameter to the bootm/bootz optional. Signed-off-by: Suriyan Ramasami --- Changes in v2: - Simon: take care of real non error cases by introducing a no_fdt label to jump to instead of piggy backing on the error label. Also, use !select instead of argc <= 2. - I am assum

Re: [U-Boot] [PATCH v1] exynos: Fix file system defines

2014-11-26 Thread Suriyan Ramasami
Hello Ian. On Wed, Nov 26, 2014 at 1:38 AM, Ian Campbell wrote: > On Tue, 2014-11-25 at 09:41 -0800, Suriyan Ramasami wrote: >> On the odroid, files in an ext4 file system were not being accessed. >> Correct the #defines to take care of this. > > In u-boot-samsung.git#ma

[U-Boot] [PATCH v1] tools/kwboot: Allow just -t to function

2014-11-25 Thread Suriyan Ramasami
When kwboot is invoked with -t the code implicitly assumes that one of -b (boot message) or -d (debug message) with an image file is specified. This is not necessarily true. This allows kwboot -t to function. Signed-off-by: Suriyan Ramasami --- Changes in v1: - First try tools/kwboot.c | 2

Re: [U-Boot] [PATCH] spl: Fix SPL EXT support

2014-11-25 Thread Suriyan Ramasami
> Signed-off-by: Guillaume GARDET > Cc: Tom Rini > Cc: Suriyan Ramasami > > --- > common/spl/spl_ext.c | 10 +- > 1 file changed, 5 insertions(+), 5 deletions(-) > > diff --git a/common/spl/spl_ext.c b/common/spl/spl_ext.c > index 5ff9bc5..9d37fd3 100644 &g

[U-Boot] [PATCH v1] exynos: Fix file system defines

2014-11-25 Thread Suriyan Ramasami
On the odroid, files in an ext4 file system were not being accessed. Correct the #defines to take care of this. Signed-off-by: Suriyan Ramasami --- Changes in v1: - First try include/configs/exynos-common.h | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/include

[U-Boot] [PATCH v3] odroid: Turn blue LED on

2014-11-23 Thread Suriyan Ramasami
To indicate that U-Boot is active, turn on the blue LED. Signed-off-by: Suriyan Ramasami Acked-by: Przemyslaw Marczak --- Changes in v3: - Minkyu Kang, Rebase Changes in v2: - Przemyslaw Marczak, Add gpio_request call. Changes in v1: - First try board/samsung/odroid/odroid.c | 5 + 1

[U-Boot] [PATCH v2 2/2] odroid: usbhost - Add missing gpio_request call

2014-11-20 Thread Suriyan Ramasami
and there is a "ENB8" pin in PMIC package. This pin allows steering BUCK8 ON/OFF by the hardware. If ENB8 is set to low then you can do on/off. If high, then you cannot change its state by I2C write, which seems to be the case with the Odroids. Signed-off-by: Suriyan Ramasami Acked-by:

[U-Boot] [PATCH v2 1/2] odroid: Update README with USB host usage

2014-11-20 Thread Suriyan Ramasami
Add information wrt using the USB host interface for loading kernel over ethernet and/or usb mass storage. Signed-off-by: Suriyan Ramasami --- Changes in v2: - Make updates to be of use from a user's perspective Series-changes: 1 - Add USB host notes for the Odroid doc/README.odroid

[U-Boot] [PATCH v1] fdt: Allow non-FDT kernels to boot when CONFIG_OF_LIBFDT is defined

2014-11-20 Thread Suriyan Ramasami
making the third parameter to the bootm/bootz optional. Signed-off-by: Suriyan Ramasami --- Changes in v1: - First try common/image-fdt.c | 4 1 file changed, 4 insertions(+) diff --git a/common/image-fdt.c b/common/image-fdt.c index a39ae1b..1a02166 100644 --- a/common/image-fdt.c +++ b

Re: [U-Boot] BUG: bootz/bootm command mandates a fdt blob

2014-11-20 Thread Suriyan Ramasami
Hello Simon, On Nov 20, 2014 8:38 AM, "Simon Glass" wrote: > > Hi, > > On 20 November 2014 16:04, Hans de Goede wrote: > > Hi Suriyan, > > > > On 11/20/2014 04:16 PM, Suriyan Ramasami wrote: > >> Hello Simon, > >> This mail is addre

[U-Boot] BUG: bootz/bootm command mandates a fdt blob

2014-11-20 Thread Suriyan Ramasami
Hello Simon, This mail is addressed to you as the FDT support was added by you. I am not sure who else to address it to. I find that if CONFIG_OF_LIBFDT is defined then the user is forced to provide a FDT blob. In most of the cases it makes sense. However, this removes the ability to bo

Re: [U-Boot] [PATCH v1 2/2] odroid: usbhost - Add missing gpio_request call

2014-11-20 Thread Suriyan Ramasami
Hello Minkyu Kang, On Thu, Nov 20, 2014 at 12:41 AM, Minkyu Kang wrote: > Dear Suriyan Ramasami, > > On 20/11/14 01:21, Suriyan Ramasami wrote: >> The USB host code was missing gpio_request() calls before using the gpio >> functions, causing errors to be printed out. >>

Re: [U-Boot] [PATCH v1 1/2] odroid: Update README with USB host information

2014-11-19 Thread Suriyan Ramasami
Hello Przemyslaw, On Wed, Nov 19, 2014 at 10:40 AM, Przemyslaw Marczak wrote: > Hi, > > > On 11/19/2014 07:29 PM, Suriyan Ramasami wrote: >> >> Hello Przemyslaw, >> >> On Wed, Nov 19, 2014 at 9:39 AM, Przemyslaw Marczak >> wrote: >>> >>

Re: [U-Boot] [PATCH v1 1/2] odroid: Update README with USB host information

2014-11-19 Thread Suriyan Ramasami
Hello Przemyslaw, On Wed, Nov 19, 2014 at 9:39 AM, Przemyslaw Marczak wrote: > Hello, > > On 11/19/2014 05:21 PM, Suriyan Ramasami wrote: >> >> Add information wrt the USB host side of things for the Odroid-U2/U3 and >> the >> Odroid-X/X2 >

[U-Boot] [PATCH v1 2/2] odroid: usbhost - Add missing gpio_request call

2014-11-19 Thread Suriyan Ramasami
The USB host code was missing gpio_request() calls before using the gpio functions, causing errors to be printed out. Signed-off-by: Suriyan Ramasami --- Changes in v1: - Added gpio_request() call in board_gpio_init() board/samsung/odroid/odroid.c | 13 +++-- 1 file changed, 11

[U-Boot] [PATCH v1 1/2] odroid: Update README with USB host information

2014-11-19 Thread Suriyan Ramasami
Add information wrt the USB host side of things for the Odroid-U2/U3 and the Odroid-X/X2 Signed-off-by: Suriyan Ramasami --- Changes in v1: - Add USB host notes for the Odroid doc/README.odroid | 48 1 file changed, 48 insertions(+) diff --git

Re: [U-Boot] [PATCH v3 3/3] arm: odroid: usb: add support for usb host including ethernet

2014-11-18 Thread Suriyan Ramasami
Hello Przemyslaw, On Tue, Nov 18, 2014 at 3:09 AM, Przemyslaw Marczak wrote: > Hello Suriyan, > > On 11/18/2014 04:30 AM, Suriyan Ramasami wrote: >> >> Hello Minkyu Kang/Przemyslaw and of course anyone else who can direct me, >> >> Thanks for the commit. >>

[U-Boot] [PATCH v8 0/6] fs: fat/ext4/sandbox - Deal with files greater than 2GB

2014-11-17 Thread Suriyan Ramasami
Generate output in a sandbox environment - Add one line comments on shell variables used - Avoid camel case through out - Path to UBOOT is variable at top - Print PASSED or FAILED at end, and set return code, 0 if OK, 1 otherwise Suriyan Ramasami (6): sandbox: Use md5sum and fatwrite

Re: [U-Boot] [PATCH v3 3/3] arm: odroid: usb: add support for usb host including ethernet

2014-11-17 Thread Suriyan Ramasami
? Thanks and regards, - Suriyan On Mon, Nov 17, 2014 at 6:02 AM, Minkyu Kang wrote: > On 30/10/14 01:22, Suriyan Ramasami wrote: >> This change adds support for enabling the USB host features of the board. >> This includes the USB3503A hub and the SMC LAN9730 ethernet contro

[U-Boot] [PATCH v2] odroid: Turn blue LED on

2014-11-17 Thread Suriyan Ramasami
To indicate that U-Boot is active, turn on the blue LED. Signed-off-by: Suriyan Ramasami --- Changes in v2: - Przemyslaw Marczak, Add gpio_request call. Changes in v1: - First try board/samsung/odroid/odroid.c | 5 + 1 file changed, 5 insertions(+) diff --git a/board/samsung/odroid

[U-Boot] [PATCH v8 3/6] ext4: Prepare API change for files greater than 2GB

2014-11-17 Thread Suriyan Ramasami
Change the internal EXT4 functions to use loff_t for offsets. Signed-off-by: Suriyan Ramasami Acked-by: Simon Glass --- Changes in v8: - None Changes in v7: - Split this patch for bisectability. Changes in v6: None Changes in v5: None common/cmd_ext4.c | 61

[U-Boot] [PATCH v8 4/6] sandbox: Prepare API change for files greater than 2GB

2014-11-17 Thread Suriyan Ramasami
Change the internal sandbox functions to use loff_t for file offsets. Signed-off-by: Suriyan Ramasami Acked-by: Simon Glass --- Changes in v8: - Simon, use variable size consistently across all changes. Changes in v7: - Simon, split this as a separate commit Changes in v6: None Changes in

[U-Boot] [PATCH v8 5/6] fs: API changes enabling extra parameter to return size of type loff_t

2014-11-17 Thread Suriyan Ramasami
of the fs functions are used only for error conditions. Signed-off-by: Suriyan Ramasami Acked-by: Simon Glass series-changes: 6 - (Simon) update fs.h with comments for fs_read/fs_write/fs_size --- Changes in v8: - (Simon) ext4_read_file(), return ext4fs_read() at end - (Simon) remove braces

[U-Boot] [PATCH v8 2/6] fat: Prepare API change for files greater than 2GB

2014-11-17 Thread Suriyan Ramasami
Change the internal FAT functions to use loff_t for offsets. Signed-off-by: Suriyan Ramasami Acked-by: Simon Glass --- Changes in v8: - Simon - indentation fixes Changes in v7: - Separate this patch out Changes in v6: None Changes in v5: None common/cmd_fat.c | 9 ++-- common

[U-Boot] [PATCH v8 6/6] sandbox: script for testing sandbox/ext4/fat/fs commands

2014-11-17 Thread Suriyan Ramasami
Test size/read/write commands in a sandbox environment. Signed-off-by: Suriyan Ramasami Acked-by: Simon Glass --- Changes in v8: None Changes in v7: - Simon comments - take care of fat/vfat in mkfs - fs/nonfs test code repeats, put it in function Changes in v6: - Update expected results in

[U-Boot] [PATCH v8 1/6] sandbox: Use md5sum and fatwrite to enable testing of fs commands

2014-11-17 Thread Suriyan Ramasami
Enable md5sum to obtain the MD5 of the read and written files to check their contents for validity. Use map_sysmem() to map buffer in a sandbox environment. Signed-off-by: Suriyan Ramasami Acked-by: Simon Glass --- Changes in v8: - No changes. Changes in v7: - Add Ack Changes in v6

Re: [U-Boot] [PATCH v7 6/6] sandbox: script for testing sandbox/ext4/fat/fs commands

2014-11-14 Thread Suriyan Ramasami
On Tue, Nov 11, 2014 at 4:58 PM, Simon Glass wrote: > On 10 November 2014 13:17, Suriyan Ramasami wrote: >> Test size/read/write commands in a sandbox environment. >> >> Signed-off-by: Suriyan Ramasami >> >> >> --- >> >> Changes in v7: >

Re: [U-Boot] [PATCH v7 5/6] fs: API changes to enable extra parameter to return size of type loff_t

2014-11-14 Thread Suriyan Ramasami
On Tue, Nov 11, 2014 at 4:55 PM, Simon Glass wrote: > On 10 November 2014 13:17, Suriyan Ramasami wrote: >> The sandbox/ext4/fat/generic fs commands do not gracefully deal with file >> greater than 2GB. Negative values are returned in such cases. >> >> To handle this,

Re: [U-Boot] [PATCH v7 4/6] sandbox: prepare for API change for files greater than 2GB

2014-11-14 Thread Suriyan Ramasami
On Tue, Nov 11, 2014 at 4:50 PM, Simon Glass wrote: > On 10 November 2014 13:17, Suriyan Ramasami wrote: >> Change the internal ext4 functions to use loff_t for offsets. >> >> Signed-off-by: Suriyan Ramasami > > Acked-by: Simon Glass > > (BTW you could

Re: [U-Boot] [PATCH v7 2/6] fat: prepare for API change for files greater than 2GB

2014-11-14 Thread Suriyan Ramasami
Hello Simon, On Tue, Nov 11, 2014 at 4:27 PM, Simon Glass wrote: > Hi, > > On 10 November 2014 13:17, Suriyan Ramasami wrote: >> Change the internal fat functions to use loff_t for offsets. >> >> Signed-off-by: Suriyan Ramasami >> >> --- >>

[U-Boot] [PATCH v7 0/6] fs: fat/ext4/sandbox - Deal with files greater than 2GB

2014-11-10 Thread Suriyan Ramasami
mkfs - fs/nonfs test code repeats, put it in function Suriyan Ramasami (6): sandbox: Use md5sum and fatwrite to enable testing of fs commands fat: prepare for API change for files greater than 2GB ext4: prepare for API change for files greater than 2GB sandbox: prepare for API change for fil

[U-Boot] [PATCH v7 6/6] sandbox: script for testing sandbox/ext4/fat/fs commands

2014-11-10 Thread Suriyan Ramasami
Test size/read/write commands in a sandbox environment. Signed-off-by: Suriyan Ramasami --- Changes in v7: * Simon - take care of fat/vfat in mkfs - fs/nonfs test code repeats, put it in function test/fs/fs-test.sh | 561 + 1 file

[U-Boot] [PATCH v7 5/6] fs: API changes to enable extra parameter to return size of type loff_t

2014-11-10 Thread Suriyan Ramasami
of the fs fucntions are used only for error conditions. Signed-off-by: Suriyan Ramasami --- Changes in v7: * Simon - API change in separate patch common/cmd_fs.c| 17 +++ fs/ext4/ext4fs.c | 22 --- fs/fat/fat.c | 20 - fs/fs.c

[U-Boot] [PATCH v7 4/6] sandbox: prepare for API change for files greater than 2GB

2014-11-10 Thread Suriyan Ramasami
Change the internal ext4 functions to use loff_t for offsets. Signed-off-by: Suriyan Ramasami --- Changes in v7: * Split it so that its bisectable. arch/sandbox/cpu/os.c| 13 arch/sandbox/cpu/state.c | 8 ++--- common/board_f.c | 8 ++--- fs/sandbox/sandboxfs.c | 78

[U-Boot] [PATCH v7 3/6] ext4: prepare for API change for files greater than 2GB

2014-11-10 Thread Suriyan Ramasami
Change the internal ext4 functions to use loff_t for offsets. Signed-off-by: Suriyan Ramasami --- Changes in v7: * Split it so that its bisectable. common/cmd_ext4.c | 61 +++ fs/ext4/ext4_common.c | 24 ++-- fs/ext4

[U-Boot] [PATCH v7 2/6] fat: prepare for API change for files greater than 2GB

2014-11-10 Thread Suriyan Ramasami
Change the internal fat functions to use loff_t for offsets. Signed-off-by: Suriyan Ramasami --- Changes in v7: * Split it so that its bisectable. common/cmd_fat.c | 9 ++-- common/env_fat.c | 4 +- fs/fat/fat.c | 133 +++-- fs

[U-Boot] [PATCH v7 1/6] sandbox: Use md5sum and fatwrite to enable testing of fs commands

2014-11-10 Thread Suriyan Ramasami
Enable md5sum to check the MD5 of the read and written files to check their contents for validity. Use map_sysmem() to map buffer in a sandbox environment. Signed-off-by: Suriyan Ramasami Acked-by: Simon Glass --- Changes in v7: * No changes common/cmd_md5sum.c | 12

Re: [U-Boot] [PATCH v6 1/6] sandbox: script for testing sandbox/ext4/fat/fs commands

2014-11-05 Thread Suriyan Ramasami
Hello Simon, On Tue, Nov 4, 2014 at 5:04 PM, Simon Glass wrote: > Hi, > > On 3 November 2014 18:49, Suriyan Ramasami wrote: >> Test size/read/write commands in a sandbox environment. >> >> Signed-off-by: Suriyan Ramasami >> >> --- >> >> Chan

Re: [U-Boot] [PATCH v6 2/6] fs: interface changes to accomodate files greater than 2GB

2014-11-04 Thread Suriyan Ramasami
Hello Pavel, On Tue, Nov 4, 2014 at 11:26 AM, Pavel Machek wrote: > On Mon 2014-11-03 18:49:58, Suriyan Ramasami wrote: >> Change the interface for the generic FS functions to take in an extra >> parameter of type "loff_t *" to return the size. The return values of >&

Re: [U-Boot] [PATCH v6 0/6] fs: fat/ext4/sandbox - Deal with files greater than 2GB

2014-11-04 Thread Suriyan Ramasami
Hello Simon, On Mon, Nov 3, 2014 at 10:26 PM, Simon Glass wrote: > (trimming the CC list a bit) > > Hi Suriyan, > > On 3 November 2014 19:49, Suriyan Ramasami wrote: >> >> The commands fatls/ext4ls give negative values when dealing with files >> greater

[U-Boot] [PATCH v6 0/6] fs: fat/ext4/sandbox - Deal with files greater than 2GB

2014-11-04 Thread Suriyan Ramasami
camel case through out * Path to UBOOT is variable at top * Print PASSED or FAILED at end, and set return code, 0 if OK, 1 otherwise * Simon - update fs.h with comments for fs_read/fs_write/fs_size Suriyan Ramasami (6): sandbox: script for testing sandbox/ext4/fat/fs commands fs: interface

[U-Boot] [PATCH v6 6/6] sandbox: interface changes to accomodate files greater than 2GB

2014-11-03 Thread Suriyan Ramasami
Change the interface for the sandbox functions to take in an extra parameter of type "loff_t *" to return the size. The return values of these funtions now serve as an indicator of error conditions alone. Signed-off-by: Suriyan Ramasami --- Changes in v6: * Simon - Split this into

[U-Boot] [PATCH v6 4/6] ext4: interface changes to accomodate files greater than 2GB

2014-11-03 Thread Suriyan Ramasami
Change the interface for the ext4 functions to take in an extra parameter of type "loff_t *" to return the size. The return values of these funtions now serve as an indicator of error conditions alone. Signed-off-by: Suriyan Ramasami --- Changes in v6: * Simon - Split this into

[U-Boot] [PATCH v6 3/6] fat: interface changes to accomodate files greater than 2GB

2014-11-03 Thread Suriyan Ramasami
Change the interface for the fat functions to take in an extra parameter of type "loff_t *" to return the size. The return values of these funtions now serve as an indicator of error conditions alone. Signed-off-by: Suriyan Ramasami --- Changes in v6: * Simon - Split this into a sepa

[U-Boot] [PATCH v6 5/6] sandbox: Use md5sum and fatwrite to enable testing of fs commands

2014-11-03 Thread Suriyan Ramasami
Enable md5sum to check the MD5 of the read and written files to check their contents for validity. Use map_sysmem() to map buffer in a sandbox environment. Signed-off-by: Suriyan Ramasami --- Changes in v6: * Simon - Split this into a separate patch Changes in v5: None common/cmd_md5sum.c

[U-Boot] [PATCH v6 1/6] sandbox: script for testing sandbox/ext4/fat/fs commands

2014-11-03 Thread Suriyan Ramasami
Test size/read/write commands in a sandbox environment. Signed-off-by: Suriyan Ramasami --- Changes in v6: * Update expected results in comments * Simon comments - * Remove README file and add it in start of script * Drop blank lines in top of functions * Put repeating constants in lower

[U-Boot] [PATCH v6 2/6] fs: interface changes to accomodate files greater than 2GB

2014-11-03 Thread Suriyan Ramasami
Change the interface for the generic FS functions to take in an extra parameter of type "loff_t *" to return the size. The return values of these funtions now serve as an indicator of error conditions alone. Signed-off-by: Suriyan Ramasami --- Changes in v6: * Simon - Split this into

Re: [U-Boot] [PATCH v5] fs: fat/ext4/sandbox - Deal with files greater than 2GB

2014-10-31 Thread Suriyan Ramasami
Hello Simon, On Thu, Oct 30, 2014 at 7:01 PM, Simon Glass wrote: > Hi Suriyan, > > On 28 October 2014 17:00, Suriyan Ramasami wrote: >> The commands fatls/ext4ls give negative values when dealing with files >> greater than 2GB. >> The commands fatsize/ext4size

Re: [U-Boot] [PATCH v5] fs: fat/ext4/sandbox - Deal with files greater than 2GB

2014-10-29 Thread Suriyan Ramasami
Hello Simon, On Wed, Oct 29, 2014 at 12:31 PM, Simon Glass wrote: > Hi Suriyan, > > On 29 October 2014 13:29, Suriyan Ramasami wrote: >> Hello Simon, >> >> On Wed, Oct 29, 2014 at 12:20 PM, Simon Glass wrote: >>> Hi Suriyan, >>> >>> On 28

Re: [U-Boot] [PATCH v3 3/3] arm: odroid: usb: add support for usb host including ethernet

2014-10-29 Thread Suriyan Ramasami
On Wed, Oct 29, 2014 at 9:40 PM, Suriyan Ramasami wrote: > Hello Jaehoon Chung, > > On Wed, Oct 29, 2014 at 6:17 PM, Jaehoon Chung wrote: >> On 10/30/2014 01:22 AM, Suriyan Ramasami wrote: >>> This change adds support for enabling the USB host features of the boar

Re: [U-Boot] [PATCH v3 3/3] arm: odroid: usb: add support for usb host including ethernet

2014-10-29 Thread Suriyan Ramasami
Hello Jaehoon Chung, On Wed, Oct 29, 2014 at 6:17 PM, Jaehoon Chung wrote: > On 10/30/2014 01:22 AM, Suriyan Ramasami wrote: >> This change adds support for enabling the USB host features of the board. >> This includes the USB3503A hub and the SMC LAN9730 ethernet contro

Re: [U-Boot] [PATCH v5] fs: fat/ext4/sandbox - Deal with files greater than 2GB

2014-10-29 Thread Suriyan Ramasami
Hello Simon, On Wed, Oct 29, 2014 at 12:20 PM, Simon Glass wrote: > Hi Suriyan, > > On 28 October 2014 17:00, Suriyan Ramasami wrote: >> The commands fatls/ext4ls give negative values when dealing with files >> greater than 2GB. >> The commands fatsize/ext4size

[U-Boot] [PATCH v3 3/3] arm: odroid: usb: add support for usb host including ethernet

2014-10-29 Thread Suriyan Ramasami
This change adds support for enabling the USB host features of the board. This includes the USB3503A hub and the SMC LAN9730 ethernet controller as well. Signed-off-by: Suriyan Ramasami --- Changes in v3: * removed set_usb_ethaddr() and related code as the GUID registers do not seem to be

[U-Boot] [PATCH v3 2/3] arm: odroid: enable/disable usb host phy for exynos4412

2014-10-29 Thread Suriyan Ramasami
Enable/disable the usb host phy on the odroid U/X2 boards which are based on the Exynos4412 SOC. Signed-off-by: Suriyan Ramasami --- Changes in v3: * Minkyu - do not mix cpu_is... and proid_is... Changes in v2: * Jaehoon - separate this patch out Changes in v1: * First try arch/arm/cpu

[U-Boot] [PATCH v3 1/3] arm: odroid: pmic77686: allow buck voltage settings

2014-10-29 Thread Suriyan Ramasami
Allow to set the buck voltage for the max77686. This will be used to reset the SMC LAN9730 ethernet on the odroids. Signed-off-by: Suriyan Ramasami --- Changes in v3: * Correct ldo and buck validation logic * Jaehoon/Przemyslaw - Use negative errno values for error condistions * Albert - its

[U-Boot] [PATCH v5] fs: fat/ext4/sandbox - Deal with files greater than 2GB

2014-10-29 Thread Suriyan Ramasami
ch is then populated. The return value of the fs functions are used only for error conditions. Signed-off-by: Suriyan Ramasami --- Changes in v5: * Simon - update fs.h with comments for fs_read/fs_write/fs_size * Simon - test/fs/fs-test.sh. Many changes as listed under * Add README file to document

Re: [U-Boot] [PATCH v4 1/1] fs: fat/ext4/sandbox: Deal with files greater than 2GB

2014-10-28 Thread Suriyan Ramasami
Hello Simon, On Mon, Oct 27, 2014 at 4:55 PM, Simon Glass wrote: > Hi Suriyan, > > On 27 October 2014 13:48, Suriyan Ramasami wrote: >> The commands fatls/ext4ls give negative values when dealing with files >> greater than 2GB. >> The commands fatsize/ext4size

[U-Boot] [PATCH v4 1/1] fs: fat/ext4/sandbox: Deal with files greater than 2GB

2014-10-27 Thread Suriyan Ramasami
ch is then populated. The return value of the fs functions are used only for error contitions. Signed-off-by: Suriyan Ramasami --- v4: * Support generic fs write commands * Sync up behavior of fs load vs fatload and ext4load * albert - change -ve to negative in commit message v3: * Added testcase to t

Re: [U-Boot] [PATCH v3 1/1] fs: fat/ext4/sandbox: Deal with files > 2GB

2014-10-27 Thread Suriyan Ramasami
Hello Albert, On Sun, Oct 26, 2014 at 11:35 PM, Albert ARIBAUD wrote: > Hello Suriyan, > > On Sun, 26 Oct 2014 21:42:52 -0700, Suriyan Ramasami > wrote: > >> Subject: [PATCH v3 1/1] fs: fat/ext4/sandbox: Deal with files > 2GB > > Could you repost using the full

Re: [U-Boot] [PATCH v2 3/3] arm: odroid: usb: add support for usb host including ethernet

2014-10-27 Thread Suriyan Ramasami
Hello Minkyu Kang, On Mon, Oct 27, 2014 at 6:03 AM, Minkyu Kang wrote: > Dear Suriyan Ramasami, > > On 25/10/14 01:08, Suriyan Ramasami wrote: >> Hello Minkyu Kang, >> >> >> On Thu, Oct 23, 2014 at 9:58 PM, Minkyu Kang wrote: >>> Dear Suriyan Ra

Re: [U-Boot] [PATCH v2 3/3] arm: odroid: usb: add support for usb host including ethernet

2014-10-27 Thread Suriyan Ramasami
Hello Przemyslaw Marczak, On Mon, Oct 27, 2014 at 4:08 AM, Przemyslaw Marczak wrote: > Hello Suriyan, > > > On 10/24/2014 06:08 PM, Suriyan Ramasami wrote: >> >> Hello Minkyu Kang, >> >> >> On Thu, Oct 23, 2014 at 9:58 PM, Minkyu Kang wrote: >>>

Re: [U-Boot] [PATCH v2 1/3] arm: odroid: pmic77686: allow bucket voltage settings

2014-10-27 Thread Suriyan Ramasami
Hello Przemyslaw Marczak, On Mon, Oct 27, 2014 at 4:08 AM, Przemyslaw Marczak wrote: > Hello Suriyan, > > > On 10/24/2014 05:53 PM, Suriyan Ramasami wrote: >> >> Hello Jaehoon Chung, >> >> >> On Thu, Oct 23, 2014 at 11:52 PM, Jaehoon Chung >> w

Re: [U-Boot] [PATCH v1 1/1] odroid: Turn blue LED on in u-boot

2014-10-27 Thread Suriyan Ramasami
Hello Przemyslaw Marczak, On Mon, Oct 27, 2014 at 4:35 AM, Przemyslaw Marczak wrote: > Hello Suriyan, > > On 10/10/2014 12:20 AM, Suriyan Ramasami wrote: >> >> To indicate that u-boot is active turn on the blue LED. >> >> Signed-off-by: Suriyan Ramasami >>

[U-Boot] [PATCH v3 1/1] fs: fat/ext4/sandbox: Deal with files > 2GB

2014-10-26 Thread Suriyan Ramasami
d. The return value of the functions are solely used for error contitions. Signed-off-by: Suriyan Ramasami --- v3: * Added testcase to test writes * Correct function set_contents() in fs/fat/fat_write.c v2: * Added test case for fat/ext4 in test/fs/testfs.sh * md5sum: call map_sysmem() for buffe

[U-Boot] [PATCH v2 1/1] fs: fat/ext4/sandbox: Deal with files > 2GB

2014-10-26 Thread Suriyan Ramasami
d. The return value of the fs functions are used for error contitions. Signed-off-by: Suriyan Ramasami --- v2: * Added test case for fat/ext4 in test/fs/testfs.sh * md5sum: call map_sysmem() for buffer that md5_wd will work on v1: * First try. --- arch/sandbox/cpu/os.c | 11 +- arch/sandbo

Re: [U-Boot] [PATCH v2 1/3] arm: odroid: pmic77686: allow bucket voltage settings

2014-10-26 Thread Suriyan Ramasami
Hello Jaehoon Chung, On Thu, Oct 23, 2014 at 11:52 PM, Jaehoon Chung wrote: > Hi. > > On 10/21/2014 02:52 AM, Suriyan Ramasami wrote: >> Allow to set the bucket voltage for the max77686. >> This will be used to reset the SMC LAN9730 ethernet on the odroids. >> >>

Re: [U-Boot] [PATCH v2 3/3] arm: odroid: usb: add support for usb host including ethernet

2014-10-26 Thread Suriyan Ramasami
Hello Minkyu Kang, On Thu, Oct 23, 2014 at 9:58 PM, Minkyu Kang wrote: > Dear Suriyan Ramasami, > > On 21/10/14 02:52, Suriyan Ramasami wrote: >> This change adds support for enabling the USB host features of the board. >> This includes the USB3503A hub and the SMC LAN973

[U-Boot] [PATCH v2 2/3] arm: odroid: enable/disable usb host phy for exynos4412

2014-10-20 Thread Suriyan Ramasami
Enable/disable the usb host phy on the odroid U/X2 boards which are based on the Exynos4412 SOC. Signed-off-by: Suriyan Ramasami --- arch/arm/cpu/armv7/exynos/power.c| 26 ++ arch/arm/include/asm/arch-exynos/power.h | 7 +++ 2 files changed, 33 insertions

[U-Boot] [PATCH v2 3/3] arm: odroid: usb: add support for usb host including ethernet

2014-10-20 Thread Suriyan Ramasami
This change adds support for enabling the USB host features of the board. This includes the USB3503A hub and the SMC LAN9730 ethernet controller as well. Credit goes to Tushar Berara for the function set_usb_ethaddr(). Signed-off-by: Suriyan Ramasami --- v2: * Removed an unneeded header file

[U-Boot] [PATCH v2 1/3] arm: odroid: pmic77686: allow bucket voltage settings

2014-10-20 Thread Suriyan Ramasami
Allow to set the bucket voltage for the max77686. This will be used to reset the SMC LAN9730 ethernet on the odroids. Signed-off-by: Suriyan Ramasami --- drivers/power/pmic/pmic_max77686.c | 48 +- include/power/max77686_pmic.h | 3 +++ 2 files changed

Re: [U-Boot] [PATCH v1 1/1] fs: fat/ext4/sandbox: Deal with files > 2GB in ls and size commands

2014-10-17 Thread Suriyan Ramasami
Hello Simon, On Thu, Oct 9, 2014 at 8:42 AM, Simon Glass wrote: > +Tom for the question below re return values > > Hi, > > On 8 October 2014 15:54, Suriyan Ramasami wrote: >> >> On Wed, Oct 8, 2014 at 1:44 PM, Simon Glass wrote: >> > Hi Suriyan, >&g

Re: [U-Boot] [PATCH v1 2/2] odroid: usb: add support for usb host including ethernet

2014-10-17 Thread Suriyan Ramasami
Hello Jaehoon, On Fri, Oct 17, 2014 at 1:52 AM, Jaehoon Chung wrote: > Hi, Suriyan. > > This patch can be separated. > OK, I shall separate out the power.c/power.h changes for enabling and disabling the usbhost phy. > On 10/02/2014 10:45 PM, Suriyan Ramasami wrote: >> Thi

[U-Boot] [PATCH v1 1/1] odroid: Turn blue LED on in u-boot

2014-10-09 Thread Suriyan Ramasami
To indicate that u-boot is active turn on the blue LED. Signed-off-by: Suriyan Ramasami --- board/samsung/odroid/odroid.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/board/samsung/odroid/odroid.c b/board/samsung/odroid/odroid.c index fd5d2d2..391a287 100644 --- a/board/samsung/odroid

Re: [U-Boot] [FAT/EXT4/SANDBOX] files > 2GB

2014-10-09 Thread Suriyan Ramasami
Hello Simon, On Wed, Oct 8, 2014 at 11:16 PM, Simon Glass wrote: > Hi, > > On 8 October 2014 07:07, Suriyan Ramasami wrote: >> Hello, >>I recently saw a post about fat commands such as fatls returning >> -ve values under u-boot for files whose sizes are >=2GB.

Re: [U-Boot] [PATCH v1 1/1] fs: fat/ext4/sandbox: Deal with files > 2GB in ls and size commands

2014-10-08 Thread Suriyan Ramasami
On Wed, Oct 8, 2014 at 1:44 PM, Simon Glass wrote: > Hi Suriyan, > > On 8 October 2014 14:23, Suriyan Ramasami wrote: >> The commands fatls/ext4ls give -ve values when dealing with files > 2GB. >> The commands fatsize/ext4size do not update the variable filesize for >&

Re: [U-Boot] [PATCH v1 1/1] fs: fat/ext4/sandbox: Deal with files > 2GB in ls and size commands

2014-10-08 Thread Suriyan Ramasami
On Wed, Oct 8, 2014 at 1:35 PM, Pavel Machek wrote: > On Wed 2014-10-08 13:23:48, Suriyan Ramasami wrote: >> The commands fatls/ext4ls give -ve values when dealing with files > 2GB. >> The commands fatsize/ext4size do not update the variable filesize for >> these files.

[U-Boot] [PATCH v1 1/1] fs: fat/ext4/sandbox: Deal with files > 2GB in ls and size commands

2014-10-08 Thread Suriyan Ramasami
d. The return value of the *_size function is then only used to determine error conditions. Signed-off-by: Suriyan Ramasami --- arch/sandbox/cpu/os.c| 14 +-- arch/sandbox/cpu/state.c | 6 ++--- common/board_f.c | 6 ++--- fs/ext4/ext4_common.c| 13 +-- fs/

[U-Boot] [FAT/EXT4/SANDBOX] files > 2GB

2014-10-08 Thread Suriyan Ramasami
Hello, I recently saw a post about fat commands such as fatls returning -ve values under u-boot for files whose sizes are >=2GB. fatsize would also not set up filesize in this case. This also effects ext4/sandbox commands. I just looked at the ones which are handled by fs/fs.c I am thin

  1   2   >