Re: Broken network for different u-boot compilation

2008-11-07 Thread Ben Warren
Duy-Ky Nguyen wrote: Hello, I'm using u-boot 1.3.0 from the latest FreeScale Linux BSP MPC8313E-RDB. Wrong mailing list. Try mailto:[EMAIL PROTECTED] regards, Ben ___ Linuxppc-embedded mailing list Linuxppc-embedded@ozlabs.org https://ozlabs.org/mai

Re: request_irq issue

2008-11-04 Thread Ben Warren
On Tue, Nov 4, 2008 at 7:38 PM, Laxmikant Rashinkar <[EMAIL PROTECTED]>wrote: > Hi, > > I have a MPC8347 based board that runs linux-2.6.15.4 and 2.6.27.1. > > With the older Linux, my driver is able to successfully request_irq() > interrupts 17, 18, 19, 20, 21, 22, 23 & 48. > > But with the newer

Re: ELDK on 64-bit host

2008-02-20 Thread Ben Warren
On Wed, Feb 20, 2008 at 10:03 AM, Kalle Pokki <[EMAIL PROTECTED]> wrote: > Hi, > > I tried to copy the ELDK 4.0 installation I had to a new Core 2 Quad > machine running 64-bit Ubuntu 7.10, but the new machine refuses to > execute the cross compiler. Has anyone succeeded in running ELDK in > th

Re: Endian problem when accessing internel regs on 8347

2008-01-21 Thread Ben Warren
Hey Bruce, [EMAIL PROTECTED] wrote: > __asm__ __volatile__("lwz%U1%X1 %0,%1; twi 0,%0,0; isync" : "=r" > > (ret) > >>> : >>> > "m" (*addr)); > They allow the compiler to use update and/or index mode for the > memory >

Re: Endian problem when accessing internel regs on 8347

2008-01-17 Thread Ben Warren
[EMAIL PROTECTED] wrote: > Ben Warren <[EMAIL PROTECTED]> wrote on 01/17/2008 07:01:10 AM: > > >> I've attached a poorly-written-yet-functional GPIO driver that I wrote a >> > > >> while ago for the MPC8349 (same as what you have for all inte

Re: Endian problem when accessing internel regs on 8347

2008-01-17 Thread Ben Warren
#include #include #include #include #include #include "gpio.h" struct gpio_dev { struct gpio_reg *regs; struct cdev cdev; }; MODULE_AUTHOR("Ben Warren"); MODULE_LICENSE("GPL"); static int gpio_major_num; static struct gpio_dev *gpio_devices; static spinlock_t gpioLock[G

Re: PowerPC Cross Compiler's Arch doesnt match

2008-01-08 Thread Ben Warren
Hi Jeff, Jeff Parent wrote: > I'm building a linux distro for work, that runs on embedded systems > with either and ARM 9 or a PowerPC 603. I've had great luck building > a cross compiler w/ crosstools and using them in the compiler jail > created by Scratchbox. Now I am working on porting al

Re: Uboot and ML410

2007-12-06 Thread Ben Warren
khollan wrote: > > John Hahn wrote: > >> We are also using 3.81 make (Centos 5 distro) with ELDK 4.1 version >> downloaded from www.denx.de and have had no problems using the u-boot.zip >> srcs from www.xilinx.com/ml410_p, though we use uboot for our ml403 based >> development, we can build u-bo

Re: Semaphores in eldk4.1

2007-11-30 Thread Ben Warren
HI Stuart, Stuart Hodgson wrote: > Hi, > > I have been suing the eldk4.1 tool chain for a few months now and have > not not encountered any problems with building until now. I build for > two slightly different archs, ppc_85xx and ppx_82xx. > > The problem I have come up against is related to so

Re: SPI driver for spi_mpc83xx

2007-11-27 Thread Ben Warren
Fabio, Note: I've changed the e-mail subject back to the original. In the future, please ensure that it remains intact. fabio777 wrote: > Thanks Ben, > > Here it is > > static struct fsl_spi_platform_data k_platform_data = { > .initial_spmode = 0, > .bus_num = 1, Probably should be bus_num = 0 >

Re: SPI driver for spi_mpc83xx

