[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

How to create a simplistic initrd.img in /boot ?




Dear ppc types :

I searched around on https://www.debian.org/ports/powerpc/inst/pmac as
well as a few other places and thought I should ask before going
further.  I have built kernel 4.15.6 on x86 a few times and installed it
twice on two debian buster alpha systems today. No issues.  Same process
as usual.  However on ppc I am not about to launch into ye old trusty
"make install" unless I know that the process has the smarts to actually
NOT attempt to look for grub files to update. I still have yaboot here
and the contents I need to address are fairly trivial :

nix# cat /etc/yaboot.conf
## yaboot.conf generated by debian-installer
##
## run: "man yaboot.conf" for details. Do not make changes until you have!!
## see also: /usr/share/doc/yaboot/examples for example configurations.
##
## For a dual-boot menu, add one or more of:
## bsd=/dev/hdaX, macos=/dev/hdaY, macosx=/dev/hdaZ

boot="/dev/disk/by-id/ata-Hitachi_HDS725050KLA360_KRVN23ZAHA5DBD-part2"
device=/ht@0,f2000000/pci@9/k2-sata-root@c/@0/@0
partition=3
root="/dev/sda3"
timeout=50
install=/usr/lib/yaboot/yaboot
magicboot=/usr/lib/yaboot/ofboot
enablecdboot

image=/boot/vmlinux
        label=Linux
        read-only
        initrd=/boot/initrd.img

image=/boot/vmlinux.old
        label=old
        read-only
        initrd=/boot/initrd.img.old
nix#


Makes sense given what I have in /boot :

nix# ls -lap /boot
total 44080
drwxr-xr-x  2 root root     4096 Dec 10 20:42 ./
drwxr-xr-x 23 root root     4096 Oct 22 21:04 ../
-rw-r--r--  1 root root   167163 Nov 16 21:04 config-4.13.0-1-powerpc64
lrwxrwxrwx 1 root root 29 Oct 15 04:33 initrd.img -> initrd.img-4.13.0-1-powerpc64
-rw-r--r--  1 root root 20972026 Dec 10 20:42 initrd.img-4.13.0-1-powerpc64
lrwxrwxrwx 1 root root 29 Oct 15 04:33 initrd.img.old -> initrd.img-4.13.0-1-powerpc64
-rw-r--r--  1 root root  3965638 Nov 16 21:04 System.map-4.13.0-1-powerpc64
lrwxrwxrwx 1 root root 26 Oct 15 04:33 vmlinux -> vmlinux-4.13.0-1-powerpc64
-rwxr-xr-x  1 root root 19956624 Nov 16 21:04 vmlinux-4.13.0-1-powerpc64
lrwxrwxrwx 1 root root 26 Oct 15 04:33 vmlinux.old -> vmlinux-4.13.0-1-powerpc64
nix#


I have the essentials done and all modules in place in /lib/modules :

nix# ls -lap /lib/modules/
total 16
drwxr-xr-x  4 root root 4096 Feb 26 21:27 ./
drwxr-xr-x 14 root root 4096 Dec 10 20:26 ../
drwxr-xr-x  3 root root 4096 Nov 25 18:15 4.13.0-1-powerpc64/
drwxr-xr-x  3 root root 4096 Feb 26 21:31 4.15.6/
nix#

I would prefer not to manually make the compressed cpio initrd.img along
with busybox hardlinked all over the place. So the question is ... can I
mindlessly fire ye "make install" on ppc and expect sanity or shall I do
the initrd.img cpio bits manually piece by piece or even better is there
some wiki page somewhere on this kernel install process for ppc?

Dennis


Reply to: