Framebuffer flickering during SATA file copying

Source: Internet
Author: User

Set lcd0_enable 1

// Set lcd0_params 1280x720-32 @ 60
Set lcd0_params 1280x720-16@ 60

You can change the color to 16 bits for unknown reasons.

 

Run the cat command to read data during testing and run the CP command to write data.

 

Read hard disk data with Cat XXX. mpg>/dev/null on hard disk. Flash is serious

CP/USB/test/mnt/test1 flashes less, but there are also

 

Read and Write on USB are not flashing

 

 

Another strange phenomenon is that memory free is reduced after reading and writing, and umount is back.

/# cp/USB/test1/mnt/Test2
/# Free
total used free shared buffers
mem: 510548 466244 44304 0 736
-/+ buffers: 465508 45040
swap: 0 0 0
/#

------------------------------------------------------------------

Output of fbset in 32bit and 16bit:

/Mnt # fbset

Mode "1280x720-60"
# D: 74.250 MHz, H: 45.000 kHz, V: 60.000Hz
Geometry 1280 720 1280 16
Timings 13468 220 110 20 5 40 5
Accel false
Rgba 5/11, 6/5, 5/0, 0/0
Endmode

/# Fbset

Mode "1280x720-60"
# D: 74.250 MHz, H: 45.000 kHz, V: 60.000Hz
Geometry 1280 720 1280 720 32
Timings 13468 220 110 20 5 40 5
Accel false
Rgba 8/16, 8/8, 8/0, 8/24
Endmode

 

/*
* Default mode database.
*/
Static struct fb_videomode video_modes [] = {

...

[13] = {/* 1280x720 @ 60 */
. Pixclock = 0,
. Refresh = 60,
. Xres = 1280,/* 1328 */
. Yres = 720,/* 816 */

. Hsync_len = 40,
. Left_margin = 220,
. Right_margin = 110,

. Vsync_len = 5,
. Upper_margin = 20,
. Lower_margin = 5,
. Sync = 0,
}

 

Calculate pixclock in the clcd_platform_init function:

For (I = 0; I <array_size (video_modes); I ++ ){
Total_x = video_modes [I]. xres + video_modes [I]. hsync_len +
Video_modes [I]. left_margin +
Video_modes [I]. right_margin;
Total_y = video_modes [I]. yres + video_modes [I]. vsync_len +
Video_modes [I]. upper_margin +
Video_modes [I]. lower_margin;
Div_result = optional bytes Passed LL;
Do_div (div_result,
(Total_x * total_y * video_modes [I]. Refresh ));
Video_modes [I]. pixclock = div_result;
}

 

 

LCD debugging information during startup:

Dove fb driver:
Initialize/proc/mv_dump_lcd0
Use CAT/proc/mv_dump_lcd0 to see Reg settings
Dovefb_parse_options begin .--------------------------------
O Kernel Parameter: 1280x720-16 @ 60.
Dovefb_parse_options end .--------------------------------
Dovefb_config_vga_calibration .--------------------------------
Dovefb_set_defaults begin
Reg_base -------------- 0xc09a0000
Dovefb_set_defaults end
Dovefb_set_mode
Set_dumb_panel_control
------------ <GFX layer 0 video mode database> -----------
Mode 0: <1920x1200 @ 60> Pico = 5177
FB timings 336 128 38 1 208 3
Xorg timings 1920 2048 2256 2592 1200 1201 1204
Mode 1: <1920x1080 @ 60> Pico = 6734
FB timings 148 88 36 4 44 5
Xorg timings 1920 2008 2052 2200 1080 1084 1089
Mode 2: <1650x1050 @ 60> Pico = 6888
FB timings 288 104 33 1 184 3
Xorg timings 1650 1754 1938 2226 1050 1051 1054
Mode 3: <1366x 768 @ 60> Pico = 11659
FB timings 216 72 23 1 144 3
Xorg timings 1366 1438 1582 1798 768 769 772
Mode 4: <1280x1024 @ 60> Pico = 9262
FB timings 248 48 38 1 112 3
Xorg timings 1280 1328 1440 1688 1024 1025 1028
Mode 5: <1280x 720 @ 60> Pico = 13468
FB timings 220 110 20 5 40 5
Xorg timings 1280 1390 1430 1650 720 725 730
Mode 6: <1024x 768 @ 85> Pico = 10581
FB timings 208 48 36 1 96 3
Xorg timings 1024 1072 1168 1376 768 769 772
Mode 7: <1024x 768 @ 70> Pico = 13346
FB timings 144 24 29 3 136 6
Xorg timings 1024 1048 1184 1328 768 771 777
Mode 8: <1024x 768 @ 60> Pico = 15385
FB timings 160 24 29 3 136 6
Xorg timings 1024 1048 1184 1344 768 771 777
Mode 9: <1024x 600 @ 60> Pico = 22401
FB timings 38 38 8 8 100 4
Xorg timings 1024 1062 1162 1200 600 608 612
Mode 10: <800x 600 @ 85> Pico = 17790
FB timings 152 32 27 1 64 3
Xorg timings 800 832 896 1048 600 601 604
Mode 11: <800x 600 @ 75> Pico = 20234
FB timings 160 16 21 1 80 2
Xorg timings 800 816 896 1056 600 601 603
Mode 12: <800x 600 @ 72> Pico = 20052
FB timings 64 56 23 37 120 6
Xorg timings 800 856 976 1040 600 637 643
Mode 13: <800x 600 @ 60> Pico = 25131
FB timings 88 40 23 1 128 4
Xorg timings 800 840 968 1056 600 601 605
Mode 14: <800x 600 @ 56> Pico = 26515
FB timings 128 32 14 1 128 4
Xorg timings 800 832 960 1088 600 601 605
Mode 15: <640X 480 @ 85> Pico = 27780
FB timings 112 32 25 1 48 3
Xorg timings 640 672 720 832 480 481 484
Mode 16: <640X 480 @ 75> Pico = 31746
FB timings 48 16 32 11 96 2
Xorg timings 640 656 752 800 480 491 493
Mode 17: <640X 480 @ 72> Pico = 32102
FB timings 128 24 28 9 40 3
Xorg timings 640 664 704 832 480 489 492
Mode 18: <640X 480 @ 60> Pico = 39758
FB timings 48 16 31 11 96 2
Xorg timings 640 656 752 800 480 491 493
Found <1280x720 @ 60>, pixclock = 13468
Dovefb_init_mode
Needed_pixclk = 74250074 .
N = 49, M = 1, k = 1, full_div = 16, half = 1, pll_vco = 6.
Dovefb_gfx_set_par
Dovefb_gfx_init .--------------------------------
Dovefb_ovly_init .--------------------------------
Sda1
SD 1: 0: 2: 0: [SDA] sector size 0 reported, assuming 512.
Needed_pixclk = 74250074.
N = 49, M = 1, k = 1, full_div = 16, half = 1, pll_vco = 6.
SD 1: 0: 2: 0: [SDA] Attached SCSI disk

 

Toto: Compare 16-bit data.

 

------------------------------------------------------------------

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.