rajive.gupta | 1 Feb 2011 21:59

Problem in porting Linux on Kontron VCE405 powerpc board

Hi  All,

I am trying to port linux on Kontron VCE405 PowerPc board which has 
following configuration 
IBM 400 MHz  gpr processor.
64 mb ram
8 mb flash
8k Serial EPROM
2 UART serial onboard
1 Ethernet 10/100 mbps
4 ?zilog serial ports
As suggested in Uboot mailing list I am able to create new u-boot for this 
target. After this I created PPC-generic kernel image and trying to boot 
this target with uImage and uramdisk , but after uncompressing the images 
the target hangs. Please advice me what I am missing .  I am enclosing 
below my Uboot setup and the corresponding images download procedure.

U-Boot 2010.12 (Jan 27 2011 - 12:51:52)
Release 1.0.0 for VCE405* Processor Boards
(c) 2011 Bombardier Transport.

CPU:   AMCC PowerPC 405GPr Rev. B at 400 MHz (PLB=133 OPB=66 EBC=66)
       Internal PCI arbiter enabled, PCI async ext clock used
       16 kB I-Cache 16 kB D-Cache
Board: VCE405RA411L000BRC, SN0551793
BOOT:  Flash
I2C:   ready
DRAM:  64 MiB
FLASH: 8 MiB
In:    serial
(Continue reading)

Eran Duchan | 1 Feb 2011 22:55
Picon

Re: Problem in porting Linux on Kontron VCE405 powerpc board

Hi Rajive,

Seems to me you're missing the FDT BLOB (read up on it
here<http://www.denx.de/wiki/DULG/LinuxFDTBlob>).
Basically you need to describe your hardware to Linux via a textual DTS
file (which you compile to a binary DTB file) loaded and burned exactly like
the kernel and fs images.

I suggest taking a look at arch/powerpc/boot/dts/ep405.dts for reference.
Just make sure to #define CONFIG_OF_LIBFDT and CONFIG_OF_BOARD_SETUP in your
u-boot board config. You will also need to fixup the BLOB
using ft_cpu_setup(blob, bd); on ft_board_setup (populating the BLOB with
information dynamically calculated by u-boot).

This, at least, is what I had to due on a PPC875 (not doing this or missing
something would display what you just described).

Eran

On Tue, Feb 1, 2011 at 10:59 PM,
<rajive.gupta@...>wrote:

> Hi  All,
>
> I am trying to port linux on Kontron VCE405 PowerPc board which has
> following configuration
> IBM 400 MHz  gpr processor.
> 64 mb ram
> 8 mb flash
> 8k Serial EPROM
(Continue reading)

rajive.gupta | 2 Feb 2011 21:45

Re: Problem in porting Linux on Kontron VCE405 powerpc board

Hi Eran,

Thanks for your response. I created a dtb file using walnut.dts file which 
is very close to our target. I also added the ft_board_setup in the target 
board configuration file. I am still getting the same problem. Please see 
below new output

  => tftp 1c00000 uimage

ENET Speed is 100 Mbps - FULL duplex connection (EMAC0)
Using ppc_4xx_eth0 device
TFTP from server 20.255.255.100; our IP address is 20.255.255.94
Filename 'uimage'.
Load address: 0x1c00000
Loading: 
*#################################################################
         #################################################################
         #################################################################
         #################################################################
         ######################################################
done
Bytes transferred = 1605351 (187ee7 hex)
=> tftp uramdisk        1800000 uramdisk

ENET Speed is 100 Mbps - FULL duplex connection (EMAC0)
Using ppc_4xx_eth0 device
TFTP from server 20.255.255.100; our IP address is 20.255.255.94
Filename 'uramdisk'.
Load address: 0x1800000
Loading: 
(Continue reading)

Wolfgang Denk | 2 Feb 2011 23:17
Picon
Picon
Favicon

Re: Problem in porting Linux on Kontron VCE405 powerpc board

Dear rajive.gupta@...,

In message
<OF4E9D5348.F10B12D3-ON8525782B.007187F5-8525782B.0072398A@...>
you wrote:
>
> Thanks for your response. I created a dtb file using walnut.dts file which
> is very close to our target. I also added the ft_board_setup in the target 
> board configuration file. I am still getting the same problem. Please see 
> below new output

What exactly do you expect?  That somebody uses his shiny crystal ball
and tells you: "Oh, there is a semicolon missing in line 42 of your
source file foo.c!" ?

We do not know your board.

We do not know the changes you made to U-Boot and/or to Linux.

We do not know how you set up you device tree.

We don't even see which boot arguments you passed to Linux, if any.
For example, it might be interesting to check how you set the console=
parameter.

You provide basicly no information and expect we can guess everything
from nothing?  Sorry, but this is not how it's working.

And by the way: nothing in your postings is related to the ELDK in any
way, i. e. you are kind of off topic on this list.  In general, you
(Continue reading)

Felix Radensky | 3 Feb 2011 10:45
Picon

Valgrind 3.6.0 and ELDK 4.2 on Freescale ppc_85xxDP platform

Hi,

Can someone please share the debug enabled ld.so for
ELDK 4.2 ppc_85xxDP architecture ? This is required for
Valgrind to run.

Thanks a lot in advance.

Felix.
Wanda Chiang | 11 Feb 2011 03:28
Picon

MIPS ELDK Include Files Missing

Hi ELDK support team,

