[U-Boot] am335x board i2c_probe fails from nand boot

matti kaasinen matti.kaasinen at gmail.com
Thu Jan 5 14:01:08 CET 2017


This is now too much off-topic from the original title.
I2C is not troublemaker anymore.
I'll open new topic for new problems.
Thanks

2017-01-05 12:09 GMT+02:00 matti kaasinen <matti.kaasinen at gmail.com>:

> 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 <matti.kaasinen at gmail.com>:
>
>> 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.
>>
>
>
>


More information about the U-Boot mailing list