Sony Picturebook Widescreen framebuffer patch, was: Re: [gentoo-user] The Root Block Device is unspecified or not detected - PCMCIA card CD Boot on Sony Vaio
Hi, On Sun, 30 Oct 2005 17:48:24 + Stroller [EMAIL PROTECTED] wrote: On Oct 30, 2005, at 11:18 am, Hans-Werner Hilse wrote: I'm running Gentoo on my picturebook happily since about 2 or 3 years now. Just ask if there are more problems. I can give you a kernel patch for the neomagic frame buffer driver to have it support the 480px display height... I really loved getting the widescreen framebuffer working - it was such a buzz, so cool. That made for the ultimate in notebook usability and portability. I'm copying it here verbatim. It's made against a 2.6.11.n kernel and may need a little polishing for newer versions, but it follows an easy path, I've just extended the existing special format for toshiba's libretto series: snip--- --- neofb.c 2005-04-30 03:29:00.0 +0200 +++ neofb.c.new 2005-10-31 15:55:05.899735896 +0100 @@ -640,7 +640,7 @@ mode_ok = 1; break; case 1024: - if (var-yres == 768) + if (var-yres == (par-libretto ? 480 : 768)) mode_ok = 1; break; case 800: @@ -1684,6 +1684,20 @@ .vmode = FB_VMODE_NONINTERLACED }; +static struct fb_videomode __devinitdata mode1024x480 = { + .xres = 1024, + .yres = 480, + .pixclock = 21786, + .left_margin= 160, + .right_margin = 24, + .upper_margin = 2, + .lower_margin = 0, + .hsync_len = 136, + .vsync_len = 6, + .sync = FB_SYNC_HOR_HIGH_ACT | FB_SYNC_VERT_HIGH_ACT, + .vmode = FB_VMODE_NONINTERLACED +}; + static int __devinit neo_map_mmio(struct fb_info *info, struct pci_dev *dev) { @@ -1836,10 +1850,15 @@ } break; case 0x02: - // [EMAIL PROTECTED] par-NeoPanelWidth = 1024; - par-NeoPanelHeight = 768; - memcpy(info-monspecs.modedb, vesa_modes[13], sizeof(struct fb_videomode)); + if (par-libretto) { + par-NeoPanelHeight = 480; + memcpy(info-monspecs.modedb, mode1024x480, sizeof(struct fb_videomode)); + } else { + // [EMAIL PROTECTED] + par-NeoPanelHeight = 768; + memcpy(info-monspecs.modedb, vesa_modes[13], sizeof(struct fb_videomode)); + } break; case 0x03: /* [EMAIL PROTECTED] panel support needs to be added */ snip--- Just use the libretto option (set to 1) and everything will work as expected. BTW, @Stroller: it's a 10 widescreen, 6 would be a little too small... That's really 10 not 6'??? How come I don't have a girlfriend?? ;P Well, size doesn't matter anyhow, does it ? ;-) -hwh -- gentoo-user@gentoo.org mailing list
Re: Sony Picturebook Widescreen framebuffer patch, was: Re: [gentoo-user] The Root Block Device is unspecified or not detected - PCMCIA card CD Boot on Sony Vaio
On Oct 31, 2005, at 3:03 pm, Hans-Werner Hilse wrote: I really loved getting the widescreen framebuffer working - it was such a buzz, so cool. That made for the ultimate in notebook usability and portability. I'm copying it here verbatim. It's made against a 2.6.11.n kernel and may need a little polishing for newer versions, but it follows an easy path, I've just extended the existing special format for toshiba's libretto series: Oh, that's cool. I believe they stopped support for the Picturebook's widescreen in the main kernel in 2.4 (around 2.4.20??) so it's good to see it working with a 2.6 kernel. Stroller. -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] The Root Block Device is unspecified or not detected - PCMCIA card CD Boot on Sony Vaio
On Sun, 2005-10-30 at 02:36 +, Stroller wrote: On Oct 29, 2005, at 10:52 pm, A. Khattri wrote: On Sun, 30 Oct 2005, Richard Watson wrote: Hi - I have an old Sony Vaio I thought to run Gentoo on with X. The CD drive is attached to a PCMCIA card. When the LiveCD boots it seems to go OK up until mounting root at which point I get the error The Root Block Device is unspecified or not detected and then I'm offerred to either shell or specify a /dev. I've tried gentoo-nofb dopcmcia ide=nodma but no luck. I'm a bit stuck at this point does anyone have any suggestions how I could make the install CD boot? Thanks, Richard What sort of PCMCIA card? SCSI? I have this idea it's not SCSI. Sony sold this CD-ROM-on-a-string for their sub-notebook Viaos of the PII - PIII era. I think the PMCIA card optical driver were both hardwired to the cable and it was certainly never implied that the PCMCIA card might be used with any other kind of drive. Google finds a photo at http://www.allnotebooks.ru/img/compl/51.gif I installed Gentoo on a Pentium II 400 Vaio Picturebook, the Sony with a 6 widescreen (1024 x 480??) but never had one of these CD-Roms available, only the floppy drive. In fact I cheated resorted to removing the hard-drive installing Gentoo on it using a desktop PC before returning the drive to the laptop. I think it might be possible to avoid this by installing from stage 3 - that mostly just needs to be unpacked onto a Linux-formatted partition, doesn't it? There are surely Linux distros that'll boot on this device so a pre-compiled kernel could be copied across from another machine and then only grub needs to be run, I think. Richard: does Knoppix boot from this CD-Rom drive? An Ubuntu LiveCD? Perhaps it might be worth trying an older (2003, 2004) Gentoo install CD. A Google for parallel port cd-rom linux returns, amongst others, this page http://cyberelk.net/tim/parport/paride.html so I reckon your drive is probably supported by the kernel. Stroller. Hey Stroller ... You got the model in 1 ...! I think you're correct. I'm going to try and use partition magic under Windows 2000 which is the OS it came with to create my partitions and install a stage 3. I'll let you know how I go. Hopefully having an EXT2 partition will help Knoppix start properly. Thanks, Richard -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] The Root Block Device is unspecified or not detected - PCMCIA card CD Boot on Sony Vaio
Hi, On Sun, 30 Oct 2005 15:57:28 +1000 Richard Watson [EMAIL PROTECTED] wrote: I installed Gentoo on a Pentium II 400 Vaio Picturebook, the Sony with a 6 widescreen (1024 x 480??) but never had one of these CD-Roms available, only the floppy drive. In fact I cheated resorted to removing the hard-drive installing Gentoo on it using a desktop PC before returning the drive to the laptop. I think it might be possible to avoid this by installing from stage 3 - that mostly just needs to be unpacked onto a Linux-formatted partition, doesn't it? There are surely Linux distros that'll boot on this device so a pre-compiled kernel could be copied across from another machine and then only grub needs to be run, I think. [...] Hey Stroller ... You got the model in 1 ...! I think you're correct. I'm going to try and use partition magic under Windows 2000 which is the OS it came with to create my partitions and install a stage 3. I'll let you know how I go. Hopefully having an EXT2 partition will help Knoppix start properly. Thanks, Richard I'm running Gentoo on my picturebook happily since about 2 or 3 years now. Just ask if there are more problems. I can give you a kernel patch for the neomagic frame buffer driver to have it support the 480px display height... BTW, @Stroller: it's a 10 widescreen, 6 would be a little too small... I did use a one-floppy distro that time to do the initial fdisk and mke2fs, copying over and unpacking the stage-File. I just forget which floppy distro I used, but it supported my PCMCIA-CDROM (not sony, so I hadn't even the choice to try booting from it) and my network adapter. -hwh -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] The Root Block Device is unspecified or not detected - PCMCIA card CD Boot on Sony Vaio
On Oct 30, 2005, at 11:18 am, Hans-Werner Hilse wrote: I'm running Gentoo on my picturebook happily since about 2 or 3 years now. Just ask if there are more problems. I can give you a kernel patch for the neomagic frame buffer driver to have it support the 480px display height... I really loved getting the widescreen framebuffer working - it was such a buzz, so cool. That made for the ultimate in notebook usability and portability. BTW, @Stroller: it's a 10 widescreen, 6 would be a little too small... That's really 10 not 6'??? How come I don't have a girlfriend?? ;P Stroller. -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] The Root Block Device is unspecified or not detected - PCMCIA card CD Boot on Sony Vaio
On Sun, 30 Oct 2005, Richard Watson wrote: Hi - I have an old Sony Vaio I thought to run Gentoo on with X. The CD drive is attached to a PCMCIA card. When the LiveCD boots it seems to go OK up until mounting root at which point I get the error The Root Block Device is unspecified or not detected and then I'm offerred to either shell or specify a /dev. I've tried gentoo-nofb dopcmcia ide=nodma but no luck. I'm a bit stuck at this point does anyone have any suggestions how I could make the install CD boot? Thanks, Richard What sort of PCMCIA card? SCSI? -- -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] The Root Block Device is unspecified or not detected - PCMCIA card CD Boot on Sony Vaio
On Oct 29, 2005, at 10:52 pm, A. Khattri wrote: On Sun, 30 Oct 2005, Richard Watson wrote: Hi - I have an old Sony Vaio I thought to run Gentoo on with X. The CD drive is attached to a PCMCIA card. When the LiveCD boots it seems to go OK up until mounting root at which point I get the error The Root Block Device is unspecified or not detected and then I'm offerred to either shell or specify a /dev. I've tried gentoo-nofb dopcmcia ide=nodma but no luck. I'm a bit stuck at this point does anyone have any suggestions how I could make the install CD boot? Thanks, Richard What sort of PCMCIA card? SCSI? I have this idea it's not SCSI. Sony sold this CD-ROM-on-a-string for their sub-notebook Viaos of the PII - PIII era. I think the PMCIA card optical driver were both hardwired to the cable and it was certainly never implied that the PCMCIA card might be used with any other kind of drive. Google finds a photo at http://www.allnotebooks.ru/img/compl/51.gif I installed Gentoo on a Pentium II 400 Vaio Picturebook, the Sony with a 6 widescreen (1024 x 480??) but never had one of these CD-Roms available, only the floppy drive. In fact I cheated resorted to removing the hard-drive installing Gentoo on it using a desktop PC before returning the drive to the laptop. I think it might be possible to avoid this by installing from stage 3 - that mostly just needs to be unpacked onto a Linux-formatted partition, doesn't it? There are surely Linux distros that'll boot on this device so a pre-compiled kernel could be copied across from another machine and then only grub needs to be run, I think. Richard: does Knoppix boot from this CD-Rom drive? An Ubuntu LiveCD? Perhaps it might be worth trying an older (2003, 2004) Gentoo install CD. A Google for parallel port cd-rom linux returns, amongst others, this page http://cyberelk.net/tim/parport/paride.html so I reckon your drive is probably supported by the kernel. Stroller. -- gentoo-user@gentoo.org mailing list