linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Oliver Rutsch <orutsch@sympatec.com>
To: Linuxppc-dev@ozlabs.org
Subject: TQM8349 and ARCH = powerpc
Date: Tue, 09 Sep 2008 16:25:39 +0200	[thread overview]
Message-ID: <48C68763.6030606@sympatec.com> (raw)

Hi,

currently I'm evaluating a TQM8349 (MPC8349E-based) module on a STK85xx. 
I wonder if anybody has already managed to get this module running under 
ARCH=powerpc.
As I did not found anything on the net I tried the following:

U-Boot (1.3.4):
Appended the file include/configs/TQM834x.h to support fdt:

#define CONFIG_OF_LIBFDT	1
#define CONFIG_OF_BOARD_SETUP	1
#define CONFIG_OF_STDOUT_VIA_ALIAS	1

Appended the file board/tqc/tqm834x/tqm834x.c:
#if defined(CONFIG_OF_BOARD_SETUP)
void ft_board_setup(void *blob, bd_t *bd)
{
	ft_cpu_setup(blob, bd);
#ifdef CONFIG_PCI
	ft_pci_setup(blob, bd);
#endif
}

U-Boot compiled fine and it looks good after flashing. In U-Boot 
everything seems to work.

Kernel (Linux-2.6.27-rc5):
I took arch/powerpc/boot/dts/mpc8349emitx.dts as a template
for a tqm8349.dts and stripped the IDE interface from it.
So for me the dts does not look board specific anymore and
the network/console should work.
I compiled a dtb with:
dtc -b 0 -S 0x3000 -R 4 -I dts -O dtb -f 
arch/powerpc/boot/dts/tqm8349.dts > tqm8349.dtb
Then I build the kernel with
make mpc83xx_defconfig
make menuconfig (I made some minor modifications)
make uImage
Unfortunately the kernel stops booting after decompressing.
I tried a lot of things, but without any success.
So any help to get this running is greatly appreciated.
Below there is the printout of my U-Boot session.

Thanks in advance and bye.


=> run nfsargs addip addtty
=> print bootargs
bootargs=root=/dev/nfs rw 
nfsroot=172.20.3.118:/home/rutsch/eldk4/ppc_6xx 
ip=172.20.3.250:172.20.3.118:192.168.1.1:255.255.192.0:tqm83xx:eth0:off 
panic=1 console=ttyS0,115200
=> print net_nfs
net_nfs=tftp 200000 ${bootfile};tftp 400000 ${dtbfile};run nfsargs addip 
addtty;bootm 200000 - 400000


=> run net_nfs
Speed: 1000, full duplex
Using TSEC0 device
TFTP from server 172.20.3.118; our IP address is 172.20.3.250
Filename 'uImage_tqm8349'.
Load address: 0x200000
Loading: #################################################################
############################################################
done
Bytes transferred = 1822793 (1bd049 hex)
Speed: 1000, full duplex
Using TSEC0 device
TFTP from server 172.20.3.118; our IP address is 172.20.3.250
Filename 'tqm8349.dtb'.
Load address: 0x400000
Loading: #
done
Bytes transferred = 12288 (3000 hex)
## Booting kernel from Legacy Image at 00200000 ...
    Image Name:   Linux-2.6.27-rc5-01142-gc66bf97
    Created:      2008-09-09  13:42:42 UTC
    Image Type:   PowerPC Linux Kernel Image (gzip compressed)
    Data Size:    1822729 Bytes =  1.7 MB
    Load Address: 00000000
    Entry Point:  00000000
    Verifying Checksum ... OK
## Flattened Device Tree blob at 00400000
    Booting using the fdt blob at 0x400000
    Uncompressing Kernel Image ... OK




-- 
Dipl. Ing. Oliver Rutsch
EMail: orutsch@sympatec.com

             reply	other threads:[~2008-09-09 14:25 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-09 14:25 Oliver Rutsch [this message]
2008-09-09 16:22 ` TQM8349 and ARCH = powerpc Kim Phillips
2008-09-10  6:06   ` Oliver Rutsch
2008-09-10 14:12   ` Oliver Rutsch
2008-09-10 14:26     ` Kim Phillips
2008-09-12  8:11       ` Oliver Rutsch
2008-09-12  0:36     ` David Gibson
2008-09-09 18:31 ` Wolfgang Denk

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=48C68763.6030606@sympatec.com \
    --to=orutsch@sympatec.com \
    --cc=Linuxppc-dev@ozlabs.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).