RK3568-Linux-麒麟系统---更新制作麒麟rootfs

这篇博客介绍了如何制作包含额外应用的麒麟系统rootfs。首先,在麒麟系统上安装所需应用,如rsync和ssh。然后,在Ubuntu PC上安装相同工具并配置ssh。接着,通过rsync同步麒麟系统的文件系统到PC。最后,使用dd创建并格式化img文件,将文件复制进去,检查并调整文件系统大小,完成新rootfs的制作。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

介绍

麒麟提供的RK3568 rootfs ,有好多功能没有安装,根据需要安装了QT, smplayer,alsa等应用,为了不用在每台设备上重新安装,因此有必要依据现在rootfs制作一个新的rootfs,新rootfs包含新安装的应用,
在网上查了相关资料发现根据现在系统制作rootfs还是比较简单的,主要步骤如下:

1. 在麒麟系统安装好所有要安装的应用工具。

    检查要安装的工具,最主要是**rsync**,**ssh** 工具一定要安装,主要是用这个工具同步文件

2. 在PC Ubuntu系统安装工具

  PC Ubuntu系统要安装的工具主要是**ssh**和**rsync**.
  查看ssh配置文件
  cat /etc/ssh/sshd_config | grep PermitRootLogin
  PermitRootLogin yes
  确保PermitRootLogin yes。如果不是yes要修改为yes 再执行 service sshd restart

3.在PC主机上创建一个目录,用来保存同步过来的文件系统

cd ~/ky_rootfs
mkdir Board
执行 rsync -avx root@192.168.0.99:/ Board
192.168.0.99 是麒麟系统设备的IP地址。
执行完后,麒麟系统的文件已经copy到Board目录下了。

4。打包IMG文件

  1. dd 工具创建文件
    dd if=/dev/zero of=ky_rootfs.img bs=1M count=10240
    创建大约10G的空文件,最终的文件系统9G左右,这个要根据系统大小确定需要的大小。
  2. 格式式镜像文件。
    sudo mkfs.ext4 ky_rootfs.img
  3. 创建挂载目录
    mkdir mount
  4. 挂载镜像文件到挂载目录mount
    sudo mount ky_rootfs.img mount/
  5. copy 文件到挂载目录
    sudo cp -rfp Board/* mount/
  6. 卸载挂在目录:sudo umount mount/
  7. 检查修复镜像文件:e2fsck -p -f ky_root.img
  8. 减小镜像文件大小:resize2fs -M ky_root.img

这样,新的rootfs制作完成。

### Galaxy Kylin OS on RK3588 Platform Documentation and Support #### Overview of Compatibility The RK3588 series solutions have been adapted to work with the domestic operating system, specifically the Galaxy Kylin V10 SP1 2403 version[^3]. This adaptation ensures that hardware from this series can operate seamlessly under the control of a domestically developed operating environment. #### Features Provided by Adaptation Adapting the RK3588 products for use with Galaxy Kylin enhances several aspects including performance optimization tailored towards specific Chinese market needs. Moreover, it supports comprehensive security measures which are critical components within government or enterprise-level applications where data integrity is paramount. #### Development Environment Setup For developers looking into creating applications targeting both platforms simultaneously (RK3588 & Galaxy Kylin), setting up an appropriate development toolchain becomes essential. While not explicitly mentioned in relation to Galaxy Kylin directly, similar setup procedures as those outlined when preparing QT environments could be applicable here too; such setups typically involve configuring compilers along with libraries like OpenCV necessary for multimedia processing tasks[^2]. #### Compilation Instructions Example When working closely between these two ecosystems, one might encounter scenarios requiring custom compilation processes. For instance, compiling RKMPP library—a set of APIs designed primarily around Rockchip's video codec functionalities—one would follow commands akin to: ```bash sudo ./mpi_enc_test -i /home/kylin/Tennis1080p.yuv \ -t 7 \ -n 250 \ -o /home/kylin/Tennis1080p250.h264 \ -w 1920 \ -h 1080 \ -fps 25 ``` This command demonstrates how users may encode YUV format videos into H.264 streams using parameters specified above while running on supported systems including potentially Galaxy Kylin depending upon available drivers/support packages installed at runtime[^5]. #### Security Considerations Given emphasis placed on national information technology autonomy through projects involving RK3588 alongside Galaxy Kylin, ensuring secure coding practices remains vital throughout all phases of software lifecycle management especially concerning sensitive sectors relying heavily upon stable IT infrastructure provided by such collaborations. --related questions-- 1. What steps should be taken during initial configuration of RK3588 devices intended for deployment with Galaxy Kylin? 2. How does integrating additional peripheral support impact overall stability when pairing RK3588 SoCs with Galaxy Kylin distributions? 3. Can you provide examples illustrating best practices for securing communications channels established over networks connecting multiple nodes powered by combined RK3588-Galaxy Kylin configurations? 4. In what ways do current versions of Galaxy Kylin address potential compatibility issues arising due to differences in kernel architecture compared against standard Linux variants used widely across different industries today?
评论 9
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值