From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marek Vasut Date: Mon, 4 Feb 2013 19:45:33 +0100 Subject: [U-Boot] [PATCH] mxs: mxsboot: Add support for SD card generation for i.MX23 In-Reply-To: References: <1359050048-25415-1-git-send-email-otavio@ossystems.com.br> <201301241939.17482.marex@denx.de> Message-ID: <201302041945.33652.marex@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Fabio Estevam, [...] > > @@ -574,8 +574,8 @@ static int mx28_create_sd_image(int infd, int outfd) > > > > cb->drv_info[0].chip_num = 0x0; > > cb->drv_info[0].drive_type = 0x0; > > cb->drv_info[0].tag = 0x1; > > > > - cb->drv_info[0].first_sector_number = sd_sector + 1; > > - cb->drv_info[0].sector_count = (size - 1) / 512; > > + cb->drv_info[0].first_sector_number = sd_sector + 4; > > + cb->drv_info[0].sector_count = (size - 4) / 512; > > > > wr_size = write(outfd, buf, size); > > if (wr_size != size) { > > My mx28evk does not boot with this patch applied. Can you add this section to arch/arm/cpu/arm926ejs/mxs/u-boot-imx28.bd -->8-- options { driveTag = 0x00; flags = 0x01; } --8<-- and paste the output you get on serial port? the flags = 1 should enable debug output from the bootrom. Best regards, Marek Vasut