linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* PPChameleonEVB Newbie question
@ 2006-10-11 15:24 Adrian
  2006-10-11 23:00 ` Wolfgang Denk
  0 siblings, 1 reply; 3+ messages in thread
From: Adrian @ 2006-10-11 15:24 UTC (permalink / raw)
  To: linuxppc-embedded

Hi Folks.

I'm a newbie to embedded and am getting stuck.

I have a PPChameleonEVB board running a 405EP processor.

I have tried many things, and can now boot Linux 2.6.15 on the board using 
an NFS share as both root fs and swap.

When I try to compile & install the kernel modules on the board, i get an 
message about perl and then it errors.

So i'm trying to install perl. And failing.

Can someone tell me the following please, from a working setup (i.e. where 
you can compile/install kernel 2.6.15 + modules) :-

1) Kernel version/Linux distroof the i386 PC used for the cross-compiling.
2) ELDK version and if there are any patches needed.
2) Perl version (or how to stop the Kernel build using perl)

I'm using Slack 8.1, kernel 2.4.18 and perl 5.6.1 on the cross-compiler pc. 
Anything newer fell apart a lot earlier.

Many thanks in advance.

Adrian Atkins
IT Live Limited

tel: 0161 408 3327
fax: 08702 360 443
skype: adrianitlive
ES mob: (0034) 606806236 

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: PPChameleonEVB Newbie question
  2006-10-11 15:24 Adrian
@ 2006-10-11 23:00 ` Wolfgang Denk
  0 siblings, 0 replies; 3+ messages in thread
From: Wolfgang Denk @ 2006-10-11 23:00 UTC (permalink / raw)
  To: Adrian; +Cc: linuxppc-embedded

Dear Adrian,

in message <010001c6ed49$aa8ab390$3a0da8c0@adrianlaptop> you wrote:
> 
> I have a PPChameleonEVB board running a 405EP processor.

DAVE has a lot of pretty detailed application  notes.  Make  sure  to
read their docs.

> I have tried many things, and can now boot Linux 2.6.15 on the board using 
> an NFS share as both root fs and swap.

Swap over NFS? Grrghh... 

> When I try to compile & install the kernel modules on the board, i get an 
> message about perl and then it errors.

Why don't you just use the cross tools?

> 1) Kernel version/Linux distroof the i386 PC used for the cross-compiling.

Should not matter much.

> 2) ELDK version and if there are any patches needed.

For a 2.6 kernel tree you need ELDK 4.0.

> 2) Perl version (or how to stop the Kernel build using perl)

Use the cross tools. It's much faster anyway.


Best regards,

Wolfgang Denk

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de
He had quite a powerful intellect, but it  was  as  powerful  like  a
locomotive,  and  ran on rails and was therefore almost impossible to
steer.                          - Terry Pratchett, _Lords and Ladies_

^ permalink raw reply	[flat|nested] 3+ messages in thread

* PPChameleonEVB Newbie question
@ 2006-10-12 11:47 Adrian
  0 siblings, 0 replies; 3+ messages in thread
From: Adrian @ 2006-10-12 11:47 UTC (permalink / raw)
  To: linuxppc-embedded

Thanks Wolfgang.

I have now got the target compiling modules, kernel and everything.

For the record, I found it very difficult and time consuming.

To get to this stage I had to :-

Install Slack 8.1 kernel 2.4.18
Install ELDK version 4
as per docs add /usr/local/eldk/usr/bin:/usr/local/eldk/bin to PATH

set and export ARCH=ppc, CROSS_COMPILE=ppc_4xx-

make mrproper

make PPChameleon_defconfig

edit arch/ppc/platforms/4xx/Kconfig and add

'select WANT_EARLY_SERIAL'

to PPChameleonEVB definition

make menuconfig

make
then copy kernel to /tftpboot dir.

Board then booted ok provided the ELDK instructions about NFS shares were 
followed.

Under Slack 9 + 10.1 the kernel cross-compile barfed with 'clobber list' 
errors.

The dev host would cross-compile the modules, but wouldn't install them 
(INSTALL_MOD_PATH set).

After that i wanted to build the Kernel and modules on the target to make 
sure it was all ok, so :-

Installed Perl 5.6.4 with etc/Digest/MD5 copied from Perl 5.8.2 tree
(make modules_install wouldn't work without perl, and it isn't supplied 
AFAICS)
cd /usr/src/linux/include

ln -s asm-ppc asm

make mrproper
make PPChameleon_defconfig

edit arch/ppc/platforms/4xx/Kconfig and add

'select WANT_EARLY_SERIAL'

to PPChameleonEVB definition

make menuconfig

make
make modules
make modules_install

On the target it is (naturally) slow and you have to set up some NFS shared 
swap if you don't have much ram (i have 32mb and the kernel compile ran out 
of memory).

Out of the box i couldn't get ELDK 3.1.1 working at all, and the 
linux-2.4.20-pelk- thing wouldn't compile under either.

The main hurdle was needing to retro-grade the dev host.

Anyway. It is working happily now. Thanks for your help.

Adrian Atkins
IT Live Limited

tel: 0161 408 3327
fax: 08702 360 443
skype: adrianitlive
ES mob: (0034) 606806236 

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-10-12 11:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-12 11:47 PPChameleonEVB Newbie question Adrian
  -- strict thread matches above, loose matches on Subject: below --
2006-10-11 15:24 Adrian
2006-10-11 23:00 ` Wolfgang Denk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).