Hi:
I am running a Beagle Bone with a custom cape and I am looking for ways to reduce its boot time. The cape will always be the same and so I'd like to see what it is I can change to reduce or completely remove custom auto detection scripts.
As of now, the board boots in 18s, 8s are spent in the kernel, 10s are spent in user space.
I have seen numbers out stating that the kernel can boot in less than 2s. I'd be interested to know how this is possible. I am aware of a timeout being used in the kernel, though I am not sure how to disable this (using 4.1.33-bone-rt-r24).
Currently generic-board-startup.service seems to be the service that takes the longest to complete. Looking at what it does, it seems to be invoking
am335x_evm.h.sh. I am wondering if I could disable anything related to detecting capes (including trying to read the eeprom). At this time I can see lines 30 to 55 in the scripts being related to eeprom flashing/reading, though I am not sure this is targetting the cape's eeprom.
In general, how would I go about disabling auto detection of capes? Would I need to edit these scripts? Or is there a cleaner way to disable features by editing a config file?
Regards,
JS