C2 Have a 4.x Kernel Yet?

This forum is for topics dealing with problems with software specifically in the AArch64 repo.

Re: C2 Have a 4.x Kernel Yet?

Postby ryu » Sat Mar 11, 2017 2:39 pm

Based on the info provided by oreggin, I got the 4.11-rc kernel to boot. Ethernet works (throughput is at least 300Mbits/sec, probably more), USB doesn't. Haven't tried MMC or anything else.

/boot/make_uImage.sh:
$this->bbcode_second_pass_code('', '#!/bin/sh
address_uImage='0x1080000'
address_uInitrd='0x13000000'
version=`cat ../etc/mkinitcpio.d/linux-aarch64-rc.preset | grep ALL_kver | cut -d= -f2 | sed -e 's/\"//g'`
mkimage -A arm64 -O linux -C none -T kernel -a $address_uImage -e $address_uImage -n "uImage-$version" -d Image uImage
mkimage -A arm64 -O linux -C none -T ramdisk -a $address_uInitrd -e $address_uInitrd -n "uInitrd-$version" -d initramfs-linux.img uInitrd
mkimage -A arm64 -O linux -C none -T ramdisk -a $address_uInitrd -e $address_uInitrd -n "uInitrd-$version-fallback" -d initramfs-linux-fallback.img uInitrd-fallback')

/boot/boot.ini:
$this->bbcode_second_pass_code('', 'ODROIDC2-UBOOT-CONFIG

setenv bootargs "console=ttyAML0,115200 root=/dev/mmcblk1p1 rootwait rw fsck.fix=yes net.ifnames=0"
setenv loadaddr "0x1080000"
setenv dtb_loadaddr "0x1000000"
setenv initrd_loadaddr "0x13000000"
load mmc 0:1 ${loadaddr} /boot/uImage
load mmc 0:1 ${dtb_loadaddr} /boot/dtbs/amlogic/meson-gxbb-odroidc2.dtb
load mmc 0:1 ${initrd_loadaddr} /boot/uInitrd
fdt addr ${dtb_loadaddr}
bootm ${loadaddr} ${initrd_loadaddr}:${filesize} ${dtb_loadaddr}')

Boot log:
$this->bbcode_second_pass_code('', 'BL2 Built : 11:44:26, Nov 25 2015.
gxb gfb13a3b-c2 - jcao@wonton

Board ID = 8
set vcck to 1100 mv
set vddee to 1050 mv
CPU clk: 1536MHz
DDR channel setting: DDR0 Rank0+1 same
DDR0: 2048MB(auto) @ 912MHz(2T)-13
DataBus test pass!
AddrBus test pass!
Load fip header from SD, src: 0x0000c200, des: 0x01400000, size: 0x000000b0
Load bl30 from SD, src: 0x00010200, des: 0x01000000, size: 0x00009ef0
Sending bl30........................................OK.
Run bl30...
Load bl301 from SD, src: 0x0001c200, des: 0x01000000, size: 0x000018c0
Wait bl30...Done
Sending bl301.......OK.
Run bl301...
31 from SD, src: 0x00020200, des: 0x10100000, size: 0x00011130


--- UART initialized after reboot ---
[Reset cause: unknown]
[Image: unknown, amlogic_v1.1.3046-00db630-dirty 2016-08-31 09:24:14 tao.zeng@droid04]
bl30: check_permit, count is 1
bl30: check_permit: ok!
chipid: eLoad bl33 from SD, src: 0x00034200, des: 0x01000000, size: 0x000723d0
f be ad de d f0 ad ba ef be ad de not ES chip
[0.298327 Inits done]
secure task start!
high task start!
low task start!
NOTICE: BL3-1: v1.0(debug):4d2e34d
NOTICE: BL3-1: Built : 17:08:35, Oct 29 2015
INFO: BL3-1: Initializing runtime services
INFO: BL3-1: Preparing for EL3 exit to normal world
INFO: BL3-1: Next image address = 0x1000000
INFO: BL3-1: Next image spsr = 0x3c9


U-Boot 2015.01-17 (Mar 07 2017 - 18:57:17) Arch Linux ARM

DRAM: 2 GiB
Relocation Offset is: 76f33000
-------------------------------------------------
* Welcome to Hardkernel's ODROID-C2
-------------------------------------------------
CPU : AMLogic S905
S/N : HKC57OIQJ4ZH868
MAC : e3:80:d7:79:af:a9
BID : HKC4979811
-------------------------------------------------
register usb cfg[1][0] = 0000000077f94cc0
register usb cfg[0][1] = 0000000077f94ce0
vpu detect type: 5
vpu clk_level = 7
set vpu clk: 666667000Hz, readback: 666660000Hz(0x300)
MMC: aml_priv->desc_buf = 0x0000000073f2bd30
aml_priv->desc_buf = 0x0000000073f2dec0
SDIO Port B: 0, SDIO Port C: 1
ret = 1 .[mmc_init] mmc init success
In: serial
Out: serial
Err: serial
----------------------------------
MMC Size : 8 GB
----------------------------------
** Unrecognized filesystem type **
** Unrecognized filesystem type **
movi: the partiton 'logo' is reading...

MMC read: dev # 0, block # 61024, count 2048 ... 2048 blocks read: OK
hpd_state=1
[CANVAS]addr=0x3f800000 width=3840, height=1440

set hdmitx VIC = 16
hdmitx phy setting done
set hdmitx VIC = 16
hdmitx phy setting done
Error: Bad gzipped data
There is no valid bmp file at the given address
Net: Meson_Ethernet
Hit [Enter] key twice to stop autoboot: 0
465 bytes read in 7 ms (64.5 KiB/s)
cfgload: applying boot.ini...
cfgload: setenv bootargs "console=ttyAML0,115200 root=/dev/mmcblk1p1 rootwait rw fsck.fix=yes net.ifnames=0"
cfgload: setenv loadaddr "0x1080000"
cfgload: setenv dtb_loadaddr "0x1000000"
cfgload: setenv initrd_loadaddr "0x13000000"
cfgload: load mmc 0:1 ${loadaddr} /boot/uImage
20267584 bytes read in 902 ms (21.4 MiB/s)
cfgload: load mmc 0:1 ${dtb_loadaddr} /boot/dtbs/amlogic/meson-gxbb-odroidc2.dtb
16119 bytes read in 14 ms (1.1 MiB/s)
cfgload: load mmc 0:1 ${initrd_loadaddr} /boot/uInitrd
3858222 bytes read in 182 ms (20.2 MiB/s)
cfgload: fdt addr ${dtb_loadaddr}
cfgload: bootm ${loadaddr} ${initrd_loadaddr}:${filesize} ${dtb_loadaddr}
ee_gate_off ...
## Booting kernel from Legacy Image at 01080000 ...
Image Name: uImage-4.11.0-rc1-1-ARCH
Image Type: AArch64 Linux Kernel Image (uncompressed)
Data Size: 20267520 Bytes = 19.3 MiB
Load Address: 01080000
Entry Point: 01080000
Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 13000000 ...
Image Name: uInitrd-4.11.0-rc1-1-ARCH
Image Type: AArch64 Linux RAMDisk Image (uncompressed)
Data Size: 3858158 Bytes = 3.7 MiB
Load Address: 13000000
Entry Point: 13000000
Verifying Checksum ... OK
load dtb from 0x1000000 ......
## Flattened Device Tree blob at 01000000
Booting using the fdt blob at 0x1000000
Loading Kernel Image ... OK
kernel loaded at 0x01080000, end = 0x023d4200
Loading Ramdisk to 73b7b000, end 73f28eee ... OK
Loading Device Tree to 000000001fff9000, end 000000001ffffef6 ... OK

Starting kernel ...

uboot time: 4801680 us
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.11.0-rc1-1-ARCH (builduser@leming) (gcc version 6.3.1 20170109 (GCC) ) #1 SMP Mon Mar 6 20:33:21 MST 2017
[ 0.000000] Boot CPU: AArch64 Processor [410fd034]
[ 0.000000] efi: Getting EFI parameters from FDT:
[ 0.000000] efi: UEFI not found.
[ 0.000000] cma: Reserved 512 MiB at 0x0000000040000000
[ 0.000000] psci: probing for conduit method from DT.
[ 0.000000] psci: PSCIv0.2 detected in firmware.
[ 0.000000] psci: Using standard PSCI v0.2 function IDs
[ 0.000000] psci: Trusted OS migration not required
[ 0.000000] percpu: Embedded 3 pages/cpu @ffff800077e90000 s120984 r8192 d67432 u196608
[ 0.000000] Detected VIPT I-cache on CPU0
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping off. Total pages: 30402
[ 0.000000] Kernel command line: console=ttyAML0,115200 root=/dev/mmcblk1p1 rootwait rw fsck.fix=yes net.ifnames=0
[ 0.000000] PID hash table entries: 4096 (order: -1, 32768 bytes)
[ 0.000000] Dentry cache hash table entries: 262144 (order: 5, 2097152 bytes)
[ 0.000000] Inode-cache hash table entries: 131072 (order: 4, 1048576 bytes)
[ 0.000000] Memory: 1391616K/1947648K available (11132K kernel code, 2192K rwdata, 5056K rodata, 1344K init, 1207K bss, 31744K reserved, 524288K cma-reserved)
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] modules : 0xffff000000000000 - 0xffff000008000000 ( 128 MB)
[ 0.000000] vmalloc : 0xffff000008000000 - 0xffff7bdfffff0000 (126847 GB)
[ 0.000000] .text : 0xffff000008080000 - 0xffff000008b60000 ( 11136 KB)
[ 0.000000] .rodata : 0xffff000008b60000 - 0xffff000009060000 ( 5120 KB)
[ 0.000000] .init : 0xffff000009060000 - 0xffff0000091b0000 ( 1344 KB)
[ 0.000000] .data : 0xffff0000091b0000 - 0xffff0000093d4200 ( 2193 KB)
[ 0.000000] .bss : 0xffff0000093d4200 - 0xffff000009502164 ( 1208 KB)
[ 0.000000] fixed : 0xffff7fdffe7d0000 - 0xffff7fdffec00000 ( 4288 KB)
[ 0.000000] PCI I/O : 0xffff7fdffee00000 - 0xffff7fdfffe00000 ( 16 MB)
[ 0.000000] vmemmap : 0xffff7fe000000000 - 0xffff800000000000 ( 128 GB maximum)
[ 0.000000] 0xffff7fe000004000 - 0xffff7fe0001e0000 ( 1 MB actual)
[ 0.000000] memory : 0xffff800001000000 - 0xffff800078000000 ( 1904 MB)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[ 0.000000] Hierarchical RCU implementation.
[ 0.000000] Build-time adjustment of leaf fanout to 64.
[ 0.000000] RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=4.
[ 0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=64, nr_cpu_ids=4
[ 0.000000] NR_IRQS:64 nr_irqs:64 0
[ 0.000000] GIC: Using split EOI/Deactivate mode
[ 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.000002] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[ 0.000210] Console: colour dummy device 80x25
[ 0.000226] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[ 0.000233] pid_max: default: 32768 minimum: 301
[ 0.000559] Security Framework initialized
[ 0.000566] Yama: becoming mindful.
[ 0.000633] Mount-cache hash table entries: 8192 (order: 0, 65536 bytes)
[ 0.000639] Mountpoint-cache hash table entries: 8192 (order: 0, 65536 bytes)
[ 0.001377] ftrace: allocating 38642 entries in 10 pages
[ 0.043739] ASID allocator initialised with 65536 entries
[ 0.045596] EFI services will not be available.
[ 0.045754] smp: Bringing up secondary CPUs ...
[ 0.046601] Detected VIPT I-cache on CPU1
[ 0.046648] CPU1: Booted secondary processor [410fd034]
[ 0.047486] Detected VIPT I-cache on CPU2
[ 0.047504] CPU2: Booted secondary processor [410fd034]
[ 0.048326] Detected VIPT I-cache on CPU3
[ 0.048343] CPU3: Booted secondary processor [410fd034]
[ 0.048376] smp: Brought up 1 node, 4 CPUs
[ 0.048388] SMP: Total of 4 processors activated.
[ 0.048393] CPU features: detected feature: 32-bit EL0 Support
[ 0.048423] CPU: All CPU(s) started at EL2
[ 0.049799] devtmpfs: initialized
[ 0.052057] DMI not present or invalid.
[ 0.052186] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.052199] futex hash table entries: 1024 (order: 1, 131072 bytes)
[ 0.054268] pinctrl core: initialized pinctrl subsystem
[ 0.055055] NET: Registered protocol family 16
[ 0.055809] cpuidle: using governor ladder
[ 0.055933] cpuidle: using governor menu
[ 0.056276] vdso: 2 pages (1 code @ ffff000008b80000, 1 data @ ffff0000091d0000)
[ 0.056282] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[ 0.057057] DMA: preallocated 256 KiB pool for atomic allocations
[ 0.057302] Serial: AMBA PL011 UART driver
[ 0.064910] HugeTLB registered 2 MB page size, pre-allocated 0 pages
[ 0.064918] HugeTLB registered 512 MB page size, pre-allocated 0 pages
[ 0.065707] ACPI: Interpreter disabled.
[ 0.066504] vgaarb: loaded
[ 0.066992] SCSI subsystem initialized
[ 0.067329] usbcore: registered new interface driver usbfs
[ 0.067353] usbcore: registered new interface driver hub
[ 0.067384] usbcore: registered new device driver usb
[ 0.067653] dmi: Firmware registration failed.
[ 0.068269] NetLabel: Initializing
[ 0.068272] NetLabel: domain hash size = 128
[ 0.068275] NetLabel: protocols = UNLABELED CIPSOv4 CALIPSO
[ 0.068322] NetLabel: unlabeled traffic allowed by default
[ 0.068555] clocksource: Switched to clocksource arch_sys_counter
[ 0.122646] VFS: Disk quotas dquot_6.6.0
[ 0.122729] VFS: Dquot-cache hash table entries: 8192 (order 0, 65536 bytes)
[ 0.123141] pnp: PnP ACPI: disabled
[ 0.126818] NET: Registered protocol family 2
[ 0.127202] TCP established hash table entries: 16384 (order: 1, 131072 bytes)
[ 0.127285] TCP bind hash table entries: 16384 (order: 2, 262144 bytes)
[ 0.127567] TCP: Hash tables configured (established 16384 bind 16384)
[ 0.127641] UDP hash table entries: 2048 (order: 0, 65536 bytes)
[ 0.127701] UDP-Lite hash table entries: 2048 (order: 0, 65536 bytes)
[ 0.127892] NET: Registered protocol family 1
[ 0.128170] RPC: Registered named UNIX socket transport module.
[ 0.128174] RPC: Registered udp transport module.
[ 0.128177] RPC: Registered tcp transport module.
[ 0.128180] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.128313] Unpacking initramfs...
[ 0.242122] Freeing initrd memory: 3712K
[ 0.242532] hw perfevents: enabled with armv8_cortex_a53 PMU driver, 7 counters available
[ 0.242668] kvm [1]: 8-bit VMID
[ 0.242672] kvm [1]: IDMAP page: 1b50000
[ 0.242675] kvm [1]: HYP VA range: 800000000000:ffffffffffff
[ 0.242854] kvm [1]: Hyp mode initialized successfully
[ 0.242871] kvm [1]: GICV region size/alignment is unsafe, using trapping (reduced performance)
[ 0.242901] kvm [1]: vgic-v2@c4304000
[ 0.242960] kvm [1]: vgic interrupt IRQ1
[ 0.242969] kvm [1]: virtual timer IRQ4
[ 0.288512] workingset: timestamp_bits=46 max_order=15 bucket_order=0
[ 0.291788] zbud: loaded
[ 0.293728] NFS: Registering the id_resolver key type
[ 0.293771] Key type id_resolver registered
[ 0.293774] Key type id_legacy registered
[ 0.293783] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[ 0.293905] SGI XFS with ACLs, security attributes, no debug enabled
[ 0.305611] NET: Registered protocol family 38
[ 0.305722] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 247)
[ 0.305789] io scheduler noop registered
[ 0.305793] io scheduler deadline registered
[ 0.305839] io scheduler cfq registered (default)
[ 0.305843] io scheduler mq-deadline registered
[ 0.305992] atomic64_test: passed
[ 0.308406] ipmi message handler version 39.2
[ 0.311107] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[ 0.311989] c81004c0.serial: ttyAML0 at MMIO 0xc81004c0 (irq = 11, base_baud = 1500000) is a meson_uart
[ 1.034718] console [ttyAML0] enabled
[ 1.038536] msm_serial: driver initialized
[ 1.044731] libphy: Fixed MDIO Bus: probed
[ 1.047227] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 1.052956] ehci-pci: EHCI PCI platform driver
[ 1.057321] ehci-platform: EHCI generic platform driver
[ 1.062539] ehci-msm: Qualcomm On-Chip EHCI Host Controller
[ 1.068033] tegra-ehci: Tegra EHCI driver
[ 1.072052] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 1.078092] ohci-pci: OHCI PCI platform driver
[ 1.082516] ohci-platform: OHCI generic platform driver
[ 1.087704] uhci_hcd: USB Universal Host Controller Interface driver
[ 1.094190] usbcore: registered new interface driver uas
[ 1.099248] usbcore: registered new interface driver usb-storage
[ 1.105183] usbcore: registered new interface driver ums-alauda
[ 1.111054] usbcore: registered new interface driver ums-cypress
[ 1.117000] usbcore: registered new interface driver ums-datafab
[ 1.122956] usbcore: registered new interface driver ums_eneub6250
[ 1.129080] usbcore: registered new interface driver ums-freecom
[ 1.135026] usbcore: registered new interface driver ums-isd200
[ 1.140897] usbcore: registered new interface driver ums-jumpshot
[ 1.146928] usbcore: registered new interface driver ums-karma
[ 1.152713] usbcore: registered new interface driver ums-onetouch
[ 1.158754] usbcore: registered new interface driver ums-realtek
[ 1.164696] usbcore: registered new interface driver ums-sddr09
[ 1.170567] usbcore: registered new interface driver ums-sddr55
[ 1.176426] usbcore: registered new interface driver ums-usbat
[ 1.182249] usbcore: registered new interface driver usbserial
[ 1.187985] usbcore: registered new interface driver usbserial_generic
[ 1.194459] usbserial: USB Serial support registered for generic
[ 1.200905] mousedev: PS/2 mouse device common for all mice
[ 1.207242] device-mapper: uevent: version 1.0.3
[ 1.210667] device-mapper: ioctl: 4.35.0-ioctl (2016-06-23) initialised: dm-devel@redhat.com
[ 1.219307] sdhci: Secure Digital Host Controller Interface driver
[ 1.224971] sdhci: Copyright(c) Pierre Ossman
[ 1.229547] Synopsys Designware Multimedia Card Interface Driver
[ 1.235814] meson-gx-mmc d0074000.mmc: allocated mmc-pwrseq
[ 1.298913] sdhci-pltfm: SDHCI platform and OF driver helper
[ 1.299420] ledtrig-cpu: registered to indicate activity on CPUs
[ 1.305118] dmi-sysfs: dmi entry is absent.
[ 1.310198] hidraw: raw HID events driver (C) Jiri Kosina
[ 1.316519] usbcore: registered new interface driver usbhid
[ 1.319888] usbhid: USB HID core driver
[ 1.323870] platform-mhu c883c404.mailbox: Platform MHU Mailbox registered
[ 1.331015] drop_monitor: Initializing network drop monitor service
[ 1.336916] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 1.341971] Initializing XFRM netlink socket
[ 1.346559] NET: Registered protocol family 10
[ 1.357091] Segment Routing with IPv6
[ 1.357158] mip6: Mobile IPv6
[ 1.358060] NET: Registered protocol family 17
[ 1.362527] Key type dns_resolver registered
[ 1.367108] registered taskstats version 1
[ 1.370823] zswap: loaded using pool lzo/zbud
[ 1.411005] Key type big_key registered
[ 1.415972] Key type encrypted registered
[ 1.419756] dwc2 c9000000.usb: c9000000.usb supply vusb_d not found, using dummy regulator
[ 1.422568] dwc2 c9000000.usb: c9000000.usb supply vusb_a not found, using dummy regulator
[ 1.431893] phy phy-c0000000.phy.0: USB ID detect failed!
[ 1.436089] phy phy-c0000000.phy.0: phy poweron failed --> -22
[ 1.441951] dwc2: probe of c9000000.usb failed with error -22
[ 1.447988] dwc2 c9100000.usb: c9100000.usb supply vusb_d not found, using dummy regulator
[ 1.455780] dwc2 c9100000.usb: c9100000.usb supply vusb_a not found, using dummy regulator
[ 1.598708] dwc2 c9100000.usb: DWC OTG Controller
[ 1.598862] dwc2 c9100000.usb: new USB bus registered, assigned bus number 1
[ 1.604770] dwc2 c9100000.usb: irq 21, io mem 0xc9100000
[ 1.610181] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[ 1.616746] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 1.623912] usb usb1: Product: DWC OTG Controller
[ 1.628567] usb usb1: Manufacturer: Linux 4.11.0-rc1-1-ARCH dwc2_hsotg
[ 1.635031] usb usb1: SerialNumber: c9100000.usb
[ 1.639844] hub 1-0:1.0: USB hub found
[ 1.643325] hub 1-0:1.0: 1 port detected
[ 1.648058] meson-gx-mmc d0072000.mmc: Got CD GPIO
[ 1.710159] scpi_protocol scpi: SCP Protocol 0.0 Firmware 0.0.0 version
[ 1.714748] hctosys: unable to open rtc device (rtc0)
[ 1.716346] VCC1V8: disabling
[ 1.719127] VCC3V3: disabling
[ 1.722041] USB_OTG_PWR: disabling
[ 1.731615] Freeing unused kernel memory: 1344K
:: running early hook [udev]
Warning: /lib/modules/4.11.0-rc1-1-ARCH/modules.devname not found - ignoring
[ 1.764205] random: systemd-tmpfile: uninitialized urandom read (16 bytes read)
starting version 232
:: running hook [udev]
:: Triggering uevents...
[ 1.772423] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[ 1.778412] random: udevadm: uninitialized urandom read (16 bytes read)
[ 1.778628] random: udevadm: uninitialized urandom read (16 bytes read)
[ 1.792559] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[ 1.831044] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[ 1.832571] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[ 1.839725] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[ 1.848030] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[ 1.848159] random: udevadm: uninitialized urandom read (16 bytes read)
[ 1.912058] mmc1: new high speed SDHC card at address aaaa
[ 1.912529] mmcblk1: mmc1:aaaa SL08G 7.40 GiB
[ 1.926963] mmcblk1: p1
:: performing fsck on '/dev/mmcblk1p1'
/dev/mmcblk1p1: clean, 34306/485760 files, 293454/1940224 blocks
:: mounting '/dev/mmcblk1p1' on real root
[ 2.675436] EXT4-fs (mmcblk1p1): mounted filesystem with ordered data mode. Opts: (null)
:: running cleanup hook [udev]
[ 2.695422] random: fast init done
[ 3.065445] systemd[1]: System time before build time, advancing clock.
[ 3.115882] systemd[1]: systemd 232 running in system mode. (+PAM -AUDIT -SELINUX -IMA -APPARMOR +SMACK -SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD +IDN)
[ 3.128531] systemd[1]: Detected architecture arm64.

