[Arm-netbook] amery 's kernel compline error

Alejandro Mery amery at geeks.cl
Tue May 15 08:49:52 BST 2012


Hi,

On 15/05/12 03:18, huaixiaoz wrote:
> Hello,i have tried to build   the kernel  for my table,
> and i  tried buld  the kernel  for  XDA,as sztupy told
> but it failed... it seems   the usb  or something so wrong
> the print things like  this :
>   CC      drivers/usb/host/sw_hci_sun4i.o
>    CC      drivers/tty/vt/consolemap_deftbl.o
>    CC      drivers/tty/vt/defkeymap.o
> In file included from drivers/usb/host/ehci-hcd.c:124:0:
> drivers/usb/host/ehci.h:746:20: warning: function declaration isn’t a
> prototype [-Wstrict-prototypes]
>    LD      drivers/usb/misc/built-in.o
>    CC      drivers/usb/serial/usb-serial.o
>    CC      drivers/usb/serial/generic.o
>    LD      drivers/video/sun4i/disp/disp.o
>    LD      drivers/video/sun4i/disp/built-in.o
>    LD      drivers/video/built-in.o
>    CC      drivers/usb/serial/bus.o
>    CC      drivers/usb/serial/option.o
>    LD      drivers/usb/gadget/g_android.o
>    LD      drivers/usb/gadget/built-in.o
>    CC      drivers/usb/storage/alauda.o
>    CC      drivers/usb/serial/usb_wwan.o
>    CC      drivers/usb/storage/cypress_atacb.o
>    CC      drivers/usb/storage/datafab.o
>    LD      drivers/usb/serial/usbserial.o
>    CC      drivers/usb/storage/ene_ub6250.o
>    CC      drivers/usb/storage/freecom.o
>    CC      drivers/usb/storage/isd200.o
>    CC      drivers/usb/storage/jumpshot.o
>    CC      drivers/usb/storage/karma.o
>    LD      drivers/usb/serial/built-in.o
>    CC      drivers/usb/storage/onetouch.o
>    CC      drivers/usb/storage/realtek_cr.o
>    CC      drivers/usb/storage/sddr09.o
>    LD      drivers/tty/vt/built-in.o
>    LD      drivers/tty/built-in.o
>    CC      drivers/usb/storage/sddr55.o
>    CC      drivers/usb/storage/shuttle_usbat.o
>    CC      drivers/usb/storage/scsiglue.o
>    CC      drivers/usb/storage/protocol.o
>    CC      drivers/usb/storage/transport.o
>    CC      drivers/usb/storage/usb.o
>    CC      drivers/usb/storage/initializers.o
>    CC      drivers/usb/storage/sierra_ms.o
>    CC      drivers/usb/storage/option_ms.o
>    CC      drivers/usb/storage/usual-tables.o
>    LD      drivers/usb/host/built-in.o
>    LD      drivers/usb/storage/usb-storage.o
>    LD      drivers/usb/storage/ums-cypress.o
>    LD      drivers/usb/storage/ums-alauda.o
>    LD      drivers/usb/storage/ums-datafab.o
>    LD      drivers/usb/storage/ums-freecom.o
>    LD      drivers/usb/storage/ums-isd200.o
>    LD      drivers/usb/storage/ums-eneub6250.o
>    LD      drivers/usb/storage/ums-jumpshot.o
>    LD      drivers/usb/storage/ums-karma.o
>    LD      drivers/usb/storage/ums-onetouch.o
>    LD      drivers/usb/storage/ums-realtek.o
>    LD      drivers/usb/storage/ums-sddr55.o
>    LD      drivers/usb/storage/ums-sddr09.o
>    LD      drivers/usb/storage/ums-usbat.o
>    LD      drivers/usb/storage/built-in.o
>    LD      drivers/usb/built-in.o
> make: *** [drivers] Error 2

here you have a failure building the kernel itself, but as the build was 
done parallel we can't see what driver failed in the paste. possibly one 
of the not-yet-ported video or sound drivers in that tree, so tweaking 
the .config would fix that bit.

>
>
> And  this is the modules    error  from amery's kernel ,
> i used  the branch  :allwinner-v3.0-android

unfortunately that branch (based on a 2.6.36 release) is only useful yet 
for headless builds as porting the video (and sound) drivers has not 
been finished.

good news is that the allwinner-v3.0-android-v2 branch, based on the 
3.0.8 source drop has video and sound support working, bad news is that 
the sata driver is not yet working... but hopefully will be fixed soon.

so if you are building android, you are far better off with 
allwinner-v3.0-android-v2.

(yes luke, I know)


> make: Entering directory `/ics/allwinner/linux-allwinner/modules/wifi/nano-c047.12'
> make -C kernel/ic -f Makefile PLATFORM=winner V=0 all strip
> make[1]: Entering directory `/ics/allwinner/linux-allwinner/modules/wifi/nano-c047.12/kernel/ic'
> make -C /ics/allwinner/linux-allwinner SUBDIRS=/ics/allwinner/linux-allwinner/modules/wifi/nano-c047.12/kernel/ic modules
> make[2]: Entering directory `/ics/allwinner/linux-allwinner'
>   CC [M]  /ics/allwinner/linux-allwinner/modules/wifi/nano-c047.12/kernel/ic/../../driverenv/src/driverenv.o
> /ics/allwinner/linux-allwinner/modules/wifi/nano-c047.12/kernel/ic/../../driverenv/src/driverenv.c:84:31: error: ‘SPIN_LOCK_UNLOCKED’ undeclared here (not in a function)
> /ics/allwinner/linux-allwinner/modules/wifi/nano-c047.12/kernel/ic/../../driverenv/src/driverenv.c: In function ‘DriverEnvironment_init_trylock’:
> /ics/allwinner/linux-allwinner/modules/wifi/nano-c047.12/kernel/ic/../../driverenv/src/driverenv.c:778:55: warning: parameter ‘lock’ set but not used [-Wunused-but-set-parameter]
> make[3]: *** [/ics/allwinner/linux-allwinner/modules/wifi/nano-c047.12/kernel/ic/../../driverenv/src/driverenv.o] Error 1
> make[2]: *** [_module_/ics/allwinner/linux-allwinner/modules/wifi/nano-c047.12/kernel/ic] Error 2
> make[2]: Leaving directory `/ics/allwinner/linux-allwinner'
> make[1]: *** [all] Error 2
> make[1]: Leaving directory `/ics/allwinner/linux-allwinner/modules/wifi/nano-c047.12/kernel/ic'
> make: *** [ic] Error 2
> make: Leaving directory `/ics/allwinner/linux-allwinner/modules/wifi/nano-c047.12'
> What do  you think ??

their build system (./build.sh scripts) builds some off-tree modules in 
the modules/ dir. as it's very unlikely you need this 'nano' driver you 
can comment it out in the scripts/build_foo.sh you are using. this is 
fixed in the -v2 branch which will superseed allwinner-v3.0-android as 
soon as the sata driver starts working. (help welcomed)




More information about the arm-netbook mailing list