Kernel 5.7

AmigaOne X1000 platform specific issues related to Linux only.
User avatar
Hypex
Beta Tester
Beta Tester
Posts: 443
Joined: Mon Dec 20, 2010 2:23 pm
Location: Vic. Australia.

Re: Kernel 5.7

Post by Hypex »

sailorMH wrote: Thu May 14, 2020 2:47 pm I didn't rebuild initrd.gz from scratch. But i modify it - I simply added modules from Xeno's 5.5.11 kernel to original initrg.gz: /lib/modules/5.5.11_A-EON_X1000_Nemo/*
Well I didn't mean a rebuild from scratch. Just a rebuild based on modifying it. For myself I prefer to work on the KISS principle; if the proper way too involved and complicated, then I do it my way! :-P

Okay, so my process is like this. I take the initrg.gz and unpack it to a custom folder. I like to do things the easy way so I tend to do it on the desktop, but you need to do it as root. I like to open a folder as root, if I can, but not all desktops have the menu as standard. If you are in luck then you will have a initrg.gz that contains a CPIO file you can open, generally from the archiver, and unpack the contents to a folder.

Once here I performs the mods. From experience you need the raid md modules. Sometimes it can be useful to check the /lib/modules/* of the installer initrd to see what ones it expects. You possibly could use a file list, such as one generated by find, to use as a source for needed modules. And use it copy those ones in, so that you have an X1000 modules folder, which replicates the included kernel modules. It may be easier to use the mkinitramfs command to build an initrd, which by default will pack most modules, then open it up the installer image and copy the X1000 modules folder to your initrd folder. You can remove the included modules folder with the generic ppc version as it won't be used with native X1000 modules in place, and you can save space. But leave all other files in place.

Code: Select all

mkinitramfs -o initrd.img
So you don't get annoying errors and notes I recommend a preseed. This worked on Jessie. But I don't know if it's still current, yet here it is anyway, put it in the root folder named as preseed.cfg.

Code: Select all

# AmigaOne custom preseed configuration file


# Continue the install without loading kernel modules?
#
d-i	anna/no_kernel_modules	boolean	true


# We don't have GRUB
#
d-i 	grub-installer/skip 	boolean true	


# This partitioner doesn't have information about the default type of the partition tables on your architecture.
#
partman-partitioning partman-partitioning/unknown_label boolean true

# Continue without installing a kernel?
#
bootstrap-base base-installer/kernel/skip-install	boolean	true
bootstrap-base base-installer/kernel/image 		select none


# The kernel image (meta) package to be installed; "none" can be used if no
# kernel is to be installed.
d-i base-installer/kernel/image 			string none


# No boot loader installed
#
nobootloader	nobootloader/confirmation_common	note
There are lots of other options. And you can use it to run scripts at certain points. I've stripped it slightly.

Now, you've done this before, but it's ready to be repacked. CD into your custom initrd folder and run this as root:

Code: Select all

find . | cpio -H newc -o | gzip -9 -n >../initrd.gz
This will build a new initrd.gz in the parent folder of your initrd folder from your initrd files. You could it installer.img even or whatever you like. The ramdisk is now ready to be loaded. :-D
User avatar
sailorMH
Posts: 121
Joined: Wed Aug 28, 2013 6:01 pm
Location: Czech republic

Re: Kernel 5.7

Post by sailorMH »

xeno74 wrote: Thu May 14, 2020 9:19 am @SailorMH
Please test this kernel with the latest Debian 10 NETINST isos. I think Partman looks for the RAID and LVM kernel modules.
Thanks Christian.
I tried installation with your linux-image-5.7-rc5-2-X1000_X5000 and intrd.gz od Debian installer.It doesn't work.
Here is some logs (shortened, errors only)
hardware-summary:

Code: Select all

uname -a: Linux X1000 5.7.0-rc5-2_A-EON_X1000_Nemo #1 SMP PREEMPT Wed May 13 13:24:55 CEST 2020 ppc64 GNU/Linux
lspci -knn: lspci: Unable to load libkmod resources: error -12
syslog:

Code: Select all

May 17 17:01:09 kernel: platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
....
May 17 17:01:22 main-menu[1542]: INFO: Menu item 'brltty-udeb' selected
May 17 17:01:22 main-menu[1542]: WARNING **: Unable to set title for brltty-udeb.
...
May 17 17:01:24 main-menu[1542]: INFO: Falling back to the package description for brltty-udeb

....

....
May 17 17:01:32 cdrom-retriever: warning: File /cdrom/dists/sid/main/debian-installer/binary-ppc64/Packages does not exist.
May 17 17:01:32 cdrom-retriever: warning: Unable to find non-free/debian-installer/binary-ppc64/Packages in /cdrom/dists/sid/Release.
May 17 17:01:32 cdrom-retriever: warning: Unable to find non-free/debian-installer/binary-ppc64/Packages.gz in /cdrom/dists/sid/Release.
May 17 17:01:32 cdrom-retriever: warning: Unable to find contrib/debian-installer/binary-ppc64/Packages in /cdrom/dists/sid/Release.
May 17 17:01:32 cdrom-retriever: warning: Unable to find contrib/debian-installer/binary-ppc64/Packages.gz in /cdrom/dists/sid/Release.
May 17 17:01:57 cdrom-retriever: warning: File /cdrom/dists/sid/main/debian-installer/binary-ppc64/Packages does not exist.
May 17 17:01:57 cdrom-retriever: warning: Unable to find non-free/debian-installer/binary-ppc64/Packages in /cdrom/dists/sid/Release.
May 17 17:01:57 cdrom-retriever: warning: Unable to find non-free/debian-installer/binary-ppc64/Packages.gz in /cdrom/dists/sid/Release.
May 17 17:01:57 cdrom-retriever: warning: Unable to find contrib/debian-installer/binary-ppc64/Packages in /cdrom/dists/sid/Release.
May 17 17:01:57 cdrom-retriever: warning: Unable to find contrib/debian-installer/binary-ppc64/Packages.gz in /cdrom/dists/sid/Release.
....
May 17 17:01:26 apt-install: Queueing package pcmciautils for later installation
May 17 17:01:26 apt-install: Queueing package udev for later installation
May 17 17:01:26 apt-install: Queueing package pciutils for later installation
May 17 17:01:26 apt-install: Queueing package usbutils for later installation
May 17 17:01:27 apt-install: Queueing package eject for later installation
May 17 17:01:27 hw-detect: Missing modules 'usb-storage (USB storage)
May 17 17:01:28 check-missing-firmware: looking at dmesg for the first time
May 17 17:01:28 check-missing-firmware: saving timestamp for a later use: 
May 17 17:01:28 check-missing-firmware: /dev/.udev/firmware-missing does not exist, skipping
May 17 17:01:28 check-missing-firmware: /run/udev/firmware-missing does not exist, skipping
May 17 17:01:28 check-missing-firmware: no missing firmware in loaded kernel modules
May 17 17:01:29 cdrom-detect: Searching for Debian installation media...
May 17 17:01:30 cdrom-detect: Devices: '/dev/sr0'
May 17 17:01:31 kernel: ISO 9660 Extensions: Microsoft Joliet Level 3
May 17 17:01:31 kernel: ISO 9660 Extensions: RRIP_1991A
May 17 17:01:31 cdrom-detect: CD-ROM mount succeeded: device=/dev/sr0 fstype=iso9660
May 17 17:01:31 cdrom-detect: Detected CD 'Debian GNU/Linux 10.0 "Sid" - Unofficial ppc64 NETINST 20200419-15:29'
May 17 17:01:32 cdrom-detect: Detected CD with 'unstable' (sid) distribution
May 17 17:01:32 anna-install: Queueing udeb eject-udeb for later installation
May 17 17:01:32 anna-install: Queueing udeb apt-mirror-setup for later installation
May 17 17:01:32 anna-install: Queueing udeb apt-cdrom-setup for later installation
May 17 17:01:32 anna-install: Queueing udeb sid-support for later installation
May 17 17:01:32 main-menu[1542]: (process:2862): find: /lib/modules/5.7.0-rc5-2_A-EON_X1000_Nemo/: No such file or directory
May 17 17:01:32 main-menu[1542]: INFO: Falling back to the package description for brltty-udeb
May 17 17:01:32 main-menu[1542]: INFO: Falling back to the package description for brltty-udeb
May 17 17:01:32 main-menu[1542]: INFO: Menu item 'load-cdrom' selected
May 17 17:01:32 cdrom-retriever: warning: File /cdrom/dists/sid/main/debian-installer/binary-ppc64/Packages does not exist.
May 17 17:01:32 cdrom-retriever: warning: Unable to find non-free/debian-installer/binary-ppc64/Packages in /cdrom/dists/sid/Rele
ase.
May 17 17:01:32 cdrom-retriever: warning: Unable to find non-free/debian-installer/binary-ppc64/Packages.gz in /cdrom/dists/sid/R
elease.
May 17 17:01:32 cdrom-retriever: warning: Unable to find contrib/debian-installer/binary-ppc64/Packages in /cdrom/dists/sid/Relea
se.
May 17 17:01:32 cdrom-retriever: warning: Unable to find contrib/debian-installer/binary-ppc64/Packages.gz in /cdrom/dists/sid/Re
lease.
May 17 17:01:32 anna[4051]: WARNING **: no packages matching running kernel 5.7.0-rc5-2_A-EON_X1000_Nemo in archive
May 17 17:01:49 main-menu[1542]: INFO: Menu item 'load-cdrom' succeeded but requested to be left unconfigured.
May 17 17:01:49 main-menu[1542]: INFO: Falling back to the package description for brltty-udeb
May 17 17:01:57 main-menu[1542]: INFO: Falling back to the package description for brltty-udeb
May 17 17:01:57 main-menu[1542]: INFO: Menu item 'load-cdrom' selected
May 17 17:01:57 cdrom-retriever: warning: File /cdrom/dists/sid/main/debian-installer/binary-ppc64/Packages does not exist.
May 17 17:01:57 cdrom-retriever: warning: Unable to find non-free/debian-installer/binary-ppc64/Packages in /cdrom/dists/sid/Rele
ase.
May 17 17:01:57 cdrom-retriever: warning: Unable to find non-free/debian-installer/binary-ppc64/Packages.gz in /cdrom/dists/sid/R
elease.
May 17 17:01:57 cdrom-retriever: warning: Unable to find contrib/debian-installer/binary-ppc64/Packages in /cdrom/dists/sid/Relea
se.
May 17 17:01:57 cdrom-retriever: warning: Unable to find contrib/debian-installer/binary-ppc64/Packages.gz in /cdrom/dists/sid/Re
lease.
May 17 17:01:57 anna[4086]: WARNING **: no packages matching running kernel 5.7.0-rc5-2_A-EON_X1000_Nemo in archive
May 17 17:01:58 main-menu[1542]: INFO: Menu item 'load-cdrom' succeeded but requested to be left unconfigured.
May 17 17:01:58 main-menu[1542]: INFO: Falling back to the package description for brltty-udeb
May 17 17:02:00 main-menu[1542]: INFO: Falling back to the package description for brltty-udeb
May 17 17:02:00 main-menu[1542]: INFO: Menu item 'save-logs' selected
May 17 17:02:04 main-menu[1542]: INFO: Menu item 'save-logs' succeeded but requested to be left unconfigured.
May 17 17:02:04 main-menu[1542]: INFO: Falling back to the package description for brltty-udeb
May 17 17:02:06 main-menu[1542]: INFO: Falling back to the package description for brltty-udeb
May 17 17:02:06 main-menu[1542]: INFO: Menu item 'di-utils-shell' selected
May 17 17:03:04 main-menu[1542]: INFO: Falling back to the package description for brltty-udeb
May 17 17:03:06 main-menu[1542]: INFO: Falling back to the package description for brltty-udeb
May 17 17:03:06 main-menu[1542]: INFO: Menu item 'save-logs' selected

Old installer of Debian8 works perfectly with original initrd and AX1000 custom kernel. This new one for DebianSid is aparently diferrent.
I will try compare both installers and find way how to fix it.
Pegasos 2, AmigaOne X1000, Powebook G4, iMac G5, Powermac G5 Quad
MorphOS, AmigaOS, linux: MintPPC 11, Debian, Ubuntu ..., MacOS X
User avatar
sailorMH
Posts: 121
Joined: Wed Aug 28, 2013 6:01 pm
Location: Czech republic

Re: Kernel 5.7

Post by sailorMH »

Hypex wrote: Fri May 15, 2020 6:33 pm
Okay, so my process is like this. I take the initrg.gz and unpack it to a custom folder. I like to do things the easy way so I tend to do it on the desktop, but you need to do it as root. I like to open a folder as root, if I can, but not all desktops have the menu as standard. If you are in luck then you will have a initrg.gz that contains a CPIO file you can open, generally from the archiver, and unpack the contents to a folder.

Once here I performs the mods. From experience you need the raid md modules. Sometimes it can be useful to check the /lib/modules/* of the installer initrd to see what ones it expects. You possibly could use a file list, such as one generated by find, to use as a source for needed modules. And use it copy those ones in, so that you have an X1000 modules folder, which replicates the included kernel modules. It may be easier to use the mkinitramfs command to build an initrd, which by default will pack most modules, then open it up the installer image and copy the X1000 modules folder to your initrd folder. You can remove the included modules folder with the generic ppc version as it won't be used with native X1000 modules in place, and you can save space. But leave all other files in place.

Code: Select all

mkinitramfs -o initrd.img
So you don't get annoying errors and notes I recommend a preseed. This worked on Jessie. But I don't know if it's still current, yet here it is anyway, put it in the root folder named as preseed.cfg.
Hypex, many thanks for tips. I simply try to compare all "initrd"s and look in.
Pegasos 2, AmigaOne X1000, Powebook G4, iMac G5, Powermac G5 Quad
MorphOS, AmigaOS, linux: MintPPC 11, Debian, Ubuntu ..., MacOS X
User avatar
xeno74
Posts: 6390
Joined: Fri Mar 23, 2012 7:58 am

Re: Kernel 5.7

Post by xeno74 »

sailorMH wrote: Mon May 18, 2020 9:58 am I tried installation with your linux-image-5.7-rc5-2-X1000_X5000 and intrd.gz od Debian installer.It doesn't work.
Here is some logs (shortened, errors only)
Hi SailorMH,

Thank you for testing the RC5-2.

I found the following error message in your posted logs:

Code: Select all

May 17 17:01:27 hw-detect: Missing modules 'usb-storage (USB storage)
We always compile it into the kernel directly (CONFIG_USB_STORAGE=y). I am not sure if it is a good solution to compile it as a module.

Maybe creating a custom preseed is a better solution.

Cheers,
Christian
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

Running Linux on AmigaONEs can require some tinkering.
User avatar
sailorMH
Posts: 121
Joined: Wed Aug 28, 2013 6:01 pm
Location: Czech republic

Re: Kernel 5.7

Post by sailorMH »

xeno74 wrote: Mon May 18, 2020 2:18 pm Maybe creating a custom preseed is a better solution.

Cheers,
Christian
I think so.
MH
Pegasos 2, AmigaOne X1000, Powebook G4, iMac G5, Powermac G5 Quad
MorphOS, AmigaOS, linux: MintPPC 11, Debian, Ubuntu ..., MacOS X
User avatar
xeno74
Posts: 6390
Joined: Fri Mar 23, 2012 7:58 am

Re: Kernel 5.7

Post by xeno74 »

http://www.amigalinux.org
http://www.supertuxkart-amiga.de

Running Linux on AmigaONEs can require some tinkering.
User avatar
sailorMH
Posts: 121
Joined: Wed Aug 28, 2013 6:01 pm
Location: Czech republic

Re: Kernel 5.7

Post by sailorMH »

Tested and works on Fienix and Debian8.
Sorry, no pictures yet, I need to find new web storage for pics.
Martina
Pegasos 2, AmigaOne X1000, Powebook G4, iMac G5, Powermac G5 Quad
MorphOS, AmigaOS, linux: MintPPC 11, Debian, Ubuntu ..., MacOS X
User avatar
xeno74
Posts: 6390
Joined: Fri Mar 23, 2012 7:58 am

Re: Kernel 5.7

Post by xeno74 »

sailorMH wrote: Mon May 18, 2020 8:25 pm Tested and works on Fienix and Debian8.
Sorry, no pictures yet, I need to find new web storage for pics.
Martina
Thank you for testing the RC6! :-)
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

Running Linux on AmigaONEs can require some tinkering.
User avatar
sailorMH
Posts: 121
Joined: Wed Aug 28, 2013 6:01 pm
Location: Czech republic

Re: Kernel 5.7

Post by sailorMH »

Finally !!! Debian Sid on my X1000.
I dont't produce initrd.gz yet, but I copy disk image from fresh install on iMac G5.
Tested with new kernel:
Image
64bit kernel and userspace, Arcticfox, glxgears faster than on other distros - 1850 fps!!
Pegasos 2, AmigaOne X1000, Powebook G4, iMac G5, Powermac G5 Quad
MorphOS, AmigaOS, linux: MintPPC 11, Debian, Ubuntu ..., MacOS X
User avatar
xeno74
Posts: 6390
Joined: Fri Mar 23, 2012 7:58 am

Re: Kernel 5.7

Post by xeno74 »

sailorMH wrote: Sun May 24, 2020 9:16 pm Finally !!! Debian Sid on my X1000.
I dont't produce initrd.gz yet, but I copy disk image from fresh install on iMac G5.
Tested with new kernel:
Image
64bit kernel and userspace, Arcticfox, glxgears faster than on other distros - 1850 fps!!
Fantastic! Well done!
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

Running Linux on AmigaONEs can require some tinkering.
Post Reply