Jump to content

Building image for Nanopiair with 5.15 kernel


pacer

Recommended Posts

Hello.

Since NanoPI Air is no longer in the list of supported boards, I'm trying to build the image myself.

Kernel compilation problem. I am using current version 5.15, compilation.log: 

drivers/net/wireless/rtl8822bs/os_dep/osdep_service.c:2095:11: error: implicit declaration of function ‘get_fs’; did you mean ‘get_sa’? [-Werror=implicit-function-declaration]
   oldfs = get_fs();
           ^~~~~~
           get_sa
drivers/net/wireless/rtl8822bs/os_dep/osdep_service.c:2095:9: error: incompatible types when assigning to type ‘mm_segment_t’ {aka ‘struct <anonymous>’} from type ‘int’
   oldfs = get_fs();
         ^
drivers/net/wireless/rtl8822bs/os_dep/osdep_service.c:2096:3: error: implicit declaration of function ‘set_fs’; did you mean ‘sget_fc’? [-Werror=implicit-function-declaration]
   set_fs(KERNEL_DS);
   ^~~~~~
   sget_fc
drivers/net/wireless/rtl8822bs/os_dep/osdep_service.c:2096:10: error: ‘KERNEL_DS’ undeclared (first use in this function); did you mean ‘KERNFS_NS’?
   set_fs(KERNEL_DS);
          ^~~~~~~~~
          KERNFS_NS
drivers/net/wireless/rtl8822bs/os_dep/osdep_service.c:2096:10: note: each undeclared identifier is reported only once for each function it appears in
drivers/net/wireless/rtl8822bs/os_dep/osdep_service.c: In function ‘retriveFromFile’:
drivers/net/wireless/rtl8822bs/os_dep/osdep_service.c:2133:10: error: incompatible types when assigning to type ‘mm_segment_t’ {aka ‘struct <anonymous>’} from type ‘int’
    oldfs = get_fs();
          ^
drivers/net/wireless/rtl8822bs/os_dep/osdep_service.c:2134:11: error: ‘KERNEL_DS’ undeclared (first use in this function); did you mean ‘KERNFS_NS’?
    set_fs(KERNEL_DS);
           ^~~~~~~~~
           KERNFS_NS
drivers/net/wireless/rtl8822bs/os_dep/osdep_service.c: In function ‘storeToFile’:
drivers/net/wireless/rtl8822bs/os_dep/osdep_service.c:2168:10: error: incompatible types when assigning to type ‘mm_segment_t’ {aka ‘struct <anonymous>’} from type ‘int’
    oldfs = get_fs();
          ^
drivers/net/wireless/rtl8822bs/os_dep/osdep_service.c:2169:11: error: ‘KERNEL_DS’ undeclared (first use in this function); did you mean ‘KERNFS_NS’?
    set_fs(KERNEL_DS);
           ^~~~~~~~~
           KERNFS_NS
cc1: some warnings being treated as errors
make[4]: *** [scripts/Makefile.build:277: drivers/net/wireless/rtl8822bs/os_dep/osdep_service.o] Error 1

 

Build options:

- Full OS image for flashing

- Do not change the kernel configuration

- nanopiair (from community list)

- current kernel

- bullsyey package base

- minimal image

 

What is the problem and how can it be solved?

Link to comment
Share on other sites

On 3/14/2022 at 2:34 PM, pacer said:

how can it be solved?

 

- workaround can be found in manual or by searching this forum.

- solving this problem is an expense. Supported or not supported hardware.


Its general problem, so ticket was opened:

https://armbian.atlassian.net/browse/AR-1116


Look how many problems there are - which is one of main reasons why this board is not supported anymore:

https://armbian.atlassian.net/jira/dashboards/10000

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines