MPC5200B MMC over SPI into PSC6

2008-04-16 Thread [EMAIL PROTECTED]
Hello, I have an embedded system with an on-board processor powerpc MPC5200B 
and Linux kernel 2.6.22, 
I must turn over to MMC SPI on the PSC6.

First, I 
have enabled PSC6:

in ../arch/ppc/platforms/lite5200.c added PSC6 in SPI mode


struct mpc52xx_psc_func mpc52xx_psc_functions[] = {
 {   .id = 3,

 .func   = uart,
 },
 {   .id = 4,

 .func   = uart,
 },
 {   .id = 5,

 .func   = spi,
 },
};

in ..
/arch/powerpc/boot/dts/lite5200b.dts enabled PSC6 in SPI mode


// PSC6 in spi mode example
[EMAIL PROTECTED] { // PSC6
device_type = spi;

compatible = mpc5200b-psc-spi\0mpc5200-psc-spi;
cell-index = 5;
reg = 
2c00 100;
interrupts = 2 4 0;
interrupt-parent = mpc5200_pic;
};


Now on the menuconfig enabling these options:

$ make ARCH=powerpc 
CROSS_COMPILE=powerpc-linux-gnu- menuconfig
 
 Platform support  ---
[*] 
MPC5200 (L25R) bugfix support 
[*] Freescale Lite5200 Eval Board

 Device 
Drivers  --- SPI Support ---
[*] SPI support 
   * Freescale MPC52xx 
PSC SPI controller

this options settings the CONFIG_SPI_MPC52xx_PSC=y variable 
into .config

When linux booting, if I debug ../driver/spi/mpc52xx_psc_spi.c, 
see that:

bus platform: add driver mpc52xx-psc-
spi 
   

bus platform: remove driver mpc52xx-psc-spi
drivers/spi/mpc52xx_psc_spi.c: 
of_register_platform_driver failed (-19)

why??
any idea??

Someone knows how 
to enable mmc over spi on PSC6?

thanks Fabio Tosetto
___
Linuxppc-embedded mailing list
Linuxppc-embedded@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-embedded


SD over SPI mpc5200b

2008-04-03 Thread [EMAIL PROTECTED]
Hello, 

I am trying to enable the SD over SPI on a emebedded system with one 
processor powerpc mpc5200b, 

has someone patches for the Linux 2.6.22 versions?

Thanks Fabio.
___
Linuxppc-embedded mailing list
Linuxppc-embedded@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-embedded


Need refrence software for Booting board of MPC8540

2007-01-13 Thread [EMAIL PROTECTED]
Dear All,
This is Rajesh from VRINDATECHNOLOGIES, I have a quiery where i am
expecting a reply from all of you in this group, Presently we are trying to
build a board on MPC 8540 processor, And can you please send me some
Refrence Drivers where and how to initialize my board ,
And would be very thankfull if you could reply soon please,
Thanks and regards
Rajesh N
9885203007
Vrinda Technologies,
Hyderabad



mail2web - Check your email from the web at
http://mail2web.com/ .


___
Linuxppc-embedded mailing list
Linuxppc-embedded@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-embedded


Installing u-boot on sbc8260 via ethernet using minicom

2006-11-07 Thread [EMAIL PROTECTED]
i've tryed to install u-boot using minicom, but i'm not able to 
configure in shell boot params, 
using this...

boot device  : motfcc
unit number  : 0
processor number : 0
host name: motfcc0
inet on ethernet (e) : 192.168.0.4
inet on backplane (b): 192.168.0.4
host inet (h): 192.168.0.3
gateway inet (g) : 192.168.0.3
flags (f): 0x80
target name (tn) : sbc8260

when i reboot target it appears in minicom the message below:

AT S7=45 S0=0 L1 V1 X4 c1 E1 Q0
0x1f058b0 (tBoot): miiPhyInit check cable connection
Attached TCP/IP interface to motfcc0.
Warning: no netmask specified.
Attaching network interface lo0... done.
Loading... Erroneous header read

Error loading file: errno = 0x610001.
Can't load boot file!!
ΓΌ

my questions are?
what file must i put into target?(u-boot.bin?)
in which way can i upload it?(using tftp with 192.168.0.4 and using 
put command, it gives timeout for transmission, but ping to 
192.168.0.3 
works normally until in minicom appears error message)

Please help me to configure and install u-boot
thanks very much!!!


Naviga e telefona senza limiti con Tiscali 
Scopri le promozioni Tiscali adsl: navighi e telefoni senza canone Telecom

http://abbonati.tiscali.it/adsl/

___
Linuxppc-embedded mailing list
Linuxppc-embedded@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-embedded

ML403 and Montavista 4.01

2006-09-09 Thread [EMAIL PROTECTED]
Hello, we started developing kernel with Montavista 4.01 to Xilinx ML403.
Is there any info about upgrading ISE 8.1 Montavista 4 MLD/TCL and driver 
files to enable automatic driver generation?
-- next part --
An HTML attachment was scrubbed...
URL: 
http://ozlabs.org/pipermail/linuxppc-embedded/attachments/20060909/333dc46a/attachment.htm
 


Compile Error Report

2006-09-08 Thread [EMAIL PROTECTED]
Hi All,

I am working on linux-2.6.18-rc2-g73a589b5.tar.bz2 for MPC875, the 
cross-tools are from ELDK 4.0. After configuration and do 'make 
zImage', I got these error:

CC  arch/ppc/boot/simple/m8xx_tty.o
arch/ppc/boot/simple/m8xx_tty.c:32: error: static declaration of 'cpmp' 
follows non-static declaration
include/asm/commproc.h:74: error: previous declaration of 'cpmp' was here
make[2]: *** [arch/ppc/boot/simple/m8xx_tty.o] Error 1

I also got these errors if I used these tools on Linux 2.6.13, but 
there is no error if I use tools from ELDK 3.1.1, can anyone help me 
figure it out? Thanks.

Wei



Compile Error

2006-09-05 Thread [EMAIL PROTECTED]
Hi All,

I am working on linux-2.6.18-rc2-g73a589b5.tar.bz2 for MPC875, the 
cross-tools are from ELDK 4.0. After configuration and do 'make 
zImage', I got these error:

CC  arch/ppc/boot/simple/m8xx_tty.o
arch/ppc/boot/simple/m8xx_tty.c:32: error: static declaration of 'cpmp' 
follows non-static declaration
include/asm/commproc.h:74: error: previous declaration of 'cpmp' was here
make[2]: *** [arch/ppc/boot/simple/m8xx_tty.o] Error 1

I also got these errors if I used these tools on Linux 2.6.13, but 
there is no error if I use tools from ELDK 3.1.1, can anyone help me 
figure it out? Thanks.



Gabe Johnson is out of the office.

2006-08-30 Thread [EMAIL PROTECTED]

I will be out of the office starting  08/30/2006 and will not return until
09/05/2006.

I will respond to your message when I return.




Driver for OCP Driver for PPC405

2006-08-30 Thread [EMAIL PROTECTED]
Hi,

I need a OCP IDE driver for IBM PPC405 redwood6 platform for 2.6 kernel.
Any pointer for same or similar driver would be highly appreciated.

regards,
Akhilesh



Help for building linux 2.6.15

2006-08-29 Thread [EMAIL PROTECTED]
Hi All,

I am working on ELDK 4.0 package with my evaluation board: AM MPC875, 
after configuration for my board, and do 'make zImage', I got the 
following errors:

  CC  arch/ppc/syslib/m8xx_setup.o
arch/ppc/syslib/m8xx_setup.c:56: error: 'bd_t' undeclared here (not in 
a function)
arch/ppc/syslib/m8xx_setup.c:62: error: parse error before '*' token
arch/ppc/syslib/m8xx_setup.c:62: warning: function declaration isn't a 
prototype
arch/ppc/syslib/m8xx_setup.c: In function 'm8xx_calibrate_decr':
arch/ppc/syslib/m8xx_setup.c:144: error: 'binfo' undeclared (first use 
in this function)
arch/ppc/syslib/m8xx_setup.c:144: error: (Each undeclared identifier is 
reported only once
arch/ppc/syslib/m8xx_setup.c:144: error: for each function it appears in.)
arch/ppc/syslib/m8xx_setup.c:144: error: parse error before ')' token
arch/ppc/syslib/m8xx_setup.c:148: error: 'IMAP_ADDR' undeclared (first 
use in this function)
arch/ppc/syslib/m8xx_setup.c: In function 'm8xx_set_rtc_time':
arch/ppc/syslib/m8xx_setup.c:216: error: 'IMAP_ADDR' undeclared (first 
use in this function)
arch/ppc/syslib/m8xx_setup.c: In function 'm8xx_get_rtc_time':
arch/ppc/syslib/m8xx_setup.c:226: error: 'IMAP_ADDR' undeclared (first 
use in this function)
arch/ppc/syslib/m8xx_setup.c: In function 'm8xx_restart':
arch/ppc/syslib/m8xx_setup.c:235: error: 'IMAP_ADDR' undeclared (first 
use in this function)
arch/ppc/syslib/m8xx_setup.c: In function 'm8xx_show_percpuinfo':
arch/ppc/syslib/m8xx_setup.c:262: error: 'bp' undeclared (first use in 
this function)
arch/ppc/syslib/m8xx_setup.c:264: error: parse error before ')' token
arch/ppc/syslib/m8xx_setup.c: In function 'm8xx_find_end_of_memory':
arch/ppc/syslib/m8xx_setup.c:327: error: 'binfo' undeclared (first use 
in this function)
arch/ppc/syslib/m8xx_setup.c:328: warning: ISO C90 forbids mixed 
declarations and code
arch/ppc/syslib/m8xx_setup.c:330: error: parse error before ')' token
arch/ppc/syslib/m8xx_setup.c:328: warning: unused variable '__res'
arch/ppc/syslib/m8xx_setup.c: In function 'm8xx_map_io':
arch/ppc/syslib/m8xx_setup.c:344: error: 'IMAP_ADDR' undeclared (first 
use in this function)
arch/ppc/syslib/m8xx_setup.c:344: error: 'IMAP_SIZE' undeclared (first 
use in this function)
make[1]: *** [arch/ppc/syslib/m8xx_setup.o] Error 1

Can anyone help me? Thanks.




Help for bdm4gdb project

2006-08-28 Thread [EMAIL PROTECTED]
Hi All,

Does any one know bdm4gdb project that dosen't exist in 
sourceforge.net? I have hardware wiggler and software debugger, but I 
need instructions in more details to use it, thanks.

Wei



GPIO Control Driver

2006-08-25 Thread [EMAIL PROTECTED]
I am working on a PowerQuickIII processor that has a GPIO port, port C. 
Connect to this port are buffer enables for various devices on the 
product.  I am trying to write a driver to control certain GPIO lines. Any 
suggestions on the best way to implement this?  Currently I have created a 
module that creates character devices but I am now feeling it would have 
been better to create sysfs entries.  Looking at the structs from the 
Linux device model bus_type, device_driver, and device I am having 
troubles determining what needs to be declared?  What I think I would like 
to create in sysfs is:

/sys/module/MODULE NAME/rtm_enable
 /rtm_reset
 /clk1a_enable
 /clk1b_enable
 /clk2a_enable
 /clk2b_enable




the 8260 MMU problem

2006-08-23 Thread [EMAIL PROTECTED]
I meet some problems about MMU with 8260 cpu.In the function of 
map_page(),the reference f is the flag to set the page present and can be 
read or write. 
but I find if I set the flag zero,the linux will start normal and memory 
can be read and write also ,so why these  happened? The MMU do not worked 
normally!
wish you reply,think you.
 
yang.chun
   2006.8.23


~~~
?
??3??6?
MSN?yc_mail at eyou.com
~~~




ZTE Information Security Notice: The information contained in this mail is 
solely property of the sender's organization. This mail communication is 
confidential. Recipients named above are obligated to maintain secrecy and are 
not permitted to disclose the contents of this communication to others.
This email and any files transmitted with it are confidential and intended 
solely for the use of the individual or entity to whom they are addressed. If 
you have received this email in error please notify the originator of the 
message. Any views expressed in this message are those of the individual sender.
This message has been scanned for viruses and Spam by ZTE Anti-Spam system.
-- next part --
An HTML attachment was scrubbed...
URL: 
http://ozlabs.org/pipermail/linuxppc-embedded/attachments/20060823/88a279f8/attachment.htm
 


Artesyn PM/PPC 750 U-Boot/Linux support? Datasheet?

2006-08-22 Thread [EMAIL PROTECTED]

hi man
  i saw ur mail and wanted the datasheet of ppc 750 board.
 so if u can kindly mail  it me i ll be grateful to u.

   Mahesh Roy
Designation :Project Engineer
Extn  : 74162
Direct: 0484-3054162
Mobile   : +91-9895572846
(8:30 am to 9:00 pm)
 (MON to FRI)






The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments.

WARNING: Computer viruses can be transmitted via email. The recipient should 
check this email and any attachments for the presence of viruses. The company 
accepts no liability for any damage caused by any virus transmitted by this 
email.

www.wipro.com
-- next part --
An HTML attachment was scrubbed...
URL: 
http://ozlabs.org/pipermail/linuxppc-embedded/attachments/20060822/e04b52af/attachment.htm
 
-- next part --
A non-text attachment was scrubbed...
Name: not available
Type: image/gif
Size: 7830 bytes
Desc: aleabanr.gif
Url : 
http://ozlabs.org/pipermail/linuxppc-embedded/attachments/20060822/e04b52af/attachment.gif
 
-- next part --
A non-text attachment was scrubbed...
Name: not available
Type: image/jpeg
Size: 4389 bytes
Desc: Leaves Bkgrd.jpg
Url : 
http://ozlabs.org/pipermail/linuxppc-embedded/attachments/20060822/e04b52af/attachment.jpeg
 


No Clock on SPI

2006-08-15 Thread [EMAIL PROTECTED]
Hi

I?m writing a Driver for SPI. That is not working now.
I have a MPC8260 using Linux 2.6.14 (rheap patch).

Did someone else write a driver for SPI on this ?C or an other driver? So I can 
see what i did wrong?

My SPCOM[STR] flag isn?t cleared automatically after one clock cycle.
What here going wrong ? ( I know this register is write only)
There is also no Clock on my SPICLK.

How I have to allocate the Memory for the BD?s and the buffer for the BD?s?

Is there something special when I allocate Memory for my Parameter Ram?

Is something wrong with the 2.6 Kernel so i have to use the 2.4 Kernel ?

I hope somebody could help. Thx

Regards
Fred

-- 


Feel free ? 10 GB Mailbox, 100 FreeSMS/Monat ...
Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail



Which is better for Wireless Network Support, 2.6 or 2.4?

2006-08-10 Thread [EMAIL PROTECTED]
Hi All,

I am working on wireless data application via MPC875 host USB, is there 
any difference to use Linux 2.6.x or Linux 2.4.x? Is it Linux 2.6 more 
like RTOS? Thanks.

Wei



Compatibility Problem between linux-2.4.25 and RedBoot

2006-08-10 Thread [EMAIL PROTECTED]
Hi all,

Since my evaluation board based on MPC875 is pre-installed RedBoot 
Loader and Linux with this kit can be loaded and execute, but I want to 
try public powerpc linux, which can be loaded, but not execute. Dose 
any one know how to change it so that it is compatible with RedBoot? I 
checked the definition of struct bd_info{} is different, is it the 
shared struct by bootloader and Linux? How dose loader work with linux? 
Thanks.

Wei



invalidate_dcache_range Kernel 2.6.14

2006-08-04 Thread [EMAIL PROTECTED]
I have an old driver that need the funktion invalidate_dcache_range but when I 
compile the driver : Unknown symbol invalidate_dcache_range.

Whats the name of this funktion now ???

Regards
Ted
-- 


Echte DSL-Flatrate dauerhaft f?r 0,- Euro*. Nur noch kurze Zeit!
Feel free mit GMX DSL: http://www.gmx.net/de/go/dsl



Help for USB host driver for MPC8xx

2006-08-02 Thread [EMAIL PROTECTED]
Hi All,

Dose anyone use USB host drivers for MPC875 with Linux 2.4.25? I just 
found these notes from http://www.heeltoe.com/software/usb/usb.html, 
but I have no idea about how to use it, any advice? Thanks.

Wei



SPI spi_spcom[STR] freeze

2006-08-02 Thread [EMAIL PROTECTED]
Hello

I have problem with SPI

When I want to start my SPI transfer by setting 0x80 to my spi_spcom register. 
0x80 keeping in this register till I READ the SPMODE register. There is also 
no transfer or any clock on the pins. 
Did anyone had an Idea what this can be ???

my system:
mpc8270 
pm827 from mircosys
linux 2.6.14 with Xenomai 2.1.2
The kernel module with the spi run under the rtdm.

Thx for helping me.
Regards 
Fred

-- 


Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
Ideal f?r Modem und ISDN: http://www.gmx.net/de/go/smartsurfer



Portting Linux to MPC8247

2006-08-01 Thread [EMAIL PROTECTED]
I am portting Linux(ver. 2.4.24) to MPC8247. I use U-boot and ELDK Kit.
The boot and kernel works well, but when the init process to execute
/sbin/init the board restarts. The message is shown following:

... ...

Memory BAT mapping: BAT2=32Mb, BAT3=0Mb, residual: 0Mb
Linux version 2.4.24-pre2 (yulq at MDS-Server) (gcc version 3.2.2 20030217
(Yellow
Dog Linux 3.0 3.2.2-2a_1)) #99 Mon Jul 31 17:51:08 CST 2006
On node 0 totalpages: 8192
zone(0): 8192 pages.
zone(1): 0 pages.
zone(2): 0 pages.
Kernel command line: console=ttyS0,9600n8 root=/dev/ram
ip=192.168.2.130:192.168
.2.147:192.168.2.147:255.255.255.0:yulq::off
Warning: real time clock seems stuck!
Calibrating delay loop... 131.89 BogoMIPS
Memory: 27088k available (988k kernel code, 324k data, 52k init, 0k
highmem)
Dentry cache hash table entries: 4096 (order: 3, 32768 bytes)
Inode cache hash table entries: 2048 (order: 2, 16384 bytes)
Mount cache hash table entries: 512 (order: 0, 4096 bytes)
Buffer cache hash table entries: 1024 (order: 0, 4096 bytes)
Page-cache hash table entries: 8192 (order: 3, 32768 bytes)
POSIX conformance testing by UNIFIX
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
Starting kswapd
CPM UART driver version 0.01
ttyS0 on SMC1 at 0x, BRG7
ttyS1 on SCC1 at 0x8000, BRG1
ttyS2 on SCC2 at 0x8100, BRG2
pty: 256 Unix98 ptys configured
eth0: FCC1 ENET Version 0.4, 08:00:3E:2D:9D:5B
eth0: Phy @ 0x1, type LXT971 (0x001378e2)
RAMDISK driver initialized: 16 RAM disks of 16384K size 1024 blocksize
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 2048 bind 4096)
eth0: config: auto-negotiation on, 100FDX, 100HDX, 10FDX, 10HDX.
IP-Config: Complete:
  device=eth0, addr=192.168.2.130, mask=255.255.255.0,
gw=192.168.2.147,
 host=yulq, domain=, nis-domain=(none),
 bootserver=192.168.2.147, rootserver=192.168.2.147, rootpath=
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
RAMDISK: Compressed image found at block 0
Freeing initrd memory: 3919k freed
VFS: Mounted root (ext2 filesystem) readonly.
Freeing unused kernel memory: 52k init
Open an initial console successful

Board restarts !

What is the problem ?





Ksymoops

2006-08-01 Thread [EMAIL PROTECTED]
 Hi all
 
 We are using a Embedded Planet 8260 board with Embedded linux loaded in it. 
The target processor is MPC 8260. We need a kysmoops (rpm) for debugging oops 
messages in kernel.
 Can anyone suggest the link or how can i install kysmoops for Embedded Planet 
8260 board with Embedded linux? 
 
 Regards
 Jay
 
 
  

Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam 
and email virus protection.
-- next part --
An HTML attachment was scrubbed...
URL: 
http://ozlabs.org/pipermail/linuxppc-embedded/attachments/20060801/241c7e88/attachment.htm
 


Portting Linux to MPC8247

2006-08-01 Thread [EMAIL PROTECTED]
I'm portting Linux to MPC8247 using ELDK-3.0 Kit and U-boot-1.1.4.
The boot and kernel work well. But the console can't print anything.
In /etc/inittab, I append line: s0:2345:respawn:/sbin/mingetty ttyS0 9600
linux.

... ...

Kernel command line: console=ttyS0,9600n8 root=/dev/nfs rw
nfsroot=192.168.2.147
:/home/yulq/eldk/ppc_82xx
ip=192.168.2.130:192.168.2.147:192.168.2.147:255.255.2
55.0:yulq:eth0:off
Warning: real time clock seems stuck!
Calibrating delay loop... 131.89 BogoMIPS
Memory: 31040k available (956k kernel code, 320k data, 56k init, 0k
highmem)
Dentry cache hash table entries: 4096 (order: 3, 32768 bytes)
Inode cache hash table entries: 2048 (order: 2, 16384 bytes)
Mount cache hash table entries: 512 (order: 0, 4096 bytes)
Buffer cache hash table entries: 1024 (order: 0, 4096 bytes)
Page-cache hash table entries: 8192 (order: 3, 32768 bytes)
POSIX conformance testing by UNIFIX
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
Starting kswapd
CPM UART driver version 0.01
ttyS0 on SMC1 at 0x, BRG7
ttyS1 on SCC1 at 0x8000, BRG1
ttyS2 on SCC2 at 0x8100, BRG2
pty: 256 Unix98 ptys configured
eth0: FCC1 ENET Version 0.4, 08:00:3E:2D:9D:5B
eth0: Phy @ 0x1, type LXT971 (0x001378e2)
RAMDISK driver initialized: 16 RAM disks of 16384K size 1024 blocksize
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 2048 bind 4096)
eth0: config: auto-negotiation on, 100FDX, 100HDX, 10FDX, 10HDX.
IP-Config: Complete:
  device=eth0, addr=192.168.2.130, mask=255.255.255.0,
gw=192.168.2.147,
 host=yulq, domain=, nis-domain=(none),
 bootserver=192.168.2.147, rootserver=192.168.2.147, rootpath=
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
Looking up port of RPC 13/2 on 192.168.2.147
Looking up port of RPC 15/1 on 192.168.2.147
VFS: Mounted root (nfs filesystem).
Freeing unused kernel memory: 56k init
Open an initial console successful.


Where is the problem ? Thanks.






SPI Problem

2006-08-01 Thread [EMAIL PROTECTED]
Hi

I?m writing a Driver for SPI. That is not working now.
I have a MPC8260 using Linux 2.6.14 (rheap patch).


My Problems and Questions

1. The Pointer in my BD to my Buffer Pointer is in external memory, I normaly 
allocated with kmalloc. Are this ok or need I a SDMA Page ?

2. My SPCOM[STR] flag isn?t cleared automatically after one clock cycle.
What here going wrong ?

I hope somebody could help. Thx

Regards
Fred

-- 


Feel free ? 10 GB Mailbox, 100 FreeSMS/Monat ...
Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail



cpm_dpalloc

2006-07-31 Thread [EMAIL PROTECTED]
Hi All

I have a MPC82xx Processor from Freescale with Linux 2.6.14 ( Can?t chance to 
an new version).

My Problem is that I want to allocate a 64byte of memory in the dual ported ram 
with an alignment of 64bytes. (Needed for SPI Parameter Ram)

the funktion cpm_dpalloc(64,64) returned 0x220 but that are not in a 64 byte 
alignment. 

Regards 
Fred
-- 


Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
Ideal f?r Modem und ISDN: http://www.gmx.net/de/go/smartsurfer



Reg. virtual address space in embedded linux

2006-07-22 Thread [EMAIL PROTECTED]
 Hi all
 
 We are porting third party driver code from vxworks to Embedded linux in MPC 
8260 under a evaluation platform from Embedded Planet in linux kernel space.
 
  The first step we carried out was reading the chip id and we were able to 
read the chip id correctly.   For reading the chip id we used the routine 
ChipReadMemory in the attached text and we were able to retrive the chip id 
successfully.   Subsequently when we write and read from Chip Specific Control 
Status registers ,it didn't work.   I checked the manual and the Chip Specific 
Control Status registers have RW access.   Any inputs on how to check if the 
write we made to virtual address succeeds?   Is there a way to dump the linux 
virtual address and examine the write we made ?
 
 Regards
 Jay
  
   

Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam 
and email virus protection.
-- next part --
An HTML attachment was scrubbed...
URL: 
http://ozlabs.org/pipermail/linuxppc-embedded/attachments/20060722/bbd840d6/attachment.htm
 
-- next part --
An embedded and charset-unspecified text was scrubbed...
Name: RWroutines.txt
Url: 
http://ozlabs.org/pipermail/linuxppc-embedded/attachments/20060722/bbd840d6/attachment.txt
 


JTAG PPC info ?

2006-07-14 Thread [EMAIL PROTECTED]
Quoting David H. Lynch Jr. dhlii at dlasys.net:

 Has anyone not covered by non-disclosure deciphered the JTAG codes
 for the PowerPC ?

Is this a big secret or just skimpy Freescale documentation?
Try emailing:
 Ed.Nuckolls at freescale.com
This effort could help expand projects such as:
  http://sourceforge.net/projects/jtager/
for us embedded powerpc users!

For myself, right now I can't get much help from Abatron turning
on a new MPC5200 design. My approach: debugging modified u-boot code 
running out of RAMlots of machine checks!

Frank Bennett
President
Mathegraphics,LLC
Fort Collins,CO 
www.mathegraphics.com
bennett78 at digis.net



 I have a situation using a custom JTAG interface that is looking to
 impliment host side PPC debugging. JTAG access and manipulation of most
 all other JTAG devices on the target is working.
 Right now the problem is deciphering the JTAG commands etc to the
 PPC itself.
 
 
 
 Ria Roy wrote:
  Hi, 
 
  Does anyone know if Macriagor's mpDemon is capable of debugging the
  linux kernel via the JTAG interface. 
 
  Thanks in advance, 
  Ria
 
  ___
  Linuxppc-embedded mailing list
  Linuxppc-embedded at ozlabs.org
  https://ozlabs.org/mailman/listinfo/linuxppc-embedded

 
 
 -- 
 Dave LynchDLA Systems
 Software Development:  Embedded Linux
 717.627.3770 dhlii at dlasys.nethttp://www.dlasys.net
 fax: 1.253.369.9244  Cell: 1.717.587.7774
 Over 25 years' experience in platforms, languages, and technologies too
 numerous to list.
 
 Any intelligent fool can make things bigger and more complex... It takes a
 touch of genius - and a lot of courage to move in the opposite direction.
 Albert Einstein
 
 ___
 Linuxppc-embedded mailing list
 Linuxppc-embedded at ozlabs.org
 https://ozlabs.org/mailman/listinfo/linuxppc-embedded
 




---
Email sent through Digis Networks http://www.digis.net/



request_irq in a module casues kernel crash

2006-07-12 Thread [EMAIL PROTECTED]
please rewrite handler function with,

 void handler(int irq, void *dev_id, struct pt_regs * regs)
 {
printk(Interrupt handler invoked for irq %d \n,irq);
return IRQ_HANDLED;
 }



eInfochips Business Disclaimer:
This message may contain confidential, proprietary or legally Privileged 
information. In case you are not the original intended Recipient of the 
message, you must not, directly or indirectly, use, Disclose, distribute, 
print, or copy any part of this message and you are requested to delete it and 
inform the sender. Any views expressed in this message are those of the 
individual sender unless otherwise stated. Nothing contained in this message 
shall be construed as an offer or acceptance of any offer by eInfochips Limited 
and/or eInfochips Inc(eInfochips) unless sent with that express intent and 
with due authority of eInfochips. eInfochips has taken enough precautions to 
prevent the spread of viruses. However the company accepts no liability for any 
damage caused by any virus transmitted by this email.



Compatibility Problem between linux-2.4.25 and RedBoot

2006-07-12 Thread [EMAIL PROTECTED]
Hi All,

I am working on AdderII-MPC875 evaluation board(preinstalled RedBoot 
Monitor) with Linux OS, I can use adderII_defconfig(in linux-2.4.25) to 
compile and link to build up the image, and I can load it at 
0x0038, but it can't be executed. If I use its original image 
coming with this board, it seems to relocate to another address from 
0x0038, and then decompress, execute, so is there anyone who can 
help me figure it out? any suggestion? Thanks.

Wei



MPC5200 boot giving request_module: runaway loop modprobe binfmt-4c46 errors

2006-07-10 Thread [EMAIL PROTECTED]
An HTML attachment was scrubbed...
URL: 
http://ozlabs.org/pipermail/linuxppc-embedded/attachments/20060710/5cac72aa/attachment.htm
 


SIU_INT_IRQ4 in MPC 8260

2006-07-07 Thread [EMAIL PROTECTED]
Hi all

I am trying to set up a interrupt handler for SIU_INT_IRQ4.

The target I am using is MPC 8260 , emmbedded planet Evaluation board.

The OS is Embedded Linux .
-

void my_interrupt_handler(int irq, void *dev_id, struct pt_regs *regs)
{

 printk(*** \n);

}


 if( request_irq(SIU_INT_IRQ4,my_interrupt_handler,0,0,0)  0)
 {
 printk(\n unable to register the interrupt handler \n);
 }

-


But my_interrupt_handler isn't getting called .

Can anyone help me to fix this problem

Regards
Jagan






Check Out the new free AIM(R) Mail -- 2 GB of storage and 
industry-leading spam and email virus protection.




MPC5200 boot giving request_module: runaway loop modprobe binfmt-4c46 errors

2006-07-07 Thread [EMAIL PROTECTED]
An HTML attachment was scrubbed...
URL: 
http://ozlabs.org/pipermail/linuxppc-embedded/attachments/20060707/2dc755f5/attachment.htm
 


Reg. RISC Timers in MPC8260

2006-07-04 Thread [EMAIL PROTECTED]
Hi

Sorry this a repost , as in the earlier post I had wrongly mentioned 
the Target OS as Monta Vista Linux.

We have a requirement of starting a 5 millisecond periodic timer . The 
target OS is Embedded Linux from Embedded Planet for MPC 8260 processor.

when i did a insmod of the module in the Target (MPC8260) it hangs 
while  enabling timer 1?

Can anyone tell me what's wrong with the code?

-
-


#include asm/cpm_8260.h



typedef struct risc_timer_pram {
unsigned short  tm_base;/* RISC Timer Table Base Address*/
unsigned short  tm_ptr; /* RISC Timer Table Pointer (internal)  */
unsigned short  r_tmr;  /* RISC Timer Mode Register */
unsigned short  r_tmv;  /* RISC Timer Valid Register*/
unsigned long   tm_cmd; /* RISC Timer Command Register  */
unsigned long   tm_cnt; /* RISC Timer Internal Count*/
} rt_pram_t;


volatile immap_t *immap = (immap_t *)IMAP_ADDR;

void my_timer_interrupt(int irq, void *dev_id, struct pt_regs *regs)
{

 unsigned int i, rter;

 printk(*** \n);
 /*read RTER to see which timers have caused interrupts.
 */

 rter  = immap-im_cpm.cp_rter ;

 /*The RISC timer event bits are usually cleared
  *by this time
  */
 immap-im_cpm.cp_rter = 0x ;


}

int  __init device_init(void)
{
   unsigned int ticks = 0;
   unsigned int interval  = 1000;
   unsigned short prescaler = 0;

   volatile cpm8260_t   *cp;


  /*
* Write the TIMEP bits of the RCCR with 11 to generate the 
slowest
* clock, This value generates a tick every 65,536 clocks, which is 
every
   * 2.6 milliseconds at 25 MHz.
   */

   immap-im_cpm.cp_rccr = ( 0x3f  8 );

   /*
 * Configure the TM_BASE in the RISC timer table parameter RAM to 
point to a location in the
* dual-port RAM with 4 bytes available.
*/


   rt_pram_t *rtt_pramp = (rt_pram_t *)immap-im_dpram1;

   /*
   * Assuming the beginning of dual-port RAM is available,
   * write 0x to TM_BASE.
   */



rtt_pramp-tm_base = 0x;



   /*Write 0x to the TM_CNT field in the RISC timer table
*parameter RAM to see how many ticks elapsed since the RISC
*internal timer was enabled.
   */
   rtt_pramp-tm_cnt  = 0x0;

   /*Write 0x to the RTER to clear any previous events.
*/

   immap-im_cpm.cp_rter = 0x;

   /* Write 0x0001 to the RTMR to enable RISC timer 0
*  and timer 1 to generate an interrupt.
*/
   immap-im_cpm.cp_rtmr |= 0x1 ;

   /* Write 0x0002_ to the SIU interrupt mask register (SIMR_L)
* to allow the RISC timers to generate a system interrupt.
*/

   immap-im_intctl.ic_simrl = 0x0002;

   /* Initialize the SIU interrupt configuration register */


   immap-im_intctl.ic_sicr = 0;



   if( request_irq(SIU_INT_RISC,my_timer_interrupt,0,0,0)  0)
   {
 printk(\n unable to register the RISC timer \n);
   }

  /*Write 0xC000_080D to the TM_CMD field of the RISC timer table
 parameter RAM. This enables RISC timer 0 to timeout after 
2,061(decimal)
 ticks of the timer. The timer automatically restarts after it times 
out.
  */

  rtt_pramp-tm_cmd = 0xC80D ;

  /* Enter Command:  SET TIMER */

  while (immap-im_cpm.cp_cpcr  CPM_CR_FLG);
 immap-im_cpm.cp_cpcr = 
mk_cr_cmd(CPM_CR_TIMER_PAGE,CPM_CR_TIMER_SBLOCK,0,CPM_CR_SET_GADDR)|CPM_C
R_FLG;
  while (immap-im_cpm.cp_cpcr  CPM_CR_FLG);


  /* Set RCCR[TIME] to enable the RISC timer to
   * begin operation.
   */

  printk(KERN_INFO enabling timer 1  );
  immap-im_cpm.cp_rccr = ( 1  15 );


  return 0;
}



 

void cleanup_device(void)
{

  request_irq(SIU_INT_RISC, NULL, 0, 0,
0);
 

  printk(KERN_INFO cleaned up \n);
}
-
-
---

Regards
Jagan

Check Out the new free AIM(R) Mail -- 2 GB of storage and 
industry-leading spam and email virus protection.




SMC1 Serial port blocks

2006-06-30 Thread [EMAIL PROTECTED]
I have two identical linux boxes connected via a serial link (9600 
bit/s without any handshaking). In both boxes the serial port is 
realized by SMC1. One box is receiving and the other transmits a long 
stream of bytes. If I start the receiver after the transmitter, it 
seems that the transmitter cannot send anymore, even when I start the 
receiver. The transmitter has to be restarted to solve the problem.

Any help is appreciated,
Anna





Hai voglia di fare un viaggio, ma non sai dove andare?
Scegli una delle nostre offerte HOTEL IN ITALIA E IN EUROPA da 50 euro.
Prenota subito su Expedia.it e... buona vacanza!

http://expedia.viaggi.tiscali.it/default.aspx?eapid=330-8 
 




SMC1 serial port blocks

2006-06-30 Thread [EMAIL PROTECTED]
I have two identical linux boxes connected via a serial link (9600 
bit/s without any handshaking). In both boxes the serial port is 
realized by SMC1. One box is receiving and the other transmits a long 
stream of bytes. If I start the receiver after the transmitter, it 
seems that the transmitter cannot send anymore, even when I start the 
receiver. The transmitter has to be restarted to solve the problem.

Any help is appreciated,
Anna





Hai voglia di fare un viaggio, ma non sai dove andare?
Scegli una delle nostre offerte HOTEL IN ITALIA E IN EUROPA da 50 euro.
Prenota subito su Expedia.it e... buona vacanza!

http://expedia.viaggi.tiscali.it/default.aspx?eapid=330-8 
 




rs232 endianness on PPC

2006-06-30 Thread [EMAIL PROTECTED]
Hi,

when I write a byte on the SMC1 (MPC875) serial device (let us say 
0x11) what should I expect on the output pin? First a 0 then 0, 0, 1, 
0, 0, 0, 1 or the opposite. Is it different on a little endian CPU?

Bye,
Antonio.





Hai voglia di fare un viaggio, ma non sai dove andare?
Scegli una delle nostre offerte HOTEL IN ITALIA E IN EUROPA da 50 euro.
Prenota subito su Expedia.it e... buona vacanza!

http://expedia.viaggi.tiscali.it/default.aspx?eapid=330-8 
 




FW: unresolved symbol on target ... while insmod

2006-06-29 Thread [EMAIL PROTECTED]

Thanks ... I am able to resolve the problem ...





From: Srideep DeviReddy (WT01 - Broadband Networks)
Sent: Thursday, June 29, 2006 10:30 AM
To: 'linuxppc-embedded at ozlabs.org'
Subject: unresolved symbol on target ... while insmod



Hello All ,



 I compiled a driver module  using cross compiler for MPC8247 , now when
I try to insert the module in to the target  I give me an error like



root at 10.0.0.2:/home# insmod linux-kernel-bde.o

Using linux-kernel-bde.o

insmod: unresolved symbol devfs_register

insmod: unresolved symbol vsprintf

insmod: unresolved symbol kmalloc

insmod: unresolved symbol create_proc_entry

insmod: unresolved symbol __get_free_pages

insmod: unresolved symbol __save_flags_ptr

insmod: unresolved symbol ioremap

insmod: unresolved symbol free_irq

insmod: unresolved symbol high_memory

insmod: unresolved symbol devfs_unregister

insmod: unresolved symbol iounmap

insmod: unresolved symbol free_pages

insmod: unresolved symbol kfree

insmod: unresolved symbol strlen

insmod: unresolved symbol remove_proc_entry

insmod: unresolved symbol request_irq

insmod: unresolved symbol mem_map

insmod: unresolved symbol simple_strtoul

insmod: unresolved symbol sprintf

insmod: unresolved symbol __restore_flags

insmod: unresolved symbol printk

insmod: unresolved symbol __cli



Can any one show me some pointers what is this error all about . And how
to over come this . Thanks in advance



Best Regards

Srideep






The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments.

WARNING: Computer viruses can be transmitted via email. The recipient should 
check this email and any attachments for the presence of viruses. The company 
accepts no liability for any damage caused by any virus transmitted by this 
email.

www.wipro.com
-- next part --
An HTML attachment was scrubbed...
URL: 
http://ozlabs.org/pipermail/linuxppc-embedded/attachments/20060629/3aecd05a/attachment.htm
 


unresolved symbol on target ... while insmod

2006-06-29 Thread [EMAIL PROTECTED]

Hello All ,



 I compiled a driver module  using cross compiler for MPC8247 , now when
I try to insert the module in to the target  I give me an error like



root at 10.0.0.2:/home# insmod linux-kernel-bde.o

Using linux-kernel-bde.o

insmod: unresolved symbol devfs_register

insmod: unresolved symbol vsprintf

insmod: unresolved symbol kmalloc

insmod: unresolved symbol create_proc_entry

insmod: unresolved symbol __get_free_pages

insmod: unresolved symbol __save_flags_ptr

insmod: unresolved symbol ioremap

insmod: unresolved symbol free_irq

insmod: unresolved symbol high_memory

insmod: unresolved symbol devfs_unregister

insmod: unresolved symbol iounmap

insmod: unresolved symbol free_pages

insmod: unresolved symbol kfree

insmod: unresolved symbol strlen

