Odroid C2 mainline kernel support

Moderators: odroid, mdrjr

Odroid C2 mainline kernel support

Unread postby moon.linux » Mon Jul 25, 2016 5:42 pm

Hi All,

We all know Odroid C2 support is being initialized in mainline kernel.
I would like to share the process of build and install the kernel so that developers could contribute to the mainline kernel.

Amlogic have different variant of development boards and rich feature sets of devices.
Hardkernel Odroid C2 is one of the device that have Amlogic S905 ARM 64 bit boards.

Here is the development link of the driver that have being merged http://linux-meson.com/doku.php

List of patches that are being considered. https://patchwork.kernel.org/project/li ... ogic/list/ for merge

So Here is the steps to compile the build and test Linux mainline kernel.
Code: Select all
odroid@odroid64:~$ cd /usr/src/
odroid@odroid64:/usr/src$ git clone  git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git odroidc2-4.y-final

Build the kernel for ARM64 we have currently use defconfig
odroid@odroid64:/usr/src/odroidc2-4.y-final$ cat build_kernelc2.sh
Code: Select all
#Build the kernel using odroidc2 defconfig
#make mrproper
make defconfig
make -j4 dtbs Image modules LOCALVERSION=-xmlc2
make modules_install LOCALVERSION=-xmlc2
mkimage -A arm64 -O linux -T kernel -C none -a 0x1080000 -e 0x1080000 -n linux-next -d arch/arm64/boot/Image uImage


Install the kernel into /media/boot partition

odroid@odroid64:/usr/src/odroidc2-4.y-final$ cat installc2.sh
Code: Select all
#/bin/bash
set +x
kernelversion=`cat ./include/config/kernel.release`
cp -v .config /boot/config-$kernelversion
echo "kernel version" $kernelversion
cp -v ./arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dtb /media/boot/meson-gxbb-odroidc2-$kernelversion.dtb
cp -v ./uImage /media/boot/uImage-$kernelversion
cp -v .config /media/boot/config-$kernelversion
sync
#reboot


To test the board is booting on to mainline kernel. We need to stop at the bootlooder prompt and manually start the kernel.
Note: This is testing for new kernel.

Here are the command for testing.
Code: Select all
setenv bootargs "console=ttyAML0,115200"
setenv dtb_mem_addr "0x1000000"
fatload mmc 0:1 $dtb_mem_addr meson-gxbb-odroidc2-4.7.0-xmlc2.dtb
fatload mmc 0:1 0x01080000 uImage-4.7.0-xmlc2
bootm 0x1080000 - $dtb_mem_addr


Note: We can append these command into boot.ini but still some driver are missing to initilaize the mmc an emmc so the rootfs is not getting started.

Code: Select all
U-Boot 2015.01-00126-g8171a45 (Jun 15 2016 - 18:32:37)

DRAM:  2 GiB
Relocation Offset is: 76f3f000
-------------------------------------------------
* Welcome to Hardkernel's ODROID-C2
-------------------------------------------------
CPU : AMLogic S905
S/N : HKC213254DFCEAFA
MAC : 00:1e:06:33:37:7a
BID : HKC2211604
-------------------------------------------------
register usb cfg[1][0] = 0000000077f97de8
register usb cfg[0][1] = 0000000077f97e08
vpu detect type: 5
vpu clk_level = 7
set vpu clk: 666667000Hz, readback: 666660000Hz(0x300)
MMC:   aml_priv->desc_buf = 0x0000000073f37d30
aml_priv->desc_buf = 0x0000000073f39ec0
SDIO Port B: 0, SDIO Port C: 1
ret = 1 .[mmc_init] mmc init success
In:    serial
Out:   serial
Err:   serial
----------------------------------
MMC Size : 32 GB
----------------------------------
reading boot-logo.bmp.gz
** Unable to read file boot-logo.bmp.gz **
reading boot-logo.bmp
** Unable to read file boot-logo.bmp **
movi: the partiton 'logo' is reading...

MMC read: dev # 0, block # 58976, count 4096 ... 4096 blocks read: OK
hpd_state=1
[CANVAS]addr=0x3f800000 width=5760, height=2160

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
odroidc2#
odroidc2#
odroidc2#
odroidc2#
odroidc2#
odroidc2#
odroidc2#setenv bootargs "console=ttyAML0,115200"
odroidc2#setenv dtb_mem_addr "0x1000000"
odroidc2#fatload mmc 0:1 $dtb_mem_addr meson-gxbb-odroidc2-4.7.0-xmlc2.dtb
reading meson-gxbb-odroidc2-4.7.0-xmlc2.dtb
2734 bytes read in 8 ms (333 KiB/s)
odroidc2#fatload mmc 0:1 0x01080000 uImage-4.7.0-xmlc2
reading uImage-4.7.0-xmlc2
12719680 bytes read in 576 ms (21.1 MiB/s)
odroidc2#bootm 0x1080000 - $dtb_mem_addr
ee_gate_off ...
## Booting kernel from Legacy Image at 01080000 ...
   Image Name:   linux-next
   Image Type:   AArch64 Linux Kernel Image (uncompressed)
   Data Size:    12719616 Bytes = 12.1 MiB
   Load Address: 01080000
   Entry Point:  01080000
   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 = 0x01ca1600
   Loading Device Tree to 000000001fffc000, end 000000001ffffaad ... OK

Starting kernel ...

uboot time: 66303293 us
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.7.0-xmlc2 (root@odroid64) (gcc version 5.4.0 20160609 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.1) ) #1 SMP PREEMPT Mon Jul 25 03:22:18 EDT 2016
[    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 16 MiB at 0x0000000077000000
[    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 20 pages/cpu @ffff800076f91000 s42776 r8192 d30952 u81920
[    0.000000] Detected VIPT I-cache on CPU0
[    0.000000] CPU features: enabling workaround for ARM erratum 845719
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 483840
[    0.000000] Kernel command line: console=ttyAML0,115200
[    0.000000] log_buf_len individual max cpu contribution: 4096 bytes
[    0.000000] log_buf_len total cpu_extra contributions: 12288 bytes
[    0.000000] log_buf_len min size: 16384 bytes
[    0.000000] log_buf_len: 32768 bytes
[    0.000000] early log buf free: 14844(90%)
[    0.000000] PID hash table entries: 4096 (order: 3, 32768 bytes)
[    0.000000] Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes)
[    0.000000] Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes)
[    0.000000] software IO TLB [mem 0x70a00000-0x74a00000] (64MB) mapped at [ffff800070a00000-ffff8000749fffff]
[    0.000000] Memory: 1834692K/1966080K available (7620K kernel code, 645K rwdata, 3192K rodata, 960K init, 260K bss, 115004K reserved, 16384K cma-reserved)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     modules : 0xffff000000000000 - 0xffff000008000000   (   128 MB)
[    0.000000]     vmalloc : 0xffff000008000000 - 0xffff7dffbfff0000   (129022 GB)
[    0.000000]       .text : 0xffff000008080000 - 0xffff0000087e0000   (  7552 KB)
[    0.000000]     .rodata : 0xffff0000087e0000 - 0xffff000008b10000   (  3264 KB)
[    0.000000]       .init : 0xffff000008b10000 - 0xffff000008c00000   (   960 KB)
[    0.000000]       .data : 0xffff000008c00000 - 0xffff000008ca1600   (   646 KB)
[    0.000000]        .bss : 0xffff000008ca1600 - 0xffff000008ce2934   (   261 KB)
[    0.000000]     fixed   : 0xffff7dfffe7fd000 - 0xffff7dfffec00000   (  4108 KB)
[    0.000000]     PCI I/O : 0xffff7dfffee00000 - 0xffff7dffffe00000   (    16 MB)
[    0.000000]     vmemmap : 0xffff7e0000000000 - 0xffff800000000000   (  2048 GB maximum)
[    0.000000]               0xffff7e0000000000 - 0xffff7e0001e00000   (    30 MB actual)
[    0.000000]     memory  : 0xffff800000000000 - 0xffff800078000000   (  1920 MB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000]  Build-time adjustment of leaf fanout to 64.
[    0.000000]  RCU restricting CPUs from NR_CPUS=64 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] 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.000003] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.000084] Console: colour dummy device 80x25
[    0.000100] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=96000)
[    0.000107] pid_max: default: 32768 minimum: 301
[    0.000149] Security Framework initialized
[    0.000175] Mount-cache hash table entries: 4096 (order: 3, 32768 bytes)
[    0.000180] Mountpoint-cache hash table entries: 4096 (order: 3, 32768 bytes)
[    0.000742] ASID allocator initialised with 65536 entries
[    0.024120] EFI services will not be available.
[    0.048698] Detected VIPT I-cache on CPU1
[    0.048731] CPU1: Booted secondary processor [410fd034]
[    0.064698] Detected VIPT I-cache on CPU2
[    0.064714] CPU2: Booted secondary processor [410fd034]
[    0.080713] Detected VIPT I-cache on CPU3
[    0.080728] CPU3: Booted secondary processor [410fd034]
[    0.080758] Brought up 4 CPUs
[    0.080771] SMP: Total of 4 processors activated.
[    0.080775] CPU features: detected feature: 32-bit EL0 Support
[    0.080781] CPU: All CPU(s) started at EL2
[    0.080794] alternatives: patching kernel code
[    0.081450] devtmpfs: initialized
[    0.082012] DMI not present or invalid.
[    0.082126] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.082450] pinctrl core: initialized pinctrl subsystem
[    0.083131] NET: Registered protocol family 16
[    0.092134] cpuidle: using governor menu
[    0.092209] vdso: 2 pages (1 code @ ffff0000087e6000, 1 data @ ffff000008c04000)
[    0.092219] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[    0.092688] DMA: preallocated 256 KiB pool for atomic allocations
[    0.092815] Serial: AMBA PL011 UART driver
[    0.109087] HugeTLB registered 2 MB page size, pre-allocated 0 pages
[    0.109550] ACPI: Interpreter disabled.
[    0.109820] vgaarb: loaded
[    0.109968] SCSI subsystem initialized
[    0.110235] usbcore: registered new interface driver usbfs
[    0.110267] usbcore: registered new interface driver hub
[    0.110308] usbcore: registered new device driver usb
[    0.110476] pps_core: LinuxPPS API ver. 1 registered
[    0.110480] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.110497] PTP clock support registered
[    0.110586] dmi: Firmware registration failed.
[    0.110667] Advanced Linux Sound Architecture Driver Initialized.
[    0.111125] clocksource: Switched to clocksource arch_sys_counter
[    0.111199] VFS: Disk quotas dquot_6.6.0
[    0.111232] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[    0.111389] pnp: PnP ACPI: disabled
[    0.115702] NET: Registered protocol family 2
[    0.116029] TCP established hash table entries: 16384 (order: 5, 131072 bytes)
[    0.116117] TCP bind hash table entries: 16384 (order: 6, 262144 bytes)
[    0.116300] TCP: Hash tables configured (established 16384 bind 16384)
[    0.116364] UDP hash table entries: 1024 (order: 3, 32768 bytes)
[    0.116396] UDP-Lite hash table entries: 1024 (order: 3, 32768 bytes)
[    0.116503] NET: Registered protocol family 1
[    0.116643] RPC: Registered named UNIX socket transport module.
[    0.116647] RPC: Registered udp transport module.
[    0.116650] RPC: Registered tcp transport module.
[    0.116652] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.116943] hw perfevents: enabled with armv8_cortex_a53 PMU driver, 7 counters available
[    0.117448] kvm [1]: 8-bit VMID
[    0.117452] kvm [1]: Hyp mode initialized successfully
[    0.117482] kvm [1]: vgic-v2@c4304000
[    0.117502] kvm [1]: vgic interrupt IRQ1
[    0.117551] kvm [1]: virtual timer IRQ4
[    0.118516] futex hash table entries: 1024 (order: 5, 131072 bytes)
[    0.118582] audit: initializing netlink subsys (disabled)
[    0.118629] audit: type=2000 audit(0.108:1): initialized
[    0.118988] workingset: timestamp_bits=44 max_order=19 bucket_order=0
[    0.124925] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.125427] NFS: Registering the id_resolver key type
[    0.125455] Key type id_resolver registered
[    0.125458] Key type id_legacy registered
[    0.125580] fuse init (API version 7.25)
[    0.125856] 9p: Installing v9fs 9p2000 file system support
[    0.127306] io scheduler noop registered
[    0.127425] io scheduler cfq registered (default)
[    0.128949] xenfs: not registering filesystem on non-xen platform
[    0.130816] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    0.131723] SuperH (H)SCI(F) driver initialized
[    0.131861] c81004c0.serial: ttyAML0 at MMIO 0xc81004c0 (irq = 10, base_baud = 1500000) is a meson_uart
[    0.843567] console [ttyAML0] enabled
[    0.847470] msm_serial: driver initialized
[    0.851428] Unable to detect cache hierarchy from DT for CPU 0
[    0.859828] loop: module loaded
[    0.861058] tun: Universal TUN/TAP device driver, 1.6
[    0.865108] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
[    0.871428] e1000e: Intel(R) PRO/1000 Network Driver - 3.2.6-k
[    0.877021] e1000e: Copyright(c) 1999 - 2015 Intel Corporation.
[    0.882907] igb: Intel(R) Gigabit Ethernet Network Driver - version 5.3.0-k
[    0.889765] igb: Copyright (c) 2007-2014 Intel Corporation.
[    0.895315] igbvf: Intel(R) Gigabit Virtual Function Network Driver - version 2.0.2-k
[    0.903048] igbvf: Copyright (c) 2009 - 2012 Intel Corporation.
[    0.908940] sky2: driver version 1.30
[    0.912761] VFIO - User Level meta-driver version: 0.3
[    0.918135] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.924098] ehci-pci: EHCI PCI platform driver
[    0.928534] ehci-platform: EHCI generic platform driver
[    0.933703] ehci-msm: Qualcomm On-Chip EHCI Host Controller
[    0.939214] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.945321] ohci-pci: OHCI PCI platform driver
[    0.949736] ohci-platform: OHCI generic platform driver
[    0.954978] usbcore: registered new interface driver usb-storage
[    0.961254] mousedev: PS/2 mouse device common for all mice
[    0.966696] i2c /dev entries driver
[    0.970356] sdhci: Secure Digital Host Controller Interface driver
[    0.975964] sdhci: Copyright(c) Pierre Ossman
[    0.980264] Synopsys Designware Multimedia Card Interface Driver
[    0.986331] sdhci-pltfm: SDHCI platform and OF driver helper
[    0.991978] ledtrig-cpu: registered to indicate activity on CPUs
[    0.998137] usbcore: registered new interface driver usbhid
[    1.003274] usbhid: USB HID core driver
[    1.007933] NET: Registered protocol family 17
[    1.011524] 9pnet: Installing 9P2000 support
[    1.015741] Key type dns_resolver registered
[    1.020254] registered taskstats version 1
[    1.024148] hctosys: unable to open rtc device (rtc0)
[    1.029046] ALSA device list:
[    1.031905]   No soundcards found.
[    1.041000] VFS: Cannot open root device "(null)" or unknown-block(0,0): error -6
[    1.042818] Please append a correct "root=" boot option; here are the available partitions:
[    1.051116] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[    1.059294] CPU: 2 PID: 1 Comm: swapper/0 Not tainted 4.7.0-xmlc2 #1
[    1.065588] Hardware name: Hardkernel ODROID-C2 (DT)
[    1.070504] Call trace:
[    1.072927] [<ffff000008088948>] dump_backtrace+0x0/0x1a8
[    1.078269] [<ffff000008088b04>] show_stack+0x14/0x20
[    1.083273] [<ffff000008346454>] dump_stack+0x94/0xb8
[    1.088276] [<ffff000008154334>] panic+0x10c/0x250
[    1.093020] [<ffff000008b110f8>] mount_block_root+0x188/0x260
[    1.098709] [<ffff000008b112ec>] mount_root+0x11c/0x134
[    1.103885] [<ffff000008b11440>] prepare_namespace+0x13c/0x184
[    1.109663] [<ffff000008b10d30>] kernel_init_freeable+0x1c4/0x1e8
[    1.115702] [<ffff0000087c1568>] kernel_init+0x10/0x100
[    1.120876] [<ffff000008084e90>] ret_from_fork+0x10/0x40
[    1.126135] SMP: stopping secondary CPUs
[    1.130019] Kernel Offset: disabled
[    1.133466] Memory Limit: none
[    1.136489] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)


Please let us know if their is some driver we could port and contribute to mainline kernel. :D
moon.linux
 
Posts: 1056
Joined: Thu Oct 02, 2014 11:42 pm
languages_spoken: english

Re: Odroid C2 mainline kernel support

Unread postby crossover » Mon Jul 25, 2016 5:47 pm

Seems to be very relevant to this thread.
viewtopic.php?f=138&t=20869

Anyway if the SD/eMMC and Gbit Ethernet works stably, we can use the Kernel 4.7 for many headless applications at least.
crossover
 
Posts: 112
Joined: Wed Jul 22, 2015 2:23 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, USB-IO, HC2, Tinkering kits

Re: Odroid C2 mainline kernel support

Unread postby moon.linux » Mon Jul 25, 2016 6:20 pm

Sorry I did not now about other thread.

Great that TFTP boot is working well it's make development process much easy.
Thanks you very much. I will give this a try.
moon.linux
 
Posts: 1056
Joined: Thu Oct 02, 2014 11:42 pm
languages_spoken: english

Re: Odroid C2 mainline kernel support

Unread postby brad » Mon Jul 25, 2016 10:09 pm

moon.linux wrote:To test the board is booting on to mainline kernel. We need to stop at the bootlooder prompt and manually start the kernel.
Note: This is testing for new kernel.

Here are the command for testing.


Very nice you have the 4.x kernel booting from the standard hardkernel u-boot using bootm! :D I have been trying for a while now and failed to overcome the segmentation fault. Appears you have aligned everything in memory to work correctly and boot using bootm :)
brad
 
Posts: 686
Joined: Tue Mar 29, 2016 1:22 pm
Location: Australia
languages_spoken: english
ODROIDs: C2

Re: Odroid C2 mainline kernel support

Unread postby moon.linux » Mon Jul 25, 2016 10:39 pm

I am just closely following your other thread to make the kernel boot up. You have also done some excellent job in sharing your work.
moon.linux
 
Posts: 1056
Joined: Thu Oct 02, 2014 11:42 pm
languages_spoken: english

Re: Odroid C2 mainline kernel support

Unread postby swiftmas » Tue Jul 26, 2016 4:37 am

Oh wow, so once tested this will be the new standard kernel for the C2? I know right now it is on 3.14LTS I think.
swiftmas
 
Posts: 42
Joined: Sat Jun 11, 2016 1:12 am
languages_spoken: english
ODROIDs: c2

Re: Odroid C2 mainline kernel support

Unread postby endecotp » Tue Jul 26, 2016 5:25 am

swiftmas wrote:Oh wow, so once tested this will be the new standard kernel for the C2?


No. It has only a few of the required drivers - nothing at all related to graphics, for example.
endecotp
 
Posts: 228
Joined: Sun May 08, 2016 12:30 am
languages_spoken: english
ODROIDs: c2

Re: Odroid C2 mainline kernel support

Unread postby swiftmas » Tue Jul 26, 2016 5:31 am

(#noobmoment) dang wishful thinking.
swiftmas
 
Posts: 42
Joined: Sat Jun 11, 2016 1:12 am
languages_spoken: english
ODROIDs: c2

Re: Odroid C2 mainline kernel support

Unread postby afremont » Tue Jul 26, 2016 10:04 am

Do you know if amlogic plans to support version 4?

This is the one thing that I dislike about these SBC platforms, manufacturers want to keep everything a secret. I long for the days when manufacturers documented everything and publicized it.

I really don't see the threat from people simply knowing how to use the capabilities of their systems. It doesn't seem to me that it would make it easier to produce knockoffs, from people knowing how to use the parts.

Anyone desperate enough can reverse engineer the code from an end product. In fact, that's how many things are done in the Linux world, or at least used to be. I suspect that still applies.

I'm of the opinion that if manufacturer fully opened up on a chipset, that they'd gain a lot of marketshare. Take ARM for example. They opened up and now virtually dominate the market.


Sent from my M470BSA using Tapatalk
afremont
 
Posts: 128
Joined: Sun Mar 08, 2015 12:58 am
languages_spoken: english

Re: Odroid C2 mainline kernel support

Unread postby moon.linux » Tue Jul 26, 2016 12:14 pm

Amlogic Kernel maintainer Carlo Caione (carlo at caione.org) and Kevin Hilman (khilman @ baylibre.com) could share us more in sites on the future plans.

But this gives developers excellent change to understand the protocol and reverse engineer the drivers and help build test and kernel.
Mainline kernel development is pretty slow we need to keep track on patches from developers for particular Arch. http://lists.infradead.org/mailman/list ... ux-amlogic Mailing list.

I would like to see developers contributing to the mainline kernel and help build this product.
moon.linux
 
Posts: 1056
Joined: Thu Oct 02, 2014 11:42 pm
languages_spoken: english

Re: Odroid C2 mainline kernel support

Unread postby Raybuntu » Tue Jul 26, 2016 5:10 pm

I don't think any drivers need to be reverse engineered. All drivers are already there and released as GPL. Amlogic is just doing things differently and not the "proper" way. I guess a lot would help if Amlogic would give public access to their git.
They are releasing their code without any git commit history.
BTC: 12zLUYC7JzwM7a8cQKekAvZr9kWxjzTfxm
Raybuntu
 
Posts: 1242
Joined: Mon Nov 30, 2015 4:23 pm
languages_spoken: english, german
ODROIDs: C1+, C2

Re: Odroid C2 mainline kernel support

Unread postby brad » Tue Jul 26, 2016 5:33 pm

moon.linux wrote:I would like to see developers contributing to the mainline kernel and help build this product


I have a few points to get things rolling...

What have I tested successfully running various versions of 4.7...

- Ethernet (possible issues with gigabit Ethernet driver - workaround is to use a 100Mib switch)
- Kernel compilations with no problems. CPU temps stayed low & no problems maxing out 4 cpus. Same thing with an attempted compile of gcc 6.1, system was loaded for 6 hours straight before compile error on 3rd stage.
- Testing with root filesystem mounted from NFS & also sdcard (with early development driver)
- Openssl benchmarks and comparisons - both kernels perform approximately equal and both can take advantage of the neon instructions in the cpu's.
- CRC32 optional driver for arm64 is present in the 4.7 kernel but I dont believe it is in hardkernel (I need to check this)
- Hardkernel Ubuntu image boots with minimal fuss for a headless setup and others have reported the basic odroidian image working as well
- Console support via UART - make sure its enabled under character device drivers and also console support, no need to pass kernel parameters at boot
- Enabling debug, kernel tests and trace modules. (For large kernels you may need to move the uInitrd to load from a higher address, ive successfully booted 80Mb+ kernels with the uInitrd loaded into uboot at around 0x26000000)
- Native kernel builds on the c2 with gcc lincaro 4.9 & 5.3

Problems
- current u-boot im using is providing random mac address on boot and I get a new IP when rebooting
- Ubuntu resolv is not working so have to manually add the nameservers to the resolver configs

What I want to test....
- Realtime kernel build
- emmc card
- different frequency scaling and governor modes for the cpus and different scheduler setups
- Different memory settings and configurations
- Gigabit ethernet
- SPDIF driver
- random number generator
- cross compile on a x64 using various versions of linaro (4.9, 5.3 & 6.1)
- Native build on c2 using native gcc 6.1 (I haven't been able to build it successfully yet)

What else to test?
- IR driver
- watchdog

My current wishlist :) ...
- USB and regulator support via 1 of the controllers
- Basic HDMI support
- Audio support DIN & DOUT and analog dma support
- amlogic s905 crypto driver
brad
 
Posts: 686
Joined: Tue Mar 29, 2016 1:22 pm
Location: Australia
languages_spoken: english
ODROIDs: C2

Re: Odroid C2 mainline kernel support

Unread postby umiddelb » Sat Jul 30, 2016 6:14 am

Which patches should I apply against mainline in order to get the eMMC/µSD and eth0 up an running?
umiddelb
 
Posts: 438
Joined: Thu Jan 29, 2015 6:42 am
languages_spoken: English, German
ODROIDs: ODROID-C1, ODROID-XU4, ODROID-C2

Re: Odroid C2 mainline kernel support

Unread postby moon.linux » Sat Jul 30, 2016 4:31 pm

Amlogic git tree is maintained by Kevin Hilman. So most of the upstream patches could be found here.

Code: Select all
https://git.kernel.org/cgit/linux/kernel/git/khilman/linux-amlogic.git/
moon.linux
 
Posts: 1056
Joined: Thu Oct 02, 2014 11:42 pm
languages_spoken: english

Re: Odroid C2 mainline kernel support

Unread postby nobe » Sun Jul 31, 2016 4:49 am

here is a message from KH in the linux-amlogic mailing list, which is about sd/mmc initial driver testing
http://lists.infradead.org/pipermail/li ... 00393.html
nobe
 
Posts: 103
Joined: Sun Feb 07, 2016 9:52 pm
languages_spoken: english, french
ODROIDs: Odroid-C2

Re: Odroid C2 mainline kernel support

Unread postby kodiakfi » Thu Aug 04, 2016 4:15 am

I don't have anything useful to add on the technical front as an end user but I wanted to thank everyone who is working on mainline support. I dream of the day I can run Fedora 25 on the C2 unmodified.
kodiakfi
 
Posts: 11
Joined: Thu Jul 28, 2016 4:16 am
languages_spoken: english
ODROIDs: C2

Re: Odroid C2 mainline kernel support

Unread postby umiddelb » Sun Aug 07, 2016 2:55 am

KH's latest kernel boots up fine now (eth0 doesn't need to be bound to 100MB/s any more).
umiddelb
 
