[Arm-dev] Cubieboard5 performance

Wed Aug 15 07:14:32 UTC 2018
arm_ml at rirasoft.de <arm_ml at rirasoft.de>

Am 2018-08-07 12:23, schrieb Pablo Sebastián Greco:
> <snip>
>> 
>> Hello Pablo,
>> 
>> I've bought this device 1 or 2 years ago, but didn't find any good OS 
>> (Fedora, CentOS) for that. How to get this board with your kernel 
>> running? Any tips or howto?
>> 
>> I also have 2 Cubietruck 3 with CentOS.
>> 
> Well, the easiest thing to do would be to just use Fedora Rawhide
> (current kernels have smp, ethernet, etc..., all but hdmi).
> WRT CentOS, I can think of two ways to do it, both require the kernels
> I mentioned earlier in the thread.
> 1) (Easier)
>  - Prepare the image as if you where using your cubietruck 3
>  - boot that image and update (from the cubietruck 3)
>  - activate the repo and install the kernel
>  - change uboot to the cubietruck plus
>  - shutdown and move the image/sd to the new device.
> 
> 2) (Harder)
>  - Prepare the image for the cubietruck plus
>  - download the kernel rpms and copy them to the sd
>  - boot the cubietruck plus with that image (it has no ethernet, no
> wifi, and most likely no hdmi, so you'll have to do it via a serial
> console)
>  - login via console and manually install the kernel
>  - reboot
> 
> For both metods (and also for Fedora), there may be modules that are
> not loaded into initramfs, which makes it panic at boot.
> I usually add this to a .conf file in /etc/dracut.conf.d/
> add_drivers+=" phy-sun4i-usb sunxi-rsb axp20x-rsb axp20x-regulator
> axp20x-pek axp20x_ac_power axp20x_battery axp20x_usb_power
> axp288_fuel_gauge ac100 rtc-ac100"
> Some may not be needed anymore, and some may not be needed at all, but
> hey, it works for me ;)
> 
> One last thing that also applies to Fedora and CentOS, you may notice
> that you get a random MAC for the ethernet every time you boot, you
> can fix that by adding "MACADDR=<mac>" to
> /etc/sysconfig/network-scripts/ifcfg-eth0
> 
> HTH.
> 
> Pablo.
> 
> _______________________________________________
> Arm-dev mailing list
> Arm-dev at centos.org
> https://lists.centos.org/mailman/listinfo/arm-dev

Hello Pablo,
I've managed to boot this device with CentOS. With the kernel from the 
CentOS Image (4.14.28-201.el7.centos.armv7hl) there is only 1 CPU, 
Ethernet is not working, SATA is working.

With the kernel kernel-4.17.6-200.el7.armv7hl.rpm from you the system 
boots up, but can't find the Disc/SD-Card.

U-BooL 208.0-rc1 (Jul 3 28  12:18:07 +0
  248 Mirying to bor

U-Bot 218.09 31 2018 - 12:18:07 +00) Allwinner Technology

