USB port not working on A20 based device with sunxi-3.4

881 views
Skip to first unread message

Rajesh Mallah

unread,
Apr 4, 2014, 10:39:16 PM4/4/14
to linux...@googlegroups.com
Hi ,

I recently ordered a nice A20 box with VGA out and 2 USB ports.


The USB ports works with android and 3.3.0+ kernel.
How ever with sunxi-3.4 the ports are not working. There does
not seems to be any power on the ports.

The EHCI & OHCI and Sunxi-EHCI and Sunxi-OHCI options are
enabled in the kernel and i am using the stock script.bin configs
for USB. 


Can anyone please help ?

redgs
mallah.


Below is the dump from android dmesg in working state.

<4>[    0.244609] axp config [pmu_para] [pmu_usbvol_limit] : 1
<4>[    0.244620] axp config [pmu_para] [pmu_usbvol] : 4000
<4>[    0.244629] axp config [pmu_para] [pmu_usbcur_limit] : 0
<4>[    0.244639] axp config [pmu_para] [pmu_usbcur] : 0
<6>[    0.296837] usbcore: registered new interface driver usbfs
<6>[    0.297184] usbcore: registered new interface driver hub
<6>[    0.297492] usbcore: registered new device driver usb
<6>[    0.342767] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
<4>[    0.342991] Line:1148:ohci_hcd_mod_init
<6>[    0.343000] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
<4>[    0.343191] line = 483,usb_manager_init
<4>[    0.343197] [usb_manager]: CONFIG_USB_SW_SUN7I_USB0_OTG
<4>[    0.343228] WRN:L212(drivers/usb/sun7i_usb/manager/usb_manager.c):ERR: get
usbc(0) det_vbus gpio failed
<4>[    0.343245] WRN:L235(drivers/usb/sun7i_usb/manager/usb_manager.c):ERR: get
usbc(0) det_vbus failed
<4>[    0.343259] WRN:L244(drivers/usb/sun7i_usb/manager/usb_manager.c):ERR: get
usbc(0) ac_enable failed
<4>[    0.343273] WRN:L252(drivers/usb/sun7i_usb/manager/usb_manager.c):ERR: get
usbc0(usb_restrict) failed
<4>[    0.343847] [sw_hcd0]: usb host driver initialize........
<4>[    0.343946] [sw_hcd0]: open_usb_clock
<4>[    0.364050] WRN:L300(drivers/usb/sun7i_usb/hcd/hcd0/sw_hcd0.c):ERR: get
usbc0(drv vbus) failed
<4>[    0.364071] [sw_hcd0]: platform is usb host
<4>[    0.364150] [sw_hcd0]: sw_hcd_init_controller: sw_hcd_host0: USB Host mode
controller at f1c13000 using PIO, IRQ 70
<6>[    0.364192] sw_hcd_host0 sw_hcd_host0: new USB bus registered, assigned
bus number 1
<6>[    0.365308] hub 1-0:1.0: USB hub found
<4>[    0.365815] [sw_hcd0]: sw_usb_host0_disable start
<4>[    0.365839] [sw_hcd_host0]: Set USB Power OFF
<4>[    0.365875] [sw_hcd0]: close_usb_clock
<4>[    0.365892] [sw_hcd0]: sw_usb_host0_disable end
<4>[    2.352092] WRN:L163(drivers/usb/host/sw_hci_sun7i.c):ERR:
sw-ehci1(restrict_gpio) is invalid
<4>[    2.361638] WRN:L172(drivers/usb/host/sw_hci_sun7i.c):ERR: sw-ehci1(drv
vbus) is invalid
<4>[    2.370726] WRN:L163(drivers/usb/host/sw_hci_sun7i.c):ERR:
sw-ohci1(restrict_gpio) is invalid
<4>[    2.380258] WRN:L172(drivers/usb/host/sw_hci_sun7i.c):ERR: sw-ohci1(drv
vbus) is invalid
<4>[    2.389340] WRN:L163(drivers/usb/host/sw_hci_sun7i.c):ERR:
sw-ehci2(restrict_gpio) is invalid
<4>[    2.398892] WRN:L163(drivers/usb/host/sw_hci_sun7i.c):ERR:
sw-ohci2(restrict_gpio) is invalid
<4>[    2.408927] [sw-ehci1]: probe, pdev->name: sw-ehci, pdev->id: 1, sw_ehci:
0xc0788234
<4>[    2.417596] [sw-ehci1]: open clock
<4>[    2.441317] [sw-ehci1]: open clock, 0x60(0xc042), 0xcc(0x102)
<4>[    2.447729] [sw-ehci1]: Set USB Power ON
<6>[    2.452124] sw-ehci sw-ehci.1: SW USB2.0 'Enhanced' Host Controller (EHCI)
Driver
<6>[    2.460506] sw-ehci sw-ehci.1: new USB bus registered, assigned bus number
2
<6>[    2.468504] sw-ehci sw-ehci.1: irq 71, io mem 0xf1c14000
<4>[    2.474454] [ehci_run 736]
<6>[    2.488796] sw-ehci sw-ehci.1: USB 0.0 started, EHCI 1.00
<6>[    2.495838] hub 2-0:1.0: USB hub found
<4>[    2.505181] [sw-ohci1]: probe, pdev->name: sw-ohci, pdev->id: 1, sw_ohci:
0xc0788348
<4>[    2.513889] [sw-ohci1]: open clock
<4>[    2.537539] [sw-ohci1]: open clock, 0x60(0xc046), 0xcc(0x162)
<4>[    2.543968] [sw_ohci_hcd_probe 361]:reg(0xf1c20060) = c046
<6>[    2.550104] sw-ohci sw-ohci.1: SW USB2.0 'Open' Host Controller (OHCI)
Driver
<6>[    2.558078] sw-ohci sw-ohci.1: new USB bus registered, assigned bus number
3
<6>[    2.566032] sw-ohci sw-ohci.1: irq 96, io mem 0xf1c14400
<6>[    2.633611] hub 3-0:1.0: USB hub found
<4>[    2.643001] [sw-ehci2]: probe, pdev->name: sw-ehci, pdev->id: 2, sw_ehci:
0xc078845c
<4>[    2.651706] [sw-ehci2]: open clock
<4>[    2.675356] [sw-ehci2]: open clock, 0x60(0xc04e), 0xcc(0x166)
<4>[    2.681776] [sw-ehci2]: Set USB Power ON
<6>[    2.686150] sw-ehci sw-ehci.2: SW USB2.0 'Enhanced' Host Controller (EHCI)
Driver
<6>[    2.694544] sw-ehci sw-ehci.2: new USB bus registered, assigned bus number
4
<6>[    2.702611] sw-ehci sw-ehci.2: irq 72, io mem 0xf1c1c000
<4>[    2.708533] [ehci_run 736]
<6>[    2.818790] usb 2-1: new high-speed USB device number 2 using sw-ehci
<6>[    2.838773] sw-ehci sw-ehci.2: USB 0.0 started, EHCI 1.00
<6>[    2.845743] hub 4-0:1.0: USB hub found
<4>[    2.855059] [sw-ohci2]: probe, pdev->name: sw-ohci, pdev->id: 2, sw_ohci:
0xc0788570
<4>[    2.863772] [sw-ohci2]: open clock
<4>[    2.887423] [sw-ohci2]: open clock, 0x60(0xc05e), 0xcc(0x1e6)
<4>[    2.893850] [sw_ohci_hcd_probe 361]:reg(0xf1c20060) = c05e
<6>[    2.904481] sw-ohci sw-ohci.2: SW USB2.0 'Open' Host Controller (OHCI)
Driver
<6>[    2.912483] sw-ohci sw-ohci.2: new USB bus registered, assigned bus number
5
<6>[    2.920393] sw-ohci sw-ohci.2: irq 97, io mem 0xf1c1c400
<6>[    2.983648] hub 5-0:1.0: USB hub found
<6>[    2.993047] usbcore: registered new interface driver cdc_acm
<6>[    2.999399] cdc_acm: USB Abstract Control Model driver for USB modems and
ISDN adapters
<6>[    3.008330] Initializing USB Mass Storage driver...
<6>[    3.014174] usbcore: registered new interface driver usb-storage
<6>[    3.021002] USB Mass Storage support registered.
<6>[    3.026654] usbcore: registered new interface driver usbserial
<6>[    3.033223] usbserial: USB Serial Driver core
<6>[    3.038282] USB Serial support registered for GSM modem (1-port)
<6>[    3.045451] usbcore: registered new interface driver option
<6>[    3.051790] option: v0.7.2:USB Driver for GSM modems
<4>[    3.057840] [sw_udc]: [sw_usb_udc]: binding gadget driver 'android_usb'
<4>[    3.073321] WRN:L2583(drivers/usb/sun7i_usb/udc/sw_udc.c):ERR: usb device
is not active
<4>[    3.087262] WRN:L2618(drivers/usb/sun7i_usb/udc/sw_udc.c):
<4>[    3.098102] ERR: usb device is not active
<6>[    3.105979] android_usb gadget: Mass Storage Function, version: 2009/09/11
<6>[    3.113701] android_usb gadget: Number of LUNs=3
<4>[    3.118827] The port change to OHCI now!
<4>[    3.140365] WRN:L2583(drivers/usb/sun7i_usb/udc/sw_udc.c):ERR: usb device
is not active
<6>[    3.149370] android_usb gadget: android_usb ready
<6>[    3.334758] usb 5-1: new low-speed USB device number 2 using sw-ohci
<6>[    3.616331] input: HID 0b38:0010 as
/devices/platform/sw-ohci.2/usb5/5-1/5-1:1.0/input/input3
<6>[    3.626481] generic-usb 0003:0B38:0010.0001: input: USB HID v1.10 Keyboard
[HID 0b38:0010] on usb-sw-ohci-1/input0
<6>[    3.647482] input: HID 0b38:0010 as
/devices/platform/sw-ohci.2/usb5/5-1/5-1:1.1/input/input4
<6>[    3.657498] generic-usb 0003:0B38:0010.0002: input: USB HID v1.10 Device
[HID 0b38:0010] on usb-sw-ohci-1/input1
<6>[    3.669220] usbcore: registered new interface driver usbhid
<6>[    3.675434] usbhid: USB HID core driver
<6>[    3.707801] usbcore: registered new interface driver snd-usb-audio
<4>[    5.397516] [sw_hcd0]: sw_usb_host0_enable start
<4>[    5.408252] [sw_hcd0]: open_usb_clock
<4>[    5.432259] WRN:L300(drivers/usb/sun7i_usb/hcd/hcd0/sw_hcd0.c):ERR: get
usbc0(drv vbus) failed
<4>[    5.446484] [sw_hcd_host0]: Set USB Power ON
<4>[    5.451266] [sw_hcd0]: sw_usb_host0_enable end
<6>[    8.996239] usbcore: registered new interface driver uvcvideo
<6>[    9.003010] USB Video Class driver (v1.1.0)
 <6>[    9.963760] init: processing action 0x34990
(property:persist.sys.usb.config=*)
<6>[    9.977022] init: processing action 0x37778
(property:sys.usb.config=mass_storage,adb)
<3>[    9.987658] android_usb: already disabled
<3>[   10.005899] init: using deprecated syntax for specifying property
'sys.usb.config', use ${name} instead
<3>[   10.034251] init: using deprecated syntax for specifying property
'sys.usb.config', use ${name} instead
<4>[   10.079908] WRN:L2618(drivers/usb/sun7i_usb/udc/sw_udc.c):ERR: usb device
is not active
<4>[   10.079930] WRN:L2663(drivers/usb/sun7i_usb/udc/sw_udc.c):ERR: usb device
is not active



 

Luc Verhaegen

unread,
Apr 4, 2014, 10:46:37 PM4/4/14
to linux...@googlegroups.com
On Sat, Apr 05, 2014 at 08:09:16AM +0530, Rajesh Mallah wrote:
> Hi ,
>
> I recently ordered a nice A20 box with VGA out and 2 USB ports.
>
>
> The USB ports works with android and 3.3.0+ kernel.
> How ever with sunxi-3.4 the ports are not working. There does
> not seems to be any power on the ports.
>
> The EHCI & OHCI and Sunxi-EHCI and Sunxi-OHCI options are
> enabled in the kernel and i am using the stock script.bin configs
> for USB.
>
>
> Can anyone please help ?
>
> redgs
> mallah.

