I’m using the Vim_Ubuntu-server-16.04_Linux-4.9_V170604 image that was released a few days ago but would like to make a few customisations.
Is it possible to extract the Kernel and Initrd from the update.img? I have extracted the ramdisk.PARTITION from the .img file using aml_image_v2_packer but I can’t work out how to further break that down into kernel and initrd.
Are you sure? I mean if i use just “make kvim_defconfig” I get “restarting config” and need to confirm a lot of questions. But if I fire “make menuconfig” and load that kvim_defconfig and then just clicked save to save it as .config I was not asked after for any config value.
So can you check if that is really latest (compare .config in linux directory with kvim_defconfig).
But it fails to compile here (Note: I am compiling directly on Khadas VIM).
arch/arm64/kernel/topology.c: In function ‘parse_cluster’:
arch/arm64/kernel/topology.c:133:40: error: ‘%d’ directive output may be truncated writing between 1 and 10 bytes into a region of size 3 [-Werror=format-truncation=]
snprintf(name, sizeof(name), "cluster%d", i);
You could still tag it as there are no changes till now (and tag could be server/mate release date)…
because last release “linux-170421.tar.gz” is only 124MB where git clone to the commit=8bc293d2ffc704b92e56aea0820498605ac2dfdd is: Receiving objects: 100% (3543395/3543395), 819.98 MiB | 500.00 KiB/s, done.
@Gouwa as I wrote before I am doing it on Khadas VIM Pro device with ArchLinuxArm on it. Please note that I can compile the ArchLinuxArm mainline kernel just fine (yes it takes hourse but that i don’t care) also modified mainline kernel were WiFi is fixed and that works also fine.
$ cd src/linux
$ git log
commit 8bc293d2ffc704b92e56aea0820498605ac2dfdd (HEAD -> makepkg, origin/ubuntu-4.9)
Author: terry email@example.com
Date: Sat Jun 3 16:54:20 2017 +0800
weird is that i can cross compile on Arch Linux (virtual server) but directly on Khadas VIM Pro compile fails on that file. Did you tried to compile on Khadas device itself or you do only cross compile? I can not do it currently as i don’t have Ubuntu your provide on device (re partitioned and format the eMMC to use with ArchLinuxArm).
Yes I do exactly that “nativ compiling on ARM” (it is also test how device acts on load, and as there is no GPU mainline driver i can’t use it as media player device with code, so why not? And yes I takes long to compile, 7 hours to compile mainline 4.12-rc4 Kernel and?) .
And it fails on that file, but only with your/amlogic source, if i take mainline 4.9.26 kernel it pass this file but I did not compile till the end.
Indeed, I forgot about it. But I setup it under ArchLinuxArm directly in /etc/makepkg.conf file.
Now it takes only around 2,5 hours, and in past without -j4 it took around 7 hours.
==> Making package: linux-aarch64-rc 4.12.rc4-4 (Sun Jun 11 01:20:11 CEST 2017).
==> Finished making: linux-aarch64-rc 4.12.rc4-4 (Sun Jun 11 03:54:12 CEST 2017)
==> Making package: linux-aarch64-rc 4.12.rc4-3 (Wed Jun 7 18:04:41 CEST 2017)
==> Finished making: linux-aarch64-rc 4.12.rc4-3 (Thu Jun 8 00:55:12 CEST 2017)
I read about distcc but it does not need to be an arm64 box right? It could be let say x86_64 installation just setup correctly (which I did not setup, but would probably do it today).
Still I am unable to compile khadas linux (ubuntu-4.9) branch here. Seems there is something in Makefile which tells that all warning being treated as errors, as i don’t have these with mainline Kernel:
arch/arm64/kernel/topology.c:78:3: note: ‘snprintf’ output between 8 and 17 bytes into a destination of size 10
snprintf(name, sizeof(name), “thread%d”, i);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors
make: *** [scripts/Makefile.build:294: arch/arm64/kernel/topology.o] Error 1
make: *** [Makefile:992: arch/arm64/kernel] Error 2
==> ERROR: A failure occurred in build().
To build the kernel 4.9.26 you need gcc 4.9 (for example, the compiler from Linaro, which is specified in the rules to build the kernel\buildroot from Amlogic). I gather this kernel with that compiler and it is normally loaded.