Chinaunix首页 | 论坛 | 博客
  • 博客访问: 419780
  • 博文数量: 99
  • 博客积分: 65
  • 博客等级: 民兵
  • 技术积分: 1012
  • 用 户 组: 普通用户
  • 注册时间: 2012-04-20 16:30
个人简介

linux kernel 工程师

文章分类

全部博文(99)

文章存档

2018年(5)

2017年(12)

2016年(27)

2015年(10)

2014年(43)

2012年(2)

我的朋友

分类: LINUX

2016-12-20 09:59:56

注意分区的起始扇区要大于63。可以使用fdisk来建立分区。分区文件系统可以使用ext2 ext3, 分区id:83
 
1. compile the linux and rootfs with Wind River Linux platform:
            /home/wrlinux4_3/WindRiver/wrlinux-4/wrlinux/../ldat/configure --enable-board=common_pc_64 --enable-rootfs=glibc_small --enable-kernel=standard --enable-build=production --with-product-dir=/home/wrlinux4_3/WindRiver/wrlinux-4/wrlinux

2. unpack the filesystem to udisk:     
    cp common_pc_64-standard-glibc_small-dist.tar.bz2 /media/8d38531d-5b8a-4761-997c-e77c66594697/
    sudo tar jxvf common_pc_64-standard-glibc_small-dist.tar.bz2
 
3. copy the image to udisk:
    mv common_pc_64-bzImage-WR4.3.0.0_standard boot/bzImage

4. install the grub to the host:
     sudo apt-get install grub-install

5. install the grub to the udisk:
     sudo grub-install --root-directory=/media/8d38531d-5b8a-4761-997c-e77c66594697/ /dev/sdb

6. copy the  grub.cfg to udisk:
     sudo cp /home/wrlinux4_3/backup/grub.cfg /media/8d38531d-5b8a-4761-997c-e77c66594697/boot/grub/

7. the grub.cfg file content:

set timeout=5

menuentry 'Common_pc_64' {

        set root='(hd0,msdos1)'

        echo 'Loading kernel'

        linux /boot/bzImage root=/dev/sdb1 rw rootdelay=6

}

阅读(566) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~