Xilinx linux使用
程序员文章站
2022-07-12 11:29:49
...
emmc文件系统扩容
[email protected]:~# df -T
Filesystem Type 1K-blocks Used Available Use% Mounted on
devtmpfs devtmpfs 1891484 4 1891480 0% /dev
tmpfs tmpfs 2025672 72 2025600 0% /run
tmpfs tmpfs 2025672 60 2025612 0% /var/volatile
/dev/mmcblk0 ext4 122835 59447 54214 52% /run/media/mmcblk0
[email protected]:~# resize2fs /dev/mmcblk0
resize2fs 1.43 (17-May-2016)
Filesystem at /dev/mmcblk0 is mounted on /run/media/mmcblk0; on-l[ 679.287027] EXT4-fs (mmcblk0): resizing filesystem from 131072 to 15558144 blocks
ine resizing required
old_desc_blocks = 1, new_desc_blocks = 60
[ 679.327243] random: crng init done
[ 679.620904] EXT4-fs (mmcblk0): resized filesystem to 15558144
The filesystem on /dev/mmcblk0 is now 15558144 (1k) blocks long.
[email protected]:~# df -T
Filesystem Type 1K-blocks Used Available Use% Mounted on
devtmpfs devtmpfs 1891484 4 1891480 0% /dev
tmpfs tmpfs 2025672 72 2025600 0% /run
tmpfs tmpfs 2025672 60 2025612 0% /var/volatile
/dev/mmcblk0 ext4 15062932 60866 14375913 0% /run/media/mmcblk0
i2c
i2c控制器列表:i2cdetect -l
扫描总线上的设备:i2cdetect -y -r 1(总线号为1)
读寄存器:i2cget -y 1 0x58 6(读总线号1,地址0x58,地址0x6寄存器)