Hello,
I'm using Processor SDK 2.0.0.1 to develop a kernel and u-boot image for a custom board based on the BBB and I'd like to remove the dependency on the EEPROM. After much digging through the source code I've found the files in:
/ti-processor-sdk-linux-am335x-evm-02.00.01.07/board-support/u-boot-2015.07+gitAUTOINC+5922e09363/board/ti/common/
and
/ti-processor-sdk-linux-am335x-evm-02.00.01.07/board-support/u-boot-2015.07+gitAUTOINC+5922e09363/board/ti/am335x/
which read the EEPROM and configure the U-boot accordingly. I see that it loads the values in EEPROM into the RAM at address OMAP_SRAM_SCRATCH_BOARD_EEPROM_START. Is this needed? Can I just force the board_is_bone_lt() to return true?
If the values in RAM are important what I should put in place of the other parts of the data (rev, config, mac addr's) in the EEPROM structure:
struct ti_am_eeprom {
unsigned int header;
char name[TI_EEPROM_HDR_NAME_LEN];
char version[TI_EEPROM_HDR_REV_LEN];
char serial[TI_EEPROM_HDR_SERIAL_LEN];
char config[TI_EEPROM_HDR_CONFIG_LEN];
char mac_addr[TI_EEPROM_HDR_NO_OF_MAC_ADDR][TI_EEPROM_HDR_ETH_ALEN];
} __attribute__ ((__packed__));
Is there anywhere that helps determine which files needed to be modified to port a custom board? I've searched everywhere and can't find anything that isn't deprecated (old Sitara Linux SDK). It looks like there was some good guides for the pre-devicetree days but I'm having a really hard time finding up-to-date information.
For the Kernel is there any dependency on the EEPROM? If so, can you point me to the files I need to modify? It feels like it would have been taken care of in the devicetree but I'm new to Linux and I don't have my head wrapped around everything yet. I have had success modifying the devicetree on a BBB but I don't know what will happen when the EEPROM is not there.
Thanks,
Matt