Atmel website | ARM Community | AVR freaks | Technical Support
Banner
 FAQ •  Search •  Register •  Login 

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: OE - custom machine.conf = "no machine record defined"
PostPosted: Tue Jul 06, 2010 11:58 pm 
Offline

Joined: Sun Jul 04, 2010 10:58 pm
Posts: 4
I have a weird one.

git clone of openembedded HEAD, then checkout to origin/stable/2009. Using ftp://ftp.linux4sam.org/pub/oe/linux4sa ... t91sam.tgz for the AT91 specific stuff.

If I build console-at91sam9-image with local.conf MACHINE="at91sam9g45ekes" it works. Great. I want to use at91sam9g45ekes.conf as a starting point for my own board.

$ cp conf/machines/at91sam9g45ekes.conf conf/machines/my_new_board.conf
$ cp -a recipes/linux/linux-2.6.30/at91sam9g45ekes recipes/linux/linux-2.6.30/my_new_board

edit conf/local.conf so that MACHINE="my_new_board"

$ bitbake -cclean console-at91sam9-image
$ bitmake console-at91sam9-image

I get an error when the linux recipe is run:

| arm-angstrom-linux-gnueabi-ld: no machine record defined
| arm-angstrom-linux-gnueabi-ld: no machine record defined
| make: *** [.tmp_vmlinux1] Error 1

Now here's the REALLY WEIRD part.

$ mv conf/machines/at91sam9g45ekes.conf conf/machines/blah.conf
$ mv conf/machines/my_new_board.conf at91sam9g45ekes.conf
edit the conf/local.conf so that MACHINE="at91sam9g45ekes"

$ bitbake -cclean console-at91sam9-image
$ bitmake console-at91sam9-image

This time it builds just fine and I get my jffs2 filesystem and kernel uImage for u-boot.

Why does the name of the machine matter?


Top
 Profile  
 
 Post subject: Re: OE - custom machine.conf = "no machine record defined"
PostPosted: Wed Mar 02, 2011 2:50 am 
Offline

Joined: Tue Jan 11, 2011 12:47 am
Posts: 3
Hi,

I got exactly the same behavior when I first tried to do this. I suspect it's because the custom machine name does not appear in include/asm-arm/mach-types.h, plus some additional machine-specific code is required in the kernel.

There's a very good link from the Linux4SAM pages called "Customizing OpenEmbedded" (it's under the 'Tips & Tricks' section):
http://www.at91.com/linux4sam/bin/view/ ... ips_tricks

The description of what to do in OpenEmbedded is deceptively simple - but that's just the 'icing on the cake'. The important thing you and I needed to look at is what's in the various patches that can be downloaded from that description. They show how the kernel (and bootstrap and bootloader) need to be modified to recognize a new machine.

Hope this is useful,
Mark


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: Bing [Bot] and 23 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: