注意分区的起始扇区要大于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
}
阅读(606) | 评论(0) | 转发(0) |