zhemao / zhemao.github.com

Github pages page
http://zhemao.github.com
Other
4 stars 1 forks source link

Device Tree Modification #23

Closed fabian727 closed 9 years ago

fabian727 commented 9 years ago

Hi,

I read your 'tutorial' Exploring the Arrow Sockit. Great text. Would helped me if I had found it sooner. But I tried to much myself. Same mistake as you did. But I am still in learning, so here i am.

I have a cyclone V development board and wanted to modify it with linux (yocto angstrom) and two ethernet busses.

Linux is booting and working as should be. My problems are the ethernet busses, which aren't recognized by the linux. The device tree I am using is from yocto and so unmodified. How can I modify it to find the ethernet periphery? I have the device tree of the yocto project and the device tree of the Quartus v14.1 (I can create any other version device tree too). But the design of the files are different...

Do you have a tutorial how to modify the dts / dtb of yocto, or how to parse them?

Thanks ahead, Fabian

zhemao commented 9 years ago

You usually don't modify the device tree directly. Instead, you should change the kernel configuration to include the drivers for your new devices. How are your ethernet buses connected to the board?

fabian727 commented 9 years ago

thanks for your reply,

my Linux is running on the two ARM kernels.

The first ethernet is enabled in the hard processor system.

The other two ethernet systems I created like in this tutorial: http://www.rocketboards.org/foswiki/Projects/AlteraSoCTripleSpeedEthernetDesignExample

Linux doesn't find any ethernet system. Not the one enabled in the hps nor the created ones in the fpga.

In the kernel configuration I changed nothing and the ethernet driver were as standard enabled. Also I have a CAN-device on the system which I can see and work with. The internal "network"-interface lo is enabled, too.

zhemao commented 9 years ago

That wiki page has instructions on how to build a kernel and filesystem under "Software Development Flow". I would try using that instead of my instructions.

On Mon, Mar 30, 2015 at 11:24 PM, fabian727 notifications@github.com wrote:

thanks for your reply,

my Linux is running on the two ARM kernels.

The first ethernet is enabled in the hard processor system.

The other two ethernet systems I created like in this tutorial: http://www.rocketboards.org/foswiki/Projects/AlteraSoCTripleSpeedEthernetDesignExample

Linux doesn't find any ethernet system. Not the one enabled in the hps nor the created ones in the fpga.

In the kernel configuration I changed nothing and the ethernet driver were as standard enabled. Also I have a CAN-device on the system which I can see and work with. The internal "network"-interface lo is enabled, too.

— Reply to this email directly or view it on GitHub https://github.com/zhemao/zhemao.github.com/issues/23#issuecomment-87957660 .