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.

AM62A7: Build an SD card using create sdcard.sh, but the serial port does not print logs

Part Number: AM62A7

Tool/software:

Hi Ti

  Build an SD card using create sdcard.sh, but the serial port does not print logs.

   pleace help me to check.

Regards,

Daohong

  • Hello,

    Yes, I built the SD card using the create sdcard. sh method in the link, but the serial port does not print logs.

    Regards,

    Daohong

  • The log of./create sdcard.sh is as follows.

    ################################################################################
    
    This script will create a bootable SD card from custom or pre-built binaries.
    
    The script must be run with root permissions and from the bin directory of
    the SDK
    
    Example:
     $ sudo ./create-sdcard.sh
    
    Formatting can be skipped if the SD card is already formatted and
    partitioned properly.
    
    ################################################################################
    
    
    Available Drives to write images to: 
    
    #  major   minor    size   name 
    1:   8       32   15558144 sdc
     
    Enter Device Number or n to exit: 1
     
    sdc was selected
    
    /dev/sdc is an sdx device
    Unmounting the sdc drives
     unmounted /dev/sdc1
     unmounted /dev/sdc2
    Current size of sdc1 131072 bytes
    Current size of sdc2 15426048 bytes
    
    ################################################################################
    
       Detected device has 2 partitions already
    
       Re-partitioning will allow the choice of 2 or 3 partitions
    
    ################################################################################
    
    Would you like to re-partition the drive anyways [y/n] : y
    
     
    Now partitioning sdc ...
    
    
    ################################################################################
    
    	Select 2 partitions if only need boot and rootfs (most users).
    	Select 3 partitions if need SDK & other content on SD card.  This is
            usually used by device manufacturers with access to partition tarballs.
    
    	****WARNING**** continuing will erase all data on sdc
    
    ################################################################################
    
    Number of partitions needed [2/3] : 2
    
     
    Now partitioning sdc with 2 partitions...
     
    
    ################################################################################
    
    		Now making 2 partitions
    
    ################################################################################
    
    1024+0 records in
    1024+0 records out
    1048576 bytes (1.0 MB, 1.0 MiB) copied, 0.516677 s, 2.0 MB/s
    DISK SIZE - 15931539456 bytes
    
    Welcome to fdisk (util-linux 2.37.2).
    Changes will remain in memory only, until you decide to write them.
    Be careful before using the write command.
    
    Device does not contain a recognized partition table.
    Created a new DOS disklabel with disk identifier 0x178ca607.
    
    Command (m for help): Partition type
       p   primary (0 primary, 0 extended, 4 free)
       e   extended (container for logical partitions)
    Select (default p): Partition number (1-4, default 1): First sector (2048-31116287, default 2048): Last sector, +/-sectors or +/-size{K,M,G,T,P} (2048-31116287, default 31116287): 
    Created a new partition 1 of type 'Linux' and of size 128 MiB.
    Partition #1 contains a vfat signature.
    
    Command (m for help): Partition type
       p   primary (1 primary, 0 extended, 3 free)
       e   extended (container for logical partitions)
    Select (default p): Partition number (2-4, default 2): First sector (264192-31116287, default 264192): Last sector, +/-sectors or +/-size{K,M,G,T,P} (264192-31116287, default 31116287): 
    Created a new partition 2 of type 'Linux' and of size 14.7 GiB.
    Partition #2 contains a ext4 signature.
    
    Command (m for help): Partition number (1,2, default 2): Hex code or alias (type L to list all): 
    Changed type of partition 'Linux' to 'W95 FAT32 (LBA)'.
    
    Command (m for help): Partition number (1,2, default 2): 
    The bootable flag on partition 1 is enabled now.
    
    Command (m for help): The partition table has been altered.
    Calling ioctl() to re-read partition table.
    Syncing disks.
    
    
    ################################################################################
    
    		Partitioning Boot
    
    ################################################################################
    mkfs.fat 4.2 (2021-01-31)
    mkfs.fat: Warning: lowercase labels might not work properly on some systems
    
    ################################################################################
    
    		Partitioning rootfs
    
    ################################################################################
    mke2fs 1.46.5 (30-Dec-2021)
    /dev/sdc2 contains a ext4 file system labelled 'root'
    	last mounted on /media/zj/root on Fri Jun 21 14:55:49 2024
    Proceed anyway? (y,N) y
    Creating filesystem with 3856512 4k blocks and 964768 inodes
    Filesystem UUID: 8646b518-77c1-4310-867e-54a3ee3201db
    Superblock backups stored on blocks: 
    	32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208
    
    Allocating group tables: done                            
    Writing inode tables: done                            
    Creating journal (16384 blocks): done
    Writing superblocks and filesystem accounting information: done   
    
    
    
    ################################################################################
    
       Partitioning is now done
       Continue to install filesystem or select 'n' to safe exit
    
       **Warning** Continuing will erase files any files in the partitions
    
    ################################################################################
    
    
    Would you like to continue? [y/n] : y
    
     
     
    Mount the partitions 
     
    Emptying partitions 
     
    
    Syncing....
    
    ################################################################################
    
    	Choose file path to install from
    
    	1 ) Install pre-built images from SDK
    	2 ) Enter in custom boot and rootfs file paths
    
    ################################################################################
    
    Choose now [1/2] : 1
    
     
    Will now install from SDK pre-built images
    now installing:  ti-processor-sdk-linux-edgeai-am62axx-evm-09_01_00_07
    
    ################################################################################
    
       Multiple rootfs Tarballs found
    
    ################################################################################
    
    	 1:tisdk-edgeai-image-am62axx-evm.tar.xz
    	 2:tisdk-tiny-image-am62axx-evm.tar.xz
    Enter Number of rootfs Tarball: 1
    
    ################################################################################
    
    	Copying files now... will take minutes
    
    ################################################################################
    
    Copying boot partition
    
    Boot image not found
    
    
    tispl.bin copied
    
    
    u-boot.img copied
    
    uEnv.txt copied
    
    
    Copying rootfs System partition
                                                                                                                                                                                         
    
     
    Syncing...
     
    Un-mount the partitions 
     
    Remove created temp directories 
     
    Operation Finished
    

  • If the commands are executed from withing the SDK directory, this should work, making sure the directory names or structure are unchanged.

    Just to confirm there is no hardware-based issue, could you please try out the balena-etcher tool to flash the default images into SD card and see if it boots.

    Regards,
    Aparna