• AVR Freaks

Hot!Building linux kernel for Sam9x60

Author
AlbinCaliber@
New Member
  • Total Posts : 7
  • Reward points : 0
  • Joined: 2019/11/28 21:05:33
  • Location: 0
  • Status: offline
2019/12/05 03:17:30 (permalink)
0

Building linux kernel for Sam9x60

Hi sir/madam
                    I am newbie for MPU boot process. Last two days i am try to compile Linux kernel for SAM9X60 but am end up with following error.
                   I was followed this link(https://www.linux4sam.org...d_Kernel_from_sources) for compile it.
 
ERROR
..
..
.
..
In file included from ./include/linux/string.h:6:0,
                 from ./include/linux/uuid.h:20,
                 from fs/xfs/xfs_linux.h:10,
                 from fs/xfs/xfs.h:22,
                 from fs/xfs/xfs_super.c:7:
In function ‘xfs_check_ondisk_structs’,
    inlined from ‘init_xfs_fs’ at fs/xfs/xfs_super.c:2058:2:
./include/linux/compiler.h:348:38: error: call to ‘__compiletime_assert_107’ declared with attribute error: XFS: sizeof(xfs_dir2_sf_entry_t) is wrong, expected 3
  _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
                                      ^
./include/linux/compiler.h:329:4: note: in definition of macro ‘__compiletime_assert’
    prefix ## suffix();    \
    ^
./include/linux/compiler.h:348:2: note: in expansion of macro ‘_compiletime_assert’
  _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
  ^
./include/linux/build_bug.h:45:37: note: in expansion of macro ‘compiletime_assert’
 #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
                                     ^
fs/xfs/xfs_ondisk.h:10:2: note: in expansion of macro ‘BUILD_BUG_ON_MSG’
  BUILD_BUG_ON_MSG(sizeof(structname) != (size), "XFS: sizeof(" \
  ^
fs/xfs/xfs_ondisk.h:107:2: note: in expansion of macro ‘XFS_CHECK_STRUCT_SIZE’
  XFS_CHECK_STRUCT_SIZE(xfs_dir2_sf_entry_t,  3);
  ^
scripts/Makefile.build:303: recipe for target 'fs/xfs/xfs_super.o' failed
make[2]: *** [fs/xfs/xfs_super.o] Error 1
scripts/Makefile.build:544: recipe for target 'fs/xfs' failed
make[1]: *** [fs/xfs] Error 2
Makefile:1046: recipe for target 'fs' failed
make: *** [fs] Error 2
         Please help me to compile it or give any idea to create linux4sam OS for sam9x60 MPU.
Note: There is no deconfig file for compile linux kernel for SAM9X60 chip. How can i get it or give some idea for how to create it.
#1

3 Replies Related Threads

    mlp
    boots too small
    • Total Posts : 946
    • Reward points : 0
    • Joined: 2012/09/10 15:12:07
    • Location: previously Microchip XC8 team
    • Status: offline
    Re: Building linux kernel for Sam9x60 2019/12/05 10:53:26 (permalink)
    0
    Related to https://www.microchip.com/forums/m1121121.aspx
    I suggest you continue the discussion here only as it's more tightly focused on your topic.
     
    Posting the same query in multiple locations without noting the cross-reference will serve only to split the possible responders. Please don't do it if you want quality help.

    Mark (this opinion available for hire)
    #2
    thackerp
    Moderator
    • Total Posts : 127
    • Reward points : 0
    • Joined: 2012/01/18 12:25:44
    • Location: Chandler, AZ
    • Status: offline
    Re: Building linux kernel for Sam9x60 2019/12/05 16:07:27 (permalink)
    0
    The defconfig for the SAM9X60 is at91_dt_defconfig. What toolchain are you using? What is your CROSS_COMPILE environment variable set to?
    #3
    AlbinCaliber@
    New Member
    • Total Posts : 7
    • Reward points : 0
    • Joined: 2019/11/28 21:05:33
    • Location: 0
    • Status: offline
    Re: Building linux kernel for Sam9x60 2019/12/05 20:50:45 (permalink)
    0
    Posting the same query in multiple locations without noting the cross-reference will serve only to split the possible responders. Please don't do it if you want quality help.
                             Sorry for it.
    The defconfig for the SAM9X60 is at91_dt_defconfig. What toolchain are you using? What is your CROSS_COMPILE environment variable set to?
                         Thanks thackerp, it compiled.
     
    #4
    Jump to:
    © 2020 APG vNext Commercial Version 4.5