del: Cubietech Cubietruck Plus
I2C:   rea
DRAM 2 GiB
MMC:   SSD , SUNXI SD/MMC:1Lovirom F.. 1:2. ailed (-In:   seri: serial
Er:  al
NNo rnd.
starting B.
t nt vailable.
USB1:   faedto usb at 01c1a00usb PHoravaU  a get b at 01b00usbY
stop autobt:  0
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:2...
Found /extlinux/extlinux.conf
Retrieving file: /extlinux/extlinux.conf
1288 bytes read in 41 ms (30.3 KiB/s)
Ignoring unknown command: ui
Ignoring malformed menu command:  autoboot
Ignoring malformed menu command:  hidden
Ignoring unknown command: totaltimeout
Ignoring unknown command: 
default=CentOS-Userland-7-armv7hl-generic-Minimal-1804
CentOS-Userland-7-armv7hl-generic-Minimal-1804 Boot Options.
1:      CentOS Linux (4.17.6-200.el7.armv7hl) 7 (Core)
2:      CentOS-Userland-7-armv7hl-generic-Minimal-1804 
(4.14.28-201.el7.centos.armv7hl)
3:      single
Enter choice: 1:        CentOS Linux (4.17.6-200.el7.armv7hl) 7 (Core)
Retrieving file: /initramfs-4.17.6-200.el7.armv7hl.img
44622648 bytes read in 4624 ms (9.2 MiB/s)
Retrieving file: /vmlinuz-4.17.6-200.el7.armv7hl
6914560 bytes read in 800 ms (8.2 MiB/s)
append: ro root=UUID=b7768fcb-885b-4240-89ec-ac336e8313f3 selinux=0 
LANG=en_US.UTF-8
Retrieving file: 
/dtb-4.17.6-200.el7.armv7hl/sun8i-a83t-cubietruck-plus.dtb
21717 bytes read in 290 ms (72.3 KiB/s)
## Flattened Device Tree blob at 43000000
    Booting using the fdt blob at 0x43000000
    Loading Ramdisk to 47571000, end 49fff338 ... OK
    Loading Device Tree to 47568000, end 475704d4 ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.17.6-200.el7.armv7hl 
(mockbuild at armv7-01.dev.centos.org) (gcc version 4.8.5 20150623 (Red Hat 
4.8.5-28) (GCC)) #1 SMP Fri Jul 13 06:36:44 UTC 2018
[    0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), 
cr=10c5387d
[    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: Cubietech Cubietruck Plus
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] efi: Getting EFI parameters from FDT:
[    0.000000] efi: UEFI not found.
[    0.000000] cma: Reserved 64 MiB at 0xbc000000
[    0.000000] random: fast init done
[    0.000000] percpu: Embedded 16 pages/cpu @(ptrval) s34572 r8192 
d22772 u65536
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 
522560
[    0.000000] Kernel command line: ro 
root=UUID=b7768fcb-885b-4240-89ec-ac336e8313f3 selinux=0 
LANG=en_US.UTF-8
[    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: 1950992K/2097152K available (8284K kernel code, 
1329K rwdata, 3912K rodata, 2048K init, 505K bss, 80624K reserved, 
65536K cma-reserved, 1245184K 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 : 0x(ptrval) - 0x(ptrval)   (9277 kB)
[    0.000000]       .init : 0x(ptrval) - 0x(ptrval)   (2048 kB)
[    0.000000]       .data : 0x(ptrval) - 0x(ptrval)   (1330 kB)
[    0.000000]        .bss : 0x(ptrval) - 0x(ptrval)   ( 506 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=8, 
Nodes=1
[    0.000000] ftrace: allocating 37457 entries in 74 pages
[    0.000000] Hierarchical RCU implementation.
[    0.000000]  RCU restricting CPUs from NR_CPUS=32 to nr_cpu_ids=8.
[    0.000000]  Tasks RCU enabled.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, 
nr_cpu_ids=8
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] GIC physical location is 0x1c81000
[    0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (virt).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff 
max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[    0.000009] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps 
every 4398046511097ns
[    0.000023] Switching to timer-based delay loop, resolution 41ns
[    0.001283] clocksource: timer: mask: 0xffffffff max_cycles: 
0xffffffff, max_idle_ns: 79635851949 ns
[    0.002878] Console: colour dummy device 80x30
[    0.003344] console [tty0] enabled
[    0.003422] Calibrating delay loop (skipped), value calculated using 
timer frequency.. 48.00 BogoMIPS (lpj=24000)
[    0.003457] pid_max: default: 32768 minimum: 301
[    0.003722] Security Framework initialized
[    0.003777] Yama: becoming mindful.
[    0.003837] SELinux:  Disabled at boot.
[    0.003972] Mount-cache hash table entries: 2048 (order: 1, 8192 
bytes)
[    0.004005] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 
bytes)
[    0.005399] CPU: Testing write buffer coherency: ok
[    0.006133] /cpus/cpu at 0 missing clock-frequency property
[    0.006175] /cpus/cpu at 1 missing clock-frequency property
[    0.006201] /cpus/cpu at 2 missing clock-frequency property
[    0.006226] /cpus/cpu at 3 missing clock-frequency property
[    0.006254] /cpus/cpu at 100 missing clock-frequency property
[    0.006283] /cpus/cpu at 101 missing clock-frequency property
[    0.006312] /cpus/cpu at 102 missing clock-frequency property
[    0.006345] /cpus/cpu at 103 missing clock-frequency property
[    0.006366] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.007160] Setting up static identity map for 0x40300000 - 
0x403000a0
[    0.008391] ARM CCI driver probed
[    0.008914] sunxi multi cluster SMP support installed
[    0.009760] Hierarchical SRCU implementation.
[    0.015112] EFI services will not be available.
[    0.016057] smp: Bringing up secondary CPUs ...
[    0.017534] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.019138] CPU2: thread -1, cpu 2, socket 0, mpidr 80000002
[    0.020556] CPU3: thread -1, cpu 3, socket 0, mpidr 80000003
[    0.022101] CPU4: thread -1, cpu 0, socket 1, mpidr 80000100
[    0.023751] CPU5: thread -1, cpu 1, socket 1, mpidr 80000101
[    0.025198] CPU6: thread -1, cpu 2, socket 1, mpidr 80000102
[    0.026691] CPU7: thread -1, cpu 3, socket 1, mpidr 80000103
[    0.026865] smp: Brought up 1 node, 8 CPUs
[    0.027001] SMP: Total of 8 processors activated (384.00 BogoMIPS).
[    0.027020] CPU: All CPU(s) started in SVC mode.
[    0.029833] devtmpfs: initialized
[    0.037615] VFP support v0.3: implementor 41 architecture 2 part 30 
variant 7 rev 5
[    0.038437] clocksource: jiffies: mask: 0xffffffff max_cycles: 
0xffffffff, max_idle_ns: 1911260446275000 ns
[    0.038496] futex hash table entries: 2048 (order: 5, 131072 bytes)
[    0.043157] pinctrl core: initialized pinctrl subsystem
[    0.045109] DMI not present or invalid.
[    0.045961] NET: Registered protocol family 16
[    0.048321] DMA: preallocated 256 KiB pool for atomic coherent 
allocations
[    0.049394] audit: initializing netlink subsys (disabled)
[    0.049869] audit: type=2000 audit(0.046:1): state=initialized 
audit_enabled=0 res=1
[    0.051638] cpuidle: using governor menu
[    0.052150] No ATAGs?
[    0.052473] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 
watchpoint registers.
[    0.052514] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.053645] Serial: AMBA PL011 UART driver
[    0.078514] cryptd: max_cpu_qlen set to 1000
[    0.083837] vgaarb: loaded
[    0.084965] SCSI subsystem initialized
[    0.085730] usbcore: registered new interface driver usbfs
[    0.085804] usbcore: registered new interface driver hub
[    0.086020] usbcore: registered new device driver usb
[    0.086504] pps_core: LinuxPPS API ver. 1 registered
[    0.086527] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 
Rodolfo Giometti <giometti at linux.it>
[    0.086571] PTP clock support registered
[    0.087010] EDAC MC: Ver: 3.0.0
[    0.089156] NetLabel: Initializing
[    0.089185] NetLabel:  domain hash size = 128
[    0.089199] NetLabel:  protocols = UNLABELED CIPSOv4 CALIPSO
[    0.089304] NetLabel:  unlabeled traffic allowed by default
[    0.089914] clocksource: Switched to clocksource arch_sys_counter
[    0.192514] VFS: Disk quotas dquot_6.6.0
[    0.192686] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 
bytes)
[    0.204970] NET: Registered protocol family 2
[    0.206112] tcp_listen_portaddr_hash hash table entries: 512 (order: 
0, 6144 bytes)
[    0.206173] TCP established hash table entries: 8192 (order: 3, 32768 
bytes)
[    0.206272] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    0.206413] TCP: Hash tables configured (established 8192 bind 8192)
[    0.206656] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.206766] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.207485] NET: Registered protocol family 1
[    0.208270] Unpacking initramfs...
[    2.928476] Freeing initrd memory: 43580K
[    2.939223] Initialise system trusted keyrings
[    2.939340] Key type blacklist registered
[    2.939645] workingset: timestamp_bits=14 max_order=19 bucket_order=5
[    2.947744] zbud: loaded
[    2.950503] pstore: using deflate compression
[    4.371355] alg: No test for 842 (842-generic)
[    4.371544] alg: No test for 842 (842-scomp)
[    4.415595] NET: Registered protocol family 38
[    4.415665] Key type asymmetric registered
[    4.415682] Asymmetric key parser 'x509' registered
[    4.415797] bounce: pool size: 64 pages
[    4.416012] Block layer SCSI generic (bsg) driver version 0.4 loaded 
(major 245)
[    4.416370] io scheduler noop registered
[    4.416394] io scheduler deadline registered
[    4.416667] io scheduler cfq registered (default)
[    4.416692] io scheduler mq-deadline registered
[    4.417362] atomic64_test: passed
[    4.425933] sun8i-a83t-r-pinctrl 1f02c00.pinctrl: initialized sunXi 
PIO driver
[    4.435730] Serial: 8250/16550 driver, 32 ports, IRQ sharing enabled
[    4.447542] dw-apb-uart 1c28000.serial: could not find pctldev for 
node /soc/pinctrl at 1c20800/uart0-pb-pins, deferring probe
[    4.448419] Serial: AMBA driver
[    4.449388] msm_serial: driver initialized
[    4.449409] STMicroelectronics ASC driver initialized
[    4.452752] libphy: Fixed MDIO Bus: probed
[    4.453364] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) 
Driver
[    4.453409] ehci-pci: EHCI PCI platform driver
[    4.453491] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    4.453524] ohci-pci: OHCI PCI platform driver
[    4.453582] uhci_hcd: USB Universal Host Controller Interface driver
[    4.453922] usbcore: registered new interface driver 
usbserial_generic
[    4.453985] usbserial: USB Serial support registered for generic
[    4.454214] mousedev: PS/2 mouse device common for all mice
[    4.457474] device-mapper: uevent: version 1.0.3
[    4.457971] device-mapper: ioctl: 4.39.0-ioctl (2018-04-03) 
initialised: dm-devel at redhat.com
[    4.460597] ledtrig-cpu: registered to indicate activity on CPUs
[    4.461223] hidraw: raw HID events driver (C) Jiri Kosina
[    4.461523] usbcore: registered new interface driver usbhid
[    4.461542] usbhid: USB HID core driver
[    4.463340] ARM CCI_400_r1 PMU driver probed
[    4.463900] drop_monitor: Initializing network drop monitor service
[    4.465030] Initializing XFRM netlink socket
[    4.466029] NET: Registered protocol family 10
[    4.483710] Segment Routing with IPv6
[    4.483903] mip6: Mobile IPv6
[    4.483939] NET: Registered protocol family 17
[    4.484378] ThumbEE CPU extension supported.
[    4.484416] Registering SWP/SWPB emulation handler
[    4.547625] registered taskstats version 1
[    4.547735] Loading compiled-in X.509 certificates
[    4.890959] Loaded X.509 cert 'Fedora kernel signing key: 
684e6d665bb65fb519df52db4680190e8ccb7e8b'
[    4.891247] zswap: loaded using pool lzo/zbud
[    4.907853] Key type big_key registered
[    4.922696] Key type encrypted registered
[    4.922757] ima: No TPM chip found, activating TPM-bypass! (rc=-19)
[    4.922818] ima: Allocated hash algorithm: sha1
[    4.942310] sun8i-a83t-pinctrl 1c20800.pinctrl: initialized sunXi PIO 
driver
[    4.964169] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 45, 
base_baud = 1500000) is a U6_16550A
[    5.930955] console [ttyS0] enabled
[    5.937536] hctosys: unable to open rtc device (rtc0)
[    5.942687] sr_init: No PMIC hook to init smartreflex
[    5.949285] usb2-vbus: disabling
[    5.952570] usb1-vbus: disabling
[    5.967550] Freeing unused kernel memory: 2048K
[    5.973095] Checked W+X mappings: passed, no W+X pages found
[    5.978795] rodata_test: test data was not read only
[    6.019036] systemd[1]: systemd 219 running in system mode. (+PAM 
+AUDIT +SELINUX +IMA -APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP 
+GCRYPT +GNUTLS +ACL +XZ +LZ4 -SECCOMP +BLKID +ELFUTILS +KMOD +IDN)
[    6.038185] systemd[1]: Detected architecture arm.
[    6.043044] systemd[1]: Running in initial RAM disk.

Welcome to CentOS Linux 7 (Core) dracut-033-535.el7 (Initramfs)!
[    6.057092] systemd[1]: No hostname configured.
[    6.061717] systemd[1]: Set hostname to <localhost>.
[    6.067025] systemd[1]: Initializing machine ID from random 
generator.
[  OK  ] Created slice Root Slice.
[    6.381140] systemd[1]: Created slice Root Slice.
[    6.386050] systemd[1]: Starting Root Slice.
[  OK  ] Created slice System Slice.
[    6.398020] systemd[1]: Created slice System Slice.
[    6.403041] systemd[1]: Starting System Slice.
[  OK  ] Listening on udev Control Socket.
[  OK  ] Listening on udev Kernel Socket.
[  OK  ] Reached target Swap.
[  OK  ] Listening on Journal Socket.
          Starting Create list of required st... nodes for the current 
kernel...
          Starting Journal Service...
          Starting Setup Virtual Console...
[  OK  ] Reached target Slices.
[  OK  ] Reached target Local File Systems.
[  OK  ] Reached target Timers.
[  OK  ] Reached target Sockets.
          Starting dracut cmdline hook...
          Starting Apply Kernel Variables...
[  OK  ] Started Create list of required sta...ce nodes for the current 
kernel.
[  OK  ] Started Setup Virtual Console.
[  OK  ] Started Apply Kernel Variables.
[  OK  ] Started Journal Service.
          Starting Create Static Device Nodes in /dev...