insmod: unresolved symbol remove_proc_entry

insmod: unresolved symbol request_irq

insmod: unresolved symbol mem_map

insmod: unresolved symbol simple_strtoul

insmod: unresolved symbol sprintf

insmod: unresolved symbol __restore_flags

insmod: unresolved symbol printk

insmod: unresolved symbol __cli



Can any one show me some pointers what is this error all about . And how
to over come this . Thanks in advance



Best Regards

Srideep






The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments.

WARNING: Computer viruses can be transmitted via email. The recipient should 
check this email and any attachments for the presence of viruses. The company 
accepts no liability for any damage caused by any virus transmitted by this 
email.

www.wipro.com
-- next part --
An HTML attachment was scrubbed...
URL: 
http://ozlabs.org/pipermail/linuxppc-embedded/attachments/20060629/b8754a9b/attachment.htm
 


A Couple of 2.6/Xilinx Questions

2006-06-08 Thread [EMAIL PROTECTED]
All,
I've been attempting to get a 2.6 version running on the Xilinx ML403 and 
only really need the ethernet and compact flash devices at this point.  I've 
tried versions from mvista, kernel.org, etc; all only have the serial8250 
device enabled.  Obviously adding devices is a lot of work and it appears that 
you all have already made great progress enabling ethernet.
   Are any of  the advanced versions upon which you all work generally 
available?  If so could you please provide a location? Apologies in advance for 
polluting your emailboxes and thanks in advance for any help/pointers that you 
can provide. I'll be more than happy to share any mods that I make (if any)
 Rance Kirtley
 Applied Systems Intelligence
 Roswell, GA USA
   




Using RS232 Terminal as input device

2006-06-06 Thread [EMAIL PROTECTED]
Hi all


I am using the kernel (2.6.15) in an ppc-based embedded system through a 
serial console on ttyS0 with no problems.

Now I attached a graphic card to the system, which is correctly 
recognized and initialised by the Kernel. If I add console=tty0 
console=ttyS0,57600 to the bootargs, I have the boot messages of the 
kernel on the screen and a login on the ttyS0.

What I now want to do is to disable the serial console and use the 
graphic card as output and the raw character data (ASCII) coming in from 
the terminal connected to the rs232 as input.

I have a login on the screen, if I delete the line console=ttyS0,57600 
from the bootargs, but unfortunately no input if a key is pressed on the 
terminal keyboard.


So my problem and question is, apart from not totally understanding the 
input device system of 2.6.x ;-)
Has anyone ever done that?
Is it just a kernel configuration problem? If so what modules have to be 
compiled in?
Are there any good documentaion about the new input device system ?

Basically I am totally confused ;-), so any ideas are appreciated.

Cheers

Harald
-- next part --
An HTML attachment was scrubbed...
URL: 
http://ozlabs.org/pipermail/linuxppc-embedded/attachments/20060606/64837f97/attachment.htm
 


USB on MPC8349 with MPH controller

2006-06-02 Thread [EMAIL PROTECTED]
Hi,

im using kernel 2.6.16.18 with the ehci-fsl and a patch from this list
to get USB working.
So SCCR and SICRL register are set correctly.
The external connected PHY is a SMSC 3300-EZK which has an ULPI interface.
If I configure the USB controller of the MPC8349 to use the DR
controller, port 1 can be used with low, full and high speed devices
without any errors.
But if the USB controller is switched to MPH, the port 0 and port 1
cannot read the device descriptor.
Error message is:

fsl-usb2-mph: devpath1 ep0in 3strikes
fsl-usb2-mph: devpath1 ep0in 3strikes
fsl-usb2-mph: devpath1 ep0in 3strikes
usb1-1: device decriptor read/64, error -71

Does anyone know this problem or knows a solution?

Oliver



Can't get CoralP drivers to work (fixed)

2006-06-01 Thread [EMAIL PROTECTED]
Hello guys

I had time to dig into the kernel code and I discovered the origin of my
problem. As I said in a previous post, we use a custom processor card
based on a mpc8270. In the initialisation of our board was missing the
following line :

conswitchp = dummy_con;

That's all !

Now it works fine.

I still have a little problem : video output signals seems to be very low.
I have to set the maximum contrast and luminosity to see something. I
tried on different monitors, the problem is the same.

The board is configured to use the rgb analog signals from the coral, not
from the dac.

Are there any jumpers or register to tweak the video signal levels ? I
can't find it in the hardware manual...




Can't get CoralP drivers to work

2006-05-30 Thread [EMAIL PROTECTED]
 In message 1402.194.3.133.184.114040.squirrel at webmail.enib.fr you
 wrote:

 This seems ok to me but I don't have any video signal. My screen
 remains
 blank.

 What's your boot arguments? Where is  your  console  device,  on  the
 serial port or on the frame buffer?

 My boot arguments :
 # more /proc/cmdline
 console=tty0 console=ttyS1,9600 devfs=mount ip=bootp root=/dev/nfs rw

 My console is on the serial port (ttyS1 on SMC2).

 xf86OpenConsole: Cannot open /dev/tty0 (No such file or directory)
 ...

 Did you enable all of the following options in your kernel config?

  CONFIG_FB=y
  CONFIG_DUMMY_CONSOLE=y
  CONFIG_FB_MB86290=y
  CONFIG_FBCON_ADVANCED=y
  CONFIG_FBCON_CFB16=y
  CONFIG_FBCON_FONTS=y
  CONFIG_FONT_8x8=y
  CONFIG_FONT_8x16=y
  CONFIG_VT=y
  CONFIG_VT_CONSOLE=y

 My guess is that CONFIG_VT and/or CONFIG_VT_CONSOLE might be missing.

 All those options are enabled.


As I said earlier, when the driver loads, my monitor don't receive any
video signal. I can force it by calling at the end of the initialization
of the driver :
  reg = MB86290FB_READ_DISP_REGISTER(GDC_DISP_REG_EXT_MODE);
  MB86290FB_WRITE_DISP_REGISTER(GDC_DISP_REG_EXT_MODE, reg | 0x8001);
This command enables the display, and garbage appears on the monitor.

Then if i do :
# cat /dev/urandom  /dev/fb0
I should see dummy pixels on the screen but in fact nothing happens. This
is still the same garbage on the screen.

I use a custom processor card based on a MPC8270. I can't figure out if
the problem comes from the configuration of my kernel (all the needed
options are enabled) or if it is in the code of the initialisation of my
platform.

This is the first time I try to use framebuffer graphics, so I'm new with
it. Can the framebuffer work from a serial console on a platform without
keyboard ?

Thanks for your help.




Can't get CoralP drivers to work

2006-05-30 Thread [EMAIL PROTECTED]
 Does the 8270 swap bytes on the PCI bus?  The CoralP drivers are written
 for
 the 5200, which assumes any PCI card to be little-endian, and thus swaps
 bytes.  That is, if you write a 32-bit word, say 0x01020304, the 5200
 PCI
 will actually write 0x04030201.  So if 8270 does *not* swap bytes like
 that
 it would be a problem.


I checked this and the byte swapping is OK.






Linux kernel thread with Linux 2.6.x

2006-05-30 Thread [EMAIL PROTECTED]
Hi,

do you have to use the semaphore or does a spinlock also meet your needs?
If you are in kernel 2.4 you can use one of the task_queues (e.g the
scheduler queue, timer and immediate queue also run at irq context) but
that won't have a better speed than your solution because it also gets
the processor when tasks are scheduled (all 10ms I think). In 2.6 it
would be the work_queue (schedule_work()).
So the best way is to use spinlocks and do the work in a tasklet at
interrupt context.

Oliver

J?rn Engel schrieb:
 On Tue, 30 May 2006 11:46:09 +0200, Laurent Lagrange wrote:
 Thanks for your answer, but a tasklet runs in interrupt context
 (in_interrupt() != 0) so it doesn't support schedule() call
 included in down semaphore function.
 
 Do you have code you can show?
 
 J?rn
 



execve of /sbin/init fails

2006-05-30 Thread [EMAIL PROTECTED]

  
  Anantharaman Chetan-W16155  
  
  Chetan.S.Anantharaman at motorola.com   
   To:   linuxppc-embedded at ozlabs.org  
  Sent by:  
cc:   
  linuxppc-embedded-bounces+jeff.fellin=rflelect.com
Subject:  execve of /sbin/init fails  
  @ozlabs.org   
  

  

  
  05/30/2006 15:59  
  

  

  








Hi,
I am trying to bring up a custom board with a PPC405 processor running
Linux 2.4.20 (MontaVista Release) and am having problems with the call to
execve(?/sbin/init?, argv_init, envp_init) not returning in the file
main.c. The processor just hangs and there is no output on the terminal. I
have tried to see if I can run ?bin/sh? and even this execve call does not
return. Some things about the board are, the networking option has been
disabled in the Linux .config file. I am running U-Boot 1.1.1 as the
bootloader and am downloading the uImage (compressed kernel) and the
initrd.boot (filesystem) into RAM and accessing the filesystem in RAM.
 Chetan, I would check the contents of the initrd filesystem you created to
verify the files are in the image. If they are monitor the console output
to verfiy the ramdisk filesystem is found and installed into ram.
Jeff Fellin

Any help as to what could be causing this to happen or how to debug this
issue would be appreciated. Also, I?ve tried to capture the return value
of the execve call but since the call does not return, this has not helped
any.

Thanks,
Chetan Anantharaman

 ___
Linuxppc-embedded mailing list
Linuxppc-embedded at ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-embedded


Can't get CoralP drivers to work

2006-05-29 Thread [EMAIL PROTECTED]

 On May 24, 2006, at 12:54 PM, jourdan at enib.fr wrote:

 I have a MPC8260 processor card with a Coral-P evaluation board
 (rev 4.0).

 Are you sure?

 The 8260 does not have a PCI bus and the Coral-P
 is a PCI card :-)


Yes indeed my mistake it's a 8270 !




Can't get CoralP drivers to work

2006-05-29 Thread [EMAIL PROTECTED]
 In message 3799.194.3.133.184.1148489640.squirrel at webmail.enib.fr you
 wrote:

 I have a MPC8260 processor card with a Coral-P evaluation board (rev
 4.0).
 My system do not have keyboard nor mouse (i use the serial console).

 I use linux kernel 2.4.25  2.6.9.

 We have instructions on our web site; did you read these?

Yes I did. I use the same jumper configuration (for board rev 4.0) as the
pictures on your web site.

 I'm trying to get the framebuffer driver to work. During the boot the
 driver loads fine but the monitor remains blank (no video signal). If i
 try to `cat /dev/urandom  /dev/fb/0` nothing happens.

 Are you using devfs? Don't! Use /dev/fb0

Without devfs, I have /dev/fb0.

During boot sequence, the driver loads fine (built-in, not module) :
...
MB86290: fb_init called.
MB86290: initialize called.
MB86290: GDC base phys address: 0x8c00
MB86290: GDC base virt address: 0xc500
Console: switching to frame buffer device
MB86290: dmamem: GFP success.
MB86290: fb_init finished
...

In /proc I have :
#  more /proc/fb
0 MB86290

This seems ok to me but I don't have any video signal. My screen remains
blank.

 I compiled an Xserver (Release 6.9), and the x11 drivers for the coralp.
 When I start X, it says that it can not open tty0 (indeed it doesn't
 exists).

 Well, you got an error message (tty0 cannot be opened), you  verified
 that it is valid (tty0 does not exist), so fix the problem...


Without devfs, I have ttys :
# ls -al tty*
crw-rw-rw-1 root root   5,   0 May 29  2006 tty
crw--w--w-1 root 5  4,   0 May 29  2006 tty0
crw-rw1 root 5  4,   1 May 29  2006 tty1
crw-rw1 root 5  4,   2 May 29  2006 tty2
crw-rw1 root 14 4,  64 May 29  2006 ttyS0
crw-rw1 root 14 4,  65 May 29  2006 ttyS1
crw-rw1 root 14 4,  66 May 29  2006 ttyS2
crw-rw1 root 14 4,  67 May 29  2006 ttyS3
crw-rw-rw-1 root 5  3,   0 May 29  2006 ttyp0
crw-rw-rw-1 root 5  3,   1 May 29  2006 ttyp1
crw-rw-rw-1 root 5  3,   2 May 29  2006 ttyp2
crw-rw-rw-1 root 5  3,   3 May 29  2006 ttyp3
crw-rw-rw-1 root 5  3,   4 May 29  2006 ttyp4
crw-rw-rw-1 root 5  3,   5 May 29  2006 ttyp5
crw-rw-rw-1 root 5  3,   6 May 29  2006 ttyp6
crw-rw-rw-1 root 5  3,   7 May 29  2006 ttyp7
crw-rw-rw-1 root 5  3,   8 May 29  2006 ttyp8
crw-rw-rw-1 root 5  3,   9 May 29  2006 ttyp9

Major and minor codes are ok but when I start X :
...
Fatal server error:
xf86OpenConsole: Cannot open /dev/tty0 (No such file or directory)
...

I have to start X from a serial console. There are no keyboard or mouse
connectors on my board. This is maybe the source of my problems ?

Thanks for your help.




Can't get CoralP drivers to work

2006-05-29 Thread [EMAIL PROTECTED]
 In message 1402.194.3.133.184.114040.squirrel at webmail.enib.fr you
 wrote:

 This seems ok to me but I don't have any video signal. My screen remains
 blank.

 What's your boot arguments? Where is  your  console  device,  on  the
 serial port or on the frame buffer?

