- March 12, 2016 at 6:25 pm #53098
I changed the cache size in m14k_config.vh of the MIPSfpga core in the MIPSfpgaSOC package and I managed to generate a bitstream and download it to Nexys4 DDR. However when I loaded the pre-compiled vmlinux into it, kernel panic occurred. This does not happen when I load the vmlinux using unmodified project_linux.bit. What modification should I do during the compilation of linux kernel?March 21, 2016 at 1:55 pm #53221
Apologies for the delay.
Two questions. When you update m14k_config.vh, did you just change the #define.
With MIPSfpga SoC, you have to update the version number of the packaged IP and then update in the project_linux design.
This ensures that the new source code is used in the next synthesis run.
2) Can you please share the linux kernel boot log and panic message?
ZubairLKMarch 22, 2016 at 1:26 pm #53234
I also spoke to some hardware engineers.
Commercial customers do get a utility to configure the core and change these parameters.
Unfortunately, that utility is not part of MIPSfpga under the Imagination University Program.
The hardware engineers mentioned that simply changing a #define in one place won’t change the cache size.
You are more than welcome to try changing the cache size manually in the code.
However, I would recommend trying to test the larger/smaller cache with bare metal code and the see how it goes. Trying directly using MIPSfpga SoC might make it difficult.