eli wrote:Hi,
In order to obtain the kernel sources as used in Xillinux, please refer to /usr/src/xillinux/linux-patches in Xillinux' file system, the README file in particular. Then compile the kernel following the common practices for a cross compilation for an ARMv7 target (there are plenty of resources for that on the web, probably in relation with Zynq too).
The recommended cross compiler is the one that arrives with Xilinx' SDK, even though other compilers may work well too.
Regards,
Eli
As I was suggested to post in the xillybus forums by microzed forums for xillinux related stuff, I'm post all my xillinux stuff there here,
I am using a different IP core (UART Lite) and removing the pipe drivers in the .dts file and recompiling it to .dtb. I am removing the following two structures from the .dts file
xillybus_lite@50002000 {
interrupt-parent = <0x2>;
interrupts = <0x0 0x3a 0x1>;
reg = <0x50002000 0x1000>;
compatible = "xillybus,xillybus_lite_of-1.00.a";
};
xillybus@50000000 {
dma-coherent;
interrupt-parent = <0x2>;
interrupts = <0x0 0x3b 0x1>;
reg = <0x50000000 0x1000>;
compatible = "xillybus,xillybus-1.00.a";
};
And add two serial ports to device tree (
http://www.wiki.xilinx.com/Uartlite+Driver)
uartlite_0@42C00000 {
compatible = "xlnx,axi-uartlite-1.02.a";
reg = <0x42C00000 0x10000>;
interrupt-parent = <&gic>;
interrupts = <0 59 4>;
clock = <100000000>;
};
uartlite_1@42C10000 {
compatible = "xlnx,axi-uartlite-1.02.a";
reg = <0x42C10000 0x10000>;
interrupt-parent = <&gic>;
interrupts = <0 59 4>;
clock = <100000000>;
};
recompile to .dtb and copy this .dtb to the boot folder.
Now in order for me to detect these ports on linux, I have to modify the .config file in the /boot folder as given in this link,
http://www.wiki.xilinx.com/Uartlite+DriverNow I need to rebuild the (entire kernel) I believe as they say in the link above.
But as per xillinux documentation,
http://xillybus.com/downloads/doc/xilly ... d_zynq.pdf , in section 6.3, they say The Xillinux distribution comes with the running kernel’s compilation headers. This
is not enough to compile the kernel itself, but allows kernel modules to be compiled
natively on the platform.
NOTE: I want to compile the old kernel with the new configuration on the microzed itself using the compiler that exists on the xillinux itself.
So,
1.) I cannot use the method in 6.3 to compile the entire kernel. But the changes I made to .config file require a full kernel compile and rebuild, right ? Not just modules ?
So, I asked if I could use the instructions in this link,
http://www.thegeekstuff.com/2013/06/com ... ux-kernel/ to compile and rebuild ? It seems to be pretty easy to do as well. Also, here do i need to download any header files for compiling entire module ?
2.) If you think I dont need to compile the entire kernel, then I can use the commands in section 6.3 of the xillybus document ?
So, I just need to modify the .config file(config-3.12-.0-xillinux-1.3) with nano, save it, and from the same folder (/boot) run the command below (makefile already exists as per xillinux 1.3 documentation)
# make
make -C /lib/modules/3.12.0-xillinux-1.3/build SUBDIRS=/root/sample modules
And then install them as
make modules_install
and then,
make install (or should I skip this step ?)
Then reboot.
Is this right ?