Zoom3 Boot Instructions

From OMAPpedia

Revision as of 11:26, 18 June 2010 by Ghorai (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Contents

[edit] Setting up a bootable SD Card to Start

You will need to format your SD/MMC Card for the Linux file system, so with a card reader connect the card to your Linux Ubuntu PC and run the command:

Match the device to the size of your memory card. Look for the /dev/**** device which matches the memory card in the memory card. Use the matching device’s letter prefix in the next command. For example if the device for memory card reader+ card example was: /dev/sdb1, then use only /dev/sdb in the fdisk command.

Take note of the size in bytes of your SD Card. You will need this to calculate the number of cylinders in a future step.
Run the step:

[edit] Boot uImage, u-boot, and x-loader from SD, filesystem via NFS

NFS will allow you to access the root file system on a network location. The platform will access the remote file system using Ethernet ETH0 over the ZOOM3 Ethernet connector.
Uncompress as sudo user this file omap-image-sato-zoom3-20100204184744.rootfs.tar.gz in your NFS folder.
Change “home/nfs” in etc/exports to match your unzipped rootfs. If needed change permissions and owner.
Use the next bootargs (IP address based on your setup.)

  setenv ipaddr 10.87.224.99
  setenv gatewayip 10.87.224.1 
  setenv serverip 10.87.230.185
  setenv ethaddr 08:00:EE:03:7D:C1 
  setenv video omap_vout_mod.video1_numbuffers=4 omap_vout_mod.vid1_static_vrfb_alloc=y omap_vout_mod.video2_numbuffers=4 omap_vout_mod.vid2_static_vrfb_alloc=y
  setenv bootargs=mem=256M console=ttyS3,115200n8 noinitrd root=/dev/nfs rw nfsroot=128.247.79.194:/home/jmills/nfs.l23,nolock,devfs=mount ip=dhcp nfsvers=3,tcp omap_vout_mod.video1_numbuffers=4 omap_vout_mod.vid1_static_vrfb_alloc=y omap_vout_mod.video2_numbuffers=4 omap_vout_mod.vid2_static_vr_vrfb_alloc=y 
  setenv bootcmd=mmcinit 0; fatload mmc 0 80300000 uImage-zoom3.bin; bootm 0x80300000 
  set bootdelay 2 
  saveenv 
  boot
  “nfsroot=128.247.79.194:/home/jmills/nfs.l23” changes this for your file system location.

[edit] Boot uImage, u-boot, and x-loader from SD, filesystem from NAND

Refer to Zoom_Flashing for information regarding uboot and xloader to flash in NAND.

First, boot using the filesystem omap-image-minimal-mtdutils and copy into it filesystem tarball to be flashed: omap-image-zoom3.tar.gz, then execute into the console:

   cd /
   flash_eraseall -j /dev/mtd4
   mkdir -p /mnt/nand  
   mount -t jffs2 /dev/mtdblock4 /mnt/nand  
   cd /mnt/nand
   tar -zxvf <poky-fs.tar.gz>
   sync
   cd /
   umount /mnt/nand

Then reboot the system using following bootargs (for zoom3):

  bootcmd=mmcinit 0; fatload mmc 0 80300000 uImage-zoom3.bin; bootm 0x80300000
  setenv video_settings omap_vout_mod.video1_numbuffers=4 omap_vout_mod.vid1_static_vrfb_alloc=y omap_vout_mod.video2_numbuffers=4 omap_vout_mod.vid2_static_vrfb_alloc=y
  setenv bootargs console=ttyS3,115200n8 noinitrd mem=256M root=/dev/mtdblock4 rw rootdelay=3 init=/sbin/init rootfstype=jffs2 devfs=mount ip=dhcp $video_settings
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox