Debian on the Octeon

来源:互联网 发布:河南智网网络 编辑:程序博客网 时间:2024/06/11 12:37

1, Use fdisk to create two partitions on Compat Flash Card;

    My USB card reader/writer is Box2s-M2-H. Works very well with CentOS 5.x

    You can use dmesg to find which device is attched to when you plug cf card.

 

    First partition is FAT16, linux kernel will be stored here. The other partition is ext2, will keep a copy of debian linux.

 

    You need make file system after partitions created.

 

 

2, Install Octeon debian linux

 

    ; Create the Mount Directories
host$ sudo mkdir –p /mnt/cf1
host$ sudo mkdir –p /mnt/cf2

 

    ;  Install Kernel Plus Debian Onto the Flash card

    cd $OCTEON_ROOT/linux/debian

    sudo make DISK=/dev/sdb kernel debian toolchain toolchain32 toolchain-uclibc

 

    ; Upgrading the Kernel on the Flash Card because above installed kernel include embedded file system

    cd $OCTEON_ROOT/linux

    sudo make kernel-deb flash

 

3, Let U-Boot auto boot linux
   a, set octeon to local bus boot;
   b, setenv bootcmd 'fatload ide 0 0 vmlinux.64;bootoctlinux 0x20000000 coremask=0xFFF root=/dev/cfa2 mem=0'
      saveenv

 

原创粉丝点击