Part Number: AM3352
Tool/software: Linux
Hi TI team
How to create "sitara_linux_sdk_am335x.img" using Linux SDK??
Processor SDK Linux Creating a SD Card with Windows
processors.wiki.ti.com/.../Processor_SDK_Linux_Creating_a_SD_Card_with_Windows
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.
Part Number: AM3352
Tool/software: Linux
Hi TI team
How to create "sitara_linux_sdk_am335x.img" using Linux SDK??
Processor SDK Linux Creating a SD Card with Windows
processors.wiki.ti.com/.../Processor_SDK_Linux_Creating_a_SD_Card_with_Windows
Hello WTMEC_Will,
You can create sitara_linux_sdk_am335x.img in this way.
Create an empty image.
dd if=/dev/zero of=am335x-evm-linux-04.03.00.05.img bs=512 count=16384000
Partition the image through fdisk.
fdisk am335x-evm-linux-04.03.00.05.img
o - create a new empty DOS partition table
n - add a new partition
p - primary
1
2048
145407
t - change a partition type
c - 'W95 FAT32 (LBA)'
a - toggle a bootable flag
n - add a new partition
p - primary
2
145408
16351231
p - print the partition table
w - write table to disk and exit
Create a loopback for each partition.
sudo losetup -o 1048576 --sizelimit 73400320 /dev/loop0 am335x-evm-linux-04.03.00.05.img
sudo losetup -o 74448896 --sizelimit 8297381888 /dev/loop1 am335x-evm-linux-04.03.00.05.img
Format the partitions.
sudo mkfs.vfat -F 32 -n "boot" /dev/loop0
sudo mkfs.ext3 -L "rootfs" /dev/loop1
Mount the partitions and populate.
mkdir boot rootfs
sudo mount -o uid=$(whoami),gid=$(whoami) /dev/loop0 boot/
sudo mount /dev/loop1 rootfs/
cp <Processor SDK>/board-support/prebuilt-images/MLO-am335x-evm boot/MLO
cp <Processor SDK>/board-support/prebuilt-images/u-boot-am335x-evm.img boot/u-boot.img
sudo tar xvf <Processor SDK>/filesystem/tisdk-rootfs-image-am335x-evm.tar.xz -C rootfs/
sync
Umount partitions and image.
sudo umount /dev/loop0 /dev/loop1
sudo losetup -d /dev/loop0 /dev/loop1
rm -rf boot rootfs
Conclusion.
Your sitara_linux_sdk_am335x.img is ready and it is the same as the original one.
Optional.
zip am335x-evm-linux-04.03.00.05.img.zip am335x-evm-linux-04.03.00.05.img
Best regards,
Kemal