2007-11-26 Thread Ben Warren
fabio777 wrote: > Has anyone been using this driver ? > I use it, on ARCH=powerpc, though. > For legacy reasons I need to keep the ppc=arch however I haven't found > out how to get this driver probed at start-up even basing my init on > Lublock. > > The driver's expecting a platform device

Re: MPC85xx and linux IDE driver

2007-10-25 Thread Ben Warren
Michael Brian Willis wrote: > On Wed, 2007-10-17 at 14:44 -0400, Ben Warren wrote: > > >> This device driver is a platform driver, so you need to register a >> platform device somewhere in your board-specific init code that contains >> the hardware deta

Re: MPC85xx and linux IDE driver

2007-10-17 Thread Ben Warren
Michael Brian Willis wrote: > On Fri, 2007-10-12 at 15:48 -0400, Ben Warren wrote: > > >> Here's what I use: >> >> http://marc.info/?l=linux-kernel&m=113877891224982&w=2 >> > > Thanks for the response Ben. > > I have put

Re: MPC85xx and linux IDE driver

2007-10-12 Thread Ben Warren
Michael Brian Willis wrote: > Hello, > > I am using an MPC8540 based embedded system with a Compact Flash card in > true IDE mode. The Compact Flash card is directly connected to the > MPC8540 bus without the use of a pcmcia adapter. > > The Compact Flash card is being initialized correctly using

Re: [PATCH] Add platform support for the MPC837x RDB board

2007-10-01 Thread Ben Warren
Josh Boyer wrote: > On Mon, 01 Oct 2007 15:49:22 -0400 > Ben Warren <[EMAIL PROTECTED]> wrote: > > >> Mark A. Greer wrote: >> >>> On Thu, Sep 27, 2007 at 04:28:30PM -0500, Olof Johansson wrote: >>> >>> >&g

Re: [PATCH] Add platform support for the MPC837x RDB board

2007-10-01 Thread Ben Warren
Mark A. Greer wrote: > On Thu, Sep 27, 2007 at 04:28:30PM -0500, Olof Johansson wrote: > >> On Thu, Sep 27, 2007 at 03:03:12PM -0500, Josh Boyer wrote: >> >>> On Thu, 27 Sep 2007 12:53:51 -0700 >>> "Mark A. Greer" <[EMAIL PROTECTED]> wrote: >>> >>> On Thu, Sep 27, 2007 at 12:41:

Re: U-Boot problems with MPC8272ADS

