zynq ubuntu桌面LCD移植实现

27 篇文章 7 订阅
6 篇文章 9 订阅

前言

目的:在Zynq上点亮OLED以及SPI LCD做开发显示使用,打包ubuntu rootfs

开始

1、使能SSD1306以及9341的驱动

&spi0 {
	status = "okay";
	ili9341@0 {
		compatible = "ilitek,ili9341";
		reg = <0>;
		spi-max-frequency = <50000000>;
		rotate = <270>;
		bgr;
		fps = <30>;
		buswidth = <8>;
		reset-gpios = <&gpio0  56 GPIO_ACTIVE_LOW>;
		dc-gpios = <&gpio0  57 GPIO_ACTIVE_LOW>;
		debug = <0>;
	};

	/*spi0dev@1 {
		compatible = "spidev";
		reg = <1>;
		spi-max-frequency = <50000000>;
		#address-cells = <1>;
		#size-cells = <1>;
	};*/
};

&i2c0 {
    ssd1306:ssd1306@3c {
        compatible = "solomon,ssd1306fb-i2c";
        reg = <0x3c>;
        solomon,width = <128>;
        solomon,height = <64>;
		solomon,page-offset= <0>;
		solomon,com-invdir = <1>;
		//solomon,com-lrremap = <1>;
    };
};

2、使能frambuffer driver、ssd1306、9341驱动
3、下载lianro ubuntu系统

http://releases.linaro.org/archive/12.11/ubuntu/precise-images/

在这里插入图片描述
4、解压打包ubuntu rootfs

开机测试

echo “hello” > /dev/tty1

在这里插入图片描述
显示~~

  • 1
    点赞
  • 7
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值