What hardware is this exactly?

Luc Verhaegen.

Rajesh Mallah

unread,
Apr 5, 2014, 2:37:51 AM4/5/14
to linux...@googlegroups.com
1) Its just  $ 35
2) It has WiFi
3) It has Micro SD and VGA out.
4) It performs like MELE M3 :-)  i was able to get gtperf complete under 18secs with both
     cores utilized.

As I am not able to get the USB ports to work Keyboard and mouse not working.

also i am posting the fex:

Full: http://pastebin.com/JgCRazAz

USB parts are:
 
[usbc0]
usb_used = 1
usb_port_type = 2
usb_detect_type = 1
usb_id_gpio = port:PD03<0><1><default><default>
usb_det_vbus_gpio = "axp_ctrl"
usb_drv_vbus_gpio =
usb_restrict_gpio =
usb_host_init_state = 0
usb_restric_flag = 0
usb_restric_voltage = 3550000
usb_restric_capacity = 5
 
[usbc1]
usb_used = 1
usb_port_type = 1
usb_detect_type = 0
usb_drv_vbus_gpio =
usb_restrict_gpio =
usb_host_init_state = 1
usb_restric_flag = 0
 
[usbc2]
usb_used = 1
usb_port_type = 1
usb_detect_type = 0
usb_drv_vbus_gpio = port:PD02<1><0><default><0>
usb_restrict_gpio =
usb_host_init_state = 1
usb_restric_flag = 0


Kind Regards
Mallah.

Luc Verhaegen

unread,
Apr 5, 2014, 9:59:22 AM4/5/14
to linux...@googlegroups.com
On Sat, Apr 05, 2014 at 12:07:51PM +0530, Rajesh Mallah wrote:
> Oops so sorry forgot to put in original post:
>
> http://en.sztena.com/pro/&productId=dcc094f2-b5a0-45a1-94cb-8575b68336bc&comp_stats=comp-FrontProducts_list01-004.html
>
> I LIKE the device becoz
>
> 1) Its just $ 35
> 2) It has WiFi
> 3) It has Micro SD and VGA out.
> 4) It performs like MELE M3 :-) i was able to get gtperf complete under
> 18secs with both
> cores utilized.

Please work through our http://linux-sunxi.org/New_Device_howto for both
the Tena B133 and the Mele M3.

Thanks,

Luc Verhaegen.

Rajesh Mallah

unread,
Apr 5, 2014, 10:25:54 AM4/5/14
to linux...@googlegroups.com
Ok I will rite away! But i cannot post the board pics as i do not have a camera :-(

Rajesh Mallah

unread,
Apr 5, 2014, 10:28:52 AM4/5/14
to linux...@googlegroups.com

As a matter of fact i had already started and below is the proof ;-)
that entries were made to boards.cfg.

U-Boot 2014.04-rc2-10390-g96510e1-dirty (Apr 02 2014 - 23:42:28) Allwinner Technology

CPU:   Allwinner A20 (SUN7I)
Board: b133_tv_box
I2C:   ready
DRAM:  1 GiB
MMC:   SUNXI SD/MMC: 0
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Net:   emac
Hit any key to stop autoboot:  0
** Can't read partition table on 0:0 **
** Invalid partition 1 **
** File not found boot/uEnv.txt **
** File not found uEnv.txt **
** Unrecognized filesystem type **
245 bytes read in 44 ms (4.9 KiB/s)
Jumping to boot.scr
## Executing script at 44000000
44292 bytes read in 42 ms (1 MiB/s)
4556800 bytes read in 265 ms (16.4 MiB/s)
## Booting kernel from Legacy Image at 48000000 ...
   Image Name:   Linux-3.4.79-00001-g8ea347b
   Created:      2014-04-05  13:58:12 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    4556736 Bytes = 4.3 MiB
   Load Address: 40008000
   Entry Point:  40008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK

Starting kernel ...

Rajesh Mallah

unread,
Apr 5, 2014, 12:19:59 PM4/5/14
to linux...@googlegroups.com
Dear Luc,

I have created a wiki page  http://linux-sunxi.org/TENA_B133 and
And I am working to complete it soon.

I have also sent the uboot patch for adding support for this board .

I would appreciate if i can get some help to get the USB Ports in working
mode.

After using the stock script.bin and sunxi-3.4 kernel the kernel oops
at

[    1.660663] PC is at 0x0
LR is at sw_ehci_hcd_probe+0xe8/0x2e0
[    1.666591] LR is at sw_ehci_hcd_probe+0xe8/0x2e0
pc : [<00000000>]    lr : [<c039dc1c>]    psr: 20000013


full kernel log is here:
http://pastebin.com/WazReLmU

Any help is greatly appreciated.

regds
mallah.

 

Rajesh Mallah

unread,
Apr 7, 2014, 9:54:31 PM4/7/14
to linux...@googlegroups.com

Dear List ,

Very happy to report that with kernel-3.3+  got from

git clone https://github.com/mmplayer/linux-sunxi.git
cd linux-sunxi
git checkout stage/sunxi-3.3-a20

and sun7ismp_defconfig config

The usb ports are working and keyboard and mouse is usable.
No changes to the stock script.bin was required EXCEPT for
display related changes to activate the VGA out.
Would anyone please suggest how to dig why its not working on 3.4 ?

regds
mallah.


[    3.523575] input: HID 0b38:0010 as /devices/platform/sw-ohci.2/usb5/5-1/5-1:1.0/input/input2
[    3.524151] generic-usb 0003:0B38:0010.0001: input: USB HID v1.10 Keyboard [HID 0b38:0010] on usb-sw-ohci-1/input0
[    3.533655] input: HID 0b38:0010 as /devices/platform/sw-ohci.2/usb5/5-1/5-1:1.1/input/input3
[    3.534146] generic-usb 0003:0B38:0010.0002: input: USB HID v1.10 Device [HID 0b38:0010] on usb-sw-ohci-1/input1
[    5.370797] [sw_hcd0]: sw_usb_host0_enable start
[    5.380526] [sw_hcd0]: open_usb_clock
[    5.400412] WRN:L300(drivers/usb/sun7i_usb/hcd/hcd0/sw_hcd0.c):ERR: get usbc0(drv vbus) failed
[    5.417438] [sw_hcd0]: sw_usb_host0_enable end
[    5.873005] usb 1-1: new low-speed USB device number 2 using sw_hcd_host0
[    6.031141] input: Logitech USB Optical Mouse as /devices/platform/sw_hcd_host0/usb1/1-1/1-1:1.0/input/input4
[    6.042062] generic-usb 0003:046D:C05A.0003: input: USB HID v1.11 Mouse [Logitech USB Optical Mouse] on usb-sw_hcd_host0-1/input0
[   60.093483] WRN:L3143(drivers/usb/sun7i_usb/hcd/core/sw_hcd_host.c):ERR: not support type(3)
[  154.543506] WRN:L3143(drivers/usb/sun7i_usb/hcd/core/sw_hcd_host.c):ERR: not support type(3)

 

tux.m...@gmail.com

unread,
Jun 5, 2014, 7:23:41 AM6/5/14
to linux...@googlegroups.com
Dne úterý, 8. dubna 2014 3:54:31 UTC+2 Rajesh Mallah napsal(a):
> Dear List ,
> Very happy to report that with kernel-3.3+  got from
> git clone https://github.com/mmplayer/linux-sunxi.git
> cd linux-sunxi
> git checkout stage/sunxi-3.3-a20
> and sun7ismp_defconfig config
> The usb ports are working and keyboard and mouse is usable.
> No changes to the stock script.bin was required EXCEPT for
> display related changes to activate the VGA out.
>
> Would anyone please suggest how to dig why its not working on 3.4 ?
>
> regds
> mallah.

Hi, can you please help me with kernel compilation?

I do:
git clone https://github.com/mmplayer/linux-sunxi.git
git checkout stage/sunxi-3.3-a20

but after I run compilation I get an error:

martin@martin:~/arm/linux-sunxi$ make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- sun7i_defconfig

drivers/net/wireless/bcmdhd/Kconfig:42:warning: defaults for choice values not supported
***
*** Can't find default configuration "arch/arm/configs/sun7i_defconfig"!
***
make[1]: *** [sun7i_defconfig] Error 1
make: *** [sun7i_defconfig] Error 2
martin@martin:~/arm/linux-sunxi$

martin@martin:~/arm/linux-sunxi$ make -j4 ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- uImage modules
scripts/kconfig/conf --silentoldconfig Kconfig
drivers/net/wireless/bcmdhd/Kconfig:42:warning: defaults for choice values not supported
***
*** Configuration file ".config" not found!
***
*** Please run some configurator (e.g. "make oldconfig" or
*** "make menuconfig" or "make xconfig").
***
make[2]: *** [silentoldconfig] Error 1
make[1]: *** [silentoldconfig] Error 2
make: *** No rule to make target `include/config/auto.conf', needed by `include/config/kernel.release'. Stop.
martin@martin:~/arm/linux-sunxi$

I have working ubuntu, but USB not working. I can't connect keyboard and mouse.
Thank you for help.

