Please enable javascript, or click here to visit my ecommerce web site powered by Shopify.
Jump to: navigation, search

Difference between revisions of "Rabian/develop"

(Created page with "==Development== Building the rabian image basically contains two tasks, generate the rootfs and build the rock-bsp. ===Rootfs=== We use live build the generate the Rabian Root...")
 
(Rootfs)
 
(3 intermediate revisions by the same user not shown)
Line 2: Line 2:
 
Building the rabian image basically contains two tasks, generate the rootfs and build the rock-bsp.
 
Building the rabian image basically contains two tasks, generate the rootfs and build the rock-bsp.
 
===Rootfs===
 
===Rootfs===
We use live build the generate the Rabian Rootfs. The configuration files for live build can be found at radxa github. Below is how to generate the rootfs.
+
We use [http://live.debian.net/devel/live-build/ live build] the generate the Rabian Rootfs. The configuration files for live build can be found at radxa github. Below is how to generate the rootfs.
  
 
     mkdir rabian-build
 
     mkdir rabian-build
     export BOARD=rock        # or rock_pro/rock_lite/rock2_square  
+
     export BOARD='''rock'''       # or rock_pro / rock_lite / rock2_square  
 
     sudo apt-get install debootstrap live-build
 
     sudo apt-get install debootstrap live-build
 +
    sudo apt-get install qemu qemu-static
 
     sudo apt-get install dctrl-tools mtools parted squashfs-tools
 
     sudo apt-get install dctrl-tools mtools parted squashfs-tools
 
     git clone https://github.com/radxa/radxa-lb.git
 
     git clone https://github.com/radxa/radxa-lb.git
Line 14: Line 15:
  
 
You will have the rootfs for your board.
 
You will have the rootfs for your board.
 +
 
===Everything else(Bootloader/kernel)===
 
===Everything else(Bootloader/kernel)===
 
Rock-bsp is the tools we use to pack u-boot,kernel and rootfs into a NAND or eMMC or SDcard image for radxa boards.
 
Rock-bsp is the tools we use to pack u-boot,kernel and rootfs into a NAND or eMMC or SDcard image for radxa boards.
Line 33: Line 35:
  
 
If everything goes well, we will have the Rabian image for $BOARD.
 
If everything goes well, we will have the Rabian image for $BOARD.
 +
 +
[[Category:rock2_square]]
 +
[[Category:dev]]

Latest revision as of 02:04, 16 June 2015

Development

Building the rabian image basically contains two tasks, generate the rootfs and build the rock-bsp.

Rootfs

We use live build the generate the Rabian Rootfs. The configuration files for live build can be found at radxa github. Below is how to generate the rootfs.

   mkdir rabian-build
   export BOARD=rock        # or rock_pro / rock_lite / rock2_square 
   sudo apt-get install debootstrap live-build
   sudo apt-get install qemu qemu-static
   sudo apt-get install dctrl-tools mtools parted squashfs-tools
   git clone https://github.com/radxa/radxa-lb.git
   cd radxa-lb
   sudo make $BOARD
   cd ..

You will have the rootfs for your board.

Everything else(Bootloader/kernel)

Rock-bsp is the tools we use to pack u-boot,kernel and rootfs into a NAND or eMMC or SDcard image for radxa boards.

First, get the image name we built with radxa-lb just now.

   export IMAGE=$(basename radxa-lb/rabian_${BOARD}_*.ext4)
   sudo apt-get install build-essential lzop libncurses5-dev libssl-dev libusb-1.0-0-dev
   sudo apt-get install libc6-i386
   git clone https://github.com/radxa/rock-bsp.git
   cd rock-bsp

Use the rootfs we build

   echo "BOARD_ROOTFS=${IMAGE}" >> rock-bsp/configs/${BOARD}_config
   cd rock-bsp
   ./config.sh  $BOARD
   make

If everything goes well, we will have the Rabian image for $BOARD.