Chaitu Tech Bits
Showing posts with label friendly arm. Show all posts
Showing posts with label friendly arm. Show all posts

how to port uboot and linux on arm 9 (friendly arm )

Saturday, January 8, 2011

Micro2440 Instructions for U-Boot and Linux

A brief introduction about how to get started with the Micro2440 boards and u-boot.
We are going to replace all contents of the NAND flash - so make sure to have a backup if there is any valuable data on your device.

What we need

  • Micro2440 SDK
  • Linux PC (Windows would work as well but I'm not sure how to upload files to Vivi with it.)
  • SD/MMC card
  • Serial cable
  • USB cable or JTAG (to replace vivi)

Replacing the Bootloader

We are going to use the bootloader in NOR flash for booting preparing the whole boot environment in NAND flash. Doing so we can create a new bad block table for the NAND flash which seems to be necessary for most of the board shipped.
We are going to copy u-boot into the RAM of the board and execute it there. u-boot will provide us all necessary features to prepare nand flash and copy itself there.
1. Use your preferred serial terminal application and connect to the micro2440 SDK board "COM-0" port. The u-boot serial console communication parameters are 115200,8,n,1. Connect the USB client (B) plug of the board with an USB port of your PC. Make sure to set the boot selection switch to the 'NOR' position before you power on the board.

Share/Bookmark

how to cross compile the kernel for ARM9 minin 2440 friendly arm mini 2440 for ubantu

Wednesday, December 15, 2010

In this tutorial, I'll quickly show you how easy it is to compile a kernel for the mini2440. If you haven't already installed git, you should do so now. In Ubuntu, you simply install the package git-core.


Setting up Your Toolchain

Follow the instructions from this tutorial.
http://chaitutechbits.blogspot.com/2010/12/how-build-arm9-tool-chain-mini-2440.html



Obtaining the Correct Kernel Sources


In order for you to get a kernel thats patched for all the hardware on your Mini2440, you need to get the kernel sources from the correct place. While it's possible to simply go and download a kernel directly from kernel.org and cross compile it, you won't get the patches included with that for all the hardware on the Mini2440.


Create a directory for your source tree and change to it and use git to clone the repository.

Code:
$ mkdir mini2440-kernel
$ git clone git://repo.or.cz/linux-2.6/mini2440.git
$ cd mini2440

Share/Bookmark

how build arm9 tool chain ?? for mini 2440 friendly arm micro 2440

This howto will show you how to quickly and easily set up an ARM toolchain so that you can use openembedded. You can also use this toolchain to compile the linux kernel or anything else that you specifically want to compile for the mini2440.

Download the toolchain here.



After you've downloaded the toolchain, you can untar it into your /usr/local directory or somewhere in your home directory if you don't have root access to the machine you're compiling on.

Share/Bookmark

how to compile u boot for arm9 friendly arm mini 2440 micro 2440 ?? what is uboot

UBoot must usually be installed in a Flash memory to be
executed by the hardware. Depending on the hardware, the installation of UBoot
is done in a different way
The board provides some kind of specific boot monitor, which allows to flash the second stage bootloader. In this case, refer to the board documentation and tools UBoot is already installed, and can be used to Flash a new version of UBoot.
However, be careful: if the new version of UBoot doesn't work, the board is unusable
The board provides a JTAG interface, which allows to write to the
Flash memory remotely, without any system running on the board. It
also allows to rescue a board if the boot loader doesn't work.

The bootloader that comes factory installed on the Micro2440 and the Mini2440 board is called Supervivi. I don't personally like it. It has very limited support and requires a YAFFS filesystem for the root filesystem. So when I bought my board I began to immediately search out an alternative. The bootloader by choice, it seems, is a modified version of U-Boot with modifications for the Mini2440 board's hardware
The code is maintained by a guy named buserror. I'll provide his information at the end of this howto.
At the time of writing this, I had some issues with getting Buserror's U-Boot working correctly.
The code that is in his git repository, doesn't run from RAM without a modification to the source. So here are the instructions that I gathered for altering and compiling it, and getting it going on the Mini2440 and Micro2440 board.
For this to work, I'm going to assume that you have a crosscompiler set up. Later on, I will probably write an entry here about setting that up, but not now. I'm also assuming you have git installed.

Step 1: Get the source

mkdir uboot ;
cd uboot
git clone git://repo.or.cz/u-boot-openmoko/mini2440.git

Step 2: Set your cross compiler prefix so you don't end up compiling this for x86.

export CROSS_COMPILE=arm-none-linux-gnueabi-
 

Share/Bookmark

how build an application for arm9 . how to compile and build applications for friendly arm .

Monday, December 13, 2010

Compiling and Running Programs   With Linux and Qtopia 2.2.0



Literal translations of the original Chinese user manual are fraught with imminent peril!

In this text everything has been tested and corrected. We assume you are using the Linux

2.6.29 kernel and Qtopia 2.2.0 that ships on the Mini2440. This is tested with Debian

system on the host PC. Under Redhat or Fedora some directories might be automatically
created during uncompression of files. Making them ahead of time won’t hurt anything.
Setting up the gcc cross compiler.
The current version (Aug 1009) of the FriendlyARM software uses the arm-linux-gcc-
4.3.2 compiler for everything from the boot loader to Qtopia. The compressed compiler is
in the /linux directory of the DVD. Copy it to a convenient place like /tmp. You will need
to be the super user to do this. Then untar the

$ su [root password]
# cd /tmp
                                                              (with a capital ‘C’)
# tar xvzf arm-linux-gcc-4.3.2.tgz -C/
If this fails, make the directories first.
# cd ..
# mkdir /usr/local/arm
# mkdir /user/local/arm/4.3.2

Share/Bookmark

UBoot compilation for mini 2440 micro 2440 (friendly arm ). how to compile uboot for friendly arm from the scratch

Saturday, December 11, 2010

Micro2440 with Linux and U-Boot
Micro2440 Instructions for U-Boot and Linux

A brief introduction about how to get started with the Micro2440 boards and u-boot.
We are going to replace all contents of the NAND flash - so make sure to have a backup if there is any valuable data on your device.
What we need

* Micro2440 SDK
* Linux PC (Windows would work as well but I'm not sure how to upload files to Vivi with it.)
* SD/MMC card
* Serial cable
* USB cable or JTAG (to replace vivi)

Share/Bookmark

Friendly Arm Samsung S3c2440a

Tuesday, November 23, 2010

Friendly Arm Samsung S3c2440a





Share/Bookmark

Related Posts Plugin for WordPress, Blogger...