How do I: Difference between revisions

From Yocto Project
Jump to navigationJump to search
(Created page with "'''Q: How do try out my image on a hard disk?''' '''A:''' bitbake core-image-sato or core-image-sato-sdk # have a suitable partition on the disk - say partition #3 # this parti...")
 
No edit summary
Line 1: Line 1:
'''Q: How do try out my image on a hard disk?'''
'''Q: How do I put yocto on a hard drive?'''


'''A:''' bitbake core-image-sato or core-image-sato-sdk
'''A:''' bitbake core-image-sato or core-image-sato-sdk
Line 24: Line 24:




Thats it - this boots for me.
Thats it - this should boot.

Revision as of 17:58, 20 January 2012

Q: How do I put yocto on a hard drive?

A: bitbake core-image-sato or core-image-sato-sdk

  1. have a suitable partition on the disk - say partition #3
  2. this partition will show up as sde3 on my host machine and sda3 on the atom
  3. mkfs.ext3 /dev/sde3
  4. mount /dev/sde3 /mnt/target
  5. mount -o loop tmp/deploy/images/core-image-sato-sdk.ext3 /mnt/target-ext3
  6. cp -a /mnt/target-ext3/* /mnt/target
  7. grub-install --recheck --root-directory=/mnt/target /dev/sde

If grub install passed, copy the following to /mnt/target/boot/grub/grub.cfg

set default="0"
set timeout="30"

menuentry 'Yocto SDK' {
      insmod part_msdos
      insmod ext2
      set root='(hd0,msdos3)'
      linux /boot/bzImage root=/dev/sda3
}


Thats it - this should boot.