WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: PXE Remaster problems  (Read 4040 times)

Offline tucari

  • Newbie
  • *
  • Posts: 10
PXE Remaster problems
« on: August 10, 2015, 03:00:17 PM »
Hi there!

Long time lurker, first time poster.

I've been trying without too much luck to get TinyCore PXE booting to X. I'm loading using iPXE:

kernel http://192.168.0.28/vmlinuz64
initrd http://192.168.0.28/modules64.gz
initrd http://192.168.0.28/rootfs.gz
initrd http://192.168.0.28/initramfs.gz

I need the 64bit kernel as it is the only one to boot on our Mac Pros from the EFI version of iPXE. The initramfs contains the extensions from TinyCore-6.3.iso cde folder... laid out into /tmp/builtin/optional.

The extensions are loading, but I'm getting "failed in WaitforX" error on boot.
I'd really like to get the whole thing working in a single initrd, but that seems a long ways away considering this prob i'm having!

If I use the 32-bit kernel, the system boots fine. I was reading about Xvesa not being supported on 64-bit but assumed this was corepure64 related. If that's the case which are the base extensions needed to boot to X using the 64-bit kernel?

Thanks you so much in advance.
« Last Edit: August 10, 2015, 03:16:36 PM by tucari »

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: PXE Remaster problems
« Reply #1 on: August 10, 2015, 04:22:30 PM »
You cannot use 32 bit tczs with corepure 64 bit kernel.
Use tinycorepure64.
Why not use nfs for the tce directory.  That way you pxe boot and it behaves like it is on a hard drive.
http://wiki.tinycorelinux.net/wiki:netbooting

Offline tucari

  • Newbie
  • *
  • Posts: 10
Re: PXE Remaster problems
« Reply #2 on: August 11, 2015, 08:46:07 AM »
You cannot use 32 bit tczs with corepure 64 bit kernel.
Use tinycorepure64.
Why not use nfs for the tce directory.  That way you pxe boot and it behaves like it is on a hard drive.
http://wiki.tinycorelinux.net/wiki:netbooting

Gerald,

Many thanks for your reply.

Apologies for my ignorance, but Is there any way to run a 64-bit kernel and run a 32-bit userspace with tinycore? I have no need to run 64-bit programs, but need to boot from a 64-bit UEFI kernel.

Thanks again
Jon

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14535
Re: PXE Remaster problems
« Reply #3 on: August 11, 2015, 09:12:43 AM »
..Is there any way to run a 64-bit kernel and run a 32-bit userspace with tinycore? I have no need to run 64-bit programs, but need to boot from a 64-bit UEFI kernel.

There is a way - vmlinuz64, modules64 and rootfs - as opposed to vmlinuz64, modules64 and rootfs64 for corepure64.

Whilst corepure64 boots uefi for me, I'm not sure that core64 ever did...

Offline tucari

  • Newbie
  • *
  • Posts: 10
Re: PXE Remaster problems
« Reply #4 on: August 11, 2015, 10:04:07 AM »
..Is there any way to run a 64-bit kernel and run a 32-bit userspace with tinycore? I have no need to run 64-bit programs, but need to boot from a 64-bit UEFI kernel.

There is a way - vmlinuz64, modules64 and rootfs - as opposed to vmlinuz64, modules64 and rootfs64 for corepure64.

Whilst corepure64 boots uefi for me, I'm not sure that core64 ever did...

Cheers,

That is exactly what i've been doing, but X will not start. In the scenario you describe, is Xvesa the likely culprit?

Thanks

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14535
Re: PXE Remaster problems
« Reply #5 on: August 11, 2015, 10:09:26 AM »
There is no 64-bit version of Xvesa

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 10960
Re: PXE Remaster problems
« Reply #6 on: August 11, 2015, 12:52:22 PM »
You can replace Xvesa with Xfbdev, and add a vga=xxx bootcode in your bootloader.
The only barriers that can stop you are the ones you create yourself.

Offline tucari

  • Newbie
  • *
  • Posts: 10
Re: PXE Remaster problems
« Reply #7 on: August 11, 2015, 01:26:40 PM »
You can replace Xvesa with Xfbdev, and add a vga=xxx bootcode in your bootloader.

Absolutely, positively fantastic! this worked an absolute treat. Thanks so much to everyone for their help. I now finally have an image that I can netboot via PXE and also BDSP on PC and Mac! Now just need to compile partclone into a tcz and I've got an awesome base for a netbooted machine imager.


Offline tucari

  • Newbie
  • *
  • Posts: 10
