Now that I have made my own serial port for the ODROID-XU, creating something omitted from this development board, I’m ready to try to compile my own kernel again. At least I should be able to debug any error messages this time.
I did everything in the previous posting, but this time built a uImage properly:
LOADADDR=40008000 make uImage dtbs sudo cp arch/arm/boot/uImage /boot/uboot/uImage-3.11-rc7 sudo cp uInitrd /boot/uboot/uInitrd-3.11-rc7 sudo cp arch/arm/boot/dts/exynos5410-odroidxu.dtb /boot/uboot/
We end up with (where the bold files are the ones I have built):
$ ll /boot/uboot/ total 33047 -rwxr-xr-x 1 root root 5510 Sep 27 08:14 boot.ini -rwxr-xr-x 1 root root 28603 Dec 7 16:34 exynos5410-odroidxu.dtb -rwxr-xr-x 1 root root 293168 Sep 27 08:14 u-boot.bin -rwxr-xr-x 1 root root 2113488 Dec 7 16:33 uImage-3.11-rc7 -rwxr-xr-x 1 root root 6518598 Sep 27 08:14 uInitrd -rwxr-xr-x 1 root root 8104359 Dec 7 16:36 uInitrd-3.11-rc7 -rwxr-xr-x 1 root root 6518598 Nov 8 17:36 uInitrd-official3.4.5 -rwxr-xr-x 1 root root 5127832 Sep 27 08:13 zImage -rwxr-xr-x 1 root root 5127832 Nov 8 17:36 zImage-official3.4.5
I boot this by interrupting u-boot and typing the load commands by hand. (Note that /boot/uboot is a FAT partition).
set bootargs console=ttySAC2,115200n8 loglevel=9 earlyprintk root=UUID=ad455a75-609c-4b3c-956b-bcef3ebc4603 ro fatload mmc 0 43000000 uimage-3.11-rc7 fatload mmc 0 46000000 uinitrd-3.11-rc7 fatload mmc 0 49000000 exynos5410-odroidxu.dtb bootm 43000000 46000000 49000000
This boots the kernel, but fails trying to find the root filesystem:
[ 9.680000] mmc1: error -110 whilst initialising SD card [ 9.700000] mmc_host mmc1: Bus speed (slot 0) = 100000000Hz (slot req 300000Hz, actual 299401HZ div = 167) [ 11.730000] mmc1: error -110 whilst initialising SD card [ 11.750000] mmc_host mmc1: Bus speed (slot 0) = 100000000Hz (slot req 200000Hz, actual 200000HZ div = 250) [ 13.790000] mmc1: error -110 whilst initialising SD card [ 13.810000] mmc_host mmc1: Bus speed (slot 0) = 100000000Hz (slot req 196079Hz, actual 196078HZ div = 255) [ 15.850000] mmc1: error -110 whilst initialising SD card [ 17.680000] systemd[1]: No control group support available, not creating root group. [ 17.710000] systemd[1]: Expecting device dev-disk-by\x2duuid-ad455a75\x2d609c\x2d4b3c\x2d956b\x2dbcef3ebc4603.device... [ 17.720000] systemd[1]: Starting -.slice. Expecting device dev-disk-by\x2du[ 17.730000] systemd[1]: Caught , dumped core as pid 1144. [ 17.730000] systemd[1]: Freezing execution. uid-ad455a75\x2d609...c4603.device...
Update #2: See the comments section.
Update: It’s because the 3.11 kernel doesn’t support the MMC card. I’ll try later using an external USB drive.
The 3.12 kernel does support the MMC card.
Thanks — I’ve updated the post. This kernel, correct?
https://github.com/hardkernel/linux/tree/odroid-3.12.y
Also do you happen to know if there is a u-boot that boots into Hyp mode? This is crucial for our work with virtualization and has proven to be a major stumbling block with other hardware.
I’m also very interested in this aspect. I haven’t been able to compile the 3.12 kernel and run it. Even though the compilation is correct and I follow the steps in http://odroid.us/mediawiki/index.php?title=Step-by-step_Native_Compiling_a_Kernel , the kernel does not boot. I don’t know if it’s because I’m booting from the microSD (and maybe it’s not supported by the kernel) or what. Also, I didn’t take into account the HYP support by u-boot. Isn’t it included by default in the images available in the forum? I also was not able to enable KVM in the menuconfig. So far, there are many unconnected dots… đŸ˜¦
Pingback: Compiling ODROID 3.12.3 kernel, attempt 3 | Richard WM Jones