Linux Kernel 4.14

Hello Everyone,

I would like to know if anyone is working on Linux kernel 4.14 for rockpie or atleast for rk3328 where I can add patches for rockpie support.

Looking to try Ipfire on it.

Thanks.

Rockchip moved to 4.19 as another vendor LTS kernel, this is already released for Android 10. We will soon move to 4.19 for Linux also.

1 Like

@spikerguy

Linux 4.14 LTS already has support for Rockchip RK3328.

Ref: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/arch/arm64/boot/dts/rockchip?h=v4.14.193

I don’t see any reason why you need a separate tree supporting rk3328.

Thanks for quick reply.

ipfire is using 4.14 and they have some linux hardening done. I have compiled it from source now just needed 4.14 source for rk3328 where I can patch the RockPiE dts or if anyone have pushed it to their branch then I could reuse it.

I will check upstream and see what extra is needed to add RockPiE support.

Thanks.

You’ll need to create a patch file to add support for ROCK Pi E dts in the kernel (whichever is used by ipfire).

Here’s something to start with https://github.com/radxa/kernel/blob/stable-4.4-rockpie/arch/arm64/boot/dts/rockchip/rk3328-rock-pi-e.dts

Keep in mind that upstream kernel has many rules to be followed upon. Refer to existing DTS (sample) for guidelines.

My suggestion would be to write the DTS from scratch and only add the nodes and properties you require or as supported by ipfire.

1 Like

Thanks for the reply.

Yes I have followed armbians nodes but I think I should better use the one from 4.4.
I see that 4.14 and 5.4 have similar rk3328.dtsi so hopefully 5.4’s patch to add rk3328 rockpie support.

Here is the gist for patch, Do you think I should use 4.4 nodes?

@spikerguy Armbian supports a lot of devices not already in upstream kernel and a lot of small patches are used (USB3.0, etc).

The patch will be okay with armbian but will fail on ipfire kernel.

You can take the patch from armbian as reference and write your own dts for the Pi E.

1 Like

@spikerguy If your discussion has come to a conclusion, you can marked the post as the solution.

Refer to this image:

image

@spikerguy You can also view this file on github repository where you can find the DTS which can be directly used on kernel 4.14, but remove the USB3 nodes.

1 Like

This looks good to me.
I see &usbdrd_dwc3 is the usb3 which i can ignore and try to use the same dts as patch over 4.14 and see how far it can run.

Thanks for all the support.

1 Like

Hello @jayanta525

I have been trying to add RockPiE support to IPFire but I get stuck with kernel not able to find the rootfs on sd nor emmc.

I have added rockchip config myself to the kernel 4.14.198

I have enabled these but still I am not able to mount the rootfs partition once the kernel loads from boot partition during uboot load.

Documenting the config needed.

* CONFIG_PCIE_ROCKCHIP
* CONFIG_ROCKCHIP_IODOMAIN
* CONFIG_MFD_RK808
* CONFIG_MMC_DW_ROCKCHIP
* CONFIG_ROCKCHIP_IOMMU
* CONFIG_ROCKCHIP_PM_DOMAINS
* CONFIG_ROCKCHIP_SARADC 
* CONFIG_PHY_ROCKCHIP_DP
* CONFIG_PHY_ROCKCHIP_EMMC
* CONFIG_PHY_ROCKCHIP_INNO_USB2
* CONFIG_PHY_ROCKCHIP_PCIE
* CONFIG_PHY_ROCKCHIP_TYPEC
* CONFIG_PHY_ROCKCHIP_USB

Optional

* CONFIG_SND_SOC_ROCKCHIP (If Sound is needed)
* CONFIG_ROCKCHIP_EFUSE (Only needed for Android support)

Did I miss anything that must be related to emmc or sdcard ? I have tried a diff on your branch but there are some which I cannot find in the official kernel conf of 4.14
Like:

* CONFIG_PCIE_ROCKCHIP_HOST
* CONFIG_SPI_ROCKCHIP
* CONFIG_DRM_ROCKCHIP

Here is the boot log for RockPiE
Kindly advice on this.

Happy New Year everyone on Radxa forum.

can you post the boot.scr?

No I didn’t use any boot.scr its just mainline uboot for rock64.

Can you post the compiled image instead?