查看X86 bootloader deployment的源代码
←
X86 bootloader deployment
跳转到:
导航
,
搜索
因为以下原因,你没有权限编辑本页:
您刚才请求的操作只有这个用户组中的用户才能使用:
用户
您可以查看并复制此页面的源代码:
---++ X86 Bootloader Deployment (for loading large ELF file) ---+++ 0. Issue PXELINUX can not load ELF file. Grub can only load small ELF file (less than 5MB) using following commands: <pre> grub> kernel --type=netbsd (hd0,0)/boot/system.elf grub> boot </pre> ---+++ 1. Overview * Setup the BIOS to make the first bootable device is hard disk. * Install a grub into this hard disk and configure the grub to use the serial console * Make sure you have a gPXE usable NIC (Intel epro/100 or 8139 ...) * Load the gPXE image through grub * Load the large ELF file in gPXE through http or tftp or ftp ... ---+++ 2. Install and configure GRUB <pre> root@server:~/> grub-install --root-directory=/mnt /dev/sda </pre> Modify the /mnt/boot/grub/menu.lst something like: <pre> serial --unit=0 --speed=115200 --word=8 --parity=no --stop=1 terminal --timeout=10 serial console default 0 timeout 3 title default pxelinux kernel /boot/gpxe.krn </pre> ---+++ 3. Using the gPXE with serial console support We need serial console to support the remote control :) Attachment has a prebuilt gPXE image with serial console support ---+++ 4. Load ELF file in gPXE Make sure you have a gPXE usable NIC (Intel epro/100 or 8139 ...) Then use 'dhcp' to configure the NIC and use 'kernel' to load the ELF file: <pre> gPXE> dhcp net1 DHCP (net1 00:0e:2e:7e:f5:e6).... ok gPXE> kernel tftp://128.224.149.6/lwang2/17772/wrhv tftp://128.224.149.6/lwang2/17772/wrhv........ ok gPXE>boot </pre> If you want to the PXE to load the kernel automatically please follow these commands: <pre> ssh <your_id>@yow-lpgnfs-01.ottawa.wrs.com sudo target-config.pl --config=silk_city_2 --type=pxe --action="replace config ../ttai/common_pc/pxelinux-config" --restart </pre> ---+++ 5. Example * Reset the 17771 board <pre> vlmTool turnOff -s amazon.wrs.com -t 17771 ; sleep 12; vlmTool turnOn -s amazon.wrs.com -t 17771 </pre> * Connet the remote serial console <pre> telnet </pre> * Press 'ESC' to entry grub <pre> grub> kernel /boot/gpxe.krn [Linux-zImage, setup=0x800, size=0x33807] grub> boot </pre> * After loading the gpxe.krn image, press the Ctrl + B to entry gPXE shell <pre> gPXE 0.9.7+ -- Open Source Boot Firmware -- http://etherboot.org Features: HTTP DNS TFTP AoE iSCSI bzImage COMBOOT ELF Multiboot PXE PXEXT gPXE> </pre> * Then <pre> gPXE> dhcp net1 DHCP (net1 00:0e:2e:7e:f5:e6).... ok gPXE> kernel tftp://128.224.149.6/lwang2/17772/wrhv tftp://128.224.149.6/lwang2/17772/wrhv........ ok gPXE>boot </pre> <br><br>
返回到
X86 bootloader deployment
。
个人工具
登录
名字空间
页面
讨论
变换
查看
阅读
查看源代码
查看历史
操作
搜索
导航
首页
社区专页
新闻动态
最近更改
随机页面
帮助
工具箱
链入页面
相关更改
特殊页面