-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to upgrade os-kernel with source code from kernel.org? #78
Comments
You can find our kernel build files from https://github.com/burmilla/os-kernel However notice that we have made decision that v1.9.x versions will stay on 4.14.x kernels. If you need newer version then I highly recommend that you test our 2.x latest beta version https://github.com/burmilla/os/releases/tag/v2.0.0-beta4 |
I don't quite understand the version policy. |
We are trying to use standard software versioning where those numbers indicate about how big change is. Also we have some targets written to https://github.com/burmilla/os/projects You can find our original kernel / os versioning discussion from #5 |
Hello, when I use the kernel code in the public network kernel.org to compile, use the public network kernel to compile the .config file to make the kernel, and then the compiled burmillaOS fails to start. May I ask what is in your code? The difference between kurnel-config and the .config file compiled by menuconfg in the kernel code |
@wonleing @newhuangchuan you can see our kernel configs and all build scripts on os-kernel and from releases view you can find links to exact commits. However, can you plz explain that what you are trying to achieve by building custom kernel? |
We compared os-kernel/config/x86/kernel-config and .config that generated by 'make menuconfig' (source code is from kernel.org, same version as describe in os-kernel/config/x86/kernel-config). There are 2000+ differences.
We are maintaining our own kernel source, added patchs drivers and more arches support base on kernel.org kernel. |
ah, true because we have heavily disabled non-used features. Anyway, I think that setting which you are missing is
OK. Are those patched kernel sources available somewhere where I can see them? Also do you have patches version of QEMU which can be used to emulate those archs (if they are not included to it by default)? We have one similar case open on #23 where we noticed that porting BurmillaOS to another archs is quite tricky on current architecture which why I have been doing prototyping about new one on https://github.com/burmilla/os-base-new but currently that one uses rootfs from Debian so if you are looking for archs which are not supported by it that need to be solved first. |
unfortunatelly no... it is not controlled by me. And we use real machine instead of QEMU for other arches.
So the question is how to generate a new config/x86/kernel-config file when I doing kernel upgrade to 4.19.x or higher? any policy or step or tool? I suppose the 4.14.x kernel-config does not quite suite.
I know the asker of that thread :) Indeed we are trying to do similar thing. And we have already had rootfs of Debian to support that arch. This is awesome. We are trying to use it. |
I found the kernel source and qemu for mips64. They are quite old, don't know if it makes any help... |
On theory this is only setting which you need to update to default kernel config:
Alternatively you can change this line Line 53 in 5a13f03
to
before you generate ISO file. Then standard config from kernel.org should works. |
@wonleing btw. Is It "LoongArch" support which you are trying to achieve or some other arch? |
we focus on these arches: amd64, arm64, mips64, loongarch64 and sw64(Alpha) |
Now we are able to support standard kernel.org 4.19.90 kernel and buildroot-2021.02.1 |
Yes we are looking for maintainers for this project #2 and there is still room for more persons. Also it would be nice if you can share more details about your use case(s) on #6 Especially about that which kind of workloads you are planning to run on top of BurmillaOS after you get in working on all those archs? Also it would be interesting to know that why you want to do it with BurmillaOS instead of some other OS? |
ContainerOS is much smaller and lighter than common linux distribution while still support containers runtime. So this is paticular fit for VM guestOS and IOT devices when they want to use containerized micro services. |
Agreed, that why I ended up to fork RancherOS.
Yes on theory it is good idea but current system-docker is far from optimal and we need figure out some alternative for it #28 (comment) |
@wonleing btw. Which bootloader you use on mips64, loongarch64 and sw64? Is grub available on there or is there need to use some special one? Also one thing which came to my mind is that you might want to look how our Raspberry Pi build process works as it is probably more near of your use case. For those we build kernel using scrips on https://github.com/burmilla/os-rpi-kernel and actual media gets created by scripts on https://github.com/burmilla/os/tree/master/scripts/images/raspberry-pi-hypriot64 |
grub. no special things here |
os-docker container run Docker engine/daemon ( Why it is on restarting state can be investigated with |
Which version of code you are using? Error says nf_tables so you are most probably missing at least this one #84 |
The version I use is v2.0.0-beta2. |
Hmm. Beta2 is very early draft. It would be better to take beta4 which contains a lot of corrections done after that. |
Okay, let me switch, thank you very much. |
Hello, we have used the branch of v1.9.x. Is the firewall he uses by default nf_tables? |
Please merge this patch to your code |
Hello, how do you build user docker and system-docker in BurmillaOS? |
@newhuangchuan Look at https://github.com/burmilla/os-kernel - the documentation there should help you |
@newhuangchuan user docker uses official static binaries from https://download.docker.com/linux/static/stable/ those as packed inside of docker images using these https://github.com/burmilla/os-services/tree/master/images/10-docker-20.10.5 System-docker sources are on https://github.com/burmilla/os-system-docker and repositories referenced by it but we have not actually ever build it. I just copied binaries from https://github.com/rancher/os-system-docker/releases/tag/17.06-ros6 to our repo. What I know for sure is that system-docker is based on Docker 17.06 and contain these customizations on engine burmilla/docker@4119920...6368e2f and these on cli burmilla/docker-cli@f6b3234...fa7c1da Some more info about it can be found from discussion on #28 |
Hello, I would like to ask if you have ever reported a trash error when building os-system-docker here:
Report bugs to https://github.com/andreafrancia/trash-cli/issues There is also whether there is a way to make os-docker mirroring |
Hello, I have built the os-services project here. May I ask, after the image under this project is built, is it used as a burmillaOS system? For example, starting an nginx service in burmillaOS should be directly accessible like other systems, right? Or must the services project be used for construction? rancher/os-alpineconsole:f0e2da8-dirty |
Those are Docker images. os-config.tpl.yml defines services included to OS which uses those images like this: Lines 112 to 398 in 76b4a14
That is same syntax than on docker-compose files but that file also contains some other OS configurations. |
Will the construction of burmillaOS depend on os-services? |
Only user docker image is used from os-services by default. All other system services are build from https://github.com/burmilla/os/tree/master/images |
At least you need duplicate these modifications to arm64 file too e42fef0#diff-f05bf44a1c5840775c97074e1e62efa65149d8f6f0d0654b9b80a1b6b65b52e5 |
Hello, I have modified this part in the v2.0.0-beta4 branch, but the built one still has the problem of UEFI not being able to boot. I doubt it is caused by the absence of files required by UEFI in the image. |
Try with this guide https://github.com/mkinney/myranch/blob/master/readme.MD#create-uefi-bootable-iso-from-rancher-os-iso-from-mac and btw after you figure out needed configuration it would be better to comment it to #8 |
Does 2.0.0-beta4 tag support uefi? I saw an uefi-support branch, we tried it, cannot boot up either. |
No 2.0.0-beta4 does not have UEFI support yet. That is biggest reason why it is still marked as beta instead of release candidate. Arm64 can stay with BIOS only unless there is users who need UEFI support for it. |
If some users need UEFI to boot the system for installation, how to support it? |
Yes all BurmillaOS ISOs can be installed from USB. UEFI installation need special partitioning which is not currently handled by ros so those need to be done manually until UEFI support is implemented to installer. |
BurmillaOS Version: (ros os version)
v4.14.x
Where are you running BurmillaOS? (docker-machine, AWS, GCE, baremetal, etc.)
KVM, baremetal, iot
Which processor architecture you are using?
x86
Do you use some extra hardware? (GPU, etc)?
no
I am tring to replace 4.14.x kernel with 4.19 kernel, I use os-kernel build a new one and replace the KERNEL_URL in this 'os' project. I succeeded to build the iso, but it can not start properly. The worse thing is I can not see any error log, I don't know how to debug it...
Can you give me a proper instruction on how to do it, or some effecient way of debug?
Thank you very much,
Leon
The text was updated successfully, but these errors were encountered: