Skip to contentSkip to conversation

defining ARM machine type properly

DISCUSSION f. achkar 3 participants 7 messages May 26, 2010 – May 28, 2010

lore
Share & tools
lore

f. achkar

author
#0 lore raw

hi,
I'm trying to port smdk2450 arch to the a new kernel 2.6.32-9, I did the initial work as per various googled documents, but somehow the current initial Image is failing at arch/arm/kernel/head-common.S :
'__lookup_processor_type', and eventually goes to '__error_a' of the same file! this seems to be related to the definition of machine_type as defined in :
include/asm-arm/mach-types.h and arch/arm/tools/mach-types* I checked where the definition goes in include/asm-arm/mach-types.h by inserting
#error 2223XX
into various parts of that header and seems fine at the point. nevertheless I'm not 100 sure
I wonder if the is a definitive reference to guide in this matter, better yet a check-list like procedure??
thanks,
ferar

#1 lore raw
Quoted 2 lines · f. achkar

hi,
I'm trying to port smdk2450 arch to the a new kernel 2.6.32-9, I did the

I suspect what you are doing is trying to port it to a machine that was loosley based on the SMDK2450 and that whoever did the uboot port failed to understand that when the hardware changes then the machine number needs to change too.

Quoted 8 lines

initial work as per various googled documents, but somehow the current initial Image is failing at arch/arm/kernel/head-common.S :
'__lookup_processor_type', and eventually goes to '__error_a' of the same file! this seems to be related to the definition of machine_type as defined in :
include/asm-arm/mach-types.h and arch/arm/tools/mach-types* I checked where the definition goes in include/asm-arm/mach-types.h by inserting

you probably wanted to enable the debugging in the head code.

Quoted 7 lines

#error 2223XX
into various parts of that header and seems fine at the point. nevertheless I'm not 100 sure
I wonder if the is a definitive reference to guide in this matter, better yet a check-list like procedure??
thanks,
ferar

How about downloading the latest kernel, with nice fresh S3C2450 support in it?

Signature · 4 lines
Ben

Q:      What's a light-year?
A:      One-third less calories than a regular year.
author
#2 lore raw
Quoted 10 lines · Ben Dooks
Quoted 3 lines · f. achkar

hi,
I'm trying to port smdk2450 arch to the a new kernel 2.6.32-9, I did the

I suspect what you are doing is trying to port it to a machine that was loosley based on the SMDK2450 and that whoever did the uboot port failed to understand that when the hardware changes then the machine number needs to change too.

u-boot came with the evaluation board so it is samsung's doing! however, the u-boot correctly reports the machine type of 0x648 (corresponding to 1608 ), I suspect me wrong doing :( in setting the correct mach_type in the linux-2.6.32-9.

Quoted 21 lines
Quoted 10 lines

initial work as per various googled documents, but somehow the current initial Image is failing at arch/arm/kernel/head-common.S :
'__lookup_processor_type', and eventually goes to '__error_a' of the same file! this seems to be related to the definition of machine_type as defined in :
include/asm-arm/mach-types.h and arch/arm/tools/mach-types* I checked where the definition goes in include/asm-arm/mach-types.h by inserting

you probably wanted to enable the debugging in the head code.

Quoted 8 lines

#error 2223XX
into various parts of that header and seems fine at the point. nevertheless I'm not 100 sure
I wonder if the is a definitive reference to guide in this matter, better yet a check-list like procedure??
thanks,
ferar

Quoted 3 lines

How about downloading the latest kernel, with nice fresh S3C2450 support in it?

excellent, I'll check that ... thaks

author
#3 lore raw
In reply to Ben Dooks
Quoted 31 lines · Ben Dooks
Quoted 3 lines · f. achkar

hi,
I'm trying to port smdk2450 arch to the a new kernel 2.6.32-9, I did the

I suspect what you are doing is trying to port it to a machine that was loosley based on the SMDK2450 and that whoever did the uboot port failed to understand that when the hardware changes then the machine number needs to change too.

Quoted 9 lines

initial work as per various googled documents, but somehow the current initial Image is failing at arch/arm/kernel/head-common.S :
'__lookup_processor_type', and eventually goes to '__error_a' of the same file! this seems to be related to the definition of machine_type as defined in :
include/asm-arm/mach-types.h and arch/arm/tools/mach-types* I checked where the definition goes in include/asm-arm/mach-types.h by inserting

you probably wanted to enable the debugging in the head code.

Quoted 8 lines

#error 2223XX
into various parts of that header and seems fine at the point. nevertheless I'm not 100 sure
I wonder if the is a definitive reference to guide in this matter, better yet a check-list like procedure??
thanks,
ferar

Quoted 3 lines

