Kernel 4.8

AmigaOne X1000 platform specific issues related to Linux only.

Re: Kernel 4.8

Postby xeno74 » Sat Aug 06, 2016 5:48 am

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

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

Re: Kernel 4.8

Postby Srtest » Sat Aug 06, 2016 9:08 pm

Do I need to disconnect the compact flesh? because I can't get past the "booting linux via..." phase with the two latest kernels.
User avatar
Srtest
 
Posts: 240
Joined: Wed Jun 11, 2014 6:06 pm

Re: Kernel 4.8

Postby xeno74 » Sat Aug 06, 2016 9:44 pm

Srtest wrote:Do I need to disconnect the compact flesh? because I can't get past the "booting linux via..." phase with the two latest kernels.


No, you don't need to disconnect the CF card. Mechanic and I can boot the alpha3 with a connected CF card. Maybe an issue with your CF card. Can you boot the kernel 4.1.29?
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

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

Re: Kernel 4.8

Postby xeno74 » Sat Aug 06, 2016 10:05 pm

Hi All,

I asked Philippe about the Problem with the PA Semi PWRficient Gigabit Ethernet. The PA Semi PWRficient Gigabit Ethernet tries very often to connect to the network but there isn't a network cable plugged in.

Philippe wrote:Hi Chrisitian,

I'm sorry, I don't have this hardware so I can't do any test.

Have you tried to remove both commit and check if the issue is reproduced please ?

Regards,
Philippe


I was able to revert the two following PA Semi PWRficient Gigabit Ethernet commits.


Code: Select all
git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git a


Code: Select all
cd a


Code: Select all
git revert 6cf285de0231e53057726aea1fb87ab772765cb7


Code: Select all
git revert 80721e7fa68f914a21b2685a01399b3aa80ac116


Code: Select all
cd ..


Code: Select all
patch -p0 < nemo_4.8-4.patch


Output:

patching file a/arch/powerpc/kernel/head_64.S
patching file a/arch/powerpc/kernel/pci-common.c
patching file a/arch/powerpc/kernel/prom_init.c
patching file a/arch/powerpc/kernel/setup-common.c
patching file a/arch/powerpc/platforms/pasemi/iommu.c
patching file a/arch/powerpc/platforms/pasemi/Kconfig
patching file a/arch/powerpc/platforms/pasemi/pci.c
patching file a/arch/powerpc/platforms/pasemi/setup.c
patching file a/drivers/ata/libata-sff.c
patching file a/drivers/ata/pata_atiixp.c
patching file a/drivers/ata/pata_of_platform.c
patching file a/drivers/gpu/drm/radeon/radeon_pm.c
patching file a/drivers/pci/pci.c
patching file a/drivers/pci/probe.c
patching file a/sound/pci/hda/patch_sigmatel.c


Code: Select all
patch -p0 < powerpc-pci-Only-do-fixed-PHB-numbering-on-powernv.patch


Output:

patching file a/arch/powerpc/kernel/pci-common.c


Code: Select all
cd a


Code: Select all
mv nemo-4.8-alpha4.config .config


Code: Select all
yes "" | make oldconfig


Output:

HOSTCC scripts/basic/fixdep
HOSTCC scripts/kconfig/conf.o
SHIPPED scripts/kconfig/zconf.tab.c
SHIPPED scripts/kconfig/zconf.lex.c
SHIPPED scripts/kconfig/zconf.hash.c
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/conf
scripts/kconfig/conf --oldconfig Kconfig
#
# configuration written to .config
#


Code: Select all
make vmlinux


Keep your fingers crossed! :-)
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

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

Re: Kernel 4.8

Postby Srtest » Sat Aug 06, 2016 10:17 pm

xeno74 wrote:
Srtest wrote:Do I need to disconnect the compact flesh? because I can't get past the "booting linux via..." phase with the two latest kernels.


No, you don't need to disconnect the CF card. Mechanic and I can boot the alpha3 with a connected CF card. Maybe an issue with your CF card. Can you boot the kernel 4.1.29?


Well, I can't boot alpha 3 + 4 while 1 works. The only difference I can think of is that I am using a southern islands card (just like the last time).
User avatar
Srtest
 
Posts: 240
Joined: Wed Jun 11, 2014 6:06 pm

Re: Kernel 4.8

Postby xeno74 » Sat Aug 06, 2016 11:35 pm

Srtest wrote:Well, I can't boot alpha 3 + 4 while 1 works. The only difference I can think of is that I am using a southern islands card (just like the last time).


OK, good to know. Maybe we have another problem.

@All

Unfortunately, the two reverts don't solve the problem with the PA Semi PWRficient Gigabit Ethernet.
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

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

Re: Kernel 4.8

Postby xeno74 » Thu Aug 11, 2016 5:20 pm

Hi All,

I was able to patch the RC1 with the Nemo and PHB-numbering patch. Additionally I added some printks in the file pata_of_platform.c. I wanted to know which values have the following variables:

ctl_res = io_res;
io_res.start += 0x800;
ctl_res.start = ctl_res.start + 0x80e;
io_res.end = ctl_res.start-1;

It compiled without any problems but unfortunately I didn't see any printk outputs of these variables. The output of pata_of_platform is missing too. I see this output in the dmesg of the kernel 4.7 but I don't see it in the dmesg of the kernel 4.8.

I have the feeling, that pata_of_platform doesn't work anymore. Maybe this is the reason, why the CF card doesn't work anymore.

Maybe this is the problem: https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/diff/arch/powerpc/platforms/pasemi/setup.c?id=bad60e6f259a01cf9f29a1ef8d435ab6c60b2de9

Do you have any hints for me?

Cheers,

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

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

Re: Kernel 4.8

Postby xeno74 » Fri Aug 12, 2016 11:14 am

Hi All,

I reverted the setup.c. It boots but it doesn't find any partitions.

Cheers,

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

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

Re: Kernel 4.8

Postby xeno74 » Fri Aug 12, 2016 2:33 pm

Hi All,

I compiled the RC1 of kernel 4.8 with Olof's CompactFlash driver for PA Semi Electra boards today. Unfortunately this driver doesn't detect our CF device.

dmesg | grep -i pasemi

Code: Select all
[    0.000000] mpic: Setting up MPIC "PASEMI-OPIC" version 1.3 at fc000000, max 2 CPUs
[    2.937676] pasemi_mac 0000:00:15.0: no mac address in device tree, not configuring
[    4.288347] [c00000026d127680] [c000000000816cdc] .pasemi_smb_probe+0x12c/0x188
[    4.288399] [c00000026d127bb0] [c000000001560198] .pasemi_smb_driver_init+0x24/0x38
[    4.288455] i2c-pasemi: probe of 0000:00:1c.0 failed with error -16
[    4.288596] [c00000026d127680] [c000000000816cdc] .pasemi_smb_probe+0x12c/0x188
[    4.288645] [c00000026d127bb0] [c000000001560198] .pasemi_smb_driver_init+0x24/0x38
[    4.288695] i2c-pasemi: probe of 0000:00:1c.1 failed with error -16
[    4.288834] [c00000026d127680] [c000000000816cdc] .pasemi_smb_probe+0x12c/0x188
[    4.288883] [c00000026d127bb0] [c000000001560198] .pasemi_smb_driver_init+0x24/0x38
[    4.288933] i2c-pasemi: probe of 0000:00:1c.2 failed with error -16
[    4.289745] EDAC MC0: Giving out device to module pasemi_edac controller pasemi,pwrficient-mc: DEV 0000:00:04.0 (POLLED)
[    4.290425] EDAC MC1: Giving out device to module pasemi_edac controller pasemi,pwrficient-mc: DEV 0000:00:05.0 (POLLED)
[   33.061617] pasemi_mac 0000:00:14.3: PHY init failed: -19.
[   33.061622] pasemi_mac 0000:00:14.3: Defaulting to 1Gbit full duplex


dmesg | grep -i ata

