wiki:howto/Embedded

Version 3 (modified by Edwin Eefting, 15 years ago) (diff)

--

Installatie op embedded systeem via serial en PXE

(dit is nog een concept)

Fix pxelinux in /home/shares/tftp:

[Syn-3] root@kantoor2.datux.nl /home/shares/tftp# ls -l pxelinux.0
-rwxr-xr-x  1 root root 16794 Apr 12 11:14 pxelinux.0*

[Syn-3] root@kantoor2.datux.nl /home/shares/tftp# cat pxelinux.cfg/default
TIMEOUT 100
PROMPT 1
DEFAULT embedded
SERIAL 0 38400
DISPLAY boot.txt
LABEL embedded
        KERNEL embedded/bzImage
        APPEND initrd=embedded/initrd.gz net_server=gateway net_iso=embedded/install.iso sup console=ttyS0,38400 ro root=/dev/ram0 init=/linuxrc ramdisk_size=64000 text cdroot cdboot
LABEL embeddedboot
        KERNEL embedded/bzImage
        APPEND initrd=embedded/initrd.gz net_server=gateway net_iso=embedded/install.iso sup console=ttyS0,38400 ro root=/dev/ram0 init=/linuxrc ramdisk_size=64000 text
LABEL normal
        KERNEL normal/bzImage
        APPEND initrd=normal/initrd.gz net_server=gateway net_iso=normal/install.iso sup console=tty1 ro root=/dev/ram0 init=/linuxrc ramdisk_size=64000 cdroot cdboot text
LABEL normalboot
        KERNEL normal/bzImage
        APPEND initrd=normal/initrd.gz net_server=gateway net_iso=normal/install.iso sup console=tty1 ro root=/dev/ram0 init=/linuxrc ramdisk_size=64000 text
LABEL bko
        KERNEL gpxe.0

[Syn-3] root@kantoor2.datux.nl /home/shares/tftp# ls embedded/
bzImage  initrd.gz  install.iso

[Syn-3] root@kantoor2.datux.nl /home/shares/tftp# cat boot.txt

     _/_/_/  _/      _/  _/      _/            _/_/_/
   _/          _/  _/    _/_/    _/                  _/
    _/_/        _/      _/  _/  _/  _/_/_/_/_/  _/_/
       _/      _/      _/    _/_/                  _/
_/_/_/        _/      _/      _/            _/_/_/

                                   ENTERPRISE LINUX
                                   Network boot

Please choose your boot method below:
 embedded    Boot installer for embedded devices (serial 38400,8,n,1)
 normal      Boot installer for normal pc's
 bko         Boot via http://boot.kernel.org

Embedded kernel + init zitten in initrd_embedded en linux_embedded.

Iso is normale installer iso.

Zorg dat guest/guest-account bij tftp samba share kan.

Via SCC dhcp aanpassen zodat hij bootp doet en pxelinux.0 laad.

Pas grub aan na 1e boot

[Syn-3] root@darkstar.example.net /boot/grub# cat menu.lst
serial --unit=0 --speed=38400
terminal serial
timeout 10
default saved

title Normal boot
 root (hd0,0)
 savedefault 0
 kernel /bzImage console=ttyS0,38400 root=/dev/ram0 init=/linuxrc ramdisk_size=64000
 initrd /initrd.gz

title Test new kernel
 root (hd0,0)
 savedefault 0
 kernel /bzImage.test console=ttyS0,38400 root=/dev/ram0 init=/linuxrc ramdisk_size=64000
 initrd /initrd.gz.test

title Use safemode kernel (use with caution!)
 root (hd0,0)
 savedefault 0
 kernel /bzImage.safe console=ttyS0,38400 root=/dev/ram0 init=/linuxrc ramdisk_size=64000
 initrd /initrd.gz.safe

test