Posts: 438
Joined: Thu Jan 29, 2015 6:42 am
languages_spoken: English, German
ODROIDs: ODROID-C1, ODROID-XU4, ODROID-C2

Re: Odroid C2 mainline kernel support

Unread postby korken » Fri Aug 19, 2016 12:33 am

For the uninitiated, what are the improvements for switching to the mainline kernel? :)
korken
 
Posts: 29
Joined: Thu Mar 31, 2016 12:36 am
languages_spoken: english
ODROIDs: C2

Re: Odroid C2 mainline kernel support

Unread postby moon.linux » Fri Aug 19, 2016 1:06 am

korken wrote:For the uninitiated, what are the improvements for switching to the mainline kernel? :)


Stability, Efficiency and tons of features which keep on improving day by day.
moon.linux
 
Posts: 1056
Joined: Thu Oct 02, 2014 11:42 pm
languages_spoken: english

Re: Odroid C2 mainline kernel support

Unread postby xxxbugxxxx » Sat Aug 20, 2016 1:26 pm

umiddelb wrote:KH's latest kernel boots up fine now (eth0 doesn't need to be bound to 100MB/s any more).


Can I just use current odroibian build and compile the 4.7 from there? will that work?

Is usb working?
Thank you
xxxbugxxxx
 
Posts: 10
Joined: Thu May 05, 2016 5:50 pm
languages_spoken: english
ODROIDs: c2

Re: Odroid C2 mainline kernel support

Unread postby Raybuntu » Sat Aug 20, 2016 4:12 pm

Sure you can. But alot is still not working.
BTC: 12zLUYC7JzwM7a8cQKekAvZr9kWxjzTfxm
Raybuntu
 
Posts: 1242
Joined: Mon Nov 30, 2015 4:23 pm
languages_spoken: english, german
ODROIDs: C1+, C2

Re: Odroid C2 mainline kernel support

Unread postby memeka » Sat Aug 20, 2016 4:33 pm

xxxbugxxxx wrote:
umiddelb wrote:KH's latest kernel boots up fine now (eth0 doesn't need to be bound to 100MB/s any more).


Can I just use current odroibian build and compile the 4.7 from there? will that work?

Is usb working?
Thank you


4.7 - USB is not working, SD-card or eMMC is not working. just cpu boot and network filesystem.
next: 4.8 - SD-card and (maybe) eMMC support is added. still no USB.
User avatar
memeka
 
Posts: 3889
Joined: Mon May 20, 2013 10:22 am
languages_spoken: english
ODROIDs: XU rev2 + eMMC + UART
U3 + eMMC + IO Shield + UART

Re: Odroid C2 mainline kernel support

Unread postby KARL23 » Tue Aug 30, 2016 12:02 am

A working mainline kernel is there:

https://github.com/xdarklight/linux/tree/meson-gxbb-integration-4.8-20160828

with this patch on top:

Code: Select all
--- meson-gxbb-odroidc2.dts.orig        2016-08-29 16:42:20.513901550 +0200
+++ meson-gxbb-odroidc2.dts     2016-08-29 12:10:58.111097608 +0200
@@ -112,6 +112,19 @@
                compatible = "mmc-pwrseq-emmc";
                reset-gpios = <&gpio BOOT_9 GPIO_ACTIVE_LOW>;
        };
+
+        usb_vbus: regulator-usb0-vbus {
+               compatible = "regulator-fixed";
+
+               regulator-name = "USB0_VBUS";
+
+               regulator-min-microvolt = <5000000>;
+               regulator-max-microvolt = <5000000>;
+
+               gpio = <&gpio GPIODV_24 GPIO_ACTIVE_HIGH>;
+               enable-active-high;
+        };
+
 };

 &uart_AO {
@@ -162,3 +175,20 @@
        vmmcq-sumpply = <&vcc1v8>;
 };

+&usb0_phy {
+        status = "okay";
+        phy-supply = <&usb_vbus>;
+};
+
+&usb1_phy {
+        status = "okay";
+};
+
+&usb0 {
+        status = "okay";
+};
+
+&usb1 {
+        status = "okay";
+};
+


gives a working 4.8-rc2 kernel with usb,i2c,eth 1G,mmc, etc. So a headless server with mainline kernel works. :)

bye
KARL23
 
Posts: 11
Joined: Sun Jun 26, 2016 10:59 pm
languages_spoken: english
ODROIDs: c1, c2,xu4

Re: Odroid C2 mainline kernel support

Unread postby memeka » Tue Aug 30, 2016 6:14 am

@KARL23 this is very nice.

is HDMI working? what about GPIOs?

And most important - what u-boot are you using?

Thanks!
User avatar
memeka
 
Posts: 3889
Joined: Mon May 20, 2013 10:22 am
languages_spoken: english
ODROIDs: XU rev2 + eMMC + UART
U3 + eMMC + IO Shield + UART

Re: Odroid C2 mainline kernel support

Unread postby mlinuxguy » Tue Aug 30, 2016 1:17 pm


I must be missing something about this build or installing this kernel. I pulled the zip file down from github, did the make defconfig, etc...
Applied the patch though most of what was listed here: viewtopic.php?f=135&t=22717#p152487
does not need to be done any more. It built clean..
Try to boot it off my 64gb eMMC with no luck, even tried the manual steps listed by moon.linux above.
Noticed it was still trying to read: meson64_odroidc2.dtb so copied meson-gxbb-odroidc2-4.8.0-rc2-xmlc2.dtb over to that file

Auto-boot didn't work neither did the manual steps
Code: Select all
odroidc2#fatload mmc 0:1 $dtb_mem_addr meson64_odroidc2.dtb
reading meson64_odroidc2.dtb
10568 bytes read in 4 ms (2.5 MiB/s)
odroidc2#fatload mmc 0:1 0x01080000 uImage-4.8.0-rc2-xmlc2
reading uImage-4.8.0-rc2-xmlc2
13659712 bytes read in 318 ms (41 MiB/s)
odroidc2#bootm 0x1080000 - $dtb_mem_addr
ee_gate_off ...
## Booting kernel from Legacy Image at 01080000 ...
   Image Name:   linux-next
   Image Type:   AArch64 Linux Kernel Image (uncompressed)
   Data Size:    13659648 Bytes = 13 MiB
   Load Address: 01080000
   Entry Point:  01080000
   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 = 0x01d86e00
   Loading Device Tree to 000000001fffa000, end 000000001ffff947 ... OK

Starting kernel ...

uboot time: 394601078 us
GXBB:BL1:08dafd:0a8993;FEAT:EDFC318C;POC:3;RCY:0;EMMC:0;READ:0;CHK:0;
TE: 59344
no sdio debug board detected

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 eMMC, src: 0x0000c200, des: 0x01400000, size: 0x000000b0
Load bl30 from eMMC, src: 0x00010200, des: 0x01000000, size: 0x00009ef0
Sending bl30........................................OK.
Run bl30...
Load bl301 from eMMC, src: 0x0001c200, des: 0x01000000, size: 0x000017c0
Wait bl30...Done
Sending bl301......OK.
Run bl301...
l31 from eMMC, src: 0x00020200, des: 0x10100000, size: 0x00011130