Code: Select all
[    0.000000] Memory: 8072880K/8388608K available (11312K kernel code, 2116K rwdata, 10256K rodata, 860K init, 1813K bss, 315728K reserved, 0K cma-reserved)
[    0.157114] pci 0000:05:12.0: calling .quirk_no_ata_d3+0x0/0x30
[    0.157217] pci 0000:05:12.0: set SATA to AHCI mode
[    0.158892] pci 0000:05:14.1: calling .quirk_no_ata_d3+0x0/0x30
[    0.411908] libata version 3.00 loaded.
[    2.917640] ahci 0000:05:12.0: AHCI 0001.0100 32 slots 4 ports 3 Gbps 0xf impl SATA mode
[    2.920704] ata1: SATA max UDMA/133 abar m1024@0xa0209400 port 0xa0209500 irq 9
[    2.921186] ata2: SATA max UDMA/133 abar m1024@0xa0209400 port 0xa0209580 irq 9
[    2.921657] ata3: SATA max UDMA/133 abar m1024@0xa0209400 port 0xa0209600 irq 9
[    2.922137] ata4: SATA max UDMA/133 abar m1024@0xa0209400 port 0xa0209680 irq 9
[    2.923384] scsi host4: pata_atiixp
[    2.923722] scsi host5: pata_atiixp
[    2.923998] ata5: PATA max UDMA/100 cmd 0x1030 ctl 0x1054 bmdma 0x1000 irq 9
[    2.924453] ata6: DUMMY
[    3.232241] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[    3.232308] ata2: SATA link down (SStatus 0 SControl 300)
[    3.232351] ata4: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[    3.232384] ata3: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
[    3.252058] ata3.00: ATAPI: HL-DT-ST DVDRAM GH22NS50, TN01, max UDMA/100
[    3.252064] ata3.00: SB600 AHCI: limiting to 255 sectors per cmd
[    3.292581] ata3.00: SB600 AHCI: limiting to 255 sectors per cmd
[    3.292584] ata3.00: configured for UDMA/100
[    3.333404] ata4.00: ATA-8: ESA3SF1240GB, 4.C.V, max UDMA/133
[    3.333408] ata4.00: 468862128 sectors, multi 16: LBA48 NCQ (depth 31/32), AA
[    3.333415] ata4.00: SB600 AHCI: limiting to 255 sectors per cmd
[    3.433200] ata4.00: SB600 AHCI: limiting to 255 sectors per cmd
[    3.433203] ata4.00: configured for UDMA/133
[    3.844943] ata1.00: ATA-8: ST2000DM001-9YN164, CC4B, max UDMA/133
[    3.844947] ata1.00: 3907029168 sectors, multi 0: LBA48 NCQ (depth 31/32), AA
[    3.844955] ata1.00: SB600 AHCI: limiting to 255 sectors per cmd
[    3.903500] ata1.00: SB600 AHCI: limiting to 255 sectors per cmd
[    3.903504] ata1.00: configured for UDMA/133
[    3.926117] scsi 0:0:0:0: Direct-Access     ATA ST2000DM001-9YN1 CC4B PQ: 0 ANSI: 5
[    4.363105] scsi 3:0:0:0: Direct-Access     ATA ESA3SF1240GB     V    PQ: 0 ANSI: 5
[   10.432400] EXT4-fs (sda4): mounted filesystem with ordered data mode. Opts: (null)


Cheers,

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

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

Re: Kernel 4.8

Postby xeno74 » Sun Aug 14, 2016 1:51 am

Hi All,

I have really good news for you. Darren solved all problems! He released a new Nemo patch. I compiled the RC1 with his patch. Additionally I had to patch the source code with the powerpc-pci-Only-do-fixed-PHB-numbering-on-powernv patch because of the Radeon problem.

I tested the RC1 a lot. Everything works.

Test results:

  • Hardware 3D acceleration works with an AMD Radeon HD6870 (tested with DOOM 3 and SuperTuxKart 0.8.1-2)
  • Sound works (MP3 files, web radio etc)
  • LAN works (Realtek RTL-8139 and PA Semi PWRficient Gigabit Ethernet)
  • WLAN works (FRITZ!WLAN USB Stick N)
  • "PR" KVM works (QEMU guest: Mac OS X 10.4.11 Tiger)
  • Compiz works
  • YouTube HD videos work with ViewTube
  • Internal CF card works
  • pas_shutdown works
  • Restart works
  • I2C/SMBus error messages are gone
  • It works with the new systemd on ubuntu MATE 16.10

Everything is fine. :-) I am happy. :-)

Download: vmlinux-4.8-rc1-AmigaONE_X1000.tar.gz

PLEASE PLEASE test the RC1. We want to know if it works for you.

Thanks,

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

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

PreviousNext

Return to Platform: AmigaOne X1000 - Linux Only

Who is online

Users browsing this forum: No registered users and 10 guests