[LEDE-DEV] [PATCH 00/13] sunxi: upgrade to kernel 4.9 and add A64 support

Lucian Cristian luci at createc.ro
Sun Aug 6 11:20:02 PDT 2017



On 04.08.2017 00:37, Hauke Mehrtens wrote:
> This upgrades the target to kernel 4.9 and also adds support for the
> Allwinner A64 SoC. This was only tested on the pine64+ and I do not own
> any older Allwinner SoC.
>
> Could someone please test this on an older 32 bit Allwinner SoC and
> report back some results.
>
> Hauke Mehrtens (13):
>    kernel: add some config options
>    sunix: add support for kernel 4.9
>    include: u-boot.mk: remove LEDE HOSTCPPFLAGS from u-boot HOSTCPPFLAGS
>    uboot-sunxi: update to version 2017.07
>    uboot-sunxi: do not depend on dtc being install on host
>    uboot-sunxi: revert the usage of binman
>    sunxi: fix build of rtc package when module not available
>    sunxi: split into cortex A8 and A7 subtarget
>    arm-trusted-firmware-sunxi: add new package
>    uboot-sunxi: build A64 SoC and pine64 U-Boot
>    sunxi: Backport patches needed for A64
>    sunxi: Backport patches from kernel 4.11 for A64
>    sunxi: Add A64 support with cortex53 subtarget
>
> ...
On LIME2 I get the attached boot log


Regards

-------------- next part --------------

U-Boot SPL 2017.07 (Aug 05 2017 - 07:47:41)
DRAM: 1024 MiB
CPU: 912000000Hz, AXI/AHB/APB: 3/2/2
Trying to boot from MMC1


U-Boot 2017.07 (Aug 05 2017 - 07:47:41 +0000) Allwinner Technology

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

In:    serial
Out:   serial
Err:   serial
SCSI:  SATA link 0 timeout.
AHCI 0001.0100 32 slots 1 ports 3 Gbps 0x1 impl SATA mode
flags: ncq stag pm led clo only pmp pio slum part ccc apst
Net:   eth0: ethernet at 01c50000
starting USB...
USB0:   USB EHCI 1.00
USB1:   USB OHCI 1.0
USB2:   USB EHCI 1.00
USB3:   USB OHCI 1.0
scanning bus 0 for devices... 1 USB Device(s) found
scanning bus 2 for devices... 1 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found
Hit any key to stop autoboot:  0
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found U-Boot script /boot.scr
reading /boot.scr
377 bytes read in 15 ms (24.4 KiB/s)
## Executing script at 43100000
reading uImage
2193256 bytes read in 143 ms (14.6 MiB/s)
reading dtb
34531 bytes read in 26 ms (1.3 MiB/s)
## Booting kernel from Legacy Image at 42000000 ...
   Image Name:   ARM LEDE Linux-4.9.40
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2193192 Bytes = 2.1 MiB
   Load Address: 40008000
   Entry Point:  40008000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 43000000
   Booting using the fdt blob at 0x43000000
   Loading Kernel Image ... OK
   Using Device Tree in place at 43000000, end 4300b6e2

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.9.40 (luci at droid) (gcc version 5.4.0 (LEDE GCC 5.4.0 r4675-e5e6045) ) #0 SMP PREEMPT Sat Aug 5 07:47:41 2017
[    0.000000] CPU: ARMv7 Processor [410fc074] revision 4 (ARMv7), cr=32c5387d
[    0.000000] CPU: div instructions available: patching division code
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt:Machine model: Olimex A20-OLinuXino-LIME2
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: Using PSCI v0.1 Function IDs from DT
[    0.000000] percpu: Embedded 14 pages/cpu @ef7c2000 s25036 r8192 d24116 u57344
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 260608
[    0.000000] Kernel command line: console=ttyS0,115200 earlyprintk root=/dev/mmcblk0p2 rootwait
[    0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Memory: 1032660K/1048576K available (4406K kernel code, 224K rwdata, 1292K rodata, 284K init, 277K bss, 15916K reserved, 0K cma-reserved, 262144K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xf0800000 - 0xff800000   ( 240 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xf0000000   ( 768 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0008000 - 0xc0455df0   (4408 kB)
[    0.000000]       .init : 0xc05bd000 - 0xc0604000   ( 284 kB)
[    0.000000]       .data : 0xc0604000 - 0xc063c300   ( 225 kB)
[    0.000000]        .bss : 0xc063e000 - 0xc06835d4   ( 278 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000]  RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=2.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] arm_arch_timer: Architected cp15 timer(s) running at 24.00MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[    0.000006] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.000019] Switching to timer-based delay loop, resolution 41ns
[    0.000528] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000775] clocksource: hstimer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 12741736309 ns
[    0.000951] Console: colour dummy device 80x30
[    0.000983] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.000999] pid_max: default: 32768 minimum: 301
[    0.001117] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.001128] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.001718] CPU: Testing write buffer coherency: ok
[    0.002069] /cpus/cpu at 0 missing clock-frequency property
[    0.002088] /cpus/cpu at 1 missing clock-frequency property
[    0.002102] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.002125] Setting up static identity map for 0x400082c0 - 0x40008318
[    0.180432] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.180549] Brought up 2 CPUs
[    0.180570] SMP: Total of 2 processors activated (96.00 BogoMIPS).
[    0.180577] CPU: All CPU(s) started in HYP mode.
[    0.180583] CPU: Virtualization extensions available.
[    0.191767] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 4
[    0.192522] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.192555] futex hash table entries: 512 (order: 3, 32768 bytes)
[    0.192723] pinctrl core: initialized pinctrl subsystem
[    0.194387] NET: Registered protocol family 16
[    0.194715] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.197201] No ATAGs?
[    0.272455] reg-fixed-voltage ahci-5v: could not find pctldev for node /soc at 01c00000/pinctrl at 01c20800/ahci_pwr_pin at 1, deferring probe
[    0.272515] reg-fixed-voltage usb0-vbus: could not find pctldev for node /soc at 01c00000/pinctrl at 01c20800/usb0_vbus_pin at 0, deferring probe
[    0.272550] reg-fixed-voltage usb1-vbus: could not find pctldev for node /soc at 01c00000/pinctrl at 01c20800/usb1_vbus_pin at 0, deferring probe
[    0.272583] reg-fixed-voltage usb2-vbus: could not find pctldev for node /soc at 01c00000/pinctrl at 01c20800/usb2_vbus_pin at 0, deferring probe
[    0.275043] SCSI subsystem initialized
[    0.276001] usbcore: registered new interface driver usbfs
[    0.276145] usbcore: registered new interface driver hub
[    0.276319] usbcore: registered new device driver usb
[    0.276781] pps_core: LinuxPPS API ver. 1 registered
[    0.276793] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti at linux.it>
[    0.276874] PTP clock support registered
[    0.277625] Advanced Linux Sound Architecture Driver Initialized.
[    0.279003] clocksource: Switched to clocksource arch_sys_counter
[    0.293055] NET: Registered protocol family 2
[    0.293846] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.293940] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    0.294069] TCP: Hash tables configured (established 8192 bind 8192)
[    0.294152] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.294215] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.294468] NET: Registered protocol family 1
[    0.294869] kvm [1]: 8-bit VMID
[    0.294883] kvm [1]: IDMAP page: 40009000
[    0.294892] kvm [1]: HYP VA range: c0000000:ffffffff
[    0.295216] kvm [1]: Hyp mode initialized successfully
[    0.295281] kvm [1]: vgic-v2 at 1c84000
[    0.295468] kvm [1]: vgic interrupt IRQ16
[    0.295495] kvm [1]: virtual timer IRQ20
[    0.297543] audit: initializing netlink subsys (disabled)
[    0.297631] audit: type=2000 audit(0.280:1): initialized
[    0.297683] No memory allocated for crashlog
[    0.297969] workingset: timestamp_bits=30 max_order=18 bucket_order=0
[    0.308804] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.322246] bounce: pool size: 64 pages
[    0.322268] io scheduler noop registered
[    0.322276] io scheduler deadline registered
[    0.322515] io scheduler cfq registered (default)
[    0.323037] sun4i-usb-phy 1c13400.phy: could not find pctldev for node /soc at 01c00000/pinctrl at 01c20800/usb0_id_detect_pin at 0, deferring probe
[    0.327842] sun7i-a20-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.401227] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.404510] console [ttyS0] disabled
[    0.425008] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 42, base_baud = 1500000) is a U6_16550A
[    1.060044] console [ttyS0] enabled
[    1.092332] loop: module loaded
[    1.096643] libphy: Fixed MDIO Bus: probed
[    1.101394] sun7i-dwmac 1c50000.ethernet: no regulator found
[    1.107148] sun7i-dwmac 1c50000.ethernet: no reset control found
[    1.113251]  Ring mode enabled
[    1.116306]  DMA HW capability register supported[    1.120850]  Normal descriptors
[    1.127396] libphy: stmmac: probed
[    1.130877] eth%d: PHY ID 001cc912 at 1 IRQ POLL (stmmac-0:01) active
[    1.138640] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.145212] ehci-platform: EHCI generic platform driver
[    1.150976] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    1.157186] ohci-platform: OHCI generic platform driver
[    1.162936] usbcore: registered new interface driver usb-storage
[    1.169395] mousedev: PS/2 mouse device common for all mice
[    1.175996] i2c /dev entries driver
[    1.182114] sunxi-wdt 1c20c90.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    1.202802] sunxi-mmc 1c0f000.mmc: Got CD GPIO
[    1.269230] sunxi-mmc 1c0f000.mmc: base:0xf08e7000 irq:27
[    1.276890] sun4i-ss 1c15000.crypto-engine: no reset control found
[    1.286821] sun4i-ss 1c15000.crypto-engine: Die ID 0
[    1.294693] NET: Registered protocol family 10
[    1.300683] NET: Registered protocol family 17
[    1.305251] can: controller area network core (rev 20120528 abi 9)
[    1.311720] NET: Registered protocol family 29
[    1.317270] 8021q: 802.1Q VLAN Support v1.8
[    1.323659] Registering SWP/SWPB emulation handler
[    1.339450] ehci-platform 1c14000.usb: EHCI Host Controller
[    1.345069] ehci-platform 1c14000.usb: new USB bus registered, assigned bus number 1
[    1.352996] ehci-platform 1c14000.usb: irq 29, io mem 0x01c14000
[    1.366229] mmc0: host does not support reading read-only switch, assuming write-enable
[    1.376780] mmc0: new high speed SDHC card at address 1234
[    1.383023] mmcblk0: mmc0:1234 SA04G 3.64 GiB
[    1.388888]  mmcblk0: p1 p2
[    1.391760] ehci-platform 1c14000.usb: USB 2.0 started, EHCI 1.00
[    1.392011] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.392018] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.392024] usb usb1: Product: EHCI Host Controller
[    1.392029] usb usb1: Manufacturer: Linux 4.9.40 ehci_hcd
[    1.392034] usb usb1: SerialNumber: 1c14000.usb
[    1.392731] hub 1-0:1.0: USB hub found
[    1.392798] hub 1-0:1.0: 1 port detected
[    1.393673] ehci-platform 1c1c000.usb: EHCI Host Controller
[    1.393714] ehci-platform 1c1c000.usb: new USB bus registered, assigned bus number 2
[    1.393897] ehci-platform 1c1c000.usb: irq 33, io mem 0x01c1c000
[    1.424346] ehci-platform 1c1c000.usb: USB 2.0 started, EHCI 1.00
[    1.424561] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[    1.424569] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.424575] usb usb2: Product: EHCI Host Controller
[    1.424580] usb usb2: Manufacturer: Linux 4.9.40 ehci_hcd
[    1.424585] usb usb2: SerialNumber: 1c1c000.usb
[    1.425292] hub 2-0:1.0: USB hub found
[    1.425345] hub 2-0:1.0: 1 port detected
[    1.426151] ohci-platform 1c14400.usb: Generic Platform OHCI controller
[    1.426190] ohci-platform 1c14400.usb: new USB bus registered, assigned bus number 3
[    1.426389] ohci-platform 1c14400.usb: irq 30, io mem 0x01c14400
[    1.497019] usb usb3: New USB device found, idVendor=1d6b, idProduct=0001
[    1.497027] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.497033] usb usb3: Product: Generic Platform OHCI controller
[    1.497038] usb usb3: Manufacturer: Linux 4.9.40 ohci_hcd
[    1.497043] usb usb3: SerialNumber: 1c14400.usb
[    1.497752] hub 3-0:1.0: USB hub found
[    1.497795] hub 3-0:1.0: 1 port detected
[    1.498616] ohci-platform 1c1c400.usb: Generic Platform OHCI controller
[    1.498651] ohci-platform 1c1c400.usb: new USB bus registered, assigned bus number 4
[    1.498811] ohci-platform 1c1c400.usb: irq 34, io mem 0x01c1c400
[    1.564694] usb usb4: New USB device found, idVendor=1d6b, idProduct=0001
[    1.564702] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.564707] usb usb4: Product: Generic Platform OHCI controller
[    1.564713] usb usb4: Manufacturer: Linux 4.9.40 ohci_hcd
[    1.564718] usb usb4: SerialNumber: 1c1c400.usb
[    1.565404] hub 4-0:1.0: USB hub found
[    1.565450] hub 4-0:1.0: 1 port detected
[    1.565895] hctosys: unable to open rtc device (rtc0)
[    1.566655] vcc3v0: disabling
[    1.566662] vcc5v0: disabling
[    1.566669] ahci-5v: disabling
[    1.566679] usb0-vbus: disabling
[    1.566686] ALSA device list:
[    1.566688]   No soundcards found.
[    1.660333] VFS: Mounted root (squashfs filesystem) readonly on device 179:2.
[    1.668012] Freeing unused kernel memory: 284K (c05bd000 - c0604000)
[    1.674458] This architecture does not have kernel memory protection.
[    1.994519] request_module: runaway loop modprobe binfmt-4c46
[    2.004110] Starting init: /sbin/init exists but couldn't execute it (error -8)
[    2.084797] request_module: runaway loop modprobe binfmt-4c46
[    2.094342] Starting init: /bin/sh exists but couldn't execute it (error -8)
[    2.101471] Kernel panic - not syncing: No working init found.  Try passing init= option to kernel. See Linux Documentation/init.txt for guidance.
[    2.114585] CPU: 1 PID: 1 Comm: swapper/0 Not tainted 4.9.40 #0
[    2.120495] Hardware name: Allwinner sun7i (A20) Family
[    2.125753] [<c0027da8>] (unwind_backtrace) from [<c00249e0>] (show_stack+0x10/0x14)
[    2.133495] [<c00249e0>] (show_stack) from [<c01fcf84>] (dump_stack+0x7c/0x9c)
[    2.140718] [<c01fcf84>] (dump_stack) from [<c00a353c>] (panic+0xc8/0x25c)
[    2.147598] [<c00a353c>] (panic) from [<c044f4b4>] (kernel_init+0xc4/0xf4)
[    2.154473] [<c044f4b4>] (kernel_init) from [<c0021ca8>] (ret_from_fork+0x14/0x2c)
[    2.162042] CPU0: stopping
[    2.164751] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 4.9.40 #0
[    2.170662] Hardware name: Allwinner sun7i (A20) Family
[    2.175891] [<c0027da8>] (unwind_backtrace) from [<c00249e0>] (show_stack+0x10/0x14)
[    2.183628] [<c00249e0>] (show_stack) from [<c01fcf84>] (dump_stack+0x7c/0x9c)
[    2.190844] [<c01fcf84>] (dump_stack) from [<c0026c98>] (handle_IPI+0xc8/0x170)
[    2.198148] [<c0026c98>] (handle_IPI) from [<c00094dc>] (gic_handle_irq+0x7c/0x98)
[    2.205711] [<c00094dc>] (gic_handle_irq) from [<c0025478>] (__irq_svc+0x58/0x8c)
[    2.213184] Exception stack(0xc0605f58 to 0xc0605fa0)
[    2.218229] 5f40:                                                       00000000 000004b4
[    2.226399] 5f60: ef7c42fc c002d4c0 c0604000 c0607034 00000001 c06113f4 c0607084 c0607000
[    2.234567] 5f80: c05eba28 00000000 00000000 c0605fa8 c002269c c00226a0 60000213 ffffffff
[    2.242738] [<c0025478>] (__irq_svc) from [<c00226a0>] (arch_cpu_idle+0x2c/0x38)
[    2.250132] [<c00226a0>] (arch_cpu_idle) from [<c00633b8>] (cpu_startup_entry+0xc4/0x124)
[    2.258310] [<c00633b8>] (cpu_startup_entry) from [<c05bdc24>] (start_kernel+0x36c/0x3e0)
[    2.266483] Rebooting in 1 seconds..


More information about the Lede-dev mailing list