Odroid C2 mainline kernel support

Moderators: mdrjr, odroid

Re: Odroid C2 mainline kernel support

Unread postby brad » Fri Oct 27, 2017 2:49 pm

campbell wrote:This is a specific bug that only currently occurs in 4.14-RC and has a fix that has just not made it into the Arch repo yet. If you upgrade to 4.13 (the latest actually released kernel) it's fine.


Looks like fixes will make it into 4.14...

http://lists.infradead.org/pipermail/li ... 04838.html

Interestingly Jerome has tested these fixes in hs400 mode at 220MB/s read which is very respectable. Im not sure of the make of the emmc.
brad
 
Posts: 707
Joined: Tue Mar 29, 2016 1:22 pm
Location: Australia
languages_spoken: english
ODROIDs: C2

Re: Odroid C2 mainline kernel support

Unread postby daggs » Sun Nov 05, 2017 2:57 am

Greetings,

what is the support status of latest stable kernel? does one needs special patches to get the board to boot?
daggs
 
Posts: 219
Joined: Tue Mar 22, 2016 6:34 pm
languages_spoken: english, spanish
ODROIDs: odroid c2

Re: Odroid C2 mainline kernel support

Unread postby asavah » Sun Nov 05, 2017 7:04 am

Few hours ago I've built the kernel straight from mainline master which already has the patches that were supposed to fix mmc merged ...
No luck, the board boots fine but with emmc in RO, CRC errors.
asavah
 
Posts: 18
Joined: Sat Jul 16, 2016 7:00 am
languages_spoken: english
ODROIDs: c2

Re: Odroid C2 mainline kernel support

Unread postby rpcameron » Sun Nov 05, 2017 8:50 am

daggs wrote:Greetings,

what is the support status of latest stable kernel? does one needs special patches to get the board to boot?

I'm running mainline 4.13.11 on mainline u-boot 2017.09 without much issue off eMMC. I get occasional hangs, but otherwise everything's fine. (Well, except for the issue of USB devices only being recognized when they are inserted in pairs as previously acknowledged.)
rpcameron
 
Posts: 277
Joined: Sat Apr 30, 2016 7:24 am
languages_spoken: english
ODROIDs: C2

Re: Odroid C2 mainline kernel support

Unread postby maxvirrozeito » Fri Nov 10, 2017 9:09 pm

I am looking for a bit of help running mainline u-boot with mainline Linux kernel. I am using an Odroid-C2 headless so from what I read, the current level of support in mainline Linux should be sufficient for me.

This thread has been helpful so far, I managed to run u-boot 2017.09 but I am struggling with the kernel (4.13.9).
boot.ini although present in the boot partition of the SD card does not seem to get called and instead u-boot tries to find an OS with TFTP.

If I interrupt the booting sequence, then I can enter a few commands
Code: Select all
setenv bootargs "console=tty0 boot=/dev/mmcblk0p1 root=/dev/mmcblk0p2 rootwait ro"
fatload mmc 0:1 0x1080000 uImage
fatload mmc 0:1 0x1000000 meson-gxbb-odroidc2.dtb
bootm 0x1080000 - 0x1000000

Then the kernel hangs with 'Starting kernel...'
(The blue LED is flashing)

What should I look for to debug this problem? Thank you in advance for your help
maxvirrozeito
 
Posts: 4
Joined: Fri Nov 10, 2017 9:00 pm
languages_spoken: english
ODROIDs: Odroid-C2

Re: Odroid C2 mainline kernel support

Unread postby rpcameron » Fri Nov 10, 2017 11:05 pm

maxvirrozeito wrote:I am looking for a bit of help running mainline u-boot with mainline Linux kernel. I am using an Odroid-C2 headless so from what I read, the current level of support in mainline Linux should be sufficient for me.

This thread has been helpful so far, I managed to run u-boot 2017.09 but I am struggling with the kernel (4.13.9).
boot.ini although present in the boot partition of the SD card does not seem to get called and instead u-boot tries to find an OS with TFTP.

If I interrupt the booting sequence, then I can enter a few commands
Code: Select all
setenv bootargs "console=tty0 boot=/dev/mmcblk0p1 root=/dev/mmcblk0p2 rootwait ro"
fatload mmc 0:1 0x1080000 uImage
fatload mmc 0:1 0x1000000 meson-gxbb-odroidc2.dtb
bootm 0x1080000 - 0x1000000

Then the kernel hangs with 'Starting kernel...'
(The blue LED is flashing)

What should I look for to debug this problem? Thank you in advance for your help

Mainline uboot does not use the boot.ini. It needs a compiled script, and the syntax is slightly different.
rpcameron
 
Posts: 277
Joined: Sat Apr 30, 2016 7:24 am
languages_spoken: english
ODROIDs: C2

Re: Odroid C2 mainline kernel support

Unread postby maxvirrozeito » Fri Nov 10, 2017 11:25 pm

Ok. I actually compiled my boot.ini into boot.scr with the command:
Code: Select all
mkimage -C none -A arm -T script -d boot.ini boot.scr

and that boot.scr is now automatically picked up when u-boot runs.

I am still left with the problem that the kernel does not start properly or hangs.
My boot.ini is as follows. Is there something that looks wrong with the syntax?

Code: Select all
#------------------------------------------------------------------------------------------------------
#
# boot.ini identification
#
#------------------------------------------------------------------------------------------------------
ODROIDC2-UBOOT-CONFIG

#------------------------------------------------------------------------------------------------------
#
# Boot Specific Stuff
#
# Note: set root=root=/dev/mmcblk0p2 for mmc card boot
#------------------------------------------------------------------------------------------------------
setenv bootrootfs "root=UUID=2eb32696-27ff-4fc1-9201-e4b501bc3d17"

# Auto Detection of Monitor settings based on your Screen information
# See: http://odroid.com/dokuwiki/doku.php?id=en:c2_auto_detect_display
setenv display_autodetect "true"

# HDMI mode
setenv m "1080p60hz" # Progressive 60Hz

# HDMI BPP Mode
setenv m_bpp "32"

# Uncomment only a single Line! The line with setenv written.
# At least one mode must be selected.
# setenv vout "dvi"
# setenv vout "vga"

# HDMI HotPlug Detection control
# Allows you to force HDMI thinking that the cable is connected.
# true = HDMI will believe that cable is always connected
# false = will let board/monitor negotiate the connection status
setenv hpd "true"
# setenv hpd "false"

# Meson Timer
# 1 - Meson Timer
# 0 - Arch Timer
# Using meson_timer improves the video playback however it breaks KVM (virtualization).
# Using arch timer allows KVM/Virtualization to work however you'll experience poor video
setenv mesontimer "1"

# Server Mode (aka. No Graphics)
# Setting nographics to 1 will disable all video subsystem
# This mode is ideal of server type usage. (Saves ~300Mb of RAM)
setenv nographics "0"

# Monitor output
# Controls if HDMI PHY should output anything to the monitor
setenv monitor_onoff "false" # true or false

# UHS (Ultra High Speed) MicroSD mode enable/disable
setenv disableuhs "false"

# MicroSD Card Detection enable/disable
# Force the MMC controlled to believe that a card is connected.
setenv mmc_removable "true"

# USB Multi WebCam tweak
# Only enable this if you use it.
setenv usbmulticam "false"

# Disable/Enable ODROID-VU7 Touchscreen
setenv disable_vu7 "true"

#------------------------------------------------------------------------------------------------------
#
# Console Setup
#   setenv condev "console=ttyAML0,115200n8"                # on serial port
#   setenv condev "console=tty0"                            # on display (HDMI)
#   setenv condev "console=tty0 console=ttyAML0,115200n8"   # on both
#
#------------------------------------------------------------------------------------------------------
setenv console "console=tty0 console=ttyAML0,115200n8"

#------------------------------------------------------------------------------------------------------
#
# LibreELEC variables
#
# Setup the LibreELEC options
#   valid values are: textmode debugging progress nofsck nosplash noram overlay quiet ssh
#------------------------------------------------------------------------------------------------------
# setenv libreelec "quiet"

#------------------------------------------------------------------------------------------------------
#
# Odroid C2 specific
#
#------------------------------------------------------------------------------------------------------
setenv odroid   "no_console_suspend consoleblank=0 loglevel=8 debug ro rootwait"

# CPU Frequency / Cores control
###########################################
### WARNING!!! WARNING!!! WARNING!!!
# Before changing anything here please read the wiki entry:
# http://odroid.com/dokuwiki/doku.php?id=en:c2_set_cpu_freq
#
# MAX CPU's
# setenv maxcpus "1"
# setenv maxcpus "2"
# setenv maxcpus "3"
setenv maxcpus "4"

# MAX Frequency
# setenv max_freq "2016"  # 2.016GHz
# setenv max_freq "1944"  # 1.944GHz
# setenv max_freq "1944"  # 1.944GHz
# setenv max_freq "1920"  # 1.920GHz
# setenv max_freq "1896"  # 1.896GHz
# setenv max_freq "1752"  # 1.752GHz
# setenv max_freq "1680"  # 1.680GHz
# setenv max_freq "1656"  # 1.656GHz
setenv max_freq "1536"  # 1.536GHz

#------------------------------------------------------------------------------------------------------
#
# U-Boot bootcmd command
#
#------------------------------------------------------------------------------------------------------
setenv kernel  "fatload mmc 0:1 0x1080000 uImage"
setenv dtb     "fatload mmc 0:1 0x1000000 meson-gxbb-odroidc2.dtb"
setenv bootseq "bootm 0x1080000 - 0x1000000"
setenv bootcmd "${kernel}; ${dtb}; ${bootseq}"

#------------------------------------------------------------------------------------------------------
#
# Kernel boot
#
#------------------------------------------------------------------------------------------------------

# Populate the final bootcmd
setenv bootargs "${console} ${bootrootfs} ${odroid} ${libreelec}"

# Boot the board
run bootcmd

For the rootfs, I just extracted an Ubuntu 17.04 tar.gz image into the second partition of the SD card formatted as ext4.
maxvirrozeito
 
Posts: 4
Joined: Fri Nov 10, 2017 9:00 pm
languages_spoken: english
ODROIDs: Odroid-C2

Re: Odroid C2 mainline kernel support

Unread postby asavah » Sat Nov 11, 2017 5:22 am

What's the output you get?

What is the binutils version used to build your kernel?
For me building mainline kernel with 2.29.1 resulted in "Starting kernel ..." and silence (mainline-uboot too)
Building with binutils 2.28.1 results in kernel actually booting but EMMC is read-only with 4.14

My boot.txt (mostly stolen from ALARM)
Code: Select all
test -n "${distro_bootpart}" || setenv distro_bootpart 1
setenv bootargs "console=ttyAML0,115200n8 console=tty1 root=/dev/mmcblk0p2 ro rootwait earlycon"

if load ${devtype} ${devnum}:${distro_bootpart} ${kernel_addr_r} Image; then
  if load ${devtype} ${devnum}:${distro_bootpart} ${fdt_addr_r} meson-gxbb-odroidc2.dtb; then
      booti ${kernel_addr_r} - ${fdt_addr_r};
  fi;
fi


EDIT: PS: You seem to be using modified old LE boot.ini for HK uboot, most of that stuff is no longer valid with mainline.
asavah
 
Posts: 18
Joined: Sat Jul 16, 2016 7:00 am
languages_spoken: english
ODROIDs: c2

Re: Odroid C2 mainline kernel support

Unread postby maxvirrozeito » Tue Nov 14, 2017 12:06 am

EDIT: PS: You seem to be using modified old LE boot.ini for HK uboot, most of that stuff is no longer valid with mainline.


This is true, it is probably a mix and match. I did not know what was still relevant for mainline u-boot so I left everything but it needs cleaning up. Is there any documentation that could help me determining what I can leave out safely instead of doing a lot of trial and error?

Regarding the mainline kernel, after rebuilding it, it now boots. I had some rootfs issues also. At least I have a prompt now but it is quite basic. It is a Ubuntu minimal image (17.10) but I cannot even get apt-get to update/install packages.

However, when I plug the SD card in a laptop and chroot to it, I can update everything I need. So it could be a rw issue.
maxvirrozeito
 
Posts: 4
Joined: Fri Nov 10, 2017 9:00 pm
languages_spoken: english
ODROIDs: Odroid-C2

Re: Odroid C2 mainline kernel support

Unread postby campbell » Tue Nov 14, 2017 2:53 am

I can confirm that after running pacman -Syu this morning, mainline kernel 4.14.0-1-ARCH is working fine, on an emmc, without the read-only-fs issue, and I get about 167 MB/s from "sudo dd if=/dev/mmcblk0 of=/dev/null bs=2048 status=progress" after one minute.
campbell
 
Posts: 288
Joined: Thu Sep 03, 2015 1:13 pm
languages_spoken: english
ODROIDs: XU3, XU4, C2, C1+, Cloudshell, Smart Power

Re: Odroid C2 mainline kernel support

Unread postby campbell » Tue Nov 14, 2017 3:01 am

campbell wrote:I can confirm that after running pacman -Syu this morning, mainline kernel 4.14.0-1-ARCH is working fine, on an emmc, without the read-only-fs issue, and I get about 167 MB/s from "sudo dd if=/dev/mmcblk0 of=/dev/null bs=2048 status=progress" after one minute.

AND it seems to be just fine at recognising when a single USB device is plugged in!
campbell
 
Posts: 288
Joined: Thu Sep 03, 2015 1:13 pm
languages_spoken: english
ODROIDs: XU3, XU4, C2, C1+, Cloudshell, Smart Power

Re: Odroid C2 mainline kernel support

Unread postby asavah » Tue Nov 14, 2017 9:17 am

campbell wrote:I can confirm that after running pacman -Syu this morning, mainline kernel 4.14.0-1-ARCH is working fine, on an emmc, without the read-only-fs issue, and I get about 167 MB/s from "sudo dd if=/dev/mmcblk0 of=/dev/null bs=2048 status=progress" after one minute.


Which emmc module you have?
Which uboot?

Mine is reported as
Code: Select all
[    1.172802] mmc0: new HS200 MMC card at address 0001
[    1.173196] mmcblk0: mmc0:0001 AGND3R 14.6 GiB


I get this error, haven't tried 4.14 release yet, the error is from rc
Code: Select all
[    1.795698] mmcblk0: response CRC error sending r/w cmd command, card status 0xd00
asavah
 
Posts: 18
Joined: Sat Jul 16, 2016 7:00 am
languages_spoken: english
ODROIDs: c2

Re: Odroid C2 mainline kernel support

Unread postby campbell » Tue Nov 14, 2017 1:12 pm

I'm using the mainline uboot and kernel in the Arch Linux repo. Scroll back a page or two in this thread to see the exact sequence for installing it.
Code: Select all
[    1.995677] mmc0: new HS200 MMC card at address 0001
[    1.996303] mmcblk0: mmc0:0001 SDW16G 14.7 GiB
Unfortunately I can't say for sure whether I had the read-only-filesystem issue with this same eMMC under 4.14-RC. I definitely did with one of the black ones (the ones for odroid C2 only). This is one of the red ones (the ones that work with either XU4 or C2). I'll try installing 4.14.0 on the black one later tonight or tomorrow if I get a chance.

[edit] Yes, the black one (which definitely didn't work under 4.14-RC) also works now:
Code: Select all
[    1.098771] mmc0: new HS200 MMC card at address 0001
[    1.099216] mmcblk0: mmc0:0001 8GND3R 7.28 GiB
campbell
 
Posts: 288
Joined: Thu Sep 03, 2015 1:13 pm
languages_spoken: english
ODROIDs: XU3, XU4, C2, C1+, Cloudshell, Smart Power

Re: Odroid C2 mainline kernel support

Unread postby asavah » Tue Nov 14, 2017 9:35 pm

Thanks gotta rebuild all the stuff and try again later, fingers crossed.
My emmc is a black one.

> Scroll back a page or two in this thread to see the exact sequence for installing it.
Thanks, but I build all my stuff from source, I have build process figured out and scripted. :P
asavah
 
Posts: 18
Joined: Sat Jul 16, 2016 7:00 am
languages_spoken: english
ODROIDs: c2

Re: Odroid C2 mainline kernel support

Unread postby maxvirrozeito » Tue Nov 14, 2017 11:04 pm

With mainline u-boot (2017.09), mainline kernel (4.13.9) and Ubuntu minimal rootfs (17.10), I cannot connect over Ethernet.

The interface eth0 is missing altogether (only lo is present when invoking ifconfig). Has anyone faced this problem? If so, how could I resolve it?
I already tried to set something in /etc/network/interfaces but to no avail.
maxvirrozeito
 
Posts: 4
Joined: Fri Nov 10, 2017 9:00 pm
languages_spoken: english
ODROIDs: Odroid-C2

Re: Odroid C2 mainline kernel support

Unread postby asavah » Wed Nov 15, 2017 8:30 am

No luck, my emmc seems to refuse to work with 4.14 , emmc itself is ok, tested.
The system boots fine from sdcard.
asavah
 
Posts: 18
Joined: Sat Jul 16, 2016 7:00 am
languages_spoken: english
ODROIDs: c2

Re: Odroid C2 mainline kernel support

Unread postby asavah » Wed Nov 15, 2017 10:58 am

Ok, this is getting better.
Finally figured it out. My emmc doesn't like 270 tx_phase, reverted it to 0 and voila - emmc runs fine.
I was able to add working hdmi (no audio yet) support by snatching a patchset from ML and and kernel patchwork.
Code: Select all
[    3.208902] meson-drm d0100000.vpu: Queued 2 outputs on vpu
[    3.214290] meson-drm d0100000.vpu: Failed to create debugfs directory
[    3.215483] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    3.224041] [drm] No driver support for vblank timestamp query.
[    3.228486] meson-drm d0100000.vpu: CVBS Output connector not available
[    3.266041] meson-dw-hdmi c883a000.hdmi-tx: Detected HDMI TX controller v2.01a with HDCP (meson_dw_hdmi_phy)
[    3.271414] meson-dw-hdmi c883a000.hdmi-tx: registered DesignWare HDMI I2C bus driver
[    3.272343] meson-drm d0100000.vpu: bound c883a000.hdmi-tx (ops meson_dw_hdmi_ops [meson_dw_hdmi])
[    3.566707] Console: switching to colour frame buffer device 240x67
[    3.612002] meson-drm d0100000.vpu: fb0:  frame buffer device
[    3.634643] [drm] Initialized meson 1.0.0 20161109 for d0100000.vpu on minor 0


https://github.com/asavah/odroid-c2-mainline-patches
Patches are to be applied on top of vanilla linux-4.14.y tree.
Some patches are optional, see readme.
If your emmc works fine - don't apply odroidc2-tx-clock-0.patch
arm64-* patches are from armbian
I've only tested this with mainline uboot.

When prompted for MESON_GX_PM_DOMAINS and MESON_GX_SOCINFO say Y(es) , MESON_MX_SOCINFO is not needed for c2.
asavah
 
Posts: 18
Joined: Sat Jul 16, 2016 7:00 am
languages_spoken: english
ODROIDs: c2

Re: Odroid C2 mainline kernel support

Unread postby teknoid » Thu Nov 16, 2017 8:12 am

Huge thanks go for the people from baylibre (https://github.com/baylibre) who are bringing meson support into mainline and all the kernel developers.
Huge "booooo" goes for hardkernel for not supporting their own hardware, and leaving odroid-c2 users with an outdated kernel plagued by hacks and affected by CVEs.


fulll ack!!!

I totally disappointed moved to nanopi.
User avatar
teknoid
 
Posts: 7
Joined: Sat May 27, 2017 3:02 am
languages_spoken: german
ODROIDs: C2

Re: Odroid C2 mainline kernel support

Unread postby moon.linux » Thu Nov 16, 2017 11:47 am

@baylibre have contract with Amlogic to extend support to all Amlogic device.
moon.linux
 
Posts: 1159
Joined: Thu Oct 02, 2014 11:42 pm
languages_spoken: english

Re: Odroid C2 mainline kernel support

Unread postby daggs » Fri Nov 17, 2017 9:48 pm

asavah wrote:Ok, this is getting better.
Finally figured it out. My emmc doesn't like 270 tx_phase, reverted it to 0 and voila - emmc runs fine.
I was able to add working hdmi (no audio yet) support by snatching a patchset from ML and and kernel patchwork.
Code: Select all
[    3.208902] meson-drm d0100000.vpu: Queued 2 outputs on vpu
[    3.214290] meson-drm d0100000.vpu: Failed to create debugfs directory
[    3.215483] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    3.224041] [drm] No driver support for vblank timestamp query.
[    3.228486] meson-drm d0100000.vpu: CVBS Output connector not available
[    3.266041] meson-dw-hdmi c883a000.hdmi-tx: Detected HDMI TX controller v2.01a with HDCP (meson_dw_hdmi_phy)
[    3.271414] meson-dw-hdmi c883a000.hdmi-tx: registered DesignWare HDMI I2C bus driver
[    3.272343] meson-drm d0100000.vpu: bound c883a000.hdmi-tx (ops meson_dw_hdmi_ops [meson_dw_hdmi])
[    3.566707] Console: switching to colour frame buffer device 240x67
[    3.612002] meson-drm d0100000.vpu: fb0:  frame buffer device
[    3.634643] [drm] Initialized meson 1.0.0 20161109 for d0100000.vpu on minor 0


https://github.com/asavah/odroid-c2-mainline-patches
Patches are to be applied on top of vanilla linux-4.14.y tree.
Some patches are optional, see readme.
If your emmc works fine - don't apply odroidc2-tx-clock-0.patch
arm64-* patches are from armbian
I've only tested this with mainline uboot.

When prompted for MESON_GX_PM_DOMAINS and MESON_GX_SOCINFO say Y(es) , MESON_MX_SOCINFO is not needed for c2.

two questions:
  1. if MESON_MX_SOCINFO is not needed, why 0000-mx-socinfo.patch is needed?
  2. I see vpu patches, this means that the vpu is fully supported?
daggs
 
Posts: 219
Joined: Tue Mar 22, 2016 6:34 pm
languages_spoken: english, spanish
ODROIDs: odroid c2

