Compile kernel

Discussion in 'Kernels' started by wgvanveen, Oct 9, 2014.

  1. wgvanveen

    wgvanveen New Member

    Joined:
    Oct 5, 2014
    Messages:
    5
    Likes Received:
    1
    Hey guys,

    I am trying to compile the kernel voor UDOO 3.0.35 from source in order to activate the ath9k_htc modules to use a better wifi dongle. I followed the documentation from the UDOO website (guide from downloads). I try to compile on the UDOO itself such that i don't need a cross-compiler. First I clone the kernel from github. Then I run:

    Code:
    sudo su
    make ARCH=arm UDOO_deconfig
    
    which generates the output:

    Code:
    root@udoobuntu: /home/ubuntu/kernel $ make ARCH=arm UDOO_deconfig
      HOSTCC  scripts/basic/fixdep
    make[1]: *** No rule to make target `UDOO_deconfig'.  Stop.
    make: *** [UDOO_deconfig] Error 2
    
    I have realy no idea what to do any more. Can somebody help me to compile this, or find a different way to get the ath9k_htc modules to work on the UDOO?

    Thank you!
     
  2. indianerjones

    indianerjones New Member

    Joined:
    Mar 10, 2014
    Messages:
    18
    Likes Received:
    1
    You have a typo in your instructions. It's "defconfig", not "deconfig"
     
  3. wgvanveen

    wgvanveen New Member

    Joined:
    Oct 5, 2014
    Messages:
    5
    Likes Received:
    1
    Thank you for the help! That really kept me busy for a while. I have succesfully compiled the kernel. However, now i have a folder lib. In there are the drivers I need. I tried to copy them all to the location /lib/modules/3.0.35 using:

    Code:
    sudo cp -r ./lib/modules/3.0.35-g8a6eb06/* /lib/modules/3.0.35/
    
    This goes without errors, however when I run:

    Code:
    sudo modprobe ath9k_htc
    
    I will het the error
    Code:
    FATAL: Error inserting ath9k_htc (/lib/modules/3.0.35/kernel/drivers/net/wireless/ath/ath9k/ath9k_htc.ko): Unknown symbol in module, or unknown parameter (see dmesg)
    
    I have put the firmware (htc_9271.fw) inside /lib/firmware
     
  4. mushketer888

    mushketer888 New Member

    Joined:
    Jan 13, 2015
    Messages:
    20
    Likes Received:
    1
    try to run command:
    #depmod
     

Share This Page