- 积分
- 101
贡献497
飞刀106 FD
注册时间2021-3-9
在线时间14 小时
|
楼主 |
发表于 2021-4-25 09:24:19
|
显示全部楼层
- root@ok5718-idk:~# pwd
- /home/root
- root@ok5718-idk:~# ls
- helloworld.sh mygpio567.ko read7606
- root@ok5718-idk:~# ./helloworld.sh
- [ 127.859672] my_gpio_init.
- [ 127.864383] Register MyGPIO platform_driver init.
- [ 127.869856] MyGPIO Probe.
- [ 127.877487] mygpio56 {
- [ 127.879865] pinctrl-names = " default " ;
- [ 127.889525] pinctrl-0 = " " ;
- [ 127.894133] mygpio568 {
- [ 127.897377] label = " mygpio569 " ;
- [ 127.903134] interrupt-parent = < c0395d80 c0395b88 ef2866e0 > ;
- [ 127.909865] };
- [ 127.909865] };
- [ 127.916089] pwm-fan pwm_fan: Could not get PWM
- **********hello world ***
- root@ok5718-idk:~#
- root@ok5718-idk:~# cat helloworld.sh
- #!/bin/bash
- cd /home/root/
- insmod mygpio567.ko
- sleep 3
- ./read7606
- root@ok5718-idk:~#
复制代码 |
|