-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Management of machines and device-tree #3
Comments
Hi @QB4-dev You're right, except the name I have given, they are identical!. This is to simplify the management of the symlink, e.g. the dts file is the same than the machine name for all the machines in the layer.
You can simply use the meta-somlabs layer and create an other layer "meta-qb4" with higher priority that override the wanted files/settings. As shown in the meta-somlabs-example I have done. Particularly, it is possible to rewrite all the dts to match you own board. Just need to write a bbappend file to do that, it's Yocto power! This as the advantage to follow the enhancements of meta-somlabs if some are performed in the future.
Look at my VisionCB-STD example I have made some dtsi to simplify including the various parts of the board (USB, Ethernet...) Anyway, this is only my philosophy today. I think for some real projects the best is to have only one dts file with every thing in it. This clearly simplify reviews. Too much dtsi files is not a good idea according to me.
I don't think so. First, do you speak about the SOM or the carrier board ? The carrier board has already 3 different versions, with differences on the dts (=> 3 dts per SOM variant ?). You should also think to VisionCB-IND with and without HDMI. Then, who will be in charge to push this in the kernel and support future modifications/fixes when they are required ? I will not. Moreover, today I know there is mainline kernel (from Linus Torvalds), linux-fslc, linux-imx, and linux-fslc-imx variants, so much work to do. Finally, BCMDHD driver is removed in the last Linux version, so you need to work on old kernel versions.
That a nice solution I have already used on other SOM, but I haven't study it at the moment here. This is interesting subject, I would like to keep the issue open so it's possible to continue the exchanges. I have just renamed the issue to be more general. Regards, |
It's Enchancement proposition.
VisionSOM boards main differences are;
I am not sure if almost identical(only model property is different) device-tree files like
or
are neccessary. We have identhical device tree for this board pairs. Real difference between NAND versions of somlabs boards(NAND block geometry) is placed in machine .conf files which can share same device-tree file, but have different NAND geometry.
I've tried to create my own meta-somlabs layer, but it's not complete. I've tried to go follow Toradex philosophy:
https://developer.toradex.com/device-tree-customization#iMX_6ULL_based_Modules
I've created following files:
and thats all.
VisionSOM boards are not machines itself. They need carrier boards to become functional machine, so for VisionCB-STD I've made following .dts files:
I think that these files later in time should become a part of kernel in /arch/arm/boot/dts and that is the main reason why the number of them must be as low as possible.
Content of single .dts files looks like:
Then in machine .conf file we should have:
and
KERNEL_DEVICETREE
value should be somehow provided to u-boot environment as default fdt_file - I still didn't managed this, but I like your trick with symlinking real device-tree to file wanted by u-boot.Please let me know what do you think about this idea
Now I am building your somlabs-image-example-visioncb-6ull-std image from examples repo to test it on my boards.
Best Regards
The text was updated successfully, but these errors were encountered: