New kernels

AmigaOne X1000 platform specific issues related to Linux only.
User avatar
musa
Posts: 709
Joined: Tue Aug 23, 2011 7:58 pm

Re: New kernels

Post by musa »

xeno74 wrote: Wed Jun 07, 2023 10:15 am

Have you seen any error messages in the kernel panic?

/dev/root: cannot open blockdev
vfs: cannot open root device "sdc4" or unknow-block (0,0): error -6

How many hard disks/SSDs are installed in your X1000?
3
Are they connected to the SATA ports?
yes

Is one connected to the IDE port?
no There is a catweasel on the ide port

Maybe you need to add "rootdelay=5" to the boot arguments.
Dont work and rootdelay=10 dont work



Only "bootargs" or "setenv bootargs"?
setenv bootargs

Void PPC and Debian Sid PPC64 boot with the RC5 on my X1000.
On my x1000 there booting with 5.11 with no errrors . some of the 6.4 kernel work but not all
AmigaX1000
Follow me on twitter @basjoo_dk
User avatar
sailorMH
Posts: 230
Joined: Wed Aug 28, 2013 6:01 pm
Location: Czech republic

Re: New kernels

Post by sailorMH »

musa wrote: Wed Jun 07, 2023 6:45 pm vfs: cannot open root device "sdc4" or unknow-block (0,0): error -6
exactly this error I had if I tested PCIe x8 -> 2x PCIe x4 switch.
That was strange, because I not changed harddisk configuration, only config change was this:
linux gfx card HD6xxx was removed from 2.slot x8, into this slot I put PCIe switch and graphic card connect to one connector of switch.

I have some photos of screen. I stoped with switch testing due to little importance and very few time. But if Musa has the same error ( with different configuration ), it should be investigated. I hope I will do it on weekend.

P.S. are there debug version of kernel? Or are there some kernel command line parameters debug to serial?
Will work for us some of these? https://www.kernel.org/doc/html/v4.14/a ... eters.html

P.P.S. these: https://wiki.ubuntu.com/Kernel/KernelDe ... al_Console
Micro A1-C (G3/1.2 GHz), AmigaOne XE (G4/1.4 GHz), Pegasos II (G4/1.33 GHz), Sam440ep, Sam440ep-flex, AmigaOne X1000
Efika 5200b, Pegasos I, Powerbook, Mac Mini (1.83 GHz), iMac, Powermac Quad

AmigaOS, MorphOS, linux, MacOS X
User avatar
xeno74
Posts: 9323
Joined: Fri Mar 23, 2012 7:58 am

Re: New kernels

Post by xeno74 »

Peter,

Thanks a lot for your answers. Currently, I don't have any ideas to solve the issues with your X1000.

I always test every new kernel very intensiv with Void PPC and Debian Sid PPC64 on my X1000.

Test steps:
  • Boot with the vmlinux image from the internal CF card (including reboot)
  • Boot with the zImage from the internal CF card (including reboot)
  • Check CPU usage and network traffic
  • Hardware check (HardInfo, lscpu, dmesg etc)
  • Check hardware 3D acceleration (SuperTuxKart, Pangea games, videos with ViewTube etc)
  • Test QEMU with KVM PR
  • Test web browsing
  • Check sound with the SB600 HD audio and with Bluetooth
  • Access to other volumes (Hard disk, SSD, floppy disk, internal CF card, DVD drive etc)
  • New: Check temperatures via the SMBus/I2C connected sensors (Thanks to sailorMH)
Sometimes, I boot with a LABEL. Maybe this is a solution for you.

You can also try to load the kernels from the internal CF card.

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

Running Linux on AmigaONEs can require some tinkering.
User avatar
musa
Posts: 709
Joined: Tue Aug 23, 2011 7:58 pm

Re: New kernels

Post by musa »

Hi Christian
I have tried booting 6.4_rc5 several times with no success.
I'm thinking about whether it's possible that the kernel package gets corrupted during download?
I have downloaded the file several times and sometimes I get this error when unpacking. ( gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now)
I was wondering if you could just pack in a different way one time , for example as a zip. Just to test that it is not my extracted file that is the problem.
Regards, Peter
AmigaX1000
Follow me on twitter @basjoo_dk
User avatar
musa
Posts: 709
Joined: Tue Aug 23, 2011 7:58 pm

Re: New kernels

Post by musa »

Hi Christian.
i have tried downloading 6.4_rc5 on another computer (my pi4) and extracted kernel vmlinix-6.4_rc5 there. Then copied it onto my USB drive.
This time debian 64 boot on vmlinux-6.4_rc5. I think it is quite certain that my problems with some 6.4 kernels is due to corrupting during download on my main computer with ubuntu 22.4. I dont now why.
Have a nice day



Image
AmigaX1000
Follow me on twitter @basjoo_dk
User avatar
xeno74
Posts: 9323
Joined: Fri Mar 23, 2012 7:58 am