Re: Odroid C2 mainline kernel support

Unread postby asavah » Fri Nov 17, 2017 10:03 pm

1) The patch was needed because otherwise the following patches would not apply cleanly, and I'm too lazy to rebase.
2) It's only vpu power support, which seems to be needed to enable hdmi. HW video decoding is not supported.
asavah
 
Posts: 18
Joined: Sat Jul 16, 2016 7:00 am
languages_spoken: english
ODROIDs: c2

Re: Odroid C2 mainline kernel support

Unread postby gkkpch » Sat Nov 18, 2017 2:49 am

I have watched this thread with interest, my intention is to switch to a mainline kernel for Volumio 2 as soon as i2s is supported properly.
From Neil Amstrong's video I understand it will take a good number of months before audio is supported.
Our focus is stereo output , no need for multichannel (as of yet) because most "audiophile" devices don't support anything else.
Does anyone have more accurate info on this subject?

-- Gé --
User avatar
gkkpch
 
Posts: 250
Joined: Mon Feb 25, 2013 11:47 pm
Location: Switzerland
languages_spoken: english, dutch, german
ODROIDs: Odroid-C1+, Odroid-C1+ HiFi shield, Odroid-C1, Odroid-X2

Re: Odroid C2 mainline kernel support

Unread postby asavah » Sat Nov 18, 2017 4:34 am

AFAIK it's work in progress. i2s patches haven't hit the ML yet.
https://github.com/BayLibre/libretech-l ... hdmi-audio (AFAIK this is for HDMI audio only, but I'm no expert)

>Does anyone have more accurate info on this subject?
Guess we'll have to wait until amlogic gx* socs get a proper kernel with full support of all the functionality they have, when will this happen? No idea.
But it least there is some nice movement.
asavah
 
Posts: 18
Joined: Sat Jul 16, 2016 7:00 am
languages_spoken: english
ODROIDs: c2

Re: Odroid C2 mainline kernel support

Unread postby gkkpch » Sat Nov 18, 2017 5:17 am

oh, nice HDMI is getting there.
But while waiting for spdif and i2s we will stick to the 3.14 kernel before it makes sense to switch.
User avatar
gkkpch
 
Posts: 250
Joined: Mon Feb 25, 2013 11:47 pm
Location: Switzerland
languages_spoken: english, dutch, german
ODROIDs: Odroid-C1+, Odroid-C1+ HiFi shield, Odroid-C1, Odroid-X2

Re: Odroid C2 mainline kernel support

Unread postby campbell » Thu Nov 23, 2017 3:06 am

Can someone else verify that USB is working for them in 4.14 as released? It's working for me, but a colleague says it's not working for her.
campbell
 
Posts: 288
Joined: Thu Sep 03, 2015 1:13 pm
languages_spoken: english
ODROIDs: XU3, XU4, C2, C1+, Cloudshell, Smart Power

Re: Odroid C2 mainline kernel support

Unread postby daggs » Sat Nov 25, 2017 7:24 pm

Greetings,

I'm trying to boot kernel 4.13.13 (vanilla) and the system seems to hang at early stage not sure why.
the only patch I've added is the odroidc2 defconfig.

any idea what I'm missing? at this stage I want to get a functioning system based on vanilla kernel with the least patches, even if it means less features (vpu for example)

here are some outputs:
uboot cfg:
Code: Select all
setenv loadaddr "0x1080000"
setenv dtb_loadaddr "0x01000000"
setenv kernel_filename "uImage"
setenv fdt_filename "meson-gxbb-odroidc2.dtb"
setenv bootargs "console=ttyAML0,115200n8 console=tty0 earlyprintk root=/dev/mmcblk0p2 rootwait panic=10 ${extra}"

fatload mmc 0:1 ${loadaddr} ${kernel_filename}
fatload mmc 0:1 ${dtb_loadaddr} ${fdt_filename}

bootm ${loadaddr} - ${dtb_loadaddr}


Code: Select all
GXBB:BL1:08dafd:0a8993;FEAT:EDFC318C;POC:3;RCY:0;EMMC:800;NAND:81;SD:0;READ:0;CHK:0;
TE: 441991
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: 0x000018c0
Wait bl30...Done
Sending bl301.......OK.
Run bl301...
l31 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: ef be ad de d f0 ad ba ef beLoad bl33 from SD, src: 0x00034200, des: 0x01000000, size: 0x0005a5b0
 ad de not ES chip
[0.556793 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 2017.09 (Nov 25 2017 - 11:05:26 +0200) odroid-c2

DRAM:  2 GiB
MMC:   mmc@72000: 0, mmc@74000: 1
Using default environment

In:    serial@4c0
Out:   serial@4c0
Err:   serial@4c0
Net:   eth0: ethernet@c9410000
Hit any key to stop autoboot:  0
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found U-Boot script /boot.scr
reading /boot.scr
459 bytes read in 0 ms
## Executing script at 1f000000
reading uImage
12173888 bytes read in 522 ms (22.2 MiB/s)
reading meson-gxbb-odroidc2.dtb
20723 bytes read in 3 ms (6.6 MiB/s)
## Booting kernel from Legacy Image at 01080000 ...
   Image Name:   linux
   Image Type:   AArch64 Linux Kernel Image (uncompressed)
   Data Size:    12173824 Bytes = 11.6 MiB
   Load Address: 01080000
   Entry Point:  01080000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 01000000
   Booting using the fdt blob at 0x1000000
   Loading Kernel Image ... OK
   Loading Device Tree to 000000000eff7000, end 000000000efff0f2 ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.13.13 (dagg@NCC-5001-D) (gcc version 6.4.0 (Buildroot 2017.11-rc2-00022-g17299cd018-dirty)) #1 SMP PREEMPT Sat Nov 25 11:09:06 IST 2017
[    0.000000] Boot CPU: AArch64 Processor [410fd034]
[    0.000000] Machine model: Hardkernel ODROID-C2
[    0.000000] efi: Getting EFI parameters from FDT:
[    0.000000] efi: UEFI not found.
[    0.000000] Reserved memory: created CMA memory pool at 0x0000000074000000, size 188 MiB
[    0.000000] OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool
[    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 24 pages/cpu @ffff80007fd70000 s59672 r8192 d30440 u98304
[    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: 511048
[    0.000000] Kernel command line: console=ttyAML0,115200n8 console=tty0 earlyprintk root=/dev/mmcblk0p2 rootwait panic=10
[    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: 1835392K/2076672K available (7868K kernel code, 624K rwdata, 2852K rodata, 512K init, 397K bss, 48768K reserved, 192512K 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 - 0xffff000008830000   (  7872 KB)
[    0.000000]     .rodata : 0xffff000008830000 - 0xffff000008b00000   (  2880 KB)
[    0.000000]       .init : 0xffff000008b00000 - 0xffff000008b80000   (   512 KB)
[    0.000000]       .data : 0xffff000008b80000 - 0xffff000008c1c200   (   625 KB)
[    0.000000]        .bss : 0xffff000008c1c200 - 0xffff000008c7f710   (   398 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]               0xffff7e0000040000 - 0xffff7e0001ff8000   (    31 MB actual)
[    0.000000]     memory  : 0xffff800001000000 - 0xffff80007fe00000   (  2030 MB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000]  RCU restricting CPUs from NR_CPUS=64 to nr_cpu_ids=4.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4
[    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[    0.000000] GIC: Using split EOI/Deactivate mode
[    0.000000] arch_timer: 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.000213] Console: colour dummy device 80x25
[    0.000662] console [tty0] enabled
[    0.000683] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=96000)
[    0.000706] pid_max: default: 32768 minimum: 301
[    0.000760] Security Framework initialized
[    0.000803] Mount-cache hash table entries: 4096 (order: 3, 32768 bytes)
[    0.000826] Mountpoint-cache hash table entries: 4096 (order: 3, 32768 bytes)
[    0.016016] ASID allocator initialised with 65536 entries
[    0.024007] Hierarchical SRCU implementation.
[    0.032083] EFI services will not be available.
[    0.040025] smp: Bringing up secondary CPUs ...
[    0.068688] Detected VIPT I-cache on CPU1
[    0.068723] CPU1: Booted secondary processor [410fd034]
[    0.096705] Detected VIPT I-cache on CPU2
[    0.096723] CPU2: Booted secondary processor [410fd034]
[    0.124740] Detected VIPT I-cache on CPU3
[    0.124755] CPU3: Booted secondary processor [410fd034]
[    0.124788] smp: Brought up 1 node, 4 CPUs
[    0.124852] SMP: Total of 4 processors activated.
[    0.124865] CPU features: detected feature: 32-bit EL0 Support
[    0.124966] CPU: All CPU(s) started at EL2
[    0.124987] alternatives: patching kernel code
[    0.125457] devtmpfs: initialized
[    0.127690] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.127721] futex hash table entries: 1024 (order: 5, 131072 bytes)
[    0.130928] pinctrl core: initialized pinctrl subsystem
[    0.131392] random: fast init done
[    0.131526] DMI not present or invalid.
[    0.131714] NET: Registered protocol family 16
[    0.132337] cpuidle: using governor menu
[    0.132667] vdso: 2 pages (1 code @ ffff000008836000, 1 data @ ffff000008b85000)
[    0.132693] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[    0.133275] DMA: preallocated 256 KiB pool for atomic allocations
[    0.133360] Serial: AMBA PL011 UART driver
[    0.141262] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
[    0.142450] SCSI subsystem initialized
[    0.142748] usbcore: registered new interface driver usbfs
[    0.142788] usbcore: registered new interface driver hub
[    0.142838] usbcore: registered new device driver usb
[    0.142986] pps_core: LinuxPPS API ver. 1 registered
[    0.142998] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.143027] PTP clock support registered
[    0.143141] dmi: Firmware registration failed.
[    0.143227] Advanced Linux Sound Architecture Driver Initialized.
[    0.143700] clocksource: Switched to clocksource arch_sys_counter
[    0.143811] VFS: Disk quotas dquot_6.6.0
[    0.143851] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[    0.147580] NET: Registered protocol family 2
[    0.147924] TCP established hash table entries: 16384 (order: 5, 131072 bytes)
[    0.148026] TCP bind hash table entries: 16384 (order: 6, 262144 bytes)
[    0.148218] TCP: Hash tables configured (established 16384 bind 16384)
[    0.148308] UDP hash table entries: 1024 (order: 3, 32768 bytes)
[    0.148351] UDP-Lite hash table entries: 1024 (order: 3, 32768 bytes)
[    0.148480] NET: Registered protocol family 1
[    0.148728] RPC: Registered named UNIX socket transport module.
[    0.148740] RPC: Registered udp transport module.
[    0.148751] RPC: Registered tcp transport module.
[    0.148762] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.149269] hw perfevents: enabled with armv8_cortex_a53 PMU driver, 7 counters available
[    0.149428] kvm [1]: 8-bit VMID
[    0.149439] kvm [1]: IDMAP page: 1826000
[    0.149449] kvm [1]: HYP VA range: 800000000000:ffffffffffff
[    0.149891] kvm [1]: Hyp mode initialized successfully
[    0.149933] kvm [1]: vgic-v2@c4304000
[    0.149978] kvm [1]: vgic interrupt IRQ1
[    0.149995] kvm [1]: virtual timer IRQ4
[    0.150641] audit: initializing netlink subsys (disabled)
[    0.150721] audit: type=2000 audit(0.147:1): state=initialized audit_enabled=0 res=1
[    0.150925] workingset: timestamp_bits=46 max_order=19 bucket_order=0
[    0.154996] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.155397] NFS: Registering the id_resolver key type
[    0.155425] Key type id_resolver registered
[    0.155436] Key type id_legacy registered
[    0.155451] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.155567] 9p: Installing v9fs 9p2000 file system support
[    0.157173] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[    0.157293] io scheduler noop registered
[    0.157380] io scheduler cfq registered (default)
[    0.157392] io scheduler mq-deadline registered
[    0.157403] io scheduler kyber registered
[    0.158167] GPIO line 4 (usb-hub-reset) hogged as output/high
[    0.162027] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[    0.162853] c81004c0.serial: ttyAML0 at MMIO 0xc81004c0 (irq = 12, base_baud = 1500000) is a meson_uart
[    0.890690] console [ttyAML0] enabled
[    0.898754] loop: module loaded
[    0.899115] hisi_sas: driver version v1.6
[    0.902316] libphy: Fixed MDIO Bus: probed
[    0.905690] tun: Universal TUN/TAP device driver, 1.6
[    0.911048] VFIO - User Level meta-driver version: 0.3
[    0.916109] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.921991] ehci-platform: EHCI generic platform driver
[    0.927224] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.933297] ohci-platform: OHCI generic platform driver
[    0.938653] usbcore: registered new interface driver usb-storage
[    0.944892] mousedev: PS/2 mouse device common for all mice
[    0.950198] i2c /dev entries driver
[    0.954440] sdhci: Secure Digital Host Controller Interface driver
[    0.959511] sdhci: Copyright(c) Pierre Ossman
[    0.963838] Synopsys Designware Multimedia Card Interface Driver
[    0.970369] meson-gx-mmc d0074000.mmc: allocated mmc-pwrseq
[    1.016065] sdhci-pltfm: SDHCI platform and OF driver helper
[    1.016505] ledtrig-cpu: registered to indicate activity on CPUs
[    1.022252] meson-sm: secure-monitor enabled
[    1.026689] usbcore: registered new interface driver usbhid
[    1.031798] usbhid: USB HID core driver
[    1.035719] platform-mhu c883c404.mailbox: Platform MHU Mailbox registered
[    1.042659] usbcore: registered new interface driver snd-usb-audio
[    1.049222] NET: Registered protocol family 10
[    1.053878] Segment Routing with IPv6
[    1.056590] NET: Registered protocol family 17
[    1.060996] 9pnet: Installing 9P2000 support
[    1.065252] Key type dns_resolver registered                                                         
[    1.069787] registered taskstats version 1                                                           
[    1.073545] zswap: default zpool zbud not available                                                   
[    1.078281] zswap: pool creation failed                                                               
[    1.085841] dwc2 c9000000.usb: c9000000.usb supply vusb_d not found, using dummy regulator           
[    1.090319] dwc2 c9000000.usb: c9000000.usb supply vusb_a not found, using dummy regulator
[    1.099589] phy phy-c0000000.phy.0: USB ID detect failed!
[    1.103818] phy phy-c0000000.phy.0: phy poweron failed --> -22
[    1.109754] dwc2: probe of c9000000.usb failed with error -22
[    1.115553] dwc2 c9100000.usb: c9100000.usb supply vusb_d not found, using dummy regulator
[    1.123498] dwc2 c9100000.usb: c9100000.usb supply vusb_a not found, using dummy regulator
[    1.251803] dwc2 c9100000.usb: DWC OTG Controller
[    1.251845] dwc2 c9100000.usb: new USB bus registered, assigned bus number 1
[    1.257876] dwc2 c9100000.usb: irq 32, io mem 0xc9100000
[    1.263548] hub 1-0:1.0: USB hub found
[    1.266845] hub 1-0:1.0: 1 port detected
[    1.271279] meson-gx-mmc d0072000.mmc: Got CD GPIO
[    1.317049] scpi_protocol scpi: SCP Protocol 0.0 Firmware 0.0.0 version
[    1.323828] hctosys: unable to open rtc device (rtc0)
[    1.323978] VCC1V8: disabling
[    1.326232] VCC3V3: disabling
[    1.329175] USB_OTG_PWR: disabling
[    1.332533] ALSA device list:
[    1.335458]   No soundcards found.
[    1.338917] Waiting for root device /dev/mmcblk0p2...
[    1.614021] mmc1: new high speed SDHC card at address 59b4
[    1.614307] mmcblk1: mmc1:59b4 USDU1 7.31 GiB
[    1.619029]  mmcblk1: p1 p2
[    1.655710] usb 1-1: new high-speed USB device number 2 using dwc2
[    1.857354] hub 1-1:1.0: USB hub found
[    1.857649] hub 1-1:1.0: 4 ports detected
[  209.475724] random: crng init done
daggs
 
