?

Log in

No account? Create an account
I have already mentioned this:… - Alex Belits
abelits
abelits
I have already mentioned this:

https://github.com/InterfaceMasters/radish

Now we have ONIE installer ported to our x86 hardware. Except this port is so generic, it works on most x86-based motherboards that support "classic" MBR-based booting, can be booted over PXE, and have SATA boot media:

https://github.com/InterfaceMasters/onie

Build for im_n29xx_t40n platform produces kernel and ramdisk images suitable for PXE booting. It will need kernel command line option boot_reason=embed to install after being booted from PXE, for example, with this pxelinux.cfg/default:

SERIAL 0 115200 0
DEFAULT linux
LABEL linux
SAY Now booting the kernel from SYSLINUX...
KERNEL im_n29xx_t40n-r0.vmlinuz
APPEND ro console=tty0 console=ttyS0,115200n8 boot_reason=embed
INITRD im_n29xx_t40n-r0.initrd

To install Radish images, we have this:

https://github.com/InterfaceMasters/onie-x86-installer

To build it, first build static partclone with extfs support from patched sources at

https://github.com/InterfaceMasters/partclone

using the following (assuming it is initially installed in /home/user):
./configure --disable-rpath --disable-all --enable-extfs
--enable-static --without-libiconv-prefix --without-libintl-prefix
--prefix=/home/user --exec-prefix=/home/user --bindir=/home/user/bin
--sbindir=/home/user/bin --datarootdir=/home/user/share
make

Then copy partclone.restore to the components/ in onie-x86-installer and run

./build_installer.sh .

The result is a shell script, originally produced as installer.sh . When downloaded by ONIE over HTTP it will install Radish image that has the same name with suffix .sh replaced with -image.bin .
Leave a comment