Slax author's Blog (RSS)
29
December2012
PXE support in Slax
After numerous requests for PXE support I've decided to implement it. It wasn't such hard, yet I struggled two problems. First one was an odd behavior of cpio, which wasn't able to create correct archive when asked to pack files from several directories into one. I didn't really find out how to make it work the way I wanted, so I had to create a temporary directory where all files are copied a priory and packed into a CPIO archive later. Another problem was pivot_root call, which refused to work and returned Invalid Argument error every time. Took me a hour to find out what's wrong. Linux live kit though it already escaped initramfs due to forgotten flag file. Anyway, the problems were resolved and I'm now running Slax which booted over PXE.
There is yet one more issue I'd like to address, it is the speed of downloading Slax bundles (.sb files) over TFTP. It's very slow. So I'm compiling busybox with httpd support (yeah) and I'm going to try that instead of tftp, in the hope that it will be somehow faster.
How PXE works: One computer (a server) is running Slax. Use command or boot parameter (unnamed yet) to prepare Slax to act as PXE server - it will just create an initramfs image with all network kernel drivers which are currently available in the currently running Slax, and will start dhcp and tftp services.
Other computers (clients) will have PXE boot selected instead of disk boot. PXE autodiscovery will send to each client computer a new IP address and the needed files (vmlinuz, initrfs.img). Slax boots on client machines, modprobes kernel drivers to enable networking, downloads *.sb files from the local server into memory and runs from there.

User comments

Hi
I need recompile the kernel and activate PAE in x86 and kernel-headers.
How?
Please!

You won't get an answer while hijacking another post and not searching the forum!


PAE is not supported officially in Slax, sorry. Recompiling kernel is an option, since source codes are available, but it is not an easy task, you'd have to modify lots of things in Slax, namely kernel modules in initramfs image and kernel drivers in core squashfs bundle. I can guide you through the process but it would be a paid support.

Well actually I have to correct myself. It is easy task, it is not just simple :)

@Marvel Bridge: This is where I learned how to compile kernels: porteus.org/tutoriels/51-development/91-compilation-and-usage-of-custom-porteus-kernel.html
As Porteus is also a live distro, the process is the same.
@Thomas M, you could try mounting the /mnt/live by using NFS and copy the sb files from there. Maybe it's faster.
tdmsilvino

An other alternative to http or NFS is sshfs.
Customizing Slax 6 for "ghostlike" distribution, i found it good to give a read-write solution.
I remember too i was in trouble with compiled modules inside PXE. The driver.lzm embeded had to be update and custom detection module too, due to newest network card.
Maybe Tomas could think about an elegant solution to keep those drivers up to date.

There is no longer any drivers.lzm inside the initramfs image, so don't worry about that.

Off Topic Slax 7 Potential Bug ? (I would have posted in the slax 6 forum but it may not be noted). Can other users confirm if they have the same period.
When using smplayer to play japanese anime with subtitles , the audio and subtitle are not in sync. The same anime played with vlc is in sync.
The above was tested on one desktop only (slax 7 installed to the hard disk in live /frugal mode).

Dear Tomas,
Two improvement recommendation for you:
1. In KDE terminal, you will have "root@slaxetc" when you switch to /etc/. It would be better that you can add one delimiter or something.
2. In the booting process, you may need to do rootcopy after all .sb are mounted.
Best regards,
Gary

Dear Tomas,
I may need to correct item 2.
I can do put file here
/rootcopy/usr/share/icons/oxygen/48x48/skype.png
rather than here
/rootcopy/usr/share/icons/default.kde4/48x48/skype.png
I guess it's how "cp" treats soft-link folders.
Best regards,
Gary

Three questions:
1. How do I update slax using diffmod? There doesn't seem to be any instructions on this website regarding how to do that. Perhaps it will be a good idea to put that under Documentation?
2. Is there a new slax 7 forum? Or are we still using the old one?
3. Where is .bashrc located in slax? I can't seem to find it in Home or root.

@Matt
1) -don't know
2) Tomas aims to replace traditional forum with slashdot-like Requests
3)i t seems there is no bashrc. Due to a mc limitation ( mc-wrapper doesn't take care of last directory ), i had to create my own /root/.bashrc to solve the problem.

@Slaxeee
> 3)i t seems there is no bashrc.
There's already .bashrc in /root/ directory; see ls -a -> Slax 7.0.2

Já jsem pro NFS nebo HTTP Äi FTP , TFTP je extrémnÄ› pomalé.
ProsÃm pak ukázat jak budou vypadat parametry bootu
KERNEL
APPEND
DÃky

Anyone have luck on ati/nvidia support yet? Cant seem to figure out how to make a kernel module for my AMD HD video. Tried ATI module for Porteus, but without kernel module, I get errors.

Off Topic -Slax 7.02 Bug Report -Dolphin Not Refresh Display Of Folder Content
Not alway but frequently.
For eg
I open Dolphin and go to a folder .
I open a terminal there.
I convert a tgz file using tgz2sb .
The process completed but I can't see the resultant sample.sb.
Clicking the back arrow to exit thr folder and coming back in makes no different.
If I close Dolphin and reopen a new instance of Dolphin , I see the sample.sb in the folder.

@jcsoh
I think it's the normal way except if you make the conversion inside Dolphin. Outside, Dolphin may not receive file change event or may be with an small time interval.
To refresh quickly, you can press F5 key too.

"To refresh quickly, you can press F5 key too."
Ok , I id wonder if this was Dolphin's normal behaviour , but I think this default sucks . Earlier I thought my conversion failed as the resultant file was no where to be seen. I thought about "refreshing the screen" but I don't know how , so thanks for the F5 key info.
I was a die hard krusader file manager user , but I can say I am starting to get use and like Dolphin with Slax 7.

Hey gang,
Just been running Slax 7.0.2 through a few paces to get the
feel for the new version. After using 6.1.2 for some time,
Slax 7 isn't totally alien. Overall Slax 7 seems to be performing
pretty well, both my Acer Aspire One netbook and my Dell
Inspiron 531S desktop booted without any issues, quite nice!
In Slax 6.1.2, I used KMail for most of my email. What are some of you fellow Slax 7 users using for email?

Thomas
Try bbftp instead of tftp or http.
I'll make a benchmark.. but transfers up to 20MB can be better.. :)
http://doc.in2p3.fr/bbftp/doc.3.2.0.html#instserver

Actually I've recompiled busybox with httpd support and it seems it works just fine, so I'll stick with that. I'm going to post a release announcement for the next Slax version as soon as FTP mirrors get updated, so users will be able to test it soon.

I'm excited to see this version ready with support for PXE.
When will it be released? Today?




@ Zik
Post at slax 6 forum and mark title of topic with slax 7.
http://old.slax.org/forum.php


Je možne boot po sÃti s využitÃm PXE a NFS?
Zkusil jsem v pxelinuxu za APPEND přidat root=/dev/nfs netboot=nfs nfsroot=IP:/cesta
ale nedařà se. Stále nemůže najÃt /slax.

Great news! Definitely eager to try it out.
Thanks Tomas!