2013年1月31日 星期四

GM812x cramfs測試步驟


PS: 已經有一個cramfs image file大小約3M

1. 以目前的ramdiskfs模式下,使用chroot 測試cramfs:
  1.1 變更kernal MTD table(mtdblock5),切割一塊3M的partition。
  1.2 enable kernal config to support cramfs.
  1.3 更新FW,讓kernal能support cramfs
  1.4 上傳測試用cramfs,將其寫入mtdblock5:
      dd if=/upload/roo.img of=/dev/mtdblock5
  1.5 切換rootfs:
     mount -t cramfs /dev/mrdblock5 /mnt/mtd
    chroot /mnt/mtd
2. 在kernal boot command 直接開啟cramfs
  2.1 disable kernal config to dissupport ramdiskfs
  2.2 修改kernal boot command,加入cramfs 開機指令:
    ... rootfs=/dev/mtdbloack5 rootfstype=cramfs

沒有留言: