Other Parts Discussed in Thread: DM388
Tool/software: Linux
Hello,
I have modified some configuration options and have compiled using 'make syscal all'. I am trying to write to the SD card as per the steps explained in http://processors.wiki.ti.com/index.php/IPNC_RDK_DM38x_,_DM8127#Boot_setup_for_custom_build.
root@ubuntu:~/ti/ipnc_rdk-3.9.1/Utils/sd-script# ./mksd-ti81xx.sh /dev/sdb ../../Source/ipnc_rdk/tftp/DM388/sd/MLO ../../Source/ipnc_rdk/tftp/DM388/sd/u-boot.img ../../Source/ipnc_rdk/tftp/DM388/sd/dm38x-csk.dtb ../../Source/ipnc_rdk/tftp/DM388/sd/uImage ../../Source/ipnc_rdk/target/filesys.tar.gz All data on /dev/sdb now will be destroyed! Continue? [y/n] y [Partitioning /dev/sdb...] unmounting device '/dev/sdb' 1024+0 records in 1024+0 records out 1048576 bytes (1.0 MB, 1.0 MiB) copied, 0.896747 s, 1.2 MB/s DISK SIZE - 15987638272 bytes CYLINDERS - 1943 sfdisk: invalid option -- 'D' Try 'sfdisk --help' for more information. [Making filesystems...] [Copying files...] mount: /mnt: special device /dev/sdb1 does not exist. umount: /dev/sdb1: no mount point specified. mount: /mnt: special device /dev/sdb2 does not exist. umount: /dev/sdb2: no mount point specified. [Done]
Here is the script file as provided in the IPNC rdk software. ( I have not modified this script)
#!/bin/bash if [[ -z $1 || -z $2 || -z $3 || -z $4 || -z $5 || -z $6 ]] then echo "mksd-ti81xx Usage:" echo " mksd-ti81xx <device> <MLO> <u-boot.img> <dtb> <uImage> <rootfs tar.gz>" echo " Example: mksd-ti81xx /dev/sdc MLO u-boot.img dm38x-csk.dtb uImage nfs.tar.gz" exit fi if ! [[ -e $2 ]] then echo "Incorrect MLO location!" exit fi if ! [[ -e $3 ]] then echo "Incorrect u-boot.img location!" exit fi if ! [[ -e $4 ]] then echo "Incorrect dtb location!" exit fi if ! [[ -e $5 ]] then echo "Incorrect uImage location!" exit fi if ! [[ -e $6 ]] then echo "Incorrect rootfs location!" exit fi echo "All data on "$1" now will be destroyed! Continue? [y/n]" read ans if ! [ $ans == 'y' ]
then exit fi echo "[Partitioning $1...]" DRIVE=$1 for i in `ls -1 $DRIVE?`; do echo "unmounting device '$i'" umount $i 2>/dev/null done dd if=/dev/zero of=$DRIVE bs=1024 count=1024 SIZE=`fdisk -l $DRIVE | grep Disk | awk '{print $5}'` echo DISK SIZE - $SIZE bytes CYLINDERS=`echo $SIZE/255/63/512 | bc` echo CYLINDERS - $CYLINDERS { echo ,9,0x0C,* echo 10,,,- } | sfdisk -D -H 255 -S 63 -C $CYLINDERS $DRIVE echo "[Making filesystems...]" mkfs.vfat -F 32 -n boot "$1"1 &> /dev/null mkfs.ext3 -L rootfs "$1"2 &> /dev/null echo "[Copying files...]" mount "$1"1 /mnt cp $2 /mnt/MLO cp $3 /mnt/u-boot.img cp $4 /mnt/ cp $5 /mnt/uImage umount "$1"1 mount "$1"2 /mnt tar zxvf $6 -C /mnt &> /dev/null chmod 755 /mnt umount "$1"2 echo "[Done]"
In the script in Line 9:
for i in `ls -1 $DRIVE?`; do
Is the '?' required. I tried removing the '?' and I still have the same issue.
For some reason sdb1 and sdb2 are not created. However 'lsblk' shows '/dev/sdb'
Does anyone have a hand on this issue?