How to use linux kernel I compiled?

For me it worked when I switched to the first network connection i was using.

Wifi seem to have dns issue.

i’ll try to stay away from wifi for a while

i installed alsa-utils, but hdmi audio is not detected by aplay -l

pulseaudio 12.2 and mpg123 also managed to install; will test them with an usb soundcard soon

even after a reboot, aplay still does not see my usb soundcard, too bad!
i hope manjaro server will do much better than this distro,
cannot wait until some ubuntu 18 run on kernel 5.2.y

#odroid-c2-libgl-x11 was intalled before
Then I replaced it with the fb instead of x11, below libs
odroid-c2-libgl-fb
odroid-c2-libgl-headers

Now video is much smooth :smiley:

I will make new manjaro Images for Linux 5.2

It just a permission problem, I just forgot to add ‘-p’ when I was de-compressing rootfs. I’ll fix it in next image.

LIMA caused a NULL pointer dereference, Did you have the same problem?

No I didnt get any of it.

Did you applied some patches ?

is there a chance that the build process and tools you guys used to get those imgs will land in the next version of khadas fenix and then we can get debian and ubuntu kernel 5.y based distros as well ?

I used Custom Kernel for Khadas Vim not the Mainline kernel. I always had problem compiling mainline kernel with the Kvim Patches.

I dont think so, The Arch Method and Debian Method is quite different.
But I will share what I use.

  • Kernel Image - From balbes Repo - Custom kernel for S9XXX
  • Custom PKGBUILD By balbes and updated by me for 5.2
  • Manjaro-Arm-Tools By Manjaro Arm Team to Build Manjaro Image.
  • KVIM1 support for the Manjaro-Arm-Tools as it is not officialy supported by the Manjaro Team.

Hope this is helpful.

[  165.451306] Unable to handle kernel NULL pointer dereference at virtual address 0000000000000008
[  165.454604] Mem abort info:
[  165.457356]   ESR = 0x96000004
[  165.460360]   Exception class = DABT (current EL), IL = 32 bits
[  165.466239]   SET = 0, FnV = 0
[  165.469252]   EA = 0, S1PTW = 0
[  165.472341] Data abort info:
[  165.475197]   ISV = 0, ISS = 0x00000004
[  165.478992]   CM = 0, WnR = 0
[  165.481926] user pgtable: 4k pages, 48-bit VAs, pgdp=0000000074a11000
[  165.488306] [0000000000000008] pgd=0000000000000000
[  165.493138] Internal error: Oops: 96000004 [#1] PREEMPT SMP
[  165.498650] Modules linked in: brcmfmac brcmutil cfg80211 hci_uart btbcm dwmac_generic bluetooth dwmac_meson8b stmmac_platform stmmac snd_soc_hdmi_codec ecdh_generic rc_geekbox crct10dif_ce ecc meson_ir meson_rng rfkill rc_core rng_co
re dw_hdmi_i2s_audio meson_gxbb_wdt pwm_meson nvmem_meson_efuse ip_tables x_tables ipv6 adc_keys input_polldev
[  165.528757] CPU: 2 PID: 365 Comm: Xorg.wrap Tainted: G        W         5.2.1 #2
[  165.536082] Hardware name: Khadas VIM (DT)
[  165.540137] pstate: 20000005 (nzCv daif -PAN -UAO)
[  165.544889] pc : addr_in_gen_pool+0x28/0xa0
[  165.549021] lr : addr_in_gen_pool+0x24/0xa0
[  165.553158] sp : ffff000010b63b90
[  165.556436] x29: ffff000010b63b90 x28: ffff80005ddc0000 
[  165.561697] x27: 0000000000000000 x26: 0000000000000000 
[  165.566958] x25: ffff80005ddc0670 x24: 0000000000000000 
[  165.572219] x23: 0000000063430000 x22: ffff000011e98000 
[  165.577481] x21: ffff0000105fefff x20: 0000000000000000 
[  165.582742] x19: ffff0000105f7000 x18: 0000000000000000 
[  165.588004] x17: 0000000000000000 x16: 0000000000000001 
[  165.593265] x15: 0000000000000000 x14: 0000000000000000 
[  165.598526] x13: 0000000000000040 x12: 0000000000000000 
[  165.603787] x11: ffff000010b63c28 x10: 0000000000000002 
[  165.609048] x9 : 0000000000000000 x8 : 0000000000000000 
[  165.614309] x7 : ffffffffffffffff x6 : 0000000000000000 
[  165.619571] x5 : 000000000000003d x4 : 0000000000000004 
[  165.624832] x3 : 0000000063430000 x2 : 0000000000007fff 
[  165.630093] x1 : ffff80005ddc0000 x0 : 0000000000000000 
[  165.635355] Call trace:
[  165.637779]  addr_in_gen_pool+0x28/0xa0
[  165.641570]  dma_free_from_pool+0x2c/0x60
[  165.645534]  arch_dma_free+0x40/0xa8
[  165.649070]  dma_direct_free+0x14/0x38
[  165.652779]  dma_free_attrs+0x90/0xd0
[  165.656405]  lima_vm_release+0x48/0x90
[  165.660111]  lima_drm_driver_postclose+0x38/0x50
[  165.664684]  drm_file_free.part.0+0x1c8/0x2b0
[  165.668994]  drm_close_helper.isra.0+0x58/0x68
[  165.673393]  drm_release+0x4c/0x90
[  165.676759]  __fput+0x88/0x1c8
[  165.679775]  ____fput+0xc/0x18
[  165.682795]  task_work_run+0x90/0xb0
[  165.686332]  do_notify_resume+0x2d4/0x380
[  165.690297]  work_pending+0x8/0x10
[  165.693664] Code: f90013f5 8b010055 97f3f20c aa1403e0 (f8408c02) 
[  165.699700] ---[ end trace 92713b4a2999fa8f ]---
Segmentation fault

@numbqq
I can’t open X with kernel exception(DRM driver, kernel 5.2.1), can you help me

I added debug features of the linked modules, hope I can catch the NULL pointer

I tried to remove LIMA, but still have same problem, maybe I complied somthing that conflict with DRM driver

Did you apply the offset patch for Kvim ?

@balbes150 can help you with this I guess.

Yes, I’ve already applied that before.

How did you fix your " “Synchronous Abort” handler, esr 0x96000210" error ?

I copied boot.ini from ubuntu image to solve this problem, my old boot.ini is missing a lot of things!

1 Like

@ravelo Have you tried this ? with Manjaro Image?

my current emmc content allows me to conveniently boot emmc ubuntu or Arch sdcard

Did you create a xorg.conf ?

i don’t know how to do that, and it seems that it’s up to the sdcard’ boot.ini to tell the vim what todo

just a funny discovery:
i plugged the manjaro SD into usb reader into usb port,
then i booted vim1 into uboot, typed…
usb start
usbboot device 0

and manjaro started as well (but still not with its kernel 5 )