[imx6q] Questions about kernel logo and blinking cursor

This is the place for software discussions not having a dedicated subforum

[imx6q] Questions about kernel logo and blinking cursor

Postby jury093 » Mon Mar 09, 2015 7:48 pm

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)
jury093
 
Posts: 59
Joined: Fri Feb 06, 2015 10:41 am
Location: Sankt-Peterburg, Russia

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

Postby Tapani » Tue Mar 10, 2015 4:55 am

Tried
Code: Select all
echo -e '\033[?6c'

?
Tapani
Site Admin
 
Posts: 685
Joined: Tue Aug 27, 2013 8:32 am

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

Postby jury093 » Tue Mar 10, 2015 6:54 am

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.
jury093
 
Posts: 59
Joined: Fri Feb 06, 2015 10:41 am
Location: Sankt-Peterburg, Russia

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

Postby Tapani » Wed Mar 11, 2015 4:25 am

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.
Tapani
Site Admin
 
Posts: 685
Joined: Tue Aug 27, 2013 8:32 am

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

Postby PLyttle » Wed Mar 11, 2015 11:35 am

to make permanent:

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


(as root)

LP
PLyttle
 
Posts: 95
Joined: Thu Jun 26, 2014 12:29 pm

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

Postby jury093 » Wed Mar 11, 2015 7:14 pm

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..
jury093
 
Posts: 59
Joined: Fri Feb 06, 2015 10:41 am
Location: Sankt-Peterburg, Russia

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

Postby jury093 » Wed Mar 11, 2015 9:40 pm

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..
jury093
 
Posts: 59
Joined: Fri Feb 06, 2015 10:41 am
Location: Sankt-Peterburg, Russia

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

Postby jury093 » Wed Mar 11, 2015 11:05 pm

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!
jury093
 
Posts: 59
Joined: Fri Feb 06, 2015 10:41 am
Location: Sankt-Peterburg, Russia

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

Postby Buckley11 » Sun Mar 19, 2017 7:29 am

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.
Buckley11
 
Posts: 1
Joined: Sun Mar 19, 2017 7:28 am


Return to Software - General

Who is online

Users browsing this forum: No registered users and 3 guests

cron