This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Arago and AM437x EVM

Hello,

I just received my AM437x EVM card, for which I already have an Arago installed and functioning, generating all the needed files (u-boot, zImage, rootfs) ..... but how do I prepare the SD card for them?

The only thing I found is script for Linux SDK, but I do not have it installed: is there another way?

Before I used a Pandaboard some I followed these instructions: http://eewiki.net/display/linuxonarm/PandaBoard Are they valid also for the AM437XEVM?

Thanks and sorry for the beginner's question,

Michele

  • Hi Michele,

    You can prepare your SD card either with the create-sdcard.sh script included in the Sitara SDK or:

    On the host PC with the SD card inserted:
    1.01. sudo fdisc /dev/sdd (or /dev/mmcblk0)
    1.02. o - this clears the existing partitions
    1.03. p - this lists all partition tables on the card (there should be none)
    1.04. n - create a new partition
    1.05. p - primary partition
    1.06. 1 - partition number
    1.07. 2048 - default value for the first sector
    1.08. +64M - last sector / partition size
    1.09. t - change the partition type (select partition 1)
    1.10. e - change tha partition type to "W95 FAT16 (LBA)"
    1.11. a - set the bootable flag for the selected partition (1)
    1.12. n - create a new partition
    1.13. p - primary partition
    1.14. 2 - partition number
    1.15. hit Enter to choose the default (next available) value for the first sector
    1.16. hit Enter to choose the default (last) value for the last sector
    1.17. p - this lists all partition tables on the card (there should be two)
    1.18. w - write all the above changes to disk
    1.19. sudo mkfs.vfat -F 16 /dev/mmcblk0p1 (or /dev/sdd1) - format the first partition
    1.20. sudo mkfs.ext4 /dev/mmcblk0p2 (or /dev/sdd2) - format the second partition
    1.21. copy the {MLO,u-boot.img,uEnv.txt} files to the first partition:
    # mkdir boot
    # sudo mount /dev/mmcblk0p1 boot
    # cp {MLO,u-boot.img,uEnv.txt} boot
    # sudo umount boot
    1.22. copy the root file system to the second partition:
    # mkdir root
    # sudo mount /dev/mmcblk0p2 root
    # tar -xf tisdk-rootfs-image-am335x-evm.tar.gz -C root
    # sudo umount root

    Best regards,
    Miroslav

  • Thanks Miroslav,

    I will try it out, but how can I perform points 1.02 to 1.18?

    I it maybe possible to use the script without having the whole Sitara SDK installed?

    Thanks,

    Michele

  • Michele Portolan1 said:
    I will try it out, but how can I perform points 1.02 to 1.18?

    These are just "fdisk" commands which will be available once you run the "fdisk" application on your host PC.

    Michele Portolan1 said:
    I it maybe possible to use the script without having the whole Sitara SDK installed

    I'm not sure, I haven't tried this.

    Best regards,
    Miroslav

  • I installed the SDK under Linux, and used the script to make an SD card with pre-built images and it works.


    On the other hand I cannot make it work with Arago: in my "/deplou" directory I do have a roots that is correctly read, but I have no boot.tar.gz, only directly the u-boot.bin and MLO files....can I make arago generate the boot filesystem? Or do I have to make it manually (how)?

    Thanks,

    Michele