Welcome to Arch Linux ARM!

[ 3.159331] systemd[1]: Set hostname to <alarm>.
[ 3.489940] systemd[1]: Reached target Swap.
[ OK ] Reached target Swap.
[ 3.520997] systemd[1]: Listening on Process Core Dump Socket.
[ OK ] Listening on Process Core Dump Socket.
[ 3.548766] systemd[1]: Listening on Journal Socket.
[ OK ] Listening on Journal Socket.
[ 3.578678] systemd[1]: Listening on udev Kernel Socket.
[ OK ] Listening on udev Kernel Socket.
[ 3.608660] systemd[1]: Listening on Journal Socket (/dev/log).
[ OK ] Listening on Journal Socket (/dev/log).
[ 3.638606] systemd[1]: Reached target Remote File Systems.
[ OK ] Reached target Remote File Systems.
[ 3.668684] systemd[1]: Listening on udev Control Socket.
[ OK ] Listening on udev Control Socket.
[ OK ] Set up automount Arbitrary Executab…rmats File System Automount Point.
[ OK ] Listening on Network Service Netlink Socket.
[ OK ] Listening on Device-mapper event daemon FIFOs.
[ OK ] Listening on /dev/initctl Compatibility Named Pipe.
[ OK ] Listening on LVM2 metadata daemon socket.
[ OK ] Created slice System Slice.
Mounting Temporary Directory...
[ OK ] Created slice system-serial\x2dgetty.slice.
Starting Create list of required st…ce nodes for the current kernel...
Mounting Huge Pages File System...
Starting Remount Root and Kernel File Systems...
Mounting Debug File System...
[ OK ] Created slice system-getty.slice.
Mounting Configuration File System...
[ OK ] Started Forward Password Requests to Wall Directory Watch.
Mounting POSIX Message Queue File System...
[ OK ] Started Dispatch Password Requests to Console Directory Watch.
[ OK ] Reached target Paths.
[ OK ] Reached target Encrypted Volumes.
Starting Apply Kernel Variables...
Starting Journal Service...
[ OK ] Created slice User and Session Slice.
[ 4.427568] systemd-journald[249]: File /var/log/journal/a225065cbb774bb7921270f1bcae6495/system.journal corrupted or uncleanly shut down, renaming and replacing.
[ OK ] Reached target Slices.
[ OK ] Mounted Temporary Directory.
[ OK ] Mounted POSIX Message Queue File System.
[ OK ] Mounted Configuration File System.
[ OK ] Mounted Debug File System.
[ OK ] Mounted Huge Pages File System.
[ OK ] Started Create list of required sta…vice nodes for the current kernel.
[ OK ] Started Remount Root and Kernel File Systems.
[ OK ] Started Apply Kernel Variables.
[ OK ] Started Journal Service.
Starting Create System Users...
Starting Load/Save Random Seed...
Starting udev Coldplug all Devices...
Starting Flush Journal to Persistent Storage...
[ OK ] Started Create System Users.
[ OK ] Started Load/Save Random Seed.
Starting Create Static Device Nodes in /dev...
[ 4.989617] systemd-journald[249]: Received request to flush runtime journal from PID 1
[ OK ] Started udev Coldplug all Devices.
[ OK ] Started Flush Journal to Persistent Storage.
[ OK ] Started Create Static Device Nodes in /dev.
Starting udev Kernel Device Manager...
[ OK ] Reached target Local File Systems (Pre).
[ OK ] Reached target Local File Systems.
Starting Rebuild Journal Catalog...
Starting Rebuild Dynamic Linker Cache...
Starting Create Volatile Files and Directories...
[ OK ] Started Create Volatile Files and Directories.
Starting Network Time Synchronization...
Starting Update UTMP about System Boot/Shutdown...
[ OK ] Started Rebuild Journal Catalog.
[ OK ] Started Rebuild Dynamic Linker Cache.
Starting Update is Completed...
[ OK ] Started Update UTMP about System Boot/Shutdown.
[ OK ] Started Update is Completed.
[ OK ] Started Network Time Synchronization.
[ OK ] Reached target System Time Synchronized.
[ OK ] Started udev Kernel Device Manager.
[ OK ] Reached target System Initialization.
[ OK ] Started Daily Cleanup of Temporary Directories.
[ OK ] Started Daily verification of password and group files.
[ OK ] Listening on D-Bus System Message Bus Socket.
[ OK ] Reached target Sockets.
[ OK ] Reached target Basic System.
Starting Login Service...
[ OK ] Started D-Bus System Message Bus.
[ 7.501568] pps_core: LinuxPPS API ver. 1 registered
[ 7.501604] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 7.772523] meson-drm d0100000.vpu: No output connector available
[ 7.793685] rc rc0: meson-ir as /devices/platform/soc/c8100000.aobus/c8100580.ir/rc/rc0
[ 7.796036] Registered IR keymap rc-empty
[ 7.800156] input: meson-ir as /devices/platform/soc/c8100000.aobus/c8100580.ir/rc/rc0/input0
[ 7.807979] PTP clock support registered
[ 7.813458] meson-ir c8100580.ir: receiver initialized
[ 7.849682] meson8b-dwmac c9410000.ethernet: PTP uses main clock
[ 7.850046] meson8b-dwmac c9410000.ethernet: no reset control found
[ 7.856831] stmmac - user ID: 0x11, Synopsys ID: 0x37
[ 7.861285] meson8b-dwmac c9410000.ethernet: Ring mode enabled
[ 7.867034] meson8b-dwmac c9410000.ethernet: DMA HW capability register supported
[ 7.874475] meson8b-dwmac c9410000.ethernet: Normal descriptors
[ 7.880326] meson8b-dwmac c9410000.ethernet: RX Checksum Offload Engine supported
[ 7.887733] meson8b-dwmac c9410000.ethernet: COE Type 2
[ 7.892916] meson8b-dwmac c9410000.ethernet: TX Checksum insertion supported
[ 7.899902] meson8b-dwmac c9410000.ethernet: Wake-Up On Lan supported
[ 7.906942] meson8b-dwmac c9410000.ethernet: Enable RX Mitigation via HW Watchdog Timer
[ 7.914674] libphy: stmmac: probed
[ 7.951452] lirc_dev: IR Remote Control driver registered, major 238
[ 7.955784] rc rc0: lirc_dev: driver ir-lirc-codec (meson-ir) registered at minor = 0
[ 7.960053] IR LIRC bridge handler initialized
Starting Network Service...
[ OK ] Started Entropy Harvesting Daemon.
[ OK ] Started Daily rotation of log files.
[ 8.062414] meson8b-dwmac c9410000.ethernet eth0: device MAC address 8f:f3:3a:96:8d:80
[ OK ] Started Daily man-db cache update.
[ OK ] Reached target Timers.
[ 8.159521] RTL8211F Gigabit Ethernet stmmac-0:00: attached PHY driver [RTL8211F Gigabit Ethernet] (mii_bus:phy_addr=stmmac-0:00, irq=-1)
[ OK ] Started Network Service.
[ OK ] Found device /dev/ttyAML0.
[ 8.258633] meson8b-dwmac c9410000.ethernet eth0: PTP not supported by HW
[ 8.260047] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ OK ] Reached target Network.
[ OK ] Started OpenSSH Daemon.
Starting Permit User Sessions...
Starting Network Name Resolution...
[ OK ] Started Permit User Sessions.
[ OK ] Started Login Service.
[ OK ] Started Serial Getty on ttyAML0.
[ OK ] Started Getty on tty1.
[ OK ] Reached target Login Prompts.
[ OK ] Started Network Name Resolution.
[ OK ] Reached target Multi-User System.
[ OK ] Reached target Graphical Interface.
[ 8.764003] random: crng init done

