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.

am3517 understanding deployment and single module build

Hello,

I am new to this evm and managed to run linux on it after a kernel build 04_02_00_07 for uboot via make .... uImage. I boot it via tftp from uboot, with rootfs located in an sdcard formatted as ext3, this rootfs I fetched it from timesys website,I could not find it in the images directory of my PSP.

I have followed the 3 steps of wiki to build and I end up with a file named uimage. It boots and runs fine but I dont have ethernet. 

http://processors.wiki.ti.com/index.php/AM35x-OMAP35x-PSP_04.02.00.07_UserGuide#Compiling_Linux_Kernel

The usb works fine, I can see content of usb sticks. I have already built linux on x86 and it looks different, for the mass storage class driver i have a module named usb-storage.ko. I can also build a single module on x86 but have not found how to do it for arm.

As for my questions here are there, hoping to get some help

1. how can I get ethernet working?

2. Where is located the module usb-storage on the target filesystem(also on the host after the build I cannot find built binaries to be embedded to the image, I can only find object files '.o'

3. How to build a single module rather than building all. On x86 it is from kernel root : make drivers/usb-storage.ko. Simply looking for the equivalent

4. Where can i find the rootfs.tar.gz in this PSP to be extracted to SD card?

I thank you in advance for your support

  • Hi Phare,

    What SDK version are you using ?
    Did you download the latest one ?

    By default, the ethernet & USB mass storage supports were enabled in TI SDK.

    Q3) You can build any driver as a module and you can use them in demands.

    make modules ARCH=arm CROSS_COMPILE=arm-arago-linux-gnueabi- --> To build module drivers

    make modules_install INSTALL_MOD_PATH=<rootfs dir> ARCH=arm CROSS_COMPILE=arm-arago-linux-gnueabi- --> To install module drivers in your NFS or root filesyste,

    make uImage ARCH=arm CROSS_COMPILE=arm-arago-linux-gnueabi- --> To build kernel uImage

    Q4) You would get rootfs tar ball in SDK itself (filesystem directory).

    http://software-dl.ti.com/sitara_linux/esd/AM35xSDK/latest/index_FDS.html
  • Hello and thanks for your quick answer.

    I have downloaded version PSP_04.02.00.07 so not the latest one.
    I am gonna use the latest one as you suggested.

    About building modules separately :
    make modules ARCH=arm CROSS_COMPILE=arm-arago-linux-gnueabi => this builds all modules, how to build a single one only? I just want to build the mass storage driver and after a make modules_install see the single binary deployed in my rootfs dir.

    Could you please try to explain this, I cannot understand where is located usbcore and usb-storages modules in my embedded system, despite usb is automounting my stick upon connection, i.e usb is running fine.

    thanks!
  • You can find the USB mass storage drivers in the following location, just copy the .ko file into your filesystem and insert there.
    drivers/usb/storage/