2007-09-19 Thread Ben Warren
Manil Gaouar wrote: > Hi all, > > I have been trying many things to solve this problem, I found using a > JTAG that U-Boot is running from flash so my JP9 jumper should stay in > BCSR. > > This is off-topic here. Please re-post to the U-boot mailing list, and try to be more concise: mailto:[EMA

Re: Flash on ep8248e standard motherboards

2007-09-13 Thread Ben Warren
Erik Christiansen wrote: > On Tue, Sep 04, 2007 at 12:08:47PM -0600, Alan Bennett wrote: > >> BDI 2000 Config File: >> ; initialize - FLASH BR0 & OR0 (64 Mbyte) >> ;*** >> WM320xf0010100 0xfc001801 >> WM32 0xf0010104 0xfc0008c2 >>

Re: ping command

2007-07-26 Thread Ben Warren
Nethra, On Wed, 2007-07-25 at 02:29 -0700, Nethra wrote: > hi, > > I m using custom board same as eval board MPC8272ADS board. > > IP assigned for both ethernets are... > > ifconfig eth1 192.168.33.135 up >ifconfig eth1 netmask 255.255.248.0 >route add default gw 1

Re: 83xx: requesting external interrupts

2007-06-29 Thread Ben Warren
Hi Jocke, On Fri, 2007-06-29 at 13:34 +0200, Joakim Tjernlund wrote: > I too am adding such a IRQ for my PHY connected to external IRQ2. > The PHY is connetced to UCC2. > I have this in my DTS for the PHY: > [EMAIL PROTECTED] { > #address-cells = <1>; >

Re: Making fs_enet phy unaware

2007-06-11 Thread Ben Warren
Hi Antonio, On Mon, 2007-06-11 at 12:30 +0200, DI BACCO ANTONIO - technolabs wrote: > Hi all, > > how can I avoid that fs_enet driver uses its associated phy? My problem > is that my FEC is attached to a switch and three other ports of the > switch are connected to three physical connectors. I d

RE: Kernel 2.6, ML403, rootfs on nfs, gigabit ethernet link, nfs mount problems

2007-06-01 Thread Ben Warren
--- Mohammad Sadegh Sadri <[EMAIL PROTECTED]> wrote: > > Hi all, > > thanks for suggestions > I added rsize=1024,wsize=1024 to CMD LINE. INIT can now be executed from nfs, > but I think that the problem still exists, > during the start up process ( from when the rootfs is mounted until user get

Re: Kernel 2.6, ML403, rootfs on nfs, gigabit ethernet link, nfs mount problems

2007-05-29 Thread Ben Warren
Hi Mohammad, On Tue, 2007-05-29 at 14:41 +, Mohammad Sadegh Sadri wrote: > Hi all, > > well I could bring up the grant's kernel on ml403 completely. the root file > system was over nfs. > > when I use a 100mbits link for connection to ml403 , every thing is working > suitably. > but when

Re: 83xx: requesting external interrupts

2007-05-11 Thread Ben Warren
On Fri, 2007-05-11 at 15:15 -0500, Kumar Gala wrote: > > I assume you're code doesn't look exactly like this. You'll need to > use the virq in the request_irq()... its most likely just random luck > if things are working and you aren't using the virq returned from > irq_create_mapping() >

Re: 83xx: requesting external interrupts

2007-05-11 Thread Ben Warren
Alex, On Fri, 2007-05-11 at 10:29 +0100, Alex Zeffertt wrote: > Hi, > > Thanks for your reply Ben, but I think my problem is slightly different. It > is not > that the sense (high/low/rising/falling) of the interrupt is wrong, but that > the > kernel will not allow me to register the handler.

Re: 83xx: requesting external interrupts

2007-05-10 Thread Ben Warren
Alex, Follow this thread... http://marc.info/?l=linuxppc-embedded&m=116849062702002&w=2 On Thu, 2007-05-10 at 17:45 +0100, Alex Zeffertt wrote: > Hi list, > > I'm trying to port a driver from 2.6.11 to 2.6.21 and I'm stuck on the > following line: > > request_irq(MPC83xx_IRQ_EXT5, mpc832

Re: POSIX semaphores on ppc_6xx

2007-04-26 Thread Ben Warren
Thanks Arnd, --- Arnd Bergmann <[EMAIL PROTECTED]> wrote: > On Friday 20 April 2007, Ben Warren wrote: > > The cross-compiled glibc that is included in ELDK 4.0 doesn't seem to > > have support for POSIX semaphores. I get the following runtime errors: > >

POSIX semaphores on ppc_6xx

2007-04-20 Thread Ben Warren
Hello, The cross-compiled glibc that is included in ELDK 4.0 doesn't seem to have support for POSIX semaphores. I get the following runtime errors: sem_open: Function not implemented when trying to implement a named semaphore, and sem_init: Function not implemented when trying to imple

Re: Multiple Boards with same MAC addresses - problem.

2007-04-10 Thread Ben Warren
Zhivko, On Tue, 2007-04-10 at 16:51 +0200, powerpc440 wrote: > Hello all, > > I have multiple boards, based on ppc405ep (which include on-chip two > ethernet ports). I'm configure the MAC address in u-boot and all works > great. The problem appears when I use two or more boards in one network, >

RE: MPC 8349e-mITX and MTD/Flash

2007-04-10 Thread Ben Warren
s for bringing it back in! > >-Original Message- > >From: Ben Warren [mailto:[EMAIL PROTECTED] > >Sent: Monday, April 09, 2007 4:30 PM > >To: Benedict, Michael > >Subject: Re: MPC 8349e-mITX and MTD/Flash > > > >I suspect that MTD doesn't know anything a

RE: Unable to Boot 2.6.19.2 from ELDK 4.1 on MPC8349E MDS

2007-04-09 Thread Ben Warren
Gary, --- Gary Kenaley <[EMAIL PROTECTED]> wrote: > I have been evaluating Freescale 2.6.11, Wind River > 2.6.14, and am now > attempting Denx 2.6.19 (from ELDK 4.1) - running on > the Rev 1.0 MPC8349E > MDS (V1.1 CPU). I boot 2.6.19.2 using the factory > u-boot 1.1.3 and the > kernel immediately

Re: Problem in compiling a kernel module

2007-03-13 Thread Ben Warren
Matthias, --- Matthias Fechner <[EMAIL PROTECTED]> wrote: > Hello Grant, > > * Grant Likely <[EMAIL PROTECTED]> [12-03-07 > 12:36]: > > Looks like you're trying to access inital data > (which is freed after > > module load) from regular code (which is not) > > is it possible to find the line of

Re: RE : Reset cause API

2007-03-08 Thread Ben Warren
Thanks Chris & Kumar, --- alayrac <[EMAIL PROTECTED]> wrote: > The type of reset is recorded in the most-recent > reset field of the > debug-status register (DBSR[MRR]). System software > can examine this > field if it needs to determine the cause of a reset. > The effect of a > reset on the proc

Reset cause API

2007-03-05 Thread Ben Warren
Hello, Is there an API call, either Linux or PowerPC-specific, for determining the cause of the last reset? I can certainly read the RSR myself, but why bother if the information's available elsewhere. thanks, Ben ___ Linuxppc-embedded mailing list Li

Re: Kernel support for the TI1520 PCI-CardBus bridge?

2007-03-01 Thread Ben Warren
Bruce, --- [EMAIL PROTECTED] wrote: > Hi all, > > We're designing a new product and we want to put a > CF card in it. We're > thinking the easiest way to do that is to put in a > PCI-CF bridge and we > would like to use the TI1520 because it's industrial > rated which we need. > We can get th

Re: [PATCH] jffs2 file system

2007-02-24 Thread Ben Warren
--- Nethra <[EMAIL PROTECTED]> wrote: > steps falloed are.. > > 1. erase FF80 FFDF > 2. tftpboot 0x10 image.jffs2 > 3. cp.b 10 FF80 4dc874 > This looks OK, assuming the size of the file was 4dc874... Can you send the output of 'flinfo', please? > physmap flash device: 8

Re: [PATCH] jffs2 file system

2007-02-23 Thread Ben Warren
--- Nethra <[EMAIL PROTECTED]> wrote: > > > thanks ben, > > I have already tried to build jffs2 image as per > link mentioned using > mkfs.jffs2 utility, but mkfs.jffs2 is absent in > host...so i downloded > mkfs.jffs2 from net and used the same to create the > image.Is it the correct > way?

Re: MPC834x global timers question

2007-02-23 Thread Ben Warren
Bruce, --- [EMAIL PROTECTED] wrote: > I know this isn't the right forum for this but I > can't seem to find a > generic PPC mailing list. > > I'm trying to get a global timer going on an > MPC834x, and the way I learn > is to just play with HW, so I've got an Abatron > BDI2K hooked up to my >

Re: [PATCH] jffs2 file system

2007-02-23 Thread Ben Warren
On Thu, 2007-02-22 at 20:28 -0800, Nethra wrote: > > thanks... > > what are the steps to create jffs2 image? > Here's a good link on building a JFFS2 filesystem: http://www.denx.de/wiki/view/DULG/RootFileSystemOnAJFFS2FileSystem > do i need to disable nfs option in kernel? No. Both can happily

Re: CLI for embedded system

2007-02-21 Thread Ben Warren
On Wed, 2007-02-21 at 17:18 +0530, pjmaiya wrote: > Dear Ben, > I have tried following option, with host as ppc_8xx, since we are using > mpc860 processor and also we are using montavista provided compiler > (ppc_8xx). > Our embedded target runs on montavista linux with mpc860 processor and >

Re: CLI for embedded system

2007-02-15 Thread Ben Warren
On Thu, 2007-02-15 at 17:09 +0530, pjmaiya wrote: > hi, > I have successfully complied and used 'clish' in host system (i686 > machine) > But I need to port the same for PPC platform. Can anyone suggest me how to > do the same. > > thanx in advace, > pjmaiya > Like many other projects, I bel

Re: device tree / how to build/compile & use with u-boot to boot uImage?

2007-02-09 Thread Ben Warren
Tom, I feel your pain. On Fri, 2007-02-09 at 16:55 -0500, Morrison, Tom wrote: > All, > > I've looked at the Documentation/powerpc/booting_without_of.txt, > and this gives an explanation of the internal parts of the dts file, > but it doesn't tell me how to practically pass it to the kernel

Re: Target reset after linux reboot

2007-02-08 Thread Ben Warren
On Thu, 2007-02-08 at 13:29 +0100, Frank Prepelica wrote: > > I got a problem. After rebooting linux system on the target, > > the target “hangs”. How could I get that the target makes a reset > > to start u-boot or linux again? You'll need to provide some details. With the information you've

Re: CLI for embedded system

2007-02-08 Thread Ben Warren
Pjmaiya, On Thu, 2007-02-08 at 18:32 +0530, pjmaiya wrote: > Hi, >Can anybody give me link/built in package or source code for > implmenting CLI for embedded system on linux. We have tried to > implement our own CLI on linux(with bash shell as base), but it is > massive work since we need to s

RE: JTAG emulator for MPC8548E (v2)

2007-01-23 Thread Ben Warren
On Tue, 2007-01-23 at 13:02 -0500, Morrison, Tom wrote: > We actually have one of these - and the H/W engineer is NOT > happy at all. Apparently, it is NOT that stable for single > step operations, and does NOT give a consistent view of the > All the internal registers and/or the ability to view a

RE: MPC83xx: ns16550.c - 'SERIAL_PORT_DFNS' undeclared?

2007-01-19 Thread Ben Warren
On Fri, 2007-01-19 at 12:14 -0800, Russell McGuire wrote: > Ben, > > That could be the problem > > I am building using ARCH=ppc > > What is the difference between the two? > I'm not by any means the expert, but I believe that ARCH=powerpc is a merge of 32 and 64 bit PowerPC architectures (plus

Re: MPC83xx: ns16550.c - 'SERIAL_PORT_DFNS' undeclared?

2007-01-19 Thread Ben Warren
Russell, On Fri, 2007-01-19 at 11:28 -0800, Russell McGuire wrote: > > arch/ppc/boot/common/ns16550.c error: ‘SERIAL_PORT_DFNS’ undeclared > here …… > I don't think you should be building any code there... Are you using ARCH=powerpc (you should be) regards, Ben _

External interrupts in 2.6.19

2007-01-10 Thread Ben Warren
Hello, I'm porting my board from 2.6.17 to 2.6.19 kernel, and now external interrupts aren't working any more. I'm using ARCH=powerpc on an MPC8349-based custom board. With the old code, we called ipic_init() from board init code with a table of IRQ senses. In the newer kernel, ipic_init() take

Re: Using fixed_phy with gianfar

2007-01-10 Thread Ben Warren
Vitaly, > > Yes, I was thinking about something like 0:1001 or > 0:101 where 1 at the end respects duplexity. > Putting it into devtree is good but we'll need to > unify the interface first. > I'm sure you're working on lots of other things right now, so I'll go ahead and code something like thi

Re: Using fixed_phy with gianfar

2007-01-10 Thread Ben Warren
Thanks Vitaly! --- Vitaly Bordug <[EMAIL PROTECTED]> wrote: > No, you do not miss - this is an issue. In fact MDIO > bus was changed for numeric for gianfar-stuff, and > has been remaining string for fs_enet. I think it > makes sense to average this up, and will try to do > that once will get 834

Using fixed_phy with gianfar

2007-01-09 Thread Ben Warren
Hello, My custom board has a couple of Ethernet switches attached via RvMII to the 'Gianfar' controllers of an MPC8349 CPU. We're using SPI instead of MDIO for control of the switches, and it looked like the 'fixed.c' PHY driver was the right thing to use. BTW, I'm using a 2.6.19 kernel. When I

Re: Best location for call to spi_register_board_info () on PPC (MPC5200)

2006-12-13 Thread Ben Warren
Henk, On Wed, 2006-12-13 at 21:59 +0100, Henk Stegeman wrote: > I'm working on an SPI procol driver on the MPC52XX. > I spend some time in trying to find the best location for calling > spi_register_board_info () (which basically registers the relations > between protocol drivers and the SPI chip

Re: Floating Point Operation in Kernel

2006-12-13 Thread Ben Warren
On Wed, 2006-12-13 at 08:20 -0800, jimmy liu wrote: > We has a hardware driver need the floating point > operation to do timing recover. Maybe, we have to do > it in user space. > Have you considered doing the math in fixed point instead? I realize that certain data sets make this difficult but t

Re: Compact Flash - lost interrupt

2006-11-30 Thread Ben Warren
On Wed, 2006-11-29 at 19:10 -0800, Muruga Ganapathy wrote: > The error message might be due to the wrong/improper configuration of > interrupt and its attributes like whether it is level/edge sensitive. > > G.Muruganandam > Thanks Ganapathy. Turns out it was a hardware problem. In True IDE mo

Re: Compact Flash help

2006-11-30 Thread Ben Warren
Hi Bala, On Thu, 2006-11-30 at 14:58 +0530, s.balamurugan wrote: > Hello all, > > This is bala, I am using MPC8360 board and compact > flash is connected via Local Bus Controller(UPM). > I have the following questions > what are the necessary document to be read for writting

Compact Flash - lost interrupt

2006-11-29 Thread Ben Warren
Hello, I'm bringing up the Compact Flash interface on a custom board and am almost there, but not quite. I've seen many messages in the past about the 'lost interrupt' message, but I couldn't find anything corresponding closely to my situation. Can anyone shed some light? Here's a snippet of Li

Re: A question about power on

2006-09-21 Thread Ben Warren
On Thu, 2006-09-21 at 19:11 +0800, enorm wrote: > After power on, cpu reads instruction from certain addr. But how does it > know how many bits he can read at once. This can't be generalized. Read the "Reset, Clocking and Initialization", or equivalent, chapter of your CPU's reference manual.

How to find I2C address?

2006-09-12 Thread Ben Warren
On Tue, 2006-09-12 at 10:13 -0400, Sachin Rane wrote: > Hi, > > I am using AMCC PPC440GX evaluation board. > I want to access serial EEPROM (AP31_U29) present on the board. > I couldn't find the I2C address for this chip in the board manuals. > > Could you tell me where I can find it? > Thes

Re: How to find I2C address?

2006-09-12 Thread Ben Warren
On Tue, 2006-09-12 at 10:13 -0400, Sachin Rane wrote: > Hi, > > I am using AMCC PPC440GX evaluation board. > I want to access serial EEPROM (AP31_U29) present on the board. > I couldn't find the I2C address for this chip in the board manuals. > > Could you tell me where I can find it? > Thes

Re: Stupid Telnet Question

2006-09-10 Thread Ben Warren
Tim, --- "Martin, Tim" <[EMAIL PROTECTED]> wrote: > When I just telnet > locally from the serial console to the board (using > the loopback IP > 127.0.0.1) the telnet daemon connects, but the login > program doesn't > give me a chance to type a username or login. > > Question: What stupid t

Stupid Telnet Question

2006-09-10 Thread Ben Warren
Tim, --- "Martin, Tim" wrote: > When I just telnet > locally from the serial console to the board (using > the loopback IP > 127.0.0.1) the telnet daemon connects, but the login > program doesn't > give me a chance to type a username or login. > > Question: What stupid thing have I done to

Platform device style question

2006-08-24 Thread Ben Warren
Thanks Vitaly, On Thu, 2006-08-24 at 22:06 +0400, Vitaly Bordug wrote: > I'd suggest to make a look at LDD concerning linux device model... Thanks. I'll read it again. My little brain absorbs this stuff very slowly. > For platform device, there's no need to cope with u-boot at all. You'll > pr

CompactFlash on PQII Pro

2006-08-24 Thread Ben Warren
Kumar, On Thu, 2006-08-24 at 13:25 -0500, Kumar Gala wrote: > The only code in u-boot was the UPM setup code, I'm happy to send > that to you. > If it's no trouble, that would be great. My HW guy is calculating the settings, but this stuff can be frustrating to debug. BTW - was the system bu

Platform device style question

2006-08-24 Thread Ben Warren
Hello, A 'newbie-to-platform-devices' question: In a patch that Kumar just sent for a compact flash device, the resource data (I/O addresses, IRQ # etc.) are retrieved from the platform system. I guess I can either modify the device tree in U-boot by adding additional nodes, or instantiate a plat

CompactFlash on PQII Pro

2006-08-24 Thread Ben Warren
Thanks Kumar, As always, you're several steps ahead of me. On Wed, 2006-08-23 at 18:04 -0500, Kumar Gala wrote: > I know I posted a patch for cf-ide.c to lkml some time ago, this was > to do a CF in true ide mode using the 83xx localbus. > > http://marc.theaimsgroup.com/?l=linux-kernel&m=1138

CompactFlash on PQII Pro

2006-08-23 Thread Ben Warren
Hello, I have a custom board where we've hung a CompactFlash on the local bus of an MPC8349 processor, intending to use it in 'True IDE' mode. The closest thing I've found in the kernel tree is drivers/ide/ppc/ide-m8xx.c, although it's *very* possible I'm not looking in the right place. I beli

Problems dynamically linking busybox with ppc libs.

2006-08-16 Thread Ben Warren
Keith, On Wed, 2006-08-16 at 10:53 +0200, Keith Redfern wrote: > I am trying to dynamically link busybox with the correct libraries but > run into problems with directory paths and CC/LD flags. > > I am using the toolchain supplied with ELDK and my target board is > ppc_8xx based. The busybox ver

Debugging with no serial port

2006-08-10 Thread Ben Warren
Martin, On Thu, 2006-08-10 at 13:12 -0700, Martin, Tim wrote: > > I tried this as well and have the same GDB synchronization problem e.g. > > break log_stuff > commands >silent >if (variable_logging_enabled) > printf "(%d,%d)\n",stuff1_variable,stuff2_variable >end >

Debugging with no serial port

2006-08-10 Thread Ben Warren
Tim, How about something a bit simpler like running gdb within a 'script' context, which will log your session to a file. Get gdb to print the variables to the screen (using 'print' or whatever), wrap your data with easily searchable characters (eg. ***data1 data2 data3***), then filter your data

ELDK 3.1.1 support for x86_64 host architecture

2006-08-04 Thread Ben Warren
On Fri, 2006-08-04 at 22:11 +0200, Wolfgang Denk wrote: > Yes, SuSE has always found interesting ways to break compatibility. > That's why I avoid it. IIRC, SuSE provides a special tool "linux32" > which has to be used to run 32-bit applications on a x86_64 system. > > Don't ask me why the

problems with mounting JFFS2 using CFI for AM29LV160MT on ppc8245 k2.4.x

2006-08-03 Thread Ben Warren
Arun, Please keep the mailing list CC'd on all correspondence. As you can see, I've been busy for the past week and am sure there are others listening that are more qualified to answer. Anyway... On Wed, 2006-07-26 at 17:33 +0530, Arun Kumar wrote: > Hi Ben , > I guess this is the last stage be

problems with mounting JFFS2 using CFI for AM29LV160MT on ppc8245 k2.4.x

2006-07-24 Thread Ben Warren
Arun, Looks like there are still some things broken in your MTD partition definition. I highly recommend that when debugging this, you boot from an NFS mount. That way you can modify files off-line (ie. from your development host). I'll point out a few things, but you're going to have to surf t

problems with mounting JFFS2 using CFI for AM29LV160MT on ppc8245 k2.4.x

2006-07-21 Thread Ben Warren
Hi Arun, On Fri, 2006-07-21 at 20:26 +0530, Arun Kumar wrote: > Hi , > Can anyone help me in this naive problem ? > Then a naive answer is most fitting... Turns out that's my specialty. > # > # Memory Technology Devices (MTD) > # > CONFIG_MTD=y > CONFIG_MTD_DEBUG=y > CONFIG_MTD_DEBUG_VERBOSE=2

I2C with bus muxes

2006-07-20 Thread Ben Warren
Way cool! Thanks a lot. I'll try it out when my hardware comes in... regards, Ben On Thu, 2006-07-20 at 13:51 -0500, Kumar Gala wrote: > On Jul 20, 2006, at 10:16 AM, Ben Warren wrote: > > > Hello, > > > > Has anyone implemented devices like the Philips PCA954

I2C with bus muxes

2006-07-20 Thread Ben Warren
Thanks Travis, On Thu, 2006-07-20 at 11:22 -0400, Travis B. Sawyer wrote: > I have a driver for 2.4.x that works with our SFP/XFPs. We also have a > bunch of other 'stuff' > hanging off of muxes. I haven't given it a go on 2.6, but I have it > compiled and it doesn't complain on > startup.

I2C with bus muxes

2006-07-20 Thread Ben Warren
Hello, Has anyone implemented devices like the Philips PCA954x I2C bus muxes under the /sysfs device model? I have some optical transponders on my board that through the wisdom of some committee all have the same fixed I2C address. To get around this, we put them behind muxes, creating 'virtual'

Knowing kernel module load address (insmod hasn't -m)

2006-07-13 Thread Ben Warren
/proc/modules support is in 2.4, but the other stuff is 2.6 only (I believe somewhere around 2.6.11 or so?) You should be able to 'insmod -m' in 2.4. You may need to reconfigure busybox or use a non-busybox 'insmod', though. cheers, Ben On Thu, 2006-07-13 at 23:27 +0200, Antonio Di Bacco wrote

Knowing kernel module load address (insmod hasn't -m)

2006-07-13 Thread Ben Warren
cat /proc/modules If you want more detailed information about a module (locations of .text, .data, .bss etc), enable CONFIG_KALLSYMS in your kernel and you'll see lots of goodness in the /sys/module//sections directory. Do yourself a favor and browse http://lwn.net/Articles/driver-porting/ where

JFFS2 FS is read-only (not what I want)

2006-07-03 Thread Ben Warren
On Mon, 2006-07-03 at 15:38 -0400, Ben Warren wrote: > This is starting to look to me like a generation-time issue. I built > another JFFS2 partition out of a random directory on my workstation, and > it's behaving properly: Sorry for filling people's inboxes, but it turns

JFFS2 FS is read-only (not what I want)

2006-07-03 Thread Ben Warren
Mathieu, > > IMHO, it's not a generation-time issue > This is starting to look to me like a generation-time issue. I built another JFFS2 partition out of a random directory on my workstation, and it's behaving properly: $mkfs.jffs2 -U -d util -b -e 0x2 -o /tftpboot/prism/myutil.img On the

JFFS2 FS is read-only (not what I want)

2006-07-03 Thread Ben Warren
Chetan, On Mon, 2006-07-03 at 10:18 -0400, Anantharaman Chetan-W16155 wrote: > Did you check to see if your flash banks are unlocked? > According to U-Boot, only the first four sectors are locked. My JFFS2 partition is in sectors 37-52 (1-based). I'll definitely look more deeply into this, th

JFFS2 FS is read-only (not what I want)

2006-07-03 Thread Ben Warren
Mathieu, Thanks for responding! On Mon, 2006-07-03 at 12:42 +0200, Mathieu Deschamps wrote: > > > Do you mean that you can't even created a void file on / as root ? Else > can you then put for instance text in it ? My point is can or can't you > first create a new fs node and then can you write

JFFS2 FS is read-only (not what I want)

2006-07-01 Thread Ben Warren
Hello, When I boot from a JFFS2 file system on my eval board, the file system is effectively read-only, and I can't figure out why. I'm pretty sure the kernel's configured for R/W MTD block access. Any help is greatly appreciated. The hardware in use is: Freescale MPC8349EMDS eval board. 8M

BDI-2000 Config file for MPC8349 eval board

2006-04-14 Thread Ben Warren
Hello, Does anybody have a solid config file for the Freescale MPC8349EMDS eval board? I guess the MPC8349ADS would be fine too, since I've been told they're the same thing. I've been tweaking the file named 'mcp8349e.cfg' that shipped with the BDI, but it's a bit flaky with my board. In partic

GPIO endianness on MPC8349

2006-04-10 Thread Ben Warren
Sorry for wasting bandwidth (again). Turns out my schematic is for an earlier spin of the board. regards, Ben On Mon, 2006-04-10 at 15:06 -0500, Kumar Gala wrote: > On Apr 10, 2006, at 2:48 PM, Ben Warren wrote: > > > Hello, > > > > I'm a noobie to this CPU, and

GPIO endianness on MPC8349

2006-04-10 Thread Ben Warren
Hello, I'm a noobie to this CPU, and am utterly confused with how the bits are ordered on the GPIO ports. I imagine it's the same as all Freescale PPCs, but who knows. Anyway... Using an MPC8349MDS eval board, I have one LED to play with. From the schematic, it's connected to GPIO1[1]. From o