Hi,
We are using TI's AM33x WEC 7 BSP on our custom AM335x-based device and we have modified the bootloader to add a feature that is writing sort file table of around 5K bytes in size. However, we observed that the system is having random slowness or sometimes random unmounting of NAND volumes are happening at as well.
I started debugging this and one thing that caught my attention is that in the EBOOT code our vendor is hard coding the location of the file table to this physical address, 0x8C000000.
i.e.
fileTable = (UINT32*)OALPAtoUA(0x8C000000);
He mentioned that this physical address is direct to the RAM and should not corrupt anything on the system. Well I'm not really a fan of doing such memory hard coding unless that physical address is memory map for a driver and it is the driver code were making. So I would to seek second opinion if this is really the a safe way.
My doubt is that hard coding a physical address in the RAM might actually be pointing an address that will later by used as RAMDisk for the NK.bin. Or if this not actual RAM physical address it could be corrupting something else because this memory is then memset to 0 in the code.
I think the better goal here is to store this file table somewhere in our NAND but I'm not too familiar how to do this. If you can share as well how to modify the EBOOT code to store something to the NAND, I would be grateful if you can share as well. Thanks