Am 21.11.2015 um 06:49 schrieb Matwey V. Kornilov:
21.11.2015 01:08, Andreas Färber пишет:
Am 20.11.2015 um 20:09 schrieb Matwey V. Kornilov:
The flavor of dtb (dtb file) is to be specified in /etc/sysconfig/bootloader
That shouldn't be necessary, U-Boot is supposed to provide $fdtfile. In my testing I didn't need to specify a dtb file in extlinux.conf, only the dtb directory.
That is great news, but I think it is better to provide optional possibility to set the file manually. Let me describe use-case.
BeagleBone Black supports the capes, and the kernel still doesn't have an user-space API for overlays. So, to enable my specific hardware I will modify am335x-beaglebone.dts and compile new version, say am335x-beaglebone-with-geiger-counter-cap.dtb. Sure, when I will deploy this to my production, I will make a package dtb-am335x-with-geiger-counter-%{version}.rpm (Please, see above, imagine, new kernel update has been issued and my build service has not rebuild this package yet, so I'll receive an updated kernel and will not receive and updated dtb package)
How should u-boot guess what I want now? So, please, let the user some freedom.
Maybe your statement above was ambiguous - for me "is to be specified" reads as "must be specified". To that I objected. You're free to add an optional mechanism to override it, of course. But I would prefer to get the current pull sorted out and tested before we investigate such extra features. I do wonder whether there is a better way, changing fdtfile in U-Boot's environment rather than FDT in extlinux.conf, for instance. Unfortunately extlinux.conf is read before boot.scr, otherwise you could've overridden it there and called sysboot from the script. And uEnv.txt is only read by a handful of boards, so not a general solution, but I believe Matthias reported such an error on BBB? Do you actually need a different filename though? If you want to have a side-by-side installation you would really also need two extlinux.conf entries per kernel to switch easily. Otherwise you could just leave the .dtb filename the same for your modified package, needing no modifications to extlinux.conf. BTW I thought that months ago we had enabled DT overlays in the kernel on your request. What's missing to make overlays work? I don't have any capes/hats/shields/etc. Regards, Andreas -- SUSE Linux GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany GF: Felix Imendörffer, Jane Smithard, Graham Norton; HRB 21284 (AG Nürnberg) -- To unsubscribe, e-mail: opensuse-arm+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-arm+owner@opensuse.org