Re: New kernels

Post by xeno74 »

musa wrote: Sun Jun 11, 2023 10:41 pm Hi Christian.
i have tried downloading 6.4_rc5 on another computer (my pi4) and extracted kernel vmlinix-6.4_rc5 there. Then copied it onto my USB drive.
This time debian 64 boot on vmlinux-6.4_rc5. I think it is quite certain that my problems with some 6.4 kernels is due to corrupting during download on my main computer with ubuntu 22.4. I dont now why.
Have a nice day
Hi Peter,

Good to know and thanks a lot for testing! :-)

Have a nice day too,

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

Running Linux on AmigaONEs can require some tinkering.
User avatar
xeno74
Posts: 9323
Joined: Fri Mar 23, 2012 7:58 am

Re: New kernels

Post by xeno74 »

Hi All,

I cross compiled the RC6 of kernel 6.4 for the X1000 and X5000 with Ubuntu 23.04 x86_64 on a PC with an Intel Xeon W-3223 (8 cores/16 threads@3.50GHz) today.

New:
Download: linux-image-6.4-rc6-X1000_X5000.tar.gz

Code: Select all

nproc
Result: 16

X1000 Linux kernel compiling time:

Code: Select all

time make -j16 CROSS_COMPILE=powerpc-linux-gnu- ARCH=powerpc vmlinux

Code: Select all

real	2m39,487s
user	36m38,095s
sys	2m28,181s
For comparison: Intel Xeon D-1527 (4 cores@2.199GHz):

Code: Select all

real    6m32.027s
user    46m31.326s
sys     2m20.941s

Code: Select all

time make -j16 CROSS_COMPILE=powerpc-linux-gnu- ARCH=powerpc modules

Code: Select all

real	1m1,039s
user	14m37,619s
sys	1m7,690s
For comparison: Intel Xeon D-1527 (4 cores@2.199GHz):

Code: Select all

real    2m44.396s
user    19m48.324s
sys     1m11.883s
X5000 Linux kernel compiling time:

Code: Select all

time make -j16 CROSS_COMPILE=powerpc-linux-gnu- ARCH=powerpc uImage

Code: Select all

real	2m37,555s
user	34m40,007s
sys	2m34,064s
For comparison: Intel Xeon D-1527 (4 cores@2.199GHz):

Code: Select all

real    6m17.786s
user    43m36.072s
sys     2m27.547s

Code: Select all

time make -j16 CROSS_COMPILE=powerpc-linux-gnu- ARCH=powerpc modules

Code: Select all

real	1m22,004s
user	19m43,215s
sys	1m34,050s
For comparison: Intel Xeon D-1527 (4 cores@2.199GHz):

Code: Select all

real    3m35.010s
user    26m3.404s
sys     1m38.056s
Please test the kernels.

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

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

Re: New kernels

Post by sailorMH »

Thanks, it works!
Byt I have to increase rootdelay to 10. Attempt with 5 ends with:
"Kernel panic - not syncing: VFS: Unable to mount rootfsom unknown-block (8,21)"
Image
Micro A1-C (G3/1.2 GHz), AmigaOne XE (G4/1.4 GHz), Pegasos II (G4/1.33 GHz), Sam440ep, Sam440ep-flex, AmigaOne X1000
Efika 5200b, Pegasos I, Powerbook, Mac Mini (1.83 GHz), iMac, Powermac Quad

AmigaOS, MorphOS, linux, MacOS X
User avatar
xeno74
Posts: 9323
Joined: Fri Mar 23, 2012 7:58 am

Re: New kernels

Post by xeno74 »

sailorMH wrote: Mon Jun 12, 2023 5:38 pm Thanks, it works!
Great! :-)
sailorMH wrote: Mon Jun 12, 2023 5:38 pm Byt I have to increase rootdelay to 10. Attempt with 5 ends with:
"Kernel panic - not syncing: VFS: Unable to mount rootfsom unknown-block (8,21)"
Have you booted the Linux userland from a USB stick/drive?
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

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

Re: New kernels

Post by sailorMH »

xeno74 wrote: Tue Jun 13, 2023 7:19 am Have you booted the Linux userland from a USB stick/drive?
yes, I booted it classic way, no initrd, no label something like:

Code: Select all

setenv bootargs "root=/dev/sdbx rootdelay=10"
boot -elf -noints -fs=ext2 usbdisk0:vmlinux
In past I had problems with cfcard, both with fat and ext2. It is very often unreadable from CFE. Maybe I have to exchange my old cfcard.
Micro A1-C (G3/1.2 GHz), AmigaOne XE (G4/1.4 GHz), Pegasos II (G4/1.33 GHz), Sam440ep, Sam440ep-flex, AmigaOne X1000
Efika 5200b, Pegasos I, Powerbook, Mac Mini (1.83 GHz), iMac, Powermac Quad

AmigaOS, MorphOS, linux, MacOS X
Post Reply