From mboxrd@z Thu Jan 1 00:00:00 1970 From: matti kaasinen Date: Thu, 5 Jan 2017 12:09:26 +0200 Subject: [U-Boot] am335x board i2c_probe fails from nand boot In-Reply-To: References: <672491fd-cf35-dedf-bc8a-975f16d43dca@ti.com> <5f15e470-d12f-e3ea-d393-5cb6e0c700cd@ti.com> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de FIXME!! Pretty much everything I claim below is wrong and am335x_evm.h correct. Only the last notice is not totally wrong as space reserver for NAND.u-boot-spl-os is not 0x2000. 2017-01-04 9:33 GMT+02:00 matti kaasinen : > I noticed some nand related values that I'm not sure if they are correct. > I get following nand partition listed from mmc boot: > [ 1.230539] Creating 10 MTD partitions on "8000000.nand": > [ 1.236229] 0x000000000000-0x000000020000 : "NAND.SPL" > [ 1.243121] 0x000000020000-0x000000040000 : "NAND.SPL.backup1" > [ 1.250614] 0x000000040000-0x000000060000 : "NAND.SPL.backup2" > [ 1.258121] 0x000000060000-0x000000080000 : "NAND.SPL.backup3" > [ 1.265515] 0x000000080000-0x0000000c0000 : "NAND.u-boot-spl-os" > [ 1.273167] 0x0000000c0000-0x0000001c0000 : "NAND.u-boot" > [ 1.280890] 0x0000001c0000-0x0000001e0000 : "NAND.u-boot-env" > [ 1.288255] 0x0000001e0000-0x000000200000 : "NAND.u-boot-env.backup1" > [ 1.296430] 0x000000200000-0x000000a00000 : "NAND.kernel" > [ 1.309941] 0x000000a00000-0x000010000000 : "NAND.file-system" > > In am335x_evm.h there are following definitions: > #define CONFIG_SYS_NAND_U_BOOT_OFFS 0x000c0000 > So, this is pointing to NAND.u-boot-spl-os, i.e os parameters in nand, not > u-boot > > #define CONFIG_CMD_SPL_NAND_OFS 0x00080000 /* os parameters */ > This is pointing to NAND.SPL.backup3 > > #define CONFIG_SYS_NAND_SPL_KERNEL_OFFS 0x00200000 /* kernel offset */ > This is pointing to NAND.u-boot-env.backup1, not kernel > > #define CONFIG_CMD_SPL_WRITE_SIZE 0x2000 > 0x2000 does not match with 0x80000 that is reserved for NAND.u-boot-spl-os > partition. >