Posts: 219
Joined: Tue Mar 22, 2016 6:34 pm
languages_spoken: english, spanish
ODROIDs: odroid c2

Re: Odroid C2 mainline kernel support

Unread postby moon.linux » Sat Nov 25, 2017 11:42 pm

@daggs: It not able to find the device partition root=/dev/mmcblk0p2 you might need to try root=/dev/mmcblk1p2
I feel you should try 4.14.x for better stability.
moon.linux
 
Posts: 1159
Joined: Thu Oct 02, 2014 11:42 pm
languages_spoken: english

Re: Odroid C2 mainline kernel support

Unread postby daggs » Sun Nov 26, 2017 12:40 am

moon.linux wrote:@daggs: It not able to find the device partition root=/dev/mmcblk0p2 you might need to try root=/dev/mmcblk1p2

thanks, did that, still gets stuck, here is what I get:
Code: Select all
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.13.13 (dagg@NCC-5001-D) (gcc version 6.4.0 (Buildroot 2017.11-rc2-00022-g17299cd018-dirty)) #1 SMP PREEMPT Sat Nov 25 11:09:06 IST 2017
[    0.000000] Boot CPU: AArch64 Processor [410fd034]
[    0.000000] Machine model: Hardkernel ODROID-C2
[    0.000000] efi: Getting EFI parameters from FDT:
[    0.000000] efi: UEFI not found.
[    0.000000] Reserved memory: created CMA memory pool at 0x0000000074000000, size 188 MiB
[    0.000000] OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool
[    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 24 pages/cpu @ffff80007fd70000 s59672 r8192 d30440 u98304
[    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: 511048
[    0.000000] Kernel command line: console=ttyAML0,115200n8 console=tty0 earlyprintk root=/dev/mmcblk1p2 rootwait panic=10
[    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: 1835392K/2076672K available (7868K kernel code, 624K rwdata, 2852K rodata, 512K init, 397K bss, 48768K reserved, 192512K 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 - 0xffff000008830000   (  7872 KB)
[    0.000000]     .rodata : 0xffff000008830000 - 0xffff000008b00000   (  2880 KB)
[    0.000000]       .init : 0xffff000008b00000 - 0xffff000008b80000   (   512 KB)
[    0.000000]       .data : 0xffff000008b80000 - 0xffff000008c1c200   (   625 KB)
[    0.000000]        .bss : 0xffff000008c1c200 - 0xffff000008c7f710   (   398 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]               0xffff7e0000040000 - 0xffff7e0001ff8000   (    31 MB actual)
[    0.000000]     memory  : 0xffff800001000000 - 0xffff80007fe00000   (  2030 MB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000]  RCU restricting CPUs from NR_CPUS=64 to nr_cpu_ids=4.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4
[    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[    0.000000] GIC: Using split EOI/Deactivate mode
[    0.000000] arch_timer: 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.000213] Console: colour dummy device 80x25
[    0.000663] console [tty0] enabled
[    0.000685] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=96000)
[    0.000707] pid_max: default: 32768 minimum: 301
[    0.000760] Security Framework initialized
[    0.000804] Mount-cache hash table entries: 4096 (order: 3, 32768 bytes)
[    0.000827] Mountpoint-cache hash table entries: 4096 (order: 3, 32768 bytes)
[    0.016013] ASID allocator initialised with 65536 entries
[    0.024005] Hierarchical SRCU implementation.
[    0.032082] EFI services will not be available.
[    0.040024] smp: Bringing up secondary CPUs ...
[    0.068688] Detected VIPT I-cache on CPU1
[    0.068724] CPU1: Booted secondary processor [410fd034]
[    0.096705] Detected VIPT I-cache on CPU2
[    0.096721] CPU2: Booted secondary processor [410fd034]
[    0.124739] Detected VIPT I-cache on CPU3
[    0.124754] CPU3: Booted secondary processor [410fd034]
[    0.124787] smp: Brought up 1 node, 4 CPUs
[    0.124851] SMP: Total of 4 processors activated.
[    0.124864] CPU features: detected feature: 32-bit EL0 Support
[    0.124964] CPU: All CPU(s) started at EL2
[    0.124984] alternatives: patching kernel code
[    0.125409] devtmpfs: initialized
[    0.127656] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.127687] futex hash table entries: 1024 (order: 5, 131072 bytes)
[    0.130864] pinctrl core: initialized pinctrl subsystem
[    0.131345] random: fast init done
[    0.131474] DMI not present or invalid.
[    0.131663] NET: Registered protocol family 16
[    0.132300] cpuidle: using governor menu
[    0.132634] vdso: 2 pages (1 code @ ffff000008836000, 1 data @ ffff000008b85000)
[    0.132659] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[    0.136579] DMA: preallocated 256 KiB pool for atomic allocations
[    0.136661] Serial: AMBA PL011 UART driver
[    0.144362] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
[    0.145562] SCSI subsystem initialized
[    0.145870] usbcore: registered new interface driver usbfs
[    0.145916] usbcore: registered new interface driver hub
[    0.145962] usbcore: registered new device driver usb
[    0.146124] pps_core: LinuxPPS API ver. 1 registered
[    0.146137] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.146165] PTP clock support registered
[    0.146247] dmi: Firmware registration failed.
[    0.146326] Advanced Linux Sound Architecture Driver Initialized.
[    0.146811] clocksource: Switched to clocksource arch_sys_counter
[    0.146916] VFS: Disk quotas dquot_6.6.0
[    0.146963] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[    0.150763] NET: Registered protocol family 2
[    0.151111] TCP established hash table entries: 16384 (order: 5, 131072 bytes)
[    0.151211] TCP bind hash table entries: 16384 (order: 6, 262144 bytes)
[    0.151402] TCP: Hash tables configured (established 16384 bind 16384)
[    0.151492] UDP hash table entries: 1024 (order: 3, 32768 bytes)
[    0.151534] UDP-Lite hash table entries: 1024 (order: 3, 32768 bytes)
[    0.151666] NET: Registered protocol family 1
[    0.151943] RPC: Registered named UNIX socket transport module.
[    0.151957] RPC: Registered udp transport module.
[    0.151968] RPC: Registered tcp transport module.
[    0.151978] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.152463] hw perfevents: enabled with armv8_cortex_a53 PMU driver, 7 counters available
[    0.152621] kvm [1]: 8-bit VMID
[    0.152632] kvm [1]: IDMAP page: 1826000
[    0.152643] kvm [1]: HYP VA range: 800000000000:ffffffffffff
[    0.153087] kvm [1]: Hyp mode initialized successfully
[    0.153124] kvm [1]: vgic-v2@c4304000
[    0.153171] kvm [1]: vgic interrupt IRQ1
[    0.153188] kvm [1]: virtual timer IRQ4
[    0.153821] audit: initializing netlink subsys (disabled)
[    0.153904] audit: type=2000 audit(0.151:1): state=initialized audit_enabled=0 res=1
[    0.154103] workingset: timestamp_bits=46 max_order=19 bucket_order=0
[    0.158206] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.158629] NFS: Registering the id_resolver key type
[    0.158661] Key type id_resolver registered
[    0.158672] Key type id_legacy registered
[    0.158688] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.158835] 9p: Installing v9fs 9p2000 file system support
[    0.160488] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[    0.160600] io scheduler noop registered
[    0.160690] io scheduler cfq registered (default)
[    0.160702] io scheduler mq-deadline registered
[    0.160714] io scheduler kyber registered
[    0.161483] GPIO line 4 (usb-hub-reset) hogged as output/high
[    0.165305] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[    0.166123] c81004c0.serial: ttyAML0 at MMIO 0xc81004c0 (irq = 12, base_baud = 1500000) is a meson_uart
[    0.893962] console [ttyAML0] enabled
[    0.901968] loop: module loaded
[    0.902268] hisi_sas: driver version v1.6
[    0.905598] libphy: Fixed MDIO Bus: probed
[    0.908928] tun: Universal TUN/TAP device driver, 1.6
[    0.914322] VFIO - User Level meta-driver version: 0.3
[    0.919393] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.925270] ehci-platform: EHCI generic platform driver
[    0.930497] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.936570] ohci-platform: OHCI generic platform driver
[    0.941920] usbcore: registered new interface driver usb-storage
[    0.948161] mousedev: PS/2 mouse device common for all mice
[    0.953459] i2c /dev entries driver
[    0.957688] sdhci: Secure Digital Host Controller Interface driver
[    0.962783] sdhci: Copyright(c) Pierre Ossman
[    0.967107] Synopsys Designware Multimedia Card Interface Driver
[    0.973634] meson-gx-mmc d0074000.mmc: allocated mmc-pwrseq
[    1.023178] sdhci-pltfm: SDHCI platform and OF driver helper
[    1.023612] ledtrig-cpu: registered to indicate activity on CPUs
[    1.029366] meson-sm: secure-monitor enabled
[    1.033814] usbcore: registered new interface driver usbhid
[    1.038915] usbhid: USB HID core driver
[    1.042847] platform-mhu c883c404.mailbox: Platform MHU Mailbox registered
[    1.049791] usbcore: registered new interface driver snd-usb-audio
[    1.056328] NET: Registered protocol family 10
[    1.060995] Segment Routing with IPv6
[    1.063703] NET: Registered protocol family 17
[    1.068114] 9pnet: Installing 9P2000 support
[    1.072349] Key type dns_resolver registered
[    1.076886] registered taskstats version 1
[    1.080651] zswap: default zpool zbud not available
[    1.085401] zswap: pool creation failed
[    1.093007] dwc2 c9000000.usb: c9000000.usb supply vusb_d not found, using dummy regulator
[    1.097431] dwc2 c9000000.usb: c9000000.usb supply vusb_a not found, using dummy regulator
[    1.106712] phy phy-c0000000.phy.0: USB ID detect failed!
[    1.110935] phy phy-c0000000.phy.0: phy poweron failed --> -22
[    1.116875] dwc2: probe of c9000000.usb failed with error -22
[    1.122665] dwc2 c9100000.usb: c9100000.usb supply vusb_d not found, using dummy regulator
[    1.130620] dwc2 c9100000.usb: c9100000.usb supply vusb_a not found, using dummy regulator
[    1.258913] dwc2 c9100000.usb: DWC OTG Controller
[    1.258955] dwc2 c9100000.usb: new USB bus registered, assigned bus number 1
[    1.264987] dwc2 c9100000.usb: irq 32, io mem 0xc9100000
[    1.270655] hub 1-0:1.0: USB hub found
[    1.273956] hub 1-0:1.0: 1 port detected
[    1.278410] meson-gx-mmc d0072000.mmc: Got CD GPIO
[    1.324158] scpi_protocol scpi: SCP Protocol 0.0 Firmware 0.0.0 version
[    1.330942] hctosys: unable to open rtc device (rtc0)
[    1.331096] VCC1V8: disabling
[    1.333352] VCC3V3: disabling
[    1.336291] USB_OTG_PWR: disabling
[    1.339671] ALSA device list:
[    1.342577]   No soundcards found.
[    1.346031] Waiting for root device /dev/mmcblk1p2...
[    1.641144] mmc1: new high speed SDHC card at address 59b4
[    1.641456] mmcblk1: mmc1:59b4 USDU1 7.31 GiB
[    1.646145]  mmcblk1: p1 p2
[    1.659325] EXT4-fs (mmcblk1p2): couldn't mount as ext3 due to feature incompatibilities
[    1.665949] EXT4-fs (mmcblk1p2): mounted filesystem with ordered data mode. Opts: (null)
[    1.666836] usb 1-1: new high-speed USB device number 2 using dwc2
[    1.675943] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
[    1.683066] devtmpfs: mounted
[    1.685764] Freeing unused kernel memory: 512K
[    1.789373] EXT4-fs (mmcblk1p2): re-mounted. Opts: data=ordered
[    1.868536] hub 1-1:1.0: USB hub found
[    1.868844] hub 1-1:1.0: 4 ports detected

moon.linux wrote:I feel you should try 4.14.x for better stability.

I was able to get 4.13.x boot ok with a lot of patches so I know it works, I don't want to jump on the 4.14.x wagon unless I have to.
daggs
 
Posts: 219
Joined: Tue Mar 22, 2016 6:34 pm
languages_spoken: english, spanish
ODROIDs: odroid c2

Re: Odroid C2 mainline kernel support

Unread postby miskol » Wed Nov 29, 2017 5:39 am

daggs wrote:
moon.linux wrote:@daggs: It not able to find the device partition root=/dev/mmcblk0p2 you might need to try root=/dev/mmcblk1p2

thanks, did that, still gets stuck, here is what I get:
Code: Select all
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.13.13 (dagg@NCC-5001-D) (gcc version 6.4.0 (Buildroot 2017.11-rc2-00022-g17299cd018-dirty)) #1 SMP PREEMPT Sat Nov 25 11:09:06 IST 2017
[    0.000000] Boot CPU: AArch64 Processor [410fd034]
[    0.000000] Machine model: Hardkernel ODROID-C2
[    0.000000] efi: Getting EFI parameters from FDT:
[    0.000000] efi: UEFI not found.
[    0.000000] Reserved memory: created CMA memory pool at 0x0000000074000000, size 188 MiB
[    0.000000] OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool
[    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 24 pages/cpu @ffff80007fd70000 s59672 r8192 d30440 u98304
[    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: 511048
[    0.000000] Kernel command line: console=ttyAML0,115200n8 console=tty0 earlyprintk root=/dev/mmcblk1p2 rootwait panic=10
[    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: 1835392K/2076672K available (7868K kernel code, 624K rwdata, 2852K rodata, 512K init, 397K bss, 48768K reserved, 192512K 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 - 0xffff000008830000   (  7872 KB)
[    0.000000]     .rodata : 0xffff000008830000 - 0xffff000008b00000   (  2880 KB)
[    0.000000]       .init : 0xffff000008b00000 - 0xffff000008b80000   (   512 KB)
[    0.000000]       .data : 0xffff000008b80000 - 0xffff000008c1c200   (   625 KB)
[    0.000000]        .bss : 0xffff000008c1c200 - 0xffff000008c7f710   (   398 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]               0xffff7e0000040000 - 0xffff7e0001ff8000   (    31 MB actual)
[    0.000000]     memory  : 0xffff800001000000 - 0xffff80007fe00000   (  2030 MB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000]  RCU restricting CPUs from NR_CPUS=64 to nr_cpu_ids=4.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4
[    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[    0.000000] GIC: Using split EOI/Deactivate mode
[    0.000000] arch_timer: 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.000213] Console: colour dummy device 80x25
[    0.000663] console [tty0] enabled
[    0.000685] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=96000)
[    0.000707] pid_max: default: 32768 minimum: 301
[    0.000760] Security Framework initialized
[    0.000804] Mount-cache hash table entries: 4096 (order: 3, 32768 bytes)
[    0.000827] Mountpoint-cache hash table entries: 4096 (order: 3, 32768 bytes)
[    0.016013] ASID allocator initialised with 65536 entries
[    0.024005] Hierarchical SRCU implementation.
[    0.032082] EFI services will not be available.
[    0.040024] smp: Bringing up secondary CPUs ...
[    0.068688] Detected VIPT I-cache on CPU1
[    0.068724] CPU1: Booted secondary processor [410fd034]
[    0.096705] Detected VIPT I-cache on CPU2
[    0.096721] CPU2: Booted secondary processor [410fd034]
[    0.124739] Detected VIPT I-cache on CPU3
[    0.124754] CPU3: Booted secondary processor [410fd034]
[    0.124787] smp: Brought up 1 node, 4 CPUs
[    0.124851] SMP: Total of 4 processors activated.
[    0.124864] CPU features: detected feature: 32-bit EL0 Support
[    0.124964] CPU: All CPU(s) started at EL2
[    0.124984] alternatives: patching kernel code
[    0.125409] devtmpfs: initialized
[    0.127656] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.127687] futex hash table entries: 1024 (order: 5, 131072 bytes)
[    0.130864] pinctrl core: initialized pinctrl subsystem
[    0.131345] random: fast init done
[    0.131474] DMI not present or invalid.
[    0.131663] NET: Registered protocol family 16
[    0.132300] cpuidle: using governor menu
[    0.132634] vdso: 2 pages (1 code @ ffff000008836000, 1 data @ ffff000008b85000)
[    0.132659] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[    0.136579] DMA: preallocated 256 KiB pool for atomic allocations
[    0.136661] Serial: AMBA PL011 UART driver
[    0.144362] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
[    0.145562] SCSI subsystem initialized
[    0.145870] usbcore: registered new interface driver usbfs
[    0.145916] usbcore: registered new interface driver hub
[    0.145962] usbcore: registered new device driver usb
[    0.146124] pps_core: LinuxPPS API ver. 1 registered
[    0.146137] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.146165] PTP clock support registered
[    0.146247] dmi: Firmware registration failed.
[    0.146326] Advanced Linux Sound Architecture Driver Initialized.
[    0.146811] clocksource: Switched to clocksource arch_sys_counter
[    0.146916] VFS: Disk quotas dquot_6.6.0
[    0.146963] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[    0.150763] NET: Registered protocol family 2
[    0.151111] TCP established hash table entries: 16384 (order: 5, 131072 bytes)
[    0.151211] TCP bind hash table entries: 16384 (order: 6, 262144 bytes)
[    0.151402] TCP: Hash tables configured (established 16384 bind 16384)
[    0.151492] UDP hash table entries: 1024 (order: 3, 32768 bytes)
[    0.151534] UDP-Lite hash table entries: 1024 (order: 3, 32768 bytes)
[    0.151666] NET: Registered protocol family 1
[    0.151943] RPC: Registered named UNIX socket transport module.
[    0.151957] RPC: Registered udp transport module.
[    0.151968] RPC: Registered tcp transport module.
[    0.151978] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.152463] hw perfevents: enabled with armv8_cortex_a53 PMU driver, 7 counters available
[    0.152621] kvm [1]: 8-bit VMID
[    0.152632] kvm [1]: IDMAP page: 1826000
[    0.152643] kvm [1]: HYP VA range: 800000000000:ffffffffffff
[    0.153087] kvm [1]: Hyp mode initialized successfully
[    0.153124] kvm [1]: vgic-v2@c4304000
[    0.153171] kvm [1]: vgic interrupt IRQ1
[    0.153188] kvm [1]: virtual timer IRQ4
[    0.153821] audit: initializing netlink subsys (disabled)
[    0.153904] audit: type=2000 audit(0.151:1): state=initialized audit_enabled=0 res=1
[    0.154103] workingset: timestamp_bits=46 max_order=19 bucket_order=0
[    0.158206] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.158629] NFS: Registering the id_resolver key type
[    0.158661] Key type id_resolver registered
[    0.158672] Key type id_legacy registered
[    0.158688] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.158835] 9p: Installing v9fs 9p2000 file system support
[    0.160488] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[    0.160600] io scheduler noop registered
[    0.160690] io scheduler cfq registered (default)
[    0.160702] io scheduler mq-deadline registered
[    0.160714] io scheduler kyber registered
[    0.161483] GPIO line 4 (usb-hub-reset) hogged as output/high
[    0.165305] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[    0.166123] c81004c0.serial: ttyAML0 at MMIO 0xc81004c0 (irq = 12, base_baud = 1500000) is a meson_uart
[    0.893962] console [ttyAML0] enabled
[    0.901968] loop: module loaded
[    0.902268] hisi_sas: driver version v1.6
[    0.905598] libphy: Fixed MDIO Bus: probed
[    0.908928] tun: Universal TUN/TAP device driver, 1.6
[    0.914322] VFIO - User Level meta-driver version: 0.3
[    0.919393] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.925270] ehci-platform: EHCI generic platform driver
[    0.930497] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.936570] ohci-platform: OHCI generic platform driver
[    0.941920] usbcore: registered new interface driver usb-storage
[    0.948161] mousedev: PS/2 mouse device common for all mice
[    0.953459] i2c /dev entries driver
[    0.957688] sdhci: Secure Digital Host Controller Interface driver
[    0.962783] sdhci: Copyright(c) Pierre Ossman
[    0.967107] Synopsys Designware Multimedia Card Interface Driver
[    0.973634] meson-gx-mmc d0074000.mmc: allocated mmc-pwrseq
[    1.023178] sdhci-pltfm: SDHCI platform and OF driver helper
[    1.023612] ledtrig-cpu: registered to indicate activity on CPUs
[    1.029366] meson-sm: secure-monitor enabled
[    1.033814] usbcore: registered new interface driver usbhid
[    1.038915] usbhid: USB HID core driver
[    1.042847] platform-mhu c883c404.mailbox: Platform MHU Mailbox registered
[    1.049791] usbcore: registered new interface driver snd-usb-audio
[    1.056328] NET: Registered protocol family 10
[    1.060995] Segment Routing with IPv6
[    1.063703] NET: Registered protocol family 17
[    1.068114] 9pnet: Installing 9P2000 support
[    1.072349] Key type dns_resolver registered
[    1.076886] registered taskstats version 1
[    1.080651] zswap: default zpool zbud not available
[    1.085401] zswap: pool creation failed
[    1.093007] dwc2 c9000000.usb: c9000000.usb supply vusb_d not found, using dummy regulator
[    1.097431] dwc2 c9000000.usb: c9000000.usb supply vusb_a not found, using dummy regulator
[    1.106712] phy phy-c0000000.phy.0: USB ID detect failed!
[    1.110935] phy phy-c0000000.phy.0: phy poweron failed --> -22
[    1.116875] dwc2: probe of c9000000.usb failed with error -22
[    1.122665] dwc2 c9100000.usb: c9100000.usb supply vusb_d not found, using dummy regulator
[    1.130620] dwc2 c9100000.usb: c9100000.usb supply vusb_a not found, using dummy regulator
[    1.258913] dwc2 c9100000.usb: DWC OTG Controller
[    1.258955] dwc2 c9100000.usb: new USB bus registered, assigned bus number 1
[    1.264987] dwc2 c9100000.usb: irq 32, io mem 0xc9100000
[    1.270655] hub 1-0:1.0: USB hub found
[    1.273956] hub 1-0:1.0: 1 port detected
[    1.278410] meson-gx-mmc d0072000.mmc: Got CD GPIO
[    1.324158] scpi_protocol scpi: SCP Protocol 0.0 Firmware 0.0.0 version
[    1.330942] hctosys: unable to open rtc device (rtc0)
[    1.331096] VCC1V8: disabling
[    1.333352] VCC3V3: disabling
[    1.336291] USB_OTG_PWR: disabling
[    1.339671] ALSA device list:
[    1.342577]   No soundcards found.
[    1.346031] Waiting for root device /dev/mmcblk1p2...
[    1.641144] mmc1: new high speed SDHC card at address 59b4
[    1.641456] mmcblk1: mmc1:59b4 USDU1 7.31 GiB
[    1.646145]  mmcblk1: p1 p2
[    1.659325] EXT4-fs (mmcblk1p2): couldn't mount as ext3 due to feature incompatibilities
[    1.665949] EXT4-fs (mmcblk1p2): mounted filesystem with ordered data mode. Opts: (null)
[    1.666836] usb 1-1: new high-speed USB device number 2 using dwc2
[    1.675943] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
[    1.683066] devtmpfs: mounted
[    1.685764] Freeing unused kernel memory: 512K
[    1.789373] EXT4-fs (mmcblk1p2): re-mounted. Opts: data=ordered
[    1.868536] hub 1-1:1.0: USB hub found
[    1.868844] hub 1-1:1.0: 4 ports detected