My boot arguments :
# more /proc/cmdline
console=tty0 console=ttyS1,9600 devfs=mount ip=bootp root=/dev/nfs rw

My console is on the serial port (ttyS1 on SMC2).

 xf86OpenConsole: Cannot open /dev/tty0 (No such file or directory)
 ...

 Did you enable all of the following options in your kernel config?

   CONFIG_FB=y
   CONFIG_DUMMY_CONSOLE=y
   CONFIG_FB_MB86290=y
   CONFIG_FBCON_ADVANCED=y
   CONFIG_FBCON_CFB16=y
   CONFIG_FBCON_FONTS=y
   CONFIG_FONT_8x8=y
   CONFIG_FONT_8x16=y
   CONFIG_VT=y
   CONFIG_VT_CONSOLE=y

 My guess is that CONFIG_VT and/or CONFIG_VT_CONSOLE might be missing.

All those options are enabled.




Help Needed: PHY Driver

2006-05-26 Thread [EMAIL PROTECTED]
Hi all,

In our custom board (MPC8260) there is a child card, which is having the 
PHY chip DM256, and is being memory mapped with the processor via CS 7 and 
they are connected via local bus. 
Now my question is what nessary changes I have to make in linux tree for 
thi purpose.

Thanks in advance.

Souvik Maiti
Tata Consultancy Services Limited
Mailto: s.maiti at tcs.com
Website: http://www.tcs.com
=-=-=
Notice: The information contained in this e-mail
message and/or attachments to it may contain 
confidential or privileged information. If you are 
not the intended recipient, any dissemination, use, 
review, distribution, printing or copying of the 
information contained in this e-mail message 
and/or attachments to it are strictly prohibited. If 
you have received this communication in error, 
please notify us by reply e-mail or telephone and 
immediately and permanently delete the message 
and any attachments. Thank you


-- next part --
An HTML attachment was scrubbed...
URL: 
http://ozlabs.org/pipermail/linuxppc-embedded/attachments/20060526/94819e23/attachment.htm
 


Can't get CoralP drivers to work

2006-05-24 Thread [EMAIL PROTECTED]
Hello

I have a MPC8260 processor card with a Coral-P evaluation board (rev 4.0).
My system do not have keyboard nor mouse (i use the serial console).

I use linux kernel 2.4.25  2.6.9.

For kernel 2.4.25 :

I'm trying to get the framebuffer driver to work. During the boot the
driver loads fine but the monitor remains blank (no video signal). If i
try to `cat /dev/urandom  /dev/fb/0` nothing happens.

I compiled an Xserver (Release 6.9), and the x11 drivers for the coralp.
When I start X, it says that it can not open tty0 (indeed it doesn't
exists).

For kernel 2.6.9 :

When I start X, it complains about virtual terminals but doesn't stop. It
loads the x11_mb86290 driver then stop because it can't find a valid
framebuffer driver. Is it mandatory to have the mb86290fb driver worknig
in order to get the x11_mb86290 driver ?

I guess it just a configuration problem but I can figure it out. I added
the support for virtual terminals in my kernel (X seems to need it) but I
don't have ttyN entries in /dev. If I add them manually, they can not be
opened.

Thanks for your help.




How to change the Magic number

2006-05-22 Thread [EMAIL PROTECTED]
Hi ALL,

 I have a specific requirement to change the Magic number of the linux
kernel in my embedded system.

 I cound see the Magic number is defined in U-boot files:
 1.include/image.h:#define IH_MAGIC0x27051956
 2.cpu/ppc4xx/start.S: .long   0x27051956

  So i can modify in u-boot to make it compatible to my Kernel (i am using
montavista linux version 2.4.20), but i am not able to see this kindof
info anywhere in the kernel source files.
If anyone knows how the linux magic number is generated and what are the
files
 need modifications inorder to change magic number please let me know.


Thnaks in Advance,
Nagi





To connect USB Bluetooth Dongle with embedded linux platform MPC 5200 Lite

2006-05-19 Thread [EMAIL PROTECTED]

Hello,

We are in need of re-building Linux kernel 2.4.25 to support USB
Bluetooth Dongle for the embedded platform MPC 5200 Lite.

With the new kernel running and on connecting USB Bluetooth Dongle to
icecube (MPC5200 Lite EVM) running embedded Linux from Denx, error USB
device not accepting new address. We would appreciate any kind of help
towards solving the issue.

We added USB and Bluetooth support with the configurations available in
the file icecube_5200_defconfig and rebuild the kernel using 'make
uImage'. For USB setting, we have referred  icecube_5200_CoralPdefconfig
file. Kindly help us in identifying the reason for the issue.

Please see the boot up log as follows:


..




U-Boot 1.1.3 (May 20 2005 - 18:29:54)




CPU:   MPC5200 v1.2 at 396 MHz

   Bus 132 MHz, IPB 66 MHz, PCI 33 MHz

Board: Motorola MPC5200 (IceCube)

I2C:   85 kHz, ready

DRAM:  64 MB

FLASH: 16 MB

PCI:   Bus Dev VenId DevId Class Int

00  1a  1057  5803  0680  00

In:serial

Out:   serial

Err:   serial

Net:   FEC ETHERNET

IDE:   Bus 0: OK

  Device 0: Model: ST340015A Firm: 3.15 Ser#: 5LAMQLQ6

Type: Hard Disk

Capacity: 38166.6 MB = 37.2 GB (78165360 x 512)

  Device 1: not available




Type run flash_nfs to mount root filesystem over NFS




Hit any key to stop autoboot:  0

## Booting image at fff0 ...

   Image Name:   Linux PPC MPC5200 2.4

   Image Type:   PowerPC Linux Kernel Image (gzip compressed)

   Data Size:931083 Bytes = 909.3 kB

   Load Address: 

   Entry Point:  

   Verifying Checksum ... OK

   Uncompressing Kernel Image ... OK

Memory BAT mapping: BAT2=64Mb, BAT3=0Mb, residual: 0Mb

Linux version 2.4.25 (root at M4-110822) (gcc version 3.3.3 (DENX ELDK
3.1.1 3.3.3-10)) #1 Wed May 17 19:02:37 IST 2006

On node 0 totalpages: 16384

zone(0): 16384 pages.

zone(1): 0 pages.

zone(2): 0 pages.

Kernel command line: root=/dev/hda1 rw
ip=10.114.105.162:10.114.105.41:10.114.105.41:255.255.255.0:icecube:eth0
:off panic=1

Calibrating delay loop... 263.78 BogoMIPS

Memory: 62088k available (1564k kernel code, 524k data, 76k init, 0k
highmem)

Dentry cache hash table entries: 8192 (order: 4, 65536 bytes)

Inode cache hash table entries: 4096 (order: 3, 32768 bytes)

Mount cache hash table entries: 512 (order: 0, 4096 bytes)

Buffer cache hash table entries: 4096 (order: 2, 16384 bytes)

Page-cache hash table entries: 16384 (order: 4, 65536 bytes)

POSIX conformance testing by UNIFIX

PCI: Probing PCI hardware

PCI: Cannot allocate resource region 0 of device 00:1a.0

Linux NET4.0 for Linux 2.4

Based upon Swansea University Computer Society NET3.039

Initializing RT netlink socket

Starting kswapd

Journalled Block Device driver loaded

JFFS2 version 2.2. (C) 2001-2003 Red Hat, Inc.

pty: 256 Unix98 ptys configured

ttyS0 on PSC1

ttyS1 on PSC2

ttyS2 on PSC3

RAMDISK driver initialized: 16 RAM disks of 16384K size 1024 blocksize

loop: loaded (max 8 devices)

Uniform Multi-Platform E-IDE driver Revision: 7.00beta4-2.4

ide: Assuming 33MHz system bus speed for PIO modes; override with
idebus=xx

Port Config is: 0x11050004

ipb=66MHz, set clock period to 15

GPIO config: 11050004

ATA invalid: 0080

ATA hostcnf: 0300

ATA pio1   : 100a0a00

ATA pio2   : 02040600

XLB Arb cnf: a366

mpc5xxx_ide: Setting up IDE interface ide0...

ATA DMA task: 5

Probing IDE interface ide0...

hda: ST340015A, ATA DISK drive

hda: Setting UDMA 2 timings

hda: Setting PIO 4 timings

ide0 at 0xf0003a60-0xf0003a67,0xf0003a5c on irq 45

hda: attached ide-disk driver.

hda: host protected area = 1

hda: 78165360 sectors (40021 MB) w/2048KiB Cache, CHS=77545/16/63,
UDMA(33)

Partition check:

 hda:7Unhandled interrupt 1a, disabled

 hda1 hda2

Icecube Bank 0: Found 1 x8 devices at 0x0 in 8-bit mode

Icecube Bank 0: Found 1 x8 devices at 0x80 in 8-bit mode

 Amd/Fujitsu Extended Query Table at 0x0040

Icecube Bank 0: CFI does not contain boot bank location. Assuming top.

number of CFI chips: 2

cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.

Icecube flash bank 0: Using static image partition definition

Creating 5 MTD partitions on Icecube Bank 0:

0x-0x0080 : Spare

0x0080-0x0090 : kernel

0x0090-0x00c0 : initrd

0x00c0-0x00f0 : jffs

0x00f0-0x0100 : Firmware

usb.c: registered new driver usbdevfs

usb.c: registered new driver hub

host/usb-ohci.c: USB OHCI at membase 0xf0001000, IRQ 44

host/usb-ohci.c: usb-0, Built-In ohci

usb.c: new USB bus registered, assigned bus number 1

hub.c: USB hub found

hub.c: 2 ports detected

usb.c: registered new driver hiddev

usb.c: registered new driver hid

hid-core.c: v1.8.1 Andreas Gal, Vojtech Pavlik vojtech at suse.cz

hid-core.c: USB HID support drivers

NET4: Linux TCP/IP 1.0 for NET4.0

eth0: Phy @ 0x0, type LXT971 (0x001378e2)

IP Protocols: ICMP, UDP, 

Need help to configure DNS on the Embedded system

2006-05-16 Thread [EMAIL PROTECTED]
Hi All,

 I am working on implementing wget future on my Embedded device.
 So i downloaded free wget sources (version 1.10.2) and compiled for my
system.
My system is walnut based one(IBM405EP processor). But wget is working if
i specify IP when i try to download some file from my support site(i gave
IP of support site), but when i specify like www.support.netenrich.com, it
is not able to resolve.

 I Modified /etc/resolve.conf, but still it says unable to resolve .

 I am using MontaVista Linux Kernel 2.4.20.

can some one let me know how to configure the DNS on any embedded systems.
I have gone through some of the meterial available on the net, but could
not resolve it.

Thanks in Advance,
Nagi Reddy.C




Help Needed: input overrun(s)

2006-05-12 Thread [EMAIL PROTECTED]
Thank you very much for your help. Actually in our driver we are using all 
128 channels of MCC1. So we have relocated the dpram for the uart and 
ethernet to the dpram 3 and freed the space for the MCC1 accordingly. We 
have gone through our allocations, nowhere it's conflicting. 
In your case is your driver able to transmit and receive data correctly? 
In our case whenever we load the driver the console output gets crambbled. 
Through debugging we have identified that the cause of it may be due to 
the configuration of L1RSYNC, L1TSYNC, RCLK and TCLK. Can these 
configuration cause this ttyS overrun? 
Also when the driver is loaded we are not getting any interrupts. We are 
writting to the Tx buffer through a user space application, but that is 
not resulting in any tx interrupts. Can you help me regarding this.
Also I will be grateful to if let me know which kernel version of linux 
you are using and the flow of initialization you are using in your driver.
Looking forward to your help.

Thanks and regards,
Souvik Maiti
Tata Consultancy Services Limited
Mailto: s.maiti at tcs.com
Website: http://www.tcs.com



Rune Torgersen runet at innovsys.com 
05/11/2006 07:44 PM

To
s.maiti at tcs.com
cc
linuxppc-embedded at ozlabs.org, Stevan Ignjatovic stevan at iritel.com
Subject
RE: Help Needed: input overrun(s)






 From: s.maiti at tcs.com [mailto:s.maiti at tcs.com] 
 Thanks very much for your reply. It's seems you have already 
 developed the MCC driver. Are you using channels 32 to 96? 
 Have you made any changes in the dp ram allocation for uart 
 or ethernet driver? 
 Please help me... 

We are using every other channel from 32 to 96 on both MCC's as SS7
receivers.
We did not have to do any relocations for UART or ethernet. 
Ethernet uses upper DPRAM (above 0x8000) and uarts use the first 128
bytes.

We statically allocate DPRAM with cpm_alloc_fixed. MCC1 use 0x0800 to
0x17ff
MCC2 use 0x2800 to 0x37ff. Extra param RAM is allocated with cpm_alloc
and is allocated as 256*8 bytes, and shared between MCC1 and 2.

All BD and interrupt tables are in main memory.

ForwardSourceID:NT6DD6 
=-=-=
Notice: The information contained in this e-mail
message and/or attachments to it may contain 
confidential or privileged information. If you are 
not the intended recipient, any dissemination, use, 
review, distribution, printing or copying of the 
information contained in this e-mail message 
and/or attachments to it are strictly prohibited. If 
you have received this communication in error, 
please notify us by reply e-mail or telephone and 
immediately and permanently delete the message 
and any attachments. Thank you





