Starting UDHCP server at startup

2005-05-17 Thread Atit_Shah
Hi All,
I wish to start the udhcp server at boot up through the start up
script. I create a file S47udhcpd in /etc/init.d/ with the following
contents:

#!/bin/sh

PKG="udhcp server"
STARTCMD="/usr/sbin/udhcpd"
STOPCMD="killall udhcpd"

. /etc/init.d/common

This is the last commond to be executed ie just before the linux prompt
ask for the login and password.

When I boot the system I get the following error message "SIOCGIFADDR
failed, is the interface up and configured?: Cannot assign requested
address."

If I give the command "udhcpd" in my /etc/profile file the server
starts. Why does this happen? 

If I am having this for a router I will need to run udhcpd the moment it
comes...how will I do this?

Regards
Atit


DISCLAIMER:
This email (including any attachments) is intended for the sole use of the 
intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE 
COMPANY INFORMATION. Any review or reliance by others or copying or 
distribution or forwarding of any or all of the contents in this message is 
STRICTLY PROHIBITED. If you are not the intended recipient, please contact the 
sender by email and delete all copies; your cooperation in this regard is 
appreciated.





PPPoE setup

2005-05-12 Thread Atit_Shah
Does any one know how I can start the pppoe server and how I can get an
IP address assigned to the port?
Is there a web-site where I can get details on this?

Atit


DISCLAIMER:
This email (including any attachments) is intended for the sole use of the 
intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE 
COMPANY INFORMATION. Any review or reliance by others or copying or 
distribution or forwarding of any or all of the contents in this message is 
STRICTLY PROHIBITED. If you are not the intended recipient, please contact the 
sender by email and delete all copies; your cooperation in this regard is 
appreciated.



Network Setup - HOW TO

2005-05-12 Thread Atit_Shah
Hi all,

I have a custom router and ported the udhcp server/client on it.
My router has 2 ports eth0 - LAN and eth1 - WAN. My setup is as follows:
1. 
To eth0: connect a stand alone windows machine

when I run the server with the command "uphcpd", it by default runs on
eth0. then on the windows machine when I say "ipconfig /renew", the
router assigns an IP address to the system - perfect.

2.
To eth0: connect to my company network.

when I run the server with the command "uphcpd", it by default runs on
eth0. then when I run the client "udhcpc" the router assigns an IP
address to eth0 obtained from the company server - perfect.

All this happens on eth0 ONLY.

I wish to configure the router as follows:
To eth0: stand alone system
To eth1: company network

The router should get an IP from my company server and assign it to eth1
and then it should assign a IP to my standalone system connected to
eth0. how do I do this?

Regards
Atit Shah


DISCLAIMER:
This email (including any attachments) is intended for the sole use of the 
intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE 
COMPANY INFORMATION. Any review or reliance by others or copying or 
distribution or forwarding of any or all of the contents in this message is 
STRICTLY PROHIBITED. If you are not the intended recipient, please contact the 
sender by email and delete all copies; your cooperation in this regard is 
appreciated.



udhcp problem

2005-05-12 Thread Atit_Shah
My configuration is as follows:

___
|ROUTER |
|   ___ ___   |
|_| |___| |___|
   LAN   WAN
/\   /\
 |  |
   Stand Alone  Company 
 Windows SystemNetwork
   (eth0)   (eth1)

I have a udhcp server running on eth0. When I give the command on the
windows machine "ipconfig /renew", the router assigns an IP address to
the System in the range 192.168.1.x while the router itself has the IP
192.168.1.1 (default). I can ping the router from the system and
vice-versa.

I manually assigned a static IP to eth1 as 172.19.56.x insync with the
company IP address scheme. I can ping from the router to any other
system on the network.

Now when I try to ping a system or eth1 from the windows machine I get a
time out. But if I have to manually assign an IP to the windows
machine(ie not through the udhcp server) I am able to ping eth1 and any
other system on the network.

Any ideas as to how and why? If you need more inform please let me
know...


Atit



DISCLAIMER:
This email (including any attachments) is intended for the sole use of the 
intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE 
COMPANY INFORMATION. Any review or reliance by others or copying or 
distribution or forwarding of any or all of the contents in this message is 
STRICTLY PROHIBITED. If you are not the intended recipient, please contact the 
sender by email and delete all copies; your cooperation in this regard is 
appreciated.



Network Setup - HOW TO

2005-05-10 Thread Atit_Shah
I had my router with IP address 172.19.56.218 and linux machine
172.19.60.11 connected with a normal cable. I had the system ping the
router with ethereal running.
Ethereal captured only the ARP packets, there were no ARP reply and on
the console of the system I would get "Destination Host unreachable". 
Have enclosed the ethereal capture...
Atit

-Original Message-
From: Grant Likely [mailto:[EMAIL PROTECTED] 
Sent: Monday, May 09, 2005 12:07 PM
To: Atit_Shah
Cc: linuxppc-embedded at ozlabs.org
Subject: Re: Network Setup - HOW TO

On 5/8/05, Atit_Shah  wrote:
> My company uses the 172.19.x.x IP addresses, I want a PC with
> 192.168.x.x IP address to access the company network via a router. I
> have a router running Linux and having 2 Ethernet ports. I configured
> the systems in the following 2 ways:
So, two subnets:
Eth0 on subnet 192.168.0.0/255.255.0.0
Eth1 on subnet 172.19.0.0/255.255.0.0

> 
> 1. Eth0 (LAN port) - 172.19.56.218
>Eth1 (WAN port) - 172.19.56.219
>Single System   - 192.168.100.10 - IP Address
>172.19.56.218  - Gateway
>172.19.56.218  - DNS
This is wrong.  IP address for Eth0 must be on the 192.168.0.0/16 subnet

> 
> 2. Eth0 (LAN port) - 192.168.100.20
>Eth1 (WAN port) - 172.19.56.219
>Single System   - 192.168.100.10 - IP Address
>192.168.100.20 - Gateway
>192.168.100.20 - DNS
This is correct, but the DNS server does not have to be your router.

> 
> But I am not able to ping from the router to my single system in
either
> way.
> How should I configure router to make this possible for the 2 networks
> to communicate?
Is you netmask set right?  Does /sbin/route show sane IP routes?  What
do you see on the wire? (Use Ethereal on a third computer).  If you
cannot ping then you've got a fundamental flaw in your configurations.
 Get this working before worrying about DHCP or routing.

> 
> The second question is how to run DHCP on my router so it can receive
a
> dynamic IP and assign dynamic IP when I power my router?
You need to run both dhcpd and dhcpcd.  dhcpd to assign IP to your
client.  dhcpcd to get an IP from the network.

It sounds like you need to brush up on your IP networking knowledge w/
linux.  Go look at the howtos on www.tldp.org.  Specifically on
networking and DHCP.  You should get this stuff working on a regular
PC w/ 2 network cards running linux first before trying to get it
going on your embedded board.

Also, as I asked before, please include relevant output logs with your
posts and I strongly recommend sniffing the Ethernet traffic with a
tool like Ethereal.

g.



DISCLAIMER:
This email (including any attachments) is intended for the sole use of the 
intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE 
COMPANY INFORMATION. Any review or reliance by others or copying or 
distribution or forwarding of any or all of the contents in this message is 
STRICTLY PROHIBITED. If you are not the intended recipient, please contact the 
sender by email and delete all copies; your cooperation in this regard is 
appreciated.
-- next part --
A non-text attachment was scrubbed...
Name: ethereal
Type: application/octet-stream
Size: 198 bytes
Desc: ethereal
Url : 
http://ozlabs.org/pipermail/linuxppc-embedded/attachments/20050510/c2fe4b7e/attachment.obj
 


Network Setup - HOW TO

2005-05-09 Thread Atit_Shah
My company uses the 172.19.x.x IP addresses, I want a PC with
192.168.x.x IP address to access the company network via a router. I
have a router running Linux and having 2 Ethernet ports. I configured
the systems in the following 2 ways:

1. Eth0 (LAN port) - 172.19.56.218 
   Eth1 (WAN port) - 172.19.56.219
   Single System   - 192.168.100.10 - IP Address
   172.19.56.218  - Gateway
   172.19.56.218  - DNS

2. Eth0 (LAN port) - 192.168.100.20 
   Eth1 (WAN port) - 172.19.56.219
   Single System   - 192.168.100.10 - IP Address
   192.168.100.20 - Gateway
   192.168.100.20 - DNS

But I am not able to ping from the router to my single system in either
way.
How should I configure router to make this possible for the 2 networks
to communicate? 

The second question is how to run DHCP on my router so it can receive a
dynamic IP and assign dynamic IP when I power my router? 

Atit


-Original Message-
From: Grant Likely [mailto:[EMAIL PROTECTED] 
Sent: Friday, May 06, 2005 8:59 PM
To: Atit_Shah
Cc: linuxppc-embedded at ozlabs.org
Subject: Re: Network Setup - HOW TO

On 5/5/05, Atit_Shah  wrote:
> Hi all,
> 
> I have a custom board designed to function as a router. It has
2
> Ethernet ports. Eth1 is a WAN port and Eth0 is a LAN port. This is
what
> I wish to do:
> 1. connect the board/router to my company network
> 2. connect a normal system running windows or linux to the router
> 3. I should be able to ping or browse the net using the normal system
> via the router through the company network.
> 
> I have connect the normal network cable (not a cross wire cable)
between
> the router and the company network. The router does not seem to get a
> dynamic IP. Why and What should I do for it to get one?
Are you running a dhcp client?  Let's see the log output
> 
> I connect a system to eth0 again with a normal network cable (not a
> cross wire cable) but the system does not seem to get an IP assigned
> even when I run the dhcp server on my routerused udhcpd command.
Why
> and how can I get it up?
What do you see on the wire?  Bring up Ethereal to capture traffic.

> 
> Appreciate a response on this
Not enough information.  Include output logs please.



DISCLAIMER:
This email (including any attachments) is intended for the sole use of the 
intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE 
COMPANY INFORMATION. Any review or reliance by others or copying or 
distribution or forwarding of any or all of the contents in this message is 
STRICTLY PROHIBITED. If you are not the intended recipient, please contact the 
sender by email and delete all copies; your cooperation in this regard is 
appreciated.



Network Setup - HOW TO

2005-05-05 Thread Atit_Shah
Hi all,

I have a custom board designed to function as a router. It has 2
Ethernet ports. Eth1 is a WAN port and Eth0 is a LAN port. This is what
I wish to do:
1. connect the board/router to my company network 
2. connect a normal system running windows or linux to the router
3. I should be able to ping or browse the net using the normal system
via the router through the company network.

I have connect the normal network cable (not a cross wire cable) between
the router and the company network. The router does not seem to get a
dynamic IP. Why and What should I do for it to get one?

I assigned a static IP to eth1 and pinged another system on the company
network and I do get a reply back. So my eth1 is working fine, but I
would still prefer a dynamic IP.

I connect a system to eth0 again with a normal network cable (not a
cross wire cable) but the system does not seem to get an IP assigned
even when I run the dhcp server on my routerused udhcpd command. Why
and how can I get it up?

Appreciate a response on this

Has any one come across a tutorial which could help me solve this

Regards
Atit


DISCLAIMER:
This email (including any attachments) is intended for the sole use of the 
intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE 
COMPANY INFORMATION. Any review or reliance by others or copying or 
distribution or forwarding of any or all of the contents in this message is 
STRICTLY PROHIBITED. If you are not the intended recipient, please contact the 
sender by email and delete all copies; your cooperation in this regard is 
appreciated.



MPC8245 custom board, Linux 2.4 kernel hangs after uncompressing

2005-04-22 Thread Atit_Shah
All I know is PSDMR is for 8260 and it pertains to burst mode operation. I 
don?t know MCCR :)


-Original Message-
From: Sam Song [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 22, 2005 11:05 AM
To: Atit_Shah; Kishore Devireddy
Cc: linuxppc-embedded at ozlabs.org
Subject: RE: MPC8245 custom board, Linux 2.4 kernel hangs after uncompressing

Atit_Shah  wrote?
> What we did was verified the value of PSDMR register
> value found in your board specific header file in
> include/configs/

Ummm, PSDMR register is for 8260 perhaps? I even 
didn't find it in 8245UM. Do you mean MCCR of 8245?

Thanks,

Sam

_
Do You Yahoo!?
150??MP3
http://music.yisou.com/
???
http://image.yisou.com
1G??1000???
http://cn.rd.yahoo.com/mail_cn/tag/1g/*http://cn.mail.yahoo.com/event/mail_1g/



DISCLAIMER:
This email (including any attachments) is intended for the sole use of the 
intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE 
COMPANY INFORMATION. Any review or reliance by others or copying or 
distribution or forwarding of any or all of the contents in this message is 
STRICTLY PROHIBITED. If you are not the intended recipient, please contact the 
sender by email and delete all copies; your cooperation in this regard is 
appreciated.



MPC8245 custom board, Linux 2.4 kernel hangs after uncompressing

2005-04-22 Thread Atit_Shah
>From the log I gather that there is no exception. That's good news
What we did was verified the value of PSDMR register value found in your
board specific header file in include/configs/

We changed this value and it worked fine. Its worth a try.

Atit

-Original Message-
From: Kishore Devireddy [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 22, 2005 4:23 AM
To: Atit_Shah
Cc: linuxppc-embedded at ozlabs.org
Subject: Re: MPC8245 custom board, Linux 2.4 kernel hangs after
uncompressing

Hi

As you mentioned I checked my System.map file and found

c0199614  b  log_buf

and checked the location 0x00199614 using BDI2000

BDI>md 0x000199600
00199600 :      
00199610 :  3c363e4d 656d6f72 79204241  <6>Memory BA
00199620 : 54206d61 7070696e 673a2042 4154323d  T mapping: BAT2=
00199630 : 31364d62 2c204241 54333d30 4d622c20  16Mb, BAT3=0Mb,
00199640 : 72657369 6475616c 3a20304d 620a3c34  residual: 0Mb.<4
00199650 : 3e4c696e 75782076 65727369 6f6e2032  >Linux version 2
00199660 : 2e342e32 35202872 6f6f7440 4d616e64  .4.25 (root at Mand
00199670 : 72616b65 29202867 63632076 65727369  rake) (gcc versi
00199680 : 6f6e2033 2e332e33 20284445 4e582045  on 3.3.3 (DENX E
00199690 : 4c444b20 332e3120 332e332e 332d3829  LDK 3.1 3.3.3-8)
001996a0 : 29202337 20576564 20417072 20323020  ) #7 Wed Apr 20
001996b0 : 30313a33 393a3437 20504454 20323030  01:39:47 PDT 200
001996c0 : 350a3c36 3e4d6f74 6f726f6c 61205350  5.<6>Motorola SP
001996d0 : 53205361 6e64706f 696e7420 54657374  S Sandpoint Test
001996e0 : 20506c61 74666f72 6d0a3c36 3e506f72   Platform.<6>Por
001996f0 : 74206279 204d6f6e 74615669 73746120  t by MontaVista
BDI>md
00199700 : 536f6674 77617265 2c20496e 632e2028  Software, Inc. (
00199710 : 736f7572 6365406d 76697374 612e636f  source at mvista.co
00199720 : 6d290a3c 343e4f6e 206e6f64 65203020  m).<4>On node 0
00199730 : 746f7461 6c706167 65733a20 34303936  totalpages: 4096
00199740 : 0a3c343e 7a6f6e65 2830293a 20343039  .<4>zone(0): 409
00199750 : 36207061 6765732e 0a00   6 pages.
00199760 :      
00199770 :      
00199780 :      
00199790 :      
001997a0 : 70656e50 49432056 65727369 6f6e2031  penPIC Version 1
001997b0 : 2e322028 31204350 55732061 6e642031  .2 (1 CPUs and 1
001997c0 : 31204952 5120736f 75726365 73292061  1 IRQ sources) a
001997d0 : 74206664 66643030 30300a00   t fdfd..
001997e0 :      
001997f0 :      

But it does not say much here. Any help on this???

I also enabled CONFIG_SERIAL_TEXT_DEBUG, but I did not see any text
after uncompressing the linux.

As mentioned in your 3rd point "some flag in the U-Boot code for RAM
in burst mode.". What is that flag actually? Coulnd you let me know?

Thanks
Kishore


On 4/20/05, Atit_Shah  wrote:
> 
> Hi Kishore,
> 
>There are various things you can try.
> 
> 1. Check your log buffer...your console may not be initialized yet so
> all your printk are logged at a particular memory location. Checkout
the
> System.map file in the Linux folder for "log_buf". The address that
you
> have there subtract it with the kernel base address. Then in view your
> memory at that location. We used U-Boot so we gave the command
> 
>md 
> 
> 2. We used a tool called Code Warrior which helped us single step
debug
> the code, it didn't help us much though.
> 
> 3. We had a problem with the RAM in burst mode. WolfGang would suggest
> you check out if your RAM is operational. In our case we had to set
some
> flag in the U-Boot code for RAM in burst mode. We changed this flag
and
> it boots fine. Well almost.
> 
> Atit
> 
> 
> Message: 5
> Date: Wed, 20 Apr 2005 18:00:46 -0700
> From: Kishore Devireddy 
> Subject: MPC8245 custom board, Linux 2.4 kernel hangs after
>uncompressing
> To: linuxppc-embedded at ozlabs.org
> Message-ID: <2cf2641f0504201800556805d2 at mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
> 
> Hi
> 
> I am trying to run Embedded linux (ELDK) (2.4 kerenl) on a custom
> powerpc board,
> which is similar to Artis A3000 board. This board has
> mpc8245(XPC8245LZY266B), natsemi 83815 ethernet, 4MB intel e28f320
> flash, 16MB winbond w986432DH-6 SDRAM. So I configured and compiled
> U-boot for A3000 borad. U-boot worked on my board also. Next I
> compiled ELDK 3.0 for Sandpoint 8245 board and copied to flash. But
> linux hangs after uncompressing
> 
> U-Boot 1.1.2 (Apr 14 2005 - 00:02:29)
> 
> CPU:   MPC8245 Revision 1.2 at 

MPC8245 custom board, Linux 2.4 kernel hangs after uncompressing

2005-04-21 Thread Atit_Shah
I forgot to mention this...u should do a soft reset. If you go about powering 
off and on your board your buffer will be flushed. But for a soft reset the 
contents will be retained.

-Original Message-
From: Sam Song [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 21, 2005 12:49 PM
To: Atit_Shah; kishorekrd at gmail.com
Cc: linuxppc-embedded at ozlabs.org
Subject: RE: MPC8245 custom board, Linux 2.4 kernel hangs after uncompressing 

Atit_Shah  wrote?
> 1. Check your log buffer...your console may not be
> initialized yet so all your printk are logged at a 
> particular memory location. Checkout the
> System.map file in the Linux folder for "log_buf".
> The address that you have there subtract it with 
> the kernel base address. Then in view your
> memory at that location. We used U-Boot so we gave
> the command
>   
>   md 

Interesting to me as well. I also have such a similar
problem. But I wanna to know how I can return to 
u-boot with software workaround after kernel hanging.
At least, I must power-off and power-on my target to
get back to u-boot console. If so, the last kernel 
printk message would lost IMHO.

Thanks,

Sam

P.S. Atit_Shah, if possibel, pls set your subscribing
setting  "...daily digest" as "no" to avoid reply
inconvenience on the title:)

_
Do You Yahoo!?
150??MP3
http://music.yisou.com/
???
http://image.yisou.com
1G??1000???
http://cn.rd.yahoo.com/mail_cn/tag/1g/*http://cn.mail.yahoo.com/event/mail_1g/


DISCLAIMER:
This email (including any attachments) is intended for the sole use of the 
intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE 
COMPANY INFORMATION. Any review or reliance by others or copying or 
distribution or forwarding of any or all of the contents in this message is 
STRICTLY PROHIBITED. If you are not the intended recipient, please contact the 
sender by email and delete all copies; your cooperation in this regard is 
appreciated.



Linuxppc-embedded Digest, Vol 8, Issue 56

2005-04-21 Thread Atit_Shah

Hi Kishore,

There are various things you can try.

1. Check your log buffer...your console may not be initialized yet so
all your printk are logged at a particular memory location. Checkout the
System.map file in the Linux folder for "log_buf". The address that you
have there subtract it with the kernel base address. Then in view your
memory at that location. We used U-Boot so we gave the command

md 

2. We used a tool called Code Warrior which helped us single step debug
the code, it didn't help us much though.

3. We had a problem with the RAM in burst mode. WolfGang would suggest
you check out if your RAM is operational. In our case we had to set some
flag in the U-Boot code for RAM in burst mode. We changed this flag and
it boots fine. Well almost.

Atit


Message: 5
Date: Wed, 20 Apr 2005 18:00:46 -0700
From: Kishore Devireddy <[EMAIL PROTECTED]>
Subject: MPC8245 custom board, Linux 2.4 kernel hangs after
uncompressing
To: linuxppc-embedded at ozlabs.org
Message-ID: <2cf2641f0504201800556805d2 at mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1

Hi

I am trying to run Embedded linux (ELDK) (2.4 kerenl) on a custom
powerpc board,
which is similar to Artis A3000 board. This board has
mpc8245(XPC8245LZY266B), natsemi 83815 ethernet, 4MB intel e28f320
flash, 16MB winbond w986432DH-6 SDRAM. So I configured and compiled
U-boot for A3000 borad. U-boot worked on my board also. Next I
compiled ELDK 3.0 for Sandpoint 8245 board and copied to flash. But
linux hangs after uncompressing

U-Boot 1.1.2 (Apr 14 2005 - 00:02:29)

CPU:   MPC8245 Revision 1.2 at 249.999 MHz: 16 kB I-Cache 16 kB D-Cache
Board: A3000 Local Bus at 99.999 MHz
I2C:   ready
DRAM:  16 MB
FLASH: Get flash bank 0 @ 0xffc0
Manuf. ID @ 0xff80: 0x0089
Device ID @ 0xff81: 0x0016
## Flash bank 0 at 0xffc0 sizes: 0x0040
protect monitor fff0 @ 4
protect environtment fffc @ 2
## Final Flash bank sizes: 0040
4 MB
  00  13  100b  0020  0200  ff
In:serial
Out:   serial
Err:   serial
Net:   natsemi: EEPROM contents:
           
dp83815#0
Warning: dp83815#0 MAC addresses don't match:
Address in SROM is FF:FF:FF:FF:FF:FF
Address in environment is  00:40:05:B0:F1:BA

A3000> tftpboot 40 uImage.eldk
Using dp83815#0 device
TFTP from server 192.168.1.124; our IP address is 192.168.1.54
Filename 'uImage.eldk'.
Load address: 0x40
Loading:
#
   #
   ###
done
Bytes transferred = 757926 (b90a6 hex)
A3000> bootm
## Booting image at 0040 ...
 Image Name:   Linux-2.4.25
 Image Type:   PowerPC Linux Kernel Image (gzip compressed)
 Data Size:757862 Bytes = 740.1 kB
 Load Address: 
 Entry Point:  
 Verifying Checksum ... OK
 Uncompressing Kernel Image ... OK

nothing happens after this until I reboot the board. I read u-boot FAQ
and configured bd_info structure same for both u-boot and Linux. I
found that CFG_IMMR is not applicable to MPC8245. I also used
clocks_in_mhz variable also before loading Linux. I am stuck here.
Could you please let me know what should I do next?

Thanks
Kishore


--

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

End of Linuxppc-embedded Digest, Vol 8, Issue 56



DISCLAIMER:
This email (including any attachments) is intended for the sole use of the 
intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE 
COMPANY INFORMATION. Any review or reliance by others or copying or 
distribution or forwarding of any or all of the contents in this message is 
STRICTLY PROHIBITED. If you are not the intended recipient, please contact the 
sender by email and delete all copies; your cooperation in this regard is 
appreciated.



Linux booting problem when initializing flash file system

2005-04-21 Thread Atit_Shah
Hi All,

I am using a board which has a ST Micro Electronics Flash
(M29W640DB) and when booting the Linux Kernel I get the following error:

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x:
0x0020 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0004:
0x22df instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000c:
0x0008 instead

Further such events for this erase block will not be printed
JFFS2: Erase block at 0x is not formatted. It will be erased
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0002:
0x0020 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00020004:
0x22df instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0002000c:
0x0008 instead

And it ends with

Cowardly refusing to erase blocks on filesystem with no valid JFFS2
nodes
Kernel panic: VFS: Unable to mount root fs on 1f:00
<0>Rebooting in 180 seconds..

The reference board using an AMD flash works fine. I selected the ST
Flash from make xconfig in Linux but the kernel crashes before it even
calls start_kernel.
Could somebody suggest wrong

Thanks
Atit




DISCLAIMER:
This email (including any attachments) is intended for the sole use of the 
intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE 
COMPANY INFORMATION. Any review or reliance by others or copying or 
distribution or forwarding of any or all of the contents in this message is 
STRICTLY PROHIBITED. If you are not the intended recipient, please contact the 
sender by email and delete all copies; your cooperation in this regard is 
appreciated.



RAM test - How to

2005-04-20 Thread Atit_Shah
Hi,

I am using a SDRAM having a port size 64 and size 32MB, and the
burst length is 4. I want to know how i can test my RAM for burst mode
operation. I have read in a couple of places that there is no sure RAM
test but there must be some reasonable test which can be performed to
atleast be sure that the RAM functions fine under burst mode.

Thanks 
Atit


DISCLAIMER:
This email (including any attachments) is intended for the sole use of the 
intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE 
COMPANY INFORMATION. Any review or reliance by others or copying or 
distribution or forwarding of any or all of the contents in this message is 
STRICTLY PROHIBITED. If you are not the intended recipient, please contact the 
sender by email and delete all copies; your cooperation in this regard is 
appreciated.



Impact of change n port size

2005-04-18 Thread Atit_Shah
Hi
Please IGNORE the "DISCLAIMER" which follows my mail, the company I work
for adds this and I don't know where in my mailbox setting I can disable
this option.
Atit 

-Original Message-
From: Eugene Surovegin [mailto:[EMAIL PROTECTED] 
Sent: Monday, April 18, 2005 11:22 AM
To: Atit_Shah
Subject: Re: Impact of change n port size

On Mon, Apr 18, 2005 at 10:01:27AM +0530, Atit_Shah wrote:

[snip] 

> DISCLAIMER:
> This email (including any attachments) is intended for the sole use 
> of the intended recipient/s and may contain material that is 
> CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance 
> by others or copying or distribution or forwarding of any or all of 
> the contents in this message is STRICTLY PROHIBITED. If you are not 
> the intended recipient, please contact the sender by email and 
> delete all copies; your cooperation in this regard is appreciated.

Please, remove this disclaimer when posting to mail list, and then 
I probably will be able to answer your questions.

-- 
Eugene


DISCLAIMER:
This email (including any attachments) is intended for the sole use of the 
intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE 
COMPANY INFORMATION. Any review or reliance by others or copying or 
distribution or forwarding of any or all of the contents in this message is 
STRICTLY PROHIBITED. If you are not the intended recipient, please contact the 
sender by email and delete all copies; your cooperation in this regard is 
appreciated.



Impact of change n port size

2005-04-18 Thread Atit_Shah
Hi All,

I have a kernel image which works perfectly for my reference
board. When I try to port the same image on my board I seem to be facing
problems. The only difference I see between the reference board and my
board is the port size and capacity of RAM. 
I have taken care of sending the right value for the RAM size
through BD_INFO. Would there be and where all would the change be, if
any, in the kernel code OR when I make the kernel image ie through "make
menuconfig" / "menu xconfig" required to be made for port size of RAM?
Out of curiosity what would be the change required for different
FLASH port size again on the kernel side.

Thanks and Regards
Atit


DISCLAIMER:
This email (including any attachments) is intended for the sole use of the 
intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE 
COMPANY INFORMATION. Any review or reliance by others or copying or 
distribution or forwarding of any or all of the contents in this message is 
STRICTLY PROHIBITED. If you are not the intended recipient, please contact the 
sender by email and delete all copies; your cooperation in this regard is 
appreciated.



Problem with linux porting

2005-04-05 Thread Atit_Shah
sorry the bus and input frequenies are same and its 100MHz. 

yes it is the clkin freq

-Original Message-
From: Eugene Surovegin [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 05, 2005 3:31 PM
To: Atit_Shah
Cc: linuxppc-embedded at ozlabs.org
Subject: Re: Problem with linux porting

On Tue, Apr 05, 2005 at 02:24:01PM +0530, Atit_Shah wrote:
> We are having a problem with porting of Linux.

[snip]

> 4. Frequency
> 
> Core:  346MHz
> 
> CPM:   198MHz
> 
> BUS:   99MHz
> 
> Input: 66MHz

What does "Input" clock mean?

If it's a CLKIN, why is Bus clock not equal to it?

--
Eugene

** 
This email (including any attachments) is intended for the sole use of the
intended recipient/s and may contain material that is CONFIDENTIAL AND
PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or
distribution or forwarding of any or all of the contents in this message is
STRICTLY PROHIBITED. If you are not the intended recipient, please contact
the sender by email and delete all copies; your cooperation in this regard
is appreciated.
**
-- next part --
An HTML attachment was scrubbed...
URL: 
http://ozlabs.org/pipermail/linuxppc-embedded/attachments/20050405/26a12482/attachment.htm
 


Problem with linux porting

2005-04-05 Thread Atit_Shah
Hi All,

 

We are having a problem with porting of Linux.

 

We are using the Linux kernel image modified to work on an EP8248 (having
the MPC8248 Processor) Board. We have our board configured the same as the
EP8248 board. We have made no changes to the Kernel Image and it crashes.
The last message it shows on the console is "Uncompressing Kernelok" and
the console log_buffer has the following: 

 

"<6>Memory BAT mapping: BAT2=32Mb, BAT3=0Mb, residual: 0Mb.

<4>Oops: kernel access of bad area, sig: 11.<4>NIP:  XER: 
LR:  SP:  REGS: c015 TRAP: Not tainted.<4>MSR:
 EE: 0PR: 0 FP: 0 ME:0 IR/DR: 00.<4> TASK = c014f470[0] 'swapper'
Last syscall: 0 .<4>last math  last altivec .<4>Call
backtrace: 0004 ."

 

 

The EP8248 Board have the following configurations:

 

1. 8MB Flash 

Port Size = 32 Bit

Bottom Boot

 

2. 16MB SDRAM 

Port Size = 32 Bit

 

3. EEPROM

 

4. Frequency

Core:  346MHz

CPM:   198MHz

BUS:   99MHz

Input: 66MHz

 

5. Memory Map 

=

Memory RegionSize   Address Range

=

SDRAM16MByte_ - 00FF_

Flash8MByte  FF80_ - _

 

 

The board we are using has 

 

1. 16MB Flash 

Port Size = 32 Bit

Bottom Boot

 

2. 32MB SDRAM 

Port Size = 64 Bit

 

3. No EEPROM

 

4. Frequency

Core:  400MHz

CPM:   200MHz

BUS:   100MHz

Input: 100MHz   

 

5. Memory Map 

=

Memory RegionSizeAddress
Range 

==

SDRAM32MByte   _ -
01FF_

Flash16MByte   FF00_ -
_

 

 

The value of the IMMR in HCRW is both boards is configured to 0xF000.
The value of IMAP_ADDR in linux/arch/ppc/platforms/ep8248.h and
u-boot/include/configs/ep8248.h is 0xF000. The BD_INFO structure and the
values are being passed perfectly from u-boot to Linux. The cmd_start and
cmd_end are also perfect - verified using the memory dump command in u-boot.


 

We have performed RAM test through u-boot and it has passed it.

 

We would be grateful if somebody could throw more light on where we are
going wrong and help us successful port Linux. If you require any more info
i would be more than glad to provide you with the same.

 

Thanks and Regards

Atit

 

 

 

 



 

** 
This email (including any attachments) is intended for the sole use of the
intended recipient/s and may contain material that is CONFIDENTIAL AND
PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or
distribution or forwarding of any or all of the contents in this message is
STRICTLY PROHIBITED. If you are not the intended recipient, please contact
the sender by email and delete all copies; your cooperation in this regard
is appreciated.
**
-- next part --
An HTML attachment was scrubbed...
URL: 
http://ozlabs.org/pipermail/linuxppc-embedded/attachments/20050405/c0f22e94/attachment.htm
 


Linux crashes during memory mapping

2005-03-31 Thread Atit_Shah
 7369673af bad area, sig:
00178254: 2031310a 3c343e4e 49503a20 30303030 11.<4>NIP: 
00178264: 30303031 20584552 3a203030 303030300001 XER: 00
00178274: 3030204c 523a2043 30313530 3044302000 LR: C01500D0 
00178284: 53503a20 46464646 46434330 20524547SP: FCC0 REG
00178294: 533a2063 30313530 30303020 54524150S: c015 TRAP
001782a4: 3a203130 33322020 20204e6f 74207461: 1032Not ta
001782b4: 696e7465 640a3c34 3e4d5352 3a20inted.<4>MSR: ff
001782c4:  2045 453a2031 2050523aff EE: 1 PR:
001782d4: 20312046 503a2031 204d453a 20312049 1 FP: 1 ME: 1 I
001782e4: 522f4452 3a203131 0a3c343e 5441534bR/DR: 11.<4>TASK
001782f4: 203d2063 30313466 3437305b 305d2027 = c014f470[0] '
00178304: 73772720 4c617374 20737973 63616c6csw' Last syscall
00178314: 3a202d31 30373337 31383034 30200a3c: -1073718040 .<
00178324: 343e6c61 7374206d 61746820 303030304>last math 
00178334: 30303030 206c6173 7420616c 74697665 last altive
00178344: 63203030 30303030 30300a3c 343ec .<4>..
00178354: c015 02c0c015 0200 

4. Below is our register values:

HRCW0x0c42020a
IMMR0xF000
SYPCR   0x0681
SCCR0x0001
RMR 0x  
BCR 0x0010 
HID00xcc88 /*Initial*/
HID00x8008 /*Final*/

# Flash - CS0 
BR0 0xFe001801
OR0 0xFe000880 

# SDRAM - CS1 
OR1 0xFE002EC0 
BR1 0x0041 


PSRT0x27 
MPTPR   0x2500

# cbr refresh
PSDMR   0xC24A24A2 
SIUMCR  0x01230200  

MSR 0xB942

Awaiting prompt reply, 
Atit

-Original Message-
From: Steven Blakeslee [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 31, 2005 6:23 PM
To: Atit_Shah; linuxppc-embedded at ozlabs.org
Subject: RE: Linux crashes during memory mapping

>   I do not have any problem with the functioning of U-Boot but
Linux crashes after   
> printing "Uncompressing Kernel ... OK" and then it seems that nothing
is happening.

Do you have the SYPCR(serial watch dog timer) disabled?




>   3. The memory map of the VPN Board (MY BOARD) is as folllows: 
>
= 
>   Memory RegionSize
Address Range 
>
== 
>   SDRAM32MByte  _
-- 01FF_  
>   Flash32MByte  FF00_
-- _   

Have you done a full test to make sure your RAM is correctly mapped?

  

>   This is what the console log buffer has shown: 
>
= 
>   md 0x00177e34 
>
>   00177e34: 3c363e6d 73746172 743d303c 363e6d73
<6>mstart=0<6>ms 
>   00177e44: 697a653d 303c363e 66737461 72743d30
ize=0<6>fstart=0 
>   00177e54: 3c363e66 73697a65 3d303c36 3e696d6d
<6>fsize=0<6>imm 
>   00177e64: 723d303c 363e626f 74666c61 673d303c
r=0<6>botflag=0< 
>   00177e74: 363e6970 6164643d 303c363e 65616464
6>ipadd=0<6>eadd 
>   00177e84: 3d633031 35303032 383c363e 65737065
=c0150028<6>espe 
>   00177e94: 643d303c 363e696e 6974663d 303c363e
d=0<6>initf=0<6> 
>   00177ea4: 62757366 3d303c36 3e63706d 663d303c
busf=0<6>cpmf=0< 
>   00177eb4: 363e6272 67663d30 3c363e73 6363663d
6>brgf=0<6>sccf= 
>   00177ec4: 303c363e 76636f3d 303c363e 62617564
0<6>vco=0<6>baud 
>   00177ed4: 3d304f6f 70733a20 6b65726e 656c2061=0Oops: kernel
a 

These values do not look correct.  Everything is zero.
** 
This email (including any attachments) is intended for the sole use of the
intended recipient/s and may contain material that is CONFIDENTIAL AND
PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or
distribution or forwarding of any or all of the contents in this message is
STRICTLY PROHIBITED. If you are not the intended recipient, please contact
the sender by email and delete all copies; your cooperation in this regard
is appreciated.
**
-- next part --
An HTML attachment was scrubbed...
URL: 
http://ozlabs.org/pipermail/linuxppc-embedded/attachments/20050331/cdedc379/attachment.htm
 


Linux crashes during memory mapping

2005-03-31 Thread Atit_Shah
Hi All,
  
 I am trying to port the EP8248 Linux image (which works perfectly on the
EP8248 board) on the VPN board (In house board) which is mpc8248 based
board. 

I do not have any problem with the functioning of U-Boot but Linux crashes
after printing "Uncompressing Kernel ... OK" and then it seems that nothing
is happening.

It would be great if u could help me resolve the issue. The following is how
i have configured my board:
 

1. The value of the IMMR in HCRW is configured to 0xF000 (which is same
as in the ep8248 image). The value of IMAP_ADDR in
linux/arch/ppc/platforms/ep8248.h and u-boot/include/configs/ep8248.h is
0xF000

 

2. The memory map of EP8248 board (REFERENCE BOARD) is :
=
Memory RegionSize  Address Range

=
SDRAM16MByte  _ -- 07FF_

Flash8MByte   FF80_ -- _




3. The memory map of the VPN Board (MY BOARD) is as folllows:
=
Memory RegionSize  Address Range

==
SDRAM32MByte  _ -- 01FF_

Flash32MByte  FF00_ -- _

 

>From the u-boot the parameters passed to the kernel (pointer to a function
which actually starts loading the kernel image) are :

(*kernel) (kbd, initrd_start, initrd_end, cmd_start, cmd_end);

   kbd(ptr to board info strcture), 
   initrd_start   (=0, as in our case we dont have any ramdisk),

   initrd_end (=0), 
   cmd_start  (Start of command line string), 
   cmd_end  (End of command line string)

 
4. Board Info Structure defined in u-boot (/include/asm-ppc/u-boot.h) and
Linux (include/asm-ppc/ep8248.h) are the same and is passed correctly from
u-boot to Linux. 
 

By putting some Printk's I had cheacked that control is reaching to the
function mapin_ram(void) in file arch/ppc/mm/pgtable.c

Here it is supposed to map the 32 MB of virtual memory to the Physical
memory.

The control does not leave the for loop in which the memory mapping takes
place.


This is what the console log buffer has shown:
=
md 0x00177e34 

00177e34: 3c363e6d 73746172 743d303c 363e6d73<6>mstart=0<6>ms
00177e44: 697a653d 303c363e 66737461 72743d30ize=0<6>fstart=0
00177e54: 3c363e66 73697a65 3d303c36 3e696d6d<6>fsize=0<6>imm
00177e64: 723d303c 363e626f 74666c61 673d303cr=0<6>botflag=0<
00177e74: 363e6970 6164643d 303c363e 656164646>ipadd=0<6>eadd
00177e84: 3d633031 35303032 383c363e 65737065=c0150028<6>espe
00177e94: 643d303c 363e696e 6974663d 303c363ed=0<6>initf=0<6>
00177ea4: 62757366 3d303c36 3e63706d 663d303cbusf=0<6>cpmf=0<
00177eb4: 363e6272 67663d30 3c363e73 6363663d6>brgf=0<6>sccf=
00177ec4: 303c363e 76636f3d 303c363e 626175640<6>vco=0<6>baud
00177ed4: 3d304f6f 70733a20 6b65726e 656c2061=0Oops: kernel a
00177ee4: 63636573 73206f66 20626164 20617265ccess of bad are
00177ef4: 612c2073 69673a20 31310a3c 343e4e49a, sig: 11.<4>NI
00177f04: 503a2030 30303030 30303020 5845523aP:  XER:
00177f14: 20303030 30303030 30204c52 3a203030  LR: 00
00177f24: 30303030 30302053 503a2030 3030303000 SP: 0
00177f34: 30303020 52454753 3a206330 31353030000 REGS: c01500
00177f44: 30302054 5241503a 20303030 3020202000 TRAP:    
00177f54: 204e6f74 20746169 6e746564 0a3c343e Not tainted.<4>
00177f64: 4d53523a 20303030 30303030 30204545MSR:  EE
00177f74: 3a203020 50523a20 30204650 3a203020: 0 PR: 0 FP: 0 
00177f84: 4d453a20 30204952 2f44523a 2030300aME: 0 IR/DR: 00.
00177f94: 3c343e54 41534b20 3d206330 31346634<4>TASK = c014f4
00177fa4: 37305b30 5d202773 77617070 6572272070[0] 'swapper' 
00177fb4: 4c617374 20737973 63616c6c 3a203020Last syscall: 0 
00177fc4: 0a3c343e 6c617374 206d6174 68203030.<4>last math 00
00177fd4: 30303030 3030206c 61737420 616c746900 last alti
00177fe4: 76656320 30303030 30303030 0a3c343evec .<4>
00177ff4: 43616c6c 20626163 6b747261 63653a20Call backtrace: 
00178004: 30303030 30303034 200a3c34 3e4f6f700004 .<4>Oop
00178014: 733a206b 65726e65 6c206163 63657373s: kernel access
00178024: 206f6620 62616420 61726561 2c207369 of bad area, si
00178034: 673a2031 310a3c34 3e4e4950 3a204330g: 11.<4>NIP: C0
00178044: 31353030 43302058 45523a20 433031351500C0 XER: C015
00178054: 30304138 204c523a 20303330 3030304300A8 LR: 03C
00178064: 30205350 3a203030 30333030 303120520 SP: 00030001 R
001