Erase flash boot from default env

2012-02-06 Thread smitha.vanga
Hi , When I run flinfo in bootloader I get some locatios indicated with RO meaning read only. Can I erase these locations. Actually I tried to erase and could not erase even when I set protect off for this address Range in the environment parameters. I want to get the bootloader to boot with

NTP server sync issue

2012-01-23 Thread smitha.vanga
Hi , On my target the date time in linux is not getting updated as per The NTP server date. The update of date and sync between NTP server and NTP client on the target happens Correctly when the NTP server is made up and then the ntp client is made up. If I make the NTP server down and then

RE: Mac address in the DT

2012-01-10 Thread smitha.vanga
Hi, I am using 2.6.21 linux kernel with this bootloader. The ethernet driver in the kernel reads the mac address from the .dtb file. Regards, Smitha Please do not print this email unless it is absolutely necessary. The information contained in this electronic message and any attachments to

Mac address in the DT

2012-01-10 Thread smitha.vanga
Hi, The fdt_fixup_ethernet() is not supported in the older version of u-boot. So how to go about it in u-boot 1.3.0 version. Regards, Smitha Please do not print this email unless it is absolutely necessary. The information contained in this electronic message and any attachments to this mes

RE: Mac address in the DT

2012-01-09 Thread smitha.vanga
Hi Joakim, I have tried it but it doesn't work. Just now found that with single ' quotes the entire sequence it works. >Setenv set_mac 'cp 0xffec 0x10 1024;fdt addr 0xc0 8192;fdt set >/soc8272@f000/ethernet@24000 mac-address "[00 44 00 55 00 66]";erase >0xffec 0xffec4000;c

Mac address in the DT

2012-01-09 Thread smitha.vanga
Hi Wolfgang, I need to automate a sequence of commands. To do that I am setting a environment variable with the sequence of commands. And using run command run the environment variable. But one of the command uses " in the command. So how do I save the command with quotes. Below is the comma

Mac address change in linux

2012-01-02 Thread smitha.vanga
Hi Scott, When I execute below statements in linux to change the mac address I get the error Host name look up error. Below are the commands I execute to change the mac address and the console output. 1. ifconfig eth0.246 down 2. ifconfig eth0.246 hw ether 00:11:22:33:44:55 ifconfig: hw: Ho

Mac address in the DTS file