I get ELDK 4.1 for MIPS from this web site. (
http://ftp.denx.de/pub/eldk/4.1/mips-linux-x86/)
And I try to use it to compile Busybox 1.18.3 but get some error messages.
Below are the environment settings and the error messages.
It seems like there are some header files missing.
Please help me check if there is solution for this issue. Thanks in advance.

# export ARCH=mips
# export CROSS_COMPILE=/opt/toolchains/eldk-mips/usr/bin/mips_4KC-
# make
rm -f .kernelrelease
echo 1.18.3 > .kernelrelease
/work/opt/brcm/2.6.27.18/busybox-1.18.3/scripts/gen_build_files.sh/work/opt/brcm/
2.6.27.18/busybox-1.18.3 /work/opt/brcm/2.6.27.18/busybox-1.18.3
make -f scripts/Makefile.build obj=scripts/basic
mkdir -p .tmp_versions
rm -f .tmp_versions/*
make -f scripts/Makefile.build obj=applets
  mips_4KC-gcc -Wp,-MD,applets/.applets.o.d   -std=gnu99 -Iinclude -Ilibbb
 -include include/autoconf.h -D_GNU_SOURCE -DNDEBUG -D_LARGEFILE_SOURCE
-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D"BB_VER=KBUILD_STR(1.18.3)"
-DBB_BT=AUTOCONF_TIMESTAMP  -Wall -Wshadow -Wwrite-strings -Wundef
-Wstrict-prototypes -Wunused -Wunused-parameter -Wunused-function
-Wunused-value -Wmissing-prototypes -Wmissing-declarations
-Wdeclaration-after-statement -Wold-style-definition -fno-builtin-strlen
-finline-limit=0 -fomit-frame-pointer -ffunction-sections -fdata-sections
-fno-guess-branch-probability -funsigned-char -static-libgcc
-falign-functions=1 -falign-jumps=1 -falign-labels=1 -falign-loops=1 -Os
(Continue reading)

Wolfgang Denk | 11 Feb 2011 10:35
Picon
Picon
Favicon

Re: MIPS ELDK Include Files Missing

Dear Wanda Chiang,

In message
<AANLkTinMpR_D8U9+46f9qsWSsExQEXJqkOJrfEecxrkO@...>
you wrote:
>
> I get ELDK 4.1 for MIPS from this web site. (
> http://ftp.denx.de/pub/eldk/4.1/mips-linux-x86/)
> And I try to use it to compile Busybox 1.18.3 but get some error messages.
...
> error: asm/errno.h: No such file or directory
...
> error: asm/socket.h: No such file or directory
...

Please see the FAQ "14.1.7. ELDK Include Files Missing" at
http://www.denx.de/wiki/view/DULG/ELDKIncludeFilesMissing
for a description how to solve that problem.

Note: it is always a good idea to read the manual and the FAQ first.

Best regards,

Wolfgang Denk

--

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@...
How much net work could a network work, if a network could net work?
(Continue reading)

Herman Lee | 11 Feb 2011 19:03
Favicon

zoneinfo directory

Hi, Denx team,

I am using ELDK 4.2 for PPC package. Where I may be able to find out any
documentation about files in ppc_8xx/usr/share/zoneinfo? The
subdirectory posix and right have duplicated files, what are they?

Thanks,

Herman Lee

_______________________________________________
eldk mailing list
eldk@...
http://lists.denx.de/mailman/listinfo/eldk
Wolfgang Denk | 11 Feb 2011 20:00
Picon
Picon
Favicon

Re: zoneinfo directory

Dear Herman Lee,

In message
<83A7A32B3FDD6C4E80AE74310D8DC81A02BE8738@...>
you wrote:
>
> I am using ELDK 4.2 for PPC package. Where I may be able to find out any
> documentation about files in ppc_8xx/usr/share/zoneinfo? The
> subdirectory posix and right have duplicated files, what are they?

zoneinfo data is normally part of the tzdata package; in ELDK this is
bundled as part of the crosstool-targetcomponents package; for
footprint reasons in an embedded system not all documentation is
included.

Please run "man tzfile" in a standard Linux system for further
information about the timezone data description files.

Best regards,

Wolfgang Denk

--

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@...
 The software required `Windows 95 or better', so I installed Linux.
Shadid, Bill | 17 Feb 2011 17:37
Favicon

undefined reference to 'Abort'

Hi Folks,

We were using ELDK 4.1 for the powerpc for a few now with no problems.

We then needed to use some new library tools and were forced to move to
4.2 (another s/w eng could elaborate).

The move went smoothly except for my test s/w. It compiles as a
sub-directory of u-boot (ver 1.2.0).

We were getting the error "undefined reference to 'Abort'" along with
some other messages about divdf3, divsf3, muldf3 calling the Abort
function.

Some blog indicated that we could make our own abort function and it
would just have "int I =0;" in it. Well this satisfied the compiler but
executing the code did not go well. The system continually spit out that
annoying crash message with register dumps. I also tried just a printf
and that did not crash the system but it just terminated my program and
returned control to u-boot. 

I have not supplied any dumps, I could, but I was hoping someone would
have already seen the fault, fixed it and have a solution in their back
pockets. If that's not the case, I could gather up dumps and add them to
the email.

When the test s/w was compiled successfully on the older eldk, I would
just jump to the start of the program + 4, i.e. go fff20004.

Thanks in advance for your assistance,
(Continue reading)


Gmane