moon.linux wrote:I feel you should try 4.14.x for better stability.

I was able to get 4.13.x boot ok with a lot of patches so I know it works, I don't want to jump on the 4.14.x wagon unless I have to.


Are you able to compile and insmod mali drivers from on 4.13?
https://github.com/superna9999/meson_gx ... 1_meson_gx
miskol
 
Posts: 145
Joined: Wed Jan 15, 2014 2:58 am
languages_spoken: english

Re: Odroid C2 mainline kernel support

Unread postby campbell » Wed Nov 29, 2017 5:45 am

Not sure this has been mentioned here but the RTC shield isn't working with mainline. The weirdest part is after downgrading to 3.14 I'm still getting the same wtf error:
Code: Select all
hwclock: ioctl(3, RTC_UIE_ON, 0) to /dev/rtc0 failed: Invalid argument


[edit] looks like even with a fresh 3.14 install it's still not working. I've posted about this in the other forums, disregard this.
[edit 2] working now.
Last edited by campbell on Fri Dec 01, 2017 9:57 am, edited 1 time in total.
campbell
 
Posts: 288
Joined: Thu Sep 03, 2015 1:13 pm
languages_spoken: english
ODROIDs: XU3, XU4, C2, C1+, Cloudshell, Smart Power

Re: Odroid C2 mainline kernel support

Unread postby pilsator » Thu Nov 30, 2017 5:00 am

Could someone give a short summary or an link, how to checkout and patch the kernel, so an non kernel developer can build a recent kernel please?
pilsator
 
Posts: 2
Joined: Wed Nov 22, 2017 3:31 am
languages_spoken: english
ODROIDs: C2

Re: Odroid C2 mainline kernel support

Unread postby campbell » Thu Nov 30, 2017 6:48 am

pilsator wrote:Could someone give a short summary or an link, how to checkout and patch the kernel, so an non kernel developer can build a recent kernel please?

I am not a kernel developer, and I've found the quickest way to get to the mainline kernel is to follow the instructions for installing Arch Linux https://archlinuxarm.org/platforms/armv ... stallation and then after booting it up, run the following commands:
Code: Select all
pacman -Syu
pacman -R uboot-odroid-c2
pacman -S uboot-odroid-c2-mainline linux-aarch64
reboot
campbell
 
Posts: 288
Joined: Thu Sep 03, 2015 1:13 pm
languages_spoken: english
ODROIDs: XU3, XU4, C2, C1+, Cloudshell, Smart Power

Re: Odroid C2 mainline kernel support

Unread postby pilsator » Thu Nov 30, 2017 7:04 pm

Thanks, but I use ubuntu. Give me some of if the git commands to branch and patch please.
pilsator
 
Posts: 2
Joined: Wed Nov 22, 2017 3:31 am
languages_spoken: english
ODROIDs: C2

Re: Odroid C2 mainline kernel support

Unread postby daggs » Sat Dec 02, 2017 12:53 am

miskol wrote:
daggs wrote:
moon.linux wrote:@daggs: It not able to find the device partition root=/dev/mmcblk0p2 you might need to try root=/dev/mmcblk1p2

