← Back to team overview

sony-vaio-z-series team mailing list archive

Re: Kernels and script for VPC ( and maybe VGN ) Z Series with Intel and NVidia both usable. Ubuntu 10.04 amd_64

 

Hi Fabrizio,

> I saw you started using the standard 2.6.35-rc6, are you aware of any
> specific problem in porting your patches to the debian kernel?

	I tried originally basing my patches on the Ubuntu kernel, even using the 
whole of the drm tree from the rc6 one. Whilst there was no problem building 
or booting the kernel, I simply could not get the Intel driver to work as it 
does with rc6. I'm guessing that there was just a module which was causing the 
problem or something similar, but I'd spent so much time by that point that I 
couldn't really investigate further. If you are going to go that route, I 
would recommend trying an install of the 64 bit on a USB drive or something to 
make sure that my kernel modifications work for you, and only then try to port 
them to the standard kernel - there isn't much point spending the time if they 
don't work on your machine in the first place!
 
> As a side note, could you also share the patch for the auto-restarting
> 2.6.28.10 kernel? Until the intel vga support will be definitively
> fixed I assume I will have to keep the nvidia card working, and after
> my first attempt of enabling the advanced menu in bios ended up in
> making my VPCZ12C5E a brick the annoying old-kernel trick looks more
> attractive... :/

	I didn't even try the BIOS mod because I still want to run Windows ( 
Visual Pinball is brilliant :). ) I'll try to get the patch and kernel config 
in my files directory soon, BUT it is really simple - all I did was look for a 
convenient place early in the boot process to reboot the machine. I ended up 
doing this in drivers/pci/probe.c:

Add #include <linux/reboot.h> to the list of includes.

Find the function pci_create_bus, and change the first bit to read:

struct pci_bus * pci_create_bus(struct device *parent,
                int bus, struct pci_ops *ops, void *sysdata)
{
        int error;
        struct pci_bus *b;
        struct device *dev;

        printk(KERN_WARNING "System reboot hacked in to pci_create_bus() - 
restarting system.\n");
        kernel_restart(NULL);


	In reality there are loads of other places that it could go. This does 
enough to put the BIOS in static mode whilst not taking too long! You can 
create a kernel with almost no modules/features other than pci and acpi.

Adam.



> 
> thanks
> fabrizio
> 
> On Thu, Aug 5, 2010 at 6:17 PM, Adam Hill <sidepipeuk@xxxxxxxxx> wrote:
> > You have to follow the instructions in the readme EXACTLY - if you don't
> > you will get a black screen. I.e. you need grub2 in the correct mode for
> > the panel and you need gfxpayload = keep. You also need to boot in text
> > mode using the text kernel parameter. Also, do not load the module
> > yourself but let my rc.local.moved script do it. If you fail to do any
> > of this you will certainly end up with a black screen!
> > 
> > On 5 Aug 2010 16:55, "Aleix Solà" <aleixsr@xxxxxxxxx> wrote:
> >> Hello Adam, you're right, launching update-initramfs -u -k
> >> 2.6.35-rc6-vaioz
> >> repairs Kernel Panic.
> >> Now when I boot using kernel 2.6.35-rc6-vaioz I see STAMINA led on, but
> >> still I cannot get Intel card working.
> >> 
> >> Using default parameters I get a black screen, but system is not halt,
> >> because I can ping it and send a crtl+alt+del
> >> Then I used "nomodeset" grub option and I get console mode, launched
> >> /etc/rc.local.moved and when GDM is starting system freezes completly
> >> with 2 blinking leds (CAPS LOCK and SCREEN LOCK); maybe I need new
> >> intel drivers?
> >> 
> >> Thanks in advance.
> >> 
> >> 
> >> 2010/8/5 Adam Hill <sidepipeuk@xxxxxxxxx>
> >> 
> >>> > > Hello everybody, I tried Adam's kernel and when I boot I get a
> >>> > > Kernel Panic, anybody with same problem?
> >>> > 
> >>> > yes, that kernel does not include the modules necessary to read the
> >>> > intel raid.
> >>> 
> >>> It has, because I'm using it now - quad raid 0 :). Like I said, you
> >>> just
> >>> need to update the initramfs as it says in the readme. I AM getting
> >>> paranoid
> >>> now though, so if someone can confirm that even after updating it still
> >>> kernel
> >>> panics, then I'll start from scratch and try it again, and update as
> >>> necessary.
> >>> 
> >>> Adam.
> >>> 
> >>> > cheers
> >>> > tobi
> > 
> > _______________________________________________
> > Mailing list: https://launchpad.net/~sony-vaio-z-series
> > Post to     : sony-vaio-z-series@xxxxxxxxxxxxxxxxxxx
> > Unsubscribe : https://launchpad.net/~sony-vaio-z-series
> > More help   : https://help.launchpad.net/ListHelp



Follow ups

References