TI DM368 용 Ramdisk 생성

1. Kernel에서 "make menuconfig" 
  가) Device Drivers -> Block Devices -> Loopback device support [*]
  나) Device Drivers -> Block Devices -> Default RAM disk size [원하는 사이즈로 1M = 1024]

2. Ramdisk 생성
  sudo dd if=/dev/zero of=ramdisk bs=1M count=40
  sudo /sbin/mkfs.ext2 ramdisk
  sudo mkdir dir_ramdisk
  sudo mount ramdisk ./dir_ramdisk -o loop
  cd /dir_ramdisk
  파일 시스템 복사
  sudo umount dir_ramdisk
  gzip ramdisk

3. Bootloader ARGS
  setenv bootargs "mem=116M console=ttyS0,115200n8 root=/dev/ram0 rw initrd=0x82000000,13M ip=off video=davincifb:vid0=OFF:vid1=OFF:osd0=800x480x16,4050K dm365_imp.oper_mode=0 vpfe_capture.interface=1 davinci_enc_mngr.ch0_output=LCD davinci_enc_mngr.ch0_mode=800x480 rootwait"

Posted by 다크쌍피