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.

PSP and Kernel Modification for AM3354 in Linux based platform..

Other Parts Discussed in Thread: AM3354

Hi,

I am just start use AM3354 based SOM module and for further development purpose I install Ubuntu 10.04 and ti-sdk-am335x-evm-05.06.00.00-Linux-x86-Install in my PC.

I am new in Linux and AM335x both.

I want to make one program like GPIO blink. I want to compile it and put into this SDK PSP and after that compile the kernel and mount this kernel in to the SD Card.

Any body advice how can I do this?

Regards,

Dharmendra

  • Hi Dharmendra,

    Take a look at the Sitara Linux Software Developer's Guide. There you will find explained how to build and install the bootloaders MLO and U-Boot and the Linux kernel (links are provided inside the wiki page).

    Read about the create_sdcard.sh script for quick SD Card formatting and configuring. There are precompiled binaries inside the SDK you downloaded - located in board-support/prebuilt-images/ folder. Please try booting the board with them, before trying any modifications to the code. Once you are successful, proceed to learning how to create, build and use kernel modules.

    Then read the AM335x PSP User's Guide. The GPIO Driver section will provide the necessary knowledge to create a kernel driver/module which can blink an LED using a GPIO pin.

    I also suggest reading the Linux Device Drivers, Third Edition free e-book. It covers a lot of topics, including how to create and use kernel modules.

    Best regards,
    Miroslav

  • Hi Miroslav,

    Thanks for the details. I will try and give the feedback.

    Regards,

    Dharmendra

  • Beginners are not advised to dive right away into kernel development. Too much can and will go wrong.

    If you want to blink a gpio led. Do it from userspace. That's what it's for.

    In Linux everything is represented as a file, and dealing with gpio is as easy as exporting the pin, setting its direction to out and writing 0 and 1 to the value.

    https://www.kernel.org/doc/Documentation/gpio.txt