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

Difference between revisions of "Rock/ubuntu"

(Chroot and post configuartion)
Line 29: Line 29:
 
     sudo chroot /mnt
 
     sudo chroot /mnt
 
Now we are in the target rootfs.
 
Now we are in the target rootfs.
 +
To be continued...
 +
  
 
[[Category: Distributions]]
 
[[Category: Distributions]]
 
[[Category: Tutorial]]
 
[[Category: Tutorial]]
 
[[Category: Ubuntu]]
 
[[Category: Ubuntu]]

Revision as of 07:37, 28 November 2013


This page describe how to customize a ubuntu image for radxa rock.

Install required packages

   sudo apt-get install qemu-user-static binfmt-support

Generate the image

   dd if=/dev/zero of=rock_rootfs.img bs=1M count=1024
   mkfs.ext4 -F rock_rootfs.img
   sudo mount -o loop rock_rootfs.img /mnt

The fast way is to make a ubuntu image is downloading a recent pre-built ubuntu rootfs from linaro

   wget https://releases.linaro.org/13.08/ubuntu/raring-images/alip/linaro-raring-alip-20130826-474.tar.gz
   sudo tar zxvf linaro-raring-alip-20130826-474.tar.gz -C /mnt
   cd /mnt
   sudo mv binary/* .
   sudo rmdir binary

Prepare chroot

   sudo cp /usr/bin/qemu-arm-static /mnt/usr/bin
   sudo modprobe binfmt_misc
   sudo mount -t devpts devpts /mnt/dev/pts
   sudo mount -t proc proc /mnt/proc

Chroot and post configuartion

   sudo chroot /mnt

Now we are in the target rootfs. To be continued...