接上文【飞腾派4G版免费试用】环境搭建
9-工具包
Win32DiskImager2.0.1.8写镜像文件。
选择:飞腾派v2.1资料包(资料包太大,建议挑选下载)\5-系统镜像\3-OpenKylin\4G\openKylin-1.0-phytiumpi-arm64(5.03 GB (5,410,652,160 字节)),
使用串口访问板卡时,调试串口位置为 J2,串口终端程序必须设置为:波特率:115200;数据位:8;奇偶校验:无;停止位:1
8TX10RX12地
*附件:MobaXterm_COM15USBCOM15_20240106_213542.rar
root帐号没能上去。用sudo 提权限。
openkylin@openkylin:~$ openkylin
-bash: openkylin:未找到命令
openkylin@openkylin:~$ ls
openkylin@openkylin:~$ cd /sys/kernel/debug
-bash: cd: /sys/kernel/debug: Permission denied
openkylin@openkylin:~$ sudo cd: /sys/kernel/debug
[sudo] openkylin 的密码:
sudo: cd::找不到命令
openkylin@openkylin:~$ sudo cat /sys/kernel/debug/gpio
gpiochip5: GPIOs 416-431, parent: platform/28039000.gpio, 28039000.gpio:
gpiochip4: GPIOs 432-447, parent: platform/28038000.gpio, 28038000.gpio:
gpiochip3: GPIOs 448-463, parent: platform/28037000.gpio, 28037000.gpio:
gpiochip2: GPIOs 464-479, parent: platform/28036000.gpio, 28036000.gpio:
gpio-471 ( |sel ) out hi
gpio-475 ( |det ) in hi IRQ
gpiochip1: GPIOs 480-495, parent: platform/28035000.gpio, 28035000.gpio:
gpio-485 ( |sysled ) out lo
gpiochip0: GPIOs 496-511, parent: platform/28034000.gpio, 28034000.gpio:
openkylin@openkylin:~$ ▒▒
可以进行IO控制。
更多回帖