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
  Reply
#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.
  Reply
#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
  Reply
#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..
  Reply
#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
  Reply
#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,
  Reply
#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
  Reply
#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,
  Reply
#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
  Reply
#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
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
Thumbs Up Batocera for RockPro64 Luke 9 2,963 Yesterday, 07:14 PM
Last Post: TheMiniCakeTV
  Official Debian release won't boot!?! Faradn 3 231 06-22-2020, 01:35 PM
Last Post: Bullet64
  Arch Linux on RockPro64 mmatyas 30 11,746 05-30-2020, 12:08 PM
Last Post: mmatyas
  Rockpro64 panfrost installation questions user12321 2 231 05-27-2020, 10:17 AM
Last Post: xmixahlx
  RockPro64 Slow Ping on WiFi jl_678 0 87 05-14-2020, 05:08 PM
Last Post: jl_678
  RockPro64 Linux Manjaro HDMI 4K mkne 12 518 05-03-2020, 07:23 AM
Last Post: PakoSt
Question Mainline Debian Buster on RockPro64 ? chrestomanci 12 910 04-27-2020, 09:53 AM
Last Post: kuleszdl
  Call for test: Clonezilla live for Rockpro64 stevenshiau 1 343 04-17-2020, 12:38 AM
Last Post: tllim
Big Grin RETRO GAMING: UPDATED RECALBOX FOR THE RK3399 ROCKPRO64 Mrfixit2001 38 7,064 03-29-2020, 05:37 AM
Last Post: Crnppscls
  slarm64 (unofficial slackware) ROCKPro64 RK3399 (aarch64) mara 30 6,342 03-21-2020, 10:34 AM
Last Post: mara

Forum Jump:


Users browsing this thread: 1 Guest(s)