Help Needed: input overrun(s)

2006-05-11 Thread [EMAIL PROTECTED]
Thanks very much for your reply. It's seems you have already developed the 
MCC driver. Are you using channels 32 to 96? Have you made any changes in 
the dp ram allocation for uart or ethernet driver?
Please help me...

Thanks and regards,
Souvik Maiti
Tata Consultancy Services Limited
Mailto: s.maiti at tcs.com
Website: http://www.tcs.com



Rune Torgersen runet at innovsys.com 
05/10/2006 08:45 PM

To
Stevan Ignjatovic stevan at iritel.com, s.maiti at tcs.com
cc
linuxppc-embedded at ozlabs.org
Subject
RE: Help Needed: input overrun(s)






 -Original Message-
 From: Stevan Ignjatovic
 Hello,
 
  console we are receiving a print ttyS: 1 input overrun(s) 
 along with 
  other prints of the driver and resulting in scrambled output. 
  Can anyone suggest why this is happening? Is the driver 
 affecting the uart 
  driver?
 
 As far as UART driver is concerned, it could be affected if 
 you did not
 carefully allocate some resources. Are you using MCC1 or MCC2? Channel
 specific parameters of MCC1 (channels 0-127) are at the 
 beginning of the
 DPRAM (channel CH_NUM at address 64*CH_NUM). UART driver (as well as
 ethernet driver) allocates its buffer descriptors with
 m8260_cpm_dpalloc. I think that allocating with this function 
 starts at
 the beginning of the DPRAM, so you might have overwritten 
 UART's buffer
 descriptors. So, use MCC2 if you can. If you use some BRGs in your MCC
 driver you should check that as well. 

We have a MCC driver that we see the same happening on. It only occurs
under heavy load (top sows us usig 20-40 % cpu in interrupt).
I am pretty confident that we are not overwriting uart DPRAM. (MCC1 only
uses the middle 64 channels, skipping over the first 32 where the
conflict witht he UARTS are)

I have not seen it corrupt anything, so we have more or less ignored it.
Our theory is that it happens when the CPM gets overloaded.
It would be nice to actually fix it though

ForwardSourceID:NT6D1A 
=-=-=
Notice: The information contained in this e-mail
message and/or attachments to it may contain 
confidential or privileged information. If you are 
not the intended recipient, any dissemination, use, 
review, distribution, printing or copying of the 
information contained in this e-mail message 
and/or attachments to it are strictly prohibited. If 
you have received this communication in error, 
please notify us by reply e-mail or telephone and 
immediately and permanently delete the message 
and any attachments. Thank you


-- next part --
An HTML attachment was scrubbed...
URL: 
http://ozlabs.org/pipermail/linuxppc-embedded/attachments/20060511/0de4b416/attachment.htm
 


Help Needed: input overrun(s)

2006-05-10 Thread [EMAIL PROTECTED]
Hi all,

I am currently involve in development of Multi-Channel Controller (MCC) 
driver for MPC8260 processor. Whenever we are loading the driver, on the 
console we are receiving a print ttyS: 1 input overrun(s) along with 
other prints of the driver and resulting in scrambled output. 
Can anyone suggest why this is happening? Is the driver affecting the uart 
driver? We have seen the memory map thoroughly, there is no issue of 
memory conflict. Any help in this regards, I will be grateful.

Thnaks and regards,
Souvik Maiti
Tata Consultancy Services Limited
Mailto: s.maiti at tcs.com
Website: http://www.tcs.com
=-=-=
Notice: The information contained in this e-mail
message and/or attachments to it may contain 
confidential or privileged information. If you are 
not the intended recipient, any dissemination, use, 
review, distribution, printing or copying of the 
information contained in this e-mail message 
and/or attachments to it are strictly prohibited. If 
you have received this communication in error, 
please notify us by reply e-mail or telephone and 
immediately and permanently delete the message 
and any attachments. Thank you





Linux 2.4 devel on ML403 board : problem with prompt

2006-04-27 Thread [EMAIL PROTECTED]
Hi,

I am trying to port linux 2.4 devel to ML403. I have used advices from this
mailing list and some websites and finally got to th epoint where
everything seems find except I cannot get the boot prompt. I have used
busybox 1.0.1 and it seems init runs well, rcS runs well and afterr that I
do not get the prompt. I have activated the askfirst line in inittab and I
am asked to hit enter to go further but all I get is, automatically,
without hitting the keyboard, is character X. I do not seem to have any
echo. I have the console node defined in /dev. Has anyone an idea as to
what I have done wrong ?

Best regards,

JF Hasson



#
  This e-mail and any attached documents may contain confidential or 
proprietary information. If you are not the intended recipient, please advise 
the sender immediately and delete this e-mail and all attached documents from 
your computer system. Any unauthorised disclosure, distribution or copying 
hereof is prohibited. 

  Ce courriel et les documents qui y sont attaches peuvent contenir des 
informations confidentielles. Au cas ou vous ne seriez pas le destinataire de 
ce courriel, vous etes prie d'en informer l'expediteur immediatement et de le 
detruire  ainsi que tous les documents attaches de votre systeme informatique. 
Toute divulgation, distribution ou copie du present courriel et des documents 
attaches sans autorisation prealable de son emetteur est interdite. 
#



init issue on linux 2.4 devel and busybox

2006-04-11 Thread [EMAIL PROTECTED]
Hi,

I have been working on porting linux 2.4 devel to the ml403 board. It boots
well and then it goes on the CompactFlash to get the root filesystem where
the executables are from busybox. The init program is found and launches
well however the message is that init.d/rcS can't be found. I have looked
up my inittab file and the first line is ::sysinit:/etc/init.d/rcS. I do
not understand why init can't find the rcS file when it seems correct in
inittab and I have checked that the file rcS is in /etc/init.d. Does anyone
have an idea as to what might be wrong ?

Thanks,

JF Hasson



#
  This e-mail and any attached documents may contain confidential or 
proprietary information. If you are not the intended recipient, please advise 
the sender immediately and delete this e-mail and all attached documents from 
your computer system. Any unauthorised disclosure, distribution or copying 
hereof is prohibited. 

  Ce courriel et les documents qui y sont attaches peuvent contenir des 
informations confidentielles. Au cas ou vous ne seriez pas le destinataire de 
ce courriel, vous etes prie d'en informer l'expediteur immediatement et de le 
detruire  ainsi que tous les documents attaches de votre systeme informatique. 
Toute divulgation, distribution ou copie du present courriel et des documents 
attaches sans autorisation prealable de son emetteur est interdite. 
#



Accessing physical memory

2006-04-08 Thread [EMAIL PROTECTED]
Quoting Antonio Di Bacco antonio.dibacco at aruba.it:

 How can I access the physical memory? Can I MMAP for example /dev/mem? Is
 there a simpler way?


Hi Antonio,

What would you like to do? If you just want some arbitrary
page of memory, then look at the 'nopage' example in Rubini,
or ask me and I'll send you some code.

If you want a specific memory location, then you'll need
to claim and ioremap the memory, and again, I can give you
some code.

So, explain a little more and I can help.

Dave



This message was sent using IMP, the Internet Messaging Program.





Porting new MPC5200 based Board to linux kernel

2006-04-06 Thread [EMAIL PROTECTED]
 
Hi Hans,
 Hi Amir,
 
 Which MEN board is this? The EM01(A) or the PP01. 
I am using EM01A

 We are using the EM01A and have linux running.
 We always got reasonable fast response from the MEN support service.
 
 If this does not work, I could send you my config file.
 

That will be nice from you to send me that.

Is that config file what I need to get linux running, didn't I need any
board special code. Like tqm5xxx.c etc. which located on arch\ppc\platforms

Thanks,
-Amir

 Hans 
 
 On Thu, 6 Apr 2006, Amir Bukhari wrote:
 
  We have a MEN mpc5200 base board and we want to get linux 
 running on it.
  MEN has a bios and can load linux kernel and passing to 
 parameters. I 
  have tried to configure kernel manualy but without success. 
 MEN bios 
  load kernel, but nothing happend after that, I don't see 
 anything on console.
  
  I am new in this area, I need a first working kernel so that I can 
  implement other part.
  I will need some guidnes.
  Any help will be appretiated!!
  
  -Amir
  ___
  Linuxppc-embedded mailing list
  Linuxppc-embedded at ozlabs.org
  https://ozlabs.org/mailman/listinfo/linuxppc-embedded
  
 




linux 2.4 on ml403

2006-03-30 Thread [EMAIL PROTECTED]
Hi,

I have been trying to run a linux 2.4 devel from the montavista site on an
ml403 following among other things some advice from BYU website. I managed
to have Linux start on the ml403 after downaloading it with XMD but then I
have an error message :

Xilinx Virtex-II Pro port (C) 2002 MontaVista Software, Inc.
(source at mvista.com)
On node 0 totalpages: 16384
zone(0): 16384 pages.
zone(1): 0 pages.
zone(2): 0 pages.
Kernel command line: console=ttyS0,9600 root=/dev/xsysace/disc0/part3 rw
Xilinx INTC #0 at 0x4120 mapped to 0xFDFFE000
Calibrating delay loop... 99.73 BogoMIPS
Oops: kernel access of bad area, sig: 11
NIP:  XER: 005E LR:  SP: C0182E50 REGS: c0182da0 TRAP:
0400
   Not tainted
MSR: 1030 EE: 0 PR: 0 FP: 0 ME: 1 IR/DR: 11
TASK = c0181020[0] 'swapper' Last syscall: 0
last math  last altivec 
GPR00:  C0182E50 C0181020 C0181020  0001 C0181120
0048
GPR08: 0048   0017 2422 CC60 

GPR16:     1032 00182ED0 
C000
GPR24: C019DDB0 0001 C01A C01A 044AA234 0001 
C0181020
Call backtrace:
 C001C27C C0005F30 C00047C0 C0196064 C01943B8 C019154C
C0002328
Kernel panic: Aiee, killing interrupt handler!
In interrupt handler - not syncing
 0Rebooting in 180 seconds..

Does anyone have an idea as to what is wrong ? How could I investigate it ?
I have turned on the xmon option while building the kernel and it indicates
I have a kernel stack overflow. If it could help.

Best regards,

JF H



#
  This e-mail and any attached documents may contain confidential or 
proprietary information. If you are not the intended recipient, please advise 
the sender immediately and delete this e-mail and all attached documents from 
your computer system. Any unauthorised disclosure, distribution or copying 
hereof is prohibited. 

  Ce courriel et les documents qui y sont attaches peuvent contenir des 
informations confidentielles. Au cas ou vous ne seriez pas le destinataire de 
ce courriel, vous etes prie d'en informer l'expediteur immediatement et de le 
detruire  ainsi que tous les documents attaches de votre systeme informatique. 
Toute divulgation, distribution ou copie du present courriel et des documents 
attaches sans autorisation prealable de son emetteur est interdite. 
#



PPC405EP and Abatron BDI help

2006-03-28 Thread [EMAIL PROTECTED]

I'm not sure if this forum can help me, but perhaps someone has experience
with
using an Abatron BDI2000 to control an AMCC PPC405EP evaluation board. I am
having problems with getting the BDI to access devices on the external bus.
I have verifed the EBC settings are correct by comparing them to the values
set by Uboot 1.1.2 (Jun 2, 2005 Rev B) running on the board.

I have used the base bubinga.cfg , Stefan Roese's configuration file, sent
to me
from someone on this mailing list. I modified the configuration to match
the external
device configuration of the AMCC PPC405EP evaluation board.

Any ideas as to why I cannot access devices on the external bus using the
BDI,
but Uboot can?


 Jeff Fellin
RFL Electronics
Jeff.Fellin at rflelect.com
973 334-3100, x 327




Loopback configurations for SCC, FCC in MPC8247

2006-03-17 Thread [EMAIL PROTECTED]

 Hi all,

I am using MPC8247. I am using FCC0, FCC1, SCC3 and SCC4 in Ethernet mode. I 
want to enable local loopback in FCC and SCC. I tried in the following 
combinations of registers for SCC

   case ETH_LOOPBK_ENBL:
printk(%s, ETH_LOOPBK_ENBL\n,__FUNCTION__);



/* ENABLE the LOOP back by setting the 24th and 25th bits
 * as 0 and 1 in GSMRL */
cep-sccp-scc_gsmrl |= SCC_GSMRL_DIAG_LOOP;
cpm2_immr-im_cpmux.cmx_scr = ~CMX_CLK_MASK;
cpm2_immr-im_cpmux.cmx_scr |= CMX_LPCLK_ROUTE;
//cep-sccp-scc_gsmrh |= (SCC_GSMRH_CDS | SCC_GSMRH_CTSS);



/* Configure PSMR for enabling- Promiscuos mode, simultaneous Tx, Rx
 * and Full duplex mode */
//cep-sccp-scc_psmr |= (SCC_PSMR_PRO | SCC_PSMR_LPB | SCC_PSMR_FDE);
cep-sccp-scc_psmr |= (SCC_PSMR_PRO | SCC_PSMR_FDE);
return 0;



  case ETH_LOOPBK_DSBL:
printk(%s, ETH_LOOPBK_DSBL\n,__FUNCTION__);
/* Disable the LOOP back and revert back to normal operation by
 * setting the 24th and 25th bits as 0 and 0 in GSMRL */
