顯示具有 grub 標籤的文章。 顯示所有文章
顯示具有 grub 標籤的文章。 顯示所有文章

2010年4月17日 星期六

Linux on SD card


This method uses local grub partition storing external kernel image and initrd then make leave to run the SD card outside, kinda dirty. ##ReadMore##

  1. Install on SD, typically mmcblk0p1 (meaning 1st partition of 1st card), note not to override your local MBR
  2. chroot & rebuild initrd with theese modules:
    mmc_core mmc_block sdhci sdhci-pci
    Configuration files:
    Ubuntu :/etc/initramfs-tools/modules Archlinux :/etc/mkinitcpio.conf
  3. copy both vmlinuz-26* and initrd to local grub, setup corresponding menu entry command, then done

Suspend Issue
Referrer to #7 and #8 of this thread, if you get a kernel >= 2.6.33 just simply append this option into kernel boot parameter:

mmc_core.removable=0
otherwise you have to reconfigure your kernel with option UNSAFE_RESUME enabled and recompile it to get effect.