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 ...
随机推荐
- VUE2.0增删改查附编辑添加model(弹框)组件共用
Vue实战篇(增删改查附编辑添加model(弹框)组件共用) 前言 最近一直在学习Vue,发现一份crud不错的源码 预览链接 https://taylorchen709.github.io/vue- ...
- BZOJ 2286: [Sdoi2011消耗战 [DP 虚树]
传送门 题意: 删除价值和最小的边使得$1$号点与$k$个关键点不连通 一个树形DP...但是询问多次,保证总的关键点数为$O(n)$ 先说一下这个$DP$ $f[i]$表示子树$i$中的关键点与$1 ...
- 数据提交成功后如何避免alert被window.location.reload()影响
数据提交成功用alert提示,但页面立马就重载了 alert("提交成功!"); window.location.reload(); 如何避免? 方法一: setTimeout 延 ...
- 初学sql
bit 布尔类型 int nvarchar datetime 常用类型 nvarchar(max) 存文章(不超过5000) 字符串 用 '' . char/nchar,varchar/nvarcha ...
- SUSE-11 本地 zypper 配置
配置本地 zypper 目的: 安装 SUSE-11 后想要再添加或删除软件组件将比较麻烦.通过配置本地 zypper 将可以从下载的软件仓库(repository)中安装软件包. 本地 zypp ...
- s5pv210 的启动
1.开发板已启动从0x0获取数据(内部64k的硬盘,里面含有三星固化的BL0段代码),将其读到a8软核中,进行运算,主要用于初始化时钟,96k的内部IRAM.并负责 指定启动设备(通常为外部硬盘),从 ...
- centos7安装部署gitlab服务器
[gitlab需要内存至少4GB] 我这里使用的是centos 7 64bit,我试过centos 6也是可以的! 1. 安装依赖软件 yum -y install policycoreutils ...
- U盘制作centos7系统并安装
U盘刻录步骤 1.下载centos镜像(https://mirrors.aliyun.com/centos/7.4.1708/isos/x86_64/) 2.使用UltraISO刻录U盘启动系统 安装 ...
- linux shell 执行远程命令
我在本地的shell脚本中,想要直接执行远程服务器的一个shell脚本: ssh -l root 192.168.1.1 "/data/t.sh" 记得提前给远程服务器的 /dat ...
- Java基础系列--static关键字
原创作品,可以转载,但是请标注出处地址:http://www.cnblogs.com/V1haoge/p/8477914.html 一.概述 static关键字是Java诸多关键字中较常使用的一个,从 ...