[U-Boot] rsa_verify calls fdt_next_node with a node offset from different device tree blob

2016-12-24 Thread Che-Liang Chiou
Hi Simon, I notice one thing that I am curious about. At v2016.11, in lib/rsa/rsa-verify.c:rsa_verify function: * The sig_node offset is computed from fdt_blob (at line 180): sig_node = fdt_subnode_offset(blob, 0, FIT_SIG_NODENAME); * At the end of the rsa_verify function, sig_node is applied

Re: [U-Boot] [PATCH v6 1/5] tpm: add AUTH1 cmds for LoadKey2 and GetPubKey

2013-06-12 Thread Che-liang Chiou
Acked-by: Che-Liang Chiou clch...@chromium.org On Wed, Jun 12, 2013 at 1:08 AM, dirk.eib...@gdsys.cc wrote: From: Reinhard Pfau p...@gdsys.de Extend the tpm library with support for single authorized (AUTH1) commands as specified in the TCG Main Specification 1.2. (The internally used helper

Re: [U-Boot] [PATCH 1/6] tpm: add AUTH1 cmds for LoadKey2 and GetPubKey

2013-04-22 Thread Che-liang Chiou
Acked-by: Che-Liang Chiou clch...@chromium.org On Mon, Apr 22, 2013 at 4:06 AM, Dirk Eibach eib...@gdsys.de wrote: From: Reinhard Pfau p...@gdsys.de Extend the tpm library with support for single authorized (AUTH1) commands as specified in the TCG Main Specification 1.2. (The internally used

[U-Boot] [PATCH v3] tpm: Add TPM command library

2013-02-28 Thread Che-Liang Chiou
nv_write d 0x1001 0 And then increment the counter by one: $ tpm nv_read d 0x1001 i $ setexpr.l i $i + 1 $ tpm nv_write d 0x1001 $i Signed-off-by: Che-Liang Chiou clch...@chromium.org --- Changes in v3: - Add check of TPM response code Changes in v2: - Merge tpm_util into tpm common/cmd_tpm.c

Re: [U-Boot] [PATCH v2] tpm: Add TPM command library

2013-02-28 Thread Che-liang Chiou
known UMA which seems to be too stupid to keep lines of text without additional word wraps...) -Original Message- From: u-boot-boun...@lists.denx.de [mailto:u-boot-boun...@lists.denx.de] On Behalf Of Che-Liang Chiou Sent: Friday, February 15, 2013 12:01 AM To: u-boot@lists.denx.de

[U-Boot] [PATCH v2] tpm: Add TPM command library

2013-02-14 Thread Che-Liang Chiou
nv_write d 0x1001 0 And then increment the counter by one: $ tpm nv_read d 0x1001 i $ setexpr.l i $i + 1 $ tpm nv_write d 0x1001 $i Signed-off-by: Che-Liang Chiou clch...@chromium.org --- common/cmd_tpm.c | 709 +++ include/{tpm.h = tis.h} | 8

[U-Boot] [PATCH] tpm: Add TPM command library and utility commands

2013-02-08 Thread Che-Liang Chiou
nv_write d 0x1001 0 And then increment the counter by one: $ tpmutil nv_read d 0x1001 i $ setexpr.l i $i + 1 $ tpmutil nv_write d 0x1001 $i Signed-off-by: Che-Liang Chiou clch...@chromium.org --- common/cmd_tpm.c | 732 +++--- include/{tpm.h = tis.h

Re: [U-Boot] [PATCH 09/10] api/api_display: use the getters for console size info

2013-01-15 Thread Che-liang Chiou
Acked-by: Che-Liang Chiou clch...@chromium.org On Sat, Jan 12, 2013 at 2:07 PM, Jeroen Hofstee jer...@myspectrum.nl wrote: cc: Che-Liang Chiou clch...@chromium.org Signed-off-by: Jeroen Hofstee jer...@myspectrum.nl --- api/api_display.c |4 ++-- 1 file changed, 2 insertions(+), 2

Re: [U-Boot] Googlers please reply: commiters in U-Boot

2013-01-15 Thread Che-liang Chiou
I work for Google and my patches signed by clch...@chromium.org come from me while I work for Google. On Sat, Jan 12, 2013 at 9:20 AM, Simon Glass s...@chromium.org wrote: Hi, You are being copied because you have written U-Boot code which is now in mainline. The chromium.org domain does

Re: [U-Boot] [PATCH] cmd_time: merge run_command_and_time_it with cmd_process

2012-12-03 Thread Che-liang Chiou
Acked-by: Che-Liang Chiou clch...@chromium.org On Mon, Dec 3, 2012 at 8:23 AM, Richard Genoud richard.gen...@gmail.com wrote: 2012/12/3 Stefan Roese s...@denx.de: @@ -543,7 +543,9 @@ enum command_ret_t cmd_process(int flag, int argc, char * const argv[], /* If OK so far, then do

Re: [U-Boot] [PATCHv2] cmd_time: merge run_command_and_time_it with cmd_process

2012-12-03 Thread Che-liang Chiou
Acked-By: Che-Liang Chiou clch...@chromium.org On Mon, Dec 3, 2012 at 8:28 AM, Richard Genoud richard.gen...@gmail.com wrote: As far as every arch has a get_timer function, run_command_and_time_it code can now disappear. Signed-off-by: Richard Genoud richard.gen...@gmail.com --- common

Re: [U-Boot] [PATCH 6/7] lcd: Implement RLE8 bitmap decoding

2012-10-01 Thread Che-liang Chiou
Acked-by: Che-Liang Chiou clch...@chromium.org On Fri, Sep 28, 2012 at 6:11 PM, Simon Glass s...@chromium.org wrote: From: Tom Wai-Hong Tam waih...@google.com Add support for drawing compressed RLE8 bitmaps. Reference: http://www.digicamsoft.com/bmp/bmp.html Signed-off-by: Che-Liang Chiou

Re: [U-Boot] [PATCH v2 0/2] Add i2c TPM driver

2012-03-19 Thread Che-liang Chiou
On Mon, Mar 19, 2012 at 5:00 AM, Wolfgang Denk w...@denx.de wrote: Dear Che-Liang Chiou, In message 20111219112511.1eddc135a...@gemini.denx.de I wrote: In message 1324288224-5075-1-git-send-email-clch...@chromium.org you wrote: This patchset adds an i2c bus based TPM driver

Re: [U-Boot] [PATCH v1 1/2] tpm: Rename generic_lpc_tpm to tpm_tis_lpc

2011-12-20 Thread Che-liang Chiou
On Mon, Dec 19, 2011 at 7:38 PM, Wolfgang Denk w...@denx.de wrote: Dear Che-liang Chiou, In message canjuy2jq3nf2mjpxrs-8jgksiv1zg2sfcnqdmrksaqpifup...@mail.gmail.com you wrote: Should we not rather remove all this dead code again? Until today there are no users for this code

Re: [U-Boot] [PATCH v1 1/2] tpm: Rename generic_lpc_tpm to tpm_tis_lpc

2011-12-20 Thread Che-liang Chiou
On Tue, Dec 20, 2011 at 7:43 PM, Wolfgang Denk w...@denx.de wrote: Dear Che-liang Chiou, In message canjuy2jzerkmuske4zes3u6oo0ms3wfjfa+awu0od2mvbf_...@mail.gmail.com you wrote: The board that I test the TPM driver is Seaboard (a tegra2-based board). The config settings enabling TPM

[U-Boot] [PATCH v2 0/2] Add i2c TPM driver

2011-12-19 Thread Che-Liang Chiou
This patchset adds an i2c bus based TPM driver. Changes in v1: - Update s-o-b Peter Huewe's email address - Squash patch #3 into patch #2 Changes in v2: - Style improvements Che-Liang Chiou (2): tpm: Rename generic_lpc_tpm to tpm_tis_lpc tpm: Add i2c TPM driver Makefile

[U-Boot] [PATCH v2 1/2] tpm: Rename generic_lpc_tpm to tpm_tis_lpc

2011-12-19 Thread Che-Liang Chiou
The new name is more aligned with Linux kernel's naming of TPM driver. Signed-off-by: Peter Huewe peter.hu...@infineon.com Signed-off-by: Che-Liang Chiou clch...@chromium.org Acked-by: Mike Frysinger vap...@gentoo.org --- Changes in v1: - Update s-o-b Peter Huewe's email address Makefile

[U-Boot] [PATCH v2 2/2] tpm: Add i2c TPM driver

2011-12-19 Thread Che-Liang Chiou
tpm_private.h. This patch is tested on a tegra2-based machine, where the i2c driver is not upstreamed yet. Note: Merging the LPC driver with tpm.c is left to future patches. Signed-off-by: Peter Huewe peter.hu...@infineon.com Signed-off-by: Che-Liang Chiou clch...@chromium.org --- Changes in v1: - Squash

Re: [U-Boot] [PATCH v1 2/2] tpm: Add i2c TPM driver

2011-12-19 Thread Che-liang Chiou
On Sat, Dec 17, 2011 at 1:21 AM, Mike Frysinger vap...@gentoo.org wrote: On Wednesday 14 December 2011 03:48:24 Che-Liang Chiou wrote: --- /dev/null +++ b/drivers/tpm/tpm.c +int tis_sendrecv(const uint8_t *sendbuf, size_t send_size, uint8_t *recvbuf, +           size_t *recv_len

Re: [U-Boot] [PATCH v1 2/2] tpm: Add i2c TPM driver

2011-12-19 Thread Che-liang Chiou
On Sun, Dec 18, 2011 at 4:33 AM, Wolfgang Denk w...@denx.de wrote: Dear Che-Liang Chiou, In message 1323852504-19954-3-git-send-email-clch...@chromium.org you wrote: Peter Huewe implemented the original driver; this patch only reorganizes the code structure of the driver, and does not make

Re: [U-Boot] [PATCH v1 1/2] tpm: Rename generic_lpc_tpm to tpm_tis_lpc

2011-12-19 Thread Che-liang Chiou
On Sun, Dec 18, 2011 at 4:35 AM, Wolfgang Denk w...@denx.de wrote: Dear Che-Liang Chiou, In message 1323852504-19954-2-git-send-email-clch...@chromium.org you wrote: The new name is more aligned with Linux kernel's naming of TPM driver. Signed-off-by: Peter Huewe peter.hu...@infineon.com

[U-Boot] [PATCH v1 0/2] Add i2c TPM driver

2011-12-14 Thread Che-Liang Chiou
This patchset adds an i2c bus based TPM driver. Changes in v1: - Update s-o-b Peter Huewe's email address - Squash patch #3 into patch #2 Che-Liang Chiou (2): tpm: Rename generic_lpc_tpm to tpm_tis_lpc tpm: Add i2c TPM driver Makefile |2

[U-Boot] [PATCH v1 1/2] tpm: Rename generic_lpc_tpm to tpm_tis_lpc

2011-12-14 Thread Che-Liang Chiou
The new name is more aligned with Linux kernel's naming of TPM driver. Signed-off-by: Peter Huewe peter.hu...@infineon.com Signed-off-by: Che-Liang Chiou clch...@chromium.org Acked-by: Mike Frysinger vap...@gentoo.org --- Changes in v1: - Update s-o-b Peter Huewe's email address Makefile

[U-Boot] [PATCH v1 2/2] tpm: Add i2c TPM driver

2011-12-14 Thread Che-Liang Chiou
tpm_private.h. This patch is tested on a tegra2-based machine, where the i2c driver is not upstreamed yet. Note: Merging the LPC driver with tpm.c is left to future patches. Signed-off-by: Peter Huewe peter.hu...@infineon.com Signed-off-by: Che-Liang Chiou clch...@chromium.org --- Changes in v1: - Squash

[U-Boot] [PATCH 3/3] tpm: Update README

2011-12-13 Thread Che-Liang Chiou
Document TPM_TIS_I2C-related config options in README. Signed-off-by: Che-Liang Chiou clch...@chromium.org --- README | 13 + 1 files changed, 13 insertions(+), 0 deletions(-) diff --git a/README b/README index 434384c..badb834 100644 --- a/README +++ b/README @@ -1076,6 +1076,19

[U-Boot] [PATCH 2/3] tpm: Add i2c TPM driver

2011-12-13 Thread Che-Liang Chiou
Peter Huewe implemented the original driver; this patch only reorganizes the code structure of the driver, and does not make logical changes. tpm.c implements the interface defined in tpm.h based on underlying LPC or i2C TPM driver. tpm.c and the underlying driver communicate throught

Re: [U-Boot] [PATCH V5 3/4] font: split font data from video_font.h

2011-10-30 Thread Che-liang Chiou
Hi, On Mon, Oct 31, 2011 at 2:33 AM, Anatolij Gustschin ag...@denx.de wrote: Please next time additionally use '-C' Option for 'git format-patch ...' Thanks for the advice. I will add -C option. Regards, Che-Liang ___ U-Boot mailing list

Re: [U-Boot] [PATCH 1/2] Flatten and solidify block_dev_desc layout

2011-10-23 Thread Che-liang Chiou
Dear Wolfgang Denk, I guess I have to put this patchset on hold. I will get you back if we could proceed with this patchset. Regards, Che-Liang On Sat, Oct 22, 2011 at 3:09 AM, Wolfgang Denk w...@denx.de wrote: Dear Che-Liang Chiou, In message 1319178708-10881-2-git-send-email-clch

Re: [U-Boot] [PATCH 0/2] api: extend accessible set of block device attributes

2011-10-23 Thread Che-liang Chiou
Hi Detlev, Oops, I did not know it is intentionally to keep the external apps API as it is now. I am working on an open source secure bootloader based on U-Boot. Mostly I wrote boot logic (by boot logic I mean prompting user and listing available devices sort of things). If you see U-Boot as a

[U-Boot] [PATCH 0/2] api: extend accessible set of block device attributes

2011-10-21 Thread Che-Liang Chiou
struct device_info in api_public.h defined its own subset of attributes of block_dev_desc, which limits the capability of external apps. This patch set let external apps access the same set of block device attributes as U-Boot. Che-Liang Chiou (2): Flatten and solidify block_dev_desc layout

[U-Boot] [PATCH 1/2] Flatten and solidify block_dev_desc layout

2011-10-21 Thread Che-Liang Chiou
that the block_dev_desc layout would be an invariant with respect to configurations. Doing so would waste a few extra bytes per struct block_dev_desc, which I believe is not critical. Signed-off-by: Che-Liang Chiou clch...@chromium.org --- disk/part_dos.c |2 +- disk/part_efi.c |4 +--- drivers

[U-Boot] [PATCH 2/2] api: storage: Share attributes with block_dev_desc

2011-10-21 Thread Che-Liang Chiou
compared to U-Boot. The export.h and _export.h have somewhat addressed the same issue. That is, sharing declarations between U-Boot and external apps. Signed-off-by: Che-Liang Chiou clch...@chromium.org --- api/api_storage.c| 17 +++-- examples/api/demo.c | 15

[U-Boot] [PATCH 1/2] Flatten and solidify block_dev_desc layout

2011-10-21 Thread Che-Liang Chiou
that the block_dev_desc layout would be an invariant with respect to configurations. Doing so would waste a few extra bytes per struct block_dev_desc, which I believe is not critical. Signed-off-by: Che-Liang Chiou clch...@chromium.org --- Fix a minor checkpatch violation. disk/part_dos.c |2 +- disk

[U-Boot] [PATCH V5 0/4] export LCD device to external apps

2011-10-21 Thread Che-Liang Chiou
This patch set exports LCD clearing and bitmap-rendering on screen functions to external apps, and provides a unified interface of accessing them. Che-Liang Chiou (4): lcd: add clear and draw bitmap declaration tools: logo: split bmp arrays from bmp_logo.h font: split font data from

[U-Boot] [PATCH V5 2/4] tools: logo: split bmp arrays from bmp_logo.h

2011-10-21 Thread Che-Liang Chiou
these arrays in another header bmp_logo_data.h and in bmp_logo.h only declaring these arrays. Signed-off-by: Che-Liang Chiou clch...@chromium.org --- Changes in V5 Split bmp arrays from bmp_logo.h to bmp_logo_data.h Changes in V4 None Changes in V3 Add to the patch set Makefile

[U-Boot] [PATCH V5 1/4] lcd: add clear and draw bitmap declaration

2011-10-21 Thread Che-Liang Chiou
The functions for clearing and drawing bitmaps on the screen were not exposed publicly and are made public in this patch in preparation for implementing the display interface of api_public.h. Signed-off-by: Che-Liang Chiou clch...@chromium.org --- Changes in V5 Remove inline extern declaration

[U-Boot] [PATCH V5 4/4] api: export LCD device to external apps

2011-10-21 Thread Che-Liang Chiou
This patch exports LCD info-query and bitmap-rendering functions to external apps. This patch is tested on a Seaboard. Because the LCD driver is not yet upstreamed, the test was done in a local downstream repo. Signed-off-by: Che-Liang Chiou clch...@chromium.org --- Changes in V5 Clean up

[U-Boot] [PATCH V5 1/4] lcd: add clear and draw bitmap declaration

2011-10-21 Thread Che-Liang Chiou
The functions for clearing and drawing bitmaps on the screen were not exposed publicly and are made public in this patch in preparation for implementing the display interface of api_public.h. Signed-off-by: Che-Liang Chiou clch...@chromium.org --- Changes in V5 Remove inline extern declaration

[U-Boot] [PATCH V4 0/3] api: export LCD and video to external apps

2011-10-19 Thread Che-Liang Chiou
This patch set exports LCD clearing and bitmap-rendering on screen functions to external apps, and provides a unified interface of accessing them. Che-Liang Chiou (3): lcd: add clear and draw bitmap declaration tools: logo: add static and unused to bmp arrays api: export LCD device

[U-Boot] [PATCH V4 1/3] lcd: add clear and draw bitmap declaration

2011-10-19 Thread Che-Liang Chiou
The functions for clearing and drawing bitmaps on the screen were not exposed publicly and are made public in this patch in preparation for implementing the display interface of api_public.h. Signed-off-by: Che-Liang Chiou clch...@chromium.org --- Changes in V4 Remove support of video device

[U-Boot] [PATCH V4 2/3] tools: logo: add static and unused to bmp arrays

2011-10-19 Thread Che-Liang Chiou
__attribute__((unused)) to the array definitions so that bmp_logo.h can be included multiple times, and these arrays is used in only one inclusion (lcd.c). Signed-off-by: Che-Liang Chiou clch...@chromium.org --- Changes in V4 None Changes in V3 Add to the patch set tools/bmp_logo.c |6

[U-Boot] [PATCH V4 3/3] api: export LCD device to external apps

2011-10-19 Thread Che-Liang Chiou
This patch exports LCD info-query and bitmap-rendering functions to external apps. This patch is tested on a Seaboard. Because the LCD driver is not yet upstreamed, the test was done in a local downstream repo. Signed-off-by: Che-Liang Chiou clch...@chromium.org --- Changes in V4 Remove

Re: [U-Boot] [PATCH V3 4/4] api: export LCD and video to external apps

2011-10-19 Thread Che-liang Chiou
+0800 Che-Liang Chiou clch...@chromium.org wrote: ... +int display_get_info(int type, struct display_info *di) +{ +#if defined(CONFIG_VIDEO) || defined(CONFIG_CFB_CONSOLE) +     GraphicDevice *gdev; +#endif + +     switch (type) { +     default: +             debug(%s: unsupport display

Re: [U-Boot] [PATCH V2 2/2] api: export LCD and video to external apps

2011-10-18 Thread Che-liang Chiou
Hi Anatolij, Thanks for testing this patch. Please see below. On Tue, Oct 18, 2011 at 5:13 AM, Anatolij Gustschin ag...@denx.de wrote: Hi, thanks for the patch and style fixes! I've some comments on it. Please see below. On Fri,  7 Oct 2011 16:28:12 +0800 Che-Liang Chiou clch

[U-Boot] [PATCH V2] examples: api: allow build with private libgcc

2011-10-18 Thread Che-Liang Chiou
CONFIG_NET_MULTI Signed-off-by: Che-Liang Chiou clch...@chromium.org Acked-by: Mike Frysinger vap...@gentoo.org --- Changes in V2 Rebase to ToT Makefile | 18 +- examples/api/Makefile |4 +--- 2 files changed, 10 insertions(+), 12 deletions(-) diff --git a/Makefile b

[U-Boot] [PATCH V2] examples: api: allow build with private libgcc

2011-10-18 Thread Che-Liang Chiou
CONFIG_NET_MULTI Signed-off-by: Che-Liang Chiou clch...@chromium.org Acked-by: Mike Frysinger vap...@gentoo.org --- Sorry, please ignore the previous V2 patch. I missed to git-add a couple of lines to that patch. Changes in V2 Rebase to ToT Makefile | 22 +- examples

Re: [U-Boot] [PATCH V2 2/2] api: export LCD and video to external apps

2011-10-18 Thread Che-liang Chiou
Hi Anatolij, On Tue, Oct 18, 2011 at 3:17 PM, Anatolij Gustschin ag...@denx.de wrote: Hi, On Tue, 18 Oct 2011 14:12:59 +0800 Che-liang Chiou clch...@chromium.org wrote: ... Many boards defining CONFIG_LCD also define CONFIG_LCD_LOGO. Enabling CONFIG_API for such board configurations

[U-Boot] [PATCH V3 0/4] api: export LCD and video to external apps

2011-10-18 Thread Che-Liang Chiou
This patch set exports LCD and video clearing and bitmap-rendering on screen functions to external apps, and provides a unified interface of accessing them. Che-Liang Chiou (4): lcd: video: add clear and draw bitmap declaration tools: logo: add static and unused to bmp arrays video: add

[U-Boot] [PATCH V3 1/4] lcd: video: add clear and draw bitmap declaration

2011-10-18 Thread Che-Liang Chiou
The functions for clearing and drawing bitmaps on the screen were not exposed publicly and are made public in this patch in preparation for implementing the display interface of api_public.h. Signed-off-by: Che-Liang Chiou clch...@chromium.org --- Changes in V3 Rebase to ToT Changes in V2

[U-Boot] [PATCH V3 2/4] tools: logo: add static and unused to bmp arrays

2011-10-18 Thread Che-Liang Chiou
__attribute__((unused)) to the array definitions so that bmp_logo.h can be included multiple times, and these arrays is used in only one inclusion (lcd.c). Signed-off-by: Che-Liang Chiou clch...@chromium.org --- Changes in V3 Add to the patch set tools/bmp_logo.c |6 -- 1 files changed

[U-Boot] [PATCH V3 3/4] video: add access to GraphicDevice struct

2011-10-18 Thread Che-Liang Chiou
responsibility to make sure that the video device is properly initialized. Signed-off-by: Che-Liang Chiou clch...@chromium.org --- Changes in V3 Add to the patch set board/eltec/mhpc/mhpc.c |7 +++ drivers/video/ati_radeon_fb.c |5 + drivers/video/ct69000.c |5

[U-Boot] [PATCH V3 4/4] api: export LCD and video to external apps

2011-10-18 Thread Che-Liang Chiou
. Signed-off-by: Che-Liang Chiou clch...@chromium.org --- Changes in V3 Rebase to ToT Changes in V2 Fix style errors api/Makefile |3 +- api/api.c| 51 ++ api/api_display.c| 97 ++ api

[U-Boot] [PATCH V2 0/2] api: export LCD and video to external apps

2011-10-07 Thread Che-Liang Chiou
This patch set exports LCD and video clearing and bitmap-rendering on screen functions to external apps, and provides a unified interface of accessing them. Che-Liang Chiou (2): lcd: video: add clear and draw bitmap declaration api: export LCD and video to external apps api/Makefile

[U-Boot] [PATCH V2 1/2] lcd: video: add clear and draw bitmap declaration

2011-10-07 Thread Che-Liang Chiou
The functions for clearing and drawing bitmaps on the screen were not exposed publicly and are made public in this patch in preparation for implementing the display interface of api_public.h. Signed-off-by: Che-Liang Chiou clch...@chromium.org --- Changes since V1 Fix style errors common

[U-Boot] [PATCH V2 2/2] api: export LCD and video to external apps

2011-10-07 Thread Che-Liang Chiou
. Signed-off-by: Che-Liang Chiou clch...@chromium.org --- Changes since V1 Fix style errors api/Makefile |3 +- api/api.c| 51 + api/api_display.c| 86 ++ api/api_private.h|4

Re: [U-Boot] [PATCH 2/2] api: export LCD and video to external apps

2011-10-07 Thread Che-liang Chiou
Dear Wolfgang Denk, On Fri, Oct 7, 2011 at 2:33 AM, Wolfgang Denk w...@denx.de wrote: Dear Che-Liang Chiou, In message ce61e361e4b8456b9e0584a72f37d2e278ff2ab1.1317715598.git.clch...@chromium.org you wrote: This patch exports LCD and video information and bitmap-rendering functions

[U-Boot] [PATCH V3] cmd_time: add time command

2011-10-07 Thread Che-Liang Chiou
The 'time' command runs and reports execution time of commands. Sample usage: u-boot# time crc 0x1000 1000 CRC32 for 1000 ... 1fff == ae94dc4b time: 0.004 seconds, 4 ticks Signed-off-by: Che-Liang Chiou clch...@chromium.org --- Changes since V2

Re: [U-Boot] [PATCH 2/2] api: export LCD and video to external apps

2011-10-07 Thread Che-liang Chiou
, 2011 at 5:05 PM, Wolfgang Denk w...@denx.de wrote: Dear Che-liang Chiou, In message canjuy2kuhg+4kueeupj0pbefkjdhajjnt_8-vulxyuxh9oc...@mail.gmail.com you wrote: +       ub_display_clear(); What happens here if no display is available? It is equivalent to a no-op. Or do you think we

[U-Boot] [PATCH V2] cmd_time: add time command

2011-10-06 Thread Che-Liang Chiou
The 'time' command runs and reports execution time of commands. Sample usage: u-boot# time crc 0x1000 1000 CRC32 for 1000 ... 1fff == ae94dc4b time: 0.004 seconds, 4 ticks Signed-off-by: Che-Liang Chiou clch...@chromium.org --- Changes Since V1

Re: [U-Boot] [PATCH] cmd_time: add time command

2011-10-06 Thread Che-liang Chiou
Hi Mike, Thanks for comments. Reply inlined. On Thu, Oct 6, 2011 at 1:24 AM, Mike Frysinger vap...@gentoo.org wrote: On Wednesday 05 October 2011 03:09:15 Che-Liang Chiou wrote: The 'time' command runs and reports execution time of commands. cool Sameple usage: typo: Sample Done

[U-Boot] [PATCH] cmd_time: add time command

2011-10-05 Thread Che-Liang Chiou
The 'time' command runs and reports execution time of commands. Sameple usage: u-boot# time crc 0x1000 1000 CRC32 for 1000 ... 1fff == ae94dc4b time: 0.004 seconds, 4 ticks Signed-off-by: Che-Liang Chiou clch...@chromium.org --- README

[U-Boot] [PATCH 0/2] api: export LCD and video to external apps

2011-10-04 Thread Che-Liang Chiou
This patch set exports LCD and video clearing and bitmap-rendering on screen functions to external apps, and provides a unified interface of accessing them. Che-Liang Chiou (2): lcd: video: add clear and draw bitmap declaration api: export LCD and video to external apps api/Makefile

[U-Boot] [PATCH 1/2] lcd: video: add clear and draw bitmap declaration

2011-10-04 Thread Che-Liang Chiou
The functions for clearing and drawing bitmaps on the screen were not exposed publicly and are made public in this patch in preparation for implementing the display interface of api_public.h. Signed-off-by: Che-Liang Chiou clch...@chromium.org --- common/lcd.c| 15 +-- include

[U-Boot] [PATCH 2/2] api: export LCD and video to external apps

2011-10-04 Thread Che-Liang Chiou
. Signed-off-by: Che-Liang Chiou clch...@chromium.org --- api/Makefile |3 +- api/api.c| 51 ++ api/api_display.c| 85 ++ api/api_private.h|4 ++ examples/api/demo.c | 28

[U-Boot] [PATCH] examples: api: allow build with private libgcc

2011-09-28 Thread Che-Liang Chiou
CONFIG_NET_MULTI Signed-off-by: Che-Liang Chiou clch...@chromium.org --- Makefile | 16 ++-- examples/api/Makefile |4 +--- 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/Makefile b/Makefile index dfe939f..550088f 100644 --- a/Makefile +++ b/Makefile

Re: [U-Boot] [PATCH] arm: add 64-64 bit divider

2011-09-01 Thread Che-liang Chiou
will rewrite (or abandon) this patch accordingly. Regards, Che-Liang On Thu, Sep 1, 2011 at 4:03 AM, Wolfgang Denk w...@denx.de wrote: Dear Che-Liang Chiou, In message 1314787130-1043-1-git-send-email-clch...@chromium.org you wrote: This patch adds a 64-64 bit divider that supports ARMv4

Re: [U-Boot] [PATCH] arm: add 64-64 bit divider

2011-09-01 Thread Che-liang Chiou
wrote: Dear Che-Liang Chiou, In message 1314787130-1043-1-git-send-email-clch...@chromium.org you wrote: This patch adds a 64-64 bit divider that supports ARMv4 and above. To summarize the misc feedback:  Please explain in detail which problem you are trying to fix.  We see no need

Re: [U-Boot] [PATCH] arm: add 64-64 bit divider

2011-09-01 Thread Che-liang Chiou
:30:47 PM Che-liang Chiou wrote: Hi Marek, I will abandon this patch and submit a new patch that is adapted from do_div() and lib64.c of the Linux kernel. Does this sound okay to you? I'm not against it, but is it worth the effort? Like ... why do we need it ? Regards, Che-Liang

Re: [U-Boot] [PATCH] arm: add 64-64 bit divider

2011-09-01 Thread Che-liang Chiou
Dear Wolfgang, I am convinced that a 64-64 bit divider (this patch) is not needed. Is there any way that we could mark a patch abandon? Regards, Che-Liang On Thu, Sep 1, 2011 at 9:07 PM, Wolfgang Denk w...@denx.de wrote: Dear Che-liang Chiou, In message CANJuy2K9uWdxT6T

[U-Boot] [PATCH] arm: add 64-64 bit divider

2011-08-31 Thread Che-Liang Chiou
) { uint64_t a, b, q, r; while (scanf(%llx %llx %llx %llx, a, b, q, r) 0) printf(%016llx %016llx %016llx %016llx\n, a, b, a / b, a % b); return 0; } Signed-off-by: Che-Liang Chiou clch...@chromium.org Cc: Albert Aribaud albert.u.b...@aribaud.net --- This patch is alos tested with `MAKEALL

[U-Boot] [PATCH] arm: tegra2: fix out-of-tree build

2011-08-23 Thread Che-Liang Chiou
adds explicit mkdir's to the Makefiles in question, and verifies that out-of-tree build is working. Signed-off-by: Che-Liang Chiou clch...@chromium.org Cc: Albert Aribaud albert.u.b...@aribaud.net --- board/nvidia/harmony/Makefile |4 board/nvidia/seaboard/Makefile |4 2 files

Re: [U-Boot] [PATCH] arm: tegra2: fix out-of-tree build

2011-08-23 Thread Che-liang Chiou
Hi Anton, Thanks for comments. Replied below. Regards, Che-Liang On Wed, Aug 24, 2011 at 1:01 AM, Anton Staaf robot...@google.com wrote: On Tue, Aug 23, 2011 at 3:03 AM, Che-Liang Chiou clch...@chromium.org wrote: The out-of-tree build fails because the Makefiles in question depend on source

Re: [U-Boot] [PATCH v3] Add 'sf update' command to do smart SPI flash update

2011-08-23 Thread Che-liang Chiou
Hi Simon, I have a dumb question: How did you make u-boot run native under Linux? Did you mock out all platform functions? Or did you bundle u-boot with a emulator? Regards, Che-Liang On Wed, Aug 24, 2011 at 6:16 AM, Mike Frysinger vap...@gentoo.org wrote: On Tuesday, August 23, 2011 18:01:34

Re: [U-Boot] [PATCH] Fix variable flavor in examples/standalone/Makefile

2011-05-12 Thread Che-liang Chiou
Thanks, Wolfgang. On Fri, May 13, 2011 at 4:30 AM, Wolfgang Denk w...@denx.de wrote: Dear Che-liang Chiou, In message aanlktimw1vlc8gm_xsdgqgkluyyzkqofyfb8-bjvb...@mail.gmail.com you wrote: GNU Makefile have two flavors of variables, recursively expanded that is defined by using

Re: [U-Boot] [PATCH] Fix variable flavor in examples/standalone/Makefile

2011-02-22 Thread Che-liang Chiou
Dear Wolfgang Denk, On Tue, Feb 22, 2011 at 3:33 PM, Wolfgang Denk w...@denx.de wrote: In message aanlktimw1vlc8gm_xsdgqgkluyyzkqofyfb8-bjvb...@mail.gmail.com you wrote: The bug is caused by using recursively expanded flavor for BIN and SREC. You wrote The bug.  How does this bug manifest in

[U-Boot] [PATCH] Fix variable flavor in examples/standalone/Makefile

2011-02-21 Thread Che-liang Chiou
),$(BIN_rec)) BIN_sim := $(addprefix $(obj),$(BIN_sim)) show: @echo BIN_rec=$(BIN_rec) @echo BIN_sim=$(BIN_sim) .PHONY: show EOF $ make show BIN_rec=/path/to/obj//path/to/obj/hello_world.bin BIN_sim=/path/to/obj/hello_world.bin Signed-off-by: Che-Liang Chiou clch...@chromium.org