You are on page 1of 6

1.

SDCARD PARTITION
Insert the sdcard to your PC. Open the application named “GParted partition editor”, it will ask
the password, after entering the password the GParted application will open.
Select your sdcard device at the right top corner of the window shown in below figure.

Then unmount the sdcard partitions using right click on the partition. And Select the sdcard
partition then delete the partition.
Right click on the partition and select the “new” option , then one window “Create new partition ”
will open.
At the option “free space proceeding” should be “8” and at “New size” give the “2048” and at
“File system” select the “fat32” and at “Label” enter “boot” then click on “add” option.
And then right click on the lower partition “unallocated” and click on the “new” option. Then one
window will open and at “New size” enter “1024” then at “File system” select the “ext3” and at
“Label” enter the “rootfs” and then click on “add”.

Then click on the “right mark” on the menu. Then click on apply, It will take few seconds. Then
close the “Applying pending operations” window.

Right mark
Then right click on the “boot” partition and select the “Manage flags” then select the “boot” in
options. Then click on “close” option. It will take few seconds to complete.
2.BOOTING FROM SDCARD
HOST :

Step 1 :- Flashing barebox.bin into SD-card 8 MB raw space

$ sudo dd if=<path of the barebox image> of=/dev/sd<a/b/c/d> bs=512 skip=2 seek=2


$ sync

Step 2 :- Copy the kernel image(zImage), oftree image(.dtb) into the boot partition of the
sdcard. Below are the command to copy into sd card

$ cp zImage /media/<username>/BOOT
$ cp oftree /media/<username>/BOOT

Step 3 :- And root file system tar file should be extract to the rootfs partition of the sdcard
using the below commands.

$ sudo tar -xvf <path of the rootfs tar file> -C <path of the sdcard rootfs partition>
$ sync

TARGET :
Now insert the sdcard into the board and make the switch positions for booting from sdcard.
And give the power supply to the board.
3.NAND FLASHING
HOST :
copy the required images (barebox.bin, oftree(.dtb), root.ubifs, zImage) into the boot partition
of the sdcard.

TARGET :
Then give the power supply to the board and stop at the barebox level and follow the below
lines

$ mount /dev/mmc0.0 /mnt/


$ cd /mnt/
$ barebox_update -t nand barebox.bin
$ erase /dev/nand0.barebox-environment.bb
$ ubiformat /dev/nand0.root
$ ubiattach /dev/nand0.root
$ ubimkvol -t static /dev/nand0.root.ubi kernel 8M
$ ubimkvol -t static /dev/nand0.root.ubi oftree 1M
$ ubimkvol -t dynamic /dev/nand0.root.ubi root 0
$ ubiupdatevol /dev/nand0.root.ubi.kernel zImage
$ ubiupdatevol /dev/nand0.root.ubi.oftree oftree
$ cp phytec-imx6ul-.rootfs.ubifs /dev/nand0.root.ubi.root

You might also like