udm-kernel icon indicating copy to clipboard operation
udm-kernel copied to clipboard

Kernel source origin

Open thezim opened this issue 2 years ago • 6 comments

Just a general question. Where did this kernel source code come from? It does not line up with mainstream 4.19 Linux source. Is there an official kernel source provided by Ubiquiti?

thezim avatar May 19 '22 20:05 thezim

The kernel sources were provided to me by Ubiquiti. You have to send a request to [email protected] to obtain the GPL archives for UniFi firmware.

Since the GPL archives do not contain the Linux Git tree, I have rebased the changes onto Linux 4.19.152 (which is the base for the UDM kernel). You can see the changesets for the stock kernel here: https://github.com/fabianishere/udm-kernel/commits/flavour/stock-v4.19

fabianishere avatar May 19 '22 20:05 fabianishere

I requested v2.4.9 for the UDM SE and receive the archive and have push it here. This is the source code with build artifacts. Is this how you normally receive it? My though was to do a make mrproper to clean up up some, then rebase into the baseline kernel eventually.

thezim avatar May 26 '22 16:05 thezim

Hmm, interesting, I received only the sources (without build artifacts) thus far. If you clean the build artifacts and rebase onto Linux 4.19.152, it should yield the same results as this repository.

fabianishere avatar May 26 '22 16:05 fabianishere

The configs are definitely different though. The .config artifact included in the archive was the exact same as my UDM SE via zcat /proc/config.gz. Diff against your stock config was significantly different. Will rebase to see if they are any diff otherwise.

Also .git folder was include in the archive, here is some basic info it revealed.

greg@RESCUE2 /Volumes/Linux/linux-arm64-dream-4.19.152-ui-alpine $ git remote -v

origin	[email protected]:ubiquiti/debbox-kernel.git (fetch)
origin	[email protected]:ubiquiti/debbox-kernel.git (push)
greg@RESCUE2 /Volumes/Linux/linux-arm64-dream-4.19.152-ui-alpine $ git log

commit b2ae5fb39f6c2ea35447ab7e27d0473c9e866d17 (grafted, HEAD)
Author: Ken Lu <[email protected]>
Date:   Mon Mar 7 14:16:13 2022 +0800

    [UOF-611] disable wdt when shuting down to avoid being reset by watchdog (#77)

Would be nice if the made that repo public.

thezim avatar May 26 '22 17:05 thezim

I expect some differences in the config, but I don’t believe there are much changes between the UDM (Pro) kernel and the UDM SE kernel.

Let’s see what the rebase tells us!

fabianishere avatar May 26 '22 17:05 fabianishere

sorry to but in as per say but i read ubiquity uses this https://buildroot.org/ to make their os then they customize it i hope it helps.

redpoisonv3 avatar Jul 06 '22 16:07 redpoisonv3