Skip to contentSkip to conversation

u-boot for ARM

U-Boot Amandeep Bhullar 4 participants 6 messages Jan 23, 2009 – Feb 11, 2009 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

Hello All,

I have an Atmel AT91SAM9263 evaluation board with an arm926ejs based processor. I want to configure U-boot for this and want to have a USB device boot option available too. Though the U-boot will be in NAND Flash but i want the board to boot from a USB device like a USB Flash drive etc.

I was reading the README and it talks about configuring a large number of options. Where do I define these options? In which file?

if i just give the command

$ make arm926ejs_config
if comes with a message
make: *** No rule to make target 'arm926ejs_config'. Stop.

Can anybody help me in how to obtain a .bin file for my processor that i can load in NANDFlash and use this U-boot.

Many Thanks

Aman.

#1 lore raw

Hello

2009/1/24 Amandeep Bhullar <[email protected]>:

Quoted 7 lines

I was reading the README and it talks about configuring a large number of options. Where do I define these options? In which file?

if i just give the command

$ make arm926ejs_config
if comes with a message
make: *** No rule to make target 'arm926ejs_config'. Stop.

That's correct, 'make' is unable to find such target. You must specify the target corresponding to your board, for example "make davinci_dvevm_config", i.e. prefix preceding '_config' normally indicate a platform's name.

Signature · 1 line
Roman Mashak
#3 lore raw
In reply to a message not in the archive

2009/1/24, Jerry Zhang <[email protected]>:

Quoted 5 lines

Obviously you know nothing about the "make".
1)Read the Readme of the make tool first
2) then figure out "How the u-boot building process works; how the Makefile serve the building of your .bin"
3) Build your bin.

Obviously, either you're responding wrong person.

Signature · 1 line
Roman Mashak
#4 lore raw
In reply to Amandeep Bhullar

Amandeep Bhullar sez,

Quoted 6 lines

I have an Atmel AT91SAM9263 evaluation board with an arm926ejs based processor. I want to configure U-boot for this and want to have a USB device boot option available too. Though the U-boot will be in NAND Flash but i want the board to boot from a USB device like a USB Flash drive etc.

Sounds like an adventure!

Quoted 3 lines

I was reading the README and it talks about configuring a large number of options. Where do I define these options? In which file?

For your board the file with many of the defines is.

include\configs\at91sam9263ek.h

Quoted 5 lines

if i just give the command

$ make arm926ejs_config
if comes with a message
make: *** No rule to make target
'arm926ejs_config'. Stop.

You need to type,
make at91sam9263ek_config
make

Also it's a good idea to have the environment variable

CROSS_COMPILE

Set to point to your tool chain, as in

CROSS_COMPILE=\opt\mytoolchaintool\arm-elf-

where the directory

\opt\mytoolchaintool\

Contains your tools, such as arm-elf-gcc etc etc.

Quoted 2 lines

Can anybody help me in how to obtain a .bin file for my processor that i can load in NANDFlash and use this U-boot.

Can't help there, don't know if it's possible. I do know that you can boot out of NOR (parallel) and Atmel Dataflash (Serial). I would suggest building the standard u-boot and learn how it works and then go from there.

Mr Foo
---

#5 lore raw

[U-Boot] Loading Linux Image on AT91SAM9263-EK

In reply to Pink Boy

Hi All,

I have Atmel AT91SAM9263 Evlauation kit and want to load Linux-2.6.27 on it. Here is what I did:

1. Downloaded Linux-2.6.27 and followed instructions on
http://www.linux4sam.org/twiki/bin/view/Linux4SAM/LinuxKernel to build the Linux kernel. I used cross tool chain arm-none-linux-gnueabi-
2. As a result i got file "vmlinux".
3. Converted it to binary using the command - arm-none-linux-gnueabi-objcopy -O binary -R .note -R .comment -S vmlinux linux.bin
4. Since U-boot uses only uImage, I gave command - mkimage -A arm -O
linux -C none -T kernel -a 200000 -e 200000 -n linux-2.6 -d linux.bin uImage
This gave me the uImage file. I used Load address and entry point as
0x200000 because it is suggested at
http://www.linux4sam.org/twiki/bin/view/Linux4SAM/GettingStarted#Linux4SAM_NandFlash_demo_Memory
that linux kernel should be at 0x200000 to boot from NANDFLASH. /Please comment if I built the image uImage file right?/

Now I want to use this Linux image on the AT91SAM9263-EK board. I use the Atmel tool SAM-BA v2.7. I erased the NANDFlash. Loaded Bootstrap and u-boot at the said addresses. It goes to U-boot prompt fine. The evluation kit is connected through serial port and I use hyperterminal. I get the U-boot prompt.

I have questions about loading the Linux Image. Do I just use SAM-BA v2.7 tool and send file uImage to address 0x200000? I tied that and I got Error: Cant get kernel image.

Any help will be appreciated !!

Aman.