From MediaWiki
Revision as of 22:05, 14 October 2019 by Else58 (Talk | contribs) (Fedora28 install for QoriQ ppc64)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Fedora-28 ppc64 Installation for QorIQ t4240 e6500-based SoC based on NXP SDK v2.0 Linux kernel

This method uses dnf in a chroot from a native boot (either yocto sdk-v2.0-1703 rootfs or an older Fedora release)

1. Get Install DVD:

wget http://archives.fedoraproject.org/pub/archive/fedora-secondary/releases/28/Server/ppc64/iso/Fedora-Server-DVD-ppc64-28-1-1.iso

2. Get prebuilt t4240 kernel, dtb, and kernel-modules from [1]:

wget http://hdebug.com/Fedora/ppc64/linux-4.1.35-rt41-sdkv20-1703-03067.tgz

3. mount install DVD:

mkdir /mnt/f28dvd
mount -r Fedora-Server-DVD-ppc64-28-1.1.iso /mnt/f28dvd

4. Mount the LiveOS-install-image rootfs from inside the DVD squashfs install.img:

mkdir /mnt/f28/image
mkdir /mnt/f28/instro
mount -r -t squashfs /mnt/f28dvd/images/install.img /mnt/f28/image
mount -r /mnt/f28/image/LiveOS/rootfs.img /mnt/f28/instro

5. Create a writable overlay on top of the DVD install image in order to to add yum.repos.d/f28dvd.repo file to the DVD and allow dnf to write files. Note: ensure the overlay directory has sufficient space to contain the new files.

# chroot directory
mkdir -p /mnt/f28/overlay/upper
mkdir /mnt/f28/overlay/work
mkdir $cr
mount -t overlay overlay $cr -olowerdir=/mnt/f28/instro,upperdir=overlay/overlay,workdir=overlay/work
mkdir $cr/etc/yum.repos.d
cat - > $cr/etc/yum.repos.d/f28dvd
 name=Fedora 28

6. mount the target partition for f28 (ext4 formated) in the install rootfs:

mkdir -p $cr/mnt/sysimage
mount *TARGET* $cr/mnt/sysimage

7. mount DVD and special files in install rootfs:

mount --bind /mnt/f28dvd $cr/mnt/f28dvd
mount --rbind /sys $cr/sys
mount --rbind /dev $cr/dev

8. chroot into install rootfs:

HOME=/root chroot $cr
mount -t proc proc /proc

9. verify dvd is available and populate dnf working files:

dnf repolist
dnf group list

10. install server group:

dnf --installroot=/mnt/sysimage group install "Fedora Server Edition"

11. set root password:

chroot /mnt/sysimage

12. exit both chroot's

13. install modules into $cr/mnt/sysimage/usr/lib/modules

mkdir -p $cr/mnt/sysimage/usr/lib/modules
cd $cr/mnt/sysimage/usr/lib/modules
tar -zxf <PATH-TO>/linux-4.1.35-rt41-sdkv20-1703-03067/modules-4.1.35-rt41-sdkv20-1703-03067-g1ae843c.tgz