替换dtv_driver.ko .步骤:
[email protected]:/ # get_rootfs.sh
grep -w boot /proc/partinfo | grep -o part.. |grep -o ‘[1-9]*[0-9]$‘
cat /dev/block/mmcblk0p5 > /cache/out/boot.img
split_bootimg /cache/out/boot.img
gunzip -dc /cache/out/boot.img-ramdisk.gz | cpio -i
27166 blocks
Extracting rootfs into
===> /cache/out/rootfs
Update rootfs by
===> update_rootfs.sh
[email protected]:/ #
[email protected]:/ # cd /cache/out/rootfs/
[email protected]:/cache/out/rootfs # rm -rf dtv_driver.ko
[email protected]:/cache/out/rootfs # cp /usbdisk/dtv_driver.ko . <
[email protected]:/cache/out/rootfs # sync
[email protected]:/cache/out/rootfs # update_rootfs.sh
grep -w boot /proc/partinfo | grep -o part.. |grep -o ‘[1-9]*[0-9]$‘
mkbootfs /cache/out/rootfs | gzip > /cache/out/new-boot.img-ramdisk.gz
mkbootimg --kernel /cache/out/boot.img-kernel --ramdisk /cache/out/new-boot.img-ramdisk.gz --output /cache/out/new-boot.img
dd of=/dev/block/mmcblk0p5 bs=1M if=/cache/out/new-boot.img
8+1 records in
8+1 records out
9060352 bytes (8.6MB) copied, 0.539586 seconds, 16.0MB/s
[email protected]:/cache/out/rootfs #
重启