Page 1 of 1

[imx6q] Questions about kernel logo and blinking cursor

PostPosted: Mon Mar 09, 2015 7:48 pm
by jury093
Hi all!
I work with wandboard SoM (imx6q) in my project.
Kernel sources from local SDK - http://wandboard.org/images/downloads/w ... 519.tar.xz
For screen I use lvds matrix on the channel lvds0. All work fine, but I have two questions:
1. how to enable blinking cursor for console on the screen?
data from system:
Code: Select all
root@wandbook:~# uname -a
Linux wandbook 3.0.101 #192 SMP PREEMPT Mon Mar 9 18:12:52 MSK 2015 armv7l GNU/Linux
root@wandbook:~# cat /etc/debian_version
7.0
root@wandbook:~# cat /sys/class/graphics/fbcon/cursor_blink
1
root@wandbook:~# cat /proc/cmdline
console=ttymxc0,115200 video=mxcfb0:dev=ldb,LDB-WXGA,if=RGB18 root=/dev/mmcblk0p2 rootwait rw mtdparts=gpmi-nand:1M(U-Boot),1M(Env1),1M(Env2),8M(Linux),-(User_Data)
root@wandbook:~#


rootfs generated from canonical debian debootstrap and work perfectly in other boards (imx6q, imx6s, imx53, am3359 etc)

after load I see login prompt, I can type symbols from external usb keyboard, but flashing cursor is missing :(
I discovered in kernel sources strange changes:
drivers/tty/vt/vt.c
Code: Select all
int global_cursor_default = 0;

I look in work kernel (from other board):
Code: Select all
int global_cursor_default = -1;

hm-m.. change from 0->-1, rebuild, load.. no success.. where my cursor?
where you can still see options?

2. how to enable kernel logo during boot?
after power on I see logo u-boot, next during kernel load only dark screen (backlight is work) and after loading approx 0.5 sec I see "four tuxes" then instantly Debian login. In normal imx6 boards I see logo (tuxes or custom) during full kernel boot..

Temporary I solved is problem - make dirty hack in next file:
drivers/video/mxc/mxc_ipuv3_fb.c
Code: Select all
      /* Unblank the primary fb only by default */
// comment by jury093
//      if (pdev->id == 0)
         mxcfbi->cur_blank = mxcfbi->next_blank = FB_BLANK_UNBLANK;
//      else
//         mxcfbi->cur_blank = mxcfbi->next_blank = FB_BLANK_POWERDOWN;
 

rebuild, load and bingo! It is work! 4 tuxes..
Imho, is no true way. What I missed?

PS I suppose is kernel sources is modification for XBMC use (switch blinking cursor off, disable logo)

Re: [imx6q] Questions about kernel logo and blinking cursor

PostPosted: Tue Mar 10, 2015 4:55 am
by Tapani
Tried
Code: Select all
echo -e '\033[?6c'

?

Re: [imx6q] Questions about kernel logo and blinking cursor

PostPosted: Tue Mar 10, 2015 6:54 am
by jury093
Tapani wrote:Tried
Code: Select all
echo -e '\033[?6c'

?

Tapani, yes!
After enter this command I see fullsize (all symbol place) flashing cursor..
How to fix for kernel?
Thanks.

Re: [imx6q] Questions about kernel logo and blinking cursor

PostPosted: Wed Mar 11, 2015 4:25 am
by Tapani
It seems to me that your cursor is more of a terminal issue, and not a kernel one?
Check if Documentation/VGA-softcursor.txt or drivers/video/console/fbcon.c contains anything helpful.

About framebuffer unblanking by default -- if that hack of yours works, you seem to have your primary display elsewhere.
The primary display gets the tuxes asap, all secondary displays are blanked by default.

Re: [imx6q] Questions about kernel logo and blinking cursor

PostPosted: Wed Mar 11, 2015 11:35 am
by PLyttle
to make permanent:

Code: Select all
echo -e '\033[?6c' >> /etc/issue


(as root)

LP

Re: [imx6q] Questions about kernel logo and blinking cursor

PostPosted: Wed Mar 11, 2015 7:14 pm
by jury093
PLyttle wrote:to make permanent:
Code: Select all
echo -e '\033[?6c' >> /etc/issue


Thank you, but, imho, this is bad idea:
if I change media with new rootfs, this modification is lost.

I think what problem into kernel, maybe was changed option for tty/fbcon..
Kernel sources very big..

Re: [imx6q] Questions about kernel logo and blinking cursor

PostPosted: Wed Mar 11, 2015 9:40 pm
by jury093
Tapani wrote:It seems to me that your cursor is more of a terminal issue, and not a kernel one?
Check if Documentation/VGA-softcursor.txt or drivers/video/console/fbcon.c contains anything helpful.

I found source of the problem.
In current SDK sources file:
include/linux/console_struct.h
consist define:
Code: Select all
#define CUR_DEFAULT CUR_NONE
:(
I change to:
Code: Select all
#define CUR_DEFAULT CUR_UNDERLINE

rebuild, reboot and.. see normal small blinking cursor..

About framebuffer unblanking by default -- if that hack of yours works, you seem to have your primary display elsewhere.
The primary display gets the tuxes asap, all secondary displays are blanked by default.

But I have only one video interface (lvds). Other (hdmi, rgb24) not physically connected and is not logically connected (comments code in file of board).
After load I can see /dev/fb0 and /dev/fb1 (first it is main screen, second - overlay)..
I will investigate further..

Re: [imx6q] Questions about kernel logo and blinking cursor

PostPosted: Wed Mar 11, 2015 11:05 pm
by jury093
Tapani wrote:The primary display gets the tuxes asap, all secondary displays are blanked by default.

You gave me the right idea "about counter displays".
I recheck boardfile and saw his mistake
fail:
Code: Select all
   imx6q_add_ipuv3fb(1, &wand_lvds_fb[0]);

true:
Code: Select all
   imx6q_add_ipuv3fb(0, &wand_lvds_fb[0]);

I erase my ugly "hack", rebuild and after reload kernel successfully show four penguins :)

Thanks again!

Re: [imx6q] Questions about kernel logo and blinking cursor

PostPosted: Sun Mar 19, 2017 7:29 am
by Buckley11
good overlooked with this amazing app till now, now in this FaceTime for Android Download [Latest Update] and also Mac cell users all over the world. Existing to be an nice.