thanks, did that, still gets stuck, here is what I get:
Code: Select all
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.13.13 (dagg@NCC-5001-D) (gcc version 6.4.0 (Buildroot 2017.11-rc2-00022-g17299cd018-dirty)) #1 SMP PREEMPT Sat Nov 25 11:09:06 IST 2017
[    0.000000] Boot CPU: AArch64 Processor [410fd034]
[    0.000000] Machine model: Hardkernel ODROID-C2
[    0.000000] efi: Getting EFI parameters from FDT:
[    0.000000] efi: UEFI not found.
[    0.000000] Reserved memory: created CMA memory pool at 0x0000000074000000, size 188 MiB
[    0.000000] OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool
[    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 24 pages/cpu @ffff80007fd70000 s59672 r8192 d30440 u98304
[    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: 511048
[    0.000000] Kernel command line: console=ttyAML0,115200n8 console=tty0 earlyprintk root=/dev/mmcblk1p2 rootwait panic=10
[    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: 1835392K/2076672K available (7868K kernel code, 624K rwdata, 2852K rodata, 512K init, 397K bss, 48768K reserved, 192512K 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 - 0xffff000008830000   (  7872 KB)
[    0.000000]     .rodata : 0xffff000008830000 - 0xffff000008b00000   (  2880 KB)
[    0.000000]       .init : 0xffff000008b00000 - 0xffff000008b80000   (   512 KB)
[    0.000000]       .data : 0xffff000008b80000 - 0xffff000008c1c200   (   625 KB)
[    0.000000]        .bss : 0xffff000008c1c200 - 0xffff000008c7f710   (   398 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]               0xffff7e0000040000 - 0xffff7e0001ff8000   (    31 MB actual)
[    0.000000]     memory  : 0xffff800001000000 - 0xffff80007fe00000   (  2030 MB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000]  RCU restricting CPUs from NR_CPUS=64 to nr_cpu_ids=4.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4
[    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[    0.000000] GIC: Using split EOI/Deactivate mode
[    0.000000] arch_timer: 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.000213] Console: colour dummy device 80x25
[    0.000663] console [tty0] enabled
[    0.000685] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=96000)
[    0.000707] pid_max: default: 32768 minimum: 301
[    0.000760] Security Framework initialized
[    0.000804] Mount-cache hash table entries: 4096 (order: 3, 32768 bytes)
[    0.000827] Mountpoint-cache hash table entries: 4096 (order: 3, 32768 bytes)
[    0.016013] ASID allocator initialised with 65536 entries
[    0.024005] Hierarchical SRCU implementation.
[    0.032082] EFI services will not be available.
[    0.040024] smp: Bringing up secondary CPUs ...
[    0.068688] Detected VIPT I-cache on CPU1
[    0.068724] CPU1: Booted secondary processor [410fd034]
[    0.096705] Detected VIPT I-cache on CPU2
[    0.096721] CPU2: Booted secondary processor [410fd034]
[    0.124739] Detected VIPT I-cache on CPU3
[    0.124754] CPU3: Booted secondary processor [410fd034]
[    0.124787] smp: Brought up 1 node, 4 CPUs
[    0.124851] SMP: Total of 4 processors activated.
[    0.124864] CPU features: detected feature: 32-bit EL0 Support
[    0.124964] CPU: All CPU(s) started at EL2
[    0.124984] alternatives: patching kernel code
[    0.125409] devtmpfs: initialized
[    0.127656] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.127687] futex hash table entries: 1024 (order: 5, 131072 bytes)
[    0.130864] pinctrl core: initialized pinctrl subsystem
[    0.131345] random: fast init done
[    0.131474] DMI not present or invalid.
[    0.131663] NET: Registered protocol family 16
[    0.132300] cpuidle: using governor menu
[    0.132634] vdso: 2 pages (1 code @ ffff000008836000, 1 data @ ffff000008b85000)
[    0.132659] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[    0.136579] DMA: preallocated 256 KiB pool for atomic allocations
[    0.136661] Serial: AMBA PL011 UART driver
[    0.144362] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
[    0.145562] SCSI subsystem initialized
[    0.145870] usbcore: registered new interface driver usbfs
[    0.145916] usbcore: registered new interface driver hub
[    0.145962] usbcore: registered new device driver usb
[    0.146124] pps_core: LinuxPPS API ver. 1 registered
[    0.146137] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.146165] PTP clock support registered
[    0.146247] dmi: Firmware registration failed.
[    0.146326] Advanced Linux Sound Architecture Driver Initialized.
[    0.146811] clocksource: Switched to clocksource arch_sys_counter
[    0.146916] VFS: Disk quotas dquot_6.6.0
[    0.146963] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[    0.150763] NET: Registered protocol family 2
[    0.151111] TCP established hash table entries: 16384 (order: 5, 131072 bytes)
[    0.151211] TCP bind hash table entries: 16384 (order: 6, 262144 bytes)
[    0.151402] TCP: Hash tables configured (established 16384 bind 16384)
[    0.151492] UDP hash table entries: 1024 (order: 3, 32768 bytes)
[    0.151534] UDP-Lite hash table entries: 1024 (order: 3, 32768 bytes)
[    0.151666] NET: Registered protocol family 1
[    0.151943] RPC: Registered named UNIX socket transport module.
[    0.151957] RPC: Registered udp transport module.
[    0.151968] RPC: Registered tcp transport module.
[    0.151978] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.152463] hw perfevents: enabled with armv8_cortex_a53 PMU driver, 7 counters available
[    0.152621] kvm [1]: 8-bit VMID
[    0.152632] kvm [1]: IDMAP page: 1826000
[    0.152643] kvm [1]: HYP VA range: 800000000000:ffffffffffff
[    0.153087] kvm [1]: Hyp mode initialized successfully
[    0.153124] kvm [1]: vgic-v2@c4304000
[    0.153171] kvm [1]: vgic interrupt IRQ1
[    0.153188] kvm [1]: virtual timer IRQ4
[    0.153821] audit: initializing netlink subsys (disabled)
[    0.153904] audit: type=2000 audit(0.151:1): state=initialized audit_enabled=0 res=1
[    0.154103] workingset: timestamp_bits=46 max_order=19 bucket_order=0
[    0.158206] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.158629] NFS: Registering the id_resolver key type
[    0.158661] Key type id_resolver registered
[    0.158672] Key type id_legacy registered
[    0.158688] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.158835] 9p: Installing v9fs 9p2000 file system support
[    0.160488] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[    0.160600] io scheduler noop registered
[    0.160690] io scheduler cfq registered (default)
[    0.160702] io scheduler mq-deadline registered
[    0.160714] io scheduler kyber registered
[    0.161483] GPIO line 4 (usb-hub-reset) hogged as output/high
[    0.165305] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[    0.166123] c81004c0.serial: ttyAML0 at MMIO 0xc81004c0 (irq = 12, base_baud = 1500000) is a meson_uart
[    0.893962] console [ttyAML0] enabled
[    0.901968] loop: module loaded
[    0.902268] hisi_sas: driver version v1.6
[    0.905598] libphy: Fixed MDIO Bus: probed
[    0.908928] tun: Universal TUN/TAP device driver, 1.6
[    0.914322] VFIO - User Level meta-driver version: 0.3
[    0.919393] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.925270] ehci-platform: EHCI generic platform driver
[    0.930497] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.936570] ohci-platform: OHCI generic platform driver
[    0.941920] usbcore: registered new interface driver usb-storage
[    0.948161] mousedev: PS/2 mouse device common for all mice
[    0.953459] i2c /dev entries driver
[    0.957688] sdhci: Secure Digital Host Controller Interface driver
[    0.962783] sdhci: Copyright(c) Pierre Ossman
[    0.967107] Synopsys Designware Multimedia Card Interface Driver
[    0.973634] meson-gx-mmc d0074000.mmc: allocated mmc-pwrseq
[    1.023178] sdhci-pltfm: SDHCI platform and OF driver helper
[    1.023612] ledtrig-cpu: registered to indicate activity on CPUs
[    1.029366] meson-sm: secure-monitor enabled
[    1.033814] usbcore: registered new interface driver usbhid
[    1.038915] usbhid: USB HID core driver
[    1.042847] platform-mhu c883c404.mailbox: Platform MHU Mailbox registered
[    1.049791] usbcore: registered new interface driver snd-usb-audio
[    1.056328] NET: Registered protocol family 10
[    1.060995] Segment Routing with IPv6
[    1.063703] NET: Registered protocol family 17
[    1.068114] 9pnet: Installing 9P2000 support
[    1.072349] Key type dns_resolver registered
[    1.076886] registered taskstats version 1
[    1.080651] zswap: default zpool zbud not available
[    1.085401] zswap: pool creation failed
[    1.093007] dwc2 c9000000.usb: c9000000.usb supply vusb_d not found, using dummy regulator
[    1.097431] dwc2 c9000000.usb: c9000000.usb supply vusb_a not found, using dummy regulator
[    1.106712] phy phy-c0000000.phy.0: USB ID detect failed!
[    1.110935] phy phy-c0000000.phy.0: phy poweron failed --> -22
[    1.116875] dwc2: probe of c9000000.usb failed with error -22
[    1.122665] dwc2 c9100000.usb: c9100000.usb supply vusb_d not found, using dummy regulator
[    1.130620] dwc2 c9100000.usb: c9100000.usb supply vusb_a not found, using dummy regulator
[    1.258913] dwc2 c9100000.usb: DWC OTG Controller
[    1.258955] dwc2 c9100000.usb: new USB bus registered, assigned bus number 1
[    1.264987] dwc2 c9100000.usb: irq 32, io mem 0xc9100000
[    1.270655] hub 1-0:1.0: USB hub found
[    1.273956] hub 1-0:1.0: 1 port detected
[    1.278410] meson-gx-mmc d0072000.mmc: Got CD GPIO
[    1.324158] scpi_protocol scpi: SCP Protocol 0.0 Firmware 0.0.0 version
[    1.330942] hctosys: unable to open rtc device (rtc0)
[    1.331096] VCC1V8: disabling
[    1.333352] VCC3V3: disabling
[    1.336291] USB_OTG_PWR: disabling
[    1.339671] ALSA device list:
[    1.342577]   No soundcards found.
[    1.346031] Waiting for root device /dev/mmcblk1p2...
[    1.641144] mmc1: new high speed SDHC card at address 59b4
[    1.641456] mmcblk1: mmc1:59b4 USDU1 7.31 GiB
[    1.646145]  mmcblk1: p1 p2
[    1.659325] EXT4-fs (mmcblk1p2): couldn't mount as ext3 due to feature incompatibilities
[    1.665949] EXT4-fs (mmcblk1p2): mounted filesystem with ordered data mode. Opts: (null)
[    1.666836] usb 1-1: new high-speed USB device number 2 using dwc2
[    1.675943] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
[    1.683066] devtmpfs: mounted
[    1.685764] Freeing unused kernel memory: 512K
[    1.789373] EXT4-fs (mmcblk1p2): re-mounted. Opts: data=ordered
[    1.868536] hub 1-1:1.0: USB hub found
[    1.868844] hub 1-1:1.0: 4 ports detected

moon.linux wrote:I feel you should try 4.14.x for better stability.

I was able to get 4.13.x boot ok with a lot of patches so I know it works, I don't want to jump on the 4.14.x wagon unless I have to.


Are you able to compile and insmod mali drivers from on 4.13?
https://github.com/superna9999/meson_gx ... 1_meson_gx

I'm unable to get it to login, so mali driver aren't relevant.
daggs
 
Posts: 219
Joined: Tue Mar 22, 2016 6:34 pm
languages_spoken: english, spanish
ODROIDs: odroid c2

Re: Odroid C2 mainline kernel support

Unread postby miskol » Wed Dec 06, 2017 4:46 am

daggs wrote:
miskol wrote:
daggs wrote:
moon.linux wrote:@daggs: It not able to find the device partition root=/dev/mmcblk0p2 you might need to try root=/dev/mmcblk1p2

thanks, did that, still gets stuck, here is what I get:

moon.linux wrote:I feel you should try 4.14.x for better stability.

I was able to get 4.13.x boot ok with a lot of patches so I know it works, I don't want to jump on the 4.14.x wagon unless I have to.


Are you able to compile and insmod mali drivers from on 4.13?
https://github.com/superna9999/meson_gx ... 1_meson_gx

I'm unable to get it to login, so mali driver aren't relevant.



Latest 4.14.3 is fine but mali module don't load properly :(
build armbian with next kernel
miskol
 
Posts: 145
Joined: Wed Jan 15, 2014 2:58 am
languages_spoken: english

Re: Odroid C2 mainline kernel support

Unread postby daggs » Fri Dec 08, 2017 10:03 pm

