RockPro64 Official Kernel Support
#11
pcie went into 5.3 and the last remaining of hdmi audio and wifi/bt.

5.3-rc1 was released last night and will wager that it will be listed if you pacman -Ss linux-aarch

Whoop that is finally it everything is in mainline fingers crossed its works without need for revision.
Hopefully it fixes many of the boot errors that produces boot delays in 5.2
Mesa 19.2 -b master is needed but that is also released so I heard early and this week.


Code:
sudo pacman -S bc python-pip flex bison base-devel ncurses cmake xorg-util-macros llvm valgrind
sudo pip install scikit-build mako
sudo pip install meson ninja
git clone https://gitlab.freedesktop.org/mesa/mesa.git -b master
cd mesa
mkdir build
meson -Ddri-drivers= -Dvulkan-drivers= -Dgallium-drivers=panfrost,kmsro -Dlibunwind=false -Dprefix=/usr build/
ninja -C build/
sudo ninja -C build/ install
sudo pacman -R xf86-video-fbturbo-git
sudo reboot

Or sudo pacman -S mesa-git

mesa-git is just a snapshot as much has been patched recently so prob already out of date, but likely enough to run glmark2 after removing the fbturbo driver and reboot
#12
(07-21-2019, 11:44 PM)Wom the Bat Wrote: I'm running 5.2.0 now; it works well, but needed device tree changes to access the PCIE bus.

Can you give me your .config for 5.2 and tell me how to install the 5.2 kernel after compiling ?
Thank you.
#13
(07-30-2019, 05:31 PM)rocksa Wrote:
(07-21-2019, 11:44 PM)Wom the Bat Wrote: I'm running 5.2.0 now; it works well, but needed device tree changes to access the PCIE bus.

Can you give me your .config for 5.2 and tell me how to install the 5.2 kernel after compiling ?
Thank you.

https://wiki.archlinux.org/index.php/Ker...ompilation

Great source of info.

But copy kernel from kernel.org untar and jump in that dir
`make mrproper` to make sure all is clean
`zcat /proc/config.gz > .config` to copy current config
`make`
`make modules_install`

`make headers_install ARCH=arm64`

then in /arch/arm/arm64 ? something like that you will find Image and Image.gz

some folder has a folder where the dtb is

copy to /boot

mkinitcpio -p linux-aarch64

reboot

Manjaro already have 5.2 & 5.3-rc packages though
#14
(08-01-2019, 06:01 PM)stuartiannaylor Wrote:
(07-30-2019, 05:31 PM)rocksa Wrote:
(07-21-2019, 11:44 PM)Wom the Bat Wrote: I'm running 5.2.0 now; it works well, but needed device tree changes to access the PCIE bus.

Can you give me your .config for 5.2 and tell me how to install the 5.2 kernel after compiling ?
Thank you.

https://wiki.archlinux.org/index.php/Ker...ompilation

Great source of info.

But copy kernel from kernel.org untar and jump in that dir
`make mrproper` to make sure all is clean
`zcat /proc/config.gz > .config` to copy current config
`make`
`make modules_install`

`make headers_install ARCH=arm64`

then in /arch/arm/arm64 ? something like that you will find Image and Image.gz

some folder has a folder where the dtb is

copy to /boot

mkinitcpio -p linux-aarch64

reboot

Manjaro already have 5.2 & 5.3-rc packages though

How to make debian packages for arm64?
Not install directly from tarballs..
#15
(08-06-2019, 11:35 AM)rocksa Wrote:
(08-01-2019, 06:01 PM)stuartiannaylor Wrote:
(07-30-2019, 05:31 PM)rocksa Wrote:
(07-21-2019, 11:44 PM)Wom the Bat Wrote: I'm running 5.2.0 now; it works well, but needed device tree changes to access the PCIE bus.

Can you give me your .config for 5.2 and tell me how to install the 5.2 kernel after compiling ?
Thank you.

