rmainz@vm ~ $ microcom -p /dev/ttyUSB0 connected to /dev/ttyUSB0 Escape character: Ctrl-\ Type the escape character followed by c to get to the menu or q to quit barebox 2019.07.0-20190911-1-EAG_3.01-g4d7b156 #1 Mon Nov 25 15:12:14 CET 2019 Board: Eckelmann AG ECU01 mdio_bus: miibus0: probed nand: ONFI flash detected nand: NAND device: Manufacturer ID: 0x2c, Chip ID: 0xb1 (Micron MT29F1G16ABBEAH4), 128MiB, page size: 2048, OOB size: 64 Bad block table found at page 65472, version 0x01 Bad block table found at page 65408, version 0x01 imx-usb 53ff4400.usb@53ff4400.of: USB EHCI 1.00 imxfb imxfb: i.MX Framebuffer driver registered as fbconsole0 malloc space: 0x83e7de60 -> 0x87cfbcbf (size 62.5 MiB) running /env/bin/init... Check if Memory is flashbased ... __PASS__ Hit CTRL-C to stop autoboot: 0 __DEVELOPER_MODE__ENABLED__ nv variable modified, will save nv variables on shutdown usb: USB: scanning bus for devices... usb: 1 USB Device(s) found usb: USB: scanning bus for devices... usb: 1 USB Device(s) found running automount command 'usb && if [ -e /dev/disk0.0 ]; then mount /dev/disk0.0 /mnt/usbstorage; elif [ -e /dev/disk0 ]; then mount /dev/disk0 /mnt/usbstorage; fi' failed usb: USB: scanning bus for devices... usb: 1 USB Device(s) found running automount command 'usb && if [ -e /dev/disk0.0 ]; then mount /dev/disk0.0 /mnt/usbstorage; elif [ -e /dev/disk0 ]; then mount /dev/disk0 /mnt/usbstorage; fi' failed Booting entry 'nand' ubi0: scanning is finished ubi0 warning: print_rsvd_warning: cannot reserve enough PEBs for bad PEB handling, reserved 6, need 20 ubi0: registering /dev/nand0.root.ubi ubi0: registering root as /dev/nand0.root.ubi.root ubi0: attached mtd0 (name "nand0.root", size 80 MiB) to ubi0 ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 512 ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096 ubi0: good PEBs: 640, bad PEBs: 0, corrupted PEBs: 0 ubi0: user volume: 1, internal volumes: 1, max. volumes count: 128 ubi0: max/mean erase counter: 104/69, WL threshold: 4096, image sequence number: 24185 ubi0: available PEBs: 0, total reserved PEBs: 640, PEBs reserved for bad PEB handling: 6 UBIFS (ubi0:0): UBIFS: mounted UBI device 0, volume 0, name "root", R/O mode UBIFS (ubi0:0): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes UBIFS (ubi0:0): FS size: 78344192 bytes (74 MiB, 617 LEBs), journal size 9023488 bytes (8 MiB, 72 LEBs) UBIFS (ubi0:0): reserved for root: 0 bytes (0 KiB) UBIFS (ubi0:0): media format: w4/r0 (latest is w5/r0), UUID 843efdb8, small LPT model usb: USB: scanning bus for devices... usb: 1 USB Device(s) found running automount command 'usb && if [ -e /dev/disk0.0 ]; then mount /dev/disk0.0 /mnt/usbstorage; elif [ -e /dev/disk0 ]; then mount /dev/disk0 /mnt/usbstorage; fi' failed Loading ARM Linux zImage '/mnt/nand0-root/boot/zImage' commandline: console=ttymxc4,115200n consoleblank=0 lpj=995328 mtdparts=mxc_nand:1024k(barebox),1024k(bareboxenv),2432k(history),80M(root),-(var) vt.global_cursor_default=0 ro root=ubi0_0 rootfstype=ubifs ubi.mtd=3,2048 arch_number: 8017 nv variables modified, saving them Booting Linux on physical CPU 0x0 Initializing cgroup subsys cpuset Initializing cgroup subsys cpu Initializing cgroup subsys cpuacct Linux version 3.10.108-rt123-g9de6c66 (rmainz@vm) (gcc version 4.7.2 (OSELAS.Toolchain-2012.12.0) ) #1 PREEMPT RT Tue Dec 17 14:55:12 CET 2019 CPU: ARM926EJ-S [41069264] revision 4 (ARMv5TEJ), cr=00053177 CPU: VIVT data cache, VIVT instruction cache Machine: Eckelmann ECU01 Memory policy: ECC disabled, Data cache writeback Built 1 zonelists in Zone order, mobility grouping on. Total pages: 32512 Kernel command line: console=ttymxc4,115200n consoleblank=0 lpj=995328 mtdparts=mxc_nand:1024k(barebox),1024k(bareboxenv),2432k(history),80M(root),-(var) vt.global_cursor_default=0 ro root=ubi0_0 rootfstype=ubifs ubi.mtd=3,2048 PID hash table entries: 512 (order: -1, 2048 bytes) Dentry cache hash table entries: 16384 (order: 4, 65536 bytes) Inode-cache hash table entries: 8192 (order: 3, 32768 bytes) Memory: 128MB = 128MB total Memory: 123252k/123252k available, 7820k reserved, 0K highmem Virtual kernel memory layout: vector : 0xffff0000 - 0xffff1000 ( 4 kB) fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB) vmalloc : 0xc8800000 - 0xff000000 ( 872 MB) lowmem : 0xc0000000 - 0xc8000000 ( 128 MB) modules : 0xbf000000 - 0xc0000000 ( 16 MB) .text : 0xc0008000 - 0xc05d7eac (5952 kB) .init : 0xc05d8000 - 0xc06119e4 ( 231 kB) .data : 0xc0612000 - 0xc064c8a0 ( 235 kB) .bss : 0xc064c8a0 - 0xc067e978 ( 201 kB) SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1 Preemptible hierarchical RCU implementation. Dump stacks of tasks blocking RCU-preempt GP. NR_IRQS:16 nr_irqs:16 16 MXC IRQ initialized sched_clock: 32 bits at 66MHz, resolution 15ns, wraps every 64585ms Console: colour dummy device 80x30 Calibrating delay loop (skipped) preset value.. 398.13 BogoMIPS (lpj=995328) pid_max: default: 32768 minimum: 301 Mount-cache hash table entries: 512 Initializing cgroup subsys freezer Initializing cgroup subsys blkio CPU: Testing write buffer coherency: ok Setting up static identity map for 0xc0484488 - 0xc04844e0 devtmpfs: initialized NET: Registered protocol family 16 DMA: preallocated 256 KiB pool for atomic coherent allocations bio: create slab at 0 SCSI subsystem initialized usbcore: registered new interface driver usbfs usbcore: registered new interface driver hub usbcore: registered new device driver usb i2c i2c-0: IMX I2C adapter registered pps_core: LinuxPPS API ver. 1 registered pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti PTP clock support registered cfg80211: Calling CRDA to update world regulatory domain Switching to clocksource mxc_timer1 NET: Registered protocol family 2 TCP established hash table entries: 1024 (order: 1, 8192 bytes) TCP bind hash table entries: 1024 (order: 2, 24576 bytes) TCP: Hash tables configured (established 1024 bind 1024) TCP: reno registered UDP hash table entries: 256 (order: 2, 16384 bytes) UDP-Lite hash table entries: 256 (order: 2, 16384 bytes) NET: Registered protocol family 1 RPC: Registered named UNIX socket transport module. RPC: Registered udp transport module. RPC: Registered tcp transport module. RPC: Registered tcp NFSv4.1 backchannel transport module. NFS: Registering the id_resolver key type Key type id_resolver registered Key type id_legacy registered msgmni has been set to 240 Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250) io scheduler noop registered io scheduler cfq registered (default) imx-fb imx21-fb.0: i.MX Framebuffer driver Console: switching to colour frame buffer device 40x30 imx-sdma imx35-sdma: initialized Serial: IMX driver imx21-uart.1: ttymxc1 at MMIO 0x43f94000 (irq = 48) is a IMX imx21-uart.4: ttymxc4 at MMIO 0x5002c000 (irq = 56) is a IMX console [ttymxc4] enabled loop: module loaded Trying ONFI probe in 16 bits mode, aborting ! NAND device: Manufacturer ID: 0x2c, Chip ID: 0xb1 (Micron NAND 128MiB 1,8V 16-bit), 128MiB, page size: 2048, OOB size: 64 Scanning device for bad blocks Bad eraseblock 1022 at 0x000007fc0000 Bad eraseblock 1023 at 0x000007fe0000 5 cmdlinepart partitions found on MTD device mxc_nand Creating 5 MTD partitions on "mxc_nand": 0x000000000000-0x000000100000 : "barebox" 0x000000100000-0x000000200000 : "bareboxenv" 0x000000200000-0x000000460000 : "history" 0x000000460000-0x000005460000 : "root" 0x000005460000-0x000008000000 : "var" spi_imx imx35-cspi.0: master is unqueued, this is deprecated spi_imx imx35-cspi.0: probed spi_imx imx35-cspi.1: master is unqueued, this is deprecated spi_imx imx35-cspi.1: probed fec imx25-fec.0 (unregistered net_device): Invalid MAC address: 00:00:00:00:00:00 fec imx25-fec.0 (unregistered net_device): Using random MAC address: 72:d7:26:a3:2f:e8 libphy: fec_enet_mii_bus: probed usbcore: registered new interface driver rtl8192cu usbcore: registered new interface driver rt2800usb ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver ehci-mxc: Freescale On-Chip EHCI Host driver mxc-ehci mxc-ehci.1: EHCI Host Controller mxc-ehci mxc-ehci.1: new USB bus registered, assigned bus number 1 mxc-ehci mxc-ehci.1: irq 51, io mem 0x53ff4400 mxc-ehci mxc-ehci.1: USB 2.0 started, EHCI 1.00 usb usb1: New USB device found, idVendor=1d6b, idProduct=0002 usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1 usb usb1: Product: EHCI Host Controller usb usb1: Manufacturer: Linux 3.10.108-rt123-g9de6c66 ehci_hcd usb usb1: SerialNumber: mxc-ehci.1 hub 1-0:1.0: USB hub found hub 1-0:1.0: 1 port detected usbcore: registered new interface driver usb-storage input: imx-keypad as /devices/platform/imx-keypad/input/input0 rtc-pcf2123 spi1.0: chip found, driver version 0.6 rtc-pcf2123 spi1.0: spiclk 4000 KHz. rtc-pcf2123 spi1.0: rtc core: registered rtc-pcf2123 as rtc0 i2c /dev entries driver cpuidle: using governor ladder sdhci: Secure Digital Host Controller Interface driver sdhci: Copyright(c) Pierre Ossman sdhci-pltfm: SDHCI platform and OF driver helper usbcore: registered new interface driver usbhid usbhid: USB HID core driver TCP: cubic registered NET: Registered protocol family 10 sit: IPv6 over IPv4 tunneling driver NET: Registered protocol family 17 Key type dns_resolver registered UBI: attaching mtd3 to ubi0 UBI: scanning is finished UBI warning: print_rsvd_warning: cannot reserve enough PEBs for bad PEB handling, reserved 8, need 20 UBI: attached mtd3 (name "root", size 80 MiB) to ubi0 UBI: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes UBI: min./max. I/O unit sizes: 2048/2048, sub-page size 512 UBI: VID header offset: 2048 (aligned 2048), data offset: 4096 UBI: good PEBs: 640, bad PEBs: 0, corrupted PEBs: 0 UBI: user volume: 1, internal volumes: 1, max. volumes count: 128 UBI: max/mean erase counter: 104/69, WL threshold: 4096, image sequence number: 24185 UBI: available PEBs: 0, total reserved PEBs: 640, PEBs reserved for bad PEB handling: 8 UBI: background thread "ubi_bgt0d" started, PID 564 rtc-pcf2123 spi1.0: setting system clock to 2020-01-02 10:55:00 UTC (1577962500) UBIFS: mounted UBI device 0, volume 0, name "root", R/O mode UBIFS: LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes UBIFS: FS size: 78344192 bytes (74 MiB, 617 LEBs), journal size 9023488 bytes (8 MiB, 72 LEBs) UBIFS: reserved for root: 0 bytes (0 KiB) UBIFS: media format: w4/r0 (latest is w4/r0), UUID CCA32AB6-CBD9-481A-8B39-705ED27E195D, small LPT model VFS: Mounted root (ubifs filesystem) readonly on device 0:12. devtmpfs: mounted Freeing unused kernel memory: 228K systemd[1]: systemd 204 running in system mode. (-PAM +LIBWRAP -AUDIT -SELINUX -IMA -SYSVINIT -LIBCRYPTSETUP -GCRYPT -ACL -XZ) Welcome to PTXdist / EAG-ecu01! systemd[1]: Set hostname to . systemd[1]: Cannot add dependency job for unit display-manager.service, ignoring: Unit display-manager.service failed to load: No such file or directory. See system logs and 'systemctl status display-manager.service' for details. systemd[1]: Starting Forward Password Requests to Wall Directory Watch. systemd[1]: Started Forward Password Requests to Wall Directory Watch. systemd[1]: Expecting device dev-ttymxc4.device... Expecting device dev-ttymxc4.device... systemd[1]: Starting Remote File Systems. [ OK ] Reached target Remote File Systems. systemd[1]: Reached target Remote File Systems. systemd[1]: Starting Timers. [ OK ] Reached target Timers. systemd[1]: Reached target Timers. systemd[1]: Starting Delayed Shutdown Socket. [ OK ] Listening on Delayed Shutdown Socket. systemd[1]: Listening on Delayed Shutdown Socket. systemd[1]: Starting /dev/initctl Compatibility Named Pipe. [ OK ] Listening on /dev/initctl Compatibility Named Pipe. systemd[1]: Listening on /dev/initctl Compatibility Named Pipe. systemd[1]: Starting Dispatch Password Requests to Console Directory Watch. systemd[1]: Started Dispatch Password Requests to Console Directory Watch. systemd[1]: Starting Paths. [ OK ] Reached target Paths. systemd[1]: Reached target Paths. systemd[1]: Starting udev Kernel Socket. [ OK ] Listening on udev Kernel Socket. systemd[1]: Listening on udev Kernel Socket. systemd[1]: Starting udev Control Socket. [ OK ] Listening on udev Control Socket. systemd[1]: Listening on udev Control Socket. systemd[1]: Starting Journal Socket. [ OK ] Listening on Journal Socket. systemd[1]: Listening on Journal Socket. systemd[1]: Starting udev Coldplug TTY Devices for Getty... Starting udev Coldplug TTY Devices for Getty... systemd[1]: Starting Apply Kernel Variables... Starting Apply Kernel Variables... systemd[1]: Starting Journal Service... Starting Journal Service... [ OK ] Started Journal Service. systemd[1]: Started Journal Service. systemd[1]: Starting Load Kernel Modules... Starting Load Kernel Modules... systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point. systemd[1]: Started Set Up Additional Binary Formats. systemd[1]: Starting Create static device nodes in /dev... Starting Create static device nodes in /dev... systemd[1]: Starting Attach data ubi partition... Starting Attach data ubi partition... systemd[1]: Starting File System Check on Root Device... Starting File System Check on Root Device... [ OK ] Started Apply Kernel Variables. UBI: attaching mtd4 to ubi1 [ OK ] Started File System Check on Root Device. Starting Remount Root and Kernel File Systems... systemd-journald[587]: Failed to resolve 'systemd-journal' group: No such process ads7953_init [ OK ] Started udev Coldplug TTY Devices for Getty. [ OK ] Started Create static device nodes in /dev. Starting udev Kernel Device Manager... mmc_init() called qa_driver_init() called systemd-modules-load[590]: Inserted module 'qadriver' systemd-udevd[623]: starting version 204 [ OK ] Started udev Kernel Device Manager. [ OK ] Started Remount Root and Kernel File Systems. [ OK ] Reached target Local File Systems (Pre). Mounting /var/tmp... Mounting /var/lock... Mounting /var/run... Mounting /var/log... Mounting /var/lib... Mounting /media... Mounting /tmp... [ OK ] Mounted /var/tmp. [ OK ] Mounted /var/lock. [ OK ] Mounted /var/lib. [ OK ] Mounted /var/log. [ OK ] Mounted /var/run. [ OK ] Mounted /tmp. [ OK ] Mounted /media. UBI: scanning is finished UBI: attached mtd4 (name "var", size 43 MiB) to ubi1 UBI: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes UBI: min./max. I/O unit sizes: 2048/2048, sub-page size 512 UBI: VID header offset: 2048 (aligned 2048), data offset: 4096 UBI: good PEBs: 347, bad PEBs: 2, corrupted PEBs: 0 UBI: user volume: 2, internal volumes: 1, max. volumes count: 128 UBI: max/mean erase counter: 79/42, WL threshold: 4096, image sequence number: 48 UBI: available PEBs: 87, total reserved PEBs: 260, PEBs reserved for bad PEB handling: 18 UBI: background thread "ubi_bgt1d" started, PID 678 [ OK ] Started Attach data ubi partition. Starting Check and create ubi partitions... [ OK ] Found device /dev/ttymxc4. [ OK ] Started Check and create ubi partitions. Mounting Mount /var/stat partition... Mounting Mount /var/dyn partition... UBIFS: background thread "ubifs_bgt1_1" started, PID 698 UBIFS: background thread "ubifs_bgt1_0" started, PID 699 RTW: rtl8188eu v5.2.2.4_25483.20171222 RTW: build time: Dec 17 2019 14:59:14 usbcore: registered new interface driver rtl8188eu [ OK ] Started Load Kernel Modules. UBIFS: mounted UBI device 1, volume 1, name "stat" UBIFS: LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes UBIFS: FS size: 13840384 bytes (13 MiB, 109 LEBs), journal size 1015809 bytes (0 MiB, 6 LEBs) UBIFS: reserved for root: 653715 bytes (638 KiB) UBIFS: media format: w4/r0 (latest is w4/r0), UUID E80C166F-06CC-4970-BC1D-F90E77A0FE3B, small LPT model UBIFS: mounted UBI device 1, volume 0, name "dyn" [ OK UBIFS: LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes ] Mounted Mount /var/stat partition. UBIFS: FS size: 13840384 bytes (13 MiB, 109 LEBs), journal size 1015809 bytes (0 MiB, 6 LEBs) UBIFS: reserved for root: 653715 bytes (638 KiB) UBIFS: media format: w4/r0 (latest is w4/r0), UUID 30205726-B785-418B-A836-DB1A7803510D, small LPT model [ OK ] Mounted Mount /var/dyn partition. [ OK ] Reached target Local File Systems. Starting Recreate Volatile Files and Directories... [ OK ] Started Recreate Volatile Files and Directories. [ OK ] Reached target System Initialization. [ OK ] Listening on sshd.socket. [ OK ] Listening on D-Bus System Message Bus Socket. [ OK ] Reached target Sockets. [ OK ] Reached target Basic System. Starting Backup service for configuration in /etc... [ OK ] Started Backup service for configuration in /etc. Starting Mark kernel activated network interfaces as up... Starting Serial Getty on ttymxc4... [ OK ] Started Serial Getty on ttymxc4. [ OK ] Reached target Login Prompts. Starting D-Bus System Message Bus... [ OK ] Started D-Bus System Message Bus. Starting udev Trigger all Massstorage Devices... [ OK ] Started udev Trigger all Massstorage Devices. imx-sdma imx35-sdma: firmware not found [ OK ] Started Mark kernel activated network interfaces as up. Starting Handle network interface with ifup/ifdown... fec imx25-fec.0 eth0: no PHY, assuming direct connection to switch libphy: PHY fixed-0:00 not found fec imx25-fec.0 eth0: could not attach to PHY [FAILED] Failed to start Handle network interface with ifup/ifdown. See 'systemctl status ifupdown.service' for details. [ OK ] Reached target Network. [ OK ] Reached target Multi-User System. [ OK ] Reached target Graphical Interface. Starting Say Goodbye to user at Shutdown... Starting CoDeSys 3 runtime... [ OK ] Started Say Goodbye to user at Shutdown. _____ _ ____ | ____| / ` / ___| | _| / _ `| | _ | |___ / ___ ` |_| | |_____/_/ `_`____| ___ _ ___ ___ _ _ / _ `/ | / _ `/ __| | | | | | | | | __/ (__| |_| | |_| | | `___|`___|`__,_|`___/|_| OSELAS(R)-ecu01-V3.1.10 / ecu01-2012.10.0 ptxdist-2012.10.0/2019-12-15T17:38:41+0100 ecu01 login: [ OK ] Started CoDeSys 3 runtime. [ OK ] Reached target Application Mode. qa_mmc_open() ecu01-mmc: pin PIN_V_NAMUR_VALID = 0 ecu01-mmc: running in WALTERSCHEID mode (12 volt signals). ecu01-compcap: irq=70/70, changed interrupt thread pid=811 to 'SCHED_FIFO'/rtprio=95 ecu01-compcap: irq=69/69, changed interrupt thread pid=817 to 'SCHED_FIFO'/rtprio=95 ecu01-compcap: irq=17/17, changed interrupt thread pid=818 to 'SCHED_FIFO'/rtprio=95 qa_mmc_release() qa_mmc_open() ecu01-compcap: irq=70/70, changed interrupt thread pid=819 to 'SCHED_FIFO'/rtprio=95 ecu01-compcap: irq=69/69, changed interrupt thread pid=820 to 'SCHED_FIFO'/rtprio=95 ecu01-compcap: irq=17/17, changed interrupt thread pid=821 to 'SCHED_FIFO'/rtprio=95 UBIFS: background thread "ubifs_bgt0_0" started, PID 837 UBIFS: background thread "ubifs_bgt0_0" stops _____ _ ____ | ____| / ` / ___| | _| / _ `| | _ | |___ / ___ ` |_| | |_____/_/ `_`____| ___ _ ___ ___ _ _ / _ `/ | / _ `/ __| | | | | | | | | __/ (__| |_| | |_| | | `___|`___|`__,_|`___/|_| OSELAS(R)-ecu01-V3.1.10 / ecu01-2012.10.0 ptxdist-2012.10.0/2019-12-15T17:38:41+0100 ecu01 login: root Password: ## Running /etc/profile ... running /etc/profile.local Loading /usr/share/keymaps/i386/qwertz/de.map.gz # Running /etc/bash.bashrc ... root 10:55:35 : ~ # root 10:55:36 : ~ # cat /sys/class/tty/console/bind cat: can't open '/sys/class/tty/console/bind': No such file or directory root 10:55:50 : ~ # cat /sys/class/tty/console/ active dev power/ subsystem/ uevent root 10:55:50 : ~ # cat /sys/class/tty/console/active ttymxc4 root 10:55:57 : ~ # cd /sys/class/vtconsole/vtcon vtcon0/ vtcon1/ root 10:55:57 : ~ # cd /sys/class/vtconsole/vtcon vtcon0/ vtcon1/ root 10:55:57 : ~ # cd /sys/class/vtconsole/vtcon0 root 10:56:14 : /sys/class/vtconsole/vtcon0 # ls -la total 0 drwxr-xr-x 3 root root 0 Jan 2 10:56 . drwxr-xr-x 4 root root 0 Jan 2 10:56 .. -rw-r--r-- 1 root root 4096 Jan 2 10:56 bind -r--r--r-- 1 root root 4096 Jan 2 10:56 name drwxr-xr-x 2 root root 0 Jan 2 10:56 power lrwxrwxrwx 1 root root 0 Jan 2 10:56 subsystem -> ../../../../class/vtconsole -rw-r--r-- 1 root root 4096 Jan 2 10:56 uevent root 10:56:15 : /sys/class/vtconsole/vtcon0 # cat bind 0 root 10:56:20 : /sys/class/vtconsole/vtcon0 # echo 1 >bind root 10:56:24 : /sys/class/vtconsole/vtcon0 # cat bind 0 root 10:56:29 : /sys/class/vtconsole/vtcon0 # (reverse-i-search)`c': cat bind root 10:56:33 : /sys/class/vtconsole/vtcon0 # root 10:56:33 : /sys/class/vtconsole/vtcon0 # oot 10:56:34 : /sys/class/vtconsole/vtcon0 # systemctl s 10:56:34 : /sys/class/vtconsole/vtcon0 # systemctl stop codesys3-rt.service UBIFS: background thread "ubifs_bgt0_0" started, PID 860 UBIFS: background thread "ubifs_bgt0_0" stops qa_mmc_release() root 10:56:39 : /sys/class/vtconsole/vtcon0 # cat bind root 10:56:42 : /sys/class/vtconsole/vtcon0 # echo 1 >bind root 10:56:45 : /sys/class/vtconsole/vtcon0 # cat bind 0 root 10:56:49 : /sys/class/vtconsole/vtcon0 # v valgrind vi vim vmstat root 10:56:49 : /sys/class/vtconsole/vtcon0 # cd ../*1 root 10:57:25 : /sys/class/vtconsole/vtcon1 # ls -la total 0 drwxr-xr-x 3 root root 0 Jan 2 10:56 . drwxr-xr-x 4 root root 0 Jan 2 10:56 .. -rw-r--r-- 1 root root 4096 Jan 2 10:57 bind -r--r--r-- 1 root root 4096 Jan 2 10:57 name drwxr-xr-x 2 root root 0 Jan 2 10:57 power lrwxrwxrwx 1 root root 0 Jan 2 10:57 subsystem -> ../../../../class/vtconsole -rw-r--r-- 1 root root 4096 Jan 2 10:57 uevent root 10:57:26 : /sys/class/vtconsole/vtcon1 # echo 1 >bind root 10:57:30 : /sys/class/vtconsole/vtcon1 # cat bind 1 root 10:57:34 : /sys/class/vtconsole/vtcon1 # cat name (M) frame buffer device root 10:57:45 : /sys/class/vtconsole/vtcon1 # ls -l subsystem/vtcon vtcon0/ vtcon1/ root 10:57:45 : /sys/class/vtconsole/vtcon1 # root 10:57:58 : /sys/class/vtconsole/vtcon1 # modprobe fbcon modprobe: module fbcon not found in modules.dep root 10:58:53 : /sys/class/vtconsole/vtcon1 # modprobe fbconsole modprobe: module fbconsole not found in modules.dep root 10:58:56 : /sys/class/vtconsole/vtcon1 # lsmod Module Size Used by 8188eu 1480087 0 qadriver 2240 0 power_button 2873 0 ecu01_motor_ctl 5183 0 ecu01_mmc 3953 0 ecu01_comp_cap 8120 1 ecu01_mmc ads7953 2698 0 root 10:59:00 : /sys/class/vtconsole/vtcon1 # lsmod -h Module Size Used by 8188eu 1480087 0 qadriver 2240 0 power_button 2873 0 ecu01_motor_ctl 5183 0 ecu01_mmc 3953 0 ecu01_comp_cap 8120 1 ecu01_mmc ads7953 2698 0 root 10:59:03 : /sys/class/vtconsole/vtcon1 # lsmod --help BusyBox v1.20.1 (2019-12-17 15:35:25 CET) multi-call binary. Usage: lsmod List the currently loaded kernel modules root 10:59:07 : /sys/class/vtconsole/vtcon1 # mod modinfo modprobe root 10:59:07 : /sys/class/vtconsole/vtcon1 # modinfo BusyBox v1.20.1 (2019-12-17 15:35:25 CET) multi-call binary. Usage: modinfo [-adlp0] [-F keyword] MODULE -a Shortcut for '-F author' -d Shortcut for '-F description' -l Shortcut for '-F license' -p Shortcut for '-F parm' -F keyword Keyword to look for -0 Separate output with NULs root 10:59:15 : /sys/class/vtconsole/vtcon1 # modinfo fbconsole filename: fbconsole root 10:59:24 : /sys/class/vtconsole/vtcon1 # modinfo fbcon filename: fbcon root 10:59:28 : /sys/class/vtconsole/vtcon1 # modinfo blablabugger filename: blablabugger root 10:59:33 : /sys/class/vtconsole/vtcon1 # ls -l /dev/tty tty tty16 tty24 tty32 tty40 tty49 tty57 tty8 tty0 tty17 tty25 tty33 tty41 tty5 tty58 tty9 tty1 tty18 tty26 tty34 tty42 tty50 tty59 ttyS1 tty10 tty19 tty27 tty35 tty43 tty51 tty6 ttyS4 tty11 tty2 tty28 tty36 tty44 tty52 tty60 ttymxc1 tty12 tty20 tty29 tty37 tty45 tty53 tty61 ttymxc4 tty13 tty21 tty3 tty38 tty46 tty54 tty62 tty14 tty22 tty30 tty39 tty47 tty55 tty63 tty15 tty23 tty31 tty4 tty48 tty56 tty7 root 10:59:33 : /sys/class/vtconsole/vtcon1 # ls -l /dev/tty root 11:00:10 : /sys/class/vtconsole/vtcon1 # root 11:00:10 : /sys/class/vtconsole/vtcon1 # root 11:00:11 : /sys/class/vtconsole/vtcon1 # dmesg | fgrep fb imx-fb imx21-fb.0: i.MX Framebuffer driver root 11:00:17 : /sys/class/vtconsole/vtcon1 # dmesg | fgrep -i fb imx-fb imx21-fb.0: i.MX Framebuffer driver root 11:00:28 : /sys/class/vtconsole/vtcon1 # ls -l /boot/ total 4200 -rw-r----- 1 root root 77878 Dec 15 16:53 bootspl.bmp -rw-r----- 1 root root 228422 Dec 15 16:53 prebox-qaV2.img -rw-r----- 1 root root 230415 Dec 15 16:53 shutdownspl.ppm -rw-r----- 1 root root 230443 Dec 15 16:53 update_start.ppm -rw-r----- 1 root root 230415 Dec 15 16:53 update_stick.ppm -rw-r--r-- 1 root root 3285840 Dec 17 13:55 zImage root 11:00:34 : /sys/class/vtconsole/vtcon1 # file /boot/zImage /boot/zImage: Linux kernel ARM boot executable zImage (little-endian) root 11:00:52 : /sys/class/vtconsole/vtcon1 # file -k /boot/zImage /boot/zImage: Linux kernel ARM boot executable zImage (little-endian) root 11:01:01 : /sys/class/vtconsole/vtcon1 # modprobe fbcon modprobe: module fbcon not found in modules.dep root 11:01:46 : /sys/class/vtconsole/vtcon1 # cat /proc/fb 0 IMX root 11:05:02 : /sys/class/vtconsole/vtcon1 # history | fgrep cons 501 cat /sys/class/tty/console/bind 502 cat /sys/class/tty/console/active 503 cd /sys/class/vtconsole/vtcon0 518 modprobe fbconsole 523 modinfo fbconsole 533 history | fgrep cons root 11:34:33 : /sys/class/vtconsole/vtcon1 # cd .. root 11:34:44 : /sys/class/vtconsole # cd .. root 11:34:44 : /sys/class # cd .. root 11:34:45 : /sys # find . -name \*blank\* ./devices/platform/imx21-fb.0/graphics/fb0/blank ./module/kernel/parameters/consoleblank root 11:34:54 : /sys # cat ./devices/platform/imx21-fb.0/graphics/fb0/blank root 11:35:04 : /sys # ls -l ./devices/platform/imx21-fb.0/graphics/fb0/blank -rw-r--r-- 1 root root 4096 Jan 2 11:34 ./devices/platform/imx21-fb.0/graphics/foot 11:35:08 : /sys # echo 0 > root 11:35:08 : /sys # echo 0 > ./devices/platform/imx21-fb.0/graphics/fb0/blank root 11:35:18 : /sys # root 11:35:20 : /sys # root 11:35:20 : /sys # echo 0 > ./devices/platform/imx21-fb.0/graphics/fb0/blank root 11:35:24 : /sys # root 11:35:24 : /sys # root 11:35:24 : /sys # oot 11:35:25 : /sys # eval "$(/usr/bin/resize)" ; stty cols $C:25 : /sys # eval "$(/usr/bin/resize)" ; stty cols $COLUMNS rows $LINESrse-i-search)`s': echo 0 > ./devices/platform/imLINES ; kill -s WINCH -$$: eval "$(/usr/bin/resize)" ; stty cols $COLUMNS rows $L root 11:35:34 : /sys # root 11:35:35 : /sys # root 11:35:35 : /sys # ls -l ./devices/platform/imx21-fb.0/graphics/fb0/ total 0 -rw-r--r-- 1 root root 4096 Jan 2 11:34 bits_per_pixel -rw-r--r-- 1 root root 4096 Jan 2 11:35 blank -rw-r--r-- 1 root root 4096 Jan 2 11:34 console -rw-r--r-- 1 root root 4096 Jan 2 11:34 cursor -r--r--r-- 1 root root 4096 Jan 2 11:34 dev lrwxrwxrwx 1 root root 0 Jan 2 11:34 device -> ../../../imx21-fb.0 -rw-r--r-- 1 root root 4096 Jan 2 11:34 mode -rw-r--r-- 1 root root 4096 Jan 2 11:34 modes -r--r--r-- 1 root root 4096 Jan 2 11:34 name -rw-r--r-- 1 root root 4096 Jan 2 11:34 pan drwxr-xr-x 2 root root 0 Jan 2 11:34 power -rw-r--r-- 1 root root 4096 Jan 2 11:34 rotate -rw-r--r-- 1 root root 4096 Jan 2 11:34 state -r--r--r-- 1 root root 4096 Jan 2 11:34 stride lrwxrwxrwx 1 root root 0 Jan 2 11:34 subsystem -> ../../../../../class/graphics -rw-r--r-- 1 root root 4096 Jan 2 11:34 uevent -rw-r--r-- 1 root root 4096 Jan 2 11:34 virtual_size root 11:35:46 : /sys # cat ./devices/platform/imx21-fb.0/graphics/fb0/console root 11:35:59 : /sys # echo hello >./devices/platform/imx21-fb.0/graphics/fb0/console Enter command. Try 'help' for a list of builtin commands -> break ---------------------- call_poweroff_cmd(): starting power-down sequence... Stopping Say Goodbye to user at Shutdown... Stopping Mark kernel activated network interfaces as up... [ OK ] Stopped Mark kernel activated network interfaces as up. [ OK ] Stopped target Application Mode. [ OK ] Stopped target Graphical Interface. Stopping Backup service for configuration in /etc... [ OK ] Stopped Backup service for configuration in /etc. [ OK ] Stopped Say Goodbye to user at Shutdown. [ OK ] Stopped target Multi-User System. [ OK ] Stopped target Remote File Systems. Stopping D-Bus System Message Bus... [ OK ] Stopped target Network. [ OK ] Stopped target Login Prompts. Stopping Serial Getty on ttymxc4... [ OK ] Stopped D-Bus System Message Bus. [ OK ] Stopped Serial Getty on ttymxc4. [ OK ] Stopped target Basic System. [ OK ] Stopped target Paths. [ OK ] Stopped target Timers. [ OK ] Stopped target Sockets. [ OK ] Closed /dev/initctl Compatibility Named Pipe. [ OK ] Closed sshd.socket. [ OK ] Closed Delayed Shutdown Socket. [ OK ] Closed D-Bus System Message Bus Socket. [ OK ] Closed udev Control Socket. [ OK ] Stopped target System Initialization. Stopping Load Kernel Modules... [ OK ] Stopped Load Kernel Modules. Stopping Apply Kernel Variables... [ OK ] Stopped Apply Kernel Variables. [ OK ] Stopped target Local File Systems. Unmounting /var/tmp... Unmounting /var/lock... Unmounting /var/run... Unmounting /var/log... Unmounting /var/lib... Unmounting /media... Unmounting /tmp... Unmounting Mount /var/stat partition... Unmounting Mount /var/dyn partition... Stopping Journal Service... [ OK ] Unmounted /var/tmp. systemd[1]: Unmounted /var/tmp. [ OK ] Unmounted /var/lock. systemd[1]: Unmounted /var/lock. [ OK ] Unmounted /var/run. systemd[1]: Unmounted /var/run. UBIFS: un-mount UBI device 1, volume 0 UBIFS: background thread "ubifs_bgt1_0" stops UBIFS: un-mount UBI device 1, volume 1 [ OK UBIFS: background thread "ubifs_bgt1_1" stops ] Unmounted /var/log. systemd[1]: Unmounted /var/log. [ OK ] Unmounted /var/lib. systemd[1]: Unmounted /var/lib. [ OK ] Unmounted /media. systemd[1]: Unmounted /media. [ OK ] Unmounted /tmp. systemd[1]: Unmounted /tmp. [ OK ] Unmounted Mount /var/stat partition. systemd[1]: Unmounted Mount /var/stat partition. [ OK ] Unmounted Mount /var/dyn partition. systemd[1]: Unmounted Mount /var/dyn partition. systemd[1]: Stopping Check and create ubi partitions... Stopping Check and create ubi partitions... systemd-journald[587]: Received SIGTERM [ OK ] Stopped Check and create ubi partitions. systemd[1]: Stopped Check and create ubi partitions. systemd[1]: Stopping Attach data ubi partition... Stopping Attach data ubi partition... systemd[1]: Starting Unmount All Filesystems. [ OK ] Reached target Unmount All Filesystems. systemd[1]: Reached target Unmount All Filesystems. systemd[1]: Stopping Local File Systems (Pre). [ OK ] Stopped target Local File Systems (Pre). systemd[1]: Stopped target Local File Systems (Pre). systemd[1]: Stopping Remount Root and Kernel File Systems... Stopping Remount Root and Kernel File Systems... UBI: detaching mtd4 from ubi1 [ OK ] Stopped Remount Root and Kernel File Systems. UBI: mtd4 is detached from ubi1 systemd[1]: Stopped Remount Root and Kernel File Systems. [ OK ] Stopped Journal Service. systemd[1]: Stopped Journal Service. [ OK ] Stopped Attach data ubi partition. systemd[1]: Stopped Attach data ubi partition. systemd[1]: Starting Shutdown. [ OK ] Reached target Shutdown. systemd[1]: Reached target Shutdown. systemd[1]: Starting Final Step. systemd[1]: Reached target Final Step. systemd[1]: Stopping Journal Socket. systemd[1]: Closed Journal Socket. systemd[1]: Starting Reboot... systemd[1]: Unmounting /... systemd[1]: Unmounted /. systemd[1]: Shutting down. Sending SIGTERM to remaining processes... Sending SIGKILL to remaining processes... Unmounting file systems. All filesystems unmounted. Deactivating swaps. All swaps deactivated. Detaching loop devices. All loop devices detached. Detaching DM devices. All DM deRestarting system. v? barebox 2019.07.0-20190911-1-EAG_3.01-g4d7b156 #1 Mon Nov 25 15:12:14 CET 2019 Board: Eckelmann AG ECU01 mdio_bus: miibus0: probed nand: ONFI flash detected nand: NAND device: Manufacturer ID: 0x2c, Chip ID: 0xb1 (Micron MT29F1G16ABBEAH4), 128MiB, page size: 2048, OOB size: 64 Bad block table found at page 65472, version 0x01 Bad block table found at page 65408, version 0x01 imx-usb 53ff4400.usb@53ff4400.of: USB EHCI 1.00 imxfb imxfb: i.MX Framebuffer driver registered as fbconsole0 malloc space: 0x83e7de60 -> 0x87cfbcbf (size 62.5 MiB) running /env/bin/init... Check if Memory is flashbased ... __PASS__ Hit CTRL-C to stop autoboot: 0 __DEVELOPER_MODE__ENABLED__ nv variable modified, will save nv variables on shutdown usb: USB: scanning bus for devices... usb: 1 USB Device(s) found usb: USB: scanning bus for devices... usb: 1 USB Device(s) found running automount command 'usb && if [ -e /dev/disk0.0 ]; then mount /dev/disk0.0 /mnt/usbstorage; elif [ -e /dev/disk0 ]; then mount /dev/disk0 /mnt/usbstorage; fi' failed usb: USB: scanning bus for devices... usb: 1 USB Device(s) found running automount command 'usb && if [ -e /dev/disk0.0 ]; then mount /dev/disk0.0 /mnt/usbstorage; elif [ -e /dev/disk0 ]; then mount /dev/disk0 /mnt/usbstorage; fi' failed Booting entry 'nand' ubi0: scanning is finished ubi0 warning: print_rsvd_warning: cannot reserve enough PEBs for bad PEB handling, reserved 6, need 20 ubi0: registering /dev/nand0.root.ubi ubi0: registering root as /dev/nand0.root.ubi.root ubi0: attached mtd0 (name "nand0.root", size 80 MiB) to ubi0 ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 512 ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096 ubi0: good PEBs: 640, bad PEBs: 0, corrupted PEBs: 0 ubi0: user volume: 1, internal volumes: 1, max. volumes count: 128 ubi0: max/mean erase counter: 104/69, WL threshold: 4096, image sequence number: 24185 ubi0: available PEBs: 0, total reserved PEBs: 640, PEBs reserved for bad PEB handling: 6 UBIFS (ubi0:0): UBIFS: mounted UBI device 0, volume 0, name "root", R/O mode UBIFS (ubi0:0): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes UBIFS (ubi0:0): FS size: 78344192 bytes (74 MiB, 617 LEBs), journal size 9023488 bytes (8 MiB, 72 LEBs) UBIFS (ubi0:0): reserved for root: 0 bytes (0 KiB) UBIFS (ubi0:0): media format: w4/r0 (latest is w5/r0), UUID 843efdb8, small LPT model usb: USB: scanning bus for devices... usb: 1 USB Device(s) found running automount command 'usb && if [ -e /dev/disk0.0 ]; then mount /dev/disk0.0 /mnt/usbstorage; elif [ -e /dev/disk0 ]; then mount /dev/disk0 /mnt/usbstorage; fi' failed Loading ARM Linux zImage '/mnt/nand0-root/boot/zImage' commandline: console=ttymxc4,115200n consoleblank=0 lpj=995328 mtdparts=mxc_nand:1024k(barebox),1024k(bareboxenv),2432k(history),80M(root),-(var) vt.global_cursor_default=0 ro root=ubi0_0 rootfstype=ubifs ubi.mtd=3,2048 arch_number: 8017 nv variables modified, saving them Booting Linux on physical CPU 0x0 Initializing cgroup subsys cpuset Initializing cgroup subsys cpu Initializing cgroup subsys cpuacct Linux version 3.10.108-rt123-g9de6c66 (rmainz@vm) (gcc version 4.7.2 (OSELAS.Toolchain-2012.12.0) ) #1 PREEMPT RT Tue Dec 17 14:55:12 CET 2019 CPU: ARM926EJ-S [41069264] revision 4 (ARMv5TEJ), cr=00053177 CPU: VIVT data cache, VIVT instruction cache Machine: Eckelmann ECU01 Memory policy: ECC disabled, Data cache writeback Built 1 zonelists in Zone order, mobility grouping on. Total pages: 32512 Kernel command line: console=ttymxc4,115200n consoleblank=0 lpj=995328 mtdparts=mxc_nand:1024k(barebox),1024k(bareboxenv),2432k(history),80M(root),-(var) vt.global_cursor_default=0 ro root=ubi0_0 rootfstype=ubifs ubi.mtd=3,2048 PID hash table entries: 512 (order: -1, 2048 bytes) Dentry cache hash table entries: 16384 (order: 4, 65536 bytes) Inode-cache hash table entries: 8192 (order: 3, 32768 bytes) Memory: 128MB = 128MB total Memory: 123252k/123252k available, 7820k reserved, 0K highmem Virtual kernel memory layout: vector : 0xffff0000 - 0xffff1000 ( 4 kB) fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB) vmalloc : 0xc8800000 - 0xff000000 ( 872 MB) lowmem : 0xc0000000 - 0xc8000000 ( 128 MB) modules : 0xbf000000 - 0xc0000000 ( 16 MB) .text : 0xc0008000 - 0xc05d7eac (5952 kB) .init : 0xc05d8000 - 0xc06119e4 ( 231 kB) .data : 0xc0612000 - 0xc064c8a0 ( 235 kB) .bss : 0xc064c8a0 - 0xc067e978 ( 201 kB) SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1 Preemptible hierarchical RCU implementation. Dump stacks of tasks blocking RCU-preempt GP. NR_IRQS:16 nr_irqs:16 16 MXC IRQ initialized sched_clock: 32 bits at 66MHz, resolution 15ns, wraps every 64585ms Console: colour dummy device 80x30 Calibrating delay loop (skipped) preset value.. 398.13 BogoMIPS (lpj=995328) pid_max: default: 32768 minimum: 301 Mount-cache hash table entries: 512 Initializing cgroup subsys freezer Initializing cgroup subsys blkio CPU: Testing write buffer coherency: ok Setting up static identity map for 0xc0484488 - 0xc04844e0 devtmpfs: initialized NET: Registered protocol family 16 DMA: preallocated 256 KiB pool for atomic coherent allocations bio: create slab at 0 SCSI subsystem initialized usbcore: registered new interface driver usbfs usbcore: registered new interface driver hub usbcore: registered new device driver usb i2c i2c-0: IMX I2C adapter registered pps_core: LinuxPPS API ver. 1 registered pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti PTP clock support registered cfg80211: Calling CRDA to update world regulatory domain Switching to clocksource mxc_timer1 NET: Registered protocol family 2 TCP established hash table entries: 1024 (order: 1, 8192 bytes) TCP bind hash table entries: 1024 (order: 2, 24576 bytes) TCP: Hash tables configured (established 1024 bind 1024) TCP: reno registered UDP hash table entries: 256 (order: 2, 16384 bytes) UDP-Lite hash table entries: 256 (order: 2, 16384 bytes) NET: Registered protocol family 1 RPC: Registered named UNIX socket transport module. RPC: Registered udp transport module. RPC: Registered tcp transport module. RPC: Registered tcp NFSv4.1 backchannel transport module. NFS: Registering the id_resolver key type Key type id_resolver registered Key type id_legacy registered msgmni has been set to 240 Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250) io scheduler noop registered io scheduler cfq registered (default) imx-fb imx21-fb.0: i.MX Framebuffer driver Console: switching to colour frame buffer device 40x30 imx-sdma imx35-sdma: initialized Serial: IMX driver imx21-uart.1: ttymxc1 at MMIO 0x43f94000 (irq = 48) is a IMX imx21-uart.4: ttymxc4 at MMIO 0x5002c000 (irq = 56) is a IMX console [ttymxc4] enabled loop: module loaded Trying ONFI probe in 16 bits mode, aborting ! NAND device: Manufacturer ID: 0x2c, Chip ID: 0xb1 (Micron NAND 128MiB 1,8V 16-bit), 128MiB, page size: 2048, OOB size: 64 Scanning device for bad blocks Bad eraseblock 1022 at 0x000007fc0000 Bad eraseblock 1023 at 0x000007fe0000 5 cmdlinepart partitions found on MTD device mxc_nand Creating 5 MTD partitions on "mxc_nand": 0x000000000000-0x000000100000 : "barebox" 0x000000100000-0x000000200000 : "bareboxenv" 0x000000200000-0x000000460000 : "history" 0x000000460000-0x000005460000 : "root" 0x000005460000-0x000008000000 : "var" spi_imx imx35-cspi.0: master is unqueued, this is deprecated spi_imx imx35-cspi.0: probed spi_imx imx35-cspi.1: master is unqueued, this is deprecated spi_imx imx35-cspi.1: probed fec imx25-fec.0 (unregistered net_device): Invalid MAC address: 00:00:00:00:00:00 fec imx25-fec.0 (unregistered net_device): Using random MAC address: d6:d4:f7:dd:87:56 libphy: fec_enet_mii_bus: probed usbcore: registered new interface driver rtl8192cu usbcore: registered new interface driver rt2800usb ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver ehci-mxc: Freescale On-Chip EHCI Host driver mxc-ehci mxc-ehci.1: EHCI Host Controller mxc-ehci mxc-ehci.1: new USB bus registered, assigned bus number 1 mxc-ehci mxc-ehci.1: irq 51, io mem 0x53ff4400 mxc-ehci mxc-ehci.1: USB 2.0 started, EHCI 1.00 usb usb1: New USB device found, idVendor=1d6b, idProduct=0002 usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1 usb usb1: Product: EHCI Host Controller usb usb1: Manufacturer: Linux 3.10.108-rt123-g9de6c66 ehci_hcd usb usb1: SerialNumber: mxc-ehci.1 hub 1-0:1.0: USB hub found hub 1-0:1.0: 1 port detected usbcore: registered new interface driver usb-storage input: imx-keypad as /devices/platform/imx-keypad/input/input0 rtc-pcf2123 spi1.0: chip found, driver version 0.6 rtc-pcf2123 spi1.0: spiclk 4000 KHz. rtc-pcf2123 spi1.0: rtc core: registered rtc-pcf2123 as rtc0 i2c /dev entries driver cpuidle: using governor ladder sdhci: Secure Digital Host Controller Interface driver sdhci: Copyright(c) Pierre Ossman sdhci-pltfm: SDHCI platform and OF driver helper usbcore: registered new interface driver usbhid usbhid: USB HID core driver TCP: cubic registered NET: Registered protocol family 10 sit: IPv6 over IPv4 tunneling driver NET: Registered protocol family 17 Key type dns_resolver registered UBI: attaching mtd3 to ubi0 UBI: scanning is finished UBI warning: print_rsvd_warning: cannot reserve enough PEBs for bad PEB handling, reserved 8, need 20 UBI: attached mtd3 (name "root", size 80 MiB) to ubi0 UBI: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes UBI: min./max. I/O unit sizes: 2048/2048, sub-page size 512 UBI: VID header offset: 2048 (aligned 2048), data offset: 4096 UBI: good PEBs: 640, bad PEBs: 0, corrupted PEBs: 0 UBI: user volume: 1, internal volumes: 1, max. volumes count: 128 UBI: max/mean erase counter: 104/69, WL threshold: 4096, image sequence number: 24185 UBI: available PEBs: 0, total reserved PEBs: 640, PEBs reserved for bad PEB handling: 8 UBI: background thread "ubi_bgt0d" started, PID 564 rtc-pcf2123 spi1.0: setting system clock to 2020-01-02 11:43:39 UTC (1577965419) UBIFS: mounted UBI device 0, volume 0, name "root", R/O mode UBIFS: LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes UBIFS: FS size: 78344192 bytes (74 MiB, 617 LEBs), journal size 9023488 bytes (8 MiB, 72 LEBs) UBIFS: reserved for root: 0 bytes (0 KiB) UBIFS: media format: w4/r0 (latest is w4/r0), UUID CCA32AB6-CBD9-481A-8B39-705ED27E195D, small LPT model VFS: Mounted root (ubifs filesystem) readonly on device 0:12. devtmpfs: mounted Freeing unused kernel memory: 228K systemd[1]: systemd 204 running in system mode. (-PAM +LIBWRAP -AUDIT -SELINUX -IMA -SYSVINIT -LIBCRYPTSETUP -GCRYPT -ACL -XZ) Welcome to PTXdist / EAG-ecu01! systemd[1]: Set hostname to . systemd[1]: Cannot add dependency job for unit display-manager.service, ignoring: Unit display-manager.service failed to load: No such file or directory. See system logs and 'systemctl status display-manager.service' for details. systemd[1]: Starting Forward Password Requests to Wall Directory Watch. systemd[1]: Started Forward Password Requests to Wall Directory Watch. systemd[1]: Expecting device dev-ttymxc4.device... Expecting device dev-ttymxc4.device... systemd[1]: Starting Remote File Systems. [ OK ] Reached target Remote File Systems. systemd[1]: Reached target Remote File Systems. systemd[1]: Starting Timers. [ OK ] Reached target Timers. systemd[1]: Reached target Timers. systemd[1]: Starting Delayed Shutdown Socket. [ OK ] Listening on Delayed Shutdown Socket. systemd[1]: Listening on Delayed Shutdown Socket. systemd[1]: Starting /dev/initctl Compatibility Named Pipe. [ OK ] Listening on /dev/initctl Compatibility Named Pipe. systemd[1]: Listening on /dev/initctl Compatibility Named Pipe. systemd[1]: Starting Dispatch Password Requests to Console Directory Watch. systemd[1]: Started Dispatch Password Requests to Console Directory Watch. systemd[1]: Starting Paths. [ OK ] Reached target Paths. systemd[1]: Reached target Paths. systemd[1]: Starting udev Kernel Socket. [ OK ] Listening on udev Kernel Socket. systemd[1]: Listening on udev Kernel Socket. systemd[1]: Starting udev Control Socket. [ OK ] Listening on udev Control Socket. systemd[1]: Listening on udev Control Socket. systemd[1]: Starting Journal Socket. [ OK ] Listening on Journal Socket. systemd[1]: Listening on Journal Socket. systemd[1]: Starting udev Coldplug TTY Devices for Getty... Starting udev Coldplug TTY Devices for Getty... systemd[1]: Starting Apply Kernel Variables... Starting Apply Kernel Variables... systemd[1]: Starting Journal Service... Starting Journal Service... [ OK ] Started Journal Service. systemd[1]: Started Journal Service. systemd[1]: Starting Load Kernel Modules... Starting Load Kernel Modules... systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point. systemd[1]: Started Set Up Additional Binary Formats. systemd[1]: Starting Create static device nodes in /dev... Starting Create static device nodes in /dev... systemd[1]: Starting Attach data ubi partition... Starting Attach data ubi partition... systemd[1]: Starting File System Check on Root Device... Starting File System Check on Root Device... [ OK ] Started Apply Kernel Variables. UBI: attaching mtd4 to ubi1 [ OK ] Started File System Check on Root Device. Starting Remount Root and Kernel File Systems... systemd-journald[587]: Failed to resolve 'systemd-journal' group: No such process ads7953_init [ OK ] Started udev Coldplug TTY Devices for Getty. [ OK ] Started Create static device nodes in /dev. Starting udev Kernel Device Manager... mmc_init() called qa_driver_init() called systemd-modules-load[590]: Inserted module 'qadriver' systemd-udevd[622]: starting version 204 [ OK ] Started udev Kernel Device Manager. [ OK ] Started Remount Root and Kernel File Systems. [ OK ] Reached target Local File Systems (Pre). Mounting /var/tmp... Mounting /var/lock... Mounting /var/run... Mounting /var/log... Mounting /var/lib... Mounting /media... Mounting /tmp... [ OK ] Mounted /var/tmp. [ OK ] Mounted /var/lock. [ OK ] Mounted /var/run. [ OK ] Mounted /var/log. [ OK ] Mounted /var/lib. UBI: scanning is finished [ OK ] Mounted /media. [ OK ] Mounted /tmp. UBI: attached mtd4 (name "var", size 43 MiB) to ubi1 UBI: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes UBI: min./max. I/O unit sizes: 2048/2048, sub-page size 512 UBI: VID header offset: 2048 (aligned 2048), data offset: 4096 UBI: good PEBs: 347, bad PEBs: 2, corrupted PEBs: 0 UBI: user volume: 2, internal volumes: 1, max. volumes count: 128 UBI: max/mean erase counter: 79/42, WL threshold: 4096, image sequence number: 48 UBI: available PEBs: 87, total reserved PEBs: 260, PEBs reserved for bad PEB handling: 18 UBI: background thread "ubi_bgt1d" started, PID 676 [ OK ] Started Attach data ubi partition. Starting Check and create ubi partitions... [ OK ] Found device /dev/ttymxc4. [ OK ] Started Check and create ubi partitions. Mounting Mount /var/stat partition... Mounting Mount /var/dyn partition... UBIFS: background thread "ubifs_bgt1_1" started, PID 695 UBIFS: background thread "ubifs_bgt1_0" started, PID 697 RTW: rtl8188eu v5.2.2.4_25483.20171222 RTW: build time: Dec 17 2019 14:59:14 usbcore: registered new interface driver rtl8188eu UBIFS: mounted UBI device 1, volume 1, name "stat" UBIFS: LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes UBIFS: FS size: 13840384 bytes (13 MiB, 109 LEBs), journal size 1015809 bytes (0 MiB, 6 LEBs) [ OK UBIFS: reserved for root: 653715 bytes (638 KiB) ] Started Load Kernel Modules. UBIFS: media format: w4/r0 (latest is w4/r0), UUID E80C166F-06CC-4970-BC1D-F90E77A0FE3B, small LPT model [ OK ] Mounted Mount /var/stat partition. UBIFS: mounted UBI device 1, volume 0, name "dyn" UBIFS: LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes UBIFS: FS size: 13840384 bytes (13 MiB, 109 LEBs), journal size 1015809 bytes (0 MiB, 6 LEBs) UBIFS: reserved for root: 653715 bytes (638 KiB) UBIFS: media format: w4/r0 (latest is w4/r0), UUID 30205726-B785-418B-A836-DB1A7803510D, small LPT model [ OK ] Mounted Mount /var/dyn partition. [ OK ] Reached target Local File Systems. Starting Recreate Volatile Files and Directories... [ OK ] Started Recreate Volatile Files and Directories. [ OK ] Reached target System Initialization. [ OK ] Listening on sshd.socket. [ OK ] Listening on D-Bus System Message Bus Socket. [ OK ] Reached target Sockets. [ OK ] Reached target Basic System. Starting Backup service for configuration in /etc... [ OK ] Started Backup service for configuration in /etc. Starting Mark kernel activated network interfaces as up... Starting Serial Getty on ttymxc4... [ OK ] Started Serial Getty on ttymxc4. [ OK ] Reached target Login Prompts. Starting D-Bus System Message Bus... [ OK ] Started D-Bus System Message Bus. Starting udev Trigger all Massstorage Devices... [ OK ] Started udev Trigger all Massstorage Devices. imx-sdma imx35-sdma: firmware not found [ OK ] Started Mark kernel activated network interfaces as up. Starting Handle network interface with ifup/ifdown... fec imx25-fec.0 eth0: no PHY, assuming direct connection to switch libphy: PHY fixed-0:00 not found fec imx25-fec.0 eth0: could not attach to PHY [FAILED] Failed to start Handle network interface with ifup/ifdown. See 'systemctl status ifupdown.service' for details. [ OK ] Reached target Network. [ OK ] Reached target Multi-User System. [ OK ] Reached target Graphical Interface. Starting Say Goodbye to user at Shutdown... Starting CoDeSys 3 runtime... [ OK ] Started Say Goodbye to user at Shutdown. _____ _ ____ | ____| / ` / ___| | _| / _ `| | _ | |___ / ___ ` |_| | |_____/_/ `_`____| ___ _ ___ ___ _ _ / _ `/ | / _ `/ __| | | | | | | | | __/ (__| |_| | |_| | | `___|`___|`__,_|`___/|_| OSELAS(R)-ecu01-V3.1.10 / ecu01-2012.10.0 ptxdist-2012.10.0/2019-12-15T17:38:41+0100 ecu01 login: [ OK ] Started CoDeSys 3 runtime. [ OK ] Reached target Application Mode. qa_mmc_open() ecu01-mmc: pin PIN_V_NAMUR_VALID = 0 ecu01-mmc: running in WALTERSCHEID mode (12 volt signals). ecu01-compcap: irq=70/70, changed interrupt thread pid=809 to 'SCHED_FIFO'/rtprio=95 ecu01-compcap: irq=69/69, changed interrupt thread pid=815 to 'SCHED_FIFO'/rtprio=95 ecu01-compcap: irq=17/17, changed interrupt thread pid=816 to 'SCHED_FIFO'/rtprio=95 qa_mmc_release() qa_mmc_open() ecu01-compcap: irq=70/70, changed interrupt thread pid=817 to 'SCHED_FIFO'/rtprio=95 ecu01-compcap: irq=69/69, changed interrupt thread pid=818 to 'SCHED_FIFO'/rtprio=95 ecu01-compcap: irq=17/17, changed interrupt thread pid=819 to 'SCHED_FIFO'/rtprio=95 UBIFS: background thread "ubifs_bgt0_0" started, PID 835 UBIFS: background thread "ubifs_bgt0_0" stops _____ _ ____ | ____| / ` / ___| | _| / _ `| | _ | |___ / ___ ` |_| | |_____/_/ `_`____| ___ _ ___ ___ _ _ / _ `/ | / _ `/ __| | | | | | | | | __/ (__| |_| | |_| | | `___|`___|`__,_|`___/|_| OSELAS(R)-ecu01-V3.1.10 / ecu01-2012.10.0 ptxdist-2012.10.0/2019-12-15T17:38:41+0100 ecu01 login: root Password: ## Running /etc/profile ... running /etc/profile.local Loading /usr/share/keymaps/i386/qwertz/de.map.gz # Running /etc/bash.bashrc ... root 11:45:54 : ~ # root 11:46:48 : ~ # root 11:46:48 : ~ # systemctl stop codesys3-rt.service UBIFS: background thread "ubifs_bgt0_0" started, PID 855 UBIFS: background thread "ubifs_bgt0_0" stops qa_mmc_release() root 11:46:54 : ~ # cd /sys root 11:46:57 : /sys # find . -name bind ./bus/i2c/drivers/dummy/bind ./bus/i2c/drivers/ad7414/bind ./bus/hid/drivers/hid-generic/bind ./bus/mmc/drivers/mmc_test/bind ./bus/mmc/drivers/mmcblk/bind ./bus/spi/drivers/rtc-pcf2123/bind ./bus/spi/drivers/spidev/bind ./bus/spi/drivers/ads7953_spi_driver/bind ./bus/usb/drivers/hub/bind ./bus/usb/drivers/usb/bind ./bus/usb/drivers/usbfs/bind ./bus/usb/drivers/usb-storage/bind ./bus/usb/drivers/rt2800usb/bind ./bus/usb/drivers/usbhid/bind ./bus/usb/drivers/rtl8188eu/bind ./bus/usb/drivers/rtl8192cu/bind ./bus/scsi/drivers/sd/bind ./bus/serio/drivers/atkbd/bind ./bus/platform/drivers/fec/bind ./bus/platform/drivers/fsl-usb2-mph-dr/bind ./bus/platform/drivers/physmap-flash/bind ./bus/platform/drivers/platform-lcd/bind ./bus/platform/drivers/sdhci-esdhc-imx/bind ./bus/platform/drivers/spi_gpio/bind ./bus/platform/drivers/alarmtimer/bind ./bus/platform/drivers/matrix-keypad/bind ./bus/platform/drivers/spi_imx/bind ./bus/platform/drivers/gpio-keys-polled/bind ./bus/platform/drivers/gpio-keys/bind ./bus/platform/drivers/mxc-ehci/bind ./bus/platform/drivers/imx-keypad/bind ./bus/platform/drivers/mxc-mmc/bind ./bus/platform/drivers/mxc_nand/bind ./bus/platform/drivers/mxs_phy/bind ./bus/platform/drivers/imx-uart/bind ./bus/platform/drivers/imx-pwm/bind ./bus/platform/drivers/mx25-adc/bind ./bus/platform/drivers/gpio-mxc/bind ./bus/platform/drivers/basic-mmio-gpio/bind ./bus/mdio_bus/drivers/SMSC LAN8710!LAN8720/bind ./bus/mdio_bus/drivers/SMSC LAN911x Internal PHY/bind ./bus/mdio_bus/drivers/Generic PHY/bind ./bus/mdio_bus/drivers/SMSC LAN8187/bind ./bus/mdio_bus/drivers/SMSC LAN8700/bind ./bus/mdio_bus/drivers/SMSC LAN83C185/bind ./devices/virtual/vtconsole/vtcon0/bind ./devices/virtual/vtconsole/vtcon1/bind root 11:47:03 : /sys # find . -name bind | egrep 'fb|con' ./devices/virtual/vtconsole/vtcon0/bind ./devices/virtual/vtconsole/vtcon1/bind root 11:47:12 : /sys # ls -l /dev | fgrep vt root 11:47:30 : /sys # ls -l /dev | fgrep v crw-r--r-T 1 root root 262, 0 Jan 2 11:43 qadriver crw------- 1 root root 153, 0 Jan 1 1970 spidev0.3 crw------- 1 root root 153, 1 Jan 1 1970 spidev1.1 crw------- 1 root root 7, 0 Jan 1 1970 vcs crw------- 1 root root 7, 1 Jan 1 1970 vcs1 crw------- 1 root root 7, 128 Jan 1 1970 vcsa crw------- 1 root root 7, 129 Jan 1 1970 vcsa1 root 11:47:31 : /sys # cat /dev/vcs1 root 11:47:43 : /sys # root 11:47:46 : /sys # cat /dev/vcs root 11:47:49 : /sys # root 11:47:51 : /sys # cat /dev/vcsa ( root 11:47:57 : /sys # oot 11:48:16 : /sys # eval "$(/usr/bin/ root 11:48:16 : /sys # eval "$(/usr/bin/resize)" ; stty cols $COLUMNS rows $LINES root 11:48:18 : /sys # : eval "$(/usr/bin/resize)" ; stty cols $COLUMNS rows $LIN root 11:48:19 : /sys # root 11:48:20 : /sys # root 11:48:20 : /sys # continue block/ bus/ class/ dev/ devices/ firmware/ fs/ kernel/ module/ power/ root 11:48:20 : /sys # cd root 11:53:19 : ~ # set set set-ssid setconsole setfacl setfattr setkeycodes setserial root 11:53:19 : ~ # lsmod Module Size Used by 8188eu 1480087 0 qadriver 2240 0 power_button 2873 0 ecu01_motor_ctl 5183 0 ecu01_mmc 3953 0 ecu01_comp_cap 8120 1 ecu01_mmc ads7953 2698 0 root 11:54:55 : ~ # lsmod -a Module Size Used by 8188eu 1480087 0 qadriver 2240 0 power_button 2873 0 ecu01_motor_ctl 5183 0 ecu01_mmc 3953 0 ecu01_comp_cap 8120 1 ecu01_mmc ads7953 2698 0 root 11:54:58 : ~ # gunzip -c /proc/config.gz | fgrep -i fb CONFIG_IMX_HAVE_PLATFORM_IMX_FB=y CONFIG_FB=y # CONFIG_FB_DDC is not set # CONFIG_FB_BOOT_VESA_SUPPORT is not set CONFIG_FB_CFB_FILLRECT=y CONFIG_FB_CFB_COPYAREA=y CONFIG_FB_CFB_IMAGEBLIT=y # CONFIG_FB_CFB_REV_PIXELS_IN_BYTE is not set # CONFIG_FB_SYS_FILLRECT is not set # CONFIG_FB_SYS_COPYAREA is not set # CONFIG_FB_SYS_IMAGEBLIT is not set # CONFIG_FB_FOREIGN_ENDIAN is not set # CONFIG_FB_SYS_FOPS is not set # CONFIG_FB_SVGALIB is not set # CONFIG_FB_MACMODES is not set # CONFIG_FB_BACKLIGHT is not set CONFIG_FB_MODE_HELPERS=y # CONFIG_FB_TILEBLITTING is not set CONFIG_FB_IMX=y # CONFIG_FB_S1D13XXX is not set # CONFIG_FB_SMSCUFX is not set # CONFIG_FB_UDL is not set # CONFIG_FB_GOLDFISH is not set # CONFIG_FB_VIRTUAL is not set # CONFIG_FB_METRONOME is not set # CONFIG_FB_BROADSHEET is not set # CONFIG_FB_AUO_K190X is not set # CONFIG_FB_SIMPLE is not set # CONFIG_FB_SSD1307 is not set root 11:55:23 : ~ # gunzip -c /proc/config.gz | fgrep -i frame # Frame buffer hardware drivers CONFIG_FRAMEBUFFER_CONSOLE=y # CONFIG_FRAMEBUFFER_CONSOLE_DETECT_PRIMARY is not set # CONFIG_FRAMEBUFFER_CONSOLE_ROTATION is not set # Common Clock Framework CONFIG_FRAME_WARN=1024 CONFIG_FRAME_POINTER=y root 11:56:09 : ~ # modprobe fbcon modprobe: module fbcon not found in modules.dep root 11:56:47 : ~ # cat $(readlink -f /sys/class/graphics/fb0/name) BusyBox v1.20.1 (2019-12-17 15:35:25 CET) multi-call binary. Usage: readlink FILE Display the value of a symlink root 11:57:11 : ~ # cat /sys/class/graphics/fb0/name IMX root 11:57:18 : ~ # ls -l //sys/class/graphics/fb0/name -r--r--r-- 1 root root 4096 Jan 2 11:47 //sys/class/graphics/fb0/name root 11:58:01 : ~ # ls -l /sys/class/vtconsole/vtcon1/bind -rw-r--r-- 1 root root 4096 Jan 2 11:47 /sys/class/vtconsole/vtcon1/bind root 11:58:19 : ~ # cat /sys/class/vtconsole/vtcon1/bind 1 root 11:58:24 : ~ # cat /sys/class/vtconsole/vtcon0/bind 0 (failed reverse-i-search)`blank ': rootfs.writable root 12:03:07 : ~ # (failed reverse-i-search)`blank': rootfs.writable root 12:03:10 : ~ # find /sys -name blank /sys/devices/platform/imx21-fb.0/graphics/fb0/blank root 12:03:22 : ~ # echo 0 >/sys/devices/platform/imx21-fb.0/graphics/fb0/blank root 12:03:30 : ~ # find /sys -name fb0 /sys/devices/platform/imx21-fb.0/graphics/fb0 /sys/class/graphics/fb0 root 12:03:44 : ~ # ls -l /sys/class/graphics/fb0 lrwxrwxrwx 1 root root 0 Jan 2 11:47 /sys/class/graphics/fb0 -> ../../devices/platform/imx21-fb.0/graphics/fb0 root 12:03:49 : ~ # ls -l /sys/devices/platform/imx21-fb.0/graphics/fb0 total 0 -rw-r--r-- 1 root root 4096 Jan 2 11:47 bits_per_pixel -rw-r--r-- 1 root root 4096 Jan 2 12:03 blank -rw-r--r-- 1 root root 4096 Jan 2 11:47 console -rw-r--r-- 1 root root 4096 Jan 2 11:47 cursor -r--r--r-- 1 root root 4096 Jan 2 11:47 dev lrwxrwxrwx 1 root root 0 Jan 2 11:47 device -> ../../../imx21-fb.0 -rw-r--r-- 1 root root 4096 Jan 2 11:47 mode -rw-r--r-- 1 root root 4096 Jan 2 11:47 modes -r--r--r-- 1 root root 4096 Jan 2 11:47 name -rw-r--r-- 1 root root 4096 Jan 2 11:47 pan drwxr-xr-x 2 root root 0 Jan 2 11:47 power -rw-r--r-- 1 root root 4096 Jan 2 11:47 rotate -rw-r--r-- 1 root root 4096 Jan 2 11:47 state -r--r--r-- 1 root root 4096 Jan 2 11:47 stride lrwxrwxrwx 1 root root 0 Jan 2 11:47 subsystem -> ../../../../../class/graphics -rw-r--r-- 1 root root 4096 Jan 2 11:47 uevent -rw-r--r-- 1 root root 4096 Jan 2 11:47 virtual_size root 12:03:58 : ~ # ls -l /sys/devices/platform/imx21-fb.0/graphics/fb0/dev dev device/ root 12:03:58 : ~ # cat /sys/devices/platform/imx21-fb.0/graphics/fb0/dev 29:0 root 12:04:14 : ~ # cat /sys/devices/platform/imx21-fb.0/graphics/fb0/console root 12:04:22 : ~ # cat /sys/devices/platform/imx21-fb.0/graphics/fb0/virtual_size 320,240 root 12:04:37 : ~ # cat /sys/devices/platform/imx21-fb.0/graphics/fb0/state 0 root 12:04:47 : ~ # cat /sys/devices/platform/imx21-fb.0/graphics/fb0/ cat: read error: Is a directory root 12:04:57 : ~ # root 12:05:07 : ~ # cat /sys/devices/platform/imx21-fb.0/graphics/fb0/power/ cat: read error: Is a directory root 12:05:11 : ~ # ls -l /sys/devices/platform/imx21-fb.0/graphics/fb0/power/ total 0 root 12:05:16 : ~ # find /sys -name \*fb\*con\* /sys/devices/virtual/graphics/fbcon /sys/class/graphics/fbcon root 12:06:05 : ~ # ls -l /sys/class/graphics/fbcon/ total 0 -rw-r--r-- 1 root root 4096 Jan 2 11:47 cursor_blink drwxr-xr-x 2 root root 0 Jan 2 11:47 power -rw-r--r-- 1 root root 4096 Jan 2 11:47 rotate --w------- 1 root root 4096 Jan 2 11:47 rotate_all lrwxrwxrwx 1 root root 0 Jan 2 11:47 subsystem -> ../../../../class/graphics -rw-r--r-- 1 root root 4096 Jan 2 11:47 uevent root 12:06:16 : ~ # cat /sys/class/graphics/fbcon/cursor_blink 1 root 12:06:28 : ~ # echo 0 > /sys/class/graphics/fbcon/cursor_blink root 12:06:36 : ~ # echo 2 > /sys/class/graphics/fbcon/cursor_blink root 12:06:40 : ~ # cat /sys/class/graphics/fbcon/cursor_blink 1 root 12:06:43 : ~ # ls -l /sys/class/graphics/fbcon lrwxrwxrwx 1 root root 0 Jan 2 11:47 /sys/class/graphics/fbcon -> ../../devices/virtual/graphics/fbcon root 12:07:00 : ~ # ls -l /sys/devices/virtual/graphics/fbcon/ cursor_blink power/ rotate rotate_all subsystem/ uevent root 12:07:00 : ~ # ls -l /sys/devices/virtual/graphics/fbcon/ total 0 -rw-r--r-- 1 root root 4096 Jan 2 12:06 cursor_blink drwxr-xr-x 2 root root 0 Jan 2 11:47 power -rw-r--r-- 1 root root 4096 Jan 2 11:47 rotate --w------- 1 root root 4096 Jan 2 11:47 rotate_all lrwxrwxrwx 1 root root 0 Jan 2 11:47 subsystem -> ../../../../class/graphics -rw-r--r-- 1 root root 4096 Jan 2 11:47 uevent root 12:07:09 : ~ # ls -l /dev | fgrep tty crw-rw-rw- 1 root root 5, 0 Jan 1 1970 tty crw------- 1 root root 4, 0 Jan 2 11:46 tty0 crw------- 1 root root 4, 1 Jan 1 1970 tty1 crw------- 1 root root 4, 10 Jan 1 1970 tty10 crw------- 1 root root 4, 11 Jan 1 1970 tty11 crw------- 1 root root 4, 12 Jan 1 1970 tty12 crw------- 1 root root 4, 13 Jan 1 1970 tty13 crw------- 1 root root 4, 14 Jan 1 1970 tty14 crw------- 1 root root 4, 15 Jan 1 1970 tty15 crw------- 1 root root 4, 16 Jan 1 1970 tty16 crw------- 1 root root 4, 17 Jan 1 1970 tty17 crw------- 1 root root 4, 18 Jan 1 1970 tty18 crw------- 1 root root 4, 19 Jan 1 1970 tty19 crw------- 1 root root 4, 2 Jan 1 1970 tty2 crw------- 1 root root 4, 20 Jan 1 1970 tty20 crw------- 1 root root 4, 21 Jan 1 1970 tty21 crw------- 1 root root 4, 22 Jan 1 1970 tty22 crw------- 1 root root 4, 23 Jan 1 1970 tty23 crw------- 1 root root 4, 24 Jan 1 1970 tty24 crw------- 1 root root 4, 25 Jan 1 1970 tty25 crw------- 1 root root 4, 26 Jan 1 1970 tty26 crw------- 1 root root 4, 27 Jan 1 1970 tty27 crw------- 1 root root 4, 28 Jan 1 1970 tty28 crw------- 1 root root 4, 29 Jan 1 1970 tty29 crw------- 1 root root 4, 3 Jan 1 1970 tty3 crw------- 1 root root 4, 30 Jan 1 1970 tty30 crw------- 1 root root 4, 31 Jan 1 1970 tty31 crw------- 1 root root 4, 32 Jan 1 1970 tty32 crw------- 1 root root 4, 33 Jan 1 1970 tty33 crw------- 1 root root 4, 34 Jan 1 1970 tty34 crw------- 1 root root 4, 35 Jan 1 1970 tty35 crw------- 1 root root 4, 36 Jan 1 1970 tty36 crw------- 1 root root 4, 37 Jan 1 1970 tty37 crw------- 1 root root 4, 38 Jan 1 1970 tty38 crw------- 1 root root 4, 39 Jan 1 1970 tty39 crw------- 1 root root 4, 4 Jan 1 1970 tty4 crw------- 1 root root 4, 40 Jan 1 1970 tty40 crw------- 1 root root 4, 41 Jan 1 1970 tty41 crw------- 1 root root 4, 42 Jan 1 1970 tty42 crw------- 1 root root 4, 43 Jan 1 1970 tty43 crw------- 1 root root 4, 44 Jan 1 1970 tty44 crw------- 1 root root 4, 45 Jan 1 1970 tty45 crw------- 1 root root 4, 46 Jan 1 1970 tty46 crw------- 1 root root 4, 47 Jan 1 1970 tty47 crw------- 1 root root 4, 48 Jan 1 1970 tty48 crw------- 1 root root 4, 49 Jan 1 1970 tty49 crw------- 1 root root 4, 5 Jan 1 1970 tty5 crw------- 1 root root 4, 50 Jan 1 1970 tty50 crw------- 1 root root 4, 51 Jan 1 1970 tty51 crw------- 1 root root 4, 52 Jan 1 1970 tty52 crw------- 1 root root 4, 53 Jan 1 1970 tty53 crw------- 1 root root 4, 54 Jan 1 1970 tty54 crw------- 1 root root 4, 55 Jan 1 1970 tty55 crw------- 1 root root 4, 56 Jan 1 1970 tty56 crw------- 1 root root 4, 57 Jan 1 1970 tty57 crw------- 1 root root 4, 58 Jan 1 1970 tty58 crw------- 1 root root 4, 59 Jan 1 1970 tty59 crw------- 1 root root 4, 6 Jan 1 1970 tty6 crw------- 1 root root 4, 60 Jan 1 1970 tty60 crw------- 1 root root 4, 61 Jan 1 1970 tty61 crw------- 1 root root 4, 62 Jan 1 1970 tty62 crw------- 1 root root 4, 63 Jan 1 1970 tty63 crw------- 1 root root 4, 7 Jan 1 1970 tty7 crw------- 1 root root 4, 8 Jan 1 1970 tty8 crw------- 1 root root 4, 9 Jan 1 1970 tty9 lrwxrwxrwx 1 root root 7 Jan 2 11:43 ttyS1 -> ttymxc1 lrwxrwxrwx 1 root root 7 Jan 2 11:43 ttyS4 -> ttymxc4 crw------- 1 root root 207, 17 Jan 2 11:43 ttymxc1 crw------- 1 root root 207, 20 Jan 2 12:08 ttymxc4 root 12:08:23 : ~ # echo foo >/dev/tty1 root 12:08:33 : ~ # echo foo >/dev/tty0 root 12:08:42 : ~ # echo foo >/dev/tty0 root 12:08:49 : ~ # lsmod Module Size Used by 8188eu 1480087 0 qadriver 2240 0 power_button 2873 0 ecu01_motor_ctl 5183 0 ecu01_mmc 3953 0 ecu01_comp_cap 8120 1 ecu01_mmc ads7953 2698 0 root 12:09:18 : ~ # rmmod qadriver qa_driver_exit() called root 12:09:30 : ~ # rmmod ecu01_motor_ctl root 12:09:38 : ~ # rmmod ecu01_mmc root 12:09:44 : ~ # rmmod ecu01_comp_cap root 12:09:50 : ~ # lsmod Module Size Used by 8188eu 1480087 0 power_button 2873 0 ads7953 2698 0 root 12:09:51 : ~ # find /sys -name \*key\* /sys/bus/platform/devices/imx-keypad /sys/bus/platform/drivers/matrix-keypad /sys/bus/platform/drivers/gpio-keys-polled /sys/bus/platform/drivers/gpio-keys /sys/bus/platform/drivers/imx-keypad /sys/bus/platform/drivers/imx-keypad/imx-keypad /sys/devices/platform/imx-keypad /sys/devices/platform/imx-keypad/input/input0/capabilities/key /sys/kernel/slab/key_jar /sys/module/keyboard root 12:17:20 : ~ # ls -l /sys/bus/platform/drivers/imx-keypad/ total 0 --w------- 1 root root 4096 Jan 2 11:47 bind lrwxrwxrwx 1 root root 0 Jan 2 11:47 imx-keypad -> ../../../../devices/platform/imx-keypad --w------- 1 root root 4096 Jan 2 11:47 uevent --w------- 1 root root 4096 Jan 2 11:47 unbind root 12:17:29 : ~ # echo 1 >/sys/bus/platform/drivers/imx-keypad/bind -bash: echo: write error: No such device root 12:17:41 : ~ # echo 1 >/sys/bus/platform/drivers/imx-keypad/ bind imx-keypad/ uevent unbind root 12:17:41 : ~ # echo 1 >/sys/bus/platform/drivers/imx-keypad/bind -bash: echo: write error: No such device root 12:17:47 : ~ # echo 1 >/sys/bus/platform/drivers/imx-keypad/unbind -bash: echo: write error: No such device root 12:17:57 : ~ # echo 1 >/sys/bus/platform/drivers/imx-keypad/bind -bash: echo: write error: No such device root 12:17:58 : ~ # ls -l /sys/bus/platform/drivers/imx-keypad total 0 --w------- 1 root root 4096 Jan 2 12:17 bind lrwxrwxrwx 1 root root 0 Jan 2 11:47 imx-keypad -> ../../../../devices/platform/imx-keypad --w------- 1 root root 4096 Jan 2 11:47 uevent --w------- 1 root root 4096 Jan 2 12:17 unbind root 12:18:13 : ~ # echo 1 > /sys/bus/platform/drivers/imx-keypad/bind -bash: echo: write error: No such device root 12:18:24 : ~ # ls -l /sys/bus/platform/drivers/gpio-keys total 0 --w------- 1 root root 4096 Jan 2 11:47 bind --w------- 1 root root 4096 Jan 2 11:47 uevent --w------- 1 root root 4096 Jan 2 11:47 unbind root 12:18:35 : ~ # echo 1 > /sys/bus/platform/drivers/gpio-keys/bind -bash: echo: write error: No such device root 12:18:47 : ~ # strace bash -c 'echo 1 > /sys/bus/platform/drivers/gpio-keys/bind ' execve("/bin/bash", ["bash", "-c", "echo 1 > /sys/bus/platform/drive"...], [/* 12 vars */]) = 0 uname({sys="Linux", node="ecu01", ...}) = 0 brk(0) = 0x174000 brk(0x174d0c) = 0x174d0c set_tls(0x1744c0, 0x167434, 0x1706e8, 0x1744c0, 0x1706e0) = 0 brk(0x195d0c) = 0x195d0c brk(0x196000) = 0x196000 open("/dev/tty", O_RDWR|O_NONBLOCK|O_LARGEFILE) = 3 close(3) = 0 getuid32() = 0 getgid32() = 0 geteuid32() = 0 getegid32() = 0 rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 gettimeofday({1577967542, 192250}, NULL) = 0 open("/proc/meminfo", O_RDONLY|O_CLOEXEC) = 3 fcntl64(3, F_GETFD) = 0x1 (flags FD_CLOEXEC) fstat64(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb6f71000 read(3, "MemTotal: 123480 kB\nMemF"..., 1024) = 924 close(3) = 0 munmap(0xb6f71000, 4096) = 0 rt_sigaction(SIGCHLD, {SIG_DFL, [], SA_RESTART|0x4000000}, {SIG_DFL, [], 0}, 8) = 0 rt_sigaction(SIGCHLD, {SIG_DFL, [], SA_RESTART|0x4000000}, {SIG_DFL, [], SA_RESTART|0x4000000}, 8) = 0 rt_sigaction(SIGINT, {SIG_DFL, [], 0x4000000 /* SA_??? */}, {SIG_DFL, [], 0}, 8) = 0 rt_sigaction(SIGINT, {SIG_DFL, [], 0x4000000 /* SA_??? */}, {SIG_DFL, [], 0x4000000 /* SA_??? */}, 8) = 0 rt_sigaction(SIGQUIT, {SIG_DFL, [], 0x4000000 /* SA_??? */}, {SIG_DFL, [], 0}, 8) = 0 rt_sigaction(SIGQUIT, {SIG_DFL, [], 0x4000000 /* SA_??? */}, {SIG_DFL, [], 0x4000000 /* SA_??? */}, 8) = 0 rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 rt_sigaction(SIGQUIT, {SIG_IGN, [], 0x4000000 /* SA_??? */}, {SIG_DFL, [], 0x4000000 /* SA_??? */}, 8) = 0 uname({sys="Linux", node="ecu01", ...}) = 0 stat64("/home", {st_mode=S_IFDIR|S_ISGID|0755, st_size=2520, ...}) = 0 stat64(".", {st_mode=S_IFDIR|S_ISGID|0755, st_size=2520, ...}) = 0 getpid() = 945 getppid() = 943 stat64(".", {st_mode=S_IFDIR|S_ISGID|0755, st_size=2520, ...}) = 0 stat64("/sbin/bash", 0xbec04918) = -1 ENOENT (No such file or directory) stat64("/usr/sbin/bash", 0xbec04918) = -1 ENOENT (No such file or directory) stat64("/bin/bash", {st_mode=S_IFREG|0755, st_size=1427884, ...}) = 0 stat64("/bin/bash", {st_mode=S_IFREG|0755, st_size=1427884, ...}) = 0 geteuid32() = 0 getegid32() = 0 getuid32() = 0 getgid32() = 0 access("/bin/bash", X_OK) = 0 stat64("/bin/bash", {st_mode=S_IFREG|0755, st_size=1427884, ...}) = 0 geteuid32() = 0 getegid32() = 0 getuid32() = 0 getgid32() = 0 access("/bin/bash", R_OK) = 0 stat64("/bin/bash", {st_mode=S_IFREG|0755, st_size=1427884, ...}) = 0 stat64("/bin/bash", {st_mode=S_IFREG|0755, st_size=1427884, ...}) = 0 geteuid32() = 0 getegid32() = 0 getuid32() = 0 getgid32() = 0 access("/bin/bash", X_OK) = 0 stat64("/bin/bash", {st_mode=S_IFREG|0755, st_size=1427884, ...}) = 0 geteuid32() = 0 getegid32() = 0 getuid32() = 0 getgid32() = 0 access("/bin/bash", R_OK) = 0 gettimeofday({1577967542, 283738}, NULL) = 0 getpgrp() = 943 rt_sigaction(SIGCHLD, {0x2e754, [], SA_RESTART|0x4000000}, {SIG_DFL, [], SA_RESTART|0x4000000}, 8) = 0 getrlimit(RLIMIT_NPROC, {rlim_cur=962, rlim_max=962}) = 0 rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 getpeername(0, 0xbec04bb8, [16]) = -1 ENOTSOCK (Socket operation on non-socket) rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 open("/sys/bus/platform/drivers/gpio-keys/bind", O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE, 0666) = 3 fcntl64(1, F_GETFD) = 0 fcntl64(1, F_DUPFD, 10) = 10 fcntl64(1, F_GETFD) = 0 fcntl64(10, F_SETFD, FD_CLOEXEC) = 0 dup2(3, 1) = 1 close(3) = 0 fstat64(1, {st_mode=S_IFREG|0200, st_size=4096, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb6f71000 write(1, "1\n", 2) = -1 ENODEV (No such device) fstat64(2, {st_mode=S_IFCHR|0600, st_rdev=makedev(207, 20), ...}) = 0 ioctl(2, SNDCTL_TMR_TIMEBASE or SNDRV_TIMER_IOCTL_NEXT_DEVICE or TCGETS, {B115200 opost isig icanon echo ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb6f70000 write(2, "bash: line 0: echo: write error:"..., 48bash: line 0: echo: write error: No such device ) = 48 dup2(10, 1) = 1 fcntl64(10, F_GETFD) = 0x1 (flags FD_CLOEXEC) close(10) = 0 rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 exit_group(1) = ? +++ exited with 1 +++ root 12:19:02 : ~ # lsmod Module Size Used by 8188eu 1480087 0 power_button 2873 0 ads7953 2698 0 root 12:19:37 : ~ # rmmod power_button root 12:19:44 : ~ # strace bash -c 'echo 1 > /sys/bus/platform/drivers/gpio-keys/bind ' execve("/bin/bash", ["bash", "-c", "echo 1 > /sys/bus/platform/drive"...], [/* 12 vars */]) = 0 uname({sys="Linux", node="ecu01", ...}) = 0 brk(0) = 0x174000 brk(0x174d0c) = 0x174d0c set_tls(0x1744c0, 0x167434, 0x1706e8, 0x1744c0, 0x1706e0) = 0 brk(0x195d0c) = 0x195d0c brk(0x196000) = 0x196000 open("/dev/tty", O_RDWR|O_NONBLOCK|O_LARGEFILE) = 3 close(3) = 0 getuid32() = 0 getgid32() = 0 geteuid32() = 0 getegid32() = 0 rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 gettimeofday({1577967589, 415009}, NULL) = 0 open("/proc/meminfo", O_RDONLY|O_CLOEXEC) = 3 fcntl64(3, F_GETFD) = 0x1 (flags FD_CLOEXEC) fstat64(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb6f6f000 read(3, "MemTotal: 123480 kB\nMemF"..., 1024) = 924 close(3) = 0 munmap(0xb6f6f000, 4096) = 0 rt_sigaction(SIGCHLD, {SIG_DFL, [], SA_RESTART|0x4000000}, {SIG_DFL, [], 0}, 8) = 0 rt_sigaction(SIGCHLD, {SIG_DFL, [], SA_RESTART|0x4000000}, {SIG_DFL, [], SA_RESTART|0x4000000}, 8) = 0 rt_sigaction(SIGINT, {SIG_DFL, [], 0x4000000 /* SA_??? */}, {SIG_DFL, [], 0}, 8) = 0 rt_sigaction(SIGINT, {SIG_DFL, [], 0x4000000 /* SA_??? */}, {SIG_DFL, [], 0x4000000 /* SA_??? */}, 8) = 0 rt_sigaction(SIGQUIT, {SIG_DFL, [], 0x4000000 /* SA_??? */}, {SIG_DFL, [], 0}, 8) = 0 rt_sigaction(SIGQUIT, {SIG_DFL, [], 0x4000000 /* SA_??? */}, {SIG_DFL, [], 0x4000000 /* SA_??? */}, 8) = 0 rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 rt_sigaction(SIGQUIT, {SIG_IGN, [], 0x4000000 /* SA_??? */}, {SIG_DFL, [], 0x4000000 /* SA_??? */}, 8) = 0 uname({sys="Linux", node="ecu01", ...}) = 0 stat64("/home", {st_mode=S_IFDIR|S_ISGID|0755, st_size=2520, ...}) = 0 stat64(".", {st_mode=S_IFDIR|S_ISGID|0755, st_size=2520, ...}) = 0 getpid() = 956 getppid() = 954 stat64(".", {st_mode=S_IFDIR|S_ISGID|0755, st_size=2520, ...}) = 0 stat64("/sbin/bash", 0xbeb8d918) = -1 ENOENT (No such file or directory) stat64("/usr/sbin/bash", 0xbeb8d918) = -1 ENOENT (No such file or directory) stat64("/bin/bash", {st_mode=S_IFREG|0755, st_size=1427884, ...}) = 0 stat64("/bin/bash", {st_mode=S_IFREG|0755, st_size=1427884, ...}) = 0 geteuid32() = 0 getegid32() = 0 getuid32() = 0 getgid32() = 0 access("/bin/bash", X_OK) = 0 stat64("/bin/bash", {st_mode=S_IFREG|0755, st_size=1427884, ...}) = 0 geteuid32() = 0 getegid32() = 0 getuid32() = 0 getgid32() = 0 access("/bin/bash", R_OK) = 0 stat64("/bin/bash", {st_mode=S_IFREG|0755, st_size=1427884, ...}) = 0 stat64("/bin/bash", {st_mode=S_IFREG|0755, st_size=1427884, ...}) = 0 geteuid32() = 0 getegid32() = 0 getuid32() = 0 getgid32() = 0 access("/bin/bash", X_OK) = 0 stat64("/bin/bash", {st_mode=S_IFREG|0755, st_size=1427884, ...}) = 0 geteuid32() = 0 getegid32() = 0 getuid32() = 0 getgid32() = 0 access("/bin/bash", R_OK) = 0 gettimeofday({1577967589, 497543}, NULL) = 0 getpgrp() = 954 rt_sigaction(SIGCHLD, {0x2e754, [], SA_RESTART|0x4000000}, {SIG_DFL, [], SA_RESTART|0x4000000}, 8) = 0 getrlimit(RLIMIT_NPROC, {rlim_cur=962, rlim_max=962}) = 0 rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 getpeername(0, 0xbeb8dbb8, [16]) = -1 ENOTSOCK (Socket operation on non-socket) rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 open("/sys/bus/platform/drivers/gpio-keys/bind", O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE, 0666) = 3 fcntl64(1, F_GETFD) = 0 fcntl64(1, F_DUPFD, 10) = 10 fcntl64(1, F_GETFD) = 0 fcntl64(10, F_SETFD, FD_CLOEXEC) = 0 dup2(3, 1) = 1 close(3) = 0 fstat64(1, {st_mode=S_IFREG|0200, st_size=4096, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb6f6f000 write(1, "1\n", 2) = -1 ENODEV (No such device) fstat64(2, {st_mode=S_IFCHR|0600, st_rdev=makedev(207, 20), ...}) = 0 ioctl(2, SNDCTL_TMR_TIMEBASE or SNDRV_TIMER_IOCTL_NEXT_DEVICE or TCGETS, {B115200 opost isig icanon echo ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb6f6e000 write(2, "bash: line 0: echo: write error:"..., 48bash: line 0: echo: write error: No such device ) = 48 dup2(10, 1) = 1 fcntl64(10, F_GETFD) = 0x1 (flags FD_CLOEXEC) close(10) = 0 rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 exit_group(1) = ? +++ exited with 1 +++ root 12:19:49 : ~ # strace bash -c 'echo 1 > /sys/bus/platform/drivers/gpio-keys/bind ' root 12:19:56 : ~ # root 12:19:56 : ~ # find /sys -name \*key\* /sys/bus/platform/devices/imx-keypad /sys/bus/platform/drivers/matrix-keypad /sys/bus/platform/drivers/gpio-keys-polled /sys/bus/platform/drivers/gpio-keys /sys/bus/platform/drivers/imx-keypad /sys/bus/platform/drivers/imx-keypad/imx-keypad /sys/devices/platform/imx-keypad /sys/devices/platform/imx-keypad/input/input0/capabilities/key /sys/kernel/slab/key_jar /sys/module/keyboard root 12:20:00 : ~ # ls -l /sys/bus/platform/drivers/matrix-keypad/ total 0 --w------- 1 root root 4096 Jan 2 11:47 bind --w------- 1 root root 4096 Jan 2 11:47 uevent --w------- 1 root root 4096 Jan 2 11:47 unbind root 12:20:10 : ~ # echo 1 > /sys/bus/platform/drivers/matrix-keypad/bind -bash: echo: write error: No such device root 12:20:20 : ~ # echo 1 > /sys/bus/platform/drivers/imx-keypad/ -bash: /sys/bus/platform/drivers/imx-keypad/: Is a directory root 12:20:29 : ~ # echo 1 > /sys/bus/platform/drivers/imx-keypad/ bind imx-keypad/ uevent unbind root 12:20:29 : ~ # echo 1 > /sys/bus/platform/drivers/imx-keypad/bind -bash: echo: write error: No such device root 12:20:33 : ~ # cd /sys root 12:26:30 : /sys # ls -l total 0 drwxr-xr-x 2 root root 0 Jan 2 11:47 block drwxr-xr-x 15 root root 0 Jan 2 11:43 bus drwxr-xr-x 39 root root 0 Jan 2 11:43 class drwxr-xr-x 4 root root 0 Jan 2 11:47 dev drwxr-xr-x 5 root root 0 Jan 2 11:43 devices drwxr-xr-x 2 root root 0 Jan 2 11:47 firmware drwxr-xr-x 4 root root 0 Jan 2 11:43 fs drwxr-xr-x 5 root root 0 Jan 2 11:47 kernel drwxr-xr-x 47 root root 0 Jan 2 11:43 module drwxr-xr-x 2 root root 0 Jan 2 11:47 power root 12:26:31 : /sys # cd module/ root 12:26:45 : /sys/module # ls -l total 0 drwxr-xr-x 7 root root 0 Jan 2 11:43 8188eu drwxr-xr-x 6 root root 0 Jan 2 11:43 ads7953 drwxr-xr-x 3 root root 0 Jan 2 11:47 auth_rpcgss drwxr-xr-x 3 root root 0 Jan 2 11:47 block drwxr-xr-x 3 root root 0 Jan 2 11:47 cfg80211 drwxr-xr-x 3 root root 0 Jan 2 11:47 cpuidle drwxr-xr-x 3 root root 0 Jan 2 11:47 dns_resolver drwxr-xr-x 3 root root 0 Jan 2 11:47 ehci_hcd drwxr-xr-x 3 root root 0 Jan 2 11:47 firmware_class drwxr-xr-x 3 root root 0 Jan 2 11:47 hid drwxr-xr-x 2 root root 0 Jan 2 11:47 input_polldev drwxr-xr-x 3 root root 0 Jan 2 11:43 ipv6 drwxr-xr-x 3 root root 0 Jan 2 11:47 kernel drwxr-xr-x 3 root root 0 Jan 2 11:47 keyboard drwxr-xr-x 3 root root 0 Jan 2 11:47 lockd drwxr-xr-x 3 root root 0 Jan 2 11:47 loop drwxr-xr-x 3 root root 0 Jan 2 11:47 mac80211 drwxr-xr-x 3 root root 0 Jan 2 11:47 mmc_core drwxr-xr-x 3 root root 0 Jan 2 11:47 mmcblk drwxr-xr-x 3 root root 0 Jan 2 11:47 nfs drwxr-xr-x 3 root root 0 Jan 2 11:47 printk drwxr-xr-x 3 root root 0 Jan 2 11:47 random drwxr-xr-x 3 root root 0 Jan 2 11:47 rcupdate drwxr-xr-x 3 root root 0 Jan 2 11:47 rcutree drwxr-xr-x 2 root root 0 Jan 2 11:47 rt2800lib drwxr-xr-x 4 root root 0 Jan 2 11:47 rt2800usb drwxr-xr-x 2 root root 0 Jan 2 11:47 rt2x00lib drwxr-xr-x 2 root root 0 Jan 2 11:47 rt2x00usb drwxr-xr-x 2 root root 0 Jan 2 11:47 rtc_pcf2123 drwxr-xr-x 4 root root 0 Jan 2 11:47 rtl8192cu drwxr-xr-x 3 root root 0 Jan 2 11:47 scsi_mod drwxr-xr-x 3 root root 0 Jan 2 11:47 sdhci drwxr-xr-x 3 root root 0 Jan 2 11:47 sg drwxr-xr-x 3 root root 0 Jan 2 11:47 sit drwxr-xr-x 3 root root 0 Jan 2 11:47 spidev drwxr-xr-x 3 root root 0 Jan 2 11:47 spurious drwxr-xr-x 3 root root 0 Jan 2 11:47 sunrpc drwxr-xr-x 3 root root 0 Jan 2 11:47 tcp_cubic drwxr-xr-x 2 root root 0 Jan 2 11:47 ubi drwxr-xr-x 2 root root 0 Jan 2 11:47 ubifs drwxr-xr-x 4 root root 0 Jan 2 11:47 usb_storage drwxr-xr-x 4 root root 0 Jan 2 11:47 usbcore drwxr-xr-x 4 root root 0 Jan 2 11:47 usbhid drwxr-xr-x 3 root root 0 Jan 2 11:47 vt drwxr-xr-x 3 root root 0 Jan 2 11:47 workqueue root 12:26:46 : /sys/module # cd keyboard/ root 12:27:03 : /sys/module/keyboard # ls -l total 0 drwxr-xr-x 2 root root 0 Jan 2 11:47 parameters --w------- 1 root root 4096 Jan 2 11:47 uevent root 12:27:04 : /sys/module/keyboard # cd parameters/ root 12:27:09 : /sys/module/keyboard/parameters # ls -l total 0 -rw-r--r-- 1 root root 4096 Jan 2 11:47 brl_nbchords -rw-r--r-- 1 root root 4096 Jan 2 11:47 brl_timeout root 12:27:10 : /sys/module/keyboard/parameters # cat * 1 300 root 12:27:13 : /sys/module/keyboard/parameters # cd .. root 12:27:16 : /sys/module/keyboard # cd .. root 12:27:17 : /sys/module # ls -l total 0 drwxr-xr-x 7 root root 0 Jan 2 11:43 8188eu drwxr-xr-x 6 root root 0 Jan 2 11:43 ads7953 drwxr-xr-x 3 root root 0 Jan 2 11:47 auth_rpcgss drwxr-xr-x 3 root root 0 Jan 2 11:47 block drwxr-xr-x 3 root root 0 Jan 2 11:47 cfg80211 drwxr-xr-x 3 root root 0 Jan 2 11:47 cpuidle drwxr-xr-x 3 root root 0 Jan 2 11:47 dns_resolver drwxr-xr-x 3 root root 0 Jan 2 11:47 ehci_hcd drwxr-xr-x 3 root root 0 Jan 2 11:47 firmware_class drwxr-xr-x 3 root root 0 Jan 2 11:47 hid drwxr-xr-x 2 root root 0 Jan 2 11:47 input_polldev drwxr-xr-x 3 root root 0 Jan 2 11:43 ipv6 drwxr-xr-x 3 root root 0 Jan 2 11:47 kernel drwxr-xr-x 3 root root 0 Jan 2 11:47 keyboard drwxr-xr-x 3 root root 0 Jan 2 11:47 lockd drwxr-xr-x 3 root root 0 Jan 2 11:47 loop drwxr-xr-x 3 root root 0 Jan 2 11:47 mac80211 drwxr-xr-x 3 root root 0 Jan 2 11:47 mmc_core drwxr-xr-x 3 root root 0 Jan 2 11:47 mmcblk drwxr-xr-x 3 root root 0 Jan 2 11:47 nfs drwxr-xr-x 3 root root 0 Jan 2 11:47 printk drwxr-xr-x 3 root root 0 Jan 2 11:47 random drwxr-xr-x 3 root root 0 Jan 2 11:47 rcupdate drwxr-xr-x 3 root root 0 Jan 2 11:47 rcutree drwxr-xr-x 2 root root 0 Jan 2 11:47 rt2800lib drwxr-xr-x 4 root root 0 Jan 2 11:47 rt2800usb drwxr-xr-x 2 root root 0 Jan 2 11:47 rt2x00lib drwxr-xr-x 2 root root 0 Jan 2 11:47 rt2x00usb drwxr-xr-x 2 root root 0 Jan 2 11:47 rtc_pcf2123 drwxr-xr-x 4 root root 0 Jan 2 11:47 rtl8192cu drwxr-xr-x 3 root root 0 Jan 2 11:47 scsi_mod drwxr-xr-x 3 root root 0 Jan 2 11:47 sdhci drwxr-xr-x 3 root root 0 Jan 2 11:47 sg drwxr-xr-x 3 root root 0 Jan 2 11:47 sit drwxr-xr-x 3 root root 0 Jan 2 11:47 spidev drwxr-xr-x 3 root root 0 Jan 2 11:47 spurious drwxr-xr-x 3 root root 0 Jan 2 11:47 sunrpc drwxr-xr-x 3 root root 0 Jan 2 11:47 tcp_cubic drwxr-xr-x 2 root root 0 Jan 2 11:47 ubi drwxr-xr-x 2 root root 0 Jan 2 11:47 ubifs drwxr-xr-x 4 root root 0 Jan 2 11:47 usb_storage drwxr-xr-x 4 root root 0 Jan 2 11:47 usbcore drwxr-xr-x 4 root root 0 Jan 2 11:47 usbhid drwxr-xr-x 3 root root 0 Jan 2 11:47 vt drwxr-xr-x 3 root root 0 Jan 2 11:47 workqueue root 12:27:18 : /sys/module # find . -name \'key\* root 12:27:26 : /sys/module # find . -name \*key\* ./keyboard root 12:27:32 : /sys/module # cd .. root 12:27:35 : /sys # find . -name \*key\* ./bus/platform/devices/imx-keypad ./bus/platform/drivers/matrix-keypad ./bus/platform/drivers/gpio-keys-polled ./bus/platform/drivers/gpio-keys ./bus/platform/drivers/imx-keypad ./bus/platform/drivers/imx-keypad/imx-keypad ./devices/platform/imx-keypad ./devices/platform/imx-keypad/input/input0/capabilities/key ./kernel/slab/key_jar ./module/keyboard root 12:27:38 : /sys # ls -l ./devices/platform/imx-keypad/input/input0/capabilities/key -r--r--r-- 1 root root 4096 Jan 2 11:47 ./devices/platform/imx-keypad/input/input0/capabilities/key root 12:27:54 : /sys # cat ./devices/platform/imx-keypad/input/input0/capabilities/key 1680 80001f f8000000 10000000 root 12:28:00 : /sys # cat ./devices/platform/imx-keypad/input/input0/capabilities/key 1680 80001f f8000000 10000000 root 12:28:02 : /sys # cat ./devices/platform/imx-keypad/input/input0/capabilities/key 1680 80001f f8000000 10000000 root 12:28:06 : /sys # cat ./devices/platform/imx-keypad/input/input0/capabilities/key 1680 80001f f8000000 10000000 root 12:28:09 : /sys # cat ./devices/platform/imx-keypad/input/input0/capabilities/key 1680 80001f f8000000 10000000 root 12:28:13 : /sys # cat ./devices/platform/imx-keypad/input/input0/capabilities/key 1680 80001f f8000000 10000000 root 12:28:19 : /sys # cat ./devices/platform/imx-keypad/input/input0/capabilities/key 1680 80001f f8000000 10000000 root 12:28:25 : /sys # cat ./devices/platform/imx-keypad/input/input0/capabilities/key 1680 80001f f8000000 10000000 root 12:28:28 : /sys # cat ./devices/platform/imx-keypad/input/input0/capabilities/key 1680 80001f f8000000 10000000 root 12:28:30 : /sys # cat ./devices/platform/imx-keypad/input/input0/capabilities/key 1680 80001f f8000000 10000000 root 12:28:32 : /sys # cat ./devices/platform/imx-keypad/input/input0/capabilities/ abs ev ff key led msc rel snd sw root 12:28:32 : /sys # cat ./devices/platform/imx-keypad/input/input0/capabilities/* 0 100013 0 1680 80001f f8000000 10000000 0 10 0 0 0 root 12:28:43 : /sys # cat ./devices/platform/imx-keypad/input/input0/capabilities/* 0 100013 0 1680 80001f f8000000 10000000 0 10 0 0 0 root 12:28:49 : /sys # cat ./devices/platform/imx-keypad/input/input0/capabilities/* 0 100013 0 1680 80001f f8000000 10000000 0 10 0 0 0 root 12:29:04 : /sys # cat ./devices/platform/imx-keypad/input/input0/capabilities/* 0 100013 0 1680 80001f f8000000 10000000 0 10 0 0 0 root 12:29:11 : /sys # ls -l ./devices/platform/imx-keypad/input/input0/ total 0 drwxr-xr-x 2 root root 0 Jan 2 11:47 capabilities lrwxrwxrwx 1 root root 0 Jan 2 11:47 device -> ../../../imx-keypad drwxr-xr-x 2 root root 0 Jan 2 11:47 id -r--r--r-- 1 root root 4096 Jan 2 11:47 modalias -r--r--r-- 1 root root 4096 Jan 2 11:47 name -r--r--r-- 1 root root 4096 Jan 2 11:47 phys drwxr-xr-x 2 root root 0 Jan 2 11:47 power -r--r--r-- 1 root root 4096 Jan 2 11:47 properties lrwxrwxrwx 1 root root 0 Jan 2 11:47 subsystem -> ../../../../../class/input -rw-r--r-- 1 root root 4096 Jan 2 11:47 uevent -r--r--r-- 1 root root 4096 Jan 2 11:47 uniq root 12:29:19 : /sys # cat ./devices/platform/imx-keypad/input/input0/name imx-keypad root 12:29:29 : /sys # cat ./devices/platform/imx-keypad/input/input0/phys root 12:29:38 : /sys # cat ./devices/platform/imx-keypad/input/input0/modalias input:b0019v0000p0000e0000-e0,1,4,14,kram4,lsfw root 12:29:45 : /sys # cat ./devices/platform/imx-keypad/input/input0/id/ bustype product vendor version root 12:29:45 : /sys # cat ./devices/platform/imx-keypad/input/input0/id/vendor 0000 root 12:30:00 : /sys # cat ./devices/platform/imx-keypad/input/input0/ capabilities/ id/ name power/ subsystem/ uniq device/ modalias phys properties uevent root 12:30:00 : /sys # cat ./devices/platform/imx-keypad/input/input0/device/ driver/ input/ modalias power/ subsystem/ uevent root 12:30:00 : /sys # cat ./devices/platform/imx-keypad/input/input0/device/input/input0/ capabilities/ id/ name power/ subsystem/ uniq device/ modalias phys properties uevent root 12:30:00 : /sys # cat ./devices/platform/imx-keypad/input/input0/device/input/input0/subsystem/input0/ capabilities/ id/ name power/ subsystem/ uniq device/ modalias phys properties uevent root 12:30:00 : /sys # cat ./devices/platform/imx-keypad/input/input0/device/input/input0/subsystem/input0/properties 0 root 12:30:32 : /sys # cat ./devices/platform/imx-keypad/input/input0/device/input/input0/subsystem/input0/properties 0 root 12:30:36 : /sys # cat ./devices/platform/imx-keypad/input/input0/device/input/input0/subsystem/input0/properties 0 root 12:30:38 : /sys # cat ./devices/platform/imx-keypad/input/input0/device/input/input0/subsystem/input0/properties 0 root 12:30:41 : /sys # find . -name event\* -ls find: unrecognized: -ls BusyBox v1.20.1 (2019-12-17 15:35:25 CET) multi-call binary. Usage: find [PATH]... [OPTIONS] [ACTIONS] Search for files and perform actions on them. First failed action stops processing of current file. Defaults: PATH is current directory, action is '-print' -follow Follow symlinks -xdev Don't descend directories on other filesystems -maxdepth N Descend at most N levels. -maxdepth 0 applies actions to command line arguments only -mindepth N Don't act on first N levels -depth Act on directory *after* traversing it Actions: ( ACTIONS ) Group actions for -o / -a ! ACT Invert ACT's success/failure ACT1 [-a] ACT2 If ACT1 fails, stop, else do ACT2 ACT1 -o ACT2 If ACT1 succeeds, stop, else do ACT2 Note: -a has higher priority than -o -name PATTERN Match file name (w/o directory name) to PATTERN -iname PATTERN Case insensitive -name -path PATTERN Match path to PATTERN -ipath PATTERN Case insensitive -path -regex PATTERN Match path to regex PATTERN -type X File type is X (one of: f,d,l,b,c,...) -perm MASK At least one mask bit (+MASK), all bits (-MASK), or exactly MASK bits are set in file's mode -mtime DAYS mtime is greater than (+N), less than (-N), or exactly N days in the past -mmin MINS mtime is greater than (+N), less than (-N), or exactly N minutes in the past -newer FILE mtime is more recent than FILE's -inum N File has inode number N -user NAME/ID File is owned by given user -group NAME/ID File is owned by given group -size N[bck] File size is N (c:bytes,k:kbytes,b:512 bytes(def.)) +/-N: file size is bigger/smaller than N -prune If current file is directory, don't descend into it If none of the following actions is specified, -print is assumed -print Print file name -print0 Print file name, NUL terminated -exec CMD ARG ; Run CMD with all instances of {} replaced by file name. Fails if CMD exits with nonzero root 12:34:06 : /sys # find . -name event\* ./kernel/slab/eventpoll_epi ./kernel/slab/eventpoll_pwq ./module/block/parameters/events_dfl_poll_msecs root 12:34:10 : /sys # find . -name uevent\* ./bus/cpu/uevent ./bus/i2c/drivers/dummy/uevent ./bus/i2c/drivers/ad7414/uevent ./bus/i2c/uevent ./bus/hid/drivers/hid-generic/uevent ./bus/hid/uevent ./bus/mmc/drivers/mmc_test/uevent ./bus/mmc/drivers/mmcblk/uevent ./bus/mmc/uevent ./bus/spi/drivers/rtc-pcf2123/uevent ./bus/spi/drivers/spidev/uevent ./bus/spi/drivers/ads7953_spi_driver/uevent ./bus/spi/uevent ./bus/usb/drivers/hub/uevent ./bus/usb/drivers/usb/uevent ./bus/usb/drivers/usbfs/uevent ./bus/usb/drivers/usb-storage/uevent ./bus/usb/drivers/rt2800usb/uevent ./bus/usb/drivers/usbhid/uevent ./bus/usb/drivers/rtl8188eu/uevent ./bus/usb/drivers/rtl8192cu/uevent ./bus/usb/uevent ./bus/scsi/drivers/sd/uevent ./bus/scsi/uevent ./bus/sdio/uevent ./bus/clocksource/uevent ./bus/serio/drivers/atkbd/uevent ./bus/serio/uevent ./bus/workqueue/uevent ./bus/platform/drivers/fec/uevent ./bus/platform/drivers/fsl-usb2-mph-dr/uevent ./bus/platform/drivers/physmap-flash/uevent ./bus/platform/drivers/platform-lcd/uevent ./bus/platform/drivers/sdhci-esdhc-imx/uevent ./bus/platform/drivers/spi_gpio/uevent ./bus/platform/drivers/alarmtimer/uevent ./bus/platform/drivers/matrix-keypad/uevent ./bus/platform/drivers/spi_imx/uevent ./bus/platform/drivers/gpio-keys-polled/uevent ./bus/platform/drivers/gpio-keys/uevent ./bus/platform/drivers/imx-fb/uevent ./bus/platform/drivers/mxc-ehci/uevent ./bus/platform/drivers/imx-keypad/uevent ./bus/platform/drivers/mxc-mmc/uevent ./bus/platform/drivers/mxc_nand/uevent ./bus/platform/drivers/mxs_phy/uevent ./bus/platform/drivers/imx-sdma/uevent ./bus/platform/drivers/imx-uart/uevent ./bus/platform/drivers/fsl-usb2-udc/uevent ./bus/platform/drivers/imx-i2c/uevent ./bus/platform/drivers/imx-pwm/uevent ./bus/platform/drivers/mx25-adc/uevent ./bus/platform/drivers/gpio-mxc/uevent ./bus/platform/drivers/basic-mmio-gpio/uevent ./bus/platform/uevent ./bus/mdio_bus/drivers/SMSC LAN8710!LAN8720/uevent ./bus/mdio_bus/drivers/SMSC LAN911x Internal PHY/uevent ./bus/mdio_bus/drivers/Generic PHY/uevent ./bus/mdio_bus/drivers/SMSC LAN8187/uevent ./bus/mdio_bus/drivers/SMSC LAN8700/uevent ./bus/mdio_bus/drivers/SMSC LAN83C185/uevent ./bus/mdio_bus/uevent ./devices/system/cpu/cpu0/uevent ./devices/system/cpu/uevent ./devices/system/clocksource/clocksource0/uevent ./devices/system/clocksource/uevent ./devices/virtual/vc/vcs/uevent ./devices/virtual/vc/vcs1/uevent ./devices/virtual/vc/vcsa/uevent ./devices/virtual/vc/vcsa1/uevent ./devices/virtual/bdi/7:0/uevent ./devices/virtual/bdi/7:1/uevent ./devices/virtual/bdi/7:2/uevent ./devices/virtual/bdi/7:3/uevent ./devices/virtual/bdi/7:4/uevent ./devices/virtual/bdi/7:5/uevent ./devices/virtual/bdi/7:6/uevent ./devices/virtual/bdi/7:7/uevent ./devices/virtual/bdi/31:0/uevent ./devices/virtual/bdi/31:1/uevent ./devices/virtual/bdi/31:2/uevent ./devices/virtual/bdi/31:3/uevent ./devices/virtual/bdi/31:4/uevent ./devices/virtual/bdi/default/uevent ./devices/virtual/bdi/ubifs_0_0/uevent ./devices/virtual/bdi/ubifs_1_0/uevent ./devices/virtual/bdi/ubifs_1_1/uevent ./devices/virtual/bdi/mtd-romap/uevent ./devices/virtual/bdi/mtd-rwmap/uevent ./devices/virtual/bdi/mtd-unmap/uevent ./devices/virtual/mem/mem/uevent ./devices/virtual/mem/full/uevent ./devices/virtual/mem/kmem/uevent ./devices/virtual/mem/kmsg/uevent ./devices/virtual/mem/null/uevent ./devices/virtual/mem/zero/uevent ./devices/virtual/mem/random/uevent ./devices/virtual/mem/urandom/uevent ./devices/virtual/net/sit0/uevent ./devices/virtual/net/lo/uevent ./devices/virtual/ubi/ubi0/ubi0_0/uevent ./devices/virtual/ubi/ubi0/uevent ./devices/virtual/ubi/ubi1/ubi1_0/uevent ./devices/virtual/ubi/ubi1/ubi1_1/uevent ./devices/virtual/ubi/ubi1/uevent ./devices/virtual/tty/tty/uevent ./devices/virtual/tty/ptmx/uevent ./devices/virtual/tty/tty0/uevent ./devices/virtual/tty/tty1/uevent ./devices/virtual/tty/tty2/uevent ./devices/virtual/tty/tty3/uevent ./devices/virtual/tty/tty4/uevent ./devices/virtual/tty/tty5/uevent ./devices/virtual/tty/tty6/uevent ./devices/virtual/tty/tty7/uevent ./devices/virtual/tty/tty8/uevent ./devices/virtual/tty/tty9/uevent ./devices/virtual/tty/console/uevent ./devices/virtual/tty/tty10/uevent ./devices/virtual/tty/tty11/uevent ./devices/virtual/tty/tty12/uevent ./devices/virtual/tty/tty13/uevent ./devices/virtual/tty/tty14/uevent ./devices/virtual/tty/tty15/uevent ./devices/virtual/tty/tty16/uevent ./devices/virtual/tty/tty17/uevent ./devices/virtual/tty/tty18/uevent ./devices/virtual/tty/tty19/uevent ./devices/virtual/tty/tty20/uevent ./devices/virtual/tty/tty21/uevent ./devices/virtual/tty/tty22/uevent ./devices/virtual/tty/tty23/uevent ./devices/virtual/tty/tty24/uevent ./devices/virtual/tty/tty25/uevent ./devices/virtual/tty/tty26/uevent ./devices/virtual/tty/tty27/uevent ./devices/virtual/tty/tty28/uevent ./devices/virtual/tty/tty29/uevent ./devices/virtual/tty/tty30/uevent ./devices/virtual/tty/tty31/uevent ./devices/virtual/tty/tty32/uevent ./devices/virtual/tty/tty33/uevent ./devices/virtual/tty/tty34/uevent ./devices/virtual/tty/tty35/uevent ./devices/virtual/tty/tty36/uevent ./devices/virtual/tty/tty37/uevent ./devices/virtual/tty/tty38/uevent ./devices/virtual/tty/tty39/uevent ./devices/virtual/tty/tty40/uevent ./devices/virtual/tty/tty41/uevent ./devices/virtual/tty/tty42/uevent ./devices/virtual/tty/tty43/uevent ./devices/virtual/tty/tty44/uevent ./devices/virtual/tty/tty45/uevent ./devices/virtual/tty/tty46/uevent ./devices/virtual/tty/tty47/uevent ./devices/virtual/tty/tty48/uevent ./devices/virtual/tty/tty49/uevent ./devices/virtual/tty/tty50/uevent ./devices/virtual/tty/tty51/uevent ./devices/virtual/tty/tty52/uevent ./devices/virtual/tty/tty53/uevent ./devices/virtual/tty/tty54/uevent ./devices/virtual/tty/tty55/uevent ./devices/virtual/tty/tty56/uevent ./devices/virtual/tty/tty57/uevent ./devices/virtual/tty/tty58/uevent ./devices/virtual/tty/tty59/uevent ./devices/virtual/tty/tty60/uevent ./devices/virtual/tty/tty61/uevent ./devices/virtual/tty/tty62/uevent ./devices/virtual/tty/tty63/uevent ./devices/virtual/misc/cpu_dma_latency/uevent ./devices/virtual/misc/network_latency/uevent ./devices/virtual/misc/ubi_ctrl/uevent ./devices/virtual/misc/autofs/uevent ./devices/virtual/misc/loop-control/uevent ./devices/virtual/misc/network_throughput/uevent ./devices/virtual/block/loop0/uevent ./devices/virtual/block/loop1/uevent ./devices/virtual/block/loop2/uevent ./devices/virtual/block/loop3/uevent ./devices/virtual/block/loop4/uevent ./devices/virtual/block/loop5/uevent ./devices/virtual/block/loop6/uevent ./devices/virtual/block/loop7/uevent ./devices/virtual/graphics/fbcon/uevent ./devices/virtual/workqueue/writeback/uevent ./devices/virtual/workqueue/uevent ./devices/virtual/usbmon/usbmon0/uevent ./devices/virtual/vtconsole/vtcon0/uevent ./devices/virtual/vtconsole/vtcon1/uevent ./devices/platform/imx21-uart.1/tty/ttymxc1/uevent ./devices/platform/imx21-uart.1/uevent ./devices/platform/imx21-uart.4/tty/ttymxc4/uevent ./devices/platform/imx21-uart.4/uevent ./devices/platform/imxdi_rtc.0/uevent ./devices/platform/imx21-i2c.0/i2c-0/i2c-dev/i2c-0/uevent ./devices/platform/imx21-i2c.0/i2c-0/uevent ./devices/platform/imx21-i2c.0/uevent ./devices/platform/mxc-ehci.1/usb1/ep_00/uevent ./devices/platform/mxc-ehci.1/usb1/uevent ./devices/platform/mxc-ehci.1/usb1/1-0:1.0/ep_81/uevent ./devices/platform/mxc-ehci.1/usb1/1-0:1.0/port1/uevent ./devices/platform/mxc-ehci.1/usb1/1-0:1.0/uevent ./devices/platform/mxc-ehci.1/uevent ./devices/platform/mxc-ehci.1/usbmon/usbmon1/uevent ./devices/platform/alarmtimer/uevent ./devices/platform/imx25-nand.0/mtd/mtd0/mtdblock0/uevent ./devices/platform/imx25-nand.0/mtd/mtd0/uevent ./devices/platform/imx25-nand.0/mtd/mtd1/mtdblock1/uevent ./devices/platform/imx25-nand.0/mtd/mtd1/uevent ./devices/platform/imx25-nand.0/mtd/mtd2/mtdblock2/uevent ./devices/platform/imx25-nand.0/mtd/mtd2/uevent ./devices/platform/imx25-nand.0/mtd/mtd3/mtdblock3/uevent ./devices/platform/imx25-nand.0/mtd/mtd3/uevent ./devices/platform/imx25-nand.0/mtd/mtd4/mtdblock4/uevent ./devices/platform/imx25-nand.0/mtd/mtd4/uevent ./devices/platform/imx25-nand.0/mtd/mtd0ro/uevent ./devices/platform/imx25-nand.0/mtd/mtd1ro/uevent ./devices/platform/imx25-nand.0/mtd/mtd2ro/uevent ./devices/platform/imx25-nand.0/mtd/mtd3ro/uevent ./devices/platform/imx25-nand.0/mtd/mtd4ro/uevent ./devices/platform/imx25-nand.0/uevent ./devices/platform/imx31-audmux.0/uevent ./devices/platform/imx21-fb.0/graphics/fb0/uevent ./devices/platform/imx21-fb.0/uevent ./devices/platform/imx2-wdt.0/uevent ./devices/platform/imx-keypad/input/input0/uevent ./devices/platform/imx-keypad/uevent ./devices/platform/mxc_ahb/imx35-sdma/dma/dma0chan10/uevent ./devices/platform/mxc_ahb/imx35-sdma/dma/dma0chan11/uevent ./devices/platform/mxc_ahb/imx35-sdma/dma/dma0chan12/uevent ./devices/platform/mxc_ahb/imx35-sdma/dma/dma0chan13/uevent ./devices/platform/mxc_ahb/imx35-sdma/dma/dma0chan14/uevent ./devices/platform/mxc_ahb/imx35-sdma/dma/dma0chan15/uevent ./devices/platform/mxc_ahb/imx35-sdma/dma/dma0chan16/uevent ./devices/platform/mxc_ahb/imx35-sdma/dma/dma0chan17/uevent ./devices/platform/mxc_ahb/imx35-sdma/dma/dma0chan18/uevent ./devices/platform/mxc_ahb/imx35-sdma/dma/dma0chan19/uevent ./devices/platform/mxc_ahb/imx35-sdma/dma/dma0chan20/uevent ./devices/platform/mxc_ahb/imx35-sdma/dma/dma0chan21/uevent ./devices/platform/mxc_ahb/imx35-sdma/dma/dma0chan22/uevent ./devices/platform/mxc_ahb/imx35-sdma/dma/dma0chan23/uevent ./devices/platform/mxc_ahb/imx35-sdma/dma/dma0chan24/uevent ./devices/platform/mxc_ahb/imx35-sdma/dma/dma0chan25/uevent ./devices/platform/mxc_ahb/imx35-sdma/dma/dma0chan26/uevent ./devices/platform/mxc_ahb/imx35-sdma/dma/dma0chan27/uevent ./devices/platform/mxc_ahb/imx35-sdma/dma/dma0chan28/uevent ./devices/platform/mxc_ahb/imx35-sdma/dma/dma0chan29/uevent ./devices/platform/mxc_ahb/imx35-sdma/dma/dma0chan30/uevent ./devices/platform/mxc_ahb/imx35-sdma/dma/dma0chan0/uevent ./devices/platform/mxc_ahb/imx35-sdma/dma/dma0chan1/uevent ./devices/platform/mxc_ahb/imx35-sdma/dma/dma0chan2/uevent ./devices/platform/mxc_ahb/imx35-sdma/dma/dma0chan3/uevent ./devices/platform/mxc_ahb/imx35-sdma/dma/dma0chan4/uevent ./devices/platform/mxc_ahb/imx35-sdma/dma/dma0chan5/uevent ./devices/platform/mxc_ahb/imx35-sdma/dma/dma0chan6/uevent ./devices/platform/mxc_ahb/imx35-sdma/dma/dma0chan7/uevent ./devices/platform/mxc_ahb/imx35-sdma/dma/dma0chan8/uevent ./devices/platform/mxc_ahb/imx35-sdma/dma/dma0chan9/uevent ./devices/platform/mxc_ahb/imx35-sdma/uevent ./devices/platform/mxc_ahb/uevent ./devices/platform/mxc_aips/uevent ./devices/platform/mxc_aips/imx35-gpio.0/gpio/gpiochip0/uevent ./devices/platform/mxc_aips/imx35-gpio.0/uevent ./devices/platform/mxc_aips/imx35-gpio.1/gpio/gpiochip32/uevent ./devices/platform/mxc_aips/imx35-gpio.1/uevent ./devices/platform/mxc_aips/imx35-gpio.2/gpio/gpiochip64/uevent ./devices/platform/mxc_aips/imx35-gpio.2/uevent ./devices/platform/mxc_aips/imx35-gpio.3/gpio/gpiochip96/uevent ./devices/platform/mxc_aips/imx35-gpio.3/gpio/gpio120/uevent ./devices/platform/mxc_aips/imx35-gpio.3/uevent ./devices/platform/imx25-fec.0/net/eth0/uevent ./devices/platform/imx25-fec.0/uevent ./devices/platform/imx25-fec.0/mdio_bus/imx25-fec-1/uevent ./devices/platform/uevent ./devices/platform/imx35-cspi.0/spi_master/spi0/spi0.1/uevent ./devices/platform/imx35-cspi.0/spi_master/spi0/spi0.3/spidev/spidev0.3/uevent ./devices/platform/imx35-cspi.0/spi_master/spi0/spi0.3/uevent ./devices/platform/imx35-cspi.0/spi_master/spi0/uevent ./devices/platform/imx35-cspi.0/uevent ./devices/platform/imx35-cspi.1/spi_master/spi1/spi1.0/rtc/rtc0/uevent ./devices/platform/imx35-cspi.1/spi_master/spi1/spi1.0/uevent ./devices/platform/imx35-cspi.1/spi_master/spi1/spi1.1/spidev/spidev1.1/uevent ./devices/platform/imx35-cspi.1/spi_master/spi1/spi1.1/uevent ./devices/platform/imx35-cspi.1/spi_master/spi1/uevent ./devices/platform/imx35-cspi.1/uevent ./devices/platform/imx-udc-mx27/udc/imx-udc-mx27/uevent ./devices/platform/imx-udc-mx27/gadget/uevent ./devices/platform/imx-udc-mx27/uevent ./devices/platform/regulatory.0/uevent ./kernel/uevent_helper ./kernel/uevent_seqnum ./module/sg/uevent ./module/vt/uevent ./module/mmc_core/uevent ./module/hid/uevent ./module/nfs/uevent ./module/sit/uevent ./module/ubi/uevent ./module/tcp_cubic/uevent ./module/ipv6/uevent ./module/loop/uevent ./module/cfg80211/uevent ./module/cpuidle/uevent ./module/rcutree/uevent ./module/dns_resolver/uevent ./module/block/uevent ./module/auth_rpcgss/uevent ./module/lockd/uevent ./module/sdhci/uevent ./module/ubifs/uevent ./module/mac80211/uevent ./module/firmware_class/uevent ./module/rtc_pcf2123/uevent ./module/workqueue/uevent ./module/rt2x00lib/uevent ./module/rt2x00usb/uevent ./module/spurious/uevent ./module/usb_storage/uevent ./module/scsi_mod/uevent ./module/rt2800lib/uevent ./module/rt2800usb/uevent ./module/ehci_hcd/uevent ./module/kernel/uevent ./module/mmcblk/uevent ./module/ads7953/uevent ./module/printk/uevent ./module/random/uevent ./module/spidev/uevent ./module/sunrpc/uevent ./module/usbhid/uevent ./module/usbcore/uevent ./module/input_polldev/uevent ./module/8188eu/uevent ./module/rcupdate/uevent ./module/keyboard/uevent ./module/rtl8192cu/uevent root 12:34:17 : /sys # find . -name uevent\* | fgrep imx ./bus/platform/drivers/sdhci-esdhc-imx/uevent ./bus/platform/drivers/spi_imx/uevent ./bus/platform/drivers/imx-fb/uevent ./bus/platform/drivers/imx-keypad/uevent ./bus/platform/drivers/imx-sdma/uevent ./bus/platform/drivers/imx-uart/uevent ./bus/platform/drivers/imx-i2c/uevent ./bus/platform/drivers/imx-pwm/uevent ./devices/platform/imx21-uart.1/tty/ttymxc1/uevent ./devices/platform/imx21-uart.1/uevent ./devices/platform/imx21-uart.4/tty/ttymxc4/uevent ./devices/platform/imx21-uart.4/uevent ./devices/platform/imxdi_rtc.0/uevent ./devices/platform/imx21-i2c.0/i2c-0/i2c-dev/i2c-0/uevent ./devices/platform/imx21-i2c.0/i2c-0/uevent ./devices/platform/imx21-i2c.0/uevent ./devices/platform/imx25-nand.0/mtd/mtd0/mtdblock0/uevent ./devices/platform/imx25-nand.0/mtd/mtd0/uevent ./devices/platform/imx25-nand.0/mtd/mtd1/mtdblock1/uevent ./devices/platform/imx25-nand.0/mtd/mtd1/uevent ./devices/platform/imx25-nand.0/mtd/mtd2/mtdblock2/uevent ./devices/platform/imx25-nand.0/mtd/mtd2/uevent ./devices/platform/imx25-nand.0/mtd/mtd3/mtdblock3/uevent ./devices/platform/imx25-nand.0/mtd/mtd3/uevent ./devices/platform/imx25-nand.0/mtd/mtd4/mtdblock4/uevent ./devices/platform/imx25-nand.0/mtd/mtd4/uevent ./devices/platform/imx25-nand.0/mtd/mtd0ro/uevent ./devices/platform/imx25-nand.0/mtd/mtd1ro/uevent ./devices/platform/imx25-nand.0/mtd/mtd2ro/uevent ./devices/platform/imx25-nand.0/mtd/mtd3ro/uevent ./devices/platform/imx25-nand.0/mtd/mtd4ro/uevent ./devices/platform/imx25-nand.0/uevent ./devices/platform/imx31-audmux.0/uevent ./devices/platform/imx21-fb.0/graphics/fb0/uevent ./devices/platform/imx21-fb.0/uevent ./devices/platform/imx2-wdt.0/uevent ./devices/platform/imx-keypad/input/input0/uevent ./devices/platform/imx-keypad/uevent ./devices/platform/mxc_ahb/imx35-sdma/dma/dma0chan10/uevent ./devices/platform/mxc_ahb/imx35-sdma/dma/dma0chan11/uevent ./devices/platform/mxc_ahb/imx35-sdma/dma/dma0chan12/uevent ./devices/platform/mxc_ahb/imx35-sdma/dma/dma0chan13/uevent ./devices/platform/mxc_ahb/imx35-sdma/dma/dma0chan14/uevent ./devices/platform/mxc_ahb/imx35-sdma/dma/dma0chan15/uevent ./devices/platform/mxc_ahb/imx35-sdma/dma/dma0chan16/uevent ./devices/platform/mxc_ahb/imx35-sdma/dma/dma0chan17/uevent ./devices/platform/mxc_ahb/imx35-sdma/dma/dma0chan18/uevent ./devices/platform/mxc_ahb/imx35-sdma/dma/dma0chan19/uevent ./devices/platform/mxc_ahb/imx35-sdma/dma/dma0chan20/uevent ./devices/platform/mxc_ahb/imx35-sdma/dma/dma0chan21/uevent ./devices/platform/mxc_ahb/imx35-sdma/dma/dma0chan22/uevent ./devices/platform/mxc_ahb/imx35-sdma/dma/dma0chan23/uevent ./devices/platform/mxc_ahb/imx35-sdma/dma/dma0chan24/uevent ./devices/platform/mxc_ahb/imx35-sdma/dma/dma0chan25/uevent ./devices/platform/mxc_ahb/imx35-sdma/dma/dma0chan26/uevent ./devices/platform/mxc_ahb/imx35-sdma/dma/dma0chan27/uevent ./devices/platform/mxc_ahb/imx35-sdma/dma/dma0chan28/uevent ./devices/platform/mxc_ahb/imx35-sdma/dma/dma0chan29/uevent ./devices/platform/mxc_ahb/imx35-sdma/dma/dma0chan30/uevent ./devices/platform/mxc_ahb/imx35-sdma/dma/dma0chan0/uevent ./devices/platform/mxc_ahb/imx35-sdma/dma/dma0chan1/uevent ./devices/platform/mxc_ahb/imx35-sdma/dma/dma0chan2/uevent ./devices/platform/mxc_ahb/imx35-sdma/dma/dma0chan3/uevent ./devices/platform/mxc_ahb/imx35-sdma/dma/dma0chan4/uevent ./devices/platform/mxc_ahb/imx35-sdma/dma/dma0chan5/uevent ./devices/platform/mxc_ahb/imx35-sdma/dma/dma0chan6/uevent ./devices/platform/mxc_ahb/imx35-sdma/dma/dma0chan7/uevent ./devices/platform/mxc_ahb/imx35-sdma/dma/dma0chan8/uevent ./devices/platform/mxc_ahb/imx35-sdma/dma/dma0chan9/uevent ./devices/platform/mxc_ahb/imx35-sdma/uevent ./devices/platform/mxc_aips/imx35-gpio.0/gpio/gpiochip0/uevent ./devices/platform/mxc_aips/imx35-gpio.0/uevent ./devices/platform/mxc_aips/imx35-gpio.1/gpio/gpiochip32/uevent ./devices/platform/mxc_aips/imx35-gpio.1/uevent ./devices/platform/mxc_aips/imx35-gpio.2/gpio/gpiochip64/uevent ./devices/platform/mxc_aips/imx35-gpio.2/uevent ./devices/platform/mxc_aips/imx35-gpio.3/gpio/gpiochip96/uevent ./devices/platform/mxc_aips/imx35-gpio.3/gpio/gpio120/uevent ./devices/platform/mxc_aips/imx35-gpio.3/uevent ./devices/platform/imx25-fec.0/net/eth0/uevent ./devices/platform/imx25-fec.0/uevent ./devices/platform/imx25-fec.0/mdio_bus/imx25-fec-1/uevent ./devices/platform/imx35-cspi.0/spi_master/spi0/spi0.1/uevent ./devices/platform/imx35-cspi.0/spi_master/spi0/spi0.3/spidev/spidev0.3/uevent ./devices/platform/imx35-cspi.0/spi_master/spi0/spi0.3/uevent ./devices/platform/imx35-cspi.0/spi_master/spi0/uevent ./devices/platform/imx35-cspi.0/uevent ./devices/platform/imx35-cspi.1/spi_master/spi1/spi1.0/rtc/rtc0/uevent ./devices/platform/imx35-cspi.1/spi_master/spi1/spi1.0/uevent ./devices/platform/imx35-cspi.1/spi_master/spi1/spi1.1/spidev/spidev1.1/uevent ./devices/platform/imx35-cspi.1/spi_master/spi1/spi1.1/uevent ./devices/platform/imx35-cspi.1/spi_master/spi1/uevent ./devices/platform/imx35-cspi.1/uevent ./devices/platform/imx-udc-mx27/udc/imx-udc-mx27/uevent ./devices/platform/imx-udc-mx27/gadget/uevent ./devices/platform/imx-udc-mx27/uevent root 12:34:24 : /sys # cat ./devices/platform/imx-keypad/input/input0/uevent PRODUCT=19/0/0/0 NAME="imx-keypad" PROP=0 EV=100013 KEY=1680 80001f f8000000 10000000 MSC=10 MODALIAS=input:b0019v0000p0000e0000-e0,1,4,14,kram4,lsfw root 12:34:40 : /sys # cat ./devices/platform/imx-keypad/input/input0/uevent PRODUCT=19/0/0/0 NAME="imx-keypad" PROP=0 EV=100013 KEY=1680 80001f f8000000 10000000 MSC=10 MODALIAS=input:b0019v0000p0000e0000-e0,1,4,14,kram4,lsfw root 12:34:50 : /sys # cat ./devices/platform/imx-keypad/input/input0/ capabilities/ id/ name power/ subsystem/ uniq device/ modalias phys properties uevent root 12:34:50 : /sys # cat ./devices/platform/imx-keypad/input/input0/device/ driver/ input/ modalias power/ subsystem/ uevent root 12:34:50 : /sys # cat ./devices/platform/imx-keypad/input/input0/device/input/input0/ capabilities/ id/ name power/ subsystem/ uniq device/ modalias phys properties uevent root 12:34:50 : /sys # cat ./devices/platform/imx-keypad/input/input0/device/input/input0/ capabilities/ id/ name power/ subsystem/ uniq device/ modalias phys properties uevent root 12:34:50 : /sys # cat ./devices/platform/imx-keypad/input/input0/device/input/input0/subsystem/input0/ capabilities/ id/ name power/ subsystem/ uniq device/ modalias phys properties uevent root 12:34:50 : /sys # cat ./devices/platform/imx-keypad/input/input0/device/input/input0/subsystem/input0/phys root 12:35:55 : /sys # cat ./devices/platform/imx-keypad/input/input0/device/input/input0/subsystem/input0/phys root 12:36:00 : /sys # od -x ./devices/platform/imx-keypad/input/input0/device/input/input0/subsystem/input0/phys 0000000 000a 0000001 root 12:36:07 : /sys # od -x ./devices/platform/imx-keypad/input/input0/device/input/input0/subsystem/input0/phys 0000000 000a 0000001 root 12:36:11 : /sys # od -x ./devices/platform/imx-keypad/input/input0/device/input/input0/subsystem/input0/phys 0000000 000a 0000001 root 12:36:14 : /sys # od -x ./devices/platform/imx-keypad/input/input0/device/input/input0/subsystem/input0/phys 0000000 000a 0000001 root 12:36:19 : /sys # od -x ./devices/platform/imx-keypad/input/input0/device/input/input0/subsystem/input0/phys 0000000 000a 0000001 root 12:36:21 : /sys # od -x ./devices/platform/imx-keypad/input/input0/device/input/input0/subsystem/input0/phys 0000000 000a 0000001 root 12:36:23 : /sys # find . -name \*key\*poll\* -ls find: unrecognized: -ls BusyBox v1.20.1 (2019-12-17 15:35:25 CET) multi-call binary. Usage: find [PATH]... [OPTIONS] [ACTIONS] Search for files and perform actions on them. First failed action stops processing of current file. Defaults: PATH is current directory, action is '-print' -follow Follow symlinks -xdev Don't descend directories on other filesystems -maxdepth N Descend at most N levels. -maxdepth 0 applies actions to command line arguments only -mindepth N Don't act on first N levels -depth Act on directory *after* traversing it Actions: ( ACTIONS ) Group actions for -o / -a ! ACT Invert ACT's success/failure ACT1 [-a] ACT2 If ACT1 fails, stop, else do ACT2 ACT1 -o ACT2 If ACT1 succeeds, stop, else do ACT2 Note: -a has higher priority than -o -name PATTERN Match file name (w/o directory name) to PATTERN -iname PATTERN Case insensitive -name -path PATTERN Match path to PATTERN -ipath PATTERN Case insensitive -path -regex PATTERN Match path to regex PATTERN -type X File type is X (one of: f,d,l,b,c,...) -perm MASK At least one mask bit (+MASK), all bits (-MASK), or exactly MASK bits are set in file's mode -mtime DAYS mtime is greater than (+N), less than (-N), or exactly N days in the past -mmin MINS mtime is greater than (+N), less than (-N), or exactly N minutes in the past -newer FILE mtime is more recent than FILE's -inum N File has inode number N -user NAME/ID File is owned by given user -group NAME/ID File is owned by given group -size N[bck] File size is N (c:bytes,k:kbytes,b:512 bytes(def.)) +/-N: file size is bigger/smaller than N -prune If current file is directory, don't descend into it If none of the following actions is specified, -print is assumed -print Print file name -print0 Print file name, NUL terminated -exec CMD ARG ; Run CMD with all instances of {} replaced by file name. Fails if CMD exits with nonzero root 13:55:09 : /sys # find . -name \*key\*poll\* ./bus/platform/drivers/gpio-keys-polled root 13:55:13 : /sys # cat ./bus/platform/drivers/gpio-keys-polled/ bind uevent unbind root 13:55:13 : /sys # cat ./bus/platform/drivers/gpio-keys-polled/ bind uevent unbind root 13:55:13 : /sys # cat ./bus/platform/drivers/gpio-keys-polled/bind cat: can't open './bus/platform/drivers/gpio-keys-polled/bind': Permission denied root 13:55:27 : /sys # ls -l ./bus/platform/drivers/gpio-keys-polled/ total 0 --w------- 1 root root 4096 Jan 2 11:47 bind --w------- 1 root root 4096 Jan 2 11:47 uevent --w------- 1 root root 4096 Jan 2 11:47 unbind root 13:55:34 : /sys # echo 1 >./bus/platform/drivers/gpio-keys-polled/bind -bash: echo: write error: No such device root 13:58:20 : /sys # dmesg Booting Linux on physical CPU 0x0 Initializing cgroup subsys cpuset Initializing cgroup subsys cpu Initializing cgroup subsys cpuacct Linux version 3.10.108-rt123-g9de6c66 (rmainz@vm) (gcc version 4.7.2 (OSELAS.Toolchain-2012.12.0) ) #1 PREEMPT RT Tue Dec 17 14:55:12 CET 2019 CPU: ARM926EJ-S [41069264] revision 4 (ARMv5TEJ), cr=00053177 CPU: VIVT data cache, VIVT instruction cache Machine: Eckelmann ECU01 Memory policy: ECC disabled, Data cache writeback On node 0 totalpages: 32768 free_area_init_node: node 0, pgdat c064c070, node_mem_map c067f000 Normal zone: 256 pages used for memmap Normal zone: 0 pages reserved Normal zone: 32768 pages, LIFO batch:7 pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768 pcpu-alloc: [0] 0 Built 1 zonelists in Zone order, mobility grouping on. Total pages: 32512 Kernel command line: console=ttymxc4,115200n consoleblank=0 lpj=995328 mtdparts=mxc_nand:1024k(barebox),1024k(bareboxenv),2432k(history),80M(root),-(var) vt.global_cursor_default=0 ro root=ubi0_0 rootfstype=ubifs ubi.mtd=3,2048 PID hash table entries: 512 (order: -1, 2048 bytes) Dentry cache hash table entries: 16384 (order: 4, 65536 bytes) Inode-cache hash table entries: 8192 (order: 3, 32768 bytes) Memory: 128MB = 128MB total Memory: 123252k/123252k available, 7820k reserved, 0K highmem Virtual kernel memory layout: vector : 0xffff0000 - 0xffff1000 ( 4 kB) fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB) vmalloc : 0xc8800000 - 0xff000000 ( 872 MB) lowmem : 0xc0000000 - 0xc8000000 ( 128 MB) modules : 0xbf000000 - 0xc0000000 ( 16 MB) .text : 0xc0008000 - 0xc05d7eac (5952 kB) .init : 0xc05d8000 - 0xc06119e4 ( 231 kB) .data : 0xc0612000 - 0xc064c8a0 ( 235 kB) .bss : 0xc064c8a0 - 0xc067e978 ( 201 kB) SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1 Preemptible hierarchical RCU implementation. Dump stacks of tasks blocking RCU-preempt GP. NR_IRQS:16 nr_irqs:16 16 MXC IRQ initialized sched_clock: 32 bits at 66MHz, resolution 15ns, wraps every 64585ms Console: colour dummy device 80x30 Calibrating delay loop (skipped) preset value.. 398.13 BogoMIPS (lpj=995328) pid_max: default: 32768 minimum: 301 Mount-cache hash table entries: 512 Initializing cgroup subsys freezer Initializing cgroup subsys blkio CPU: Testing write buffer coherency: ok Setting up static identity map for 0xc0484488 - 0xc04844e0 devtmpfs: initialized NET: Registered protocol family 16 DMA: preallocated 256 KiB pool for atomic coherent allocations gpiochip_add: registered GPIOs 0 to 31 on device: imx35-gpio.0 gpiochip_add: registered GPIOs 32 to 63 on device: imx35-gpio.1 gpiochip_add: registered GPIOs 64 to 95 on device: imx35-gpio.2 gpiochip_add: registered GPIOs 96 to 127 on device: imx35-gpio.3 bio: create slab at 0 SCSI subsystem initialized usbcore: registered new interface driver usbfs usbcore: registered new interface driver hub usbcore: registered new device driver usb i2c i2c-0: IMX I2C adapter registered pps_core: LinuxPPS API ver. 1 registered pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti PTP clock support registered cfg80211: Calling CRDA to update world regulatory domain Switching to clocksource mxc_timer1 NET: Registered protocol family 2 TCP established hash table entries: 1024 (order: 1, 8192 bytes) TCP bind hash table entries: 1024 (order: 2, 24576 bytes) TCP: Hash tables configured (established 1024 bind 1024) TCP: reno registered UDP hash table entries: 256 (order: 2, 16384 bytes) UDP-Lite hash table entries: 256 (order: 2, 16384 bytes) NET: Registered protocol family 1 RPC: Registered named UNIX socket transport module. RPC: Registered udp transport module. RPC: Registered tcp transport module. RPC: Registered tcp NFSv4.1 backchannel transport module. NFS: Registering the id_resolver key type Key type id_resolver registered Key type id_legacy registered msgmni has been set to 240 Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250) io scheduler noop registered io scheduler cfq registered (default) imx-fb imx21-fb.0: i.MX Framebuffer driver Console: switching to colour frame buffer device 40x30 imx-sdma imx35-sdma: initialized Serial: IMX driver imx21-uart.1: ttymxc1 at MMIO 0x43f94000 (irq = 48) is a IMX imx21-uart.4: ttymxc4 at MMIO 0x5002c000 (irq = 56) is a IMX console [ttymxc4] enabled loop: module loaded Trying ONFI probe in 16 bits mode, aborting ! NAND device: Manufacturer ID: 0x2c, Chip ID: 0xb1 (Micron NAND 128MiB 1,8V 16-bit), 128MiB, page size: 2048, OOB size: 64 Scanning device for bad blocks Bad eraseblock 1022 at 0x000007fc0000 Bad eraseblock 1023 at 0x000007fe0000 5 cmdlinepart partitions found on MTD device mxc_nand Creating 5 MTD partitions on "mxc_nand": 0x000000000000-0x000000100000 : "barebox" 0x000000100000-0x000000200000 : "bareboxenv" 0x000000200000-0x000000460000 : "history" 0x000000460000-0x000005460000 : "root" 0x000005460000-0x000008000000 : "var" of_get_named_gpio_flags: can't parse gpios property of_get_named_gpio_flags: can't parse gpios property of_get_named_gpio_flags: can't parse gpios property of_get_named_gpio_flags: can't parse gpios property spi_imx imx35-cspi.0: master is unqueued, this is deprecated spi_imx imx35-cspi.0: probed of_get_named_gpio_flags: can't parse gpios property of_get_named_gpio_flags: can't parse gpios property spi_imx imx35-cspi.1: master is unqueued, this is deprecated spi_imx imx35-cspi.1: probed fec imx25-fec.0 (unregistered net_device): Invalid MAC address: 00:00:00:00:00:00 fec imx25-fec.0 (unregistered net_device): Using random MAC address: d6:d4:f7:dd:87:56 libphy: fec_enet_mii_bus: probed usbcore: registered new interface driver rtl8192cu usbcore: registered new interface driver rt2800usb ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver ehci_hcd: block sizes: qh 64 qtd 96 itd 160 sitd 96 ehci-mxc: Freescale On-Chip EHCI Host driver mxc-ehci mxc-ehci.1: EHCI Host Controller mxc-ehci mxc-ehci.1: new USB bus registered, assigned bus number 1 mxc-ehci mxc-ehci.1: reset hcs_params 0x10011 dbg=0 ind cc=0 pcc=0 ordered ports=1 mxc-ehci mxc-ehci.1: reset hcc_params 0006 thresh 0 uframes 256/512/1024 park mxc-ehci mxc-ehci.1: park 0 mxc-ehci mxc-ehci.1: reset command 0080b02 park=3 ithresh=8 period=1024 Reset HALT mxc-ehci mxc-ehci.1: irq 51, io mem 0x53ff4400 mxc-ehci mxc-ehci.1: init command 0010005 (park)=0 ithresh=1 period=512 RUN mxc-ehci mxc-ehci.1: USB 2.0 started, EHCI 1.00 usb usb1: default language 0x0409 usb usb1: udev 1, busnum 1, minor = 0 usb usb1: New USB device found, idVendor=1d6b, idProduct=0002 usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1 usb usb1: Product: EHCI Host Controller usb usb1: Manufacturer: Linux 3.10.108-rt123-g9de6c66 ehci_hcd usb usb1: SerialNumber: mxc-ehci.1 usb usb1: usb_probe_device usb usb1: configuration #1 chosen from 1 choice usb usb1: adding 1-0:1.0 (config #1, interface 0) hub 1-0:1.0: usb_probe_interface hub 1-0:1.0: usb_probe_interface - got id hub 1-0:1.0: USB hub found hub 1-0:1.0: 1 port detected hub 1-0:1.0: standalone hub hub 1-0:1.0: individual port power switching hub 1-0:1.0: individual port over-current protection hub 1-0:1.0: Single TT hub 1-0:1.0: TT requires at most 8 FS bit times (666 ns) hub 1-0:1.0: power on to power good time: 20ms hub 1-0:1.0: local power source is good hub 1-0:1.0: enabling power on all ports usbcore: registered new interface driver usb-storage input: imx-keypad as /devices/platform/imx-keypad/input/input0 rtc-pcf2123 spi1.0: chip found, driver version 0.6 rtc-pcf2123 spi1.0: spiclk 4000 KHz. rtc-pcf2123 spi1.0: rtc core: registered rtc-pcf2123 as rtc0 i2c /dev entries driver cpuidle: using governor ladder sdhci: Secure Digital Host Controller Interface driver sdhci: Copyright(c) Pierre Ossman sdhci-pltfm: SDHCI platform and OF driver helper usbcore: registered new interface driver usbhid usbhid: USB HID core driver TCP: cubic registered NET: Registered protocol family 10 hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0000 sit: IPv6 over IPv4 tunneling driver NET: Registered protocol family 17 Key type dns_resolver registered UBI: attaching mtd3 to ubi0 UBI: scanning is finished UBI warning: print_rsvd_warning: cannot reserve enough PEBs for bad PEB handling, reserved 8, need 20 UBI: attached mtd3 (name "root", size 80 MiB) to ubi0 UBI: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes UBI: min./max. I/O unit sizes: 2048/2048, sub-page size 512 UBI: VID header offset: 2048 (aligned 2048), data offset: 4096 UBI: good PEBs: 640, bad PEBs: 0, corrupted PEBs: 0 UBI: user volume: 1, internal volumes: 1, max. volumes count: 128 UBI: max/mean erase counter: 104/69, WL threshold: 4096, image sequence number: 24185 UBI: available PEBs: 0, total reserved PEBs: 640, PEBs reserved for bad PEB handling: 8 UBI: background thread "ubi_bgt0d" started, PID 564 rtc-pcf2123 spi1.0: setting system clock to 2020-01-02 11:43:39 UTC (1577965419) UBIFS: mounted UBI device 0, volume 0, name "root", R/O mode UBIFS: LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes UBIFS: FS size: 78344192 bytes (74 MiB, 617 LEBs), journal size 9023488 bytes (8 MiB, 72 LEBs) UBIFS: reserved for root: 0 bytes (0 KiB) UBIFS: media format: w4/r0 (latest is w4/r0), UUID CCA32AB6-CBD9-481A-8B39-705ED27E195D, small LPT model VFS: Mounted root (ubifs filesystem) readonly on device 0:12. devtmpfs: mounted Freeing unused kernel memory: 228K >systemd[1]: systemd 204 running in system mode. (-PAM +LIBWRAP -AUDIT -SELINUX -IMA -SYSVINIT -LIBCRYPTSETUP -GCRYPT -ACL -XZ) >systemd[1]: Set hostname to . >systemd[1]: Cannot add dependency job for unit display-manager.service, ignoring: Unit display-manager.service failed to load: No such file or directory. See system logs and 'systemctl status display-manager.service' for details. >systemd[1]: Starting Forward Password Requests to Wall Directory Watch. >systemd[1]: Started Forward Password Requests to Wall Directory Watch. >systemd[1]: Expecting device dev-ttymxc4.device... >systemd[1]: Starting Remote File Systems. >systemd[1]: Reached target Remote File Systems. >systemd[1]: Starting Timers. >systemd[1]: Reached target Timers. >systemd[1]: Starting Delayed Shutdown Socket. >systemd[1]: Listening on Delayed Shutdown Socket. >systemd[1]: Starting /dev/initctl Compatibility Named Pipe. >systemd[1]: Listening on /dev/initctl Compatibility Named Pipe. >systemd[1]: Starting Dispatch Password Requests to Console Directory Watch. >systemd[1]: Started Dispatch Password Requests to Console Directory Watch. >systemd[1]: Starting Paths. >systemd[1]: Reached target Paths. >systemd[1]: Starting udev Kernel Socket. >systemd[1]: Listening on udev Kernel Socket. >systemd[1]: Starting udev Control Socket. >systemd[1]: Listening on udev Control Socket. >systemd[1]: Starting Journal Socket. >systemd[1]: Listening on Journal Socket. >systemd[1]: Starting udev Coldplug TTY Devices for Getty... >systemd[1]: Starting Apply Kernel Variables... >systemd[1]: Starting Journal Service... >systemd[1]: Started Journal Service. >systemd[1]: Starting Load Kernel Modules... >systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point. >systemd[1]: Started Set Up Additional Binary Formats. >systemd[1]: Starting Create static device nodes in /dev... >systemd[1]: Starting Attach data ubi partition... >systemd[1]: Starting File System Check on Root Device... UBI: attaching mtd4 to ubi1 >systemd-journald[587]: Failed to resolve 'systemd-journal' group: No such process ads7953_init mmc_init() called qa_driver_init() called >systemd-modules-load[590]: Inserted module 'qadriver' >systemd-udevd[622]: starting version 204 UBI: scanning is finished UBI: attached mtd4 (name "var", size 43 MiB) to ubi1 UBI: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes UBI: min./max. I/O unit sizes: 2048/2048, sub-page size 512 UBI: VID header offset: 2048 (aligned 2048), data offset: 4096 UBI: good PEBs: 347, bad PEBs: 2, corrupted PEBs: 0 UBI: user volume: 2, internal volumes: 1, max. volumes count: 128 UBI: max/mean erase counter: 79/42, WL threshold: 4096, image sequence number: 48 UBI: available PEBs: 87, total reserved PEBs: 260, PEBs reserved for bad PEB handling: 18 UBI: background thread "ubi_bgt1d" started, PID 676 UBIFS: background thread "ubifs_bgt1_1" started, PID 695 UBIFS: background thread "ubifs_bgt1_0" started, PID 697 RTW: rtl8188eu v5.2.2.4_25483.20171222 RTW: build time: Dec 17 2019 14:59:14 usbcore: registered new interface driver rtl8188eu UBIFS: mounted UBI device 1, volume 1, name "stat" UBIFS: LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes UBIFS: FS size: 13840384 bytes (13 MiB, 109 LEBs), journal size 1015809 bytes (0 MiB, 6 LEBs) UBIFS: reserved for root: 653715 bytes (638 KiB) UBIFS: media format: w4/r0 (latest is w4/r0), UUID E80C166F-06CC-4970-BC1D-F90E77A0FE3B, small LPT model UBIFS: mounted UBI device 1, volume 0, name "dyn" UBIFS: LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes UBIFS: FS size: 13840384 bytes (13 MiB, 109 LEBs), journal size 1015809 bytes (0 MiB, 6 LEBs) UBIFS: reserved for root: 653715 bytes (638 KiB) UBIFS: media format: w4/r0 (latest is w4/r0), UUID 30205726-B785-418B-A836-DB1A7803510D, small LPT model imx-sdma imx35-sdma: firmware not found fec imx25-fec.0 eth0: no PHY, assuming direct connection to switch libphy: PHY fixed-0:00 not found fec imx25-fec.0 eth0: could not attach to PHY qa_mmc_open() ecu01-mmc: pin PIN_V_NAMUR_VALID = 0 ecu01-mmc: running in WALTERSCHEID mode (12 volt signals). ecu01-compcap: irq=70/70, changed interrupt thread pid=809 to 'SCHED_FIFO'/rtprio=95 ecu01-compcap: irq=69/69, changed interrupt thread pid=815 to 'SCHED_FIFO'/rtprio=95 ecu01-compcap: irq=17/17, changed interrupt thread pid=816 to 'SCHED_FIFO'/rtprio=95 qa_mmc_release() qa_mmc_open() ecu01-compcap: irq=70/70, changed interrupt thread pid=817 to 'SCHED_FIFO'/rtprio=95 ecu01-compcap: irq=69/69, changed interrupt thread pid=818 to 'SCHED_FIFO'/rtprio=95 ecu01-compcap: irq=17/17, changed interrupt thread pid=819 to 'SCHED_FIFO'/rtprio=95 UBIFS: background thread "ubifs_bgt0_0" started, PID 835 UBIFS: background thread "ubifs_bgt0_0" stops UBIFS: background thread "ubifs_bgt0_0" started, PID 855 UBIFS: background thread "ubifs_bgt0_0" stops qa_mmc_release() qa_driver_exit() called root 14:10:10 : /sys # find . -name gpio ./devices/platform/mxc_aips/imx35-gpio.0/gpio ./devices/platform/mxc_aips/imx35-gpio.1/gpio ./devices/platform/mxc_aips/imx35-gpio.2/gpio ./devices/platform/mxc_aips/imx35-gpio.3/gpio ./class/gpio root 14:23:37 : /sys # cd class/gpio root 14:23:41 : /sys/class/gpio # ls -la total 0 drwxr-xr-x 2 root root 0 Jan 2 11:43 . drwxr-xr-x 39 root root 0 Jan 2 11:43 .. --w------- 1 root root 4096 Jan 2 11:44 export lrwxrwxrwx 1 root root 0 Jan 2 11:44 gpio120 -> ../../devices/platform/mxc_aips/imx35-gpio.3/gpio/gpio120 lrwxrwxrwx 1 root root 0 Jan 2 11:47 gpiochip0 -> ../../devices/platform/mxc_aips/imx35-gpio.0/gpio/gpiochip0 lrwxrwxrwx 1 root root 0 Jan 2 11:47 gpiochip32 -> ../../devices/platform/mxc_aips/imx35-gpio.1/gpio/gpiochip32 lrwxrwxrwx 1 root root 0 Jan 2 11:47 gpiochip64 -> ../../devices/platform/mxc_aips/imx35-gpio.2/gpio/gpiochip64 lrwxrwxrwx 1 root root 0 Jan 2 11:47 gpiochip96 -> ../../devices/platform/mxc_aips/imx35-gpio.3/gpio/gpiochip96 --w------- 1 root root 4096 Jan 2 11:47 unexport root 14:23:42 : /sys/class/gpio # for ((i=1 ; i < 100 ; i++)) ; do printf "#trying %d\n" $i; echo "$i" >export ; done #trying 1 #trying 2 #trying 3 #trying 4 #trying 5 #trying 6 #trying 7 #trying 8 #trying 9 #trying 10 #trying 11 #trying 12 #trying 13 #trying 14 #trying 15 #trying 16 #trying 17 #trying 18 #trying 19 #trying 20 #trying 21 #trying 22 #trying 23 #trying 24 #trying 25 #trying 26 #trying 27 #trying 28 #trying 29 #trying 30 #trying 31 #trying 32 #trying 33 #trying 34 #trying 35 #trying 36 #trying 37 #trying 38 #trying 39 #trying 40 #trying 41 #trying 42 #trying 43 #trying 44 #trying 45 #trying 46 #trying 47 #trying 48 #trying 49 #trying 50 #trying 51 #trying 52 #trying 53 #trying 54 #trying 55 #trying 56 #trying 57 #trying 58 -bash: echo: write error: Device or resource busy #trying 59 -bash: echo: write error: Device or resource busy #trying 60 -bash: echo: write error: Device or resource busy #trying 61 #trying 62 #trying 63 #trying 64 #trying 65 #trying 66 #trying 67 #trying 68 #trying 69 #trying 70 #trying 71 #trying 72 #trying 73 #trying 74 #trying 75 #trying 76 #trying 77 #trying 78 #trying 79 #trying 80 -bash: echo: write error: Device or resource busy #trying 81 -bash: echo: write error: Device or resource busy #trying 82 #trying 83 #trying 84 #trying 85 #trying 86 #trying 87 #trying 88 #trying 89 #trying 90 #trying 91 #trying 92 #trying 93 #trying 94 #trying 95 #trying 96 #trying 97 #trying 98 #trying 99 root 14:24:39 : /sys/class/gpio # ls -la total 0 drwxr-xr-x 2 root root 0 Jan 2 11:43 . drwxr-xr-x 39 root root 0 Jan 2 11:43 .. --w------- 1 root root 4096 Jan 2 14:24 export lrwxrwxrwx 1 root root 0 Jan 2 14:24 gpio1 -> ../../devices/platform/mxc_aips/imx35-gpio.0/gpio/gpio1 lrwxrwxrwx 1 root root 0 Jan 2 14:24 gpio10 -> ../../devices/platform/mxc_aips/imx35-gpio.0/gpio/gpio10 lrwxrwxrwx 1 root root 0 Jan 2 14:24 gpio11 -> ../../devices/platform/mxc_aips/imx35-gpio.0/gpio/gpio11 lrwxrwxrwx 1 root root 0 Jan 2 14:24 gpio12 -> ../../devices/platform/mxc_aips/imx35-gpio.0/gpio/gpio12 lrwxrwxrwx 1 root root 0 Jan 2 11:44 gpio120 -> ../../devices/platform/mxc_aips/imx35-gpio.3/gpio/gpio120 lrwxrwxrwx 1 root root 0 Jan 2 14:24 gpio13 -> ../../devices/platform/mxc_aips/imx35-gpio.0/gpio/gpio13 lrwxrwxrwx 1 root root 0 Jan 2 14:24 gpio14 -> ../../devices/platform/mxc_aips/imx35-gpio.0/gpio/gpio14 lrwxrwxrwx 1 root root 0 Jan 2 14:24 gpio15 -> ../../devices/platform/mxc_aips/imx35-gpio.0/gpio/gpio15 lrwxrwxrwx 1 root root 0 Jan 2 14:24 gpio16 -> ../../devices/platform/mxc_aips/imx35-gpio.0/gpio/gpio16 lrwxrwxrwx 1 root root 0 Jan 2 14:24 gpio17 -> ../../devices/platform/mxc_aips/imx35-gpio.0/gpio/gpio17 lrwxrwxrwx 1 root root 0 Jan 2 14:24 gpio18 -> ../../devices/platform/mxc_aips/imx35-gpio.0/gpio/gpio18 lrwxrwxrwx 1 root root 0 Jan 2 14:24 gpio19 -> ../../devices/platform/mxc_aips/imx35-gpio.0/gpio/gpio19 lrwxrwxrwx 1 root root 0 Jan 2 14:24 gpio2 -> ../../devices/platform/mxc_aips/imx35-gpio.0/gpio/gpio2 lrwxrwxrwx 1 root root 0 Jan 2 14:24 gpio20 -> ../../devices/platform/mxc_aips/imx35-gpio.0/gpio/gpio20 lrwxrwxrwx 1 root root 0 Jan 2 14:24 gpio21 -> ../../devices/platform/mxc_aips/imx35-gpio.0/gpio/gpio21 lrwxrwxrwx 1 root root 0 Jan 2 14:24 gpio22 -> ../../devices/platform/mxc_aips/imx35-gpio.0/gpio/gpio22 lrwxrwxrwx 1 root root 0 Jan 2 14:24 gpio23 -> ../../devices/platform/mxc_aips/imx35-gpio.0/gpio/gpio23 lrwxrwxrwx 1 root root 0 Jan 2 14:24 gpio24 -> ../../devices/platform/mxc_aips/imx35-gpio.0/gpio/gpio24 lrwxrwxrwx 1 root root 0 Jan 2 14:24 gpio25 -> ../../devices/platform/mxc_aips/imx35-gpio.0/gpio/gpio25 lrwxrwxrwx 1 root root 0 Jan 2 14:24 gpio26 -> ../../devices/platform/mxc_aips/imx35-gpio.0/gpio/gpio26 lrwxrwxrwx 1 root root 0 Jan 2 14:24 gpio27 -> ../../devices/platform/mxc_aips/imx35-gpio.0/gpio/gpio27 lrwxrwxrwx 1 root root 0 Jan 2 14:24 gpio28 -> ../../devices/platform/mxc_aips/imx35-gpio.0/gpio/gpio28 lrwxrwxrwx 1 root root 0 Jan 2 14:24 gpio29 -> ../../devices/platform/mxc_aips/imx35-gpio.0/gpio/gpio29 lrwxrwxrwx 1 root root 0 Jan 2 14:24 gpio3 -> ../../devices/platform/mxc_aips/imx35-gpio.0/gpio/gpio3 lrwxrwxrwx 1 root root 0 Jan 2 14:24 gpio30 -> ../../devices/platform/mxc_aips/imx35-gpio.0/gpio/gpio30 lrwxrwxrwx 1 root root 0 Jan 2 14:24 gpio31 -> ../../devices/platform/mxc_aips/imx35-gpio.0/gpio/gpio31 lrwxrwxrwx 1 root root 0 Jan 2 14:24 gpio32 -> ../../devices/platform/mxc_aips/imx35-gpio.1/gpio/gpio32 lrwxrwxrwx 1 root root 0 Jan 2 14:24 gpio33 -> ../../devices/platform/mxc_aips/imx35-gpio.1/gpio/gpio33 lrwxrwxrwx 1 root root 0 Jan 2 14:24 gpio34 -> ../../devices/platform/mxc_aips/imx35-gpio.1/gpio/gpio34 lrwxrwxrwx 1 root root 0 Jan 2 14:24 gpio35 -> ../../devices/platform/mxc_aips/imx35-gpio.1/gpio/gpio35 lrwxrwxrwx 1 root root 0 Jan 2 14:24 gpio36 -> ../../devices/platform/mxc_aips/imx35-gpio.1/gpio/gpio36 lrwxrwxrwx 1 root root 0 Jan 2 14:24 gpio37 -> ../../devices/platform/mxc_aips/imx35-gpio.1/gpio/gpio37 lrwxrwxrwx 1 root root 0 Jan 2 14:24 gpio38 -> ../../devices/platform/mxc_aips/imx35-gpio.1/gpio/gpio38 lrwxrwxrwx 1 root root 0 Jan 2 14:24 gpio39 -> ../../devices/platform/mxc_aips/imx35-gpio.1/gpio/gpio39 lrwxrwxrwx 1 root root 0 Jan 2 14:24 gpio4 -> ../../devices/platform/mxc_aips/imx35-gpio.0/gpio/gpio4 lrwxrwxrwx 1 root root 0 Jan 2 14:24 gpio40 -> ../../devices/platform/mxc_aips/imx35-gpio.1/gpio/gpio40 lrwxrwxrwx 1 root root 0 Jan 2 14:24 gpio41 -> ../../devices/platform/mxc_aips/imx35-gpio.1/gpio/gpio41 lrwxrwxrwx 1 root root 0 Jan 2 14:24 gpio42 -> ../../devices/platform/mxc_aips/imx35-gpio.1/gpio/gpio42 lrwxrwxrwx 1 root root 0 Jan 2 14:24 gpio43 -> ../../devices/platform/mxc_aips/imx35-gpio.1/gpio/gpio43 lrwxrwxrwx 1 root root 0 Jan 2 14:24 gpio44 -> ../../devices/platform/mxc_aips/imx35-gpio.1/gpio/gpio44 lrwxrwxrwx 1 root root 0 Jan 2 14:24 gpio45 -> ../../devices/platform/mxc_aips/imx35-gpio.1/gpio/gpio45 lrwxrwxrwx 1 root root 0 Jan 2 14:24 gpio46 -> ../../devices/platform/mxc_aips/imx35-gpio.1/gpio/gpio46 lrwxrwxrwx 1 root root 0 Jan 2 14:24 gpio47 -> ../../devices/platform/mxc_aips/imx35-gpio.1/gpio/gpio47 lrwxrwxrwx 1 root root 0 Jan 2 14:24 gpio48 -> ../../devices/platform/mxc_aips/imx35-gpio.1/gpio/gpio48 lrwxrwxrwx 1 root root 0 Jan 2 14:24 gpio49 -> ../../devices/platform/mxc_aips/imx35-gpio.1/gpio/gpio49 lrwxrwxrwx 1 root root 0 Jan 2 14:24 gpio5 -> ../../devices/platform/mxc_aips/imx35-gpio.0/gpio/gpio5 lrwxrwxrwx 1 root root 0 Jan 2 14:24 gpio50 -> ../../devices/platform/mxc_aips/imx35-gpio.1/gpio/gpio50 lrwxrwxrwx 1 root root 0 Jan 2 14:24 gpio51 -> ../../devices/platform/mxc_aips/imx35-gpio.1/gpio/gpio51 lrwxrwxrwx 1 root root 0 Jan 2 14:24 gpio52 -> ../../devices/platform/mxc_aips/imx35-gpio.1/gpio/gpio52 lrwxrwxrwx 1 root root 0 Jan 2 14:24 gpio53 -> ../../devices/platform/mxc_aips/imx35-gpio.1/gpio/gpio53 lrwxrwxrwx 1 root root 0 Jan 2 14:24 gpio54 -> ../../devices/platform/mxc_aips/imx35-gpio.1/gpio/gpio54 lrwxrwxrwx 1 root root 0 Jan 2 14:24 gpio55 -> ../../devices/platform/mxc_aips/imx35-gpio.1/gpio/gpio55 lrwxrwxrwx 1 root root 0 Jan 2 14:24 gpio56 -> ../../devices/platform/mxc_aips/imx35-gpio.1/gpio/gpio56 lrwxrwxrwx 1 root root 0 Jan 2 14:24 gpio57 -> ../../devices/platform/mxc_aips/imx35-gpio.1/gpio/gpio57 lrwxrwxrwx 1 root root 0 Jan 2 14:24 gpio6 -> ../../devices/platform/mxc_aips/imx35-gpio.0/gpio/gpio6 lrwxrwxrwx 1 root root 0 Jan 2 14:24 gpio61 -> ../../devices/platform/mxc_aips/imx35-gpio.1/gpio/gpio61 lrwxrwxrwx 1 root root 0 Jan 2 14:24 gpio62 -> ../../devices/platform/mxc_aips/imx35-gpio.1/gpio/gpio62 lrwxrwxrwx 1 root root 0 Jan 2 14:24 gpio63 -> ../../devices/platform/mxc_aips/imx35-gpio.1/gpio/gpio63 lrwxrwxrwx 1 root root 0 Jan 2 14:24 gpio64 -> ../../devices/platform/mxc_aips/imx35-gpio.2/gpio/gpio64 lrwxrwxrwx 1 root root 0 Jan 2 14:24 gpio65 -> ../../devices/platform/mxc_aips/imx35-gpio.2/gpio/gpio65 lrwxrwxrwx 1 root root 0 Jan 2 14:24 gpio66 -> ../../devices/platform/mxc_aips/imx35-gpio.2/gpio/gpio66 lrwxrwxrwx 1 root root 0 Jan 2 14:24 gpio67 -> ../../devices/platform/mxc_aips/imx35-gpio.2/gpio/gpio67 lrwxrwxrwx 1 root root 0 Jan 2 14:24 gpio68 -> ../../devices/platform/mxc_aips/imx35-gpio.2/gpio/gpio68 lrwxrwxrwx 1 root root 0 Jan 2 14:24 gpio69 -> ../../devices/platform/mxc_aips/imx35-gpio.2/gpio/gpio69 lrwxrwxrwx 1 root root 0 Jan 2 14:24 gpio7 -> ../../devices/platform/mxc_aips/imx35-gpio.0/gpio/gpio7 lrwxrwxrwx 1 root root 0 Jan 2 14:24 gpio70 -> ../../devices/platform/mxc_aips/imx35-gpio.2/gpio/gpio70 lrwxrwxrwx 1 root root 0 Jan 2 14:24 gpio71 -> ../../devices/platform/mxc_aips/imx35-gpio.2/gpio/gpio71 lrwxrwxrwx 1 root root 0 Jan 2 14:24 gpio72 -> ../../devices/platform/mxc_aips/imx35-gpio.2/gpio/gpio72 lrwxrwxrwx 1 root root 0 Jan 2 14:24 gpio73 -> ../../devices/platform/mxc_aips/imx35-gpio.2/gpio/gpio73 lrwxrwxrwx 1 root root 0 Jan 2 14:24 gpio74 -> ../../devices/platform/mxc_aips/imx35-gpio.2/gpio/gpio74 lrwxrwxrwx 1 root root 0 Jan 2 14:24 gpio75 -> ../../devices/platform/mxc_aips/imx35-gpio.2/gpio/gpio75 lrwxrwxrwx 1 root root 0 Jan 2 14:24 gpio76 -> ../../devices/platform/mxc_aips/imx35-gpio.2/gpio/gpio76 lrwxrwxrwx 1 root root 0 Jan 2 14:24 gpio77 -> ../../devices/platform/mxc_aips/imx35-gpio.2/gpio/gpio77 lrwxrwxrwx 1 root root 0 Jan 2 14:24 gpio78 -> ../../devices/platform/mxc_aips/imx35-gpio.2/gpio/gpio78 lrwxrwxrwx 1 root root 0 Jan 2 14:24 gpio79 -> ../../devices/platform/mxc_aips/imx35-gpio.2/gpio/gpio79 lrwxrwxrwx 1 root root 0 Jan 2 14:24 gpio8 -> ../../devices/platform/mxc_aips/imx35-gpio.0/gpio/gpio8 lrwxrwxrwx 1 root root 0 Jan 2 14:24 gpio82 -> ../../devices/platform/mxc_aips/imx35-gpio.2/gpio/gpio82 lrwxrwxrwx 1 root root 0 Jan 2 14:24 gpio83 -> ../../devices/platform/mxc_aips/imx35-gpio.2/gpio/gpio83 lrwxrwxrwx 1 root root 0 Jan 2 14:24 gpio84 -> ../../devices/platform/mxc_aips/imx35-gpio.2/gpio/gpio84 lrwxrwxrwx 1 root root 0 Jan 2 14:24 gpio85 -> ../../devices/platform/mxc_aips/imx35-gpio.2/gpio/gpio85 lrwxrwxrwx 1 root root 0 Jan 2 14:24 gpio86 -> ../../devices/platform/mxc_aips/imx35-gpio.2/gpio/gpio86 lrwxrwxrwx 1 root root 0 Jan 2 14:24 gpio87 -> ../../devices/platform/mxc_aips/imx35-gpio.2/gpio/gpio87 lrwxrwxrwx 1 root root 0 Jan 2 14:24 gpio88 -> ../../devices/platform/mxc_aips/imx35-gpio.2/gpio/gpio88 lrwxrwxrwx 1 root root 0 Jan 2 14:24 gpio89 -> ../../devices/platform/mxc_aips/imx35-gpio.2/gpio/gpio89 lrwxrwxrwx 1 root root 0 Jan 2 14:24 gpio9 -> ../../devices/platform/mxc_aips/imx35-gpio.0/gpio/gpio9 lrwxrwxrwx 1 root root 0 Jan 2 14:24 gpio90 -> ../../devices/platform/mxc_aips/imx35-gpio.2/gpio/gpio90 lrwxrwxrwx 1 root root 0 Jan 2 14:24 gpio91 -> ../../devices/platform/mxc_aips/imx35-gpio.2/gpio/gpio91 lrwxrwxrwx 1 root root 0 Jan 2 14:24 gpio92 -> ../../devices/platform/mxc_aips/imx35-gpio.2/gpio/gpio92 lrwxrwxrwx 1 root root 0 Jan 2 14:24 gpio93 -> ../../devices/platform/mxc_aips/imx35-gpio.2/gpio/gpio93 lrwxrwxrwx 1 root root 0 Jan 2 14:24 gpio94 -> ../../devices/platform/mxc_aips/imx35-gpio.2/gpio/gpio94 lrwxrwxrwx 1 root root 0 Jan 2 14:24 gpio95 -> ../../devices/platform/mxc_aips/imx35-gpio.2/gpio/gpio95 lrwxrwxrwx 1 root root 0 Jan 2 14:24 gpio96 -> ../../devices/platform/mxc_aips/imx35-gpio.3/gpio/gpio96 lrwxrwxrwx 1 root root 0 Jan 2 14:24 gpio97 -> ../../devices/platform/mxc_aips/imx35-gpio.3/gpio/gpio97 lrwxrwxrwx 1 root root 0 Jan 2 14:24 gpio98 -> ../../devices/platform/mxc_aips/imx35-gpio.3/gpio/gpio98 lrwxrwxrwx 1 root root 0 Jan 2 14:24 gpio99 -> ../../devices/platform/mxc_aips/imx35-gpio.3/gpio/gpio99 lrwxrwxrwx 1 root root 0 Jan 2 11:47 gpiochip0 -> ../../devices/platform/mxc_aips/imx35-gpio.0/gpio/gpiochip0 lrwxrwxrwx 1 root root 0 Jan 2 11:47 gpiochip32 -> ../../devices/platform/mxc_aips/imx35-gpio.1/gpio/gpiochip32 lrwxrwxrwx 1 root root 0 Jan 2 11:47 gpiochip64 -> ../../devices/platform/mxc_aips/imx35-gpio.2/gpio/gpiochip64 lrwxrwxrwx 1 root root 0 Jan 2 11:47 gpiochip96 -> ../../devices/platform/mxc_aips/imx35-gpio.3/gpio/gpiochip96 --w------- 1 root root 4096 Jan 2 11:47 unexport root 14:24:44 : /sys/class/gpio # cat gpio gpio1/ gpio17/ gpio25/ gpio33/ gpio41/ gpio5/ gpio6/ gpio69/ gpio77/ gpio87/ gpio95/ gpio10/ gpio18/ gpio26/ gpio34/ gpio42/ gpio50/ gpio61/ gpio7/ gpio78/ gpio88/ gpio96/ gpio11/ gpio19/ gpio27/ gpio35/ gpio43/ gpio51/ gpio62/ gpio70/ gpio79/ gpio89/ gpio97/ gpio12/ gpio2/ gpio28/ gpio36/ gpio44/ gpio52/ gpio63/ gpio71/ gpio8/ gpio9/ gpio98/ gpio120/ gpio20/ gpio29/ gpio37/ gpio45/ gpio53/ gpio64/ gpio72/ gpio82/ gpio90/ gpio99/ gpio13/ gpio21/ gpio3/ gpio38/ gpio46/ gpio54/ gpio65/ gpio73/ gpio83/ gpio91/ gpiochip0/ gpio14/ gpio22/ gpio30/ gpio39/ gpio47/ gpio55/ gpio66/ gpio74/ gpio84/ gpio92/ gpiochip32/ gpio15/ gpio23/ gpio31/ gpio4/ gpio48/ gpio56/ gpio67/ gpio75/ gpio85/ gpio93/ gpiochip64/ gpio16/ gpio24/ gpio32/ gpio40/ gpio49/ gpio57/ gpio68/ gpio76/ gpio86/ gpio94/ gpiochip96/ root 14:24:44 : /sys/class/gpio # cat gpio gpio1/ gpio17/ gpio25/ gpio33/ gpio41/ gpio5/ gpio6/ gpio69/ gpio77/ gpio87/ gpio95/ gpio10/ gpio18/ gpio26/ gpio34/ gpio42/ gpio50/ gpio61/ gpio7/ gpio78/ gpio88/ gpio96/ gpio11/ gpio19/ gpio27/ gpio35/ gpio43/ gpio51/ gpio62/ gpio70/ gpio79/ gpio89/ gpio97/ gpio12/ gpio2/ gpio28/ gpio36/ gpio44/ gpio52/ gpio63/ gpio71/ gpio8/ gpio9/ gpio98/ gpio120/ gpio20/ gpio29/ gpio37/ gpio45/ gpio53/ gpio64/ gpio72/ gpio82/ gpio90/ gpio99/ gpio13/ gpio21/ gpio3/ gpio38/ gpio46/ gpio54/ gpio65/ gpio73/ gpio83/ gpio91/ gpiochip0/ gpio14/ gpio22/ gpio30/ gpio39/ gpio47/ gpio55/ gpio66/ gpio74/ gpio84/ gpio92/ gpiochip32/ gpio15/ gpio23/ gpio31/ gpio4/ gpio48/ gpio56/ gpio67/ gpio75/ gpio85/ gpio93/ gpiochip64/ gpio16/ gpio24/ gpio32/ gpio40/ gpio49/ gpio57/ gpio68/ gpio76/ gpio86/ gpio94/ gpiochip96/ root 14:24:44 : /sys/class/gpio # cat gpio1/ active_low device/ direction edge power/ subsystem/ uevent value root 14:24:44 : /sys/class/gpio # cat gpio1/direction in root 14:25:01 : /sys/class/gpio # cat gpio*/direction in out out in in in in in in in in in in in in in in in in in in in in out in out in in in in in in in in in in in in in in in in in in in in in in in out out in in in out in in in in in in in in in out in in in in in in in in in out out in in in in in in in in out in in in in in in in in in in root 14:25:07 : /sys/class/gpio # cat gpio*/value 1 0 0 1 1 1 0 1 0 0 0 0 1 0 0 0 0 0 0 0 1 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 0 0 0 0 1 1 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1 0 0 1 1 0 0 0 0 root 14:25:19 : /sys/class/gpio # echo "$(cat gpio*/value)" 1 0 0 1 1 1 0 1 0 0 0 0 1 0 0 0 0 0 0 0 1 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1 0 0 1 1 0 0 0 0 root 14:25:29 : /sys/class/gpio # echo $(cat gpio*/value) 1 0 0 1 1 1 0 1 0 0 0 0 1 0 0 0 0 0 0 0 1 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1 0 0 1 1 0 0 0 0 root 14:25:34 : /sys/class/gpio # eval "$(/usr/bin/resize)" ; stty cols $COLUMNS rows $LINES ; kill -s WINCH -$$ root 14:25:45 : /sys/class/gpio # echo $(cat gpio*/value) 1 0 0 1 1 1 0 1 0 0 0 0 1 0 0 0 0 0 0 0 1 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 0 0 0 0 1 1 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1 0 0 1 1 0 0 0 0 root 14:25:47 : /sys/class/gpio # echo $(cat gpio*/value) 1 0 0 1 1 1 0 1 0 0 0 0 1 0 0 0 0 0 0 0 1 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 0 0 0 0 1 1 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1 0 0 1 1 0 0 0 0 root 14:25:49 : /sys/class/gpio # echo $(cat gpio*/value) 1 0 0 1 1 1 0 1 0 0 0 0 1 0 0 0 0 0 0 0 1 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 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 1 1 1 1 1 0 0 0 0 1 1 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1 0 0 1 1 0 0 0 0 1 0 0 1 1 1 0 1 0 0 0 0 1 0 0 0 0 0 1 0 1 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 0 0 0 0 1 1 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1 0 0 1 1 0 0 0 0 root 14:27:15 : /sys/class/gpio # echo gpio*/value gpio1/value gpio10/value gpio11/value gpio12/value gpio120/value gpio13/value gpio14/value gpio15/value gpio16/value gpio17/value gpio18/value gpio19/value gpio2/value gpio20/value gpio21/value gpio22/value gpio23/value gpio24/value gpio25/value gpio26/value gpio27/value gpio28/value gpio29/value gpio3/value gpio30/value gpio31/value gpio32/value gpio33/value gpio34/value gpio35/value gpio36/value gpio37/value gpio38/value gpio39/value gpio4/value gpio40/value gpio41/value gpio42/value gpio43/value gpio44/value gpio45/value gpio46/value gpio47/value gpio48/value gpio49/value gpio5/value gpio50/value gpio51/value gpio52/value gpio53/value gpio54/value gpio55/value gpio56/value gpio57/value gpio6/value gpio61/value gpio62/value gpio63/value gpio64/value gpio65/value gpio66/value gpio67/value gpio68/value gpio69/value gpio7/value gpio70/value gpio71/value gpio72/value gpio73/value gpio74/value gpio75/value gpio76/value gpio77/value gpio78/value gpio79/value gpio8/value gpio82/value gpio83/value gpio84/value gpio85/value gpio86/value gpio87/value gpio88/value gpio89/value gpio9/value gpio90/value gpio91/value gpio92/value gpio93/value gpio94/value gpio95/value gpio96/value gpio97/value gpio98/value gpio99/value root 14:27:30 : /sys/class/gpio # (i="1 0 0 1 1 1 0 1 0 0 0 0 1 0 0 0 0 1 1 0 1 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0" ; echo ${#i}) 111 root 14:28:10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1 1 0 0 0 0 0 root 14:29:34 : /sys/class/gpio # while true ; do echo $(cat gpio7?/value) ; sleep 1 ; done 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 root 14:29:55 : /sys/class/gpio # while true ; do echo $(cat gpio8?/value) ; sleep 1 ; done 0 0 0 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 0 0 0 root 14:30:11 : /sys/class/gpio # root 14:30:13 : /sys/class/gpio # for ((i=1 ; i < 200 ; i++)) ; do printf "#trying %d\n" $i; echo "$i" >export ; done #trying 1 -bash: echo: write error: Device or resource busy #trying 2 -bash: echo: write error: Device or resource busy #trying 3 -bash: echo: write error: Device or resource busy #trying 4 -bash: echo: write error: Device or resource busy #trying 5 -bash: echo: write error: Device or resource busy #trying 6 -bash: echo: write error: Device or resource busy #trying 7 -bash: echo: write error: Device or resource busy #trying 8 -bash: echo: write error: Device or resource busy #trying 9 -bash: echo: write error: Device or resource busy #trying 10 -bash: echo: write error: Device or resource busy #trying 11 -bash: echo: write error: Device or resource busy #trying 12 -bash: echo: write error: Device or resource busy #trying 13 -bash: echo: write error: Device or resource busy #trying 14 -bash: echo: write error: Device or resource busy #trying 15 -bash: echo: write error: Device or resource busy #trying 16 -bash: echo: write error: Device or resource busy #trying 17 -bash: echo: write error: Device or resource busy #trying 18 -bash: echo: write error: Device or resource busy #trying 19 -bash: echo: write error: Device or resource busy #trying 20 -bash: echo: write error: Device or resource busy #trying 21 -bash: echo: write error: Device or resource busy #trying 22 -bash: echo: write error: Device or resource busy #trying 23 -bash: echo: write error: Device or resource busy #trying 24 -bash: echo: write error: Device or resource busy #trying 25 -bash: echo: write error: Device or resource busy #trying 26 -bash: echo: write error: Device or resource busy #trying 27 -bash: echo: write error: Device or resource busy #trying 28 -bash: echo: write error: Device or resource busy #trying 29 -bash: echo: write error: Device or resource busy #trying 30 -bash: echo: write error: Device or resource busy #trying 31 -bash: echo: write error: Device or resource busy #trying 32 -bash: echo: write error: Device or resource busy #trying 33 -bash: echo: write error: Device or resource busy #trying 34 -bash: echo: write error: Device or resource busy #trying 35 -bash: echo: write error: Device or resource busy #trying 36 -bash: echo: write error: Device or resource busy #trying 37 -bash: echo: write error: Device or resource busy #trying 38 -bash: echo: write error: Device or resource busy #trying 39 -bash: echo: write error: Device or resource busy #trying 40 -bash: echo: write error: Device or resource busy #trying 41 -bash: echo: write error: Device or resource busy #trying 42 -bash: echo: write error: Device or resource busy #trying 43 -bash: echo: write error: Device or resource busy #trying 44 -bash: echo: write error: Device or resource busy #trying 45 -bash: echo: write error: Device or resource busy #trying 46 -bash: echo: write error: Device or resource busy #trying 47 -bash: echo: write error: Device or resource busy #trying 48 -bash: echo: write error: Device or resource busy #trying 49 -bash: echo: write error: Device or resource busy #trying 50 -bash: echo: write error: Device or resource busy #trying 51 -bash: echo: write error: Device or resource busy #trying 52 -bash: echo: write error: Device or resource busy #trying 53 -bash: echo: write error: Device or resource busy #trying 54 -bash: echo: write error: Device or resource busy #trying 55 -bash: echo: write error: Device or resource busy #trying 56 -bash: echo: write error: Device or resource busy #trying 57 -bash: echo: write error: Device or resource busy #trying 58 -bash: echo: write error: Device or resource busy #trying 59 -bash: echo: write error: Device or resource busy #trying 60 -bash: echo: write error: Device or resource busy #trying 61 -bash: echo: write error: Device or resource busy #trying 62 -bash: echo: write error: Device or resource busy #trying 63 -bash: echo: write error: Device or resource busy #trying 64 -bash: echo: write error: Device or resource busy #trying 65 -bash: echo: write error: Device or resource busy #trying 66 -bash: echo: write error: Device or resource busy #trying 67 -bash: echo: write error: Device or resource busy #trying 68 -bash: echo: write error: Device or resource busy #trying 69 -bash: echo: write error: Device or resource busy #trying 70 -bash: echo: write error: Device or resource busy #trying 71 -bash: echo: write error: Device or resource busy #trying 72 -bash: echo: write error: Device or resource busy #trying 73 -bash: echo: write error: Device or resource busy #trying 74 -bash: echo: write error: Device or resource busy #trying 75 -bash: echo: write error: Device or resource busy #trying 76 -bash: echo: write error: Device or resource busy #trying 77 -bash: echo: write error: Device or resource busy #trying 78 -bash: echo: write error: Device or resource busy #trying 79 -bash: echo: write error: Device or resource busy #trying 80 -bash: echo: write error: Device or resource busy #trying 81 -bash: echo: write error: Device or resource busy #trying 82 -bash: echo: write error: Device or resource busy #trying 83 -bash: echo: write error: Device or resource busy #trying 84 -bash: echo: write error: Device or resource busy #trying 85 -bash: echo: write error: Device or resource busy #trying 86 -bash: echo: write error: Device or resource busy #trying 87 -bash: echo: write error: Device or resource busy #trying 88 -bash: echo: write error: Device or resource busy #trying 89 -bash: echo: write error: Device or resource busy #trying 90 -bash: echo: write error: Device or resource busy #trying 91 -bash: echo: write error: Device or resource busy #trying 92 -bash: echo: write error: Device or resource busy #trying 93 -bash: echo: write error: Device or resource busy #trying 94 -bash: echo: write error: Device or resource busy #trying 95 -bash: echo: write error: Device or resource busy #trying 96 -bash: echo: write error: Device or resource busy #trying 97 -bash: echo: write error: Device or resource busy #trying 98 -bash: echo: write error: Device or resource busy #trying 99 -bash: echo: write error: Device or resource busy #trying 100 #trying 101 #trying 102 #trying 103 #trying 104 #trying 105 #trying 106 #trying 107 #trying 108 #trying 109 #trying 110 #trying 111 #trying 112 #trying 113 #trying 114 #trying 115 #trying 116 #trying 117 #trying 118 -bash: echo: write error: Device or resource busy #trying 119 #trying 120 -bash: echo: write error: Device or resource busy #trying 121 #trying 122 #trying 123 #trying 124 #trying 125 #trying 126 #trying 127 #trying 128 Unable to handle kernel NULL pointer dereference at virtual address 00000044 pgd = c7288000 [00000044] *pgd=870ac831, *pte=00000000, *ppte=00000000 Internal error: Oops - BUG: 17 [#1] PREEMPT ARM Modules linked in: 8188eu(O) ads7953(O) [last unloaded: power_button] CPU: 0 PID: 722 Comm: bash Tainted: G O 3.10.108-rt123-g9de6c66 #1 task: c79b8ae0 ti: c70a2000 task.ti: c70a2000 PC is at gpiod_request+0x44/0x1bc LR is at rt_spin_lock_slowlock+0x60/0x238 pc : [] lr : [] psr: 60000013 sp : c70a3ec0 ip : 00000000 fp : c70a3ee4 r10: c04a3868 r9 : c787f01c r8 : c7881040 r7 : c056c3b0 r6 : fffffdfb r5 : 00000000 r4 : c0669600 r3 : 00000000 r2 : 00000000 r1 : c062a9c0 r0 : 00000001 Flags: nZCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment user Control: 0005317f Table: 87288000 DAC: 00000015 Process bash (pid: 722, stack limit = 0xc70a21b8) Stack: (0xc70a3ec0 to 0xc70a4000) 3ec0: 00000000 00000000 c0669600 00000004 c7113540 c7881040 c70a3f0c c70a3ee8 3ee0: c0211f60 c02112c4 c70a2000 00000080 c70a3f0c 00000004 c7113558 c70a3f80 3f00: c70a3f1c c70a3f10 c024d524 c0211f1c c70a3f4c c70a3f20 c00f82bc c024d514 3f20: c70a3f80 c70f13c0 00000004 b6f51000 c70a3f80 c0009524 c70a2000 00000000 3f40: c70a3f7c c70a3f50 c00a12c8 c00f815c c009ef50 c00a2390 00000000 00000000 3f60: c70f13c0 00000000 c0009524 00000000 c70a3fa4 c70a3f80 c00a16dc c00a121c 3f80: 00000000 00000000 00000004 b6f51000 0016b938 00000004 00000000 c70a3fa8 3fa0: c00093a0 c00a16a8 00000004 b6f51000 00000001 b6f51000 00000004 00000000 3fc0: 00000004 b6f51000 0016b938 00000004 00000004 00000004 b6f51000 00000000 3fe0: 00000000 be9078fc 000bc054 000e5f1c 60000010 00000001 e0621001 e1a0200c Backtrace: [] (gpiod_request+0x0/0x1bc) from [] (export_store+0x54/0xf8) r8:c7881040 r7:c7113540 r6:00000004 r5:c0669600 r4:00000000 r3:00000000 [] (export_store+0x0/0xf8) from [] (class_attr_store+0x20/0x2c) r6:c70a3f80 r5:c7113558 r4:00000004 [] (class_attr_store+0x0/0x2c) from [] (sysfs_write_file+0x170/0x1a4) [] (sysfs_write_file+0x0/0x1a4) from [] (vfs_write+0xbc/0x198) [] (vfs_write+0x0/0x198) from [] (SyS_write+0x44/0x78) [] (SyS_write+0x0/0x78) from [] (ret_fast_syscall+0x0/0x34) r7:00000004 r6:0016b938 r5:b6f51000 r4:00000004 Code: e3500000 1a000011 e5945000 e3e06f81 (e5952044) ---[ end trace 0000000000000002 ]--- _____ _ ____ | ____| / ` / ___| | _| / _ `| | _ | |___ / ___ ` |_| | |_____/_/ `_`____| ___ _ ___ ___ _ _ / _ `/ | / _ `/ __| | | | | | | | | __/ (__| |_| | |_| | | `___|`___|`__,_|`___/|_| OSELAS(R)-ecu01-V3.1.10 / ecu01-2012.10.0 ptxdist-2012.10.0/2019-12-15T17:38:41+0100 ecu01 login: _____ _ ____ | ____| / ` / ___| | _| / _ `| | _ | |___ / ___ ` |_| | |_____/_/ `_`____| ___ _ ___ ___ _ _ / _ `/ | / _ `/ __| | | | | | | | | __/ (__| |_| | |_| | | `___|`___|`__,_|`___/|_| OSELAS(R)-ecu01-V3.1.10 / ecu01-2012.10.0 ptxdist-2012.10.0/2019-12-15T17:38:41+0100 ecu01 login: root Password: ## Running /etc/profile ... running /etc/profile.local Loading /usr/share/keymaps/i386/qwertz/de.map.gz # Running /etc/bash.bashrc ... root 14:30:49 : ~ # setfacl -m u:rpcuser:rwx /dev/qa_mmc root 14:30:55 : ~ # root 14:34:41 : ~ # root 14:34:41 : ~ # while true ; do echo $(cat gpio5?/value) ; sleep 1 ; done cat: can't open 'gpio5?/value': No such file or directory cat: can't open 'gpio5?/value': No such file or directory root 14:34:55 : ~ # while true ; do echo $(cat gpio6?/value) ; sleep 1 ; done cat: can't open 'gpio6?/value': No such file or directory cat: can't open 'gpio6?/value': No such file or directory ot 14:35:14 : ~ # while true ; do echo $(cat /sys/class/gpio (oot 14:35:14 : ~ # while true ; do echo $(cat /sys/class/gpiogpio5?/value) ; sleetrue ; do echo $(cat gpio6?/value) ; sleeot 14:35:14 : ~ # while true ; do echo $(cat /sys/class/gpigpio5?/value) ; sl root 14:35:24 : ~ # find /sys -name gpio ot 14:35:14 : ~ # while true ; do echo $(cat /sys/class/gpgpio5?/value) ; sleep ot 14:35:14 : ~ # while true ; do ecroot 14:35:24 : ~ # pio5?/value) ; sleep 1.0/gpio ot 14:35:14 : ~ # while true ; do echo $(cat /sys/class/gpio5?/value) ; sleep 1 root 14:35:25 : ~ # while true ; do echo $(cat /sys/classgpio5?/value) ; sleep 1 ; ot 14:35:14 : ~ # while true ; do echo $(cat /sys/clasgpio5?/value) ; sleep 1root 14:35:25 : ~ # rm/mxc_aips/imx35-gpio.ot 14:35:14 : ~ # while true ; do echo $(cat /sys/clagpio5?/value) ; sleep 1 ; d t 14:35:14 : ~ # while true ; do ecroot 14:35:25 : ~ # /value) ; sleep 1 ; do.3/gpio ot 14:35:14 : ~ # while true ; do echo $(cat /sys/cgpio5?/value) ; sleep 1 ; done root 14:35:25 : ~ # while true ; do echo $(cat /sys/gpio5?/value) ; sleep 1 ; done root 14:35:26 : ~ # oot 14:35:14 : ~ # while true ; do echo $(cat /sysgpio5?/value) ; sleep 1 ; done root 14:35:26 : ~ # while true ; do echo $(cat /sygpio5?/value) ; sleep 1 ; done root 14:35:26 : ~ # root 14:35:26 : ~ # root 14:35:26 : ~ # root 14:35:26 : ~ # root 14:35:26 : ~ # root 14:35:26 : ~ # root 14:35:26 : ~ # root 14:35:26 : ~ # root 14:35:26 : ~ # root 14:35:26 : ~ # root 14:35:26 : ~ # root 14:35:26 : ~ # oot 14:35:26 : ~ # eval "$(/usr/bin/ root 14:35:26 : ~ # eval "$(/usr/bin/resize)" ; stty cols $COLUMNS rows $LINES ; e-i-search)`resi': eval "$(/usr/bin/ root 14:35:28 : ~ # i': eval "$(/usr/bin/resize)" ; stty cols $COLUMNS rows $LIN root 14:35:28 : ~ # -$$: eval "$(/usr/bin/resize)" ; stty cols $COLUMNS rows $LINreverse-i-search)`re': ls --help 2>&1 | fgrep -i acl root 14:35:28 : ~ # root 14:35:29 : ~ # root 14:35:29 : ~ # root 14:35:29 : ~ # find /sys -name gpio root 14:35:35 : ~ # while true ; do echo $(cat /sys/class/gpio/gpio5?/value) ; sleep 1 ; done 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 root 14:35:59 : ~ # while true ; do echo $(cat /sys/class/gpio/gpio6?/value) ; sleep 1 ; done 1 1 1 1 0 0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1 1 0 0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1 0 0 0 0 0 0 1 1 1 0 0 0 0 0 1 1 1 1 1 0 0 0 0 1 1 1 1 1 0 0 0 0 0 1 1 1 1 0 0 0 0 1 0 1 1 1 0 0 0 0 0 0 1 1 1 0 0 0 0 1 1 1 1 1 0 0 0 0 1 1 1 1 1 0 0 0 0 1 1 1 1 1 0 0 0 0 1 1 1 1 1 0 0 0 0 0 1 1 1 1 0 0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 0 1 0 0 0 0 1 1 1 0 1 0 0 0 0 0 1 1 0 1 0 0 0 0 1 1 1 0 1 0 0 0 0 1 1 1 0 1 0 0 0 0 1 1 1 1 1 0 0 0 0 0 1 1 0 1 0 0 0 0 1 1 1 1 1 0 0 0 0 1 1 1 1 1 0 0 0 0 0 0 1 1 1 0 0 0 0 1 0 1 1 1 0 0 0 0 0 1 1 1 1 0 0 0 0 0 1 1 1 1 0 0 0 0 0 0 1 1 1 0 0 0 0 0 0 1 1 1 0 0 0 0 0 0 1 1 1 0 0 0 0 0 0 1 1 1 0 0 0 0 1 0 1 1 1 0 0 0 0 0 0 1 1 1 0 0 0 0 1 0 1 1 1 0 0 0 0 1 0 1 1 1 0 0 0 0 0 0 1 1 1 0 0 0 0 0 0 1 1 1 0 0 0 0 0 0 1 1 1 0 0 0 0 1 0 1 1 1 0 0 0 0 1 0 1 1 1 0 0 0 0 1 0 1 1 1 0 0 0 0 0 0 1 1 1 0 0 0 0 1 0 1 1 1 0 0 0 0 1 0 1 1 1 0 0 0 0 1 0 1 1 1 0 0 0 0 1 1 1 1 1 0 0 0 0 1 1 1 1 1 0 0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1 1 0 0 0 0 0 1 1 1 1 0 0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1 1 0 0 0 0 1 1 1 1 1 0 0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1 1 0 0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1 1 0 0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1 1 0 0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1 1 0 0 0 0 1 1 1 1 1 0 0 0 0 1 1 1 1 1 0 0 0 0 1 1 1 1 1 0 0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1 1 0 0 0 0 1 root 14:37:26 : ~ # while true ; do echo $(printf "%d" /sys/class/gpio/gpio6?/value) ; echo ; sleep 1 ; done -bash: printf: /sys/class/gpio/gpio61/value: invalid number -bash: printf: /sys/class/gpio/gpio62/value: invalid number -bash: printf: /sys/class/gpio/gpio63/value: invalid number -bash: printf: /sys/class/gpio/gpio64/value: invalid number -bash: printf: /sys/class/gpio/gpio65/value: invalid number -bash: printf: /sys/class/gpio/gpio66/value: invalid number -bash: printf: /sys/class/gpio/gpio67/value: invalid number -bash: printf: /sys/class/gpio/gpio68/value: invalid number -bash: printf: /sys/class/gpio/gpio69/value: invalid number 000000000 -bash: printf: /sys/class/gpio/gpio61/value: invalid number -bash: printf: /sys/class/gpio/gpio62/value: invalid number -bash: printf: /sys/class/gpio/gpio63/value: invalid number -bash: printf: /sys/class/gpio/gpio64/value: invalid number -bash: printf: /sys/class/gpio/gpio65/value: invalid number -bash: printf: /sys/class/gpio/gpio66/value: invalid number -bash: printf: /sys/class/gpio/gpio67/value: invalid number -bash: printf: /sys/class/gpio/gpio68/value: invalid number -bash: printf: /sys/class/gpio/gpio69/value: invalid number 000000000 root 14:37:43 : ~ # while true ; do echo $(printf "%d" $(cat /sys/class/gpio/gpio6?/value) ) ; echo ; sleep 1 ; done 111100001 111100000 111100000 111100001 111100001 111100000 111100000 111100000 root 14:38:22 : ~ # while true ; do echo $(printf "%d" $(cat /sys/class/gpio/gpio6?/value) ) ; echo ; sleep 1 ; done root 14:38:36 : ~ # echo $(( 2#11 )) 3 root 14:38:46 : ~ # while true ; do echo $(printf "2#"; printf "%d" $(cat /sys/class/gpio/gpio6?/value) ) ; sleep 1 ; done 2#111100000 2#111100001 2#111100000 root 14:39:22 : ~ # while true ; do echo $(( $(printf "2#"; printf "%d" $(cat /sys/class/gpio/gpio6?/value) ) )) ; sleep 1 ; done 481 481 481 481 481 225 225 480 480 481 481 481 225 225 480 449 448 481 480 root 14:39:54 : ~ # while true ; do echo $(( $(printf "2#"; printf "%d" $(cat /sys/class/gpio/gpio6?/value) ) )) $(( $(printf "2#"; printf "%d" $(cat /sys/class/gpio/gpio7?/value) ) )) ; sleep 1 ; done 480 512 480 512 481 512 449 512 448 512 449 512 449 512 449 512 448 512 480 512 481 512 481 512 480 512 225 512 481 512 480 512 224 512 480 512 480 512 225 512 480 512 225 512 481 512 481 512 481 512 480 512 481 512 480 512 481 512 353 512 353 512 480 512 481 512 353 512 353 512 480 512 225 512 481 512 481 512 224 512 480 512 481 512 224 512 225 512 224 512 225 512 225 512 225 512 481 512 481 512 480 512 353 512 481 512 416 512 416 512 480 512 480 512 416 512 416 512 417 512 480 512 480 512 352 512 353 512 352 512 352 512 481 512 481 512 root 14:41:38 : ~ # while true ; do echo $(( $(printf "2#"; printf "%d" $(cat /sys/class/gpio/gpio6?/value) ) )) $(( $(printf "2#"; printf "%d" $(cat /sys/class/gpio/gpio7?/value) ) )) ; sleep 1 ; done 480 512 480 512 480 512 481 512 417 512 480 512 480 512 416 512 480 512 416 512 417 512 416 512 417 512 480 512 480 512 480 512 352 512 353 512 353 512 352 512 481 512 352 512 352 512 481 512 416 512 416 512 480 512 root 14:52:18 : ~ # while true ; do echo $(( $(printf "2#"; printf "%d" $(cat /sys/class/gpio/gpio6?/value) ) )) $(( $(printf "2#"; printf "%d" $(cat /sys/class/gpio/gpio8?/value) ) )) ; sleep 1 ; done 481 8 481 8 481 8 481 8 353 8 481 8 481 8 480 8 481 8 root 14:52:46 : ~ # while true ; do echo $(( $(printf "2#"; printf "%d" $(cat /sys/class/gpio/gpio6?/value) ) )) $(( $(printf "2#"; printf "%d" $(cat /sys/class/gpio/gpio9?/value) ) )) ; sleep 1 ; done 480 816 481 816 353 816 480 816 353 816 448 816 480 816 root 14:52:58 : ~ # while true ; do echo $(( $(printf "2#"; printf "%d" $(cat /sys/class/gpio/gpio6?/value) ) )) $(( $(printf "2#"; printf "%d" $(cat /sys/class/gpio/gpio???/value) ) )) ; sleep 1 ; done 480 696 481 696 481 696 481 696 352 696 352 696 481 696 416 696 481 696 417 696 480 696 480 696 root 14:53:16 : ~ # while true ; do echo $(( $(printf "2#"; printf "%d" $(cat /sys/class/gpio/gpio6?/value) ) )) $(( $(printf "2#"; printf "%d" $(cat /sys/class/gpio/gpio?/value) ) )) ; sleep 1 ; done 480 462 481 462 352 462 353 462 352 462 481 462 481 462 root 14:53:29 : ~ # while true ; do echo $(( $(printf "2#"; printf "%d" $(cat /sys/class/gpio/gpio6?/value) ) )) $(( $(printf "2#"; printf "%d" $(cat /sys/class/gpio/gpio2?/value) ) )) ; sleep 1 ; done 480 6 481 38 353 54 352 54 481 6 480 6 481 54 353 22 352 54 352 54 481 166 481 22 481 22 480 22 481 54 481 150 481 150 480 22 481 22 481 54 481 22 481 6 480 38 480 22 480 54 481 38 root 14:54:03 : ~ # while true ; do echo $(( $(printf "2#"; printf "%d" $(cat /sys/class/gpio/gpio6?/value) ) )) $(( $(printf "2#"; printf "%d" $(cat /sys/class/gpio/gpio3?/value) ) )) ; sleep 1 ; done 481 0 481 0 480 0 353 0 353 0 352 0 353 0 481 0 root 14:54:17 : ~ # while true ; do echo $(( $(printf "2#"; printf "%d" $(cat /sys/class/gpio/gpio6?/value) ) )) $(( $(printf "2#"; printf "%d" $(cat /sys/class/gpio/gpio4?/value) ) )) ; sleep 1 ; done 481 0 480 0 480 0 417 0 480 0 481 0 480 0 481 0 480 0 root 14:54:32 : ~ # (reverse-i-search)`val': while true ; do echo $(( $(printf "2#"; printf "%d" $(cat /sys/class/gpio/gpio6?/value) ) )) $(( $(printf "2#"; printf "%d" $(cat /sys/class/gpio/gpio4?/value) ) )) ; sleep 1 ; done root 14:56:14 : ~ # while true ; do echo "1" >value ; usleep 1 ; echo 0 >value ; usleep 1 ; done root 14:56:17 : ~ # root 14:56:17 : ~ # (reverse-i-search)`ex': echo 11 >/sys/class/gpio/unexport root 14:56:27 : ~ # for i in /sys/class/gpio/gpio*/direction ; do echo $i ; done) -bash: syntax error near unexpected token `)' root 14:56:52 : ~ # (for i in /sys/class/gpio/gpio*/direction ; do echo "$i" ; done) /sys/class/gpio/gpio1/direction /sys/class/gpio/gpio10/direction /sys/class/gpio/gpio100/direction /sys/class/gpio/gpio101/direction /sys/class/gpio/gpio102/direction /sys/class/gpio/gpio103/direction /sys/class/gpio/gpio104/direction /sys/class/gpio/gpio105/direction /sys/class/gpio/gpio106/direction /sys/class/gpio/gpio107/direction /sys/class/gpio/gpio108/direction /sys/class/gpio/gpio109/direction /sys/class/gpio/gpio11/direction /sys/class/gpio/gpio110/direction /sys/class/gpio/gpio111/direction /sys/class/gpio/gpio112/direction /sys/class/gpio/gpio113/direction /sys/class/gpio/gpio114/direction /sys/class/gpio/gpio115/direction /sys/class/gpio/gpio116/direction /sys/class/gpio/gpio117/direction /sys/class/gpio/gpio119/direction /sys/class/gpio/gpio12/direction /sys/class/gpio/gpio120/direction /sys/class/gpio/gpio121/direction /sys/class/gpio/gpio122/direction /sys/class/gpio/gpio123/direction /sys/class/gpio/gpio124/direction /sys/class/gpio/gpio125/direction /sys/class/gpio/gpio126/direction /sys/class/gpio/gpio127/direction /sys/class/gpio/gpio13/direction /sys/class/gpio/gpio14/direction /sys/class/gpio/gpio15/direction /sys/class/gpio/gpio16/direction /sys/class/gpio/gpio17/direction /sys/class/gpio/gpio18/direction /sys/class/gpio/gpio19/direction /sys/class/gpio/gpio2/direction /sys/class/gpio/gpio20/direction /sys/class/gpio/gpio21/direction /sys/class/gpio/gpio22/direction /sys/class/gpio/gpio23/direction /sys/class/gpio/gpio24/direction /sys/class/gpio/gpio25/direction /sys/class/gpio/gpio26/direction /sys/class/gpio/gpio27/direction /sys/class/gpio/gpio28/direction /sys/class/gpio/gpio29/direction /sys/class/gpio/gpio3/direction /sys/class/gpio/gpio30/direction /sys/class/gpio/gpio31/direction /sys/class/gpio/gpio32/direction /sys/class/gpio/gpio33/direction /sys/class/gpio/gpio34/direction /sys/class/gpio/gpio35/direction /sys/class/gpio/gpio36/direction /sys/class/gpio/gpio37/direction /sys/class/gpio/gpio38/direction /sys/class/gpio/gpio39/direction /sys/class/gpio/gpio4/direction /sys/class/gpio/gpio40/direction /sys/class/gpio/gpio41/direction /sys/class/gpio/gpio42/direction /sys/class/gpio/gpio43/direction /sys/class/gpio/gpio44/direction /sys/class/gpio/gpio45/direction /sys/class/gpio/gpio46/direction /sys/class/gpio/gpio47/direction /sys/class/gpio/gpio48/direction /sys/class/gpio/gpio49/direction /sys/class/gpio/gpio5/direction /sys/class/gpio/gpio50/direction /sys/class/gpio/gpio51/direction /sys/class/gpio/gpio52/direction /sys/class/gpio/gpio53/direction /sys/class/gpio/gpio54/direction /sys/class/gpio/gpio55/direction /sys/class/gpio/gpio56/direction /sys/class/gpio/gpio57/direction /sys/class/gpio/gpio6/direction /sys/class/gpio/gpio61/direction /sys/class/gpio/gpio62/direction /sys/class/gpio/gpio63/direction /sys/class/gpio/gpio64/direction /sys/class/gpio/gpio65/direction /sys/class/gpio/gpio66/direction /sys/class/gpio/gpio67/direction /sys/class/gpio/gpio68/direction /sys/class/gpio/gpio69/direction /sys/class/gpio/gpio7/direction /sys/class/gpio/gpio70/direction /sys/class/gpio/gpio71/direction /sys/class/gpio/gpio72/direction /sys/class/gpio/gpio73/direction /sys/class/gpio/gpio74/direction /sys/class/gpio/gpio75/direction /sys/class/gpio/gpio76/direction /sys/class/gpio/gpio77/direction /sys/class/gpio/gpio78/direction /sys/class/gpio/gpio79/direction /sys/class/gpio/gpio8/direction /sys/class/gpio/gpio82/direction /sys/class/gpio/gpio83/direction /sys/class/gpio/gpio84/direction /sys/class/gpio/gpio85/direction /sys/class/gpio/gpio86/direction /sys/class/gpio/gpio87/direction /sys/class/gpio/gpio88/direction /sys/class/gpio/gpio89/direction /sys/class/gpio/gpio9/direction /sys/class/gpio/gpio90/direction /sys/class/gpio/gpio91/direction /sys/class/gpio/gpio92/direction /sys/class/gpio/gpio93/direction /sys/class/gpio/gpio94/direction /sys/class/gpio/gpio95/direction /sys/class/gpio/gpio96/direction /sys/class/gpio/gpio97/direction /sys/class/gpio/gpio98/direction /sys/class/gpio/gpio99/direction root 14:57:04 : ~ # (for i in /sys/class/gpio/gpio*/direction ; do cat "$i" ; done) in out in in in in in in in in in in out in in in in in in in in in in in in in in in out in in in in in in in in in in in in in in in in in in in in out in out in in in in in in in in in in in in in in in in in in in in in in in out out in in in out in in in in in in in in in out in in in in in in in in in out out in in in in in in in in out in in in in in in in in in in root 14:57:13 : ~ # root 14:57:13 : ~ # (for i in /sys/class/gpio/gpio*/direction ; do echo in > "$i" ; done) Enter command. Try 'help' for a list of builtin commands -> break ----------------------