C缘网
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Linux中squashfs格式固件修改和封包过程

向下

Linux中squashfs格式固件修改和封包过程 Empty Linux中squashfs格式固件修改和封包过程

帖子 由 eyke0519 周五 23 三月 2012 - 19:51

继上文Linux中squashfs格式固件解包的过程之后,本文接着介绍Linuxsquashfs格式固件修改和封包过程,具体内容如下所述。
修改
打开解压后的文件夹squashfs-root,相当于进到播放机的根目录,我们可以根据需要在其中修改增加内容。例如,如果要修改usr/local/bin/scripts中的rss文件,可以依次双击打开usr、local、bin、scripts,进到usr/local/bin/scripts中,再选择要修改的文件进行修改。除非是固件程序本身功能上的要求,在修改时不用mount-obind绑文件之类的命令绕来绕去,直接修改要修改的文件就可以了。现在修改squashfs格式固件就像修改yaffs格式固件一样方便。
Linux中squashfs格式固件修改和封包过程 3_15544_c87e5ddcd2e47cf
Linux中squashfs格式固件修改和封包过程 3_15544_b207222eae62644
Linux中squashfs格式固件修改和封包过程 3_15544_33240058f2c1a81
Linux中squashfs格式固件修改和封包过程 3_15544_565d74b0adcc5b1
Linux中squashfs格式固件修改和封包过程 3_15544_c81bc63e5b2a258
Linux中squashfs格式固件修改和封包过程 3_15544_f4cab9910f53d77
Linux中squashfs格式固件修改和封包过程 3_15544_cf9de07ac2dddb6
Linux中squashfs格式固件修改和封包过程 3_15544_24a68170abad283
封包
1、修改完squashfs-root后,回到“hdp中文”文件夹。双击“封包squashfs”,在显示的菜单中点击“运行”,生成修改后的squashfs格式固件install.img,同时自动删除前面解包时生成的两个解压文件夹install.img_FILES和squashfs-root。
Linux中squashfs格式固件修改和封包过程 3_15544_267e65689b121da
Linux中squashfs格式固件修改和封包过程 3_15544_a020d689c4d9695
Linux中squashfs格式固件修改和封包过程 3_15544_1205d576f1c60df
Linux中squashfs格式固件修改和封包过程 3_15544_3a41f3290f48b69
2、把新生成的install.img拖拽复制到u盘的根目录,就可以把u盘插到播放机刷机了。
Linux中squashfs格式固件修改和封包过程 3_15544_50c513e63c4907d
Linux中squashfs格式固件修改和封包过程 3_15544_937995ceab35d38
总结:
希望本系列介绍的在Linux中的squashfs格式固件解包、修改和封包过程能够对读者有所帮助,更多有关linux系统的知识还有待于读者去探索和学习。
eyke0519
eyke0519
Admin

帖子数 : 10619
注册日期 : 08-12-15

http://eyke.1ercn.com

返回页首 向下

返回页首


 
您在这个论坛的权限:
不能在这个论坛回复主题