Arch Linux 4.11.0-rc1-1-ARCH (ttyAML0)

alarm login: [ 11.389324] meson8b-dwmac c9410000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[ 11.392300] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready

Arch Linux 4.11.0-rc1-1-ARCH (ttyAML0)

alarm login: root
Password:
Last login: Sat Mar 11 13:18:50 on ttyS0
[root@alarm ~]# uname -a
Linux alarm 4.11.0-rc1-1-ARCH #1 SMP Mon Mar 6 20:33:21 MST 2017 aarch64 GNU/Linux')
ryu
 
Posts: 7
Joined: Thu Oct 13, 2016 7:13 am

Re: C2 Have a 4.x Kernel Yet?

Postby oreggin » Sat May 20, 2017 6:15 am

Can you try it with new 4.12-rc1 kernel?
oreggin
 
Posts: 8
Joined: Fri May 11, 2012 4:20 pm

Re: C2 Have a 4.x Kernel Yet?

Postby ryu » Sun May 28, 2017 2:48 pm

I'm going to try it with the 4.12 kernel once released, but the rc-kernel definitely-probably works, so just go for it.
ryu
 
Posts: 7
Joined: Thu Oct 13, 2016 7:13 am

Re: C2 Have a 4.x Kernel Yet?

Postby tuxx » Sun May 28, 2017 6:01 pm

