Ti OMAP 3530 PSP compile note (2)

Source: Internet
Author: User

The PSP has been compiled. Of course, it cannot be tested yet.

 

Devkit8000 also has some work.

 

CD x-load-1.41
Make distclean
Make omap3devkit8000_config
Make
Signgp x-load.bin
MV x-load.bin.ift x-load.bin.ift_for_NAND

 

The signgp tool is not found. No matter what it means, Google will see the following code:

 

# Include <stdio. h>
# Include <stdlib. h>
# Include <fcntl. h>
# Include <sys/STAT. h>
# Include <string. h>
# Include <malloc. h>

Main (INT argc, char * argv [])
{
Int I;
Char ifname [filename_max], ofname [filename_max], ch;
File * ifile, * ofile;
Unsigned long loadaddr, Len;
Struct stat SINFO;

// Default to x-load.bin and 0x40200800.
Strcpy (ifname, "x-load.bin ");
Loadaddr = 0x40200800;

If (argc = 2) | (argc = 3 ))
Strcpy (ifname, argv [1]);

If (argc = 3)
Loadaddr = strtol (argv [2], null, 16 );

// Form the output file name.
Strcpy (ofname, ifname );
Strcat (ofname, ". IFT ");

// Open the input file.
Ifile = fopen (ifname, "rb ");
If (ifile = NULL ){
Printf ("cannot open % s/n", ifname );
Exit (0 );
}

// Get file length.
Stat (ifname, & SINFO );
Len = SINFO. st_size;

// Open the output file and write it.
Ofile = fopen (ofname, "WB ");
If (ofile = NULL ){
Printf ("cannot open % s/n", ofname );
Fclose (ifile );
Exit (0 );
}

// Pad 1 sector of zeroes.
// CH = 0x00;
// For (I = 0; I <0x200; I ++)
// Fwrite (& Ch, 1, 1, ofile );
 
Fwrite (& Len, 1, 4, ofile );
Fwrite (& loadaddr, 1, 4, ofile );
For (I = 0; I <Len; I ++ ){
Fread (& Ch, 1, 1, ifile );
Fwrite (& Ch, 1, 1, ofile );
}
 
Fclose (ifile );
Fclose (ofile );
}

 

GCC compiled and available.

However, I found devkit in the tools directory to provide this tool, which is depressing.

 

Then, the following make uimage is returned, and an error is reported in the kernel, indicating that there is no mkimage tool. Then, Google will check that the mkimage tool compiled in uboot is copied to the same position of the Cross tool chain GCC. Solution.

 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.