https://wiki.archlinux.org/index.php/Ker...ompilation

Great source of info.

But copy kernel from kernel.org untar and jump in that dir
`make mrproper` to make sure all is clean
`zcat /proc/config.gz > .config` to copy current config
`make`
`make modules_install`

`make headers_install ARCH=arm64`

then in /arch/arm/arm64 ? something like that you will find Image and Image.gz

some folder has a folder where the dtb is

copy to /boot

mkinitcpio -p linux-aarch64

reboot

Manjaro already have 5.2 & 5.3-rc packages though

How to make debian packages for arm64?
Not install directly from tarballs..
debbootstrap 
http://linux-sunxi.org/Debootstrap
5.2.7 has gone the way of the pear supposedly
#16
(07-12-2019, 12:34 AM)mjog Wrote: Bunch of fixes went in to mainline 5.2 kernel: https://git.kernel.org/pub/scm/linux/ker...=rockpro64

Anyone tried it out?

Hello mjog,
I am at 1/3 to end the CI pipeline builder..  Shy
Then it will be needed some work, to optimise it, and reorganise..

But in this process,
I will try definitely 5.3, also with Open Source PanFrost Graphics driver, and other things later..

But first, the CI Pipeline,
Then I plan, to Optimise for several boards..

Regards,
#17
Please help me how to install the kernel..
I have found instructions but all i have found is not complete for armbian & rockpro64.
I have downloaded 5.2.9 from kernel.org and compiled with rockpro64 armbian 4.4.18X .config
after that make modules_install / make headers_install / update-initramfs -c -k 5.2.9
and copy dtb-5.2.9-rockchip64 vmlinuz-5.2.9-rockchip64 to /boot
and make symlinks
/boot/dtb -> /boot/dtb-5.2.9-rockchip64
/boot/Image -> vmlinuz-5.2.9-rockchip64

System does not boot
I don't know what else to do
The problem 99% is at uboot.
PLEASE HELP ME
#18
(08-20-2019, 01:39 PM)rocksa Wrote: System does not boot
I don't know what else to do
The problem 99% is at uboot.
PLEASE HELP ME

Hello rocksa,
I don't know if I can help you..
Because I have not all info, and its a lot of it .. Sad 
A Lot changed since 4.4.X series..and also I have not yet build my kernel..

You need o "deeper" .config file for sure..
Code:
make menuconfig
With this step, after clean, and make 'defconfig_boardname' ...


But first you need to clean it..
issue:

Code:
make -h
It will give you all options  Undecided

find the board 'defconfig' file

The initial sequence..
Quote:make clean
make defconfig_board_name
make menuconfig

RockChip uses a different scheme for the bootloader..
I am not there yet, still coding my CI pipeline( then I need to  glue it all together.. ).. Sad 

What tells you the file:
Code:
cat /boot/efi/extlinux/extlinux.conf
# also
ls -la /{,boot}

adjust 'extlinux.conf' file for your needs..
Do you sure the modules are in '/lib/modules/$(uname -r)/kernel'

Code:
tree -L 3 /lib/modules/$(uname -r)/kernel
find /lib/modules/$(uname -r) -name \*.ko -exec ls -ltr {} \;


