[Arm-dev] Community kernel 4.18.x

Mon Oct 22 17:01:07 UTC 2018
Mark Verlinde <mark at havak.nl>

-----Oorspronkelijk bericht-----
> Afzender:Mark Verlinde <mark at havak.nl>
> Verstuurd: Maandag 22 Oktober 2018 14:27
> Aan: Conversations around CentOS on ARM hardware <arm-dev at centos.org>
> Onderwerp: Re: [Arm-dev] Community kernel 4.18.x

> 
> Thank you for the hints, it Led to a booting setup!
> 
> Still need to fine tine, some customization may not be needed howerever this configuration led to the booting odroid HC1.
> 
> Appended cpuidle.off=1 console=tty1 console=ttySAC2,115200n8 to the cmdline:
> 
> # cat /boot/extlinux/extlinux.conf
> # extlinux.conf generated by appliance-creator
> ui menu.c32
> menu autoboot Welcome to Centos-Uboot-Community-kernel. Automatic boot in # second{,s}. Press a key for options.
> menu title Centos-Uboot-Community-kernel Boot Options.
> menu hidden
> timeout 20
> totaltimeout 600
> 
> default=Centos-Uboot-Community-kernel (4.18.14-200.el7.armv7hl)
> label CentOS Linux (4.18.16-200.el7.armv7hl) 7 (AltArch)
>         kernel /vmlinuz-4.18.16-200.el7.armv7hl
>         append cpuidle.off=1 console=tty1 console=ttySAC2,115200n8 ro root=UUID=a306d630-4957-4da0-8dd6-79f943147d61 LANG=en_US.UTF-8
>         fdtdir /dtb-4.18.16-200.el7.armv7hl
>         initrd /initramfs-4.18.16-200.el7.armv7hl.img
> 
> label Centos-Uboot-Community-kernel (4.18.14-200.el7.armv7hl)
>         kernel /vmlinuz-4.18.14-200.el7.armv7hl
>         append cpuidle.off=1 console=tty1 console=ttySAC2,115200n8 ro root=UUID=a306d630-4957-4da0-8dd6-79f943147d61
>         fdtdir /dtb-4.18.14-200.el7.armv7hl
>         initrd /initramfs-4.18.14-200.el7.armv7hl.img
> 
> In an effort to mimic the FC28 intenramfs added/omitted  some modules and
> added _all_ exynos and samsung divers loaded by the booting FC28 setup:
> 
> #cat /etc/dracut.conf.d/odroid_hc1.conf
> add_dracutmodules+="dm"
> omit_dracutmodules+="network ifcfg"
> add_drivers+="exynosdrm exynos_bus exynos_trng exynos_nocp exynos_rng phy_exynos_dp_video phy_exynos_mipi_video dwc3_exynos clk_exynos_audss i2c_exynos5 dw_mmc_exynos dw_mmc_pltfm dw_mmc phy_exynos_usb2 phy_exynos5_usbdrd pwm_samsung "
> 
> (AGAIN) NOTE: some may be necessary others may be ommited..

Turns out one additional driver - dwc3 - is needed to boot the odroid HC1 with a rootfs residing on a SATA device.
My best guess is dwc3_exynos actually depends on dwc3 and/or (one of) the dependencies of dwc3.


#cat /etc/dracut.conf.d/odroid_hc1.conf
add_dracutmodules+="dm"
omit_dracutmodules+="network ifcfg"
add_drivers+=" exynosdrm exynos_bus exynos_trng exynos_nocp exynos_rng phy_exynos_dp_video phy_exynos_mipi_video dwc3_exynos clk_exynos_audss i2c_exynos5 dw_mmc_exynos dw_mmc_pltfm dw_mmc phy_exynos_usb2 phy_exynos5_usbdrd pwm_samsung "
add_drivers+=" dwc3"