ning

Members
  • Content Count

    175
  • Joined

  • Last visited

Reputation Activity

  1. Like
    ning got a reaction from Igor in use systemd-firstboot to replace hardcoded configure in build scripts   
    manual page:
    https://www.freedesktop.org/software/systemd/man/systemd-firstboot.html
     
     
    archlinux Wiki:
    https://wiki.archlinux.org/index.php/systemd-firstboot
  2. Like
    ning got a reaction from legogris in [HOWTO] build Debian-flavor kernel packages for Armbian with module signed and with debian-featured kernel config   
    from 1st and 2nd posts, you already knows how to use debian linux build framework to build a module signed kernel for your armbian with your own kernel configure. but you may ask is my kernel missing some features required by debian? how can I know it? and how to fix it.
     
    the answer to these 3 questions are depends on your current kernel configurations, but it difficult to read and compare each kernel configuration with debian's kernel configuration.
     
    let me tell you how debian build its own kernel configurations, then you can answer these questions yourself.
     
    The formula: Debian kernel configuration = common configs + arch specific configs  + flavor configs + kernel autoselected configs.
    here common configs are core debian features, which is in file debian/config/config
    arch configs are needed for debian to run on an arch, which are in files: debian/<arch>/config
    flavor configs are tune debian kernel into some flavor, eg rt kernel. debian/config/config.rt
    the 3 kinds of configs are write in config files, only define 5% kernel configs, and the rest are kernel autoselected.
     
    at this point, you need only to change arch related configs to make the kernel runs on your device.
     
    here are steps to make the change.
    1, use debian defualt config to rebuild your kernel. stop after .config is created.
    2, use meld to compare your config file and .config. only take care the configs missing in .config, do not touch the configs added in .config.
    3, add missing config in arch config
     
    now you get the missing configs to run on your devices.
  3. Like
    ning got a reaction from legogris in [HOWTO] build Debian-flavor kernel packages for Armbian with module signed and with debian-featured kernel config   
    before you start:
        Armbian already provides kernel build script in armbian build framework, and you can download these packages via `apt`
        in common cases, you shouldn't build kernel yourself, even you want to build a customer kernel package, you should use armbian build framework.
        because you can get best supports.
     
       so below content is only for experts.
     
    prepare source code:
        1, stable linux kernel source code:
            https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
           https://kernel.googlesource.com/pub/scm/linux/kernel/git/torvalds/linux.git
       2, armbian build framework, for patches and kernel config
           https://github.com/armbian/build
       3, debian linux build rules:
          git clone https://salsa.debian.org/kernel-team/linux.git --depth=1
         optional: checkout to a branch to build a different kernel version, current version is 5.5.8
       4, add patches to debian linux build rules:
          copy all family patches to <debian-rules>/debian/patches/
          add all your patches to <debian-rules>/debian/patches/series
         make sure all your patch are appliable to mainline kernel.
         optional: remove all debian's kernel patch, only leave armbian kernel patch.
     5, apply the patches.
        apt install devscripts
        cd <debian-rules>
       debian/bin/genorig.py <path-to-stable-linux>
       debian/rules orig
    6, copy kernel config to <debian-rules>/config/[armhf, arm64]/config
     
    prepare native armhf/arm64 build env
    1, donwload armbian's prebuild rootfs, or use debootstrap.
    2, mount dev, sys, proc, tmp to armhf/arm64 rootfs. reference: https://github.com/armbian/build/blob/master/lib/image-helpers.sh#L27
    3, mount <debian-rules> to armhf/arm64 rootfs.
     
    start build, in chroot rootfs
    1, cd <debian-rule>
    2, apt install devscripts fakeroot
    3, debian/rules debian/control DEBIAN_KERNEL_DISABLE_INSTALLER=true
    4, debuild -i -us -uc -b # do it only once, to let build system promt missing build depends. you need to install all build depends at this step.
    5, fakeroot debian/rules binary or fakeroot debian/rules binary-arch
    6, long wait.
  4. Like
    ning got a reaction from UniformBuffer in Display Offset   
    if X selects the best resolution, but the image is bigger than screen, you need adjust display's overscan setting. but if there is an offset, maybe there is a setting in display but i don't know. it looks like you already had a fixed version.
  5. Like
    ning got a reaction from UniformBuffer in Display Offset   
    you need to use alsamixer in console, select audio card with F6, and enable some switch and enlarge volume to have hdmi output.
  6. Like
    ning got a reaction from Igor in Armbian v20.08 (Caple) Planning Thread   
    2 pm GMT is 10 pm in China,  not too late, I will try to attend. poor English..
  7. Like
    ning got a reaction from Igor in Linux kernel 5.7   
    you can copy patches from: https://github.com/khadas/fenix/tree/master/packages/linux-mainline/patches/5.7
     
  8. Like
    ning got a reaction from TonyMac32 in Linux kernel 5.7   
    you can copy patches from: https://github.com/khadas/fenix/tree/master/packages/linux-mainline/patches/5.7
     
  9. Like
    ning got a reaction from Tommy21 in playing with lima(mesa mali drivers)   
    both, mali450 is slow, lima is not mature. disable composite would be better, and once HW cursor is enable by upstream, there will be a better performance.
     
    my S905x, uses mate-desktop with metacity WM composite enabled, using mainline mesa, performance looks OK.
  10. Like
    ning got a reaction from MX_Master in [Announcement] Xupdate for debian is created. updated mesa for mali GPUs.   
    Xupdate: includes updated mesa libraries for mali GPUs.
     
    how to use:
    add below to you source.list
     
     
    gpg key can be found at:
     
     
    after that, run `sudo apt update && sudo apt upgrade`
     
    before reboot, please update your xorg.conf, follow below webpage:
     
     
     
     
  11. Like
    ning got a reaction from NicoD in [Announcement] Xupdate for debian is created. updated mesa for mali GPUs.   
    Xupdate: includes updated mesa libraries for mali GPUs.
     
    how to use:
    add below to you source.list
     
     
    gpg key can be found at:
     
     
    after that, run `sudo apt update && sudo apt upgrade`
     
    before reboot, please update your xorg.conf, follow below webpage:
     
     
     
     
  12. Like
    ning got a reaction from NicoD in [Announcement] Xupdate for debian is created. updated mesa for mali GPUs.   
    this is ONLY for debian buster, if you are ubuntu user please go to graphics-drivers PPA, no duplicated work.
    and this repo is located in Shanghai China, maybe slow oversea.
  13. Like
    ning got a reaction from sabirovrinat85 in Unable to make Panfrost work on H6   
    if you use ubuntu, don't build mesa your self, you can use https://launchpad.net/~oibaf/+archive/ubuntu/graphics-drivers
    if you insist to build your self, please also update libdrm and libglvnd. these two deps are also important.
     
     
  14. Like
    ning got a reaction from JORGETECH in Unable to make Panfrost work on H6   
    if you use wayland session, panfrost is used by default.
    if you use Xorg, a config file is required, which is same as lima. please follow: https://gitlab.freedesktop.org/lima/web
    and make sure your xorg >= 1.20
     
     
  15. Like
    ning got a reaction from JORGETECH in Unable to make Panfrost work on H6   
    if you use ubuntu, don't build mesa your self, you can use https://launchpad.net/~oibaf/+archive/ubuntu/graphics-drivers
    if you insist to build your self, please also update libdrm and libglvnd. these two deps are also important.
     
     
  16. Like
    ning got a reaction from NicoD in Unable to make Panfrost work on H6   
    if you use ubuntu, don't build mesa your self, you can use https://launchpad.net/~oibaf/+archive/ubuntu/graphics-drivers
    if you insist to build your self, please also update libdrm and libglvnd. these two deps are also important.
     
     
  17. Like
    ning got a reaction from NicoD in Unable to make Panfrost work on H6   
    if you use wayland session, panfrost is used by default.
    if you use Xorg, a config file is required, which is same as lima. please follow: https://gitlab.freedesktop.org/lima/web
    and make sure your xorg >= 1.20
     
     
  18. Like
    ning got a reaction from stut in How to use HW video codec?   
    mainline amlogic hwvdec with patches still in review, can be directly used by mpv with `-hwdec=auto`
     
    cpu usage drop to 10% from 50%
  19. Like
    ning got a reaction from Igor in Is there a better way to prevent a custom kernel update than apt hold?   
    the simplest way: remove armbian software repo.
  20. Like
    ning got a reaction from stut in Is there a better way to prevent a custom kernel update than apt hold?   
    or just add SUBREVISION=.99999 to your build command line
  21. Like
    ning got a reaction from NicoD in How to use HW video codec?   
    mainline amlogic hwvdec with patches still in review, can be directly used by mpv with `-hwdec=auto`
     
    cpu usage drop to 10% from 50%
  22. Like
    ning got a reaction from manuti in lima is almost ready for daily use!!   
    lima & panfrost driver (mesa) has been pushed to beta.armbian.com, if you already use beta image or use beta armbian software repo, please just update.
    if not please add armbian beta software repo, and update.
     
    newer version (19.3-develop) mesa will be installed.
     
    you need to follow https://gitlab.freedesktop.org/lima/web#xorgconf
    to configure your Xserver.
     
    then enjor your mali GPU.
  23. Like
    ning got a reaction from Igor in lima is almost ready for daily use!!   
    lima & panfrost driver (mesa) has been pushed to beta.armbian.com, if you already use beta image or use beta armbian software repo, please just update.
    if not please add armbian beta software repo, and update.
     
    newer version (19.3-develop) mesa will be installed.
     
    you need to follow https://gitlab.freedesktop.org/lima/web#xorgconf
    to configure your Xserver.
     
    then enjor your mali GPU.
  24. Like
    ning got a reaction from NicoD in lima is almost ready for daily use!!   
    lima & panfrost driver (mesa) has been pushed to beta.armbian.com, if you already use beta image or use beta armbian software repo, please just update.
    if not please add armbian beta software repo, and update.
     
    newer version (19.3-develop) mesa will be installed.
     
    you need to follow https://gitlab.freedesktop.org/lima/web#xorgconf
    to configure your Xserver.
     
    then enjor your mali GPU.
  25. Like
    ning got a reaction from drice in lima is almost ready for daily use!!   
    https://gitlab.freedesktop.org/lima/mesa/issues/85#note_213894
     
    as said by Lima maintainer: Qiang Yu, xfce4 runs OK on lima now
     
    we could start to integrate lima to Armbian.
     
    @Igor do you agree?