How about downloading the latest kernel, with nice fresh S3C2450 support in it?

which version is that? 2.6.34 does not contain such support! thanks

#4 lore raw
Quoted 32 lines · f. achkar
Quoted 31 lines · Ben Dooks
Quoted 3 lines · f. achkar

hi,
I'm trying to port smdk2450 arch to the a new kernel 2.6.32-9, I did the

I suspect what you are doing is trying to port it to a machine that was loosley based on the SMDK2450 and that whoever did the uboot port failed to understand that when the hardware changes then the machine number needs to change too.

Quoted 9 lines

initial work as per various googled documents, but somehow the current initial Image is failing at arch/arm/kernel/head-common.S :
'__lookup_processor_type', and eventually goes to '__error_a' of the same file! this seems to be related to the definition of machine_type as defined in :
include/asm-arm/mach-types.h and arch/arm/tools/mach-types* I checked where the definition goes in include/asm-arm/mach-types.h by inserting

you probably wanted to enable the debugging in the head code.

Quoted 8 lines

#error 2223XX
into various parts of that header and seems fine at the point. nevertheless I'm not 100 sure
I wonder if the is a definitive reference to guide in this matter, better yet a check-list like procedure??
thanks,
ferar

Quoted 5 lines
Quoted 3 lines

How about downloading the latest kernel, with nice fresh S3C2450 support in it?

which version is that? 2.6.34 does not contain such support! thanks

2.6.34-git

core support is in, hopefully core peripheral support can be sorted out and released as soon as possible.

Signature · 4 lines
Ben

Q:      What's a light-year?
A:      One-third less calories than a regular year.
#5 lore raw
In reply to f. achkar

2010/5/27 f. achkar <[email protected]>:

Quoted 5 lines

hi,
I'm trying to port smdk2450 arch to the a new kernel 2.6.32-9, I did the initial work as per various googled documents, but somehow the current initial Image is failing at arch/arm/kernel/head-common.S :
'__lookup_processor_type', and eventually goes to '__error_a' of the

The '__lookup_processor_type' goes to '__error_a' is not related to your machine_type,
you should check whether there is a true definition of select CPU_ARMxx in the arch/arm/kconfig.

The issue maybe result from you get a wrong ARM processor type number,which is not equal to
the R9 resigster value.

Quoted 18 lines

same file! this seems to be related to the definition of machine_type as defined in :
include/asm-arm/mach-types.h ?and arch/arm/tools/mach-types* I checked where the definition goes in ?include/asm-arm/mach-types.h by inserting
#error 2223XX
into various parts of that header and seems fine at the point. nevertheless I'm not 100 sure
I wonder if the is a definitive reference to guide in this matter, better yet a check-list like procedure??
thanks,
ferar

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel at lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

Signature · 10 lines
*linux-arm-kernel mailing list
mail addr:linux-arm-kernel at lists.infradead.org
you can subscribe by:
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

* linux-arm-NUC900 mailing list
mail addr:NUC900 at googlegroups.com
main web: https://groups.google.com/group/NUC900
you can subscribe it by sending me mail:
mcuos.com at gmail.com
author
#6 lore raw
Quoted 8 lines · Wan ZongShun

2010/5/27 f. achkar <[email protected]>:

Quoted 6 lines

hi,
I'm trying to port smdk2450 arch to the a new kernel 2.6.32-9, I did the initial work as per various googled documents, but somehow the current initial Image is failing at arch/arm/kernel/head-common.S :
'__lookup_processor_type', and eventually goes to '__error_a' of the

Quoted 5 lines

The '__lookup_processor_type' goes to '__error_a' is not related to your machine_type,
you should check whether there is a true definition of select CPU_ARMxx in the arch/arm/kconfig.

Symbol: MACH_SMDK2450
[=y]
?
? Prompt:
SMDK2450
?
? Defined at
arch/arm/mach-s3c2450/Kconfig:30
?
? Depends on:
ARCH_S3C2410
?
?
Location:
?
? -> System
Type
?
? -> S3C2450
Machines
?
? Selects: CPU_S3C2450 && MACH_SMDK

Quoted 4 lines

The issue maybe result from you get a wrong ARM processor type number,which is not equal to
the R9 resigster value.

most likely the case, what should be my check-list to verify correct doing? thanks,

Quoted 23 lines
Quoted 20 lines

same file! this seems to be related to the definition of machine_type as defined in :
include/asm-arm/mach-types.h and arch/arm/tools/mach-types* I checked where the definition goes in include/asm-arm/mach-types.h by inserting
#error 2223XX
into various parts of that header and seems fine at the point. nevertheless I'm not 100 sure
I wonder if the is a definitive reference to guide in this matter, better yet a check-list like procedure??
thanks,
ferar

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel at lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel