Main Menu

Menu

Friday 24 February 2012

Angstrom on Thunder Board

Here i will describe the main steps for producing a bootable SD card for the boards of TechNexion, like Tsunami and Thunder Board that they are based on the OMAP3530 processor of TI.

1. Download Codesourcery G++ Lite from Mentor page and run the .bin file in the /bin/sh shell in your linux distro. If you follow the GUI installation, you will add the path of the g++ automatically in the system PATH. Check your path with 
>echo $PATH.

2. In the bash standard shell of Ubuntu:
>export CROSS_COMPILE=arm-none-linux-gnueabi-
>export ARCH=arm

3. Download the xukr-20120201-omap3.tar.xz package from technexion that contains the linux kernel, the u-boot, the x-loader and a sample root file system of Angstrom.
unzipping this package:
unxz package_name.tar.xz
results to package_name.tar
and then unzip this tarball using the unzipping manager.

4. Browse the folder in command line

5. Browse the folder of the x-loader
>make distclean && make tao3530_config && make -j 2  (for the tao3530)
The resulting binary is named MLO.
6. Browse the folder of the u-boot
Change the #define TN_PANEL 043 (for 4.3") or 070 (for 7")
 
> make distclean && make tao3530_config && make -j 2 tao3530 (for the tao3530)
The resulting binary is named u-boot.bin

7. Browse the linux kernel folder:
>make distclean && make tao3530_thunder_defconfig && make -j 2 uImage && make modules  (for the thunder baord)
For other board choose other board_name_defconfig.
The resulting kernel binary is in arch/arm/boot/uImage.

8. Formatting the sd card:
a)boot partition: msdos, 100MB,
b)root file system partition: ext3/ext4, >270MB

If you have a pre-formatted sd card, will be fine. Or else have to create the partitions possibly using fdisk utility of linux.
So, if it is preformatted delete the contains of the partitions and replace them with the new that have generated.
unmount the SD card and install it in the board

9. Change the rootfs of the Angstrom
find the .ko for the wireless and the powervr in the drivers folder of the linux kernel and copy them in the boot folder of the provided Angstrom rootfs.
AND
for TAO3530 the default console is ttyO2 and not ttuO0 --change this in the /etc/inittab of the provided Angstrom rootfs

10. Copy the files in the cd card.
MLO, u-boot.bin and uImage in the boot partition
and the rootfs on the rootfs folder (need sudo permissions).

11. Unmount safely the sd card.

12. Boot the system from the SD card.

And some fotos: 





Thursday 23 February 2012

Shell changing in Ubuntu 10.04 from bash to tcsh and sh

Useful commands and tips:

See the current shell:
kostas777711@kostas777711-desktop:~$ echo $0
bash








Install the tcsh shell via the ubuntu software center and change from the bash shell (default in Ubuntu), and check that you are there:
kostas777711@kostas777711-desktop:/bin$ /bin/tcsh
kostas777711-desktop:/bin> echo $0
/bin/tcsh


Change from tcsh to sh shell, and check:
kostas777711-desktop:/bin> /bin/sh
sh-4.1$ echo $0
/bin/sh