cep-sccp-scc_gsmrl = ~SCC_GSMRL_DIAG_LOOP;
cpm2_immr-im_cpmux.cmx_scr = ~CMX_CLK_MASK;
cpm2_immr-im_cpmux.cmx_scr |= CMX_CLK_ROUTE;

   //cep-sccp-scc_gsmrh = ~(SCC_GSMRH_CDS | SCC_GSMRH_CTSS);



/* Revert PSMR settings */
//  cep-sccp-scc_psmr = ~(SCC_PSMR_PRO | SCC_PSMR_LPB | SCC_PSMR_FDE);
cep-sccp-scc_psmr = ~(SCC_PSMR_PRO | SCC_PSMR_FDE);
return 0;

Following combinations for FCC

   case ETH_LOOPBK_ENBL:
/* Enable loop back by setting the diag bits in GFMR. Promiscus mode is
 * enabled by setting the FPSMR bit */
cep-fccp-fcc_gfmr  |= FCC_GFMR_DIAG_LE;
cep-fccp-fcc_fpsmr |= (FCC_PSMR_PRO | FCC_PSMR_FDE | FCC_PSMR_LPB);
printk(%s[FCC %2d]: Local Loopback Enabled  [GFMR - 0x%08x, FPSMR - 
0x%08x]\n, dev-name, cep-fip-fc_fccnum, cep-fccp-fcc_gfmr, 
cep-fccp-fcc_fpsmr);

return 0;



  case ETH_LOOPBK_DSBL:
/* Disable loopback and promiscus mode */
cep-fccp-fcc_gfmr  = ~FCC_GFMR_DIAG_ALE;
cep-fccp-fcc_fpsmr = ~(FCC_PSMR_PRO | FCC_PSMR_FDE | FCC_PSMR_LPB);
printk(%s[FCC %2d]: Local Loopback Disabled [GFMR - 0x%08x, FPSMR - 
0x%08x]\n, dev-name, cep-fip-fc_fccnum, cep-fccp-fcc_gfmr, 
cep-fccp-fcc_fpsmr);

return 0;



With the above cases the loopback is not enabling. Can any one suggest me the 
register configurations for eabling loopback in FCC and SCC.

Thanks in advance

srideep




The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments.

WARNING: Computer viruses can be transmitted via email. The recipient should 
check this email and any attachments for the presence of viruses. The company 
accepts no liability for any damage caused by any virus transmitted by this 
email.

www.wipro.com
-- next part --
An HTML attachment was scrubbed...
URL: 
http://ozlabs.org/pipermail/linuxppc-embedded/attachments/20060317/a6d801a2/attachment.htm
 


Where to define IO ports

2006-03-14 Thread [EMAIL PROTECTED]
Hi Ed,

I think you should change the u-boot.
 - include/configs/IceCube.h
 - board/icecube/icecube.h

1st, put a constant like (CFG_CS1_START, CFG_CS1_STOP, CFG_CS1_CFG) to
IceCube.h.
And then, write some code to configure registers like (MPC5XXX_CS0_START,
MPC5XXX_CS0_STOP, MPC5XXX_CS0_CFG).

After that, you will be able to use ioremap() in your driver.

We have added a peripheral to the LocalPlus bus, and I'm trying to figure
Is this address kernel space?
If this is so, you have to change TEXT_BASE in u-boot's Makefile and etc.

Akihiro Iseno

=
 Akihiro Iseno iseno at tomen-ele.co.jp
   ?TOMEN Electronics Corp.
  System Engineering Dept. II
=