--- UART initialized after reboot ---
[Reset cause: unknown]
[Image: unknown, amlogic_v1.1.3046-00db630 2015-10-28 15:24:31 xiaobo.gu@droid05]
bl30: check_permit, count is 1
bl30: check_permit: ok!
chipid: ef Load bl33 from eMMC, src: 0x00034200, des: 0x01000000, size: 0x00066c20
be ad de d f0 ad ba ef be ad de not ES chip
[0.173884 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

I am right in assuming eMMC support is there or should I do this on a SD card?
mlinuxguy
 
Posts: 793
Joined: Thu Feb 28, 2013 10:28 am
languages_spoken: english
ODROIDs: X, X2, XU, XU3, XU4, C1, C1+, C2, N1, USB-IO

Re: Odroid C2 mainline kernel support

Unread postby umiddelb » Tue Aug 30, 2016 6:30 pm

Hi,

you can build a working kernel using my repo:

Code: Select all
#!/bin/sh
set -ex
# git clone --depth 1 --single-branch -b v4.7/integ git://git.kernel.org/pub/scm/linux/kernel/git/khilman/linux-amlogic.git
git clone --depth 1 --single-branch -b c2 https://github.com/ioft/linux/
cd linux
make odroidc2_defconfig
make clean
make -j 4 Image dtbs modules
sudo rm -rf /boot/kernel.d/test
sudo mkdir -p /boot/kernel.d/test
sudo cp System.map arch/arm64/boot/dts/amlogic/*.dtb /boot/kernel.d/test
sudo mkimage -A arm64 -O linux -T kernel -C none -a 0x1080000 -e 0x1080000 -n linux-4.7.0+ -d arch/arm64/boot/Image /boot/kernel.d/test/uImage
sudo cp .config /boot/kernel.d/test/config
sudo make modules_install
sudo make firmware_install
sudo make headers_install INSTALL_HDR_PATH=/usr
kver=`make kernelrelease`
cd /boot
sudo rm -f config-${kver}
sudo rm -f initrd.img--${kver}
sudo ln -s kernel.d/test/config config-${kver}
sudo update-initramfs -c -k ${kver}
sudo mkimage -A arm64 -O linux -T ramdisk -a 0x0 -e 0x0 -n initrd.img-${kver} -d initrd.img-${kver} uInitrd-${kver}
sudo mv initrd.img-${kver} kernel.d/test
sudo mv uInitrd-${kver} kernel.d/test/uInitrd
sudo rm config-${kver}

At the end you will find the kernel image, initrd image, dtbs etc. in /boot/kernel.d/test (Instead of compiling you can download the kernel here as well). You need to copy these files to /media/boot if you are using the standard/default HK boot procedure.

You can use the HK firmware (BL2 Built : 11:44:26, Nov 25 2015 / bl30: amlogic_v1.1.3046-00db630 2015-10-28 15:24:31 / BL3-1: v1.0(debug):4d2e34d, BL3-1: Built : 17:08:35, Oct 29 2015 / U-Boot 2015.01-00126-g8171a45 (Jun 15 2016 - 18:32:37)) to boot the mainline kernel, but you need to modify some boot parameters:
  • The serial console is called `ttyAML0` instead of `ttyS0` (that might explain why you cannot see anything else after 'Starting kernel ...')
  • The dtb file name is `meson-gxbb-odroidc2.dtb`instead of `meson64_odroidc2.dtb`
  • /dev/mmcblk0 is uSD, /dev/mmcblk1 is eMMC
  • The kernel has to be started via `bootm` therefore the image must be an uImage

Cheers
Uli
umiddelb
 
Posts: 438
Joined: Thu Jan 29, 2015 6:42 am
languages_spoken: English, German
ODROIDs: ODROID-C1, ODROID-XU4, ODROID-C2

Re: Odroid C2 mainline kernel support

Unread postby umiddelb » Wed Aug 31, 2016 6:17 am

Hm, the onboard ethernet devices hangs/freezes without further notice starting at a bandwidth of 25k/s. I suppose, that I need to use a different firmware which does a proper hw initialization, see here.
umiddelb
 
Posts: 438
Joined: Thu Jan 29, 2015 6:42 am
languages_spoken: English, German
ODROIDs: ODROID-C1, ODROID-XU4, ODROID-C2

Re: Odroid C2 mainline kernel support

Unread postby bleedingedge » Wed Aug 31, 2016 12:25 pm

Have anyone tried 4.8-rc4 ?
Does that mean we will have ubuntu 16.10 with 4.8 kernel working ?
bleedingedge
 
Posts: 6
Joined: Sun Apr 10, 2016 3:20 am
languages_spoken: english
ODROIDs: XU4

Re: Odroid C2 mainline kernel support

Unread postby BlueMatt » Wed Aug 31, 2016 11:17 pm

umiddelb wrote:Hm, the onboard ethernet devices hangs/freezes without further notice starting at a bandwidth of 25k/s. I suppose, that I need to use a different firmware which does a proper hw initialization, see here.

Did that patch fix it for you? Previously, if your forced the eth into 100M mode (or connected to another side that only supports 100M) it would work fine.
BlueMatt
 
Posts: 14
Joined: Sun Jun 19, 2016 1:44 pm
languages_spoken: english

Re: Odroid C2 mainline kernel support

Unread postby umiddelb » Thu Sep 01, 2016 5:29 am

BlueMatt wrote:
umiddelb wrote:Hm, the onboard ethernet devices hangs/freezes without further notice starting at a bandwidth of 25k/s. I suppose, that I need to use a different firmware which does a proper hw initialization, see here.

Did that patch fix it for you? Previously, if your forced the eth into 100M mode (or connected to another side that only supports 100M) it would work fine.


Not really, even if I issue
Code: Select all
sudo sudo ethtool -s eth0 speed 100 duplex full autoneg on

I'll get these hangs/freezes as well. I might consider to use your patched mainline u-boot instead of the HK u-boot.
umiddelb
 
Posts: 438
Joined: Thu Jan 29, 2015 6:42 am
languages_spoken: English, German
ODROIDs: ODROID-C1, ODROID-XU4, ODROID-C2

Re: Odroid C2 mainline kernel support

Unread postby umiddelb » Fri Sep 02, 2016 2:41 pm

USB isn't fully supported in the 4.8 kernel:

Code: Select all
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=dwc2/1p, 480M


Whereas the HK 3.14.77 kernel shows:
Code: Select all
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=dwc_otg/1p, 480M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=dwc_otg/1p, 480M
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/4p, 480M
umiddelb
 
Posts: 438
Joined: Thu Jan 29, 2015 6:42 am
languages_spoken: English, German
ODROIDs: ODROID-C1, ODROID-XU4, ODROID-C2

Re: Odroid C2 mainline kernel support

Unread postby umiddelb » Sat Sep 03, 2016 6:32 am

If I use a recent mainline u-boot version to boot this kernel, the internal USB Hub is discovered (unfortunately non of the connected USB devices).
Code: Select all
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=dwc2/1p, 480M
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/4p, 480M


Unfortunately the network frezzes/timeouts are the same here as well (even with 100 Mbit/s speed).
Last edited by umiddelb on Sat Sep 03, 2016 7:57 pm, edited 1 time in total.
umiddelb
 
Posts: 438
Joined: Thu Jan 29, 2015 6:42 am
languages_spoken: English, German
ODROIDs: ODROID-C1, ODROID-XU4, ODROID-C2

Re: Odroid C2 mainline kernel support

Unread postby brad » Sat Sep 03, 2016 9:44 am

umiddelb wrote:If I use a recent mainline u-boot version to boot this kernel, the internal USB Hub is discovered (unfortunately non of the connoected USB devices).
Code: Select all
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=dwc2/1p, 480M
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/4p, 480M


Unfortunately the network frezzes/timeouts are the same here as well (even with 100 Mbit/s speed).


Is it possible for you to try to enable the following in the kernel config and recompile..

Under Networking support > Networking options

IP: kernel level autoconfiguration
IP: DHCP support

They need to be built in and so do the network drivers rather than as modules. Configuring the network this way (and early in boot) seems stable for me at 100Mit (4.6,4.7 & 4.8). I still cannot get it working at Gigabit speeds.

I found an issue with the resolver when you boot this way and DNS stops working. I needed to manually a name-server to the resolver config to get dns back, although I suspect there is a better way.
brad
 
Posts: 686
Joined: Tue Mar 29, 2016 1:22 pm
Location: Australia
languages_spoken: english
ODROIDs: C2

Re: Odroid C2 mainline kernel support

Unread postby umiddelb » Sun Sep 04, 2016 4:48 pm

brad wrote:
Is it possible for you to try to enable the following in the kernel config and recompile..

Under Networking support > Networking options

IP: kernel level autoconfiguration
IP: DHCP support

They need to be built in

These options have already been switched on.
brad wrote:and so do the network drivers rather than as modules. Configuring the network this way (and early in boot) seems stable for me at 100Mit (4.6,4.7 & 4.8). ...

I still get these network freezes.
umiddelb
 
Posts: 438
Joined: Thu Jan 29, 2015 6:42 am
languages_spoken: English, German
ODROIDs: ODROID-C1, ODROID-XU4, ODROID-C2

Re: Odroid C2 mainline kernel support

Unread postby BlueMatt » Tue Sep 06, 2016 11:54 am

umiddelb wrote:USB isn't fully supported in the 4.8 kernel:

There are some USB patches floating around these days..see https://patchwork.kernel.org/project/linux-clk/list/?submitter=38211, mostly.
BlueMatt
 
Posts: 14
Joined: Sun Jun 19, 2016 1:44 pm
languages_spoken: english

Re: Odroid C2 mainline kernel support

Unread postby mlinuxguy » Wed Sep 07, 2016 4:22 am

On the other thread about No performance difference between 1.5, 1.75 & 2GHz
I was discussing testing the L2 cache on the upstream kernel (perhaps offsetting any possible DDR3 tunings we might have to do)
I went through the L2 arm64 cache patch series up to this upstream kernel and it appears to actually get a working L2 cache
we need entries like this in the appropriate DTS file: meson-gxbb.dtsi
Code: Select all
        cpu@0 {
            device_type = "cpu";
            compatible = "arm,cortex-a53","arm,armv8";
            reg = <0x0 0x0>;
            enable-method = "psci";
            next-level-cache = <&A53_L2>;  <--- sets up the cache
            timer=<&timer_f>;
        };
...
        A53_L2: l2-cache1 {
            compatible = "cache";
        };

This would be similar to what they add via patches for cache support in new arm64 boards
Didn't find that in ours...
mlinuxguy
 
Posts: 793
Joined: Thu Feb 28, 2013 10:28 am
languages_spoken: english
ODROIDs: X, X2, XU, XU3, XU4, C1, C1+, C2, N1, USB-IO

Re: Odroid C2 mainline kernel support

Unread postby moon.linux » Mon Oct 03, 2016 4:04 pm

I finally got mainline kernel to boot onto my Odroid C2.

Here are the step to compile.
Code: Select all
git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git odroidc2-4.y-final
cd odroidc2-4.y-final
git remote add kevin git://git.kernel.org/pub/scm/linux/kernel/git/khilman/linux-amlogic.git
git branch amlogic48                       # this is to switch to new branch
git checkout amlogic48
git pull kevin v4.8/integ


Build the kernel
Code: Select all
#make mrproper
make defconfig
make -j4 dtbs Image modules LOCALVERSION=-xc2
make modules_install LOCALVERSION=-xc2
mkimage -A arm64 -O linux -T kernel -C none -a 0x1080000 -e 0x1080000 -n linux-next -d arch/arm64/boot/Image ../uImage


Install the kernel
Code: Select all
#/bin/bash
set +x
kernelversion=`cat ./include/config/kernel.release`
cp -v .config /boot/config-$kernelversion
echo "kernel version" $kernelversion
cp -v ./arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dtb /media/boot/meson-gxbb-odroidc2-$kernelversion.dtb
cp -v ../uImage /media/boot/uImage-$kernelversion
cp -v .config /media/boot/config-$kernelversion
#sync
#reboot


Sample boot.ini

Code: Select all
ODROIDC2-UBOOT-CONFIG

# Update the kernel version to boot to next kernel
setenv version 4.8.0-xc2
setenv uImage uImage-${version}
setenv fdtbin meson-gxbb-odroidc2-${version}.dtb

setenv initrd_high   0xffffffff
setenv fdt_high      0xffffffff
setenv uimage_addr_r 0x01080000
setenv fdtbin_addr_r 0x01000000

# update below root=/dev/mmcblk0p2 for microsd card
# update below root=/dev/mmcblk1p2 for eMMMC card
setenv bootargs "console=ttyAML0,115200 root=/dev/mmcblk0p2 rootwait ro fsck.fix=yes net.ifnames=0"

fatload mmc 0:1 ${fdtbin_addr_r} ${fdtbin}
fatload mmc 0:1 ${uimage_addr_r} ${uImage}
bootm ${uimage_addr_r} - ${fdtbin_addr_r}


Note you can use above step one by one to boot in to next kernel.

Now waiting for 4.9.rc1 to release and test....

Code: Select all
U-Boot 2015.01-00166-g6e4e886 (Sep 08 2016 - 01:15:44)

DRAM:  2 GiB
Relocation Offset is: 76f3d000
-------------------------------------------------
* Welcome to Hardkernel's ODROID-C2
-------------------------------------------------
CPU : AMLogic S905
S/N : HKC213254DFCEAFA
MAC : 00:1e:06:33:37:7a
BID : HKC2211604
-------------------------------------------------
register usb cfg[1][0] = 0000000077f96b50
register usb cfg[0][1] = 0000000077f96b70
vpu detect type: 5
vpu clk_level = 7
set vpu clk: 666667000Hz, readback: 666660000Hz(0x300)
MMC:   aml_priv->desc_buf = 0x0000000073f35d30
aml_priv->desc_buf = 0x0000000073f37ec0
SDIO Port B: 0, SDIO Port C: 1
ret = 1 .[mmc_init] mmc init success
In:    serial
Out:   serial
Err:   serial
----------------------------------
MMC Size : 32 GB
----------------------------------
reading boot-logo.bmp.gz
** Unable to read file boot-logo.bmp.gz **
reading boot-logo.bmp
** Unable to read file boot-logo.bmp **
movi: the partiton 'logo' is reading...

MMC read: dev # 0, block # 58976, count 4096 ... 4096 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
odroidc2#
odroidc2#
odroidc2#
odroidc2#
odroidc2#setenv version 4.8.0-xc2
odroidc2#setenv uImage uImage-${version}
odroidc2#setenv fdtbin meson-gxbb-odroidc2-${version}.dtb
odroidc2#setenv initrd_high   0xffffffff
odroidc2#setenv fdt_high      0xffffffff
odroidc2#setenv uimage_addr_r 0x01080000
odroidc2#setenv fdtbin_addr_r 0x01000000
odroidc2#setenv bootargs "console=ttyAML0,115200 root=/dev/mmcblk0p2 rootwait ro                                                                               fsck.fix=yes net.ifnames=0"
odroidc2#
odroidc2#fatload mmc 0:1 $fdtbin_addr_r ${fdtbin}
reading meson-gxbb-odroidc2-4.8.0-xc2.dtb
12623 bytes read in 7 ms (1.7 MiB/s)
odroidc2#fatload mmc 0:1 ${uimage_addr_r} ${uImage}
reading uImage-4.8.0-xc2
13662272 bytes read in 609 ms (21.4 MiB/s)
odroidc2#bootm ${uimage_addr_r} - ${fdtbin_addr_r}
ee_gate_off ...
## Booting kernel from Legacy Image at 01080000 ...
   Image Name:   linux-next
   Image Type:   AArch64 Linux Kernel Image (uncompressed)
   Data Size:    13662208 Bytes = 13 MiB
   Load Address: 01080000
   Entry Point:  01080000
   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 = 0x01d87800
   Loading Device Tree to 0000000073f2d000, end 0000000073f3314e ... OK

Starting kernel ...

uboot time: 119791554 us
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.8.0-xc2 (root@odroid64) (gcc version 5.4.0 201606                                                                              09 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.2) ) #2 SMP PREEMPT Mon Oct 3 00:17:44 ED                                                                              T 2016
[    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 16 MiB at 0x0000000077000000
[    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 21 pages/cpu @ffff800076f7d000 s47384 r8192 d304                                                                              40 u86016
[    0.000000] Detected VIPT I-cache on CPU0
[    0.000000] CPU features: enabling workaround for ARM erratum 845719
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pag                                                                              es: 483840
[    0.000000] Kernel command line: console=ttyAML0,115200 root=/dev/mmcblk0p2 r                                                                              ootwait ro fsck.fix=yes net.ifnames=0
[    0.000000] log_buf_len individual max cpu contribution: 4096 bytes
[    0.000000] log_buf_len total cpu_extra contributions: 12288 bytes
[    0.000000] log_buf_len min size: 16384 bytes
[    0.000000] log_buf_len: 32768 bytes
[    0.000000] early log buf free: 14788(90%)
[    0.000000] PID hash table entries: 4096 (order: 3, 32768 bytes)
[    0.000000] Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes)
[    0.000000] Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes)
[    0.000000] Memory: 1899620K/1966080K available (8060K kernel code, 798K rwda                                                                              ta, 3476K rodata, 960K init, 273K bss, 50076K reserved, 16384K cma-reserved)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     modules : 0xffff000000000000 - 0xffff000008000000   (   128 M                                                                              B)
[    0.000000]     vmalloc : 0xffff000008000000 - 0xffff7dffbfff0000   (129022 G                                                                              B)
[    0.000000]       .text : 0xffff000008080000 - 0xffff000008860000   (  8064 K                                                                              B)
[    0.000000]     .rodata : 0xffff000008860000 - 0xffff000008bd0000   (  3520 K                                                                              B)
[    0.000000]       .init : 0xffff000008bd0000 - 0xffff000008cc0000   (   960 K                                                                              B)
[    0.000000]       .data : 0xffff000008cc0000 - 0xffff000008d87800   (   798 K                                                                              B)
[    0.000000]        .bss : 0xffff000008d87800 - 0xffff000008dcbd34   (   274 K                                                                              B)
[    0.000000]     fixed   : 0xffff7dfffe7fd000 - 0xffff7dfffec00000   (  4108 K                                                                              B)
[    0.000000]     PCI I/O : 0xffff7dfffee00000 - 0xffff7dffffe00000   (    16 M                                                                              B)
[    0.000000]     vmemmap : 0xffff7e0000000000 - 0xffff800000000000   (  2048 G                                                                              B maximum)
[    0.000000]               0xffff7e0000000000 - 0xffff7e0001e00000   (    30 M                                                                              B actual)
[    0.000000]     memory  : 0xffff800000000000 - 0xffff800078000000   (  1920 M                                                                              B)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000]  Build-time adjustment of leaf fanout to 64.
[    0.000000]  RCU restricting CPUs from NR_CPUS=64 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 (ph                                                                              ys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles:                                                                               0x588fe9dc0, max_idle_ns: 440795202592 ns
[    0.000003] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 43980                                                                              46511097ns
[    0.000173] Console: colour dummy device 80x25
[    0.000190] Calibrating delay loop (skipped), value calculated using timer fr                                                                              equency.. 48.00 BogoMIPS (lpj=96000)
[    0.000196] pid_max: default: 32768 minimum: 301
[    0.000239] Security Framework initialized
[    0.000266] Mount-cache hash table entries: 4096 (order: 3, 32768 bytes)
[    0.000270] Mountpoint-cache hash table entries: 4096 (order: 3, 32768 bytes)
[    0.000846] ASID allocator initialised with 65536 entries
[    0.024279] EFI services will not be available.
[    0.048686] Detected VIPT I-cache on CPU1
[    0.048723] CPU1: Booted secondary processor [410fd034]
[    0.064687] Detected VIPT I-cache on CPU2
[    0.064703] CPU2: Booted secondary processor [410fd034]
[    0.080702] Detected VIPT I-cache on CPU3
[    0.080717] CPU3: Booted secondary processor [410fd034]
[    0.080748] Brought up 4 CPUs
[    0.080761] SMP: Total of 4 processors activated.
[    0.080766] CPU features: detected feature: 32-bit EL0 Support
[    0.080772] CPU: All CPU(s) started at EL2
[    0.080786] alternatives: patching kernel code
[    0.081512] devtmpfs: initialized
[    0.083540] DMI not present or invalid.
[    0.083676] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, ma                                                                              x_idle_ns: 7645041785100000 ns
[    0.084002] pinctrl core: initialized pinctrl subsystem
[    0.084771] NET: Registered protocol family 16
[    0.104153] cpuidle: using governor menu
[    0.104297] vdso: 2 pages (1 code @ ffff000008866000, 1 data @ ffff000008cc40                                                                              00)
[    0.104307] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[    0.104764] DMA: preallocated 256 KiB pool for atomic allocations
[    0.104937] Serial: AMBA PL011 UART driver
[    0.128520] HugeTLB registered 2 MB page size, pre-allocated 0 pages
[    0.129785] ACPI: Interpreter disabled.
[    0.130528] vgaarb: loaded
[    0.130699] SCSI subsystem initialized
[    0.130982] usbcore: registered new interface driver usbfs
[    0.131015] usbcore: registered new interface driver hub
[    0.131061] usbcore: registered new device driver usb
[    0.131306] pps_core: LinuxPPS API ver. 1 registered
[    0.131309] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giome                                                                              tti <giometti@linux.it>
[    0.131323] PTP clock support registered
[    0.131416] dmi: Firmware registration failed.
[    0.131657] Advanced Linux Sound Architecture Driver Initialized.
[    0.132204] clocksource: Switched to clocksource arch_sys_counter
[    0.132312] VFS: Disk quotas dquot_6.6.0
[    0.132345] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[    0.132507] pnp: PnP ACPI: disabled
[    0.136935] NET: Registered protocol family 2
[    0.137289] TCP established hash table entries: 16384 (order: 5, 131072 bytes                                                                              )
[    0.137375] TCP bind hash table entries: 16384 (order: 6, 262144 bytes)
[    0.137559] TCP: Hash tables configured (established 16384 bind 16384)
[    0.137617] UDP hash table entries: 1024 (order: 3, 32768 bytes)
[    0.137649] UDP-Lite hash table entries: 1024 (order: 3, 32768 bytes)
[    0.137759] NET: Registered protocol family 1
[    0.137989] RPC: Registered named UNIX socket transport module.
[    0.137993] RPC: Registered udp transport module.
[    0.137996] RPC: Registered tcp transport module.
[    0.137999] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.138398] hw perfevents: enabled with armv8_cortex_a53 PMU driver, 7 counte                                                                              rs available
[    0.138512] kvm [1]: IDMAP page: 1849000
[    0.138516] kvm [1]: HYP VA range: 800000000000:ffffffffffff
[    0.138974] kvm [1]: 8-bit VMID
[    0.138976] kvm [1]: Hyp mode initialized successfully
[    0.139002] kvm [1]: vgic-v2@c4304000
[    0.139070] kvm [1]: vgic interrupt IRQ1
[    0.139120] kvm [1]: virtual timer IRQ4
[    0.139906] futex hash table entries: 1024 (order: 5, 131072 bytes)
[    0.139972] audit: initializing netlink subsys (disabled)
[    0.140004] audit: type=2000 audit(0.128:1): initialized
[    0.140387] workingset: timestamp_bits=46 max_order=19 bucket_order=0
[    0.146405] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.146909] NFS: Registering the id_resolver key type
[    0.146929] Key type id_resolver registered
[    0.146933] Key type id_legacy registered
[    0.146941] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.147063] 9p: Installing v9fs 9p2000 file system support
[    0.148424] io scheduler noop registered
[    0.148536] io scheduler cfq registered (default)
[    0.149081] libphy: mdio_driver_register: phy-bcm-ns2-pci
[    0.151494] xenfs: not registering filesystem on non-xen platform
[    0.153651] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    0.154629] SuperH (H)SCI(F) driver initialized
[    0.154836] c81004c0.serial: ttyAML0 at MMIO 0xc81004c0 (irq = 11, base_baud                                                                               = 1500000) is a meson_uart
[    0.880519] console [ttyAML0] enabled
[    0.884465] msm_serial: driver initialized
[    0.888406] Unable to detect cache hierarchy from DT for CPU 0
[    0.896954] loop: module loaded
[    0.898249] libphy: Fixed MDIO Bus: probed
[    0.901439] tun: Universal TUN/TAP device driver, 1.6
[    0.906105] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
[    0.912569] e1000e: Intel(R) PRO/1000 Network Driver - 3.2.6-k
[    0.918005] e1000e: Copyright(c) 1999 - 2015 Intel Corporation.
[    0.923908] igb: Intel(R) Gigabit Ethernet Network Driver - version 5.3.0-k
[    0.930768] igb: Copyright (c) 2007-2014 Intel Corporation.
[    0.936321] igbvf: Intel(R) Gigabit Virtual Function Network Driver - version                                                                               2.0.2-k
[    0.944050] igbvf: Copyright (c) 2009 - 2012 Intel Corporation.
[    0.949949] sky2: driver version 1.30
[    0.953824] VFIO - User Level meta-driver version: 0.3
[    0.959335] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.965102] ehci-pci: EHCI PCI platform driver
[    0.969524] ehci-platform: EHCI generic platform driver
[    0.974720] ehci-exynos: EHCI EXYNOS driver
[    0.978852] ehci-msm: Qualcomm On-Chip EHCI Host Controller
[    0.984371] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.990468] ohci-pci: OHCI PCI platform driver
[    0.994879] ohci-platform: OHCI generic platform driver
[    1.000072] ohci-exynos: OHCI EXYNOS driver
[    1.004385] usbcore: registered new interface driver usb-storage
[    1.010636] mousedev: PS/2 mouse device common for all mice
[    1.016172] i2c /dev entries driver
[    1.019338] meson-i2c c1108500.i2c: can't get device clock
[    1.025454] sdhci: Secure Digital Host Controller Interface driver
[    1.030651] sdhci: Copyright(c) Pierre Ossman
[    1.034982] Synopsys Designware Multimedia Card Interface Driver
[    1.041403] sdhci-pltfm: SDHCI platform and OF driver helper
[    1.046956] ledtrig-cpu: registered to indicate activity on CPUs
[    1.052566] meson-sm: secure-monitor enabled
[    1.057044] usbcore: registered new interface driver usbhid
[    1.062217] usbhid: USB HID core driver
[    1.067794] NET: Registered protocol family 17
[    1.070471] 9pnet: Installing 9P2000 support
[    1.074674] Key type dns_resolver registered
[    1.079280] registered taskstats version 1
[    1.084542] meson-gxbb-mmc d0072000.mmc: Got CD GPIO
[    1.128943] meson-gxbb-mmc d0074000.mmc: allocated mmc-pwrseq
[    1.168479] hctosys: unable to open rtc device (rtc0)
[    1.171053] ALSA device list:
[    1.171073]   No soundcards found.
[    1.180028] Waiting for root device /dev/mmcblk0p2...
[    1.191447] mmc0: new high speed SDHC card at address 0001
[    1.195796] mmcblk0: mmc0:0001 00000 29.8 GiB
[    1.198977]  mmcblk0: p1 p2
[    1.287647] EXT4-fs (mmcblk0p2): couldn't mount as ext3 due to feature incomp                                                                              atibilities
[    1.298237] EXT4-fs (mmcblk0p2): mounted filesystem without journal. Opts: (n                                                                              ull)
[    1.300077] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
[    1.316292] devtmpfs: mounted
[    1.316663] Freeing unused kernel memory: 960K (ffff800001bd0000 - ffff800001                                                                              cc0000)
[    1.361614] random: fast init done
[    2.551059] systemd[1]: System time before build time, advancing clock.
[    4.722245] NET: Registered protocol family 10
[    4.845478] systemd[1]: systemd 229 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ -LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD -IDN)
[    4.858013] systemd[1]: Detected architecture arm64.

Welcome to Ubuntu 16.04.1 LTS!

[    4.897314] systemd[1]: Set hostname to <odroid64>.
[    5.820109] random: crng init done
[    6.265307] systemd[1]: Listening on Syslog Socket.
[  OK  ] Listening on Syslog Socket.
[    6.280600] systemd[1]: Created slice System Slice.
[  OK  ] Created slice System Slice.
[    6.296352] systemd[1]: Listening on fsck to fsckd communication Socket.
[  OK  ] Listening on fsck to fsckd communication Socket.
[    6.316319] systemd[1]: Listening on udev Kernel Socket.
[  OK  ] Listening on udev Kernel Socket.
[    6.332316] systemd[1]: Listening on Journal Socket (/dev/log).
[  OK  ] Listening on Journal Socket (/dev/log).
[    6.348433] systemd[1]: Listening on Journal Audit Socket.
[  OK  ] Listening on Journal Audit Socket.
[    6.364365] systemd[1]: Listening on Journal Socket.
[  OK  ] Listening on Journal Socket.
         Mounting Debug File System...
         Starting File System Check on Root Device...
         Starting Load Kernel Modules...
         Starting Set console keymap...
         Starting Nameserver information manager...
         Mounting Huge Pages File System...
[  OK  ] Listening on /dev/initctl Compatibility Named Pipe.
[  OK  ] Reached target Encrypted Volumes.
[  OK  ] Created slice system-serial\x2dgetty.slice.
         Mounting POSIX Message Queue File System...
         Starting Uncomplicated firewall...
[  OK  ] Listening on udev Control Socket.
[  OK  ] Created slice User and Session Slice.
[  OK  ] Reached target Swap.
[  OK  ] Reached target User and Group Name Lookups.
         Starting Create list of required st... nodes for the current kernel...
[  OK  ] Started Forward Password Requests to Wall Directory Watch.
[  OK  ] Reached target Remote File Systems (Pre).
[  OK  ] Reached target Remote File Systems.
[  OK  ] Started Braille Device Support.
[  OK  ] Started Read required files in advance.
[  OK  ] Reached target Slices.
         Starting Journal Service...
[FAILED] Failed to start Load Kernel Modules.
See 'systemctl status systemd-modules-load.service' for details.
[  OK  ] Started Create list of required sta...ce nodes for the current kernel.
[  OK  ] Started File System Check Daemon to report status.
         Starting Create Static Device Nodes in /dev...
         Mounting Configuration File System...
         Starting Apply Kernel Variables...
[  OK  ] Started Uncomplicated firewall.
[  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 Journal Service.
[  OK  ] Started Apply Kernel Variables.
[  OK  ] Started Nameserver information manager.
[  OK  ] Started Set console keymap.
[  OK  ] Started File System Check on Root Device.
         Starting Remount Root and Kernel File Systems...
[  OK  ] Started Create Static Device Nodes in /dev.
         Starting udev Kernel Device Manager...
[  OK  ] Started Remount Root and Kernel File Systems.
         Starting udev Coldplug all Devices...
[  OK  ] Reached target Local File Systems (Pre).
         Starting Load/Save Random Seed...
         Starting Flush Journal to Persistent Storage...
[  OK  ] Started Load/Save Random Seed.
[  OK  ] Started udev Coldplug all Devices.
[  OK  ] Started Flush Journal to Persistent Storage.
[  OK  ] Started udev Kernel Device Manager.
[  OK  ] Started Dispatch Password Requests to Console Directory Watch.
[  OK  ] Found device /dev/ttyAML0.
[  OK  ] Found device /dev/disk/by-label/boot.
         Mounting /media/boot...
[  OK  ] Mounted /media/boot.
[  OK  ] Reached target Local File Systems.
         Starting Run snappy firstboot setup...
         Starting Set console font and keymap...
         Starting Tell Plymouth To Write Out Runtime Data...
         Starting LSB: AppArmor initialization...
         Starting Create Volatile Files and Directories...
[  OK  ] Started Tell Plymouth To Write Out Runtime Data.
[  OK  ] Started Create Volatile Files and Directories.
         Starting Update UTMP about System Boot/Shutdown...
[  OK  ] Reached target System Time Synchronized.
[  OK  ] Started Update UTMP about System Boot/Shutdown.
[  OK  ] Started Set console font and keymap.
[  OK  ] Created slice system-getty.slice.
[  OK  ] Started LSB: AppArmor initialization.
[  OK  ] Reached target System Initialization.
[  OK  ] Listening on CUPS Scheduler.
[  OK  ] Started Daily Cleanup of Temporary Directories.
[  OK  ] Started CUPS Scheduler.
[  OK  ] Started Daily apt activities.
[  OK  ] Listening on Avahi mDNS/DNS-SD Stack Activation Socket.
[  OK  ] Started Timer to automatically refresh installed snaps.
[  OK  ] Reached target Timers.
[  OK  ] Listening on D-Bus System Message Bus Socket.
         Starting Socket activation for snappy daemon.
[  OK  ] Started Trigger resolvconf update for networkd DNS.
[  OK  ] Reached target Paths.
         Starting Raise network interfaces...
[  OK  ] Listening on Socket activation for snappy daemon.
[  OK  ] Reached target Sockets.
[  OK  ] Reached target Basic System.
         Starting Avahi mDNS/DNS-SD Stack...
         Starting Restore /etc/resolv.conf i...re the ppp link was shut down...
[  OK  ] Started CUPS Scheduler.
         Starting Modem Manager...
         Starting Login Service...
[  OK  ] Started Self Monitoring and Reporting Technology (SMART) Daemon.
         Starting LSB: Set the CPU Frequency Scaling governor to "ondemand"...
         Starting LSB: Load kernel modules needed to enable cpufreq scaling...
         Starting LSB: automatic crash report generation...
[  OK  ] Started Regular background program processing daemon.
[  OK  ] Started Avahi DNS Configuration Daemon.
         Starting Accounts Service...
[  OK  ] Started Cgroup management daemon.
         Starting Initializes zram swaping...
[  OK  ] Started D-Bus System Message Bus.
[  OK  ] Started Avahi mDNS/DNS-SD Stack.
[  OK  ] Started Make remote CUPS printers available locally.
         Starting Network Manager...
         Starting LSB: Speech Dispatcher...
[  OK  ] Started Run anacron jobs.
         Starting Permit User Sessions...
[  OK  ] Started crash report submission daemon.
         Starting Initialize hardware monitoring sensors...
         Starting System Logging Service...
[  OK  ] Started Run snappy firstboot setup.
[  OK  ] Started Restore /etc/resolv.conf if...fore the ppp link was shut down.
[FAILED] Failed to start Initializes zram swaping.
See 'systemctl status zram-config.service' for details.
[  OK  ] Started LSB: automatic crash report generation.
[  OK  ] Started Permit User Sessions.
[  OK  ] Started LSB: Set the CPU Frequency Scaling governor to "ondemand".
[  OK  ] Started LSB: Speech Dispatcher.
[  OK  ] Started Login Service.
         Starting Authenticate and Authorize Users to Run Privileged Tasks...
         Starting Light Display Manager...
[  OK  ] Started Snappy daemon.
[  OK  ] Started Raise network interfaces.
[  OK  ] Started Initialize hardware monitoring sensors.
[  OK  ] Started LSB: Load kernel modules needed to enable cpufreq scaling.
         Starting LSB: set CPUFreq kernel parameters...
[  OK  ] Started System Logging Service.
[  OK  ] Started LSB: set CPUFreq kernel parameters.
[  OK  ] Started Authenticate and Authorize Users to Run Privileged Tasks.
[  OK  ] Started Accounts Service.
[  OK  ] Started Light Display Manager.
[  OK  ] Started Network Manager.
[  OK  ] Reached target Network.
         Starting OpenBSD Secure Shell server...
         Starting Network Manager Wait Online...
         Starting Network Manager Script Dispatcher Service...
[  OK  ] Started Network Manager Script Dispatcher Service.
[  OK  ] Started Modem Manager.
         Starting Hostname Service...
[  OK  ] Started Hostname Service.
[  OK  ] Started OpenBSD Secure Shell server.
[  OK  ] Started Network Manager Wait Online.
[  OK  ] Reached target Network is Online.
         Starting LSB: disk temperature monitoring daemon...
         Starting /etc/rc.local Compatibility...
         Starting LSB: Start NTP daemon...
[  OK  ] Started /etc/rc.local Compatibility.
         Starting Hold until boot process finishes up...
[  OK  ] Started LSB: disk temperature monitoring daemon.
[  OK  ] Started Hold until boot process finishes up.
         Starting Set console scheme...
[  OK  ] Started Getty on tty1.
[  OK  ] Started Serial Getty on ttyAML0.
[  OK  ] Reached target Login Prompts.
[  OK  ] Started Set console scheme.
[  OK  ] Started LSB: Start NTP daemon.
[  OK  ] Reached target Multi-User System.
         Starting Notify bootloader that boot was successful...
[  OK  ] Started TLP system startup/shutdown.
[  OK  ] Reached target Graphical Interface.
         Starting Update UTMP about System Runlevel Changes...
[  OK  ] Started Stop ureadahead data collection 45s after completed startup.
[  OK  ] Started Notify bootloader that boot was successful.
[  OK  ] Started Update UTMP about System Runlevel Changes.

Ubuntu 16.04.1 LTS odroid64 ttyAML0

odroid64 login: odroid
Password:
Last login: Thu Feb 11 11:28:34 EST 2016 from 10.0.0.104 on pts/8
Welcome to Ubuntu 16.04.1 LTS (GNU/Linux 4.8.0-xc2 aarch64)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/advantage

0 packages can be updated.
0 updates are security updates.
moon.linux
 
Posts: 1056
Joined: Thu Oct 02, 2014 11:42 pm
languages_spoken: english

Re: Odroid C2 mainline kernel support

Unread postby odroid » Mon Oct 03, 2016 6:11 pm

Great!
Did you boot from SD? or eMMC?
How about Gbit Ethernet connection?

BTW, Brian.Kim told me he could enable the USB host port on C2 Kernel 4.8.
Ask him a simple patch. ;)
User avatar
odroid
Site Admin
 
Posts: 27688
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: Odroid C2 mainline kernel support

Unread postby moon.linux » Mon Oct 03, 2016 8:50 pm

Some patches are still under review for USB PHY. Ethernet is not working effectively I saw some kernel panic with iperf testing.
I booted from SD card for now just for testing.
moon.linux
 
Posts: 1056
Joined: Thu Oct 02, 2014 11:42 pm
languages_spoken: english

Re: Odroid C2 mainline kernel support

Unread postby brad » Wed Oct 05, 2016 8:02 am

odroid wrote:Great!
Did you boot from SD? or eMMC?
How about Gbit Ethernet connection?

BTW, Brian.Kim told me he could enable the USB host port on C2 Kernel 4.8.
Ask him a simple patch. ;)


I see Brian has submitted some patches to enable usb for upstream :) I appreciate the work from Brian / Hardkernel on this and would be more than happy to perform any testing if required
brad
 
Posts: 686
Joined: Tue Mar 29, 2016 1:22 pm
Location: Australia
languages_spoken: english
ODROIDs: C2

Re: Odroid C2 mainline kernel support

Unread postby kxv » Mon Oct 10, 2016 12:30 am

The S905 SoC has gained more support in Linux 4.9.
See http://lkml.iu.edu/hypermail/linux/kern ... 03429.html .
kxv
 
Posts: 1
Joined: Mon Oct 10, 2016 12:26 am
languages_spoken: english, german

Re: Odroid C2 mainline kernel support

Unread postby rgadsdon » Sat Oct 22, 2016 5:01 pm

I have managed to find a (nasty!) hack to fix the long-standing Ethernet hang/freeze problem (Kernel 4.9-rc1 patched)

Reduce speed to 100Mbps and turn off flow control..

Code: Select all
# ethtool -s eth0 speed 100 duplex full autoneg off


More info at http://rglinuxtech.com/?p=1831

Robert Gadsdon. October 21, 2016.
rgadsdon
 
Posts: 2
Joined: Tue Feb 18, 2014 10:41 pm
languages_spoken: english
ODROIDs: U3

Re: Odroid C2 mainline kernel support

Unread postby alpha_one_x86 » Sun Oct 23, 2016 3:11 am

Yes but it's at 100Mbps...
CVE-2016-5195 it's another reason to have mainline kernel support. To have quickly the security fixes.

EDIT: With autoneg=off it's 35Mbps, mean 3MB/s, then clearly less than the 100Mbps...
Developer of ImageUltracopier/ImageSupercopier and of the game ImageCatchChallenger
User avatar
alpha_one_x86
 
Posts: 92
Joined: Wed Aug 27, 2014 6:47 am
languages_spoken: french, english, spanish
ODROIDs: 15 odroid u3, 10 odroid c1, 50 odroid c2

Re: Odroid C2 mainline kernel support

Unread postby nobe » Fri Nov 04, 2016 3:18 am

this 1Gb bug might be fixed in mainline thx to jerome brunet
there is a patch attached here : http://lists.infradead.org/pipermail/li ... 01538.html
note : it needs to be cleaned at line 99, i guess a comment was badly suppressed

i'd like to test it myself but unfortunately i'm unable to boot successfully all the kernels i cross-compiled
i've tried different kernels : mainline 4.8, mainline 4.9-rc3 & khilman v4.10/integ

everything seems to be working fine : the kernel starts correctly but always hangs after detecting my sd-card

are you guys booting from sd, emmc or tftp ?
nobe
 
Posts: 103
Joined: Sun Feb 07, 2016 9:52 pm
languages_spoken: english, french
ODROIDs: Odroid-C2

Re: Odroid C2 mainline kernel support

Unread postby brad » Fri Nov 04, 2016 12:49 pm

Be careful as arm firmware now allows 2gh processor speed but if not restricted will often crash new kernel during boot. In my case when initing the emnc clocks. Use the max freq kernel param same as current kernel or an old version of uboot limited to 1.5g
brad
 
Posts: 686
Joined: Tue Mar 29, 2016 1:22 pm
Location: Australia
languages_spoken: english
ODROIDs: C2

Re: Odroid C2 mainline kernel support

Unread postby nobe » Fri Nov 04, 2016 7:40 pm

i still use the u-boot provided by hardkernel, so i guess i should be ok

but i can try this max freq kernel param you're talking of
should i just append something like "cpufreq.scaling_max_freq=1520000" to the bootarg variable in the boot.ini file ?

edit:
ok, i got it wrong, it should be "max_freq=1536000" or "max_freq=1536", i have to make sure of this :p
nobe
 
Posts: 103
Joined: Sun Feb 07, 2016 9:52 pm
languages_spoken: english, french
ODROIDs: Odroid-C2

Re: Odroid C2 mainline kernel support

Unread postby brad » Fri Nov 04, 2016 8:01 pm

nobe wrote:i still use the u-boot provided by hardkernel, so i guess i should be ok

but i can try this max freq kernel param you're talking of
should i just append something like "cpufreq.scaling_max_freq=1520000" to the bootarg variable in the boot.ini file ?


The latest hardkernel uboot includes new arm firmware which allows 2GHz and the new kernel (non hardkernel) now has frequency scaling at on boot and goes off and uses full power if it wants. Its not even actually uboot but the first stage arm firmware provided that boots the uboot that allows this.

im not near my c2 at the moment and not 100% sure this will work but does this kernel boot arg help?

max_freq=1520

just add it to the bootargs parameter, but cant be sure it will work for non hardkernel kernel but bets are on from my limited access to resources at the moment :)
brad
 
Posts: 686
Joined: Tue Mar 29, 2016 1:22 pm
Location: Australia
languages_spoken: english
ODROIDs: C2

Re: Odroid C2 mainline kernel support

Unread postby nobe » Fri Nov 04, 2016 8:14 pm

thx brad

just for the reference since i misleaded you : it's "max_freq=1536"
see https://github.com/mdrjr/c2_bootini/blo ... t.ini#L126

i'll try this in the afternoon then i'll report success or failure

edit:
it still fails to boot

here is the boot log :

Code: Select all
GXBB:BL1:08dafd:0a8993;FEAT:EDFC318C;POC:3;RCY:0;EMMC:800;NAND:81;SD:0;READ:0;CHK:0;
TE: 207300
no sdio debug board detected

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: 0x000012c0
Wait bl30...Done
Sending bl301.....OK.
Run bl301...
ad bl31 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: Load bl33 from SD, src: 0x00034200, des: 0x01000000, size: 0x000685f0
ef be ad de d f0 ad ba ef be ad de not ES chip
[0.321978 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-gbafc655 (Oct 17 2016 - 16:33:54)

DRAM:  2 GiB
Relocation Offset is: 76f3d000
-------------------------------------------------
* Welcome to Hardkernel's ODROID-C2
-------------------------------------------------
CPU : AMLogic S905
S/N : HKC213254DFCC334
MAC : 00:1e:06:33:0f:b4
BID : HKC2211602
-------------------------------------------------
register usb cfg[1][0] = 0000000077f96b48
register usb cfg[0][1] = 0000000077f96b68
vpu detect type: 5
vpu clk_level = 7
set vpu clk: 666667000Hz, readback: 666660000Hz(0x300)
MMC:   aml_priv->desc_buf = 0x0000000073f35d30
aml_priv->desc_buf = 0x0000000073f37ec0
SDIO Port B: 0, SDIO Port C: 1
ret = 1 .[mmc_init] mmc init success
In:    serial
Out:   serial
Err:   serial
----------------------------------
MMC Size : 32 GB
----------------------------------
reading boot-logo.bmp.gz
** Unable to read file boot-logo.bmp.gz **
reading boot-logo.bmp
** Unable to read file boot-logo.bmp **
movi: the partiton 'logo' is reading...

MMC read: dev # 0, block # 58976, count 4096 ... 4096 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
reading boot.ini
554 bytes read in 3 ms (179.7 KiB/s)
cfgload: applying boot.ini...
cfgload: setenv uImage uImage-v4.8
cfgload: setenv fdtbin meson-gxbb-odroidc2-v4.8.dtb
cfgload: setenv uimage_addr_r 0x01080000
cfgload: setenv fdtbin_addr_r 0x01000000
cfgload: setenv bootargs "console=ttyAML0,115200 root=/dev/mmcblk0p2 rootwait ro fsck.fix=yes net.ifnames=0 max_freq=1536"
cfgload: fatload mmc 0:1 ${fdtbin_addr_r} ${fdtbin}
reading meson-gxbb-odroidc2-v4.8.dtb
5606 bytes read in 5 ms (1.1 MiB/s)
cfgload: fatload mmc 0:1 ${uimage_addr_r} ${uImage}
reading uImage-v4.8
13527616 bytes read in 602 ms (21.4 MiB/s)
cfgload: bootm ${uimage_addr_r} - ${fdtbin_addr_r}
ee_gate_off ...
## Booting kernel from Legacy Image at 01080000 ...
   Image Name:   linux-v4.8
   Image Type:   AArch64 Linux Kernel Image (uncompressed)
   Data Size:    13527552 Bytes = 12.9 MiB
   Load Address: 01080000
   Entry Point:  01080000
   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 = 0x01d66a00
   Loading Device Tree to 000000001fffb000, end 000000001ffff5e5 ... OK

Starting kernel ...

uboot time: 4193596 us
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.8.0-v4.8 (nobe@lenovo-e540) (gcc version 5.4.0 20160609 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.1) ) #1 SMP PR6
[    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 16 MiB at 0x0000000077000000
[    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 21 pages/cpu @ffff800076f89000 s47384 r8192 d30440 u86016
[    0.000000] Detected VIPT I-cache on CPU0
[    0.000000] CPU features: enabling workaround for ARM erratum 845719
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 483840
[    0.000000] Kernel command line: console=ttyAML0,115200 root=/dev/mmcblk0p2 rootwait ro fsck.fix=yes net.ifnames=0 max_freq=1536
[    0.000000] log_buf_len individual max cpu contribution: 4096 bytes
[    0.000000] log_buf_len total cpu_extra contributions: 12288 bytes
[    0.000000] log_buf_len min size: 16384 bytes
[    0.000000] log_buf_len: 32768 bytes
[    0.000000] early log buf free: 14772(90%)
[    0.000000] PID hash table entries: 4096 (order: 3, 32768 bytes)
[    0.000000] Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes)
[    0.000000] Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes)
[    0.000000] Memory: 1899808K/1966080K available (7996K kernel code, 794K rwdata, 3440K rodata, 960K init, 272K bss, 49888K reserved, 1)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     modules : 0xffff000000000000 - 0xffff000008000000   (   128 MB)
[    0.000000]     vmalloc : 0xffff000008000000 - 0xffff7dffbfff0000   (129022 GB)
[    0.000000]       .text : 0xffff000008080000 - 0xffff000008850000   (  8000 KB)
[    0.000000]     .rodata : 0xffff000008850000 - 0xffff000008bb0000   (  3456 KB)
[    0.000000]       .init : 0xffff000008bb0000 - 0xffff000008ca0000   (   960 KB)
[    0.000000]       .data : 0xffff000008ca0000 - 0xffff000008d66a00   (   795 KB)
[    0.000000]        .bss : 0xffff000008d66a00 - 0xffff000008daad34   (   273 KB)
[    0.000000]     fixed   : 0xffff7dfffe7fd000 - 0xffff7dfffec00000   (  4108 KB)
[    0.000000]     PCI I/O : 0xffff7dfffee00000 - 0xffff7dffffe00000   (    16 MB)
[    0.000000]     vmemmap : 0xffff7e0000000000 - 0xffff800000000000   (  2048 GB maximum)
[    0.000000]               0xffff7e0000000000 - 0xffff7e0001e00000   (    30 MB actual)
[    0.000000]     memory  : 0xffff800000000000 - 0xffff800078000000   (  1920 MB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000]  Build-time adjustment of leaf fanout to 64.
[    0.000000]  RCU restricting CPUs from NR_CPUS=64 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.000119] Console: colour dummy device 80x25
[    0.000136] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=96000)
[    0.000143] pid_max: default: 32768 minimum: 301
[    0.000186] Security Framework initialized
[    0.000213] Mount-cache hash table entries: 4096 (order: 3, 32768 bytes)
[    0.000217] Mountpoint-cache hash table entries: 4096 (order: 3, 32768 bytes)
[    0.000796] ASID allocator initialised with 65536 entries
[    0.024186] EFI services will not be available.
[    0.048684] Detected VIPT I-cache on CPU1
[    0.048718] CPU1: Booted secondary processor [410fd034]
[    0.064689] Detected VIPT I-cache on CPU2
[    0.064705] CPU2: Booted secondary processor [410fd034]
[    0.080709] Detected VIPT I-cache on CPU3
[    0.080724] CPU3: Booted secondary processor [410fd034]
[    0.080756] Brought up 4 CPUs
[    0.080768] SMP: Total of 4 processors activated.
[    0.080773] CPU features: detected feature: 32-bit EL0 Support
[    0.080778] CPU: All CPU(s) started at EL2
[    0.080793] alternatives: patching kernel code
[    0.081522] devtmpfs: initialized
[    0.082630] DMI not present or invalid.
[    0.082757] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.083082] pinctrl core: initialized pinctrl subsystem
[    0.083784] NET: Registered protocol family 16
[    0.104156] cpuidle: using governor menu
[    0.104297] vdso: 2 pages (1 code @ ffff000008856000, 1 data @ ffff000008ca4000)
[    0.104307] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[    0.104757] DMA: preallocated 256 KiB pool for atomic allocations
[    0.104920] Serial: AMBA PL011 UART driver
[    0.128543] HugeTLB registered 2 MB page size, pre-allocated 0 pages
[    0.129598] ACPI: Interpreter disabled.
[    0.129923] vgaarb: loaded
[    0.130085] SCSI subsystem initialized
[    0.130361] usbcore: registered new interface driver usbfs
[    0.130398] usbcore: registered new interface driver hub
[    0.130445] usbcore: registered new device driver usb
[    0.130659] pps_core: LinuxPPS API ver. 1 registered
[    0.130663] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.130681] PTP clock support registered
[    0.130774] dmi: Firmware registration failed.
[    0.130934] Advanced Linux Sound Architecture Driver Initialized.
[    0.131476] clocksource: Switched to clocksource arch_sys_counter
[    0.131576] VFS: Disk quotas dquot_6.6.0
[    0.131608] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[    0.131763] pnp: PnP ACPI: disabled
[    0.136058] NET: Registered protocol family 2
[    0.136393] TCP established hash table entries: 16384 (order: 5, 131072 bytes)
[    0.136479] TCP bind hash table entries: 16384 (order: 6, 262144 bytes)
[    0.136664] TCP: Hash tables configured (established 16384 bind 16384)
[    0.136722] UDP hash table entries: 1024 (order: 3, 32768 bytes)
[    0.136754] UDP-Lite hash table entries: 1024 (order: 3, 32768 bytes)
[    0.136862] NET: Registered protocol family 1
[    0.137047] RPC: Registered named UNIX socket transport module.
[    0.137051] RPC: Registered udp transport module.
[    0.137054] RPC: Registered tcp transport module.
[    0.137057] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.137469] hw perfevents: enabled with armv8_cortex_a53 PMU driver, 7 counters available
[    0.137554] kvm [1]: IDMAP page: 1846000
[    0.137558] kvm [1]: HYP VA range: 800000000000:ffffffffffff
[    0.138016] kvm [1]: 8-bit VMID
[    0.138019] kvm [1]: Hyp mode initialized successfully
[    0.138045] kvm [1]: vgic-v2@c4304000
[    0.138110] kvm [1]: vgic interrupt IRQ1
[    0.138162] kvm [1]: virtual timer IRQ4
[    0.138948] futex hash table entries: 1024 (order: 5, 131072 bytes)
[    0.139013] audit: initializing netlink subsys (disabled)
[    0.139042] audit: type=2000 audit(0.128:1): initialized
[    0.139383] workingset: timestamp_bits=46 max_order=19 bucket_order=0
[    0.145489] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.146005] NFS: Registering the id_resolver key type
[    0.146024] Key type id_resolver registered
[    0.146027] Key type id_legacy registered
[    0.146034] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.146152] 9p: Installing v9fs 9p2000 file system support
[    0.147459] io scheduler noop registered
[    0.147595] io scheduler cfq registered (default)
[    0.148103] libphy: mdio_driver_register: phy-bcm-ns2-pci
[    0.150222] xenfs: not registering filesystem on non-xen platform
[    0.152392] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    0.153332] SuperH (H)SCI(F) driver initialized
[    0.153519] c81004c0.serial: ttyAML0 at MMIO 0xc81004c0 (irq = 10, base_baud = 1500000) is a meson_uart
[    0.880733] console [ttyAML0] enabled
[    0.884655] msm_serial: driver initialized
[    0.888622] Unable to detect cache hierarchy from DT for CPU 0
[    0.897142] loop: module loaded
[    0.898399] libphy: Fixed MDIO Bus: probed
[    0.901665] tun: Universal TUN/TAP device driver, 1.6
[    0.906341] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
[    0.912773] e1000e: Intel(R) PRO/1000 Network Driver - 3.2.6-k
[    0.918243] e1000e: Copyright(c) 1999 - 2015 Intel Corporation.
[    0.924151] igb: Intel(R) Gigabit Ethernet Network Driver - version 5.3.0-k
[    0.931004] igb: Copyright (c) 2007-2014 Intel Corporation.
[    0.936556] igbvf: Intel(R) Gigabit Virtual Function Network Driver - version 2.0.2-k
[    0.944285] igbvf: Copyright (c) 2009 - 2012 Intel Corporation.
[    0.950186] sky2: driver version 1.30
[    0.954040] VFIO - User Level meta-driver version: 0.3
[    0.959535] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.965336] ehci-pci: EHCI PCI platform driver
[    0.969756] ehci-platform: EHCI generic platform driver
[    0.974951] ehci-exynos: EHCI EXYNOS driver
[    0.979080] ehci-msm: Qualcomm On-Chip EHCI Host Controller
[    0.984599] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.990702] ohci-pci: OHCI PCI platform driver
[    0.995117] ohci-platform: OHCI generic platform driver
[    1.000302] ohci-exynos: OHCI EXYNOS driver
[    1.004595] usbcore: registered new interface driver usb-storage
[    1.010834] mousedev: PS/2 mouse device common for all mice
[    1.016384] i2c /dev entries driver
[    1.020140] sdhci: Secure Digital Host Controller Interface driver
[    1.025453] sdhci: Copyright(c) Pierre Ossman
[    1.029784] Synopsys Designware Multimedia Card Interface Driver
[    1.035872] sdhci-pltfm: SDHCI platform and OF driver helper
[    1.041751] ledtrig-cpu: registered to indicate activity on CPUs
[    1.047714] usbcore: registered new interface driver usbhid
[    1.052792] usbhid: USB HID core driver
[    1.058163] NET: Registered protocol family 17
[    1.061055] 9pnet: Installing 9P2000 support
[    1.065250] Key type dns_resolver registered
[    1.069883] registered taskstats version 1
[    1.073684] hctosys: unable to open rtc device (rtc0)
[    1.080561] ALSA device list:
[    1.081418]   No soundcards found.
[    1.090465] Waiting for root device /dev/mmcblk0p2...

and there it hangs :(
nobe
 
Posts: 103
Joined: Sun Feb 07, 2016 9:52 pm
languages_spoken: english, french
ODROIDs: Odroid-C2

Re: Odroid C2 mainline kernel support

Unread postby brad » Sat Nov 05, 2016 8:17 am

nobe wrote:and there it hangs :(


I experienced the same thing a while back and as quick fix I reverted to old arm firmware to restrict to 1.5G. (In my case when it froze I had stall detection enabled in the kernel and the console showed me a cpu got stuck due to the overclocking and an illegal instructions). I will try to find a workaround for newer firmware to restrict cpufreq.
brad
 
Posts: 686
Joined: Tue Mar 29, 2016 1:22 pm
Location: Australia
languages_spoken: english
ODROIDs: C2

Re: Odroid C2 mainline kernel support

Unread postby alpha_one_x86 » Sat Nov 05, 2016 10:10 am

When the ethernet patch will be integrated to the mainline?
Developer of ImageUltracopier/ImageSupercopier and of the game ImageCatchChallenger
User avatar
alpha_one_x86
 
Posts: 92
Joined: Wed Aug 27, 2014 6:47 am
languages_spoken: french, english, spanish
ODROIDs: 15 odroid u3, 10 odroid c1, 50 odroid c2

Next

Return to General Chat

Who is online

Users browsing this forum: No registered users and 2 guests