Skip to contentSkip to conversation

bootm sets wrong Machine ID for at91rm9200dk

U-Boot-Users Zhukov 3 participants 4 messages Mar 17, 2006

lore
Share & tools
lore

Zhukov

author
#0 lore raw

After bootm (u-boot 1.1.4), kernel 2.6.15.6 hangs. The reason is the Machine Id (in r1) is 0xfb, but the kernel expects 0x106 (at91rm9200dk). Which file should be edited in u-boot?
Note: I'm not the only one who face the problem.

Regards
Andrew Zhukov

#1 lore raw
Quoted 5 lines

After bootm (u-boot 1.1.4), kernel 2.6.15.6 hangs. The reason is the Machine Id (in r1) is 0xfb, but the kernel expects 0x106 (at91rm9200dk). Which file should be edited in u-boot?
Note: I'm not the only one who face the problem.

Andrew
take a look at
board/at91rm9200dk/at91rm9200dk.c
function board_init()
MACH_TYPE_AT91RM9200

Signature · 4 lines
Marco Cavallini
Koan s.a.s. - Bergamo - ITALIA
Embedded and Real-Time Software Engineering
www.koansoftware.com    |    www.klinux.org
#2 lore raw
Quoted 10 lines · Marco Cavallini
Quoted 5 lines

After bootm (u-boot 1.1.4), kernel 2.6.15.6 hangs. The reason is the Machine Id (in r1) is 0xfb, but the kernel expects 0x106 (at91rm9200dk). Which file should be edited in u-boot?
Note: I'm not the only one who face the problem.

Andrew
take a look at
board/at91rm9200dk/at91rm9200dk.c
function board_init()
MACH_TYPE_AT91RM9200

Thanks! I changed the line 60 in board/at91rm9200dk/at91rm9200dk.c and the kernel starts all right.

The change is:

	/* arch number of AT91RM9200DK-Board */

- gd->bd->bi_arch_number = MACH_TYPE_AT91RM9200;
+ gd->bd->bi_arch_number = MACH_TYPE_AT91RM9200DK;

Thanks to all who replied!

#3 lore raw
Quoted 2 lines · In message <[email protected]> you wrote:

The change is:

So will you please submit a proper patch? See the README for instructions!

Best regards,

Wolfgang Denk

Signature · 4 lines
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Wenn Du ein' weise Antwort verlangst, Mu?t Du vern?nftig fragen.
                                                -- Goethe, Invektiven