Difference between revisions of "Fedora28ppc64"

From HDebugWiki
Jump to navigation Jump to search
m
m (remove leading spaces from f28dvd.repo example)
 
(5 intermediate revisions by the same user not shown)
Line 6: Line 6:
1. Get Install DVD:
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
  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 [http://hdebug.com/Fedora/ppc64/index.html]:
2. Get prebuilt t4240 kernel, dtb, and kernel-modules from [http://hdebug.com/Fedora/ppc64/index.html]:


  wget http://hdebug.com/Fedora/ppc64/linux-4.1.35-rt41-sdkv20-1703-03067.tgz
  wget http://hdebug.com/Fedora/ppc64/linux-4.1.35-rt41-sdkv20-1703-03067.tgz
Note: if not already running a kernel that supports squashfs, install this one, reboot and continue...


3. mount install DVD:
3. mount install DVD:
Line 19: Line 21:
4. Mount the LiveOS-install-image rootfs from inside the DVD squashfs install.img:
4. Mount the LiveOS-install-image rootfs from inside the DVD squashfs install.img:


  mkdir /mnt/f28/image
  mkdir -p /mnt/f28/image
  mkdir /mnt/f28/instro
  mkdir /mnt/f28/instro
  mount -r -t squashfs /mnt/f28dvd/images/install.img /mnt/f28/image
  mount -r -t squashfs /mnt/f28dvd/images/install.img /mnt/f28/image
Line 31: Line 33:
  mkdir /mnt/f28/overlay/work
  mkdir /mnt/f28/overlay/work
  mkdir $cr
  mkdir $cr
  mount -t overlay overlay $cr -olowerdir=/mnt/f28/instro,upperdir=overlay/overlay,workdir=overlay/work<br>
  mount -t overlay overlay $cr -olowerdir=/mnt/f28/instro,upperdir=/mnt/f28/overlay/upper,workdir=/mnt/f28/overlay/work
 
  mkdir $cr/etc/yum.repos.d
  mkdir $cr/etc/yum.repos.d
  # Create repo file pointing to dvd:
  # Create repo file pointing to dvd:
  cat - > $cr/etc/yum.repos.d/f28dvd<br>
  cat - > $cr/etc/yum.repos.d/f28dvd.repo
  [f28dvd]
 
  name=Fedora 28
Paste this into the "cat - >" stdin to create f28dvd.repo
  baseurl=file:///mnt/f28dvd
[f28dvd]
  enabled=1
name=Fedora 28
  gpgcheck=0
baseurl=file:///mnt/f28dvd
enabled=1
gpgcheck=0
   
   
6. mount the target partition for f28 (ext4 formated) in the install rootfs:
6. mount the target partition for f28 (ext4 formated) in the install rootfs:
Line 48: Line 53:
7. mount DVD and special files in install rootfs:
7. mount DVD and special files in install rootfs:


mkdir $cr/mnt/f28dvd
  mount --bind /mnt/f28dvd $cr/mnt/f28dvd
  mount --bind /mnt/f28dvd $cr/mnt/f28dvd
  mount --rbind /sys $cr/sys
  mount --rbind /sys $cr/sys
Line 78: Line 84:
  cd $cr/mnt/sysimage/usr/lib/modules<br>
  cd $cr/mnt/sysimage/usr/lib/modules<br>
  tar -zxf <PATH-TO>/linux-4.1.35-rt41-sdkv20-1703-03067/modules-4.1.35-rt41-sdkv20-1703-03067-g1ae843c.tgz
  tar -zxf <PATH-TO>/linux-4.1.35-rt41-sdkv20-1703-03067/modules-4.1.35-rt41-sdkv20-1703-03067-g1ae843c.tgz
14. Reboot into this rootfs, enable internet, and do a "dnf update".
See first boot console log: [http://hdebug.com/Fedora/f28/fedora28-firstboot-t4240-log.txt]

Latest revision as of 09:12, 23 October 2019

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

Note: if not already running a kernel that supports squashfs, install this one, reboot and continue...

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 -p /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
cr=/mnt/f28/install
mkdir -p /mnt/f28/overlay/upper mkdir /mnt/f28/overlay/work mkdir $cr mount -t overlay overlay $cr -olowerdir=/mnt/f28/instro,upperdir=/mnt/f28/overlay/upper,workdir=/mnt/f28/overlay/work
mkdir $cr/etc/yum.repos.d
# Create repo file pointing to dvd:
cat - > $cr/etc/yum.repos.d/f28dvd.repo

Paste this into the "cat - >" stdin to create f28dvd.repo

[f28dvd]
name=Fedora 28
baseurl=file:///mnt/f28dvd
enabled=1
gpgcheck=0

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:

mkdir $cr/mnt/f28dvd
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
passwd

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

14. Reboot into this rootfs, enable internet, and do a "dnf update".

See first boot console log: [2]