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.

am335x prebuilt uImage and compiled uImage

Hi, experts.

 

I'm using am335x evm and there are some questions.

When I open the am335x prebuilt image and compiled uImage the size is slightly different and value also different.

what make it different?

When I check the binary of uImage, it also different. ( prebuilt - Arago/3.2 ...  compiled -  linux3.2..)

Does someone please tell me why?

also when I compile the kernel i can't get the bin image. is it just copy to bin? ( ex)  cp uimage uimage.bin)

please let me know these things.

Thank you.

Jay.€€

€

  • Hi Jay,

    The difference is just in the header section. The uImage is created from the zImage using the mkimage tool. Here is how it is used:

    → mkimage --help
    Usage: mkimage -l image
              -l ==> list image header information
           mkimage [-x] -A arch -O os -T type -C comp -a addr -e ep -n name -d data_file[:data_file...] image
              -A ==> set architecture to 'arch'
              -O ==> set operating system to 'os'
              -T ==> set image type to 'type'
              -C ==> set compression type 'comp'
              -a ==> set load address to 'addr' (hex)
              -e ==> set entry point to 'ep' (hex)
              -n ==> set image name to 'name'
              -d ==> use image data from 'datafile'
              -x ==> set XIP (execute in place)
           mkimage [-D dtc_options] -f fit-image.its fit-image
           mkimage -V ==> print version information and exit

    The argument you pass after "-n" is usually the name and version of the image. Example:

    $ mkimage -A arm -O linux -T kernel -C none -a 0x80008000 -e 0x80008000 -n 'Linux-3.0.31' -d arch/arm/boot/zImage arch/arm/boot/uImage

    This means that most probably the guys from the Arago project prebuilt their image by hand, passing "Arago/3.2.0-psp05.06.00.00/am335" as its name.

    Regarding your second question: the last argument you pass to the mkimage tool is the output filename. It may be whatever you wish. I hope this answers your question.

    Best regards,
    Miroslav

  • Thank you Miroslav.

    I really appriciate your timely response.

    Best regards.

    Jay.