LCD Touchscreen display in Mikrotik RB 2011UiAS-2HnD

So recently i install openwrt on my mikrotik device , everything is ok except lcd and touchscreen
screen only shows "starting kernel" and Mikrotik logo
how i can show for example system uptime on lcd display ?
i can't find any display device file under /dev/ directory
list of /dev/ :

bus                 kmsg                mtd2                mtd5ro              mtdblock4           ppp                 tty                 ttyS14              ttyS7               ubi_ctrl
console             log                 mtd2ro              mtd6                mtdblock5           ptmx                ttyS0               ttyS15              ttyS8               ubiblock0_1
cpu_dma_latency     memory_bandwidth    mtd3                mtd6ro              mtdblock6           pts                 ttyS1               ttyS2               ttyS9               urandom
full                mtd0                mtd3ro              mtdblock0           network_latency     random              ttyS10              ttyS3               ubi0                watchdog
gpiochip0           mtd0ro              mtd4                mtdblock1           network_throughput  sda                 ttyS11              ttyS4               ubi0_0              zero
gpiochip1           mtd1                mtd4ro              mtdblock2           null                sda1                ttyS12              ttyS5               ubi0_1
hwrng               mtd1ro              mtd5                mtdblock3           port                shm                 ttyS13              ttyS6               ubi0_2

and list of /sys/device/platform/ :

Fixed MDIO bus.0/ ag71xx-mdio.1/    ag71xx.1/         ar934x-nfc/       ath79-gpio/       ath79-wdt/        regulatory.0/     serial8250.0/
ag71xx-mdio.0/    ag71xx.0/         alarmtimer/       ar934x_wmac/      ath79-spi/        ehci-platform/    serial8250/       uevent

output of dmesg :

[    0.000000] Linux version 4.14.167 (builder@buildhost) (gcc version 7.5.0 (OpenWrt GCC 7.5.0 r10911-c155900f66)) #0 Wed Jan 29 16:05:35 2020
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 0001974c (MIPS 74Kc)
[    0.000000] SoC: Atheros AR9344 rev 3
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 08000000 @ 00000000 (usable)
[    0.000000] User-defined physical RAM map:
[    0.000000]  memory: 08000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] On node 0 totalpages: 32768
[    0.000000] free_area_init_node: node 0, pgdat 80521d50, node_mem_map 81000020
[    0.000000]   Normal zone: 256 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 32768 pages, LIFO batch:7
[    0.000000] random: get_random_bytes called from 0x80525740 with crng_init=0
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0 
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 32512
[    0.000000] Kernel command line: benand_no_swecc lcd_ctrl=84 parts=1 boot_part_size=4194304 gpio=249403 HZ=300000000 mem=128M kmac=CC:2D:E0:03:8E:B1 board=2011r5 board=2011r5 ver=6.45.7 bver=3.41 hw_opt=00718004 boot=1 mlc=11 console=ttyS0,115200 rootfstype=squashfs noinitrd
[    0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Writing ErrCtl register=00000000
[    0.000000] Readback ErrCtl register=00000000
[    0.000000] Memory: 124164K/131072K available (4184K kernel code, 172K rwdata, 520K rodata, 236K init, 213K bss, 6908K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS: 51
[    0.000000] Clocks: CPU:600.000MHz, DDR:400.000MHz, AHB:400.000MHz, Ref:25.000MHz
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 6370868154 ns
[    0.000009] sched_clock: 32 bits at 300MHz, resolution 3ns, wraps every 7158278654ns
[    0.008864] Calibrating delay loop... 299.82 BogoMIPS (lpj=1499136)
[    0.085998] pid_max: default: 32768 minimum: 301
[    0.091462] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.098973] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.109476] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.120684] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.128951] NET: Registered protocol family 16
[    0.138713] MIPS: machine is Mikrotik RouterBOARD 2011UiAS-2HnD
[    0.644894] clocksource: Switched to clocksource MIPS
[    0.651704] NET: Registered protocol family 2
[    0.657567] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.665545] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.672768] TCP: Hash tables configured (established 1024 bind 1024)
[    0.680135] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.686816] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.694185] NET: Registered protocol family 1
[    0.699201] PCI: CLS 0 bytes, default 32
[    0.703274] Crashlog allocated RAM at address 0x3f00000
[    0.710582] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[    0.722949] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.729614] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.751251] io scheduler noop registered
[    0.755755] io scheduler deadline registered (default)
[    0.762008] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    0.771273] console [ttyS0] disabled
[    0.795518] serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11, base_baud = 1562500) is a 16550A
[    0.805325] console [ttyS0] enabled
[    0.812871] bootconsole [early0] disabled
[    0.828225] m25p80 spi0.0: found w25x05, expected m25p80
[    0.844797] m25p80 spi0.0: w25x05 (64 Kbytes)
[    0.849825] Creating 4 MTD partitions on "spi0.0":
[    0.854792] 0x000000000000-0x00000000c000 : "routerboot"
[    0.862027] 0x00000000c000-0x00000000d000 : "hard_config"
[    0.869033] 0x00000000d000-0x00000000e000 : "bios"
[    0.876062] 0x00000000e000-0x00000000f000 : "soft_config"
[    0.884682] nand: device found, Manufacturer ID: 0x98, Chip ID: 0xf1
[    0.891303] nand: Toshiba NAND 128MiB 3,3V 8-bit
[    0.896096] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    0.903948] Scanning device for bad blocks
[    0.913912] random: fast init done
[    0.926544] Bad eraseblock 104 at 0x000000d00000
[    0.931394] Bad eraseblock 105 at 0x000000d20000
[    0.974105] Bad eraseblock 376 at 0x000002f00000
[    0.978979] Bad eraseblock 377 at 0x000002f20000
[    0.987748] Bad eraseblock 406 at 0x0000032c0000
[    0.992589] Bad eraseblock 407 at 0x0000032e0000
[    1.012298] Bad eraseblock 514 at 0x000004040000
[    1.017166] Bad eraseblock 515 at 0x000004060000
[    1.023693] Bad eraseblock 528 at 0x000004200000
[    1.028565] Bad eraseblock 529 at 0x000004220000
[    1.066747] Bad eraseblock 768 at 0x000006000000
[    1.087123] Bad eraseblock 880 at 0x000006e00000
[    1.091965] Bad eraseblock 881 at 0x000006e20000
[    1.116930] Creating 3 MTD partitions on "ar934x-nfc":
[    1.122258] 0x000000000000-0x000000040000 : "booter"
[    1.129110] 0x000000040000-0x000000400000 : "kernel"
[    1.135737] 0x000000400000-0x000008000000 : "ubi"
[    1.146105] libphy: Fixed MDIO Bus: probed
[    1.165599] libphy: ag71xx_mdio: probed
[    1.178606] switch0: Atheros AR8327 rev. 4 switch registered on ag71xx-mdio.0
[    1.905815] libphy: ag71xx_mdio: probed
[    2.536362] ag71xx ag71xx.0: connected to PHY at ag71xx-mdio.0:00 [uid=004dd034, driver=Atheros AR8216/AR8236/AR8316]
[    2.547937] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode: rgmii
[    3.176677] ag71xx-mdio.1: Found an AR934X built-in switch
[    3.228927] eth1: Atheros AG71xx at 0xba000000, irq 5, mode: gmii
[    3.236763] NET: Registered protocol family 10
[    3.245407] Segment Routing with IPv6
[    3.249302] NET: Registered protocol family 17
[    3.253937] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[    3.267358] 8021q: 802.1Q VLAN Support v1.8
[    3.275566] UBI: auto-attach mtd6
[    3.279029] ubi0: attaching mtd6
[    4.559304] ubi0: scanning is finished
[    4.580925] ubi0: attached mtd6 (name "ubi", size 124 MiB)
[    4.586665] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[    4.593762] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[    4.600794] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[    4.607997] ubi0: good PEBs: 979, bad PEBs: 13, corrupted PEBs: 0
[    4.614288] ubi0: user volume: 3, internal volumes: 1, max. volumes count: 128
[    4.621761] ubi0: max/mean erase counter: 3/1, WL threshold: 4096, image sequence number: 1372273601
[    4.631203] ubi0: available PEBs: 0, total reserved PEBs: 979, PEBs reserved for bad PEB handling: 7
[    4.640719] ubi0: background thread "ubi_bgt0d" started, PID 386
[    4.648617] block ubiblock0_1: created from ubi0:1(rootfs)
[    4.654297] ubiblock: device ubiblock0_1 (rootfs) set to be root filesystem
[    4.672081] VFS: Mounted root (squashfs filesystem) readonly on device 254:0.
[    4.680606] Freeing unused kernel memory: 236K
[    4.685230] This architecture does not have kernel memory protection.
[    5.300606] init: Console is alive
[    5.304381] init: - watchdog -
[    5.622227] random: crng init done
[    6.330652] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    6.396560] usbcore: registered new interface driver usbfs
[    6.402300] usbcore: registered new interface driver hub
[    6.407932] usbcore: registered new device driver usb
[    6.418553] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    6.426990] ehci-platform: EHCI generic platform driver
[    6.432482] ehci-platform ehci-platform: EHCI Host Controller
[    6.438521] ehci-platform ehci-platform: new USB bus registered, assigned bus number 1
[    6.448811] ehci-platform ehci-platform: TX-TX IDP fix enabled
[    6.454851] ehci-platform ehci-platform: irq 3, io mem 0x1b000000
[    6.484919] ehci-platform ehci-platform: USB 2.0 started, EHCI 1.00
[    6.492235] hub 1-0:1.0: USB hub found
[    6.496537] hub 1-0:1.0: 1 port detected
[    6.503667] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    6.511592] ohci-platform: OHCI generic platform driver
[    6.517860] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    6.527784] init: - preinit -
[    6.954961] usb 1-1: new high-speed USB device number 2 using ehci-platform
[    7.215687] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[    8.266529] eth0: link up (1000Mbps/Full duplex)
[    8.271514] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   10.457911] UBIFS (ubi0:2): background thread "ubifs_bgt0_2" started, PID 461
[   10.543514] UBIFS (ubi0:2): recovery needed
[   10.724725] UBIFS (ubi0:2): recovery completed
[   10.729463] UBIFS (ubi0:2): UBIFS: mounted UBI device 0, volume 2, name "rootfs_data"
[   10.737584] UBIFS (ubi0:2): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[   10.747845] UBIFS (ubi0:2): FS size: 117071872 bytes (111 MiB, 922 LEBs), journal size 5840896 bytes (5 MiB, 46 LEBs)
[   10.758813] UBIFS (ubi0:2): reserved for root: 4952683 bytes (4836 KiB)
[   10.765662] UBIFS (ubi0:2): media format: w4/r0 (latest is w5/r0), UUID 67A8BCFE-5BA3-4011-875B-2C8DEA4E1682, small LPT model
[   10.798224] mount_root: switching to ubifs overlay
[   10.855309] urandom-seed: Seeding with /etc/urandom.seed
[   11.062972] eth0: link down
[   11.085153] procd: - early -
[   11.088252] procd: - watchdog -
[   11.735019] procd: - watchdog -
[   11.738608] procd: - ubus -
[   11.831909] procd: - init -
[   12.830620] kmodloader: loading kernel modules from /etc/modules.d/*
[   12.983053] SCSI subsystem initialized
[   13.004458] urngd: v1.0.2 started.
[   13.137715] ip6_tables: (C) 2000-2006 Netfilter Core Team
[   13.166316] Loading modules backported from Linux version v4.19.98-0-gd183c8e2647a
[   13.174142] Backport generated by backports.git v4.19.98-1-0-g8204eb99
[   13.207454] ip_tables: (C) 2000-2006 Netfilter Core Team
[   13.222868] nf_conntrack version 0.5.0 (2048 buckets, 8192 max)
[   13.361321] usb-storage 1-1:1.0: USB Mass Storage device detected
[   13.385207] scsi host0: usb-storage 1-1:1.0
[   13.390036] usbcore: registered new interface driver usb-storage
[   13.432324] xt_time: kernel timezone is -0000
[   13.560520] PPP generic driver version 2.4.2
[   13.576328] NET: Registered protocol family 24
[   13.662761] ath: EEPROM regdomain: 0x0
[   13.662770] ath: EEPROM indicates default country code should be used
[   13.662775] ath: doing EEPROM country->regdmn map search
[   13.662790] ath: country maps to regdmn code: 0x3a
[   13.662796] ath: Country alpha2 being used: US
[   13.662800] ath: Regpair used: 0x3a
[   13.676945] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[   13.678943] ieee80211 phy0: Atheros AR9340 Rev:3 mem=0xb8100000, irq=47
[   13.795313] kmodloader: done loading kernel modules from /etc/modules.d/*
[   14.447345] scsi 0:0:0:0: Direct-Access     ADATA    USB Flash Drive  1.00 PQ: 0 ANSI: 6
[   14.459119] sd 0:0:0:0: [sda] 15155200 512-byte logical blocks: (7.76 GB/7.23 GiB)
[   14.532921] sd 0:0:0:0: [sda] Write Protect is off
[   14.537935] sd 0:0:0:0: [sda] Mode Sense: 23 00 00 00
[   14.544956] sd 0:0:0:0: [sda] Write cache: disabled, read cache: disabled, doesn't support DPO or FUA
[   14.568896]  sda: sda1
[   14.575509] sd 0:0:0:0: [sda] Attached SCSI removable disk
[   27.146965] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   27.174068] br-local: port 1(eth0.3) entered blocking state
[   27.179891] br-local: port 1(eth0.3) entered disabled state
[   27.185995] device eth0.3 entered promiscuous mode
[   27.190951] device eth0 entered promiscuous mode
[   27.263248] IPv6: ADDRCONF(NETDEV_UP): br-local: link is not ready
[   27.580268] br-local: port 2(eth0.4) entered blocking state
[   27.586093] br-local: port 2(eth0.4) entered disabled state
[   27.592175] device eth0.4 entered promiscuous mode
[   27.867623] br-local: port 3(eth0.5) entered blocking state
[   27.873396] br-local: port 3(eth0.5) entered disabled state
[   27.879543] device eth0.5 entered promiscuous mode
[   28.187340] eth0: link up (1000Mbps/Full duplex)
[   28.192310] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   28.299671] br-local: port 1(eth0.3) entered blocking state
[   28.305492] br-local: port 1(eth0.3) entered listening state
[   28.311633] br-local: port 2(eth0.4) entered blocking state
[   28.317440] br-local: port 2(eth0.4) entered listening state
[   28.323568] br-local: port 3(eth0.5) entered blocking state
[   28.329393] br-local: port 3(eth0.5) entered listening state
[   30.344959] br-local: port 3(eth0.5) entered learning state
[   30.350788] br-local: port 2(eth0.4) entered learning state
[   30.356614] br-local: port 1(eth0.3) entered learning state
[   30.772635] pppoe-wan: renamed from ppp0
[   32.138573] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[   32.198733] br-local: port 4(wlan0) entered blocking state
[   32.204512] br-local: port 4(wlan0) entered disabled state
[   32.210556] device wlan0 entered promiscuous mode
[   32.424959] br-local: port 1(eth0.3) entered forwarding state
[   32.430905] br-local: topology change detected, propagating
[   32.436770] br-local: port 2(eth0.4) entered forwarding state
[   32.442702] br-local: topology change detected, propagating
[   32.448520] br-local: port 3(eth0.5) entered forwarding state
[   32.454458] br-local: topology change detected, propagating
[   32.460336] IPv6: ADDRCONF(NETDEV_CHANGE): br-local: link becomes ready
[   33.107073] pppoe-wan: renamed from ppp0
[   34.323887] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[   34.330699] br-local: port 4(wlan0) entered blocking state
[   34.336430] br-local: port 4(wlan0) entered listening state
[   36.344915] br-local: port 4(wlan0) entered learning state
[   38.424913] br-local: port 4(wlan0) entered forwarding state
[   38.430782] br-local: topology change detected, propagating
[21515.890435] pppoe-wan: renamed from ppp0
[21517.549054] pppoe-wan: renamed from ppp0
[21519.198832] pppoe-wan: renamed from ppp0
[21520.883187] pppoe-wan: renamed from ppp0
[21522.533467] pppoe-wan: renamed from ppp0
[21524.168233] pppoe-wan: renamed from ppp0
[21827.791722] pppoe-wan: renamed from ppp0
[21829.443644] pppoe-wan: renamed from ppp0
[21831.073006] pppoe-wan: renamed from ppp0
[53362.037720] pppoe-wan: renamed from ppp0
[53363.745790] pppoe-wan: renamed from ppp0
[55492.628205] FAT-fs (sda1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
[73153.443124] pppoe-wan: renamed from ppp0
[73155.101254] pppoe-wan: renamed from ppp0
[73156.762271] pppoe-wan: renamed from ppp0
[73158.421638] pppoe-wan: renamed from ppp0
[73160.083707] pppoe-wan: renamed from ppp0
[73161.762578] pppoe-wan: renamed from ppp0
[257914.220876] pppoe-wan: renamed from ppp0
[257915.881411] pppoe-wan: renamed from ppp0
[257917.546818] pppoe-wan: renamed from ppp0
[257919.216562] pppoe-wan: renamed from ppp0
[257920.856902] pppoe-wan: renamed from ppp0
[257922.497641] pppoe-wan: renamed from ppp0
[258108.568725] pppoe-wan: renamed from ppp0
[264705.802900] pppoe-wan: renamed from ppp0
[264707.451280] pppoe-wan: renamed from ppp0
[264709.117891] pppoe-wan: renamed from ppp0
[264710.780558] pppoe-wan: renamed from ppp0
[264712.430669] pppoe-wan: renamed from ppp0
[477340.762245] pppoe-wan: renamed from ppp0
[510675.461750] pppoe-wan: renamed from ppp0
[510677.157035] pppoe-wan: renamed from ppp0
[510678.816763] pppoe-wan: renamed from ppp0
[510680.477126] pppoe-wan: renamed from ppp0
[517092.331458] pppoe-wan: renamed from ppp0
[517094.009865] pppoe-wan: renamed from ppp0
[517095.660021] pppoe-wan: renamed from ppp0
[517097.351672] pppoe-wan: renamed from ppp0
[522693.797259] ash (23304): drop_caches: 3
[524263.617232] usb 1-1: reset high-speed USB device number 2 using ehci-platform
[524502.855157] usb 1-1: reset high-speed USB device number 2 using ehci-platform
[524732.095848] ash (23304): drop_caches: 3
[524818.842280] usb 1-1: reset high-speed USB device number 2 using ehci-platform
[524876.771773] usb 1-1: reset high-speed USB device number 2 using ehci-platform
[524924.691306] usb 1-1: reset high-speed USB device number 2 using ehci-platform
[524934.381257] usb 1-1: reset high-speed USB device number 2 using ehci-platform
[525001.420630] usb 1-1: reset high-speed USB device number 2 using ehci-platform
[525014.990504] usb 1-1: reset high-speed USB device number 2 using ehci-platform
[525053.270203] usb 1-1: reset high-speed USB device number 2 using ehci-platform
[525060.940143] usb 1-1: reset high-speed USB device number 2 using ehci-platform
[525229.259546] usb 1-1: reset high-speed USB device number 2 using ehci-platform
[525297.340198] usb 1-1: reset high-speed USB device number 2 using ehci-platform
[525318.464854] usb 1-1: reset high-speed USB device number 2 using ehci-platform
[525397.151040] usb 1-1: reset high-speed USB device number 2 using ehci-platform
[525415.561191] usb 1-1: reset high-speed USB device number 2 using ehci-platform
[525425.781250] usb 1-1: reset high-speed USB device number 2 using ehci-platform
[526797.597331] pppoe-wan: renamed from ppp0
[526799.246320] pppoe-wan: renamed from ppp0
[526800.915486] pppoe-wan: renamed from ppp0
[526802.575874] pppoe-wan: renamed from ppp0

openwrt kernel : Linux MikRB-WRT2011 4.14.167 #0 Wed Jan 29 16:05:35 2020 mips GNU/Linux
openwrt version : openwrt 19.07.1

Which is the name of the driver for the touchscreen ?
The Easybox 904xDSL have a touchscreen too, here you need:

1 Like

Touchscreen looks like an Sitronix ST7735, on the SPI bus.
I've managed to compile a kernel with the st7735r module, but could never figure out what the correct SPI settings/address/etc was to get anything to display on the screen.

1 Like