I'm not sure if anybody else is having this problem, but I cannot get the full Digilent kernel to work for me with Xillinux. Could anyone give an extremely dumbed-down step-by-step on how to do this? I would appreciate it greatly. Thanks.
I'm not sure if anybody else is having this problem, but I cannot get the full Digilent kernel to work for me with Xillinux. Could anyone give an extremely dumbed-down step-by-step on how to do this? I would appreciate it greatly. Thanks.
Let me explain what I did step by step!
1. I downloaded the file, "xillinux-1.0.img.gz", extracted it and burnt the rc-check.img to a SD card.
2. It can boot up to xillinux-1.0 without problem.
3. I then patched the file system with "xillinux-rich-patch.tar.gz" and copied the vmlinuz-3.3.0-xilinux-1.0-rich to the boot partition and renamed it to zImage.
4. After that it can boot up and show that it is "3.3.0-xillinux-1.0-rich+" with "uname -a" command.
5. It works perfectly on a VGA monitor and Ubuntu GUI is shown.
Therefore the files/setting in SD card should be fine.
Then I would like to try whether I can recompile the same kernel by the following steps,
1. I downloaded the kernel, linux-digilent by "https://github.com/Digilent/linux-digilent"
2. I then replaced the .config with the one you sent to me.
3. Then run "make", it can rebuild the zImage successfully.
4. I then replaced the original zImage in the SD card with this newly built zImage in (3).
It can boot up but there are several differences,
1. No messages are shown on the VGA monitor but just a flying "Xillybus" screen displayed. (So, I think the VGA interface is there.)
2. No command prompt is shown on the VGA display. The flying "Xillybus" screen is shown without switching back to text mode.
3. On the serial console, a login prompt is shown.
FYI, when I try to check the version with "uname -a", it shows "3.3.0-digilent-12.07-zed-beta+".
Now I want to ask,
1. How to patch the kernel source such that it can the same as "3.3.0-xillinux-1.0-rich+"?
2. How can I recompile the kernel source such that it is the same as "3.3.0-xillinux-1.0-rich+"?
Thanks in advance!
Let me explain what I did step by step!
1. I downloaded the file, "xillinux-1.0.img.gz", extracted it and burnt the rc-check.img to a SD card.
2. It can boot up to xillinux-1.0 without problem.
3. I then patched the file system with "xillinux-rich-patch.tar.gz" and copied the vmlinuz-3.3.0-xilinux-1.0-rich to the boot partition and renamed it to zImage.
4. After that it can boot up and show that it is "3.3.0-xillinux-1.0-rich+" with "uname -a" command.
5. It works perfectly on a VGA monitor and Ubuntu GUI is shown.
Therefore the files/setting in SD card should be fine.
Then I would like to try whether I can recompile the same kernel by the following steps,
1. I downloaded the kernel, linux-digilent by "https://github.com/Digilent/linux-digilent"
2. I then replaced the .config with the one you sent to me.
3. Then run "make", it can rebuild the zImage successfully.
4. I then replaced the original zImage in the SD card with this newly built zImage in (3).
It can boot up but there are several differences,
1. No messages are shown on the VGA monitor but just a flying "Xillybus" screen displayed. (So, I think the VGA interface is there.)
2. No command prompt is shown on the VGA display. The flying "Xillybus" screen is shown without switching back to text mode.
3. On the serial console, a login prompt is shown.
FYI, when I try to check the version with "uname -a", it shows "3.3.0-digilent-12.07-zed-beta+".
Now I want to ask,
1. How to patch the kernel source such that it can the same as "3.3.0-xillinux-1.0-rich+"?
2. How can I recompile the kernel source such that it is the same as "3.3.0-xillinux-1.0-rich+"?
Thanks in advance!
Hello,
The problem is obviously that you didn't apply the patches.
First, copy the patches from /usr/src/xillinux/kernel-patches/ in Xillinux' file system to the computer you want to compile the kernel on. I'll assume that you copied the entire directory to a local directory /tmp/kernel-patches/.
Then change directory to where you've cloned Digilent's kernel into. Delete the .config file you already have there (or move it somewhere else) and go
$ git am /tmp/kernel-patches/00*
This will update the git repository as the patches are applied. Several warnings are generated, but no errors should be tolerated.
If you just want the patches applied (not updating the git repository)
$ git apply /tmp/kernel-patches/00*
Now overwrite the existing .config file with the one you want (probably the one I sent you).
Then compile.
Good luck,
Eli