Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: add x-loader disk formatting instructions

...

Code Block
sudo parted --script /dev/mmcblk0 mklabel msdos

Install U-Setup Boot BootloaderPartition:

fdisk 2.17.x

Code Block

sudo dd if=./u-boot.imx of=fdisk ${FDISK_DOS} /dev/mmcblk0 << END
n
p
1
1
+64M
t
e
p
w
END

fdisk 2.18.x ->2.19.x

Code Block

sudo fdisk -c=dos -u=cylinders /dev/mmcblk0 seek=1 bs=1024<< END
n
p
1
1
+64M
t
e
p
w
END

Set Boot Flag
sudo parted --script /dev/mmcblk0 set 1 boot on

Format as fat
sudo mkfs.vfat -F 16 /dev/mmcblk0p1 -n boot

Create Partition Layout:
boot: fat16, 50Mb in size, starting at 5Mb (to not overwrite the u-boot.imx)
rootfs: ext3/4, rest of microSD card.

Mount the boot/rootfs partitions

Copy Boot Files:

Copy MLO to the boot partition

Code Block
sudo cp ./MLO /media/boot/MLO

Copy u-boot.bin to the boot partition

Code Block
sudo cp ./u-boot.bin /media/boot/u-boot.bin

Copy U-Boot BootScript:

boot.cmd

...