2011-12-30 Thread smitha.vanga
Hi Scott, In my DTS file for mpc8247 I have defined the ether MAC in the node as below. ethernet@24000 { #address-cells = <1>; #size-cells = <0>; device_type = "network"; device-id = <1>;

RE: IRQ2 and IRQ 3

2011-10-18 Thread smitha.vanga
Yes , there is a vector numbe defined in the specifications . IRQ2 - 20 IRQ3 - 21 But I don't know how to specify them in the .dts file . Regards, Smitha Please do not print this email unless it is absolutely necessary. The information contained in this electronic message and any attachments t

RE: IRQ2 and IRQ 3

2011-10-18 Thread smitha.vanga
Hi , I want to use IRQ2 and IRQ3 in my driver. How do I add them in the device tree file. Regard, Smitha Please do not print this email unless it is absolutely necessary. The information contained in this electronic message and any attachments to this message are intended for the exclusi

IRQ2 and IRQ 3

2011-10-18 Thread smitha.vanga
Hi , I want to use IRQ2 and IRQ3 in my driver. How do I add them in the device tree file. Regard, Smitha Please do not print this email unless it is absolutely necessary. The information contained in this electronic message and any attachments to this message are intended for the exclusive

RE: I2c-cpm driver not working

2011-10-17 Thread smitha.vanga
Hi Bhusan, Below is i2c node in the device tree. i2c@11860 { compatible = "fsl-i2c-cpm"; device_type = "i2c"; reg = <11860 20 8afc 2>; interrupts = <1 8>;

RE: I2c-cpm driver not working

2011-10-14 Thread smitha.vanga
Hi , I see that the i2c_master_send works but when I do a i2c_master_recv returns with a error code -121. What should be the i2c-base address be configured for the i2c-cpm driver for mpc9247 . Also When I pass the interrupt for this driver as 1 , I see the registered interrupt number as 10

I2c-cpm drievr not working

2011-10-13 Thread smitha.vanga
Hi Scott, I am using the i2c-cpm driver to read and write to a LM75 sensor. The int i2c_master_send(struct i2c_client *client,const char *buf ,int count) function is not successful. Could you let me know what may be the issue. Below are the traces. DS75_DRIVER : Open DS75_DRIVER : Device Open

RE: BUG: scheduling while atomic:

2011-10-08 Thread smitha.vanga
Hi Scott, Below are the logs when I enable the kallsyms. Any suggestion. sh-3.1# I am in cpld_irq_handler end cpld_irq_handler BUG: scheduling while atomic: IRQ-20/0x0fff/108 Call Trace: [C3B13EC0] [C0007DD0] show_stack+0x3c/0x194 (unreliable) [C3B13EF0] [C0017F70] __schedule_bug+0x34/0x44

BUG: scheduling while atomic:

2011-10-05 Thread smitha.vanga
Hi Scoot, When my ISR gets exeuted I get a below BUG. Could let me what I am doing wrong in the ISR? BUG: scheduling while atomic: IRQ-20/0x0fff/108 Call Trace: [C3AEFEC0] [C0007CCC] (unreliable) [C3AEFEF0] [C0017F10] [C3AEFF00] [C0268818] [C3AEFF50] [C0017F44] [C3AEFF60] [C0018044] [C3

RE: Request_irq fails for IRQ2

2011-10-04 Thread smitha.vanga
Hi Scoot, When I try to use a atomic varaible in my ISR I see a kernel crash . with mesage BUG: scheduling while atomic: Below is the code : My ISR irqreturn_t cpld_irq_handler(int irq, void * dev_id, struct pt_regs *regs) { wake_up(&cpld_intr_wait); atomic_inc(&cpld_intr_data); /* increm

RE: Request_irq fails for IRQ2

2011-10-04 Thread smitha.vanga
Hi Scott, I am able to register the IRQ now once I add the call irq_set_default_host in cpm2_pic. But when I call enable_irq the code throws the below warning and gives exception in enable irq at spin_unlock_irqrestore(&desc->lock, flags); in enable_irq. printk(KERN_WARNING "Unbalanced enable

RE: Request_irq fails for IRQ2

2011-10-04 Thread smitha.vanga
Hi Scott, Thank you. But I am not very clear where exactly I need to call the irq_set_default_host(). And also for the second fix I did not understand or to make cpm2_pic_host non-static (in which case you should pass that). in th previous mail what exactlyy you mean. Thanks & Regards, Smitha

RE: Request_irq fails for IRQ2

2011-10-03 Thread smitha.vanga
Hi Scott, I try to request an IRQ (IRQ2 and IRQ3 which are ineterrupt no 20 and 21 in mpc8247)in my driver . The Call fails in setup_irq in Manage.c at /kernel/irq. Setup _irq returns -ENOSYS if (desc->irq_data.chip == &no_irq_chip) return -ENOSYS; I found that I need to pa

Request_irq fails for IRQ2

2011-10-03 Thread smitha.vanga
Hi Scott, I try to request an IRQ (IRQ2 and IRQ3 which are ineterrupt no 20 and 21 in mpc8247)in my driver . The Call fails in setup_irq in Manage.c at /kernel/irq. Setup _irq returns -ENOSYS if (desc->irq_data.chip == &no_irq_chip) return -ENOSYS; I just want to know why it

I2c driver crash

2011-09-22 Thread smitha.vanga
Hi Scott, When I call if i2c_master_send(&ds75->i2c_client,buffer,2) it crashes. In module initialization I don't see any errors. Below are kernel messages. Could you please let me know what may be the reason for this crash. ---Logs- Loading Temperature Sensor Interface module

RE: Kernel boot up

2011-08-25 Thread smitha.vanga
Thanks scott. There was an issue with the file system. Now my board is up with the linux boot prompt . But ping is not working. The local loopback ping works. My phy chip BCM5221 is connected on port A I am using FCC1 as the MAC. I see that the intrrupt handler is being registered properly. And

RE: FW: Ethernet driver WR linux

2011-08-08 Thread smitha.vanga
Thank Scott. I am working on a legacy project Which is using 2.6.21 linux kernel so the device tree is based on that. Can you let me why the probe error of the driver happens. So that I can keep a patch in the code.Or What exacly in the device tree it is missing. That would be of great help. Thank

RE: FW: Ethernet driver WR linux

2011-08-07 Thread smitha.vanga
Hi Scott, Below is the .dts file. My board is based on mpc8247. Currently using FCC1. /* * MPC8272 EPN412 Device Tree Source * * Copyright 2005 Freescale Semiconductor Inc. * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General

FW: Ethernet driver WR linux

2011-08-05 Thread smitha.vanga
Hi I have bringup WR linux 2.6.38 on a custom mpc8247 board. Not able to configure the ipaddress. When I boot my linux kernel I get the below message. Also I am using the fec 1. The fec is not getting initialized. fs_enet.c:v1.0 (Aug 8, 2005) BB MII Bus: Cannot register as MDIO bus fsl-bb-mdio: