前言
目的:在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
显示~~