Odroid C1+ and Kernel 4.x

Moderators: mdrjr, odroid

Odroid C1+ and Kernel 4.x

Unread postby mad_ady » Mon Mar 07, 2016 5:01 pm

Hello everyone,

I'm trying to boot kernel 4.4-rc2 on Odroid C1+. I followed the guide here: https://github.com/umiddelb/armhf/wiki/ ... ARM-device to compile the kernel.

I modified boot.ini and changed the console parameter to this: "console=ttyAML0,115200n8" in order to get serial console working.

When I try to boot the kernel (from emmc), it boots, loads initramfs but fails to load the root filesystem (ALERT! /dev/disk/by-uuid/e139ce78-9841-40fe-8823-96a304a09859 does not exist. Dropping to a shell!). Also it sees only one CPU.

I've tried with both uInitrd from the default 3.10 kernel and with the one generated from the 4.4 kernel tree.

Complete bootlog and a few ls'es are here: http://pastebin.com/gvVx369G

I'd like to ask if emmc is supported in 4.4 for C1, or if I should try with an SD card instead.
User avatar
mad_ady
 
Posts: 1895
Joined: Wed Jul 15, 2015 5:00 pm
Location: Bucharest, Romania
languages_spoken: english
ODROIDs: XU4, C1+, C2

Re: Odroid C1+ and Kernel 4.x

Unread postby memeka » Mon Mar 07, 2016 8:39 pm

change in boot.init rootfs=UUIDe139ce78... to rootfs=/dev/mmcblk0p2
User avatar
memeka
 
Posts: 3526
Joined: Mon May 20, 2013 10:22 am
languages_spoken: english
ODROIDs: XU rev2 + eMMC + UART
U3 + eMMC + IO Shield + UART

Re: Odroid C1+ and Kernel 4.x

Unread postby mad_ady » Wed Mar 09, 2016 3:59 am

I have tried this. Still doesn't fully boot but I seem to have broken my cheap usb-to-ttl adapter and can't get the exact output at the moment. Will update as soon as possible.
User avatar
mad_ady
 
Posts: 1895
Joined: Wed Jul 15, 2015 5:00 pm
Location: Bucharest, Romania
languages_spoken: english
ODROIDs: XU4, C1+, C2

Re: Odroid C1+ and Kernel 4.x

Unread postby hhh1 » Wed Jun 15, 2016 3:46 am

mad_ady wrote:I have tried this. Still doesn't fully boot but I seem to have broken my cheap usb-to-ttl adapter and can't get the exact output at the moment. Will update as soon as possible.


Can you please be so kind and tell me how did you manage to run 4.x kernel on C1 at all?

I spent 2 days of my life trying to run it with kernel.org kernel 4.6 and 4.7 and linaro kernel 4.6.
But all I got on linaro kernel was a freeze on "Uncompressing Linux... done, booting the kernel."
And on kernel.org:
[ 0.770483] VFS: Cannot open root device "mmcblk0p1" or unknown-block(0,0): error -6
[ 0.778237] Please append a correct "root=" boot option; here are the available partitions:
[ 0.786615] 0100 65536 ram0 (driver?)
...
[ 0.857191] 010f 65536 ram15 (driver?)
[ 0.861945] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)

Looks like it doesn't see eMMC/SD card at all.
I feel myself trapped. :cry:
Please tell me what config did you use? multi_v7_defconfig?
Any additional options?
And dtb was meson8b-odroidc1.dtb, right?
hhh1
 
Posts: 26
Joined: Wed Jun 15, 2016 3:35 am
languages_spoken: english
ODROIDs: c1 c1+ c2

Re: Odroid C1+ and Kernel 4.x

Unread postby daemon32 » Thu Jul 07, 2016 7:44 am

Hi, I've been following the efforts to mainline support for the AMlogic SOCs that are used in the odroid-c1 and I've found these resources very useful:

The linux-meson project (the mainlining effort):
http://linux-meson.com/doku.php

The linux-meson mailing list:
http://lists.infradead.org/mailman/listinfo/linux-amlogic

A website that displays build information about various kernels on various boards, including mainline C1 support:
https://kernelci.org/boot/meson8b-odroidc1/

Where the linux-meson patches usually come from/end up:
https://github.com/carlocaione/linux-meson

Some attempt at porting the odroid-c1 to upstream u-boot:
https://github.com/carlocaione/u-boot

There's no display/audio (hdmitx) or GPU support yet, but nearly everything else is there from what I can tell.
daemon32
 
Posts: 23
Joined: Sun Jul 19, 2015 2:45 am
languages_spoken: english
ODROIDs: ODROID-C1

Re: Odroid C1+ and Kernel 4.x

Unread postby lavorrick » Tue Jul 12, 2016 5:27 pm

@mad_ady my experience is almost identical to yours, except I compiled a 4.7-rc7 kernel, and my C1+ has an SD card in it, rather than an eMMC. I used multi_v7_defconfig without any other options for the build. The kernel starts up fine, but cannot see any trace of the SD card and so is unable to mount root partition, just like you.

What I have noticed is that the meson8b-odroidc1.dtb that came out of my kernel build is very small (3,283 bytes) vs the one that is supplied with hardkernel's Ubuntu 14.04 image (meson8b_odroidc.dtb - 19.257 bytes)

The links supplied by @daemon32 are very interesting, particularly the one with the boot status of various boards, where 4.7-rc7 (amongst other versions) is show to be "successful" on the C1, though when you read through the actual boot log, it doesn't look like they even attempt to load a root filesystem, if I'm interpreting it correctly. I guess "success" is defined as the kernel being able to start and run, regardless of whether or not any of the hardware peripherals can be accessed.

My current goal is to get a headless Ubuntu distribution on my board, I don't care about the GPU/HDMI support. I only need USB, GPIO, Ethernet and obviously SD/eMMC support right now. Has anybody achieved this?
lavorrick
 
Posts: 12
Joined: Tue Feb 10, 2015 7:04 pm
languages_spoken: english
ODROIDs: C1, C1+, XU4

Re: Odroid C1+ and Kernel 4.x

Unread postby mad_ady » Tue Jul 12, 2016 5:43 pm

I'm sorry guys, I have completely missed this thread and your replies. I haven't tried booting 4.x in a while, but I might try again either with NFS rootfs or with usb rootfs. It might be interesting to look into the efforts to boot 4.x on the C2 - those also required extensive uboot updates.
User avatar
mad_ady
 
Posts: 1895
Joined: Wed Jul 15, 2015 5:00 pm
Location: Bucharest, Romania
languages_spoken: english
ODROIDs: XU4, C1+, C2


Return to General Chat

Who is online

Users browsing this forum: Bing [Bot] and 1 guest