Re: PXE Remaster problems
« Reply #8 on: August 11, 2015, 02:44:33 PM »
One more peculiar issue, Xfbdev comes up perfectly on the PC but on the Mac (which is booting the kernel via iPXE-EFI) the vga= line is being ignored and coming up at the native res of the screen... and is also inverted (the background is a nice orange colour)... I have tried dropping to prompt and using Xfbdev -screen 1024x768 but it continues to load at my native 2560x1080

It is definitely being passed the kernel options because quiet works (and I also seemingly need to specify initrd=core.gz for the mac to find root)

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: PXE Remaster problems
« Reply #9 on: August 11, 2015, 03:09:49 PM »
Try vga=ask and see what vesa modes are available for the frame buffer.
You could also try Xorg.

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 10960
Re: PXE Remaster problems
« Reply #10 on: August 12, 2015, 02:22:37 AM »
Yeah, EFI ignores the resolution, only taking the presence of vga=xxx into account, signing that the framebuffer should be used. Inverted colors should not happen though.

edit: If you look at the "c" in the core logo in the center, is it white or brown?
« Last Edit: August 12, 2015, 02:26:52 AM by curaga »
The only barriers that can stop you are the ones you create yourself.

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 10960
Re: PXE Remaster problems
« Reply #11 on: August 12, 2015, 02:35:09 AM »
http://www.spinics.net/lists/linux-fbdev/msg08940.html

Quote
> Probably efifb should be looking at something to determine if display
> is RGB or BGR...

Right - normally we get it from the firmware graphics driver, but on a
few generations of Intel Macs they gracefully omitted an implementation
of that part of the spec, which is why we have a DMI table that just has
best-effort entries.

Go Apple.
The only barriers that can stop you are the ones you create yourself.

Offline tucari

  • Newbie
  • *
  • Posts: 10
Re: PXE Remaster problems
« Reply #12 on: August 12, 2015, 01:00:30 PM »
Hi gents,

This seems to be a problem that Apple, in their infinite wisdom, have created. I'm using a Mac Pro 4,1 but will test this further on our newer machines. Its purely a cosmetic issue though: i'm using tinycore to run apps for cloning (the apps are custom, but will use partclone in the background to do the heavy lifting). We clone up to 10 machines at a time (video editing facility) so I'm writing a server based system that can manage the process from a central webgui (not unlike FOG).

Regarding the Red and Blue switch, I've been reading up on it and there seems to be a patch floating around for fbdev... i shall get that compiled and get back to you. I have tried Xorg, with the same issue so will probably stick with xfbdev just for simplicity. I don't really want to get into using anything other than framebuffer because we have many different machines, both pc and mac, booting this image. Xfbdev-old also exhibits the same problem. If i take a screenshot it comes up normal so here's a picture... SMPTE bars confirm red/blue switch.

Thanks again






« Last Edit: August 12, 2015, 01:02:26 PM by tucari »

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 10960
Re: PXE Remaster problems
« Reply #13 on: August 12, 2015, 01:23:45 PM »
The info on what the color channels are comes from the kernel, so ideally it'd be fixed there. You could add an option in Xfbdev to flip the channels, but then you'd have to detect when to use the option - same effort as having the kernel detect it.
The only barriers that can stop you are the ones you create yourself.

Offline tucari

  • Newbie
  • *
  • Posts: 10
Re: PXE Remaster problems
« Reply #14 on: August 12, 2015, 01:33:37 PM »
The info on what the color channels are comes from the kernel, so ideally it'd be fixed there. You could add an option in Xfbdev to flip the channels, but then you'd have to detect when to use the option - same effort as having the kernel detect it.

Hmm, would appear this could be an issue considering the Mac's lacking EFI. We have many 4,1's.. some with NV cards, some with ATI. I have a suspicion that the ATI's would probably be fine and will try this theory tomorrow. Was not an issue I was expecting, i must say! tinycorepure64 also exhibits the same problem, would the kernel be the same as the one i'm using? I've tried using Xorg with the NV driver but get a black screen (I'm assuming because it requires a kernel module, and the tcz is for a 32-bit kernel). If I were to get this working, would Xorg automatically detect the card and use the appropriate driver?

Many thanks

EDIT: was reading that Nouveau driver should work with EFI and i guess this will also fix my resolution issue (i'm not going to be able to change the framebuffer res even if the color problems go away). I've added the driver to my image and it is loading, but Xorg is still using framebuffer... :(
« Last Edit: August 12, 2015, 01:42:47 PM by tucari »