• AVR Freaks

Hot!Building linux kernel for Sam9x60

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

Building linux kernel for Sam9x60

Hi sir/Madam
           1] How to compile Linux kernel for SAM9x60. Their is no SAM9x60_defconfig file present in linux-at91-master/arch/arm/configs.
            2] I tried to compile Linux kernel for Sam9x60 using make ARCH=arm menuconfig  but it ended up with below following 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


Thanks
Albin Raj
#1

1 Reply Related Threads

    mlp
    boots too small
    • Total Posts : 833
    • 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:51:32 (permalink)
    0
    Related to https://www.microchip.com/forums/m1121117.aspx
    I suggest you continue the discussion there as it's more tightly focused on your topic.

    Mark (this opinion available for hire)
    #2
    Jump to:
    © 2020 APG vNext Commercial Version 4.5