How can I replace the default kernel with an earlier kernel?
I am working on petalinux, Linux for xilinx FPGAs. The source code is here
This Linux is having 3.x kernel, and I have been asked to change the kernel to some earlier release version.
What are the general steps for replacing the kernel? I have downloaded an eralier version form kernel.org. What is the next step?
kernel petalinux
bumped to the homepage by Community♦ 15 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
I am working on petalinux, Linux for xilinx FPGAs. The source code is here
This Linux is having 3.x kernel, and I have been asked to change the kernel to some earlier release version.
What are the general steps for replacing the kernel? I have downloaded an eralier version form kernel.org. What is the next step?
kernel petalinux
bumped to the homepage by Community♦ 15 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
I recommend against trying. From what I'm reading, the petalinux kernel has some firmware-specific tweaks and patches that aren't in the main kernel yet -- and will almost certainly not patch cleanly into an older kernel. Your best bet is to ask xilinx for an older version of their kernel tree.
– Shadur
Feb 28 '14 at 10:57
Thanks for the comment. But where did you see in the code those firmware-specific tweeks and patches?
– gpuguy
Feb 28 '14 at 14:26
Why else do you think they maintain a separate kernel tree?
– Shadur
Mar 1 '14 at 9:29
add a comment |
I am working on petalinux, Linux for xilinx FPGAs. The source code is here
This Linux is having 3.x kernel, and I have been asked to change the kernel to some earlier release version.
What are the general steps for replacing the kernel? I have downloaded an eralier version form kernel.org. What is the next step?
kernel petalinux
I am working on petalinux, Linux for xilinx FPGAs. The source code is here
This Linux is having 3.x kernel, and I have been asked to change the kernel to some earlier release version.
What are the general steps for replacing the kernel? I have downloaded an eralier version form kernel.org. What is the next step?
kernel petalinux
kernel petalinux
edited Feb 28 '14 at 10:55
Shadur
19.7k74457
19.7k74457
asked Feb 28 '14 at 10:37
gpuguygpuguy
43671941
43671941
bumped to the homepage by Community♦ 15 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
bumped to the homepage by Community♦ 15 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
I recommend against trying. From what I'm reading, the petalinux kernel has some firmware-specific tweaks and patches that aren't in the main kernel yet -- and will almost certainly not patch cleanly into an older kernel. Your best bet is to ask xilinx for an older version of their kernel tree.
– Shadur
Feb 28 '14 at 10:57
Thanks for the comment. But where did you see in the code those firmware-specific tweeks and patches?
– gpuguy
Feb 28 '14 at 14:26
Why else do you think they maintain a separate kernel tree?
– Shadur
Mar 1 '14 at 9:29
add a comment |
I recommend against trying. From what I'm reading, the petalinux kernel has some firmware-specific tweaks and patches that aren't in the main kernel yet -- and will almost certainly not patch cleanly into an older kernel. Your best bet is to ask xilinx for an older version of their kernel tree.
– Shadur
Feb 28 '14 at 10:57
Thanks for the comment. But where did you see in the code those firmware-specific tweeks and patches?
– gpuguy
Feb 28 '14 at 14:26
Why else do you think they maintain a separate kernel tree?
– Shadur
Mar 1 '14 at 9:29
I recommend against trying. From what I'm reading, the petalinux kernel has some firmware-specific tweaks and patches that aren't in the main kernel yet -- and will almost certainly not patch cleanly into an older kernel. Your best bet is to ask xilinx for an older version of their kernel tree.
– Shadur
Feb 28 '14 at 10:57
I recommend against trying. From what I'm reading, the petalinux kernel has some firmware-specific tweaks and patches that aren't in the main kernel yet -- and will almost certainly not patch cleanly into an older kernel. Your best bet is to ask xilinx for an older version of their kernel tree.
– Shadur
Feb 28 '14 at 10:57
Thanks for the comment. But where did you see in the code those firmware-specific tweeks and patches?
– gpuguy
Feb 28 '14 at 14:26
Thanks for the comment. But where did you see in the code those firmware-specific tweeks and patches?
– gpuguy
Feb 28 '14 at 14:26
Why else do you think they maintain a separate kernel tree?
– Shadur
Mar 1 '14 at 9:29
Why else do you think they maintain a separate kernel tree?
– Shadur
Mar 1 '14 at 9:29
add a comment |
2 Answers
2
active
oldest
votes
make defconfig
or make menuconfig
the menuconfig option will be time consuming since you will need to set up everythingmake
sudo make install
only use sudo for the install part. Grub (or llvm) should autoupdate on the install but if it does not you might need to do a sudo grub-mkconfig > grub.cfg
and the mv grub.cfg /boot/grub/grub.cfg
and check that your kernel is in /boot and if you grep the new grub.cfg for your kernel it shows up. When booting you may need to hold shift (again this is for grub) to be able to pick which kernel you want to boot off of.
add a comment |
The tool chain comes along with its own Linux kernel 3.x in your case and patching this kernel is not a good idea, as this can be shared among multiple projects which use Petalinux.
As asked in your question you have to replace the kernel with older kernel,
Xilinx maintains its kernel repo where you can find appropriate tags Refer Linux-xlnx
To add any particular kernel into Petalinux project,
Refer Zynq TRD Section 5.3 : Add Linux kernel 3.14 support
OR you can make select the
petalinux-config :: "Linux Component Selection" > "Remote" >
(Fill your Linux-xlnx GIT repo path with tag)
But be cautious last will download the kernel every time when you delete the 'build' directory.
Good Luck !!
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f117431%2fhow-can-i-replace-the-default-kernel-with-an-earlier-kernel%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
make defconfig
or make menuconfig
the menuconfig option will be time consuming since you will need to set up everythingmake
sudo make install
only use sudo for the install part. Grub (or llvm) should autoupdate on the install but if it does not you might need to do a sudo grub-mkconfig > grub.cfg
and the mv grub.cfg /boot/grub/grub.cfg
and check that your kernel is in /boot and if you grep the new grub.cfg for your kernel it shows up. When booting you may need to hold shift (again this is for grub) to be able to pick which kernel you want to boot off of.
add a comment |
make defconfig
or make menuconfig
the menuconfig option will be time consuming since you will need to set up everythingmake
sudo make install
only use sudo for the install part. Grub (or llvm) should autoupdate on the install but if it does not you might need to do a sudo grub-mkconfig > grub.cfg
and the mv grub.cfg /boot/grub/grub.cfg
and check that your kernel is in /boot and if you grep the new grub.cfg for your kernel it shows up. When booting you may need to hold shift (again this is for grub) to be able to pick which kernel you want to boot off of.
add a comment |
make defconfig
or make menuconfig
the menuconfig option will be time consuming since you will need to set up everythingmake
sudo make install
only use sudo for the install part. Grub (or llvm) should autoupdate on the install but if it does not you might need to do a sudo grub-mkconfig > grub.cfg
and the mv grub.cfg /boot/grub/grub.cfg
and check that your kernel is in /boot and if you grep the new grub.cfg for your kernel it shows up. When booting you may need to hold shift (again this is for grub) to be able to pick which kernel you want to boot off of.
make defconfig
or make menuconfig
the menuconfig option will be time consuming since you will need to set up everythingmake
sudo make install
only use sudo for the install part. Grub (or llvm) should autoupdate on the install but if it does not you might need to do a sudo grub-mkconfig > grub.cfg
and the mv grub.cfg /boot/grub/grub.cfg
and check that your kernel is in /boot and if you grep the new grub.cfg for your kernel it shows up. When booting you may need to hold shift (again this is for grub) to be able to pick which kernel you want to boot off of.
answered Feb 28 '14 at 16:07
Jacob MinshallJacob Minshall
2,53611110
2,53611110
add a comment |
add a comment |
The tool chain comes along with its own Linux kernel 3.x in your case and patching this kernel is not a good idea, as this can be shared among multiple projects which use Petalinux.
As asked in your question you have to replace the kernel with older kernel,
Xilinx maintains its kernel repo where you can find appropriate tags Refer Linux-xlnx
To add any particular kernel into Petalinux project,
Refer Zynq TRD Section 5.3 : Add Linux kernel 3.14 support
OR you can make select the
petalinux-config :: "Linux Component Selection" > "Remote" >
(Fill your Linux-xlnx GIT repo path with tag)
But be cautious last will download the kernel every time when you delete the 'build' directory.
Good Luck !!
add a comment |
The tool chain comes along with its own Linux kernel 3.x in your case and patching this kernel is not a good idea, as this can be shared among multiple projects which use Petalinux.
As asked in your question you have to replace the kernel with older kernel,
Xilinx maintains its kernel repo where you can find appropriate tags Refer Linux-xlnx
To add any particular kernel into Petalinux project,
Refer Zynq TRD Section 5.3 : Add Linux kernel 3.14 support
OR you can make select the
petalinux-config :: "Linux Component Selection" > "Remote" >
(Fill your Linux-xlnx GIT repo path with tag)
But be cautious last will download the kernel every time when you delete the 'build' directory.
Good Luck !!
add a comment |
The tool chain comes along with its own Linux kernel 3.x in your case and patching this kernel is not a good idea, as this can be shared among multiple projects which use Petalinux.
As asked in your question you have to replace the kernel with older kernel,
Xilinx maintains its kernel repo where you can find appropriate tags Refer Linux-xlnx
To add any particular kernel into Petalinux project,
Refer Zynq TRD Section 5.3 : Add Linux kernel 3.14 support
OR you can make select the
petalinux-config :: "Linux Component Selection" > "Remote" >
(Fill your Linux-xlnx GIT repo path with tag)
But be cautious last will download the kernel every time when you delete the 'build' directory.
Good Luck !!
The tool chain comes along with its own Linux kernel 3.x in your case and patching this kernel is not a good idea, as this can be shared among multiple projects which use Petalinux.
As asked in your question you have to replace the kernel with older kernel,
Xilinx maintains its kernel repo where you can find appropriate tags Refer Linux-xlnx
To add any particular kernel into Petalinux project,
Refer Zynq TRD Section 5.3 : Add Linux kernel 3.14 support
OR you can make select the
petalinux-config :: "Linux Component Selection" > "Remote" >
(Fill your Linux-xlnx GIT repo path with tag)
But be cautious last will download the kernel every time when you delete the 'build' directory.
Good Luck !!
answered Jun 16 '15 at 7:46
Priyank AroraPriyank Arora
313
313
add a comment |
add a comment |
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f117431%2fhow-can-i-replace-the-default-kernel-with-an-earlier-kernel%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
I recommend against trying. From what I'm reading, the petalinux kernel has some firmware-specific tweaks and patches that aren't in the main kernel yet -- and will almost certainly not patch cleanly into an older kernel. Your best bet is to ask xilinx for an older version of their kernel tree.
– Shadur
Feb 28 '14 at 10:57
Thanks for the comment. But where did you see in the code those firmware-specific tweeks and patches?
– gpuguy
Feb 28 '14 at 14:26
Why else do you think they maintain a separate kernel tree?
– Shadur
Mar 1 '14 at 9:29