[  OK  ] Started Create Static Device Nodes in /dev.
[  OK  ] Started dracut cmdline hook.
          Starting dracut pre-udev hook...
[  OK  ] Started dracut pre-udev hook.
          Starting udev Kernel Device Manager...
[  OK  ] Started udev Kernel Device Manager.
          Starting udev Coldplug all Devices...
          Mounting Configuration File System...
[  OK  ] Started udev Coldplug all Devices.
[  OK  ] Mounted Configuration File System.
          Starting dracut initqueue hook...
          Starting Show Plymouth Boot Screen...
[  OK  ] Reached target System Initialization.
[  OK  ] Started Show Plymouth Boot Screen.
[    8.006967] ehci-platform: EHCI generic platform driver
[  OK  ] Reached target Paths.
[  OK  ] Reached target Basic System.
[    8.156216] dwmac-sun8i 1c30000.ethernet: PTP uses main clock
[    8.250972] dwmac-sun8i 1c30000.ethernet: PTP uses main clock
[  147.500901] dracut-initqueue[354]: Warning: dracut-initqueue timeout 
- starting timeout scripts
[  216.363666] dracut-initqueue[354]: Warning: dracut-initqueue timeout 
- starting timeout scripts
[  216.366273] dracut-initqueue[354]: Warning: Could not boot.
[  OK  ] Started Show Plymouth Boot Screen.
[  OK  ] Reached target Paths.
[  OK  ] Reached target Basic System.
[  147.500901] dracut-initqueue[354]: Warning: dracut-initqueue timeout 
- starting timeout scripts
   216.366273] dracut-initqueue[354]: Warning: Could not boot.
[  217.381286] dracut-initqueue[354]: Warning: 
/dev/disk/by-uuid/b7768fcb-885b-4240-89ec-ac336e8313f3 does not exist
          Starting Dracut Emergency Shell...
Warning: /dev/disk/by-uuid/b7768fcb-885b-4240-89ec-ac336e8313f3 does not 
exist

Generating "/run/initramfs/rdsosreport.txt"


Entering emergency mode. Exit the shell to continue.
Type "journalctl" to view system logs.
You might want to save "/run/initramfs/rdsosreport.txt" to a USB stick 
or /boot
after mounting them and attach it to a bug report.


dracut:/# ls -l /dev/disk/by-uuid/
ls: cannot access /dev/disk/by-uuid/: No such file or directory
dracut:/#