AM3358--Uboot支持LCD输出1024*768
1. uboot/include/lcd/tq3358_fb.h
#define TFT240320 1 #define TFT320240 2 #define TFT480272 3//T43(天嵌4.3寸屏) #define TFT800480_H50 4//H50(5寸高清屏) #define TFT800480 5//A70(群创7.0寸屏) #define TFT800600 6//A104(友达10.4寸屏) #define TFT1024600_H70 7//H70(7寸高清屏) #define DYNAMIC_CONFIG 8//动态配置LCD
typedef enum _LCD_TYPE{
X240Y320=0,
X320Y240,
X480Y272,
X640Y480,
X800Y480,
X800Y480_H50,
X800Y600,
X1024Y600_H70,
X1024Y768,
X1280Y800,
LCD_TYPE_MAX,
} LCD_TYPE;
2. uboot\common\cmd_menu.c
void lcd_menu_usage()
{
printf("\r\n##### LCD select Menu #####\r\n");
printf("[1] T43\" screen.\r\n");
printf("[2] A70\" screen.\r\n");
printf("[3] A104\" screen.\r\n");
printf("[4] H50\" screen.\r\n");
printf("[5] H70\" screen.\r\n");
printf("[6] A133\" screen.\r\n");
printf("[7] W35\" screen.\r\n");
printf("[8] VGA1280X800\" screen.\r\n");
printf("[9] X1024Y768\" screen.\r\n");
printf("[r] Reboot u-boot\r\n");
// printf("[s] Reinitializtion lcd.\r\n");
printf("[q] Return Parameter Menu \r\n");
printf("Enter your selection: ");
}
void lcd_menu_shell()
{
char c;
char cmd_buf[256];
while (1)
{
lcd_menu_usage();
c = getc();
printf("%c\n", c);
switch (c)
{
case '1':
{
sprintf(cmd_buf, "setenv lcdtype X480Y272;");
run_command(cmd_buf, 0);
run_command("saveenv;", 0);
break;
}
case '2':
{
sprintf(cmd_buf, "setenv lcdtype X800Y480;");
run_command(cmd_buf, 0);
run_command("saveenv;", 0);
break;
}
case '3':
{
sprintf(cmd_buf, "setenv lcdtype X800Y600;");
run_command(cmd_buf, 0);
run_command("saveenv;", 0);
break;
}
case '4':
{
sprintf(cmd_buf, "setenv lcdtype X800Y480_H50;");
run_command(cmd_buf, 0);
run_command("saveenv;", 0);
break;
}
case '5':
{
sprintf(cmd_buf, "setenv lcdtype X1024Y600_H70;");
run_command(cmd_buf, 0);
run_command("saveenv;", 0);
break;
break;
}
case '6':
{
sprintf(cmd_buf, "setenv lcdtype X1280Y800;");
run_command(cmd_buf, 0);
run_command("saveenv;", 0);
break;
break;
}
case '7':
{
sprintf(cmd_buf, "setenv lcdtype X320Y240;");
run_command(cmd_buf, 0);
run_command("saveenv;", 0);
break;
}
case '8':
{
sprintf(cmd_buf, "setenv lcdtype VGA1280X800;");
run_command(cmd_buf, 0);
run_command("saveenv;", 0);
break;
break;
}
case '9':
{
sprintf(cmd_buf, "setenv lcdtype X1024Y768;");
run_command(cmd_buf, 0);
run_command("saveenv;", 0);
break;
break;
}
case 'R':
case 'r':
{
strcpy(cmd_buf, "reset");
run_command(cmd_buf, 0);
break;
}
case 'Q':
case 'q':
{
return;
break;
}
}
}
}
3. include\configs\tq3358.h ub0ot默认设置
#ifdef CONFIG_TQ3358
#define CONFIG_IPADDR 192.168.1.6
#define CONFIG_SERVERIP 192.168.1.8
#define CONFIG_NETMASK 255.255.255.0
#define CONFIG_ETHADDR 00:40:5c:26:0a:52
#define CONFIG_GATEWAYIP 192.168.1.2
#ifdef CONFIG_NAND
#define CONFIG_EXTRA_ENV_SETTINGS \
"mloimgname=MLO\0"\
"ubootimgname=u-boot.bin\0"\
"kernelimgname=zImage.bin\0"\
"rootimgname=root.bin\0"\
"lcdtype=X800Y480\0" \
"uart1_d_can=uart1\0" \
"uart2_i2c2=uart2\0" \
"kloadaddr=0x80008000\0" \
"cpaddr=0x81000000\0"\
"loadaddr=0x80200000\0" \
"console=ttySAC0,115200n8\0" \
"yaffs_root=/dev/mtdblock9\0" \
"yaffs_root_fs_type=yaffs2 rw rootwait=1\0" \
"ubi_root=ubi0:rootfs\0" \
"ubi_root_fs_type=ubifs ubi.mtd=9,2048 rw rootwait=1\0" \
"nfsserverip=192.168.1.7\0" \
"nfsipaddr=192.168.1.6\0" \
AM3358--Uboot支持LCD输出1024*768的更多相关文章
- u-boot支持LCD显示(基于TQ2440)
平台简介 Linux版本:Linux-3.14 u-boot版本:u-boot-2015.04 硬件:TQ2440(内存:64MB NandFlash:256MB) 作者:彭东林 邮箱:pengdo ...
- u-boot支持LCD显示(基于TQ2440)【转】
本文转载自:http://www.cnblogs.com/pengdonglin137/p/4633877.html u-boot支持LCD显示(基于TQ2440) 阅读目录(Content) 平 ...
- 分享tiny4412,emmc烧录u-boot, 支持fastboot模式烧写emmc【转】
本文转载自:http://www.arm9home.net/read.php?tid-80810.html 分享tiny4412,emmc烧录u-boot, 支持fastboot模式烧写emmc ...
- pycharm修改代码模板支持中文输出
python2.x默认不支持中文输出,需要在py的开头添加 #coding: utf- 在pycharm里面,选项,editor,file and code templates,选择python sc ...
- C++简单实现Log日志类轻量级支持格式化输出变量
CLog 头 代码很简单 如果需要的直接Ctrl+C ----Ctrl+V 即可 #ifndef __CLOG__ #define __CLOG__ #include <windows.h&g ...
- Uboot中支持lcd和hdmi显示不同的logo图片【转】
本文转载自:http://blog.csdn.net/u010865783/article/details/54953315 在lcd为竖屏,hdmi显示横屏的情况下,如果按照默认的uboot显示框架 ...
- 基于am3358的lcd输出
/*#include<stdio.h> */ #include <unistd.h> #include <stdio.h> #include <stdlib. ...
- 嵌入式Linux支持LCD console【转】
转自:http://blog.sina.com.cn/s/blog_664c545f0100v9zl.html 转载:http://www.mculee.cn/post/48.html [1]LCD ...
- 分享tiny4412,emmc烧录u-boot, 支持fastboot模式烧写emmc
转载 : http://www.arm9home.net/read.php?tid-83474.html 本人是第一次在此发帖,希望大家多多支持,发帖目的是为了分享,分享的目的是传递开源的精神.Tin ...
随机推荐
- Apache自带的rotatelogs实现日志轮转
用Apache自带的rotatelogs程序处理apache生成的日志自动截断重新生成,rotatelogs是一个配合Apache管道日志功能使用的简单程序.设置方法如下: 编辑Apache的主配置文 ...
- iOS-Mac Charles抓包工具的使用【Mac 抓包工具Charles】
1.下载文件 Charles安装包以及破解文件下载地址:http://charles.iiilab.com 2.安装及使用 使用介绍 http://www.cocoachina.com/ios/201 ...
- C# 实现Html转JSON
Html为树结构->Json为数组结构 应用场景 H5或浏览器展示Html代码没有问题,但是让原生APP或ReactNative直接展示Html可能会有很多不便 实现方法 可以通过正则表达式捕获 ...
- LongAdder基础
LongAdder是JDK8中并发包中的一个新类,和AtomicLong都使用CAS,但是性能比AtomicLong更好. LongAdder在AtomicLong的基础上进行了热点分离,热点分离类似 ...
- HDU 4333 [SAM WRONG!!!]
题意:给一个数字,每一次把它的最后一位拿到最前面,一直那样下去,分别求形成的数字小于,等于和大于原来数的个数. SAM上就是走n步 相等好好做啊,但是大于小于不好做啊,用类似弦论的思想也不能处理出怎样 ...
- 深度学习(二)更新ing~
监督学习是指:利用一组已知类别的样本调整分类器的参数,使其达到所要求性能的过程,也称为监督训练或有教师学习 通俗来说就是人给过一个tag再来训练. 神经网络: 三个隐藏层的一个神经网络e.g 后面又提 ...
- opencv-python与c++ opencv中的一些区别和基础的知识
使用opencv-python一段时间了,因为之前没有大量接触过c++下的opencv,在网上看c++的一些程序想改成python遇到了不少坑,正好在这里总结一下. 1.opencv 中x,y,hei ...
- GitLab的安装及使用教程
1.配置yum源 vim /etc/yum.repos.d/gitlab-ce.repo 复制以下内容: [gitlab-ce] name=gitlab-ce baseurl=http://mirro ...
- angularjs MVC、模块化、依赖注入详解
一.MVC <!doctype html> <html ng-app> <head> <meta charset="utf-8"> ...
- linux 下yum使用技巧
本文来自我的github pages博客http://galengao.github.io/ 即www.gaohuirong.cn 经常会遇上一些linux系统允许你上外网,而一些是不允许的,这时我们 ...