Bastiaan van den Berg

unread,
Jun 5, 2014, 7:55:33 AM6/5/14
to linux-sunxi
try 
$ ls arch/arm/configs/

that should show you defconfigs that you -do- have ;)

--
buZz

tux.m...@gmail.com

unread,
Jun 5, 2014, 11:45:50 AM6/5/14
to linux...@googlegroups.com
Dne čtvrtek, 5. června 2014 13:55:33 UTC+2 Bastiaan van den Berg napsal(a):
Thank you. I had bad config file name.
But compilation still crash:

martin@martin:~/arm/linux-sunxi$ make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- sun7ismp_defconfig
HOSTCC scripts/basic/fixdep
HOSTCC scripts/kconfig/conf.o
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/conf
drivers/net/wireless/bcmdhd/Kconfig:42:warning: defaults for choice values not supported
#
# configuration written to .config
#
martin@martin:~/arm/linux-sunxi$

martin@martin:~/arm/linux-sunxi$ make -j4 ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- uImage modules
scripts/kconfig/conf --silentoldconfig Kconfig
drivers/net/wireless/bcmdhd/Kconfig:42:warning: defaults for choice values not supported
CHK include/linux/version.h
CHK include/generated/utsrelease.h
HOSTCC scripts/genksyms/genksyms.o
HOSTCC scripts/genksyms/lex.lex.o
CC scripts/mod/empty.o
HOSTCC scripts/mod/mk_elfconfig
MKELF scripts/mod/elfconfig.h
HOSTCC scripts/mod/file2alias.o
make[1]: `include/generated/mach-types.h' is up to date.
HOSTCC scripts/genksyms/parse.tab.o
HOSTLD scripts/genksyms/genksyms
HOSTCC scripts/kallsyms
HOSTCC scripts/mod/modpost.o
CC kernel/bounds.s
HOSTCC scripts/mod/sumversion.o
GEN include/generated/bounds.h
CC arch/arm/kernel/asm-offsets.s
HOSTCC scripts/conmakehash
GEN include/generated/asm-offsets.h
CALL scripts/checksyscalls.sh
HOSTLD scripts/mod/modpost
CC init/main.o
HOSTCC usr/gen_init_cpio
CHK include/generated/compile.h
CC arch/arm/vfp/vfpmodule.o
CC init/do_mounts.o
In file included from include/linux/security.h:26:0,
from init/main.c:32:
include/linux/fsnotify.h: In function ‘fsnotify_oldname_init’:
include/linux/fsnotify.h:317:2: warning: pointer targets in passing argument 1 of ‘kstrdup’ differ in signedness [-Wpointer-sign]
return kstrdup(name, GFP_KERNEL);
^
In file included from include/linux/bitmap.h:8:0,
from include/linux/nodemask.h:95,
from include/linux/mmzone.h:16,
from include/linux/gfp.h:4,
from include/linux/kmod.h:22,
from include/linux/module.h:13,
from init/main.c:13:
include/linux/string.h:119:14: note: expected ‘const char *’ but argument is of type ‘const unsigned char *’
extern char *kstrdup(const char *s, gfp_t gfp);
^
In file included from include/linux/security.h:26:0,
from init/main.c:32:
include/linux/fsnotify.h:317:2: warning: pointer targets in return differ in signedness [-Wpointer-sign]
return kstrdup(name, GFP_KERNEL);
^
/tmp/ccpGbgZF.s: Assembler messages:
/tmp/ccpGbgZF.s:70: Error: selected processor does not support Thumb mode `mrc p15,0,r2,c1,c0,2'
/tmp/ccpGbgZF.s:83: Error: selected processor does not support Thumb mode `mcr p15,0,r3,c1,c0,2'
/tmp/ccpGbgZF.s:87: Error: selected processor does not support Thumb mode `isb'
/tmp/ccpGbgZF.s:132: Error: selected processor does not support Thumb mode `mrc p10,7,r2,cr8,cr0,0'
/tmp/ccpGbgZF.s:141: Error: selected processor does not support Thumb mode `mcr p10,7,r3,cr8,cr0,0'
/tmp/ccpGbgZF.s:172: Error: selected processor does not support Thumb mode `mrc p10,7,r4,cr8,cr0,0'
/tmp/ccpGbgZF.s:214: Error: selected processor does not support Thumb mode `mcr p10,7,r3,cr8,cr0,0'
/tmp/ccpGbgZF.s:226: Error: selected processor does not support Thumb mode `mcr p10,7,r4,cr8,cr0,0'
/tmp/ccpGbgZF.s:298: Error: selected processor does not support Thumb mode `mrc p10,7,r4,cr0,cr0,0'
/tmp/ccpGbgZF.s:414: Error: selected processor does not support Thumb mode `mrc p10,7,r1,cr7,cr0,0'
/tmp/ccpGbgZF.s:437: GEN usr/initramfs_data.cpio
Error: selected processor does not support Thumb mode `mrc p15,0,r1,c0,c0,0'
/tmp/ccpGbgZF.s:453: Error: selected processor does not support Thumb mode `mrc p10,7,r1,cr6,cr0,0'
/tmp/ccpGbgZF.s:474: Error: selected processor does not support Thumb mode `mrc p10,7,r2,cr6,cr0,0'
/tmp/ccpGbgZF.s:722: Error: selected processor does not support Thumb mode `mrc p10,7,r1,cr8,cr0,0'
/tmp/ccpGbgZF.s:730: Error: selected processor does not support Thumb mode `mrc p10,7,r2,cr1,cr0,0'
/tmp/ccpGbgZF.s:791: Error: selected processor does not support Thumb mode `mcr p10,7,r2,cr1,cr0,0'
/tmp/ccpGbgZF.s:931: Error: selected processor does not support Thumb mode `mrc p10,7,r4,cr8,cr0,0'
/tmp/ccpGbgZF.s:939: Error: selected processor does not support Thumb mode `mcr p10,7,r0,cr8,cr0,0'
/tmp/ccpGbgZF.s:1055: Error: selected processor does not support Thumb mode `mcr p10,7,r3,cr8,cr0,0'
/tmp/ccpGbgZF.s:1066: Error: selected processor does not support Thumb mode `mrc p10,7,r3,cr0,cr0,0'
/tmp/ccpGbgZF.s:1079: Error: selected processor does not support Thumb mode `mrc p10,7,r4,cr1,cr0,0'
/tmp/ccpGbgZF.s:1101: Error: selected processor does not support Thumb mode `mrc p10,7,r5,cr9,cr0,0'
/tmp/ccpGbgZF.s:1179: Error: selected processor does not support Thumb mode `mrc p10,7,r5,cr10,cr0,0'
/tmp/ccpGbgZF.s:1307: Error: selected processor does not support Thumb mode `mrc p10,7,r4,cr8,cr0,0'
/tmp/ccpGbgZF.s:1316: Error: selected processor does not support Thumb mode `mcr p10,7,r1,cr8,cr0,0'
/tmp/ccpGbgZF.s:1325: Error: selected processor does not support Thumb mode `mcr p10,7,r4,cr8,cr0,0'
/tmp/ccpGbgZF.s:1411: Error: selected processor does not support Thumb mode `mrc p10,7,r5,cr8,cr0,0'
/tmp/ccpGbgZF.s:1440: Error: selected processor does not support Thumb mode `mcr p10,7,r5,cr8,cr0,0'
/tmp/ccpGbgZF.s:1485: Error: selected processor does not support Thumb mode `mrc p10,7,r2,cr8,cr0,0'
/tmp/ccpGbgZF.s:1493: Error: selected processor does not support Thumb mode `mcr p10,7,r3,cr8,cr0,0'
/tmp/ccpGbgZF.s:1796: Error: Thumb does not support this addressing mode -- `str r3,[r7],#0'
/tmp/ccpGbgZF.s:1817: Error: Thumb does not support this addressing mode -- `str r3,[r6],#0'
/tmp/ccpGbgZF.s:1840: Error: Thumb does not support this addressing mode -- `str r3,[r2],#0'
/tmp/ccpGbgZF.s:1866: Error: Thumb does not support this addressing mode -- `str r3,[r6],#0'
/tmp/ccpGbgZF.s:2006: Error: Thumb does not support this addressing mode -- `ldr r2,[r7],#0'
/tmp/ccpGbgZF.s:2028: Error: Thumb does not support this addressing mode -- `ldr r1,[r5],#0'
/tmp/ccpGbgZF.s:2069: Error: Thumb does not support this addressing mode -- `ldr r1,[r2],#0'
/tmp/ccpGbgZF.s:2097: Error: Thumb does not support this addressing mode -- `ldr r2,[r5],#0'
make[1]: *** [arch/arm/vfp/vfpmodule.o] Error 1
make: *** [arch/arm/vfp] Error 2
make: *** Waiting for unfinished jobs....
CC init/do_mounts_initrd.o
In file included from /home/martin/arm/linux-sunxi/arch/arm/include/asm/page.h:170:0,
from include/linux/mmzone.h:20,
from include/linux/gfp.h:4,
from include/linux/kmod.h:22,
from include/linux/module.h:13,
from init/main.c:13:
/home/martin/arm/linux-sunxi/arch/arm/include/asm/memory.h: In function ‘start_kernel’:
/home/martin/arm/linux-sunxi/arch/arm/include/asm/memory.h:162:2: warning: asm operand 2 probably doesn’t match constraints [enabled by default]
__asm__("@ __pv_stub\n" \
^
/home/martin/arm/linux-sunxi/arch/arm/include/asm/memory.h:173:2: note: in expansion of macro ‘__pv_stub’
__pv_stub(x, t, "add", __PV_BITS_31_24);
^
/home/martin/arm/linux-sunxi/arch/arm/include/asm/memory.h:162:2: warning: asm operand 2 probably doesn’t match constraints [enabled by default]
__asm__("@ __pv_stub\n" \
^
/home/martin/arm/linux-sunxi/arch/arm/include/asm/memory.h:173:2: note: in expansion of macro ‘__pv_stub’
__pv_stub(x, t, "add", __PV_BITS_31_24);
^
/home/martin/arm/linux-sunxi/arch/arm/include/asm/memory.h:162:2: warning: asm operand 2 probably doesn’t match constraints [enabled by default]
__asm__("@ __pv_stub\n" \
^
/home/martin/arm/linux-sunxi/arch/arm/include/asm/memory.h:173:2: note: in expansion of macro ‘__pv_stub’
__pv_stub(x, t, "add", __PV_BITS_31_24);
^
/home/martin/arm/linux-sunxi/arch/arm/include/asm/memory.h:162:2: warning: asm operand 2 probably doesn’t match constraints [enabled by default]
__asm__("@ __pv_stub\n" \
^
/home/martin/arm/linux-sunxi/arch/arm/include/asm/memory.h:173:2: note: in expansion of macro ‘__pv_stub’
__pv_stub(x, t, "add", __PV_BITS_31_24);
^
/home/martin/arm/linux-sunxi/arch/arm/include/asm/memory.h:162:2: error: impossible constraint in ‘asm’
__asm__("@ __pv_stub\n" \
^
/home/martin/arm/linux-sunxi/arch/arm/include/asm/memory.h:173:2: note: in expansion of macro ‘__pv_stub’
__pv_stub(x, t, "add", __PV_BITS_31_24);
^
/home/martin/arm/linux-sunxi/arch/arm/include/asm/memory.h:162:2: error: impossible constraint in ‘asm’
__asm__("@ __pv_stub\n" \
^
/home/martin/arm/linux-sunxi/arch/arm/include/asm/memory.h:173:2: note: in expansion of macro ‘__pv_stub’
__pv_stub(x, t, "add", __PV_BITS_31_24);
^
/home/martin/arm/linux-sunxi/arch/arm/include/asm/memory.h:162:2: error: impossible constraint in ‘asm’
__asm__("@ __pv_stub\n" \
^
/home/martin/arm/linux-sunxi/arch/arm/include/asm/memory.h:173:2: note: in expansion of macro ‘__pv_stub’
__pv_stub(x, t, "add", __PV_BITS_31_24);
^
/home/martin/arm/linux-sunxi/arch/arm/include/asm/memory.h:162:2: error: impossible constraint in ‘asm’
__asm__("@ __pv_stub\n" \
^
/home/martin/arm/linux-sunxi/arch/arm/include/asm/memory.h:173:2: note: in expansion of macro ‘__pv_stub’
__pv_stub(x, t, "add", __PV_BITS_31_24);
^
In file included from include/linux/security.h:26:0,
from init/do_mounts.c:8:
include/linux/fsnotify.h: In function ‘fsnotify_oldname_init’:
include/linux/fsnotify.h:317:2: warning: pointer targets in passing argument 1 of ‘kstrdup’ differ in signedness [-Wpointer-sign]
return kstrdup(name, GFP_KERNEL);
^
In file included from include/linux/bitmap.h:8:0,
from include/linux/nodemask.h:95,
from include/linux/mmzone.h:16,
from include/linux/gfp.h:4,
from include/linux/kmod.h:22,
from include/linux/module.h:13,
from init/do_mounts.c:1:
include/linux/string.h:119:14: note: expected ‘const char *’ but argument is of type ‘const unsigned char *’
extern char *kstrdup(const char *s, gfp_t gfp);
^
In file included from include/linux/security.h:26:0,
from init/do_mounts.c:8:
include/linux/fsnotify.h:317:2: warning: pointer targets in return differ in signedness [-Wpointer-sign]
return kstrdup(name, GFP_KERNEL);
^
AS usr/initramfs_data.o
make[1]: *** [init/main.o] Error 1
make[1]: *** Waiting for unfinished jobs....
LD usr/built-in.o
In file included from include/linux/tcp.h:211:0,
from include/linux/ipv6.h:221,
from include/net/ipv6.h:16,
from include/linux/sunrpc/clnt.h:26,
from include/linux/nfs_fs.h:50,
from init/do_mounts.c:20:
include/net/sock.h: In function ‘skb_add_data_nocache’:
include/net/sock.h:1688:12: warning: pointer targets in passing argument 4 of ‘skb_do_copy_data_nocache’ differ in signedness [-Wpointer-sign]
copy, offset);
^
include/net/sock.h:1662:19: note: expected ‘char *’ but argument is of type ‘unsigned char *’
static inline int skb_do_copy_data_nocache(struct sock *sk, struct sk_buff *skb,
^
init/do_mounts.c: In function ‘devt_from_partuuid’:
init/do_mounts.c:128:2: warning: pointer targets in passing argument 1 of ‘part_pack_uuid’ differ in signedness [-Wpointer-sign]
part_pack_uuid(uuid_str, uuid);
^
In file included from init/do_mounts.c:10:0:
include/linux/genhd.h:207:20: note: expected ‘const u8 *’ but argument is of type ‘char *’
static inline void part_pack_uuid(const u8 *uuid_str, u8 *to)
^
make: *** [init] Error 2
martin@martin:~/arm/linux-sunxi$

Do you have an idea how can I fix it?

--
Martin Vancl

Luc Verhaegen

unread,
Jun 5, 2014, 1:00:57 PM6/5/14
to linux...@googlegroups.com

tux.m...@gmail.com

unread,
Jun 5, 2014, 4:32:19 PM6/5/14
to linux...@googlegroups.com
I tried this repository, but compilation still crash (different error):

martin@martin:~/arm/linux-sunxi$ git config --get remote.origin.url
https://github.com/linux-sunxi/linux-sunxi
martin@martin:~/arm/linux-sunxi$
martin@martin:~/arm/linux-sunxi$ make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- sun7i_defconfig
HOSTCC scripts/basic/fixdep
HOSTCC scripts/kconfig/conf.o
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/conf
#
# configuration written to .config
#
martin@martin:~/arm/linux-sunxi$
martin@martin:~/arm/linux-sunxi$ make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- uImage modules
scripts/kconfig/conf --silentoldconfig Kconfig
CHK include/linux/version.h
CHK include/generated/utsrelease.h
make[1]: `include/generated/mach-types.h' is up to date.
CC kernel/bounds.s
GEN include/generated/bounds.h
CC arch/arm/kernel/asm-offsets.s
GEN include/generated/asm-offsets.h
CALL scripts/checksyscalls.sh
HOSTCC scripts/genksyms/genksyms.o
HOSTCC scripts/genksyms/lex.lex.o
HOSTCC scripts/genksyms/parse.tab.o
HOSTLD scripts/genksyms/genksyms
CC scripts/mod/empty.o
HOSTCC scripts/mod/mk_elfconfig
MKELF scripts/mod/elfconfig.h
HOSTCC scripts/mod/file2alias.o
HOSTCC scripts/mod/modpost.o
HOSTCC scripts/mod/sumversion.o
HOSTLD scripts/mod/modpost
HOSTCC scripts/kallsyms
HOSTCC scripts/pnmtologo
HOSTCC scripts/conmakehash
HOSTCC scripts/bin2c
CC init/main.o
In file included from /home/martin/arm/linux-sunxi/arch/arm/include/asm/page.h:170:0,
from include/linux/mmzone.h:20,
from include/linux/gfp.h:4,
from include/linux/kmod.h:22,
from include/linux/module.h:13,
from init/main.c:13:
/home/martin/arm/linux-sunxi/arch/arm/include/asm/memory.h: In function ‘start_kernel’:
/home/martin/arm/linux-sunxi/arch/arm/include/asm/memory.h:164:2: warning: asm operand 2 probably doesn’t match constraints [enabled by default]
__asm__("@ __pv_stub\n" \
^
/home/martin/arm/linux-sunxi/arch/arm/include/asm/memory.h:175:2: note: in expansion of macro ‘__pv_stub’
__pv_stub(x, t, "add", __PV_BITS_31_24);
^
/home/martin/arm/linux-sunxi/arch/arm/include/asm/memory.h:164:2: warning: asm operand 2 probably doesn’t match constraints [enabled by default]
__asm__("@ __pv_stub\n" \
^
/home/martin/arm/linux-sunxi/arch/arm/include/asm/memory.h:175:2: note: in expansion of macro ‘__pv_stub’
__pv_stub(x, t, "add", __PV_BITS_31_24);
^
/home/martin/arm/linux-sunxi/arch/arm/include/asm/memory.h:164:2: warning: asm operand 2 probably doesn’t match constraints [enabled by default]
__asm__("@ __pv_stub\n" \
^
/home/martin/arm/linux-sunxi/arch/arm/include/asm/memory.h:175:2: note: in expansion of macro ‘__pv_stub’
__pv_stub(x, t, "add", __PV_BITS_31_24);
^
/home/martin/arm/linux-sunxi/arch/arm/include/asm/memory.h:164:2: warning: asm operand 2 probably doesn’t match constraints [enabled by default]
__asm__("@ __pv_stub\n" \
^
/home/martin/arm/linux-sunxi/arch/arm/include/asm/memory.h:175:2: note: in expansion of macro ‘__pv_stub’
__pv_stub(x, t, "add", __PV_BITS_31_24);
^
/home/martin/arm/linux-sunxi/arch/arm/include/asm/memory.h:164:2: error: impossible constraint in ‘asm’
__asm__("@ __pv_stub\n" \
^
/home/martin/arm/linux-sunxi/arch/arm/include/asm/memory.h:175:2: note: in expansion of macro ‘__pv_stub’
__pv_stub(x, t, "add", __PV_BITS_31_24);
^
/home/martin/arm/linux-sunxi/arch/arm/include/asm/memory.h:164:2: error: impossible constraint in ‘asm’
__asm__("@ __pv_stub\n" \
^
/home/martin/arm/linux-sunxi/arch/arm/include/asm/memory.h:175:2: note: in expansion of macro ‘__pv_stub’
__pv_stub(x, t, "add", __PV_BITS_31_24);
^
/home/martin/arm/linux-sunxi/arch/arm/include/asm/memory.h:164:2: error: impossible constraint in ‘asm’
__asm__("@ __pv_stub\n" \
^
/home/martin/arm/linux-sunxi/arch/arm/include/asm/memory.h:175:2: note: in expansion of macro ‘__pv_stub’
__pv_stub(x, t, "add", __PV_BITS_31_24);
^
/home/martin/arm/linux-sunxi/arch/arm/include/asm/memory.h:164:2: error: impossible constraint in ‘asm’
__asm__("@ __pv_stub\n" \
^
/home/martin/arm/linux-sunxi/arch/arm/include/asm/memory.h:175:2: note: in expansion of macro ‘__pv_stub’
__pv_stub(x, t, "add", __PV_BITS_31_24);
^
make[1]: *** [init/main.o] Error 1
make: *** [init] Error 2
martin@martin:~/arm/linux-sunxi$

:-(

Puneet B

unread,
Jun 6, 2014, 10:30:43 AM6/6/14
to linux...@googlegroups.com, tux.m...@gmail.com
 This may tool chain problem use some other arm tool chain.

Regards
Punith

tux.m...@gmail.com

unread,
Jun 7, 2014, 8:12:57 AM6/7/14
to linux...@googlegroups.com, tux.m...@gmail.com
Dne pátek, 6. června 2014 16:30:43 UTC+2 Puneet B napsal(a):
>  This may tool chain problem use some other arm tool chain.
>
> Regards
> Punith

Thank you. I use Emdebian's toolchain and now it is ok.

--
Martin Vancl
Reply all
Reply to author
Forward
0 new messages