From: Andre Schwarz Date: Fri, 21 Apr 2006 13:29:57 +0200 Subject: [U-Boot-Users] FPGA loading Message-ID: <200604211329.58054.andre.schwarz@matrix-vision.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi all, looks like there is a little bit of code missing in "common/cmd_fpga.c". The code intends to load a FPGA with the command "fpga load ". Variable argc is supported, so is optional. The 2 operands and are obtained from the environment (->"fpga" and "fpgadata"). But is not. This results in an error as soon as you try to do a "fpga load" having "fpga=0" and "fpgadata=Address" set up correctly in the environment, since "fpgadata" is NULL. This patch gets rid of this problem. 201a202 > char *sizestr = getenv ("fpgadatasize"); 207a209,210 > if (sizestr) > data_size = (size_t) simple_strtoul (sizestr, NULL, 16); regards, Andre