miskol wrote:
daggs wrote:
miskol wrote:
daggs wrote:
moon.linux wrote:@daggs: It not able to find the device partition root=/dev/mmcblk0p2 you might need to try root=/dev/mmcblk1p2

thanks, did that, still gets stuck, here is what I get:

moon.linux wrote:I feel you should try 4.14.x for better stability.

I was able to get 4.13.x boot ok with a lot of patches so I know it works, I don't want to jump on the 4.14.x wagon unless I have to.


Are you able to compile and insmod mali drivers from on 4.13?
https://github.com/superna9999/meson_gx ... 1_meson_gx

I'm unable to get it to login, so mali driver aren't relevant.



Latest 4.14.3 is fine but mali module don't load properly :(
build armbian with next kernel

found my issue, not sure how it didn't worked before (I tried it as part of the debugging), with neil's help, I removed the console=tty0 and it got to login.
I'm currently got a basic version to compile on 4.14.4, only after I get a working image (vendor ATFi is missing), I'll might look into the mali driver.
although, Neil told me hdmi is supported in 4.15, I don't know to what extent thought.
daggs
 
Posts: 219
Joined: Tue Mar 22, 2016 6:34 pm
languages_spoken: english, spanish
ODROIDs: odroid c2

Re: Odroid C2 mainline kernel support

Unread postby HeinrichG » Tue Dec 19, 2017 12:44 am

Hi guys,

what is the current status of
  • H.265 decoding
  • I²S sound output
in mainline kernel?

Many thanks.
Regards,
Heinrich
User avatar
HeinrichG
 
Posts: 46
Joined: Wed Jul 05, 2017 11:19 pm
Location: Germany
languages_spoken: english, german
ODROIDs: C2

Re: Odroid C2 mainline kernel support

Unread postby saiarcot895 » Tue Dec 19, 2017 1:30 am

With mainline U-Boot (2017.11) and binutils 2.28-3ubuntu1, I'm not able to boot either 3.14 or mainline kernel. It hangs on "Starting kernel." Any ideas?
saiarcot895
 
Posts: 16
Joined: Sat May 14, 2016 10:58 am
languages_spoken: english
ODROIDs: ODROID-C2

Re: Odroid C2 mainline kernel support

Unread postby brad » Thu Dec 21, 2017 5:21 pm

saiarcot895 wrote:With mainline U-Boot (2017.11) and binutils 2.28-3ubuntu1, I'm not able to boot either 3.14 or mainline kernel. It hangs on "Starting kernel." Any ideas?


A couple of ideas, check the console parameter in boot.scr.img script is correct, it should be 'console=ttyAML0' for mainline kernel and 'console=ttyS0' for hardkernel kernel.

Mainline u-boot is configured by default to boot into the normal (mainline kernel) entry point. This should mean you can boot mainline kernel with the standard image or a uImage format (uImage format includes a header where it is possible to specify a custom entry point).

The hard-kernel kernel has a custom entry point so to boot it from mainline u-boot you would need to wrap it in a uImage format and specify the correct entry point. You can use mkimage to create the uImage from a normal image but from the top of my head im not sure of the correct entry point.

Entry point for mainline is 0x1080000 but im not sure exactly what you would need for hardkernel. I will try to go over the source when I have a chance to work it out.
brad
 
Posts: 707
Joined: Tue Mar 29, 2016 1:22 pm
Location: Australia
languages_spoken: english
ODROIDs: C2

Re: Odroid C2 mainline kernel support

Unread postby saiarcot895 » Sat Dec 23, 2017 1:35 am

brad wrote:
saiarcot895 wrote:With mainline U-Boot (2017.11) and binutils 2.28-3ubuntu1, I'm not able to boot either 3.14 or mainline kernel. It hangs on "Starting kernel." Any ideas?


A couple of ideas, check the console parameter in boot.scr.img script is correct, it should be 'console=ttyAML0' for mainline kernel and 'console=ttyS0' for hardkernel kernel.

Mainline u-boot is configured by default to boot into the normal (mainline kernel) entry point. This should mean you can boot mainline kernel with the standard image or a uImage format (uImage format includes a header where it is possible to specify a custom entry point).

The hard-kernel kernel has a custom entry point so to boot it from mainline u-boot you would need to wrap it in a uImage format and specify the correct entry point. You can use mkimage to create the uImage from a normal image but from the top of my head im not sure of the correct entry point.

Entry point for mainline is 0x1080000 but im not sure exactly what you would need for hardkernel. I will try to go over the source when I have a chance to work it out.


It may have been due to the .config I used to compile the kernel. I downloaded Igor's Armbian image for Odroid-C2, grabbed the vmlinuz, dtb, and uinitrd files, and placed them in my boot partition, and it came up fine. i then used the config he used to compile the kernel, made a few changes (mainly compiling additional modules), and used that image, and it came up fine. My best guess is that the VMAP_STACK option was messing things up.

So now I'm running 2017.11 u-boot and 3.14.7 kernel off of my EMMC.
saiarcot895
 
Posts: 16
Joined: Sat May 14, 2016 10:58 am
languages_spoken: english
ODROIDs: ODROID-C2

Re: Odroid C2 mainline kernel support

Unread postby brad » Sat Dec 23, 2017 10:10 am

saiarcot895 wrote:My best guess is that the VMAP_STACK option was messing things up


That's quiet interesting to know, particularly as hardkernel kernel is configured only to support page sizes which are arm32 bit compatible. Its great to see you have hardkernel kernel working with mainline uboot.
brad
 
Posts: 707
Joined: Tue Mar 29, 2016 1:22 pm
Location: Australia
languages_spoken: english
ODROIDs: C2

Re: Odroid C2 mainline kernel support

Unread postby gügü » Sat Dec 23, 2017 7:56 pm

I just tried to boot the latest compiled kernel linux-4.15.0-rc4-gx-160835-g8553b1b from @umiddelb that you can find at:

https://www.dropbox.com/sh/l751jmswzr2v6o2/AADFOOTAojHvyUFxSxKSbCrya?dl=0&lst=&preview=linux-4.15.0-rc4-gx-160835-g8553b1b-dirty.tar.xz

The same problem occurs with external USB 3 HD which is not recognized at boot.

For a brief moment at boot the light of the HD turns on and then back off.
When I plug 2 HD in the usb slots at the same time they are recognized.

At the moment only the USB OTG gives the power necessary to juice the USB 3 HD.

[UPDATE USB PROBLEM]

I don't know if this problem has to do with this blog post: http://rglinuxtech.com/?p=1905

Also there is no possibility to access the board via SSH because it actively refuses the connection.

Anyone have a fix for this problem?

[UPDATE LAN FIX?]

I don't know if this is related can someone more experienced can confirm the SSH connection refusal?

http://rglinuxtech.com/?p=1872

It persist since the kernel 4.12 and I thought that it will be fixed.
gügü
 
Posts: 68
Joined: Sun Dec 20, 2015 6:35 am
languages_spoken: english
ODROIDs: C1 - C2

Re: Odroid C2 mainline kernel support

Unread postby tuxx » Sat Dec 23, 2017 10:37 pm

I just installed latest mainline (4.18.1) and latest uboot mainline for C2 using Archlinuxarm and the system boots as read only. This is the dmesg output:

https://pastebin.ca/3951414

Any ideas?
Last edited by tuxx on Sat Dec 23, 2017 11:17 pm, edited 1 time in total.
User avatar
tuxx
 
Posts: 48
Joined: Fri Mar 11, 2016 6:42 am
languages_spoken: english
ODROIDs: C1+, C2

Re: Odroid C2 mainline kernel support

Unread postby gügü » Sat Dec 23, 2017 11:10 pm

What? Are you saying that Odroid C1 can boot mainline kernel 4.18?

If it is so then create a new Thread for Odroid C1 mainline kernel support and we can follow in parallel.

Thanx for your input.
gügü
 
Posts: 68
Joined: Sun Dec 20, 2015 6:35 am
languages_spoken: english
ODROIDs: C1 - C2

Re: Odroid C2 mainline kernel support

Unread postby tuxx » Sat Dec 23, 2017 11:18 pm

I am sorry, it was a typo and I corrected it. I meant C2!
User avatar
tuxx
 
Posts: 48
Joined: Fri Mar 11, 2016 6:42 am
languages_spoken: english
ODROIDs: C1+, C2

Re: Odroid C2 mainline kernel support

Unread postby gügü » Sat Dec 23, 2017 11:30 pm

tuxx wrote:I am sorry, it was a typo and I corrected it. I meant C2!


Where did you find the 4.18 kernel ? I thought 4.15 was the latest!
gügü
 
Posts: 68
Joined: Sun Dec 20, 2015 6:35 am
languages_spoken: english
ODROIDs: C1 - C2

Re: Odroid C2 mainline kernel support

Unread postby gügü » Sat Dec 23, 2017 11:31 pm

tuxx wrote:I just installed latest mainline (4.18.1) and latest uboot mainline for C2 using Archlinuxarm and the system boots as read only. This is the dmesg output:

https://pastebin.ca/3951414

Any ideas?


Can you check if you encounter the same problem that I encounter with USB external HD and LAN ?
gügü
 
Posts: 68
Joined: Sun Dec 20, 2015 6:35 am
languages_spoken: english
ODROIDs: C1 - C2

Re: Odroid C2 mainline kernel support

Unread postby tuxx » Sat Dec 23, 2017 11:42 pm

Ok, I really apologize, but I wrote a post full of mistakes. Just to clarify:

- My board is odroid C2
- My kernel is 4.14.8

I did my tests and I noticed something very strange. I have two emmc cards: one bought with my C2 and one bought years ago with my C1+.

- The C2 card is fully functional with hardkernel kernel but when I upgrade to mainline, I get all the above errors.
- I do the same procedure with the old C1+ emmc card (using Odroid C2 of course) and everything is perfect.

So either the cards are different and C2 card has issues with mainline, or the C2 emmc card is dying.
User avatar
tuxx
 
Posts: 48
Joined: Fri Mar 11, 2016 6:42 am
languages_spoken: english
ODROIDs: C1+, C2

Re: Odroid C2 mainline kernel support

Unread postby gügü » Sat Dec 23, 2017 11:51 pm

Drop the emmc cards and go with microSD cards. I never had any problem with Sandisk 32 GB.
gügü
 
Posts: 68
Joined: Sun Dec 20, 2015 6:35 am
languages_spoken: english
ODROIDs: C1 - C2

Re: Odroid C2 mainline kernel support

Unread postby tuxx » Sun Dec 24, 2017 12:20 am

Ι totally prefer emmc cards as the performance boost is very noticeable for my needs.

Anyway my issue is pretty strange and I believe that it has to to with the ageing of the emmc.

Btw, I have tested this kernel with my usb dac for days now, using MPD and although the usb interrupts remain very frequent (like with the hardkernel kernel) the DAC is fully functional.
User avatar
tuxx
 
Posts: 48
Joined: Fri Mar 11, 2016 6:42 am
languages_spoken: english
ODROIDs: C1+, C2

PreviousNext

Return to General Chat

Who is online

Users browsing this forum: No registered users and 4 guests