-Original Message-
From: Edward Jubenville [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 14, 2006 1:41 PM
To: linuxppc-embedded at ozlabs.org
Subject: Where to define IO ports

We are building a board similar to the Freescale Lite5200 (IceCube) board,
using ELDK 3.0 with Linux 2.4.25.

We have added a peripheral to the LocalPlus bus, and I'm trying to figure
out how to modify the kernel startup code to define a memory address range
and generate the proper chip select signal.

Can someone point me to where that sort of thing is done in the kernel
source?

Ed

___
Linuxppc-embedded mailing list
Linuxppc-embedded at ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-embedded



MPC8540 experience

2006-03-14 Thread [EMAIL PROTECTED]
Hallo Herr Koller,
ich habe heute ihre EMail 
(http://ozlabs.org/pipermail/linuxppc-embedded/2004-October/015851.html) 
gelesen. Hatten sie bereits Erfolg?
Ich habe ein ?hnliches Problem. Wir beutzen bei uns ebenfalls einen PPC und 
haben das Problem mit Big und Littel-Endian im XServer.

Mit freundlichem Gru?
 
Roland  Gr?ber   
   
BIZERBA GmbH  Co. KG
Abt.: PD-B-S   (Software-Entwicklung Basissysteme)
Postfach 10 01 64 
D-72301 Balingen

Telefon   +49-(0)7433-12-  23 78
Telefax   +49-(0)7433-12-5 23 78

Email groer at bizerba.de






Yosemite board ala, PPC405EP

2006-03-08 Thread [EMAIL PROTECTED]

I have been using an Albatron BDI for a PPC405GP board in a project.
According to the documentation I've read the Yosemite board is identical
register wise to the 405GP, except for two sets of EMAC registers.

My problem is when I use the Albatron BDI using the register definitions
for the 405GP, the BDI cannot communicate with the 405EP.

Anyone have experience with usingg the BDI for the PPC 405EP?

Thank you in advance for you help.
Jeff Fellin
RFL Electronics
Jeff.Fellin at rflelect.com
973 334-3100, x 327




Yosemite board ala, PPC405EP

2006-03-08 Thread [EMAIL PROTECTED]

Sorry, I was confused. I have a PPC405EP. not a Yosemite board.

Jeff Fellin
RFL Electronics
Jeff.Fellin at rflelect.com
973 334-3100, x 327



   
  David Hawkins 
   
  dwh at ovro.caltechTo:   Jeff.Fellin at 
rflelect.com  
  .educc:   linuxppc-embedded at 
ozlabs.org  
   Subject:  Re: Yosemite board 
ala, PPC405EP  
  03/08/2006 15:27  
   

   

   




Jeff.Fellin at rflelect.com wrote:
 I have been using an Albatron BDI for a PPC405GP board in a project.
 According to the documentation I've read the Yosemite board is identical
 register wise to the 405GP, except for two sets of EMAC registers.

 My problem is when I use the Albatron BDI using the register definitions
 for the 405GP, the BDI cannot communicate with the 405EP.

 Anyone have experience with usingg the BDI for the PPC 405EP?

Hey Jeff,

Can you please clarify;

Are you using a Yosemite board (440EP) or are you using a 405EP board
(which is *not* the Yosemite board)?

If you are using the Yosemite board, then I have one here,
and my BDI2000 just arrived. I haven't had a chance to test
the BDI2000, but I can let you know the results when I do.

Dave







help reqd

2006-03-07 Thread [EMAIL PROTECTED]
Hi all ,
I have  a driver and when i am doing insmod the driver its giving 
unresolved symbol.

insmod: unresolved symbol copy_to_user
insmod: unresolved symbol down
insmod: unresolved symbol up
insmod: unresolved symbol copy_from_user

Can anyone suggest me where i am doing wrong.
I am using linux-2.4.25 kernel from denx and my board is a 
customboard(mpc8260 processor).
This is a upm driver and built as a loadable module.

Please help me in this regard
Thanks in advance.
Regards

Prabha J.
Tata Consultancy Services Limited
Mailto: prabha.j at tcs.com
Website: http://www.tcs.com


Notice: The information contained in this e-mail message and/or attachments to 
it may contain confidential or privileged information. If you are not the 
intended recipient, any dissemination, use, review, distribution, printing or 
copying of the information contained in this e-mail message and/or attachments 
to it are strictly prohibited. If you have received this communication in 
error, please notify us by reply e-mail or telephone and immediately and 
permanently delete the message and any attachments. Thank you

-- next part --
An HTML attachment was scrubbed...
URL: 
http://ozlabs.org/pipermail/linuxppc-embedded/attachments/20060307/2c2075a8/attachment.htm
 


help reqd

2006-03-07 Thread [EMAIL PROTECTED]
Possible answers: Module versioning turned on in kernel?  insmod module
format not compatible with kernel ?  Try modprobe which

checks the dependencies.  These calls are kernel space to user space
copy operations. Top 3GB to below 3GB on most systems

unless it's a 2GB/2GB split between user/kernel space.

 

--

Atul



From: [EMAIL PROTECTED]
[mailto:linuxppc-embedded-bounces+atul.sabharwal=tek.com at ozlabs.org] On
Behalf Of prabha.j at tcs.com
Sent: Tuesday, March 07, 2006 3:17 AM
To: linuxppc-embedded at ozlabs.org
Subject: help reqd

 


Hi all , 
I have  a driver and when i am doing insmod the driver its giving
unresolved symbol. 

insmod: unresolved symbol copy_to_user 
insmod: unresolved symbol down 
insmod: unresolved symbol up 
insmod: unresolved symbol copy_from_user 

Can anyone suggest me where i am doing wrong. 
I am using linux-2.4.25 kernel from denx and my board is a
customboard(mpc8260 processor). 
This is a upm driver and built as a loadable module. 

Please help me in this regard 
Thanks in advance. 
Regards 

Prabha J.
Tata Consultancy Services Limited
Mailto: prabha.j at tcs.com
Website: http://www.tcs.com

 
 
Notice: The information contained in this e-mail message and/or
attachments to it may contain confidential or privileged information. If
you are not the intended recipient, any dissemination, use, review,
distribution, printing or copying of the information contained in this
e-mail message and/or attachments to it are strictly prohibited. If you
have received this communication in error, please notify us by reply
e-mail or telephone and immediately and permanently delete the message
and any attachments. Thank you
 
-- next part --
An HTML attachment was scrubbed...
URL: 
http://ozlabs.org/pipermail/linuxppc-embedded/attachments/20060307/c4189dfb/attachment.htm
 


help reqd

2006-03-07 Thread [EMAIL PROTECTED]
 insmod: unresolved symbol copy_to_user 
 insmod: unresolved symbol down 
 insmod: unresolved symbol up 
 insmod: unresolved symbol copy_from_user 

you have to include asm/uacces.h

Including a header file is only needed for compilation.  This is a
dynamic link/load error.  Unless the header file is putting some
information about the kernel link/load method.  Without module
versioning, you should be able 
To load any driver binary compiled for a given kernel version.  Any
exceptions to this concept ?

--
Atul





Different Page Size Support in Linux on PPC870

2006-03-03 Thread [EMAIL PROTECTED]
On PPC870, does the kernel only support 4K pages?  To reduce the size of
page table (level  level 2), would 8M page be a better choice on a
custom 
board? It's a no swap configuration. Memory load is critical in our
design on this project.

Comments?

Thanks,

Atul





Linux on PPC

2006-03-02 Thread [EMAIL PROTECTED]
You can easily migrate to linux environment.

 1. You can use u-boot as a boot loader.
 2. You can choose any standard linux kernel but you may have to do some
RD on it to port to your board.
 Insted you can buy Montavista Linux, so that you can get support also.

 And also there are many mailing lists where yo ucan get tremendous help
on linux.


Thanks,
Nagi



 Hi,

 We have a customized board running on IBM PPC 750. The customer boot
 loader
 is provided by the vendor.
 Also, the vendor has provided the BSP on vxworks.

 We are planning to use linux on this processor. What are the steps
 involved
 in booting the board with linux.
 Which linux to be used and what are the procedures involved. I dint come
 across a documents which had these details.

 I am new to the linux front. So any help is highly appreciated.

 thanks
 ___
 Linuxppc-embedded mailing list
 Linuxppc-embedded at ozlabs.org
 https://ozlabs.org/mailman/listinfo/linuxppc-embedded





wanted HDLC driver source for 8247

2006-02-28 Thread [EMAIL PROTECTED]

 
 Hi,
  I require the HDLC driver for 8247. I got your address on the web, 
and learnt that your were looking for the same. If you have the drivers can you 
please share the same. I require this urgently.

regards,
Gurubaran .T





The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments.

WARNING: Computer viruses can be transmitted via email. The recipient should 
check this email and any attachments for the presence of viruses. The company 
accepts no liability for any damage caused by any virus transmitted by this 
email.

www.wipro.com
-- next part --
An HTML attachment was scrubbed...
URL: 
http://ozlabs.org/pipermail/linuxppc-embedded/attachments/20060228/1f12182e/attachment.htm
 


Looping SPIMISO and SPIMOSI pins

2006-02-23 Thread [EMAIL PROTECTED]
What could happen if I loop SPIMISO and SPIMOSI on my board expansion 
connector? I think I should receive the messages I send on the SPI bus. SPI is  
full duplex?

Best regards,
Antonio.




u-boot 1.1.4 using two fecs

2006-02-22 Thread [EMAIL PROTECTED]
Is it possible in your opinion to use both the fecs on a board in the u-boot?
I read something saying only one can be the active one.

Best regards,
Antonio.




module_init macro seems not to work

2006-02-16 Thread [EMAIL PROTECTED]
If I use something like:
module_init(cpm_timer_init);

cpm_timer_init is not called when I load the module.

I have to call cpm_timer_init inside init_module() .

Bye,
Antonio.




PEMICRO CABLEPPC and GDB

2006-02-16 Thread [EMAIL PROTECTED]
I have bought a PE MICRO CABLEPPC (parallel bdm wiggler). Someone was 
successful using it with Linux? Is there a driver for linux? 

Bye,
Antonio.




no sys folder under /proc

2006-02-15 Thread [EMAIL PROTECTED]
I discovered that klogd is not running. This could be a problem. Is it 
mandatorty to run it to see kernel messages? 

Thank you for your help,
bye.

-- Initial Header ---

From  : Kumar Gala galak at kernel.crashing.org
To  : dibacco at inwind.it dibacco at inwind.it
Cc  : 
Date  : Wed, 15 Feb 2006 12:39:12 -0600 (CST)
Subject : Re: no sys folder under /proc







 On Wed, 15 Feb 2006, dibacco at inwind.it wrote:
 
  Syslogd is running and it is logging things like the start of busybox for 
  example. The printk doesn't appear in the messages file.
  
 
 Does it appear in dmesg?
 
 You may need to config syslogd to capture the data.
 
 - kumar
 
 




no printk messages in /var/log/messages

2006-02-15 Thread [EMAIL PROTECTED]
Hi,

I'm running klogd and syslogd from BusyBox 1.1.0. Some messages are logged to 
/var/log/messages but no kernel messages. I'm printing KERN_ERR but also 
KERN_EMERG and nothing seen!?!?! If I do cat /proc/kmsg it hangs but nothing 
print.

Bye,
Antonio.




IMAP_ADDR is virtual or physical address?

2006-02-15 Thread [EMAIL PROTECTED]
I'm wondering if IMAP_ADDR is a virtual address or a physical one. Normally I 
see things like this in drivers:

static volatile immap_t *immr = (immap_t *) IMAP_ADDR;

It seems therefore a virtual address.

But I can see the same also in some u-boot code where I imagine we are 
accessing physical addresses.

Clear my doubt please!!

Bye,




MMU is enabled in u-boot?

2006-02-15 Thread [EMAIL PROTECTED]
u-boot works with MMU enabled? Why is it needed, if so?




u-boot relocate_code routine...

2006-02-14 Thread [EMAIL PROTECTED]
You can reinvent the wheel, or  read  the  documented  experience  of
others who went the same way long time ago.

I don't prefer re-inventing unless it adds some real value.  I had
mentioned the same thing to the design team and changing the memory map
solved the problem.

My hypothesis is that there still is a bug in relocate_code routine as
if I comment out trap_init routine which relocates the exception vectors
from flash to ram (in this case 0x1000), the processor dies.  With
I-cache Off, and trap_init/interrupt_enable commented, it runs to u-boot
prompt.
With I-cache On, it dies 100% in this code.

Putting memory to 0x0 solves the problem and I am able to enable
trap_init  interrupt enable. Also, can turn I-cache on but seems to be
some cache problem as without BDI, it dies 100% but with BDI connected,
it runs with
Some fpga errors.  

If you get a chance, you could review the relocate_code routine if it
handles all input data values. I am new to PPC assembly, so if this was
written in C/as, it would have been lot simpler.  That is not important
but handling all data values seems to be a bug.

Best Regards,

Atul



system tick in PPC

2006-02-12 Thread [EMAIL PROTECTED]
Someone knows how the jiffies is incremented in PPC?
Using PIT, Decrementer or what?

Thanks,
Antonio.




MBX AMD AM29F080 flash not recognized

2006-02-12 Thread [EMAIL PROTECTED]
Sorry, the problem was that I didn't configure the Interleave 4, and the MBX 
use 4 chips of AM29F080.



-- Initial Header ---

From  : linuxppc-embedded-bounces at ozlabs.org
To  : linuxppc-embedded linuxppc-embedded at ozlabs.org
Cc  : 
Date  : Sat, 11 Feb 2006 17:51:08 +0100
Subject : MBX AMD AM29F080 flash not recognized







 Hi,
 
 on my MBX board I have two flashes: AM29F040 called bootrom and four chips of 
 AM29F080 (each one 8 Mbit for a total of 4MB).
 
 The kernel (from DENX) doesn't find the AM29F080. I added the following in 
 amd_flash.c to support AM29F040 (a friend of mine told me)
 
 #define AM29F040  0x00A4
 
 and also:
 
 {
 mfr_id: MANUFACTURER_AMD,
   dev_id: AM29F040,
   name: AMD AMD29F040,
   size: 0x0008,
   numeraseregions: 1,
   regions: {
 { offset: 0x00, erasesize: 0x1, numblocks: 8 },
   }
 },
 
 in the amd_flash_info table.
 
 For AM29F080 I don't know what to add and if to add something is ok !?!?!?!?
 
 Someone knows?
 
 Furthermore, how can I specify that there are 4 chips of AM29F080?
 
 The kernel will handle this automatically?
 
 Bye,
 Antonio.
 
 
 
 
 ___
 Linuxppc-embedded mailing list
 Linuxppc-embedded at ozlabs.org
 https://ozlabs.org/mailman/listinfo/linuxppc-embedded
 




SPI Katix subsytem

2006-02-12 Thread [EMAIL PROTECTED]
Hi,

I would like to use a SPI subsystem on 2.4 but katix framework seems to be not  
continuosly updated. Katix is also present in 2.6 or is there another more 
supported framework there?

Bye,
Antonio.





denx 2.4 kernel doesn't compile amd_flash.c

2006-02-11 Thread [EMAIL PROTECTED]
Hi,

I downloaded denx 2.4 kernel via cvs. I tried to compile it for a MBX board but 
I get the following problem:

amd_flash.c:143: error: structure has no member named `buswidth'


I was successful using the kernel included in ELDK 3.1.1.

Someone could help?






SPI support for MPC8xx in ELDK 3.1.1?

2006-02-11 Thread [EMAIL PROTECTED]
Hi,

the support for SPI device for MPC8xx (MPC880) is present in the ELDK 3.1.1 ?

Thank you,
Antonio.




kernel startup

2006-02-11 Thread [EMAIL PROTECTED]
Normally is it the uboot that uncompresses the kernel or the kernel uncompress 
itself? 

The function called by uboot when I type boot is _start?

What does it mean that the load address is 0x? 





MBX AMD AM29F080 flash not recognized

2006-02-11 Thread [EMAIL PROTECTED]
Hi,

on my MBX board I have two flashes: AM29F040 called bootrom and four chips of 
AM29F080 (each one 8 Mbit for a total of 4MB).

The kernel (from DENX) doesn't find the AM29F080. I added the following in 
amd_flash.c to support AM29F040 (a friend of mine told me)

#define AM29F0400x00A4

and also:

{
mfr_id: MANUFACTURER_AMD,
dev_id: AM29F040,
name: AMD AMD29F040,
size: 0x0008,
numeraseregions: 1,
regions: {
  { offset: 0x00, erasesize: 0x1, numblocks: 8 },
}
},

in the amd_flash_info table.

For AM29F080 I don't know what to add and if to add something is ok !?!?!?!?

Someone knows?

Furthermore, how can I specify that there are 4 chips of AM29F080?

The kernel will handle this automatically?

Bye,
Antonio.







kernel startup

2006-02-10 Thread [EMAIL PROTECTED]

 Normally is it the uboot that uncompresses the kernel or the kernel
uncompress itself? 

How would something compressed uncompress itself?  If u-boot is being
used 
it will uncompress a compressed kernel and put the image at physical
0.

Small correction. Just like a self extracting binary, a kernel can have
a decompression code prepended to the start of kernel which can
decompress the 
Kernel.  This is how redboot for xscale is structured or syslinux /lilo
for x86. 

Although u-boot has simplified this step by doing the CRC checksum of
the
uiMage header as well as data and also decompress the kernel. Based on
load
address, entry point, the kernel can start executing.  

Now, whether cache is enable or not, MMU is enabled/disabled depends on
the
Developer. In current u-boot, the MMU is not used. I-Cache is On and
D-cache
is off.

Best Regards,

Atul




kernel startup

2006-02-10 Thread [EMAIL PROTECTED]


I'm not sure what sub-arch we are talking about, but some do have the
MMU 
on.

I am using PPC 870 and u-boot 1.1.2.  Which architecture should I look
for as a reference example.  On my system, the RAM is not at address 0x0
but at
0x1000. Since the exception table does not take full 32 bit address,
I am not sure how to tell the processor about the relocated location.

On this custom board with 870, is it necessary to have RAM at address
0x0
(or shadow it) or the 870 supports configuration for different base
addresses for memory.  

Thanks,

Atul




kernel startup

2006-02-10 Thread [EMAIL PROTECTED]
Since I have set IIP to 1, reset vector is at 0xfff00100.  IMMR is
0x00f0. So, putting RAM at address 0x0 allows only 15MB of RAM
at address 0x0 (ISA style). 

As memory and internal processor registers would conflict, I would have
a memory hole.  Hence, the logical choice of putting RAM at a different
location. So, if MMU allows shadowing (which I have not read), it could
solve my problem.

Regards,

Atul



kernel startup

2006-02-10 Thread [EMAIL PROTECTED]
The RAM is where you map it. The mapping is done in  software.  The
software is implementing your design.

In other words, your design is broken when you put the RAM at such  a
strange address instead of the natural location, starting from 0x.

Memory is not on the local bus but across a third party memory
controller.
Two processors loosely coupled.  So, the RAM is at non zero address.

This seems to be the critical problem in this design but need to
convince
the design engineers.  I don't know the reason why they want memory at
non zero address but that's the requirement.

--
Atul





kernel startup

2006-02-10 Thread [EMAIL PROTECTED]
I'm not that familiar with 8xx, but can't you move IMMR?

Not much choice with IMMR as it can be 0x0 or 0x00f0 or 0xFF00
Or 0xFFF0.  

Flash is from 0xfe00 thru 0x.  Now on POR,
Processor goes to offset 0x100 on CS0.  So, if IMMR is overlapping with
flash, it might not boot.

On 870, it seems that reset value for BR0/OR0 is undefined.
Data fetch goes on CS0 and then in cpu_init_f BR0  OR0
Are remapped.  So, I could put flash at a non-standard address like
0xDE00 and move IMMR to 0xFF00.

The problem this creates is that I can set IIP to 0 or 1. So, exception
Vector prefix can be 0 or 0xfff.  Since no flash at 0xfff0 base 
Address I cannot have any exceptions in my code till the u-boot code
has relocated to RAM.  Which should be acceptable as what can I do
if there is exception so early in the system. 

Unless there is a better design ?

Thanks,

Atul




kernel startup

2006-02-10 Thread [EMAIL PROTECTED]
 I'm not that familiar with 8xx, but can't you move IMMR?

Of course you can.

That's correct but on 8540, it did not work.  I was using u-boot
And BDI had mapped it to 0xe000 and u-boot had mapped it to
0x4000. So, it was a problem as serial interface did not work.

It was easier to keep IMMR value same in the BDI configuration and the
processor. Just did not find it necessary to relocate it.

Most of the time, it's a question between conceptual and factual(does it
work ?).
--
Atul




kernel startup

2006-02-10 Thread [EMAIL PROTECTED]
Please do yourself a favour and read some docs and FAQ's first.  With
a  low mapping ogf the IMMR like 0x00f0 you will never be able to
run Linux.

I know that the processor does not allow setting up a base address for
the
exception vectors. In this situation, it would never be able to handle
TLB or system call exceptions.  

Just don't know if this is feasible so scrambling for any other docs. I
have the instruction reference and development manual.

Seems to be a bad requirement to not have RAM at address 0x0. Would have
to change that. Rest should just fall in place by booting low. This
would allow exception handling from flash as well as RAM.

Best Regards,

Atul




kernel startup

2006-02-10 Thread [EMAIL PROTECTED]
Actually, it would be great if PPC would allow the exception handlers to
execute from DPRAM.  The handler would run faster than coming from a
RAM/flash or some EEPROM.  Don't know all the implications but should be
a useful speedup.

--
Atul



MPC875 using SCC4 together with both FECs

2006-02-07 Thread [EMAIL PROTECTED]
Someone knows if, in MPC875, SCC4 can be used together with the two FECs? I saw 
that RXD4(input SCC4) shares the same GPIO with MII-TXD0 (output of FEC0).

Thank you,
Antonio.




How to cross-build OpenSSL shared library

2006-02-03 Thread [EMAIL PROTECTED]

Hello

I have a problem with cross compiling the OpenSSL library for PPC (mpc885) as a
shared library (Host x86, Linux).

I give the option shared to the Configure script delivered with OpenSSL. 
But it
always only builds me static libraries. After Configuration it shows me the 
text:

You gave the option 'shared'. Normally, that would give you shared libraries.
Unfortunately, the OpenSSL configuration doesn't include shared library support
for this platform yet, so it will pretend you gave the option 'no-shared'

I am using ELDK (3.1.1) and there is a built OpenSSL as shared library
available.
Does anybody know about how they managed to build this shared library?

Thanks for any help
Marc
























html
body
font face = arial size = 1
-
This e-mail is confidential and may contain privileged information.
It is intended only for the addressees. If you have received this
e-mail in error, kindly notify us immediately by telephone or e-mail
and delete the message from your system.
-
/font
/body
/html
-- next part --
An HTML attachment was scrubbed...
URL: 
http://ozlabs.org/pipermail/linuxppc-embedded/attachments/20060203/562693bb/attachment.htm
 


  1   2   3   4   5   6   7   8   9   >