4 4
jernej

H2+/H3/H5/A64 Disp2 U-Boot video driver

Recommended Posts

I was playing around re-adding a boot splash but get stuck a bit.
https://github.com/armbian/build/blob/master/patch/u-boot/u-boot-sunxi/sunxi-boot-splash.patch#L32-L37 When changing to this:

+#if defined CONFIG_VIDEO || CONFIG_SUNXI_DE2
+#define CONFIG_SPLASH_SCREEN
+#define CONFIG_SPLASH_SCREEN_ALIGN
+#define CONFIG_CMD_BMP
+#define CONFIG_VIDEO_BMP_GZIP
+#define CONFIG_VIDEO_BMP_LOGO
+#define CONFIG_VIDEO_BMP_RLE8
+#endif

... an error "unknown command bmp" is changed to "you need a 32bit image" and when added that kind no error is shown but also no picture. The question - how to make use of current 8bit logo?

Share this post


Link to post
Share on other sites

Hello! I try build u-boot for H3 with bootlogo. My board orangepi_lite. I add CONFIG_CMD_BMP in default config of my board.

Spoiler

U-Boot SPL 2018.03-rc1-00162-g211a3a2-dirty (Feb 05 2018 - 12:30:21 +0200)
DRAM: 512 MiB
Trying to boot from MMC1


U-Boot 2018.03-rc1-00162-g211a3a2-dirty (Feb 05 2018 - 12:30:21 +0200) Allwinner Technology

CPU:   Allwinner H3 (SUN8I 1680)
Model: Xunlong Orange Pi Lite
DRAM:  512 MiB
MMC:   SUNXI SD/MMC: 0
Loading Environment from FAT... *** Warning - bad CRC, using default environment

Failed (-5)
Loading Environment from MMC... *** Warning - bad CRC, using default environment

Failed (-5)
In:    serial
Out:   vidconsole
Err:   vidconsole
Net:   No ethernet found.
starting USB...
USB0:   USB EHCI 1.00
USB1:   USB OHCI 1.0
USB2:   USB EHCI 1.00
USB3:   USB OHCI 1.0
scanning bus 0 for devices... 1 USB Device(s) found
scanning bus 2 for devices... 1 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found
Hit any key to stop autoboot:  0
=>

 

After load u-boot, I can see console on hdmi display. I try display bmp:

=> load mmc 0:1 0x43000000 bootlogo.bmp
1062934 bytes read in 78 ms (13 MiB/s)
=> bmp i 0x43000000
Image size    : 681 x 520
Bits per pixel: 24
Compression   : 0
=> bmp d 0x43000000
=>

But I see only console... Please, tell me where I was wrong. 

P.S. sorry, if I write in wrong theme

Share this post


Link to post
Share on other sites
On 2/5/2017 at 3:20 PM, jernej said:

@zador,

 

I just added support for TV out, PAL and NTSC standard. Do you think that it is interesting enough to include in Armbian? Maybe for OPi0?

 

https://github.com/jernejsk/u-boot/tree/h3_hdmi_tv_v1

 

You have to include "CONFIG_VIDEO_COMPOSITE=y" in defconfig. PAL is selected by default and can be overriden by environment variable.

 

Which file needed to set NTSC/PAL environment variable for u-boot compilation?

Sorry, I'm new on this

Share this post


Link to post
Share on other sites
54 minutes ago, jernej said:

The reason why that patch is still not merged in U-Boot is that it's hardcoded to PAL.

 

BTW, that U-Boot branch doesn't exist anymore. Use that one instead: https://github.com/jernejsk/u-boot/tree/tv_out_v2

 

@jernej do you know whether i need to patch u-boot also for getting tvout on bpi-m2plus board?

I follow this guideline below, but still no display on tvout

 

Share this post


Link to post
Share on other sites

Yes, there is no official support for H3 TV out in mainline Linux on any board. And patch provided in that topic probably needs to be updated, depending on the sources you use.

Share this post


Link to post
Share on other sites
On 2/5/2017 at 3:20 PM, jernej said:

@zador,

 

I just added support for TV out, PAL and NTSC standard. Do you think that it is interesting enough to include in Armbian? Maybe for OPi0?

 

https://github.com/jernejsk/u-boot/tree/h3_hdmi_tv_v1

 

You have to include "CONFIG_VIDEO_COMPOSITE=y" in defconfig. PAL is selected by default and can be overriden by environment variable.

 

@jernej you're saying it needs CONFIG_VIDEO_COMPOSITE=y in defconfig?

I add this in Sinovoip_BPI_M2_Plus_defconfig but I don't see it include CONFIG_VIDEO_COMPOSITE=y  in .config while u-boot compile. Also that link you provide no longer working. Any more details?

Share this post


Link to post
Share on other sites
On 12/7/2018 at 11:34 PM, dony71 said:

Also that link you provide no longer working.

I gave you new link few posts back. This work has been done about 2 years ago, so I forgot many details. It seems CONFIG_VIDEO_DE2=y is enough to enable driver, TV plug-in is auto-detected at boot only and only PAL is supported. It seems that that branch also doesn't have simplefb support.

 

I don't know when I will get back to this, since I'm busy with Linux kernel stuff, mostly Cedrus and DE2 driver.

Share this post


Link to post
Share on other sites
On 12/9/2018 at 12:50 AM, jernej said:

I gave you new link few posts back. This work has been done about 2 years ago, so I forgot many details. It seems CONFIG_VIDEO_DE2=y is enough to enable driver, TV plug-in is auto-detected at boot only and only PAL is supported. It seems that that branch also doesn't have simplefb support.

 

I don't know when I will get back to this, since I'm busy with Linux kernel stuff, mostly Cedrus and DE2 driver.

 

I modify all u-boot source file mark with "sunxi: video: Add H3/H5 TV out driver"

Also I make sure 'CONFIG_VIDEO_DE2=y' is there in .config

u-boot compilation is successful but still no TVE out

looking at kern.log, kernel is doing something related to TVE, but I don't understand 

Can you give some highlight what happenings?

Attached is kern.log and debug

debug

kern.log

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
4 4