Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1.  Determine the SD card device name
    1. The SD card device name is of the form /dev/sd[b|c|d|e]. Run the following without and with the SD card connected:

      Code Block
      languagebash
      ls /dev/sd*


    2. The device that appeared on the call to ls with the SD card but not the call without is the SD card device.

  2. Unmount all partitions of the SD card, using the SD card device name from Step 1: 

    Code Block
    languagebash
    umount /dev/sd[b|c|d|e]*


  3. Load the SD card image onto the SD card from the linux command line. This will format the appropriate partitions, as well as add U-Boot, the kernel image, and the root filesystem to the card.

    1. From the directory that contains the '.sdcard' file, execute the following command:

      Code Block
      languagebash
      sudo dd if=fsl-image-gui-<MACHINE_NAME>.sdcard of=/dev/sd[b|c|d|e] bs=1MB && sync


...

  1. If modifying the kernel, remove the existing zImage and device tree binary files:

    Code Block
    languagebash
    rm /media/<user>/Boot\ imx7-p/zImage
    rm /media/<user>/Boot\ imx7-p/<MACHINE NAME>.dtb


  2.  Load the new Linux kernel and device tree binary to the SD Card:
     

    Code Block
    languagebash
    cp zImage /media/<user>/Boot\ imx7-p/; sync
    cp zImage-<MACHINE NAME>.dtb /media/<user>/Boot\ imx7-p/<MACHINE NAME>.dtb; sync


...

  1. If modifying the root filesystem, remove the existing:

    Code Block
    languagebash
    sudo rm -rf /media/<user>/<rootfs partition>/*


  2. Load the new filesystem to the SD Card:

    Code Block
    languagebash
    sudo tar -jxf fsl-image-gui-<MACHINE NAME>.tar.bz2 -C /media/<user>/<rootfs partition>/; sync


...

  1. Flash u-boot to the SD card:

    Code Block
    languagebash
    sudo dd if=u-boot.imx of=/dev/sd[b|c|d|e] bs=512 seek=2 conv=fsync