Closed olablt closed 5 years ago
Hm, the kernel panics during boot. Do you have a serial console connected to the C2? It would be helpful to see all messages before the kernel panics.
I'm using the C2 headless and I've switched to the mainline kernel in the meantime. So I don't have much experience with the latest mainline kernel developments. And CentOS developments doesn't necessarily include running a desktop environment.
Hey, I manged to connect USB to UART module and get the output. Updated the issue description.
What could you suggest?
Please check the file permissions of /
and /sbin/init
.
sudo mount /dev/sdb2 /media/USB/
ll /media/USB/
total 72
dr-xr-xr-x. 19 root root 4096 2016-12-23 18:06 ./
drwxr-xr-x. 10 root root 112 2017-05-01 16:49 ../
lrwxrwxrwx. 1 root root 7 2016-12-23 17:59 bin -> usr/bin/
dr-xr-xr-x. 4 root root 4096 2016-12-23 18:07 boot/
drwxr-xr-x. 2 root root 4096 2016-12-23 17:59 dev/
drwxr-xr-x. 83 root root 4096 2017-05-28 23:11 etc/
drwxr-xr-x. 2 root root 4096 2016-11-23 home/
drwxr-xr-x. 4 root root 4096 2017-05-28 23:01 lib/
lrwxrwxrwx. 1 root root 9 2016-12-23 17:59 lib64 -> usr/lib64/
drwx------. 2 root root 4096 1970-01-01 lost+found/
drwxr-xr-x. 2 root root 4096 2016-11-23 media/
drwxr-xr-x. 2 root root 4096 2016-11-23 mnt/
drwxr-xr-x. 2 root root 4096 2016-11-23 opt/
drwxr-xr-x. 2 root root 4096 2016-12-23 17:59 proc/
dr-xr-x---. 2 root root 4096 2016-12-23 18:07 root/
drwxr-xr-x. 2 root root 4096 2016-12-23 17:59 run/
lrwxrwxrwx. 1 root root 8 2016-12-23 17:59 sbin -> usr/sbin/
drwxr-xr-x. 2 root root 4096 2016-11-23 srv/
drwxr-xr-x. 2 root root 4096 2016-12-23 17:59 sys/
drwxrwxrwt. 7 root root 4096 2016-12-23 18:07 tmp/
drwxr-xr-x. 13 root root 4096 2016-12-23 17:59 usr/
drwxr-xr-x. 19 root root 4096 2016-12-23 18:02 var/
ll /media/USB/sbin/init
lrwxrwxrwx. 1 root root 22 2016-12-23 18:02 /media/USB/sbin/init -> ../lib/systemd/systemd*
Thank you for sharing. This issue needs more analysis, as I cannot see anything wrong at this time.
Do you mind trying a mainline kernel? Instead of ripping a vendor image, I've started to build a CentOS install from scratch using z2d. I've switched to support a mainline kernel for the C2 (aka no HDMI support at this time) a couple of weeks ago.
Would you suggest to try ODROID-C2 / Khadas VIM mainline kernel?
Is it possible to compile using my desktop Centos 7 installation or I need to compile it on running Ubuntu image on my Odroid C2?
Would you suggest to try ODROID-C2 / Khadas VIM mainline kernel?
Absolutely. I'm using the C2 mainline kernel for a couple of months now, without any hassle.
Is it possible to compile using my desktop Centos 7 installation or I need to compile it on running Ubuntu image on my Odroid C2?
You don't need to compile the kernel image, just clone the z2d repository on your C2, chdir to the Odroid C2 folder, configure the interface (SD card or eMMC or USB card reader) in centos_00.sh and execute the scripts as described here. The scripts in z2d make use of pre-build kernel images, the one for the C2 can be found here (but this kernel only boots with the latest u-boot firmware for the C2).
Maybe you can help me - my Centos on C2 is not booting.
What I did
Step 1: Download the CentOS 7 AArch64 userland tar archive
Downloaded
CentOS-7-aarch64-rootfs-7.3.1611.tar.xz
Step 2: Prepare the target media with a formware-only disk image
Downloaded
ubuntu64-16.04.2lts-mate-odroid-c2-20170301.img
, flashed it to my eMMC 32GB Modulewiped out the root file system contents, but leaving untouched:
Step 3: Copy the rootfs contents to your destination device
Step 4: Reboot to CentOS 7 and have fun
Booting stops with error message