Doesn't it need a special uboot package?
tuxx
 
Posts: 45
Joined: Thu May 15, 2014 1:07 pm

Re: C2 Have a 4.x Kernel Yet?

Postby tuxx » Wed Jun 07, 2017 9:50 am

I am currently testing on latest archlinuxarm:
$this->bbcode_second_pass_code('', '
pacman -S linux-aarch64-rc
pacman -R uboot-odroid-c2
pacman -S uboot-odroid-c2-mainline')

$this->bbcode_second_pass_code('', '[root@alarm ~]# uname -a
Linux alarm 4.12.0-rc4-1-ARCH #1 SMP Sun Jun 4 19:13:14 MDT 2017 aarch64 GNU/Linux')

I haven't tested any device yet, but I am going to set up an MPD box now to use with my usb dac in order to test usb performance that has many issues with official kernel.

Something I noticed is that there's no boot.ini file. If I create one will it be functional with this kernel?

Many thanks in advance.
tuxx
 
Posts: 45
Joined: Thu May 15, 2014 1:07 pm

Re: C2 Have a 4.x Kernel Yet?

Postby reinhard » Thu Jun 15, 2017 3:27 pm

Not yet fully understood how it works.
But there is something like a compiled boot.ini named boot.scr generated by mkimage
$this->bbcode_second_pass_code('', '
mkimage -A arm -O linux -T script -C none -n "U-Boot boot script" -d boot.txt boot.scr
')
Have been able to compile a kernel by myself and boot it this way.
reinhard
 
Posts: 1
Joined: Thu Jun 15, 2017 1:58 pm

Re: C2 Have a 4.x Kernel Yet?

Postby graysky » Thu Jul 06, 2017 8:02 pm

@tuxx - any luck?
graysky
Developer
 
Posts: 1728
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: C2 Have a 4.x Kernel Yet?

Postby graysky » Fri Jul 07, 2017 7:28 pm

$this->bbcode_second_pass_quote('oreggin', 'H')i,

You can boot linux-aarch64 on C2 with a little trick. First of all, hardkernel's u-boot can't boot vanilla Image, so you should convert it to uImage. After that you should reposition the kernel address from 0x11000000 to 0x1080000:

/boot/make_uImage.sh:
$this->bbcode_second_pass_code('', '
#!/bin/sh
address_uImage='0x1080000'
address_uInitrd='0x13000000'
version=`cat ../etc/mkinitcpio.d/linux-aarch64.preset | grep ALL_kver | cut -d= -f2 | sed -e 's/\"//g'`
mkimage -A arm64 -O linux -C none -T kernel -a $address_uImage -e $address_uImage -n "uImage-$version" -d Image uImage
mkimage -A arm64 -O linux -C none -T ramdisk -a $address_uInitrd -e $address_uInitrd -n "uInitrd-$version" -d initramfs-linux.img uInitrd
mkimage -A arm64 -O linux -C none -T ramdisk -a $address_uInitrd -e $address_uInitrd -n "uInitrd-$version-fallback" -d initramfs-linux-fallback.img uInitrd-fallback
')

/boot/boot.ini:
$this->bbcode_second_pass_code('', '
setenv bootargs "console=ttyAML0,115200 root=/dev/mmcblk0p2 rootwait rw fsck.fix=yes net.ifnames=0"

setenv loadaddr "0x1080000"
setenv dtb_loadaddr "0x1000000"
setenv initrd_loadaddr "0x13000000"
load mmc 0:1 ${loadaddr} /uImage
load mmc 0:1 ${dtb_loadaddr} /dtbs/amlogic/meson-gxbb-odroidc2.dtb
load mmc 0:1 ${initrd_loadaddr} /uInitrd
fdt addr ${dtb_loadaddr}
bootm ${loadaddr} ${initrd_loadaddr}:${filesize} ${dtb_loadaddr}
')

This work for me:

$this->bbcode_second_pass_code('', '
[oreggin@odroid-c2 ~]$ uname -a
Linux odroid-c2 4.10.1-1-ARCH #1 SMP Sun Feb 26 18:30:04 MST 2017 aarch64 GNU/Linux
[oreggin@odroid-c2 ~]$ dmesg | head
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.10.1-1-ARCH (builduser@leming) (gcc version 6.3.1 20170109 (GCC) ) #1 SMP Sun Feb 26 18:30:04 MST 2017
[ 0.000000] Boot CPU: AArch64 Processor [410fd034]
[ 0.000000] efi: Getting EFI parameters from FDT:
[ 0.000000] efi: UEFI not found.
[ 0.000000] cma: Reserved 512 MiB at 0x0000000040000000
[ 0.000000] On node 0 totalpages: 30432
[ 0.000000] DMA zone: 30 pages used for memmap
[ 0.000000] DMA zone: 0 pages reserved
[ 0.000000] DMA zone: 30432 pages, LIFO batch:1
[oreggin@odroid-c2 ~]$
')


I did created /boot/make_uImage.sh and your /boot/boot.ini (adjusting root=/dev/mmcblk0p1) to match my system. Next I installed the linux-aarch64 uboot-tools (removing linux-odroid-c2 in the process). Then I ran /boot/make_uImage.sh and rebooted, but got a solid blue and red LED (frozen). Did I miss a step?

$this->bbcode_second_pass_code('', '# /boot/make_uImage.sh
Image Name: uImage-4.12.0-1-ARCH
Created: Fri Jul 7 15:23:31 2017
Image Type: AArch64 Linux Kernel Image (uncompressed)
Data Size: 21758464 Bytes = 21248.50 KiB = 20.75 MiB
Load Address: 01080000
Entry Point: 01080000
Image Name: uInitrd-4.12.0-1-ARCH
Created: Fri Jul 7 15:23:33 2017
Image Type: AArch64 Linux RAMDisk Image (uncompressed)
Data Size: 4198758 Bytes = 4100.35 KiB = 4.00 MiB
Load Address: 13000000
Entry Point: 13000000
Image Name: uInitrd-4.12.0-1-ARCH-fallback
Created: Fri Jul 7 15:23:34 2017
Image Type: AArch64 Linux RAMDisk Image (uncompressed)
Data Size: 13447891 Bytes = 13132.71 KiB = 12.82 MiB
Load Address: 13000000
Entry Point: 13000000
')
graysky
Developer
 
Posts: 1728
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: C2 Have a 4.x Kernel Yet?

Postby graysky » Fri Jul 07, 2017 7:54 pm

$this->bbcode_second_pass_quote('tuxx', 'I') am currently testing on latest archlinuxarm:
$this->bbcode_second_pass_code('', '
pacman -S linux-aarch64-rc
pacman -R uboot-odroid-c2
pacman -S uboot-odroid-c2-mainline')

$this->bbcode_second_pass_code('', '[root@alarm ~]# uname -a
Linux alarm 4.12.0-rc4-1-ARCH #1 SMP Sun Jun 4 19:13:14 MDT 2017 aarch64 GNU/Linux')

I haven't tested any device yet, but I am going to set up an MPD box now to use with my usb dac in order to test usb performance that has many issues with official kernel.

Something I noticed is that there's no boot.ini file. If I create one will it be functional with this kernel?

Many thanks in advance.


I followed your steps (answering "yes" to flash the new U-Boot to /dev/mmcblk0), and successfully booted into 4.12.0-1-ARCH.

$this->bbcode_second_pass_code('', 'pacman -R uboot-odroid-c2
pacman -S uboot-odroid-c2-mainline linux-aarch64')

What is broken that I see thus far:
$this->bbcode_list('1')
  • HDMI output is broken
  • all USB ports are broken
  • CPU governors (ie nothing in /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_frec).
  • haveged is broken (haveged: Couldn't initialize HAVEGE rng 5)
  • systemcd-networkd for bridges doesn't work (for a workaround see: viewtopic.php?f=65&t=11097#p54286)

  • What has changed:
    $this->bbcode_list('2')
  • CPU temp moved from /sys/devices/virtual/thermal/thermal_zone0/temp to /sys/class/hwmon/hwmon0/temp1_input

  • What seems to work:
    $this->bbcode_list('3')
  • Gigabit LAN seems to work (30.8-35.8 MB/s transfers are possible)
  • Linux containers can work again thanks to cgroup2 support in 4.12.x
  • graysky
    Developer
     
    Posts: 1728
    Joined: Sun Jun 26, 2011 6:56 am
    Location: /run/user/1000

    Re: C2 Have a 4.x Kernel Yet?

    Postby campbell » Wed Aug 30, 2017 11:16 pm

    This is working for me too. However, in the Armbian image with the mainline kernel I can get cpufreq working via
    $this->bbcode_second_pass_code('', 'fdt addr 0x1000000; fdt set /scpi/clocks status okay;')
    at the correct place in the boot.ini file. When I add it to boot.txt and run ./mkscr in this image, I get a kernel panic right at the point when it brings up cpufreq at boot. This happens in both the 4.12.7 kernel and the 4.13 RC.

    Any thoughts as to why it works in other mainline kernels but not the one in the Arch repo?

    edit: This is apparently happening because the uboot-odroid-c2-mainline package contains out of date versions of the bl{20,30,301,31} files: https://forum.odroid.com/viewtopic.php? ... 00#p200774
    campbell
     
    Posts: 8
    Joined: Wed Aug 30, 2017 11:13 pm

    Previous

    Return to ARMv8

    Who is online

    Users browsing this forum: No registered users and 7 guests