Trying to setup Linux on AT91RM9200EK

I am trying to install linux on the Atmel's Evaluation Kit. Here is what I have done; currently I am stuck and need help.

I downloaded sources and compiled a 2.4 ARM Linux kernel with no support for Ramdisk. I moved the zImage to the memory of the Evaluation Board and tried to boot it from U Boot.

I get bad magic number error message.

I am trying to install an operating system and write some code for the serial communications. I do not know, if I need a bootloader or a file system. I am not sure how to approach this subject. I also have not been able to find adequate help or guides online. Please help me.

I have set up gentoo on my pc and server before. I never had need for ram disk, and I am not sure what I need to get my board to load linux.

Thanks in advance

Reply to
romank
Loading thread data ...

I am trying to install linux on the Atmel's Evaluation Kit. Here is what I have done; currently I am stuck and need help.

I downloaded sources and compiled a 2.4 ARM Linux kernel with no support for Ramdisk. I moved the zImage to the memory of the Evaluation Board and tried to boot it from U Boot.

I get bad magic number error message.

I am trying to install an operating system and write some code for the serial communications. I do not know, if I need a bootloader or a file system. I am not sure how to approach this subject. I also have not been able to find adequate help or guides online. Please help me.

I have set up gentoo on my pc and server before. I never had need for ram disk, and I am not sure what I need to get my board to load linux.

Thanks in advance

Reply to
romank

Hi,

- Exactly which kernel 2.4 version ?

- Please tell us how did you configured your kernel, you need to do make at91rm9200ek_config

However you *always* need tthe bootloader. are you using it ?

Best regards

--
Marco Cavallini
=====================================================
Koan s.a.s. - Software Engineering
Linux and WinCE solutions for Embedded and Real-Time Software
Klinux : the embedded distribution for industrial applications
  - Atmel AT91 ARM Third Party Consultant
  - Intel PCA Developer Network Member
  - Microsoft Windows Embedded Partner
Via Pascoli, 3  - 24121 Bergamo - ITALIA
http://www.koansoftware.com  -  http://www.klinux.org
=====================================================
Reply to
Marco Cavallini [KOAN]

I downloaded linux-2.4.27-vrs1-ATMEL from atmel.com. I follo

direction to build a kernel I have used make menuconfig and mak config. I select at91rm9200 nad build the kernel with make dep an make zImage

I have also built Image in uncompressed form

I do have U BOOT already burned on flash at 20000000 address. I us

this U BOOT to try loading the kernel from ram and from flash. Bot attempts resulted in bad magic number error message

I am using U Boot right now. I download the code through U Boot an

store it in ram and in flash. I then try to run the kernel. So far have not gone far

I can load other programs fine and run them as well

I can load another U Boot and run it from ram or from flash

Thanks for the reply

Roma

--
>Marco Cavallin
====================================================
Koan s.a.s. - Software Engineerin
Linux and WinCE solutions for Embedded and Real-Time Softwar
Klinux : the embedded distribution for industrial application
  - Atmel AT91 ARM Third Party Consultan
  - Intel PCA Developer Network Membe
  - Microsoft Windows Embedded Partne
