Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
faster boot time #117
There's a list somewhere of things I was going to do to optimize this. I don't see an issue on openwrt-tessel (firmware boots in milliseconds), so I don't remember where that went. I got the low-hanging fruit, like removing the artificial delays waiting for user input in the bootloader and openwrt failsafe.
The bottleneck is mostly reading data from the SPI flash. Not sure if it will work or will help to just increase the SPI clock speed, but that's a simple tweak worth a try. That's in the devicetree (
If you implemented DMA support for the mt7620 SPI controller in the Linux kernel, that would probably cut boot time in half, but would be rather involved and the mediatek documentation is a little lacking there. Right now the CPU does nothing useful while waiting to read data from flash.