User`s manual
Getting Started With Linux on the LPC3250 OEM Board Page 31
Copyright 2009 © Embedded Artists AB Rev A
$ sudo umount /dev/sde1
4. Run fdisk to edit the partition table on the memory card.
$ sudo fdisk /dev/sde1
5. List the existing partition table using the
p
option.
Command (m for help): p
6. Use the
d
option to delete all partitions on the memory card.
7. Create a new partition using the
n
option.
8. Select p to create a primary partition.
9. Select 1 for partition number.
10. Use default value for the first cylinder by hitting the Enter key.
11. Use default value for last cylinder by hitting the Enter key.
12. Select w to write the new partition table to the memory card.
13. Format the memory card to an ext2 file system.
$ sudo mkfs.ext2 /dev/sde1
14. Mount the memory card when it has been formatted.
$ sudo mkdir /mnt/mmc
$ sudo mount –t auto /dev/sde1 /mnt/mmc
15. Copy the root file system to the memory card.
$ sudo cp R /home/user/ltib/rootfs/* /mnt/mmc
16. Un-mount the memory card, remove it from the development computer and insert it in the
development board.
$ sudo umount /dev/sde1
17. Boot into the u-boot console and add an
mmcboot
variable.
uboot> uboot> setenv mmcboot setenv bootargs root=/dev/mmcblk0p1
ip=\$(ipaddr) ea_ethaddr=\$(ethaddr) console=ttyS0,115200n8\;run
loadkernel\;bootm \$(loadaddr)
18. Run the
mmcboot
variable
uboot> run mmcboot