Other Parts Discussed in Thread: DRA742, PMP, DRA752
Tool/software: Linux
TDA2EVM5777
software: PROCESSOR_SDK_VISION_03_00_00_00_setuplinux.bin
host hardware: Linux Ubuntu 14.04 64 bit (Ubuntu on a virtual machine)
target hardware: VAYU ES2.0 GP EVM VISION - EVM5777G-03-40-00 703760-1031 REV C
refer VisionSDK_Linux_UserGuide.pdf -> 4.2 Preparing SD card & Boot -> 4. Format SD card and create two partitions (boot (FAT32) and rootfs(ext4)) using mksdboot.sh.
SD card: micro sd 8GB
There is a question about format SD card and create two partitions. I need help.
I also try to use 4 GB sd card, with the same error.
Thank you very much.
strong@ubuntu:~$ bash
strong@ubuntu:~$ export INSTALL_DIR=/home/strong/PROCESSOR_SDK_VISION_03_00_00_00
strong@ubuntu:~$ echo $INSTALL_DIR
/home/strong/PROCESSOR_SDK_VISION_03_00_00_00
strong@ubuntu:~$ export BOOT_DIR=/home/strong/PROCESSOR_SDK_VISION_03_00_00_00/vision_sdk/binaries/apps/tda2xx_evm_linux_all
strong@ubuntu:~$ cd $BOOT_DIR
strong@ubuntu:~/PROCESSOR_SDK_VISION_03_00_00_00/vision_sdk/binaries/apps/tda2xx_evm_linux_all$ sudo ./mksdboot.sh --device /dev/sdb1 --sdk $BOOT_DIR
[sudo] password for strong:
-- Main device is: /dev/sda1
************************************************************
* THIS WILL DELETE ALL THE DATA ON /dev/sdb1 *
* *
* WARNING! Make sure your computer does not go *
* in to idle mode while this script is *
* running. The script will complete, *
* but your SD card may be corrupted. *
* *
* Press <ENTER> to confirm.... *
************************************************************
unmounting device '/dev/sdb1'
2048+0 records in
2048+0 records out
1048576 bytes (1.0 MB) copied, 0.984664 s, 1.1 MB/s
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
Building a new DOS disklabel with disk identifier 0xb8520dfa.
Changes will remain in memory only, until you decide to write them.
After that, of course, the previous content won't be recoverable.
Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)
Command (m for help): Partition type:
p primary (0 primary, 0 extended, 4 free)
e extended
Select (default p): Partition number (1-4, default 1): First sector (2048-15124479, default 2048): Using default value 2048
Last sector, +sectors or +size{K,M,G} (2048-15124479, default 15124479):
Command (m for help): Partition type:
p primary (1 primary, 0 extended, 3 free)
e extended
Select (default p): Partition number (1-4, default 2): First sector (264192-15124479, default 264192): Using default value 264192
Last sector, +sectors or +size{K,M,G} (264192-15124479, default 15124479): Using default value 15124479
Command (m for help): Partition number (1-4): Hex code (type L to list codes): Changed system type of partition 1 to c (W95 FAT32 (LBA))
Command (m for help): Partition number (1-4):
Command (m for help): The partition table has been altered!
Calling ioctl() to re-read partition table.
WARNING: Re-reading the partition table failed with error 22: Invalid argument.
The kernel still uses the old table. The new table will be used at
the next reboot or after you run partprobe(8) or kpartx(8)
WARNING: If you have created or modified any DOS 6.x
partitions, please see the fdisk manual page for additional
information.
Syncing disks.
Formating /dev/sdb1p1...
Cant find boot partition in /dev
Formating /dev/sdb1p2...
Cant find rootfs partition in /dev
Copying filesystem on /dev/sdb1p1, /dev/sdb1p2
mount: special device /dev/sdb1p1 does not exist
mount: special device /dev/sdb1p2 does not exist
Extracting filesystem on /dev/sdb1p2 ...
unmounting /dev/sdb1p1, /dev/sdb1p2
umount: /tmp/sdk/4035/boot: not mounted
umount: /tmp/sdk/4035/rootfs: not mounted
completed!
mksdboot.sh portion
......
echo "************************************************************"
echo "* THIS WILL DELETE ALL THE DATA ON $device *"
echo "* *"
echo "* WARNING! Make sure your computer does not go *"
echo "* in to idle mode while this script is *"
echo "* running. The script will complete, *"
echo "* but your SD card may be corrupted. *"
echo "* *"
echo "* Press <ENTER> to confirm.... *"
echo "************************************************************"
read junk
for i in `ls -1 $device`; do
echo "unmounting device '$i'"
umount $i 2>/dev/null
done
dd if=/dev/zero of=$device bs=512 count=2048
sync
cat << END | fdisk $device
n
p
1
+128M
n
p
2
t
1
c
a
1
w
END
# handle various device names.
PARTITION1=${device}p1
if [ ! -b ${PARTITION1} ]; then
PARTITION1=${device}p1
fi
PARTITION2=${device}p2
if [ ! -b ${PARTITION2} ]; then
PARTITION2=${device}p2
fi
# make partitions.
echo "Formating ${PARTITION1}..."
if [ -b ${PARTITION1} ]; then
mkfs.vfat -F 32 -n "boot" ${PARTITION1}
else
echo "Cant find boot partition in /dev"
fi
echo "Formating ${PARTITION2}..."
if [ -b ${PARTITION2} ]; then
mkfs.ext4 -L "rootfs" ${PARTITION2}
else
echo "Cant find rootfs partition in /dev"
fi
......