On Wed, Aug 20, 2014 at 02:24:37PM +0200, Floris Bos wrote: > Hi, > > Somewhat related to current discussion: I did notice u-boot does have a > lot of #ifdef's nowadays for SoC and PMU. > And was wondering if that couldn't be replaced with something that > detects SoC and PMU at runtime, if it's necessary to have different > initialization. > > > One of the reasons I wrote the original meminfo wasn't just for > displaying the memory information under Android, but also to use it in > combination with an Android SD card writer app that is able to patch the > binary u-boot SPL image with the detected settings and write it to SD > card automatically. Allowing users to write a generic sunxi OS image to > the SD card, without having to compile and patch u-boot manually. > ( https://github.com/maxnet/android-sdcard-writer ) > That concept only works if it is possible to build a single u-boot > binary that can be patched after compilation though.
I guess that the above identification code is good enough for u-boot as well, and that a lot of the board specifics can then be rewritten. But someone has to go do that work. Luc Verhaegen. -- You received this message because you are subscribed to the Google Groups "linux-sunxi" group. To unsubscribe from this group and stop receiving emails from it, send an email to linux-sunxi+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.