0
Barakav

Help! Need to find the kernel source code for 4.19

Recommended Posts

Hey , I need to get the official source code for the last stable version of armbian for orangepi (mainly the kernel):

https://www.armbian.com/orangepi/

meaning version 4.19.y by the given link, but as I look at the source code in github, all I can find are tags and commits for 4.14 and 4.20.

Is there a way to find the commit with the source code for the official release in the given link?

Share this post


Link to post
Share on other sites

We pack source code at build time and provide it from repository (apt.armbian.com). Best way to download the source code is via armbian-config

Share this post


Link to post
Share on other sites

Thanks for your help! but I downloaded the tool and it seems that the 4.19 source version is still not available, I attached a pic of the versions screen from armbian-config. Is this the screen for choosing the right kernel version to download ?

I haven't found any 4.19 version in there.

to.bmp

Share this post


Link to post
Share on other sites
1 hour ago, Barakav said:

but I downloaded the tool and it seems that the 4.19 source version is still not available


You downloaded the tool to your desktop PC? :) No no. That will not work. Use tool on the hardware directly:

 

armbian-config -> software

Zaslonska slika 2019-09-24 15-58-26.png

Share this post


Link to post
Share on other sites

Thanks but I'll have the hardware in a day or two, I only need the source code/the relevant commit in git right now so I will be able to edit and compile the source code for 4.19 myself.

 

I can take the code from the master branch in git but I am not sure which of the 4.19 commits belongs to the last stable supported version that compiles to the image you can download from the site. Is it this one?

 

I checked the debs files and it doesn't look like you can retrieve the source code from them...

Share this post


Link to post
Share on other sites
1 hour ago, Barakav said:

the relevant commit in git right now


Armbian is a build system in its core which, in this particular case, takes this source: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/?h=v4.19.75 add those patches https://github.com/armbian/build/tree/master/patch/kernel/sunxi-next + https://github.com/armbian/build/blob/master/lib/compilation-prepare.sh and use this config https://github.com/armbian/build/blob/master/config/kernel/linux-sunxi-next.config

 

Before compilation starts, sources are packed here: https://github.com/armbian/build/blob/master/lib/compilation.sh#L296-L307

 

1 hour ago, Barakav said:

I checked the debs files and it doesn't look like you can retrieve the source code from them...


Look:

Spoiler

wget https://apt.armbian.com/pool/main/l/linux-source-4.19.62-next-sunxi/linux-source-next-sunxi_5.92_all.deb
dpkg -x linux-source-next-sunxi_5.92_all.deb sources
cd sources/usr/src
tar xf linux-source-4.19.62-sunxi.tar.xz
ls -l
total 411420
-rw-rw-r--   1 root igorp       901 Jul  3 19:01 0001-sunxi-h3-Fix-PLL1-setup-to-never-use-dividers.patch
drwxrwxr-x  26 root igorp      4096 Jul 31 22:00 arch
drwxrwxr-x   3 root igorp      4096 Jul 31 22:00 block
drwxrwxr-x   2 root igorp      4096 Jul 31 22:00 certs
-rw-rw-r--   1 root igorp       423 Jul  3 19:01 COPYING
-rw-rw-r--   1 root igorp     98741 Jul  3 19:01 CREDITS
drwxrwxr-x   4 root igorp      4096 Jul 31 22:00 crypto
drwxrwxr-x   6 root igorp      4096 Jul 21 14:15 debian
drwxrwxr-x 120 root igorp     12288 Jul 31 22:00 Documentation
drwxrwxr-x 137 root igorp      4096 Jul 31 22:00 drivers
drwxrwxr-x   2 root igorp      4096 Jul 31 22:00 firmware
drwxrwxr-x  74 root igorp      4096 Jul 31 22:00 fs
drwxrwxr-x  29 root igorp      4096 Jul  3 19:14 include
drwxrwxr-x   2 root igorp      4096 Jul 31 22:00 init
drwxrwxr-x   2 root igorp      4096 Jul 31 22:00 ipc
-rw-rw-r--   1 root igorp      2245 Jul  3 19:01 Kbuild
-rw-rw-r--   1 root igorp       563 Jul  3 19:01 Kconfig
drwxrwxr-x  18 root igorp      4096 Jul 31 22:00 kernel
drwxrwxr-x  13 root igorp     12288 Jul 31 22:00 lib
drwxrwxr-x   5 root igorp      4096 Jul  3 19:01 LICENSES
-rw-rw-r--   1 root igorp    124077 Jul  3 19:01 linux-4.19-32
-rw-rw-r--   1 root igorp    103526 Jul  3 19:01 linux-4.19-64
-rw-rw-r--   1 root root  418864896 Jul 31 22:02 linux-source-4.19.62-sunxi.tar.xz
-rw-rw-r--   1 root root      33776 Jul 31 22:02 linux-sunxi-next_4.19.62_5.92_config.xz
-rw-rw-r--   1 root root     471632 Jul 31 22:00 MAINTAINERS
-rw-rw-r--   1 root root     471448 Jul 31 22:00 MAINTAINERS.orig
-rw-rw-r--   1 root root      59948 Jul 31 22:00 Makefile
drwxrwxr-x   3 root igorp      4096 Jul 31 22:00 mm
-rw-rw-r--   1 root igorp    896594 Jul 21 14:14 Module.symvers
drwxrwxr-x  71 root igorp      4096 Jul 31 22:00 net
-rw-rw-r--   1 root igorp       800 Jul  3 19:01 README
-rw-rw-r--   1 root igorp      4542 Jul  3 19:01 README.md
drwxrwxr-x  27 root igorp      4096 Jul  3 19:01 samples
drwxrwxr-x  14 root igorp      4096 Jul 31 22:00 scripts
drwxrwxr-x  10 root igorp      4096 Jul 31 22:00 security
drwxrwxr-x  26 root igorp      4096 Jul 31 22:00 sound
drwxrwxr-x  32 root igorp      4096 Jul  3 19:01 tools
drwxrwxr-x   3 root igorp      4096 Jul 31 22:00 usr
drwxrwxr-x   4 root igorp      4096 Jul 31 22:00 virt

 

 

In case you need the last version, grab a kernel source from daily builds: https://beta.armbian.com/pool/main/l/ (which I see now it's missing, bug)

Share this post


Link to post
Share on other sites

Thanks for your help, but I tried to compile using the code and the configuration from the deb files you mentioned (not through git and those patches) in the last post and I've got an error:

"drivers/net/wireless/xradio/sdio.c:17:10: fatal error: asm/mach-types.h: No such file or directory"

 

what am I missing?

 

 

Share this post


Link to post
Share on other sites
1 hour ago, Barakav said:

what am I missing?


We don't support this feature (building kernel on board - it can work but it can fail mainly due to compiler incompatibility. Why? Build system uses 8+ compilers to solve expensive procedures of adjusting dirty/obsolete code to match stock/latest distribution compiler. This is not as trivial and cheap as on mainstream x86 distribution. Its on you to find out. I gave you all I know from my head, but will not waste an afternoon to solve your problem. Can't afford and its insane.

 

If building with our build system fail - somebody will check and try to fix. We have very small resources ... Since it doesn't fail, bug you encounter, does not exists.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
0