Hello,
I tried to load the spidev driver with the 3.4 kernel and it did .. nothing.
So I upgraded to linux 4.0rc4 and tried to convince it to boot on the
a10s olinuxino.
Problems
1) no serial input (possibly wiring issue - need to investigate)
2) no USB HID input
3) display does not work properly in u-boot - no signal on one DVI
screen, red console background on another DVI screen
4) did not manage to get simplefb working. It is configured but the
image on the screen does not change after Starting kernel ...
5) did not manage to get SPI working. I patched the DT with some
random values but the driver complains that there is unsupported
function
https://github.com/hramrach/linux-sunxi/commit/fba83a07ce3261b77f5cd3fac43f78adee4b33dd
6) I have no idea how to bind spidev (in DT?) even if spi worked
Anyone has some idea how to make SPI work on A10s Olinuxino?
I can build an UEXT adaptor for Cubieboard but the connectors on
Olinuxino are way more convenient to work with hardware-wise.
Thanks
Michal
--
You received this message because you are subscribed to the Google Groups
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.
U-Boot SPL 2015.04-rc3-00194-g8546d21 (Mar 20 2015 - 11:43:09)
DRAM: 512 MiB
CPU: 1008000000Hz, AXI/AHB/APB: 3/2/2
U-Boot 2015.04-rc3-00194-g8546d21 (Mar 20 2015 - 11:43:09) Allwinner Technology
CPU: Allwinner A10s (SUN5I)
I2C: ready
DRAM: 512 MiB
MMC: SUNXI SD/MMC: 0, SUNXI SD/MMC: 1
*** Warning - bad CRC, using default environment
HDMI connected: Setting up a 1200x1600 dvi console
In: serial
Out: vga
Err: vga
Net: emac
starting USB...
USB0: USB EHCI 1.00
scanning bus 0 for devices... 4 USB Device(s) found
scanning usb for storage devices... 0 Storage Device(s) found
Hit any key to stop autoboot: 2 1 0
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found U-Boot script /boot/boot.scr
336 bytes read in 307 ms (1000 Bytes/s)
## Executing script at 43100000
3117504 bytes read in 481 ms (6.2 MiB/s)
17501 bytes read in 1123 ms (14.6 KiB/s)
Kernel image @ 0x46000000 [ 0x000000 - 0x2f91c0 ]
## Flattened Device Tree blob at 49000000
Booting using the fdt blob at 0x49000000
Loading Device Tree to 4eff8000, end 4efff45c ... OK
Starting kernel ...
Uncompressing Linux... done, booting the kernel.
Booting Linux on physical CPU 0x0
Linux version 4.0.0-rc4-00218-g895b183-dirty (hramrach@iscsi) (gcc version
4.7.2 (Debian 4.7.2-5) ) #155 SMP Mon Mar 23 14:19:19 CET 2015
CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c5387d
CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
Machine model: Olimex A10s-Olinuxino Micro
bootconsole [earlycon0] enabled
cma: Reserved 80 MiB at 0x5a800000
Memory policy: Data cache writeback
CPU: All CPU(s) started in SVC mode.
PERCPU: Embedded 11 pages/cpu @da3b6000 s13888 r8192 d22976 u45056
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 128189
Kernel command line: console=ttyS0,115200 console=tty0 earlyprintk
initcall_debug=1 root=/dev/mmcblk0p1 ubi.fm_autoconvert=1 rw rootwait panic=10
PID hash table entries: 2048 (order: 1, 8192 bytes)
Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
Memory: 411280K/516788K available (6331K kernel code, 338K rwdata, 2128K
rodata, 1024K init, 8196K bss, 23588K reserved, 81920K cma-reserved, 692K
highmem)
Virtual kernel memory layout:
vector : 0xffff0000 - 0xffff1000 ( 4 kB)
fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
vmalloc : 0xe0000000 - 0xff000000 ( 496 MB)
lowmem : 0xc0000000 - 0xdf8ad000 ( 504 MB)
pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
modules : 0xbf000000 - 0xbfe00000 ( 14 MB)
.text : 0xc0008000 - 0xc0942e28 (9452 kB)
.init : 0xc0a00000 - 0xc0b00000 (1024 kB)
.data : 0xc0b00000 - 0xc0b54a88 ( 339 kB)
.bss : 0xc0b54a88 - 0xc1355c2c (8197 kB)
SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Hierarchical RCU implementation.
RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=1.
RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
NR_IRQS:16 nr_irqs:16 16
NO_HZ: Can't run full dynticks because arch doesn't support irq work self-IPIs
Offload RCU callbacks from all CPUs
Offload RCU callbacks from CPUs: 0.
sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 178956969942ns
sched_clock: 32 bits at 168MHz, resolution 5ns, wraps every 25565282298ns
Console: colour dummy device 80x30
console [tty0] enabled
bootconsole [earlycon0] disabled
Booting Linux on physical CPU 0x0
Linux version 4.0.0-rc4-00218-g895b183-dirty (hramrach@iscsi) (gcc version
4.7.2 (Debian 4.7.2-5) ) #155 SMP Mon Mar 23 14:19:19 CET 2015
CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c5387d
CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
Machine model: Olimex A10s-Olinuxino Micro
bootconsole [earlycon0] enabled
cma: Reserved 80 MiB at 0x5a800000
Memory policy: Data cache writeback
CPU: All CPU(s) started in SVC mode.
PERCPU: Embedded 11 pages/cpu @da3b6000 s13888 r8192 d22976 u45056
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 128189
Kernel command line: console=ttyS0,115200 console=tty0 earlyprintk
initcall_debug=1 root=/dev/mmcblk0p1 ubi.fm_autoconvert=1 rw rootwait panic=10
PID hash table entries: 2048 (order: 1, 8192 bytes)
Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
Memory: 411280K/516788K available (6331K kernel code, 338K rwdata, 2128K
rodata, 1024K init, 8196K bss, 23588K reserved, 81920K cma-reserved, 692K
highmem)
Virtual kernel memory layout:
vector : 0xffff0000 - 0xffff1000 ( 4 kB)
fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
vmalloc : 0xe0000000 - 0xff000000 ( 496 MB)
lowmem : 0xc0000000 - 0xdf8ad000 ( 504 MB)
pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
modules : 0xbf000000 - 0xbfe00000 ( 14 MB)
.text : 0xc0008000 - 0xc0942e28 (9452 kB)
.init : 0xc0a00000 - 0xc0b00000 (1024 kB)
.data : 0xc0b00000 - 0xc0b54a88 ( 339 kB)
.bss : 0xc0b54a88 - 0xc1355c2c (8197 kB)
SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Hierarchical RCU implementation.
RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=1.
RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
NR_IRQS:16 nr_irqs:16 16
NO_HZ: Can't run full dynticks because arch doesn't support irq work self-IPIs
Offload RCU callbacks from all CPUs
Offload RCU callbacks from CPUs: 0.
sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 178956969942ns
sched_clock: 32 bits at 168MHz, resolution 5ns, wraps every 25565282298ns
Console: colour dummy device 80x30
console [tty0] enabled
bootconsole [earlycon0] disabled
Lock dependency validator: Copyright (c) 2006 Red Hat, Inc., Ingo Molnar
... MAX_LOCKDEP_SUBCLASSES: 8
... MAX_LOCK_DEPTH: 48
... MAX_LOCKDEP_KEYS: 8191
... CLASSHASH_SIZE: 4096
... MAX_LOCKDEP_ENTRIES: 32768
... MAX_LOCKDEP_CHAINS: 65536
... CHAINHASH_SIZE: 32768
memory used by lock dependency info: 5167 kB
per task-struct memory footprint: 1152 bytes
Calibrating delay loop... 992.25 BogoMIPS (lpj=496128)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
CPU: Testing write buffer coherency: ok
CPU0: thread -1, cpu 0, socket -1, mpidr 0
Setting up static identity map for 0x4068fdc8 - 0x4068fe20
Brought up 1 CPUs
SMP: Total of 1 processors activated (992.25 BogoMIPS).
CPU: All CPU(s) started in SVC mode.
devtmpfs: initialized
VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
pinctrl core: initialized pinctrl subsystem
NET: Registered protocol family 16
DMA: preallocated 256 KiB pool for atomic coherent allocations
cpuidle: using governor ladder
cpuidle: using governor menu
No ATAGs?
reg-fixed-voltage usb1-vbus: could not find pctldev for node
/soc@01c00000/pinctrl@01c20800/usb1_vbus_pin@0, deferring probe
platform usb1-vbus: Driver reg-fixed-voltage requests probe deferral
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
pps_core: LinuxPPS API ver. 1 registered
pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti
<[email protected]>
PTP clock support registered
Switched to clocksource timer
simple-framebuffer 5f8ad000.framebuffer: framebuffer at 0x5f8ad000, 0x753000
bytes, mapped to 0xe0800000
simple-framebuffer 5f8ad000.framebuffer: format=x8r8g8b8, mode=1200x1600x32,
linelength=4800
simple-framebuffer 5f8ad000.framebuffer: fb0: simplefb registered!
NET: Registered protocol family 2
TCP established hash table entries: 4096 (order: 2, 16384 bytes)
TCP bind hash table entries: 4096 (order: 5, 147456 bytes)
TCP: Hash tables configured (established 4096 bind 4096)
TCP: reno registered
UDP hash table entries: 256 (order: 2, 20480 bytes)
UDP-Lite hash table entries: 256 (order: 2, 20480 bytes)
NET: Registered protocol family 1
RPC: Registered named UNIX socket transport module.
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
futex hash table entries: 256 (order: 2, 16384 bytes)
zpool: loaded
NFS: Registering the id_resolver key type
Key type id_resolver registered
Key type id_legacy registered
nfs4filelayout_init: NFSv4 File Layout Driver Registering...
bounce: pool size: 64 pages
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250)
io scheduler noop registered (default)
io scheduler deadline registered
io scheduler cfq registered
platform 1c13400.phy: Driver sun4i-usb-phy requests probe deferral
sun5i-a10s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
dw-apb-uart 1c28c00.serial: Couldn't set LCR to 0
dw-apb-uart 1c28c00.serial: Couldn't set LCR to 0
1c28c00.serial: ttyS2 at MMIO 0x1c28c00 (irq = 27, base_baud = 1500000) is a
U6_16550A
console [ttyS0] disabled
1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 33, base_baud = 1500000) is a
U6_16550A
console [ttyS0] enabled
dw-apb-uart 1c28800.serial: Couldn't set LCR to 0
dw-apb-uart 1c28800.serial: Couldn't set LCR to 0
1c28800.serial: ttyS1 at MMIO 0x1c28800 (irq = 34, base_baud = 1500000) is a
U6_16550A
sun5i-a10s-pinctrl 1c20800.pinctrl: unsupported function spi2 on pin PB15
sun5i-a10s-pinctrl 1c20800.pinctrl: unsupported function spi2 on pin PB16
sun5i-a10s-pinctrl 1c20800.pinctrl: unsupported function spi2 on pin PB17
pinctrl core: failed to register map default (2): invalid type given
1c0b080.mdio supply phy not found, using dummy regulator
libphy: sun4i_mii_bus: probed
sun4i-emac 1c0b000.ethernet: eth0: at e004e000, IRQ 32 MAC: 02:99:09:41:7e:de
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ehci-platform: EHCI generic platform driver
platform 1c14000.usb: Driver ehci-platform requests probe deferral
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
ohci-platform: OHCI generic platform driver
platform 1c14400.usb: Driver ohci-platform requests probe deferral
usbcore: registered new interface driver usb-storage
usbcore: registered new interface driver ums-alauda
usbcore: registered new interface driver ums-cypress
usbcore: registered new interface driver ums-datafab
usbcore: registered new interface driver ums_eneub6250
usbcore: registered new interface driver ums-freecom
usbcore: registered new interface driver ums-isd200
usbcore: registered new interface driver ums-jumpshot
usbcore: registered new interface driver ums-karma
usbcore: registered new interface driver ums-onetouch
usbcore: registered new interface driver ums-realtek
usbcore: registered new interface driver ums-sddr09
usbcore: registered new interface driver ums-sddr55
usbcore: registered new interface driver ums-usbat
mousedev: PS/2 mouse device common for all mice
input: 1c22800.lradc as
/devices/platform/soc@01c00000/1c22800.lradc/input/input0
i2c /dev entries driver
sunxi-wdt 1c20c90.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
Driver 'mmcblk' needs updating - please use bus_type methods
sunxi-mmc 1c0f000.mmc: No vqmmc regulator found
sunxi-mmc 1c0f000.mmc: Got CD GPIO
sunxi-mmc 1c0f000.mmc: base:0xe005a000 irq:19
sunxi-mmc 1c10000.mmc: No vqmmc regulator found
sunxi-mmc 1c10000.mmc: Got CD GPIO
sunxi-mmc 1c10000.mmc: base:0xe005c000 irq:20
ledtrig-cpu: registered to indicate activity on CPUs
hidraw: raw HID events driver (C) Jiri Kosina
TCP: cubic registered
NET: Registered protocol family 10
sit: IPv6 over IPv4 tunneling driver
NET: Registered protocol family 17
Key type dns_resolver registered
Registering SWP/SWPB emulation handler
ehci-platform 1c14000.usb: EHCI Host Controller
ehci-platform 1c14000.usb: new USB bus registered, assigned bus number 1
ehci-platform 1c14000.usb: irq 21, io mem 0x01c14000
mmc0: host does not support reading read-only switch, assuming write-enable
ehci-platform 1c14000.usb: USB 2.0 started, EHCI 1.00
mmc0: new high speed SDHC card at address 59b4
usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb1: Product: EHCI Host Controller
usb usb1: Manufacturer: Linux 4.0.0-rc4-00218-g895b183-dirty ehci_hcd
usb usb1: SerialNumber: 1c14000.usb
mmcblk0: mmc0:59b4 SD 7.35 GiB
hub 1-0:1.0: USB hub found
mmcblk0: p1
hub 1-0:1.0: 1 port detected
ohci-platform 1c14400.usb: Generic Platform OHCI controller
ohci-platform 1c14400.usb: new USB bus registered, assigned bus number 2
ohci-platform 1c14400.usb: irq 22, io mem 0x01c14400
usb usb2: New USB device found, idVendor=1d6b, idProduct=0001
usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb2: Product: Generic Platform OHCI controller
usb usb2: Manufacturer: Linux 4.0.0-rc4-00218-g895b183-dirty ohci_hcd
usb usb2: SerialNumber: 1c14400.usb
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 1 port detected
/scratch/build/linux/drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
vcc5v0: disabling
EXT3-fs (mmcblk0p1): error: couldn't mount because of unsupported optional
features (240)
EXT4-fs (mmcblk0p1): mounted filesystem with ordered data mode. Opts: (null)
VFS: Mounted root (ext4 filesystem) on device 179:1.
devtmpfs: mounted
Freeing unused kernel memory: 1024K (c0a00000 - c0b00000)
usb 1-1: new high-speed USB device number 2 using ehci-platform
usb 1-1: New USB device found, idVendor=056d, idProduct=0000
usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
usb 1-1: Product: USB HUB
usb 1-1: Manufacturer: EIZO
hub 1-1:1.0: USB hub found
hub 1-1:1.0: 3 ports detected
random: init urandom read with 18 bits of entropy available
usb 1-1.1: new low-speed USB device number 3 using ehci-platform
usb 1-1.1: New USB device found, idVendor=04f2, idProduct=0116
usb 1-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
usb 1-1.1: Product: USB Keyboard
usb 1-1.1: Manufacturer: CHICONY
usb 1-1.3: new full-speed USB device number 4 using ehci-platform
usb 1-1.3: New USB device found, idVendor=056d, idProduct=0002
usb 1-1.3: New USB device strings: Mfr=4, Product=14, SerialNumber=0
usb 1-1.3: Product: EIZO USB HID Monitor
usb 1-1.3: Manufacturer: EIZO
udevd[119]: starting version 175
at24 1-0050: 2048 byte 24c16 EEPROM, read-only, 0 bytes/write
input: CHICONY USB Keyboard as
/devices/platform/soc@01c00000/1c14000.usb/usb1/1-1/1-1.1/1-1.1:1.0/0003:04F2:0116.0001/input/input1
hid-generic 0003:04F2:0116.0001: input,hidraw0: USB HID v1.10 Keyboard [CHICONY
USB Keyboard] on usb-1c14000.usb-1.1/input0
hid-generic 0003:056D:0002.0002: hiddev0,hidraw1: USB HID v1.10 Device [EIZO
EIZO USB HID Monitor] on usb-1c14000.usb-1.3/input0
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
random: nonblocking pool is initialized
IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
sun4i-emac 1c0b000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
init: udev-fallback-graphics main process (243) terminated with status 1
init: failsafe main process (214) killed by TERM signal
Debian GNU/Linux 7 a10s ttyS0
a10s login: