rockchip-linux / kernel

BSP kernel source
Other
912 stars 1.07k forks source link

linux/rockchip/iomap.h file missing #137

Open chozhana opened 5 years ago

chozhana commented 5 years ago

iomap.h missing at include/linux/rockchip/iomap.h which is needed for enabling rockchip hdmi kernel module

fosf0r commented 5 years ago

Are you positive that your board uses it?

For instance, I have a Pine64 brand Rockpro64 (RK3399) and it uses Synopsys DesignWare HDMI (I see in my lsmod: dw_hdmi_cec, and dw_hdmi_i2s_audio)

Just throwing that out there. I'm surprised by the very few actual Rockchip modules that my board uses.

chozhana commented 5 years ago

i was trying to revive my old MK918 box which runs on RK3188. The main battleneck with this hardware was the non availability of latest kernel (struck with old 3.0.36 kernel). So was trying to compile 4.4 kernel for RK3188. The older version was using many of rockchip specific modules, one among them is RK_HDMI.

fosf0r commented 5 years ago

WELP: https://github.com/rockchip-linux/kernel/commit/e85d7dbaa051106d0f4a354076c1938e8f75745a ¯_(ツ)_/¯

The module is all wrong then -- I guess a rockchip-specific iomap is no longer necessary? edit: How bad is it if you just remove the entire line like these other commits did?

fosf0r commented 5 years ago

Also: A lot of stuff has been moved into the Device Tree nowadays (/boot/dtbs/ or /boot/*.dtb)

Some of the support may be provided by differently-named modules than 3.x series, and some support might be provided by PHY objects in the DTB instead of kernel modules.

You might want to "make rockchip_defconfig" (if that even still works) and just build it once without touching the Kconfig, to see where you need to go from. Cause what if it just works already with some of the in-built stuff?

All else fails, hack on ayufan's 4.4.138-1100 https://github.com/ayufan-rock64/linux-kernel/releases/tag/4.4.138-1100-rockchip-ayufan

keveryang commented 5 years ago

I'm sorry that RK3188 is not support in kernel 4.4, please try to use mainline kernel if you want to try with new kernel.

noob-archive commented 4 years ago

Hi @keveryang , Thanks for your response, at least that explains why the support for RK3188 is missing even from https://github.com/rockchip-linux/kernel (especially for rockchip LCDC support). I noticed kernels are focused on 64-bit rockchips.. and I've been trying to resolve every C error by un-intuitively copying over files.. It would be greatly appreciated if you could share any pointer to information which could help me port below to https://github.com/rockchip-linux/kernel: "rk-plat" and "mach-rk3188", DDR3 support, especially GPIO and IT66121, LCDC0 support:

image image image image

Its just hard to let MK908v3 go even after years and even after knowing it is based on 32-bit quad-core RK3188 as it is a beautiful piece of hardware with so much of possibility.

noob-archive commented 4 years ago

Hi @fosf0r ,

The default rockchip_defconfig/rockchip_linux_defconfig works as they don't use RK frame buffer/LCDC0/GPIO or IT66121 (HDMI 1.4 transmitter) for my board (mk908v3).

As soon as one ticks any of above, kernel no longer is in good shape to compile.

noob-archive commented 4 years ago

Hmm... AI got upto linux kernel 3.0.101. For MK908 v3 (RK3188/2GB DDR3/Mali 400MP4/ Working:

  1. Power led (blue)
  2. Boots from sdcard/USB
  3. Debian Jessie can be debootstrapped (infact running mate-desktop-environment on Jessie)
  4. Display and text-mode (fbcon) working on IT66121FN HDMI chip
  5. Working sdcard
  6. CPU (upto 1.4GHz, GPU upto 798MHz, DDR3 upto 800MHz) - Current stable for mk908 v3 board I have
  7. Mali driver with DRM and UMP support
  8. USB serial gadget (cdc_acm) works as default on /dev/ttyGS0 on OTG <=> PC connection. I use this as 100Mbps connection over pppd and works great.

Not working:

  1. HDMI Audio
  2. WiFi/Bluetooth (AP6210)

https://github.com/worldomkar/mk908-3-0-101

This kernel is derived from mainline 3.0.101 + omegamoon/tyeo 3.0.72+ kernel + porting changes

Disclaimer: No warranties for the work and please do check frequencies for your particular board (I started with lowest ones and worked to find stable balance).

noob-archive commented 4 years ago

iomap.h missing at include/linux/rockchip/iomap.h which is needed for enabling rockchip hdmi kernel module

@chozhana You may find this interesting. Bumping your thread as you have recent post and RK3188 device.