[U-Boot] Board Porting MACH_TYPE question

Robert Mortimer rmortimer at bluechiptechnology.co.uk
Mon Dec 20 14:09:58 CET 2010


Hi, 

I am porting a board similar to the Beagle to U-Boot. The Beagle config works but needs further pin MUXing . I have copied the Beagle board config to a new name and when compiled the binary performs as per the Beale one. My issue is when I change the line 

51: gd->bd->bi_arch_number = MACH_TYPE_OMAP3_BEAGLE; 

in the copy of beagle.h (now re2v2.h) to 

51: gd->bd->bi_arch_number = MACH_TYPE_OMAP3_RE2V2; 

The loader now unpacks the loaded kernel and then halts at the stage where it tries to boot it 

I have updated arch/arm/include/ asm /mach-types.h and include/ asm /mach-types.h. 
If I grep for the relevant changes/ additions I get the following:- 


grep -r machine_is_omap3_beagle * 
arch/arm/include/ asm /mach-types.h:# define machine_is_omap3_beagle() (machine_arch_type == MACH_TYPE_OMAP3_BEAGLE) 
arch/arm/include/ asm /mach-types.h:# define machine_is_omap3_beagle() (0) 
include/ asm /mach-types.h:# define machine_is_omap3_beagle() (machine_arch_type == MACH_TYPE_OMAP3_BEAGLE) 
include/ asm /mach-types.h:# define machine_is_omap3_beagle() (0) 

grep -r machine_is_omap3_re2v2 * 
arch/arm/include/ asm /mach-types.h:# define machine_is_omap3_re2v2() (machine_arch_type == MACH_TYPE_OMAP3_RE2V2) 
arch/arm/include/ asm /mach-types.h:# define machine_is_omap3_re2v2() (0) 
include/ asm /mach-types.h:# define machine_is_omap3_re2v2() (machine_arch_type == MACH_TYPE_OMAP3_RE2V2) 
include/ asm /mach-types.h:# define machine_is_omap3_re2v2() (0) 

grep -r machine_is_omap3_beagle * 
arch/arm/include/ asm /mach-types.h:# define machine_is_omap3_beagle() (machine_arch_type == MACH_TYPE_OMAP3_BEAGLE) 
arch/arm/include/ asm /mach-types.h:# define machine_is_omap3_beagle() (0) 
include/ asm /mach-types.h:# define machine_is_omap3_beagle() (machine_arch_type == MACH_TYPE_OMAP3_BEAGLE) 
include/ asm /mach-types.h:# define machine_is_omap3_beagle() (0) 

grep -r machine_is_omap3_re2v2 * 
arch/arm/include/ asm /mach-types.h:# define machine_is_omap3_re2v2() (machine_arch_type == MACH_TYPE_OMAP3_RE2V2) 
arch/arm/include/ asm /mach-types.h:# define machine_is_omap3_re2v2() (0) 
include/ asm /mach-types.h:# define machine_is_omap3_re2v2() (machine_arch_type == MACH_TYPE_OMAP3_RE2V2) 
include/ asm /mach-types.h:# define machine_is_omap3_re2v2() (0) 

I have defined MACH_TYPE_OMAP3_RE2V2 in arch/arm/include/ asm /mach-types.h and given it the next number 
I can't see where machine_arch_type is used outside of board configuration 
I can't see where 1546 (the Beagle number) is used either 

Any idea what additional work needs to be done to move to MACH_TYPE_OMAP3_RE2V2 from MACH_TYPE_OMAP3_BEAGLE? 

Regards Rob 


Blue Chip Technology Limited. Chowley Oak Lane, Tattenhall, Chester, Cheshire CH3 9EX Tel: 01829 772000 Registered in England 3110403 Vat No: GB 618 374134


More information about the U-Boot mailing list