On 31.07.15 09:52, Matwey V. Kornilov wrote:
31.07.2015 11:42, Matwey V. Kornilov пишет:
2. Add overlay support to U-Boot
I know 2A option. Merge DTB and DTOs in userspace using special script and then provide the result to u-boot for the next booting. This is what update-bootloader may do.
So SPI came in as an option here. What exactly would you envision the script that makes this easy to look like? Imagine you have a SPI Flash controller on your SPI CS0 connection. Then you would need to also add the flash driver to your device tree. And because the flash chip is partitioned, you would also need to provide its partition table in the device tree. It gets incredibly complicated very quickly. That said, I do agree that we could probably do a better job at this by giving users at least the chance to take 2 dtbs and have the boot loader merge them into one - so you have one for the board and one for "custom changes". Thinking out loud here, there is another problem we have on U-Boot systems: You can only have a single kernel selected at any given time. There are 2 options out of that 1) Implement extboot support in our bootloader configuration tools 2) Use grub2 on top of u-boot I'm in favor of option 2. And I haven't looked at it, but I wouldn't be surprised if you could convince grub2 to merge dtbs for you. If it does't we should probably extend it to be able to. That's a vision that I think should get us to a more streamlined solution that the ad-hoc hacks we have today. But it's a bumpy road and some people really need to sit down and work on some code ;). So at the end of the day it boils down to "if you do the work, you get to choose how it's done". Alex -- To unsubscribe, e-mail: opensuse-arm+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-arm+owner@opensuse.org