Via Pascoli, 3  - 24121 Bergamo - ITALI
http://www.koansoftware.com  -  http://www.klinux.or
=====================================================[/quote][quote:e321c63b32][/quote:e321c63b32
Reply to
romank

I downloaded linux-2.4.27-vrs1-ATMEL from atmel.com. I follo

direction to build a kernel I have used make menuconfig and mak config. I select at91rm9200 nad build the kernel with make dep an make zImage

I have also built Image in uncompressed form

I do have U BOOT already burned on flash at 20000000 address. I us

this U BOOT to try loading the kernel from ram and from flash. Bot attempts resulted in bad magic number error message

I am using U Boot right now. I download the code through U Boot an

store it in ram and in flash. I then try to run the kernel. So far have not gone far

I can load other programs fine and run them as well

I can load another U Boot and run it from ram or from flash

Thanks for the reply

Roma

--
>Marco Cavallin
====================================================
Koan s.a.s. - Software Engineerin
Linux and WinCE solutions for Embedded and Real-Time Softwar
Klinux : the embedded distribution for industrial application
  - Atmel AT91 ARM Third Party Consultan
  - Intel PCA Developer Network Membe
  - Microsoft Windows Embedded Partne
Via Pascoli, 3  - 24121 Bergamo - ITALI
http://www.koansoftware.com  -  http://www.klinux.or
=====================================================[/quote][quote:c693a6cd30][/quote:c693a6cd30
Reply to
romank

I downloaded linux-2.4.27-vrs1-ATMEL from atmel.com. I follo

direction to build a kernel I have used make menuconfig and mak config. I select at91rm9200 nad build the kernel with make dep an make zImage

I have also built Image in uncompressed form

I do have U BOOT already burned on flash at 20000000 address. I us

this U BOOT to try loading the kernel from ram and from flash. Bot attempts resulted in bad magic number error message

I am using U Boot right now. I download the code through U Boot an

store it in ram and in flash. I then try to run the kernel. So far have not gone far

I can load other programs fine and run them as well

I can load another U Boot and run it from ram or from flash

Thanks for the reply

Roma

--
>Marco Cavallin
====================================================
Koan s.a.s. - Software Engineerin
Linux and WinCE solutions for Embedded and Real-Time Softwar
Klinux : the embedded distribution for industrial application
  - Atmel AT91 ARM Third Party Consultan
  - Intel PCA Developer Network Membe
  - Microsoft Windows Embedded Partne
Via Pascoli, 3  - 24121 Bergamo - ITALI
http://www.koansoftware.com  -  http://www.klinux.or
=====================================================[/quote][quote:5cc28af7e6][/quote:5cc28af7e6
Reply to
romank

I downloaded linux-2.4.27-vrs1-ATMEL from atmel.com. I follo

direction to build a kernel I have used make menuconfig and mak config. I select at91rm9200 nad build the kernel with make dep an make zImage

I have also built Image in uncompressed form

I do have U BOOT already burned on flash at 20000000 address. I us

this U BOOT to try loading the kernel from ram and from flash. Bot attempts resulted in bad magic number error message

I am using U Boot right now. I download the code through U Boot an

store it in ram and in flash. I then try to run the kernel. So far have not gone far

I can load other programs fine and run them as well

I can load another U Boot and run it from ram or from flash

Thanks for the reply

Roma

--
>Marco Cavallin
====================================================
Koan s.a.s. - Software Engineerin
Linux and WinCE solutions for Embedded and Real-Time Softwar
Klinux : the embedded distribution for industrial application
  - Atmel AT91 ARM Third Party Consultan
  - Intel PCA Developer Network Membe
  - Microsoft Windows Embedded Partne
Via Pascoli, 3  - 24121 Bergamo - ITALI
http://www.koansoftware.com  -  http://www.klinux.or
=====================================================[/quote][quote:d84a8d46d5][/quote:d84a8d46d5
Reply to
romank

I downloaded linux-2.4.27-vrs1-ATMEL from atmel.com. I follo

direction to build a kernel I have used make menuconfig and mak config. I select at91rm9200 nad build the kernel with make dep an make zImage

I have also built Image in uncompressed form

I do have U BOOT already burned on flash at 20000000 address. I us

this U BOOT to try loading the kernel from ram and from flash. Bot attempts resulted in bad magic number error message

I am using U Boot right now. I download the code through U Boot an

store it in ram and in flash. I then try to run the kernel. So far have not gone far

I can load other programs fine and run them as well

I can load another U Boot and run it from ram or from flash

Thanks for the reply

Roma

--
>Marco Cavallin
====================================================
Koan s.a.s. - Software Engineerin
Linux and WinCE solutions for Embedded and Real-Time Softwar
Klinux : the embedded distribution for industrial application
  - Atmel AT91 ARM Third Party Consultan
  - Intel PCA Developer Network Membe
  - Microsoft Windows Embedded Partne
Via Pascoli, 3  - 24121 Bergamo - ITALI
http://www.koansoftware.com  -  http://www.klinux.or
=====================================================[/quote][quote:d6f46b8a76][/quote:d6f46b8a76
Reply to
romank

I downloaded linux-2.4.27-vrs1-ATMEL from atmel.com. I follo

direction to build a kernel I have used make menuconfig and mak config. I select at91rm9200 nad build the kernel with make dep an make zImage

I have also built Image in uncompressed form

I do have U BOOT already burned on flash at 20000000 address. I us

this U BOOT to try loading the kernel from ram and from flash. Bot attempts resulted in bad magic number error message

I am using U Boot right now. I download the code through U Boot an

store it in ram and in flash. I then try to run the kernel. So far have not gone far

I can load other programs fine and run them as well

I can load another U Boot and run it from ram or from flash

Thanks for the reply

Roma

--
>Marco Cavallin
====================================================
Koan s.a.s. - Software Engineerin
Linux and WinCE solutions for Embedded and Real-Time Softwar
Klinux : the embedded distribution for industrial application
  - Atmel AT91 ARM Third Party Consultan
  - Intel PCA Developer Network Membe
  - Microsoft Windows Embedded Partne
Via Pascoli, 3  - 24121 Bergamo - ITALI
http://www.koansoftware.com  -  http://www.klinux.or
=====================================================[/quote][quote:f2981fea76][/quote:f2981fea76
Reply to
romank

I downloaded linux-2.4.27-vrs1-ATMEL from atmel.com. I follo

direction to build a kernel I have used make menuconfig and mak config. I select at91rm9200 nad build the kernel with make dep an make zImage

I have also built Image in uncompressed form

I do have U BOOT already burned on flash at 20000000 address. I us

this U BOOT to try loading the kernel from ram and from flash. Bot attempts resulted in bad magic number error message

I am using U Boot right now. I download the code through U Boot an

store it in ram and in flash. I then try to run the kernel. So far have not gone far

I can load other programs fine and run them as well

I can load another U Boot and run it from ram or from flash

Thanks for the reply

Roma

--
>Marco Cavallin
====================================================
Koan s.a.s. - Software Engineerin
Linux and WinCE solutions for Embedded and Real-Time Softwar
Klinux : the embedded distribution for industrial application
  - Atmel AT91 ARM Third Party Consultan
  - Intel PCA Developer Network Membe
  - Microsoft Windows Embedded Partne
Via Pascoli, 3  - 24121 Bergamo - ITALI
http://www.koansoftware.com  -  http://www.klinux.or
=====================================================[/quote][quote:38de61729f][/quote:38de61729f
Reply to
romank

direction to build a kernel I have used make menuconfig and mak config. I select at91rm9200 nad build the kernel with make dep an make zImage

Do you know of a good system to setup on the arm evaluation kit board

I downloaded the above linux source from atmel. Would I be better of trying to use uClinux? What do you think? My goal is to get access t the board and its hardware at this time

this U BOOT to try loading the kernel from ram and from flash. Bot attempts resulted in bad magic number error message

store it in ram and in flash. I then try to run the kernel. So far have not gone far

Reply to
romank

snipped-for-privacy@randrlabs.com =E5=86=99=E9=81=93=EF=BC=9A

Well, did read the README of U-Boot carefully? You MUST build your kernel image in the form so-called "uImage". With U-Boot "normal" build targets like "bzImage" or "zImage" are not used. Please refer to "Building a Linux Image" section in U-Boot README for more details.

Best regards, Zhen Wang

Reply to
zhwang

snipped-for-privacy@randrlabs.com ??ï¼

Well, did read the README of U-Boot carefully You MUST build your kernel image in the form so-called "uImage". Wit U-Boot "normal" build targets like "bzImage" or "zImage" are no used Please refer to "Building a Linux Image" section in U-Boot README fo more details

Best regards

Zhen Wang[/quote:6b27d27176

Hi I tried to run with go and with bootm UBoot 1.1.3 and 1.1.4. I use

uImage with bootm and zImage with go

I can only get UBoot 1.1.2 to run, both 1.1.3 and 1.1.4 hang up

I am looking into clock configuration right now

Will know, maybe, later

Thanks R

Reply to
romank

snipped-for-privacy@randrlabs.com ??ï¼

Well, did read the README of U-Boot carefully You MUST build your kernel image in the form so-called "uImage". Wit U-Boot "normal" build targets like "bzImage" or "zImage" are no used Please refer to "Building a Linux Image" section in U-Boot README fo more details

Best regards

Zhen Wang[/quote:4075f25015

Hi I tried to run with go and with bootm UBoot 1.1.2 ,UBoot 1.1.3 an

1.1.4. I used uImage with bootm and zImage with go

UBoot 1.1.3 and 1.1.4 won't even start themselves

I can only get UBoot 1.1.2 to run, both 1.1.3 and 1.1.4 hang up

I am looking into clock configuration right now

Will know, maybe, later

Thanks R

Reply to
romank

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.