Olimex Support Forum

OLinuXino Android / Linux boards and System On Modules => iMX233 => Topic started by: chjchoi on October 07, 2012, 07:31:47 PM

Title: fsl-community-bsp . I don't know how to do next..
Post by: chjchoi on October 07, 2012, 07:31:47 PM
1. olimex imx233-micro
I have downloaded the fsl-community-bsp by repo
and built targets
    core-image-minimal
    meta-toolchain
    meta-toolchain-sdk
    adt-installer
    meta-ide-support
So.I got files in the directory .../deploy/images

core-image-minimal-imx233-olinuxino-micro-20121005102643.linux.sb
core-image-minimal-imx233-olinuxino-micro-20121005102643.rootfs.ext3
core-image-minimal-imx233-olinuxino-micro-20121005102643.rootfs.sdcard
core-image-minimal-imx233-olinuxino-micro-20121005102643.rootfs.tar.bz2
core-image-minimal-imx233-olinuxino-micro-20121006013638.linux.sb
core-image-minimal-imx233-olinuxino-micro-20121006013638.rootfs.ext3
core-image-minimal-imx233-olinuxino-micro-20121006013638.rootfs.sdcard
core-image-minimal-imx233-olinuxino-micro-20121006013638.rootfs.tar.bz2
core-image-minimal-imx233-olinuxino-micro.ext3
core-image-minimal-imx233-olinuxino-micro.linux.sb
core-image-minimal-imx233-olinuxino-micro.sdcard
core-image-minimal-imx233-olinuxino-micro.tar.bz2
imx-bootlets-boot_prep-imx233-olinuxino-micro
imx-bootlets-boot_prep-imx233-olinuxino-micro-10.12.01-r3
imx-bootlets-linux.bd-imx233-olinuxino-micro
imx-bootlets-linux.bd-imx233-olinuxino-micro-10.12.01-r3
imx-bootlets-linux_prep-imx233-olinuxino-micro
imx-bootlets-linux_prep-imx233-olinuxino-micro-10.12.01-r3
imx-bootlets-power_prep-imx233-olinuxino-micro
imx-bootlets-power_prep-imx233-olinuxino-micro-10.12.01-r3
modules-2.6.35.3-10.12.01+yocto+g0ea8cb9-r42.14-imx233-olinuxino-micro.tgz
zImage-2.6.35.3-r42.14-imx233-olinuxino-micro-20121006013638.bin
zImage-imx233-olinuxino-micro.bin

and files in the directory .../tmp/deploy/sdk
poky-eglibc-i686-arm-toolchain-1.2.1.tar.bz2
adt_installer.tar.bz2
poky-eglibc-i686-arm-toolchain-gmae-1.2.1.tar.bz2

What next should I do for making sdcard? 
maybe the file below will be a filesystem?
core-image-minimal-imx233-olinuxino-micro-20121005102643.rootfs.sdcard
How can I make boot image or kernel for Sdcard?
and how to make a toolchain or building environment?
Title: Re: fsl-community-bsp . I don't know how to do next..
Post by: chjchoi on October 07, 2012, 07:40:15 PM
1. I have found the document that says .. https://www.olimex.com/Products/OLinuXino/iMX233/_resources/OPEN-EMBEDDED-README.TXT
----------------------------------------
Open Embedded (Yocto project) is framework to generate Linux kernel and packages.

OE is base for the Angstrom Linux distribution. At the moment Linux community is working to push support for iMX233 up to latest Kernel 3.5.x and when this is done the Open Embedded layers will be updated first, so our recommendation is to keep eye on it :-)

iMX233 Open Embedded is hosted at https://github.com/Freescale/fsl-community-bsp-platform

There are clear step by step instructions how to generate Kernel and boot image and this folder contain image generated by Dimitar Gamishev which includes TV-CONSOLE output, so after you boot from this image you can use USB keyboard and TV monitor to work with OLinuXino as stand alone computer.
This is the image we ship on our OLinuXino-SD cards by default.



Short description about how to make bootable SD card with Linux file system for OLinuXino boards


You can download the rootfs with TV console enabled which Dimitar Gamishev generates from here: https://docs.google.com/open?id=0B-bAEPML8fwlblZxUHlFZXdQVEU

also you will need Open Embedded generated Kernel 2.6.35 which image which you can download from: https://docs.google.com/open?id=0B-bAEPML8fwlWDRpMGl5TGVaNXM


(NOTE - this example is given with "sdb1 and sdb2" device but it could enumerate differently on your host, so confirm what it enumerates as before running fdisk!)

1. Insert the card reader to the Linux host.
2. Un-mount the card reader, i.e. 'sudo umount /dev/sdb1'
3. run fdisk, 'sudo fdisk /dev/sdb'
4. Press 'p' to show the partitions on the card
5. Press 'd' to delete a partition. Repeat to remove all partitions
6. Press 'n' to create a new partition
7. Press 'p' to select the primary partition
8. Press '1' to create partition 1 on the card
9. Press Enter to start from first block
10. Type '16MB' to create the 16MB partitions
11. Press 't' to change the newly created partition type
12. Enter '53' for the new partition type
13. Press 'n' to create a second partition, select 'p'(primary), then '2'(number)
14. Press Enter to accept all default settings
15. Press 'w' to write the partitions to the card and exit the fdisk
16. Format the second partition on the SD card - run 'sudo mkfs.ext2 /dev/sdb2' command.
17. Mount the second partition on the card
18. If you do not have the mmc mounting point created yet, create one with 'sudo mkdir /mnt/mmc'
19. Run 'sudo mount /dev/sdb2 /mnt/mmc' to mount the partition as the mmc card
20. Copy the supplied files - TV_console_FS.tar.gz(the OpenEmbedded FS) and imx233-Olinuxino.zip(boot image) for example in your home/user directory, unzip imx233-Olinuxino.zip to imx233-Olinuxino.img
21. Enter the mounted sd card directory - cd /mnt/mmc
22. Untar the rootfs to the card 'sudo tar -xzf /home/user/TV_console_FS.tar.gz' to put down the root filesystem.
   for login use
   user:root

23. Copy the boot image in sdb1 device using dd, i.e. type - 'sudo dd if=/home/user/imx233-Olinuxino.img of=/dev/sdb1
24. Type 'cd', 'sync' and umount sd card - 'sudo umount /dev/sdb2'

At this point the SD card should be ready for use.

--------------------------------
How can I make TV_console_FS.tar.gz, to imx233-Olinuxino.img from the files in the deploy directory?
and how can i get the building environment (arm-none-eabi or amr-poky-....)