Regards,
#19
armbian does not have folder /boot/efi/* does not have extlinux.conf in /boot this is the point that hangs me.

The config i have done 99.9% is correct the bootloader is the prob..

The modules yes is in /lib/modules ...


Code:
-rw-r--r--  1 root root        0 Jul 16 17:08 .next
lrwxrwxrwx  1 root root       34 Aug 20 22:07 Image -> /boot/vmlinuz-5.2.9-rt3-rockchip64
-rw-r--r--  1 root root  4416458 Jul 16 12:30 System.map-4.4.184-rockchip64
-rw-r--r--  1 root root      151 Aug 10 20:17 armbianEnv.txt
-rw-r--r--  1 root root     1536 Jul 16 17:09 armbian_first_run.txt.template
-rw-r--r--  1 root root     4882 Jul 16 17:09 boot-desktop.png
-rw-r--r--  1 root root    38518 Jul 16 17:09 boot.bmp
-rw-r--r--  1 root root     2877 Jul 16 17:07 boot.cmd
-rw-rw-r--  1 root root     2949 Jul 16 17:13 boot.scr
-rw-r--r--  1 root root   160425 Jul 16 12:30 config-4.4.184-rockchip64
lrwxrwxrwx  1 root root       30 Aug 20 22:06 dtb -> /boot/dtb-5.2.9-rt3-rockchip64
drwxr-xr-x  3 root root     4096 Aug 20 22:09 dtb-4.4.184-rockchip64
drwxr-xr-x  3 root root     4096 Aug 20 22:10 dtb-5.2.9-rt3-rockchip64
-rw-r--r--  1 root root  6844743 Jul 16 17:14 initrd.img-4.4.184-rockchip64
-rw-r--r--  1 root root  7094034 Aug 20 22:06 initrd.img-5.2.9-rt3
lrwxrwxrwx  1 root root       17 Aug 20 22:06 uInitrd -> uInitrd-5.2.9-rt3
-rw-r--r--  1 root root  6844807 Jul 16 17:14 uInitrd-4.4.184-rockchip64
-rw-r--r--  1 root root  7094098 Aug 20 22:06 uInitrd-5.2.9-rt3
-rwxr-xr-x  1 root root 19044360 Jul 16 12:30 vmlinuz-4.4.184-rockchip64
-rwxr-xr-x  1 root root 21368840 Aug 20 21:24 vmlinuz-5.2.9-rt3-rockchip64
#20
(08-21-2019, 01:26 AM)rocksa Wrote: armbian does not have folder /boot/efi/* does not have extlinux.conf in /boot this is the point that hangs me.

The config i have done 99.9% is correct the bootloader is the prob..

The modules yes is in /lib/modules ...

Hello rocksa,

cat  '/boot/boot.cmd'

Have you generated new scr with that file?
Why you don't have a uENV.txt file with bootloader Environment Variables set there?

Maybe you need to compile a new bootloader,since the 'device tree' changed..

You are using one from mainline,
but expecting that the one from 4.4.x serties work with it..

Compile a new Bootloader, and test Smile


Possibly Related Threads…
Thread Author Replies Views Last Post
  irradium (based on crux linux) RockPro64 riscv64, aarch64 mara 7 1,879 11-20-2024, 03:53 PM
Last Post: mara
  New OS for RockPro64 is here, TwisterOS Armbian jtremblant 92 106,013 08-17-2024, 02:32 PM
Last Post: taltamir
  OpenEuler OS on RockPro64 Yuriy Gavrilov 0 289 06-15-2024, 09:38 AM
Last Post: Yuriy Gavrilov
  yocto for RockPro64 Fide 1 1,114 01-16-2024, 10:01 AM
Last Post: Fide
  Installing Ubuntu Server on RockPro64 deutschlmao 2 3,476 10-29-2023, 04:43 PM
Last Post: brotherj4mes
Exclamation Ethernet regression on Linux Kernel 6.5.4? Deathcrow 3 1,498 09-22-2023, 04:27 AM
Last Post: diederik
  Vanilla mainline Debian 11 (Bullseye) on the RockPro64 Pete Tandy 22 21,326 08-16-2023, 01:34 AM
Last Post: varac
  slarm64 (unofficial slackware) ROCKPro64 RK3399 (aarch64) mara 54 92,894 08-11-2023, 11:13 AM
Last Post: mara
Question How do I compile an arbitrary kernel for U-Boot? Valenoern 3 1,840 06-16-2023, 10:54 AM
Last Post: CounterPillow
  How to enable CoreSight ETM trace on RockPro64 shpark 0 864 05-21-2023, 11:34 PM
Last Post: shpark

Forum Jump:


Users browsing this thread: 1 Guest(s)