|
Good day friends!
Just sorry for my bad english
I have Orange Pi PC v1.2
Worked use Debian image from Loboris. It worked perfectly!!!
Yesterday I found a Linux Kernel Module for HD44780 with I2C Expander(originally for Raspberry pi )
https://github.com/lucidm/lcdi2c
I wanted to use it on PI. Using OrangePi kernel sourcesI created a new kernel and compiled module lcdi2c.ko
After writing uImage on SD-card system has booted successfully.
I connected the display and decided to check the operation of the module.
- root@OrangePI:~# modinfo ./lcdi2c.ko
- filename: /root/./lcdi2c.ko
- version: 0.1.0
- description: Driver for HD44780 LCD with PCF8574 I2C extension.
- author: Jarek Zok <jarekzok@gmail.com>
- license: GPL
- srcversion: 7978FC46B63CF5649BF59AC
- alias: i2c:lcdi2c
- depends:
- vermagic: 3.4.39-01-lobo SMP preempt mod_unload modversions ARMv7 p2v8
- parm: busno: I2C Bus number, default 1 (uint)
- parm: address: LCD I2C Address, default 0x27 (uint)
- parm: pinout: I2C module pinout configuration, eight numbers
- representing following LCD modulepins in order: RS,RW,E,D4,D5,D6,D7,
- default 0,1,2,3,4,5,6,7 (array of uint)
- parm: cursor: Show cursor at start 1 - Yes, 0 - No, default 1 (uint)
- parm: blink: Blink cursor 1 - Yes, 0 - No, defualt 1 (uint)
- parm: major: Device major number, default 0 (int)
- parm: topo: Display organization, following values are currently supported:
- 0 - 40x2
- 1 - 20x4
- 2 - 20x2
- 3 - 16x4
- 4 - 16x2
- 5 - 16x1 Type 1
- 6 - 16x1 Type 2
- 7 - 8x2
- Default set to 16x2 (uint)
- root@OrangePI:~# insmod ./lcdi2c.ko busno=0
- root@OrangePI:~# lsmod
- Module Size Used by
- lcdi2c 14422 0
- 8189es 901572 0
- root@OrangePI:~# dmesg
- ...
- [ 6637.970848] lcdi2c 0-0027: 16x2 LCD using bus 0x0, at address 0x27
- [ 6637.971232] lcdi2c 0-0027: registered with major 246
- root@OrangePI:~#
Copy code The module is successfully loaded and running
Display shows - HD 44780 Driver
In the folder /sys/class created alphalcd.
I tested using lcddev.py
But there is one problem
As soon as I load module gpio-sunxi.ko display fails to work.
- root@OrangePI:~# modprobe gpio-sunxi
- root@OrangePI:~# dmesg
- ....
- [ 7494.718923] gpio_pin_1(362) gpio_request
- [ 7494.719252] gpio_pin_2(15) gpio_request
- [ 7494.719492] gpio_pin_3(12) gpio_request
- [ 7494.719729] gpio_pin_4(11) gpio_request
- [ 7494.719981] gpio_pin_5(6) gpio_request
- [ 7494.720321] gpio_pin_6(13) gpio_request
- [ 7494.720641] gpio_pin_7(14) gpio_request
- [ 7494.720964] gpio_pin_8(1) gpio_request
- [ 7494.721271] gpio_pin_9(110) gpio_request
- [ 7494.721591] gpio_pin_10(0) gpio_request
- [ 7494.721904] gpio_pin_11(3) gpio_request
- [ 7494.722229] gpio_pin_12(68) gpio_request
- [ 7494.722576] gpio_pin_13(71) gpio_request
- [ 7494.722919] gpio_pin_14(64) gpio_request
- [ 7494.723256] gpio_pin_15(65) gpio_request
- [ 7494.723592] gpio_pin_16(2) gpio_request
- [ 7494.723898] gpio_pin_17(66) gpio_request
- [ 7494.724219] gpio_pin_18(67) gpio_request
- [ 7494.724567] gpio_pin_19(21) gpio_request
- [ 7494.724938] gpio_pin_20(19) gpio_request
- [ 7494.725280] gpio_pin_21(18) gpio_request
- [ 7494.725621] gpio_pin_22(7) gpio_request
- [ 7494.725981] gpio_pin_23(8) gpio_request
- [ 7494.726337] gpio_pin_24(200) gpio_request
- [ 7494.726706] gpio_pin_25(9) gpio_request
- [ 7494.727008] gpio_pin_26(10) gpio_request
- [ 7494.727274] gpio_pin_27(201) gpio_request
- [ 7494.727650] gpio_pin_28(20) gpio_request
- [ 7494.727985] gpio_pin_29(198) gpio_request
- [ 7494.728276] gpio_pin_30(199) gpio_request
- [ 7494.728697] gpio name is PL10, ret = 0
- [ 7494.729196] gpio name is PA15, ret = 0
- [ 7494.729618] gpio name is PA12, ret = 0
- [ 7494.730170] gpio name is PA11, ret = 0
- [ 7494.730710] gpio name is PA6, ret = 0
- [ 7494.731143] gpio name is PA13, ret = 0
- [ 7494.731582] gpio name is PA14, ret = 0
- [ 7494.731988] gpio name is PA1, ret = 0
- [ 7494.732469] gpio name is PD14, ret = 0
- [ 7494.732907] gpio name is PA0, ret = 0
- [ 7494.733284] gpio name is PA3, ret = 0
- [ 7494.733664] gpio name is PC4, ret = 0
- [ 7494.734055] gpio name is PC7, ret = 0
- [ 7494.734447] gpio name is PC0, ret = 0
- [ 7494.734845] gpio name is PC1, ret = 0
- [ 7494.735245] gpio name is PA2, ret = 0
- [ 7494.735588] gpio name is PC2, ret = 0
- [ 7494.736014] gpio name is PC3, ret = 0
- [ 7494.736402] gpio name is PA21, ret = 0
- [ 7494.736788] gpio name is PA19, ret = 0
- [ 7494.737108] gpio name is PA18, ret = 0
- [ 7494.737443] gpio name is PA7, ret = 0
- [ 7494.737793] gpio name is PA8, ret = 0
- [ 7494.738115] gpio name is PG8, ret = 0
- [ 7494.738451] gpio name is PA9, ret = 0
- [ 7494.738826] gpio name is PA10, ret = 0
- [ 7494.739249] gpio name is PG9, ret = 0
- [ 7494.739625] gpio name is PA20, ret = 0
- [ 7494.740081] gpio name is PG6, ret = 0
- [ 7494.740435] gpio name is PG7, ret = 0
- [ 7494.740930] gpio_init finish with uesd 1!
- [ 7570.290123] sunxi_i2c_do_xfer()973 - [i2c0] xfer timeout (dev addr:0x27)
- [ 7575.340129] sunxi_i2c_do_xfer()973 - [i2c0] xfer timeout (dev addr:0x27)
- [ 7580.440119] sunxi_i2c_do_xfer()973 - [i2c0] xfer timeout (dev addr:0x27)
- [ 7585.440119] sunxi_i2c_do_xfer()973 - [i2c0] xfer timeout (dev addr:0x27)
- [ 7590.440131] sunxi_i2c_do_xfer()973 - [i2c0] xfer timeout (dev addr:0x27)
- [ 7595.440103] sunxi_i2c_do_xfer()973 - [i2c0] xfer timeout (dev addr:0x27)
- [ 7600.440100] sunxi_i2c_do_xfer()973 - [i2c0] xfer timeout (dev addr:0x27)
- [ 7605.440116] sunxi_i2c_do_xfer()973 - [i2c0] xfer timeout (dev addr:0x27)
- [ 7610.440123] sunxi_i2c_do_xfer()973 - [i2c0] xfer timeout (dev addr:0x27)
- root@OrangePI:~#
Copy code
I do not know how to diagnose it
Any ideas?
Any help
|
|