Re: [U-Boot-Users] UBOOT port to i.MX27ADS - NAND issues

2008-11-01 Thread Tiju
Hi Sascha,


   Can you access the NAND device? Before trying to boot from the device
   should make sure that it works using normal U-Boot commands.
  
  The only command related to the nand flash when I type help is nand. 
  Could 
 you please tell me some commands to read and write the nand that would work 
 from 
 the uboot prompt? Where could I find more info on this?
 
 Well the trick is that There are no other commands for nand. When the NAND
 device is initialized you should have a /dev/nand0. From there on you
 can partition the device using addpart, for example like this:
 
 addpart /dev/nand0 256k(uboot),256k(ubootenv),2M(kernel),-(root)
 
 This gives you the partition devices /dev/nand0.uboot and so on. You
 then add bad block aware devices ontop of these partitions:
 
 nand -a /dev/nand0.*
 
 You can use the standard commands like erase / cp / md on these devices.

I did the same. When I do a devinfo, I get: 

uboot:/ devinfo
devices:
|cs0
|mem
|nor0
||self0
|`env0
|ram0
|eth0
|phy0
|nand0
||nand0.uboot
||`nand0..uboot.bb
||nand0.ubootenv
||`nand0.ubootenv.bb
||nand0.kernel
||`nand0.kernel.bb
|`nand0.root
||`nand0.root.bb
|defaultenv
|filesystem: /
|filesystem: /dev

drivers:
imx_serial
 partition
 fec_imx27
miiphy
nand_device
  imx_nand
 cfi_flash
   imx_spi
   mc13783
   mem
   ram
   rom
   nand_bb
 ramfs
 devfs

Now, when I use the cp command, I get

uboot:/ cp env/config dev/nand0.uboot.bb
write: I/O error
uboot:/

Is the the right way of doing it, or is there any other step I am missing out. 
I tried the same with the Samsung device but it gives the same error.

Thanks in advance.
Tiju


  Be the first one to try the new Messenger 9 Beta! Go to 
http://in.messenger.yahoo.com/win/


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


[U-Boot-Users] UBOOT port to i.MX27ADS - NAND issues

2008-10-31 Thread Tiju
Hi Sascha,

The Nand port to imx27ads is booting when I use a Samsung device (128MiB, 3.3V, 
8-bit, 512page).

Now my requirement is to boot from a Micron device (256MiB, 3.3V, 8-bit, 2k 
page). Part num: MT29F2G08AAD

I modified the line in imx27ads.c to

imx_nand_load_image((void *)TEXT_BASE, 256 * 1024, 2048, (2048 * 64)); //256MB, 
2K

Q Is this correct?

I have also commented some lines in nand_get_flash_type which checks the 
Manf./device ID again!

Once modified, I loaded the image to the RAM location 0xa7f0 and executed. 
I get the following output.

**
U-Boot 2.0.0-rc5-git (Oct 31 2008 - 09:03:01)

Board: Freescale i.MX27 ADS
cfi_probe: cfi_flash base: 0xc000 size: 0x0200
NAND device: Manufacturer ID: 0x2c, Chip ID: 0xda (Micron NAND 256MiB 3,3V 
8-bit)
Scanning device for bad blocks
Using environment in NAND Flash
chip id: [1,882,1,01d]
mpll: 398999390 Hz
spll: 23725 Hz
arm:  398999390 Hz
perclk1:   2910 Hz
perclk2:   26599959 Hz
perclk3:   66499898 Hz
perclk4:   26599959 Hz
clkin26:   2600 Hz
ahb:  132999796 Hz
ipg:   66499898 Hz
Malloc space: 0xa7b0 - 0xa7f0 (size  4 MB)
Stack space : 0xa7af8000 - 0xa7b0 (size 32 kB)
envfs: wrong magic on /dev/env0
no valid environment found on /dev/env0. Using default environment
running /env/bin/init...
Usage:
  adds a partition table to a device

Hit any key to stop autoboot:  3

type update_kernel [imagename] to update kernel into flash
type udate_root [imagename] to update rootfs into flash

uboot:/
**

But once I program the uboot image to the micron flash, nothing seems to appear 
on the UART. I am using the Ronetix PEEDI JTAG programmer.

1. Is there anything/anywhere else I should modify the uboot code for the 
micron nand flash to boot?
2. How can I reduce the frequency of operation through uboot?
3. If I do single stepping, it seems that the first 2k data is being copied 
successfully from the SRAM to the DDR. But if I execute/give a go nothing 
appears on the UART, but PC=0x0004.
4. How can I introduce more delay between each NAND operation?
5. How do I enable the DEBUG functions in uboot? or how do I start debuging 
from this point onwards?

Help on these are very much appreciated.

Thank You,
Tiju



  Did you know? You can CHAT without downloading messenger. Go to 
http://in.webmessenger.yahoo.com/


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


Re: [U-Boot-Users] UBOOT port to i.MX27ADS - NAND issues

2008-10-31 Thread Tiju
Hi Sascha,


  
  The Nand port to imx27ads is booting when I use a Samsung device (128MiB, 
 3.3V, 8-bit, 512page).
 
 Great! Care to send patches? That would help answering further questions
 as well..

Sorry, I know its a basic question but how do I make a patch file? Else I can 
send you the file I modified.

  Now my requirement is to boot from a Micron device (256MiB, 3.3V, 8-bit, 2k 
 page). Part num: MT29F2G08AAD
  
  I modified the line in imx27ads.c to
  
  imx_nand_load_image((void *)TEXT_BASE, 256 * 1024, 2048, (2048 * 64)); 
 //256MB, 2K
 
 I don't know your NAND chip, so I can't say anything about the block
 size, but otherwiese it looks correct.

Thanks. I have verified that the block size is correct.

 Can you access the NAND device? Before trying to boot from the device
 should make sure that it works using normal U-Boot commands.

The only command related to the nand flash when I type help is nand. Could 
you please tell me some commands to read and write the nand that would work 
from the uboot prompt? Where could I find more info on this?

  But once I program the uboot image to the micron flash, nothing seems to 
 appear on the UART. I am using the Ronetix PEEDI JTAG programmer.
  
  1. Is there anything/anywhere else I should modify the uboot code for the 
 micron nand flash to boot?
 
 I think not, but then again, it would work, right?

I went through the code and could find only this to be modified. I am worried 
weather there are any timing related differences between the samsung and the 
micron.

 
  2. How can I reduce the frequency of operation through uboot?
 
 No.
You mean the frequency cannot be reduced?
 
  3. If I do single stepping, it seems that the first 2k data is being copied 
 successfully from the SRAM to the DDR. But if I execute/give a go nothing 
 appears on the UART, but PC=0x0004.
 
 Place a breakpoint after the first 2k are copied and single step
 further.

It looks if I single step all the 2K bytes are copied to DDR. But if I just 
execute, in the 2K everything copies except the first 512bytes.

Regards,
Tiju



  Connect with friends all over the world. Get Yahoo! India Messenger at 
http://in.messenger.yahoo.com/?wm=n/


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


Re: [U-Boot-Users] UBOOT port to i.MX27ADS - Network and NAND issues

2008-09-23 Thread Tiju
Hi Sascha,


  2. Is it possible to do a NAND boot on i.mx27ads board with uboot? 
  If so how can I do it?
 
 NAND support (including booting from NAND) has been tested on the
 phycore i.MX27 module. So the NAND driver inself is in place, only the
 board specific bits are missing.. You can use board/pcm038 as a 
 template.
  
  1. Which nand is used on the pcm038 board(vendor, pagesize, bus width)?
 It's a NAND device: Manufacturer ID: 0x20, Chip ID: 0x36 (ST Micro NAND 64MiB 
 1,8V 8-bit)
 
  2. Can modify these drivers for the mx27ads which has a samsung, x8, 
  512byte 
 page, 1Gb... or I have to integrate it totally from scartch?
 
 It should work in principle.. All you have to do is to find the bugs ;)
 I tried it once on my mx27ads but had no luck, but I didn't investigate

I modified the imx27ads/* for nand boot as in pcm038 and the 
drivers/nand/nand_base.c *maf_id and dev_id. Then it boots succesfully for the 
Samsung NAND on the ADS board.

  
U-Boot 2.0.0-rc5-git (Sep 23 2008 - 11:14:46)
Board: Freescale i.MX27 ADS
NAND device: Manufacturer ID: 0xec, Chip ID: 0x79 (Samsung NAND 128MiB 3,3V 
8-bit)
Scanning device for bad blocks
Bad eraseblock 6037 at 0x05e54000
Using environment in NAND Flash
chip id: [1,882,1,01d]
mpll: 398998U-Boot 2.0.0-rc5-git (Sep 23 2008 - 11:14:46)
envfs: wrong magic on /dev/env0
000 Hz
spll: 24000 Hz
arm:  132999333 Hz
perclk1:   66499666 Hz
perclk2:   66499666 Hz
perclk3:   66499666 Hz
perclk4:   66499666 Hz
clkin26:   2600 Hz
ahb:   66499666 Hz
ipg:   33249833 Hz
Malloc space: 0xa7b0 - 0xa7f0 (size  4 MB)
Stack space : 0xa7af8000 - 0xa7b0 (size 32 kB)
envfs: wrong magic on /dev/env0
Q Where can I specify my NAND/NOR/RAM details(size, sectors...) so that I can 
alter the configuration files. (In the previous version it was 
include/config/board.h. Now all those files seems to be empty.)

QWhy does the wrong magic on /dev/env0 happen? How to correct this?

Q How can I store uImage and the rootfilesystem on the NAND? Are there any 
commands for this?

I make a uImage with the following commands.
#/opt/OSELAS.Toolchain-1.1.1/arm-v4t-linux-gnueabi/gcc-4.1.2-glibc-2.5-kernel-2.6.18/bin/arm-v4t-linux-gnueabi-objcopy
 -O binary -R .note -R .comment -S vmlinux linux.bin
#gzip -9 linux.bin
#mkimage -A arm -O linux -T kernel -C gzip -a 0xA0008000 -e 0xA0008000 -n 
Linux kernel image -d linux.bin.gz uImage

Once the boot happens the following error messages come:
  
Hit any key to stop autoboot:  3 2 1
phy0: Link is up - 100/Full
TFTP from server 199.63.38.20; our IP address is 199.63.38.113
Filename 'uImage'.
Loading: *#
 ###T ###T ###
 error frame: 0xa7b02468 
0x0884
T T error frame: 0xa7b02480 0x0804
T ##T T 
 ##error frame: 0xa7b023c0 0x0890
T #error frame: 0xa7b02318 0x0884
T #error frame: 0xa7b02498 0x0890
T 
done
Bytes transferred = 1634718 (18f19e hex)
   Image Name:   Linux kernel image
   Created:  2008-09-23   6:50:16 UTC
   Data Size:1634654 Bytes =  1.6 MB
   Load Address: a0008000
   Entry Point:  a0008000
OK
commandline: console=ttymxc0,115200 
ip=199.63.38.113:199.63.38.20:199.63.38.1:255.255.255.0::: 
root=/dev/nfs nfsroot=199.63.38.20:/tftpboot/ltib,v3,tcp 
mtdparts=physmap-flash.0:256k(uboot)ro,128k(ubootenv),1536k(kernel),-(root);
imx_nand:256k(uboot)ro,128k(ubootenv),1536k(kernel),-(root)
arch_number: 846
Unimplemented compression type 1
handler returned!
uboot:/ Q Why is the tftp download breaking?

QI compress the linux image using gzip. Does'nt this version of uboot support 
gzip (because it says unimplemented compression type) or am I missing out 
something here?

Q How to enable GDB support in uboot?


Thanks and regards,
Tiju



  Download prohibited? No problem. CHAT from any browser, without download. 
Go to http://in.webmessenger.yahoo.com/


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


Re: [U-Boot-Users] UBOOT port to i.MX27ADS - Network and NAND issues

2008-09-23 Thread Tiju

Hi Sascha,
 
 
   2. Is it possible to do a NAND boot on i.mx27ads board with 
   uboot? 
 If so how can I do it?
  
  NAND support (including booting from NAND) has been tested on the
  phycore i.MX27 module. So the NAND driver inself is in place, only 
  the
  board specific bits are missing.. You can use board/pcm038 as a 
 template.
   
   1. Which nand is used on the pcm038 board(vendor, pagesize, bus width)?
  It's a NAND device: Manufacturer ID: 0x20, Chip ID: 0x36 (ST Micro NAND 
  64MiB 
 1,8V 8-bit)
  
   2. Can modify these drivers for the mx27ads which has a samsung, x8, 
   512byte 
 
  page, 1Gb... or I have to integrate it totally from scartch?
  
  It should work in principle. All you have to do is to find the bugs ;)
  I tried it once on my mx27ads but had no luck, but I didn't investigate
 
 I modified the imx27ads/* for nand boot as in pcm038 and the 
 drivers/nand/nand_base.c *maf_id and dev_id. Then it boots succesfully for 
 the 
 Samsung NAND on the ADS board.
 
  
 U-Boot 2.0.0-rc5-git (Sep 23 2008 - 11:14:46)
 Board: Freescale i.MX27 ADS
 NAND device: Manufacturer ID: 0xec, Chip ID: 0x79 (Samsung NAND 128MiB 3,3V 
 8-bit)
 Scanning device for bad blocks
 Bad eraseblock 6037 at 0x05e54000
 Using environment in NAND Flash
 chip id: [1,882,1,01d]
 mpll:    398998U-Boot 2.0.0-rc5-git (Sep 23 2008 - 11:14:46)
 envfs: wrong magic on /dev/env0
 000 Hz
 spll:    24000 Hz
 arm:      132999333 Hz
 perclk1:  66499666 Hz
 perclk2:  66499666 Hz
 perclk3:  66499666 Hz
 perclk4:  66499666 Hz
 clkin26:  2600 Hz
 ahb:      66499666 Hz
 ipg:      33249833 Hz
 Malloc space: 0xa7b0 - 0xa7f0 (size  4 MB)
 Stack space : 0xa7af8000 - 0xa7b0 (size 32 kB)
 envfs: wrong magic on /dev/env0
 Q Where can I specify my NAND/NOR/RAM details(size, sectors...) so that I 
 can 
 alter the configuration files. (In the previous version it was 
 include/config/.h. Now all those files seems to be empty.)
 

QWhy does the wrong magic on /dev/env0 happen? How to correct this?

 
Q How can I store uImage and the rootfilesystem on the NAND? Are there any 
commands for this?

 
 I make a uImage with the following commands.
 #/opt/OSELAS.Toolchain-1.1.1/arm-v4t-linux-gnueabi/gcc-4.1.2-glibc-2.5-kernel-2.6.18/bin/arm-v4t-linux-gnueabi-objcopy
  
 -O binary -R .note -R .comment -S vmlinux linux.bin
 #gzip -9 linux.bin
 #mkimage -A arm -O linux -T kernel -C gzip -a 0xA0008000 -e 0xA0008000 -n 
 Linux 
 kernel image -d linux.bin.gz uImage
 
 Once the boot happens the following error messages come:
  
 Hit any key to stop autoboot:  3 2 1
 phy0: Link is up - 100/Full
 TFTP from server 199.63.38.20; our IP address is 199.63.38.113
 Filename 'uImage'.
 Loading: *#
      ###T ###T ###
      error frame: 0xa7b02468 
0x0884
 T T error frame: 0xa7b02480 0x0804
 T ##T T 
 ##error frame: 0xa7b023c0 0x0890
 T #error frame: 0xa7b02318 0x0884
 T #error frame: 0xa7b02498 0x0890
 T 
 done
 Bytes transferred = 1634718 (18f19e hex)
    Image Name:  Linux kernel image
    Created:      2008-09-23  6:50:16 UTC
    Data Size:    1634654 Bytes =  1.6 MB
    Load Address: a0008000
    Entry Point:  a0008000
 OK
 commandline: console=ttymxc0,115200 
 ip=199.63.38.113:199.63.38.20:199.63.38.1:255.255.255.0::: 
 root=/dev/nfs nfsroot=199.63.38.20:/tftpboot/ltib,v3,tcp 
 mtdparts=physmap-flash.0:256k(uboot)ro,128k(ubootenv),1536k(kernel),-(root);
 imx_nand:256k(uboot)ro,128k(ubootenv),1536k(kernel),-(root)
 arch_number: 846
 Unimplemented compression type 1
 handler returned!
 uboot:/ 

Q Why is the tftp download breaking?
 
 QI compress the linux image using gzip. Does'nt this version of uboot 
 support 
 gzip (because it says unimplemented compression type) or am I missing out 
 something here?

I had not included the zlib support.. Once included the linux boots through 
tftp and nfs.

 
Q How to enable GDB support in uboot?
 
 
Thanks and regards,
Tiju



  Add more friends to your messenger and enjoy! Go to 
http://in.messenger.yahoo.com/invite/


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


Re: [U-Boot-Users] UBOOT port to i.MX27ADS - Network and NAND issues

2008-09-16 Thread Tiju
Hi Sascha,

  2. Is it possible to do a NAND boot on i.mx27ads board with uboot? If so 
  how 
 can I do it?
 
 NAND support (including booting from NAND) has been tested on the
 phycore i.MX27 module. So the NAND driver inself is in place, only the
 board specific bits are missing.. You can use board/pcm038 as a template.

Thanks. The network is up now. But when I try to compile using pcm038_defconfig 
(just to test the nand support) some errors are generated by the assembler. I 
am using the compiler from ptxdist. 

The command used is:

make ARCH=arm CROSS_COMPILE=/opt/OSELAS.Toolchain-1.1.1/arm-v4t-linux-gnueabi/
gcc-4.1.2-glibc-2..5-kernel-2.6.18/bin/arm-v4t-linux-gnueabi- pcm038_defconfig

and then when compiled the following errors occur.


CC  drivers/nand/nand_base.o
{standard input}: Assembler messages:
{standard input}:4130: Error: selected processor does not support `clz r2,r2'
{standard input}:4142: Error: selected processor does not support `clz r3,r3'
{standard input}:4143: Error: selected processor does not support `clz r1,r1'
make[2]: *** [drivers/nand/nand_base.o] Error 1
make[1]: *** [drivers/nand] Error 2
make: *** [drivers] Error 2

Is a different compiler version used in compiling with the nand support or 
anyother changes could solve the problem?

Thanks and Regards,
Tiju


  Connect with friends all over the world. Get Yahoo! India Messenger at 
http://in.messenger.yahoo.com/?wm=n/


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


[U-Boot-Users] Porting NAND drivers

2008-07-31 Thread Tiju
Hi All,

I am interested in writing a NAND flash driver for my freescale i.MX27ADS board 
in Redboot.

1. Could anyone suggest me wether it is possible to take the u-boot's NAND 
flash generic driver and modify it and port it for Samsung NAND flash in 
redboot?
2. Or is there an easier way I could start porting the NAND driver to i.MX27 
ADS board in redboot?

Any suggestion is greatly appreciated.
Thanks in advance.

Regards,
TJ



  Connect with friends all over the world. Get Yahoo! India Messenger at 
http://in.messenger.yahoo.com/?wm=n/


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


Re: [U-Boot-Users] i.MX27ADS patch/port for UBOOT

2008-07-29 Thread Tiju
Hi Robert,


  I have a freescale based MX27ADS development board. I am trying to
  port u-boot to this board.  Is there a port thats already available?
  If not kindly suggest what could be the nearest port to this board?
 
 There is an (incomplete) u-boot-v2 port for the ADS. Improvements are
 welcome.

How do I get the MX27ADS u-bootv2 patches?

Regards,
Tiju



  Did you know? You can CHAT without downloading messenger. Go to 
http://in.webmessenger.yahoo.com/


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


[U-Boot-Users] i.MX27ADS patch/port for UBOOT

2008-07-28 Thread Tiju
Hi,

I have a freescale based MX27ADS development board. I am trying to port u-boot 
to this board. 
Is there a port thats already available? If not kindly suggest what could be 
the nearest port to this board?

Thanks in advance.
TJ



  Did you know? You can CHAT without downloading messenger. Go to 
http://in.webmessenger.yahoo.com/


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


Re: [U-Boot-Users] Linux kernel startup (s3c24xx)

2008-04-14 Thread Tiju
Hi All,

I am using buildroot to create a cpio image. Following is the output.

Starting kernel ...

Uncompressing 
Linux
Linux version 2.6.24.4-default ([EMAIL PROTECTED]) (gcc version 4.2.1) #57 Tue 
Apr 15 08:58:38 IST 2008
CPU: ARM920T [41129200] revision 0 (ARMv4T), cr=7177
Machine: DPB2440
Warning: bad configuration page, trying to continue
Memory policy: ECC disabled, Data cache writeback
CPU S3C2440A (id 0x32440001)
S3C244X: core 405.000 MHz, memory 101.250 MHz, peripheral 50.625 MHz
S3C24XX Clocks, (c) 2004 Simtec Electronics
CLOCK: Slow mode (1.500 MHz), fast, MPLL on, UPLL on
CPU0: D VIVT write-back cache
CPU0: I cache: 16384 bytes, associativity 64, 32 byte lines, 8 sets
CPU0: D cache: 16384 bytes, associativity 64, 32 byte lines, 8 sets
Built 1 zonelists in Zone order, mobility grouping off.  Total pages: 4064
Kernel command line: root=/dev/ram0 rw console=ttySAC0,115200
irq: clearing pending ext status 0b00
irq: clearing subpending status 0003
irq: clearing subpending status 0002
PID hash table entries: 64 (order: 6, 256 bytes)
timer tcon=0050, tcnt a4ca, tcfg 0200,, usec 1e57
Console: colour dummy device 80x30
console [ttySAC0] enabled
Dentry cache hash table entries: 2048 (order: 1, 8192 bytes)
Inode-cache hash table entries: 1024 (order: 0, 4096 bytes)
Memory: 16MB = 16MB total
Memory: 12620KB available (2184K code, 342K data, 1032K init)
Security Framework initialized
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
net_namespace: 64 bytes
NET: Registered protocol family 16
S3C2440: Initialising architecture
S3C2440: IRQ Support
S3C2440: Clock Support, DVS off
S3C24XX DMA Driver, (c) 2003-2004,2006 Simtec Electronics
DMA channel 0 at c180, irq 33
DMA channel 1 at c1800040, irq 34
DMA channel 2 at c1800080, irq 35
DMA channel 3 at c18000c0, irq 36
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 512 (order: 0, 4096 bytes)
TCP bind hash table entries: 512 (order: -1, 2048 bytes)
TCP: Hash tables configured (established 512 bind 512)
TCP reno registered
audit: initializing netlink socket (disabled)
audit(1.975:1): initialized
VFS: Disk quotas dquot_6.5.1
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered (default)
s3c2440-uart.0: s3c2410_serial0 at MMIO 0x5000 (irq = 70) is a S3C2440
s3c2440-uart.1: s3c2410_serial1 at MMIO 0x50004000 (irq = 73) is a S3C2440
s3c2440-uart.2: s3c2410_serial2 at MMIO 0x50008000 (irq = 76) is a S3C2440
mice: PS/2 mouse device common for all mice
S3C2410 Watchdog Timer, (c) 2004 Simtec Electronics
s3c2410-wdt s3c2410-wdt: watchdog inactive, reset disabled, irq enabled
NET: Registered protocol family 1
NET: Registered protocol family 17
registered taskstats version 1
Freeing init memory: 1032K

Thats it. Nothing else appears. Keyboard is active. What could be the problem?

Thanks in advance.
Tiju





  Best Jokes, Best Friends, Best Food and more. Go to 
http://in.promos.yahoo.com/groups/bestofyahoo/


-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


[U-Boot-Users] Linux kernel startup

2008-04-07 Thread Tiju
Hi Harald,

The serial issues were solved. As u said, the problem was with the RTS/CTS. I 
disabled all the hardware control signals and some modifications with the 
relocation section in the start.S and it started working.

Now the issue is with the kernel CRC32 check. I compiled a kernel with the 
smdk2440 architecture and I do the following.

$ arm-linux-objcopy -O binary -R .note -R .comment -S vmlinux linux.bin
$ gzip -9 linux.bin
$../u-boot-1.3.2/tools/mkimage -A arm -O linux -T kernel -C gzip -a0x30008000 
-e 0x30008000 -n Linux kernel -d linux.bin.gz uImage.bin

The size of vmlinux is around 25MB. When converted to linux.bin it is 3GB, when 
gziped it is around 4MB and when done an mkimage it remains almost the same..

The output is as follows:

U-Boot 1.3.2 (Apr  7 2008 - 12:14:29)

DRAM:  128 MB
Flash: 32 MB
Using default environment

In:serial
Out:   serial
Err:   serial
Hit any key to stop autoboot:  0
## Booting image at 3300 ...
   Image Name:   Linux kernel
   Image Type:   ARM Linux Kernel Image (gzip compressed)
   Data Size:4271633 Bytes =  4.1 MB
   Load Address: 30008000
   Entry Point:  30008000
   Verifying Checksum ... Bad Data CRC

What ever kernel image I load it tells the same ie. Verifying Checksum ... Bad 
Data CRC. I even tried the uImage.bin which was available on openmoko site and 
the same error occurs.

Is the error with the bootloader or the kernel image? If so what are the 
changes to be done?

Thanks in advance.
Tiju




  Messenger blocked? Want to chat? Go to 
http://in.messenger.yahoo.com/webmessengerpromo.php-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Register now and save $200. Hurry, offer ends at 11:59 p.m., 
Monday, April 7! Use priority code J8TLD2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


Re: [U-Boot-Users] Linux kernel startup

2008-04-07 Thread Tiju
Hi Jerry,

This is indicating you have major link / memory map / coding issue(s). 
vmlinux should be around 1MB, not 25MB!  linux.bin should be around the 
same size as vmlinux.  Having linux.bin grow to be 3GB indicates it has 
major holes in it that objdump is filling with fill values.

Loading a 3GB image (compressed to 4MB or not) is simply not going to work.

I will look into the kernel sections and try to figure it out. It maybe the 
problem with my compiler.

But my other major problem is that, what ever be the size of the kernel, it 
gives me a Bad Data CRC. I tried with prebuild images from the openmoko 
(which are working images on openmoko 1.5MB) and still it shows me the same 
error. We have almost the same architecture as theirs. 

Does this have to do anything with the u-boot or some other issue?

Thank You,
Tiju.




  Meet people who discuss and share your passions. Go to 
http://in.promos.yahoo.com/groups/bestofyahoo/-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Register now and save $200. Hurry, offer ends at 11:59 p.m., 
Monday, April 7! Use priority code J8TLD2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


Re: [U-Boot-Users] Linux kernel startup

2008-04-07 Thread Tiju
Hi Harald,

Please see my other e-mail response about this.  I still believe there
might be some wrong memory / bus / core clock timing and or voltage
issues.  

We changed the memory clock to a lower frequency(90MHz to 67MHz) and the the 
Bad Data CRC error has gone. Thanks alot.
Our settings are: EXTCLK = 12MHz
  FCLK = 271 MHz
  HCLK = 67.75 MHz

please try to use u-boot's built-in memory verification code to
veryify your memory before trying to boot a kernel on it.
We will do this now.

We are writing the kernel image directly to the ram to 3300. Therefore as 
for now it is not copied from the flash.

Is the hardware a prototype of a new board, or is it proven, verified
hardware? 
Yes, the hardware is a new prototype.

The output now is as follows:

U-Boot 1..3.2 (Apr  7 2008 - 17:25:31)

DRAM:  128 MB
Flash: 32 MB
Using default environment

In:serial
Out:   serial
Err:   serial
Hit any key to stop autoboot:  0
## Booting image at 3300 ...
   Image Name:   Linux kernel
   Image Type:   ARM Linux Kernel Image (gzip compressed)
   Data Size:4278410 Bytes =  4.1 MB
   Load Address: 30008000
   Entry Point:  30008000
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK

Starting kernel ...

undefined instruction
pc : [30008018]  lr : [310117bc]
sp : 30fcfa78  ip : 30fcffb8 fp : 
r10: 0001  r9 : 30fcfe18 r8 : 30fcffdc
r7 : 31012ef4  r6 : 3340 r5 : 31019514  r4 : 31019511
r3 : 30008000  r2 : 3100 r1 : 016a  r0 : 
Flags: nzCv  IRQs off  FIQs off  Mode SVC_32
Resetting CPU ...


U-Boot 1.3.2 (Apr  7 2008 - 17:25:31)

DRAM:  128 MB
Flash: 32 MB
Using default environment

In:serial
Out:   serial
Err:   serial
Hit any key to stop autoboot:  0
## Booting image at 3300 ...
   Image Name:   Linux kernel
   Image Type:   ARM Linux Kernel Image (gzip compressed)
   Data Size:4278410 Bytes =  4.1 MB
   Load Address: 30008000
   Entry Point:  30008000
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK

Starting kernel ...

undefined instruction
pc : [30008018]  lr : [310117bc]
sp : 30fcfa78  ip : 30fcffb8 fp : 
r10: 0001  r9 : 30fcfe18 r8 : 30fcffdc
r7 : 31012ef4  r6 : 3340 r5 : 31019514  r4 : 31019511
r3 : 30008000  r2 : 3100 r1 : 016a  r0 : 
Flags: nzCv  IRQs off  FIQs off  Mode SVC_32
Resetting CPU ...

and it keeps on resetting. We further reduced the SDRAM frequency to 45 Mhz, 
but still the problem persist. Is it still the problem with the u-boot 
frequency or with the linux kernel?

Thanks again.
Tiju






  Save all your chat conversations.. Find them online at 
http://in.messenger.yahoo.com/webmessengerpromo.php-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Register now and save $200. Hurry, offer ends at 11:59 p.m., 
Monday, April 7! Use priority code J8TLD2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


[U-Boot-Users] Linux kernel startup

2008-04-06 Thread Tiju
Hi all,

After uboot comes up, I get stuck with the booting of linux kernel. The RAM 
range is from 0x3000-0x3800. Following are the steps I do to get the 
uImage.bin.

$ arm-linux-objcopy -O binary -R .note -R ..comment -S vmlinux linux.bin
$ gzip -9 linux.bin
$ ../u-boot-1.3.2/tools/mkimage -A arm -O linux -T kernel -C gzip -a 0x30008000 
-e 0x30008000 -n Linux kernel -d linux.bin.gz uImage.bin
Image Name:   Linux kernel
Created:  Sun Apr  6 12:19:12 2008
Image Type:   ARM Linux Kernel Image (gzip compressed)
Data Size:4271627 Bytes = 4171.51 kB = 4.07 MB
Load Address: 0x30008000
Entry Point:  0x30008000

After this I put the uImage.bin at 0x3300, restart uboot and I get:

U-Boot 1.3.2 (Apr  6 2008 - 12:03:10)

DRAM:  128 MB
Flash: 32 MB
Using default environment

In:serial
Out:   serial
Err:   serial
Hit any key to stop autoboot:  0
## Booting image at 3300 ...
   Image Name:   Linux kernel
   Image Type:   ARM Linux Kernel Image (gzip compressed)
   Data Size:4271627 Bytes =  4.1 MB
   Load Address: 30008000
   Entry Point:  30008000
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK

Starting kernel ...

undefined instruction
pc : [30808004]  lr : [3101175c]
sp : 30fcfaf8  ip : 30fcffb8 fp : 
r10: 0001  r9 : 30fcfe98 r8 : 30fcffdc
r7 : cf032d24  r6 : 3340 r5 : 31019544  r4 : 31019541
r3 : 30fcfe55  r2 : 3100 r1 : 016a  r0 : 
Flags: nzCv  IRQs off  FIQs off  Mode SVC_32
Resetting CPU ...

data abort
pc : [31010ca8]  lr : [31010d40]
sp : 30fcfa88  ip : 3101b06c fp : 
r10: 0001  r9 : 30fcfe98 r8 : 30fcffdc
r7 : cf032d24  r6 : 3340 r5 : 00658d7f  r4 : 00036042
r3 : 3101b070  r2 : 566d r1 : 3307  r0 : 32ff
Flags: nzCv  IRQs on  FIQs on  Mode SVC_32
Resetting CPU ...

data abort
pc : [31010ca8]  lr : [31010cf4]
sp : 30fcfa10  ip :  fp : 
r10: 0001  r9 : 30fcfe98 r8 : 30fcffdc
r7 : cf032d24  r6 : 3340 r5 : 30fcfa74  r4 : 
r3 : 3101b070  r2 : 30fcfa30 r1 : 3307  r0 : 3200
Flags: nzCv  IRQs on  FIQs on  Mode SVC_32
Resetting CPU ...

And it keeps on resetting the CPU.

Is it the problem with the settings of uboot or the kernel and what should I do 
to bring the linux kernel up? Where could I find more information regarding 
this?

Kindly help me out.

Thanks in advance.
Tiju




  Share files, take polls, and make new friends - all under one roof. Go to 
http://in.promos.yahoo.com/groups/-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Register now and save $200. Hurry, offer ends at 11:59 p.m., 
Monday, April 7! Use priority code J8TLD2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


[U-Boot-Users] Linux kernel startup

2008-04-06 Thread Tiju
Hi all,

Afteruboot comes up, I get stuck with the booting of linux kernel. The RAMrange 
is from 0x3000-0x3800. Following are the steps I do toget the 
uImage.bin.

$ arm-linux-objcopy -O binary -R .note -R .comment -S vmlinux linux.bin
$ gzip -9 linux.bin
$../u-boot-1.3.2/tools/mkimage -A arm -O linux -T kernel -C gzip -a0x30008000 
-e 0x30008000 -n Linux kernel -d linux.bin.gz uImage.bin
Image Name:   Linux kernel
Created:  Sun Apr  6 12:19:12 2008
Image Type:   ARM Linux Kernel Image (gzip compressed)
Data Size:4271627 Bytes = 4171.51 kB = 4.07 MB
Load Address: 0x30008000
Entry Point:  0x30008000

After this I put the uImage.bin at 0x3300, restart uboot and I get:
U-Boot 1.3.2 (Apr  6 2008 - 12:03:10)

DRAM:  128 MB
Flash: 32 MB
Using default environment

In:serial
Out:   serial
Err:   serial
Hit any key to stop autoboot:  0
## Booting image at 3300 ...
   Image Name:   Linux kernel
   Image Type:   ARM Linux Kernel Image (gzip compressed)
   Data Size:4271627 Bytes =  4.1 MB
   Load Address: 30008000
   Entry Point:  30008000
   Verifying Checksum ... Bad Data CRC
DPB2440 #

Isit the problem with the settings of uboot or the kernel and what shouldI do 
to bring the linux kernel up? Where could I find more informationregarding this?

Kindly help me out.

Thanks in advance.
Tiju







  Share files, take polls, and make new friends - all under one roof. Go to 
http://in.promos.yahoo.com/groups/-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Register now and save $200. Hurry, offer ends at 11:59 p.m., 
Monday, April 7! Use priority code J8TLD2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


Re: [U-Boot-Users] Linux kernel startup

2008-04-06 Thread Tiju
Hi Leon,

 We have seen both illegal instructions and crc errors for kernel  4
 MB on PowerPC.

Even when the kernel size is 1.09 MB the same BAD CRC error occurs.
Is it the error with the kernel  or the uboot itself. If so what could be the 
problem?
Output is as follows.

U-Boot 1.3.2 (Apr  7 2008 - 11:05:53)

DRAM:  128 MB
Flash: 32 MB
Using default environment

In:serial
Out:   serial
Err:   serial
Hit any key to stop autoboot:  0
## Booting image at 3300 ...
   Image Name:   Linux kernel
   Image Type:   ARM Linux Kernel Image (gzip compressed)
   Data Size:1141366 Bytes =  1.1 MB
   Load Address: 30008000
   Entry Point:  30008000
   Verifying Checksum ... Bad Data CRC


Any help will be appreciated.

Thanks in advance.
Tiju






  Share files, take polls, and make new friends - all under one roof. Go to 
http://in.promos.yahoo.com/groups/-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Register now and save $200. Hurry, offer ends at 11:59 p.m., 
Monday, April 7! Use priority code J8TLD2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


Re: [U-Boot-Users] s3c2440 -- serial_init

2008-04-04 Thread Tiju
Hi Vishal,

I am stuck with the Kernel load address and entry point. It keeps on resetting. 
Output as shown below.
My ram range is from 3000 to 3800.


U-Boot 1.3.2 (Apr  4 2008 - 18:02:03)

DRAM:  128 MB
Flash: 32 MB
Using default environment

In:serial
Out:   serial
Err:   serial
Hit any key to stop autoboot:  0
## Booting image at 3400 ...
   Image Name:   TIJU Linux-2.6.24.4 Image
   Image Type:   ARM Linux Kernel Image (gzip compressed)
   Data Size:4288104 Bytes =  4.1 MB
   Load Address: 3600
   Entry Point:  3600
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK

Starting kernel ...

undefined instruction
pc : [3790e004]  lr : [3101175c]
sp : 30fcfaf8  ip : 30fcffb8 fp : 
r10: 0001  r9 : 30fcfe98 r8 : 30fcffdc
r7 : 31012e94  r6 : 3440 r5 : 310194b4  r4 : 310194b1
r3 : 3600  r2 : 3100 r1 : 016a  r0 : 
Flags: nzCv  IRQs off  FIQs off  Mode SVC_32
Resetting CPU ...

data abort
pc : [31010ca8]  lr : [31010d40]
sp : 30fcfa88  ip : 3101afdc fp : 
r10: 0001  r9 : 30fcfe98 r8 : 30fcffdc
r7 : 31012e94  r6 : 3440 r5 : 0065ba3e  r4 : 00036042
r3 : 3101afe0  r2 : 00036042 r1 : 3707  r0 : 36ff
Flags: nzCv  IRQs on  FIQs on  Mode SVC_32
Resetting CPU ...

  
What could be the problem?

Thanks,
Tiju



- Original Message 
From: Vishal Oliyil Kunnil [EMAIL PROTECTED]
To: Tiju [EMAIL PROTECTED]
Sent: Friday, 4 April, 2008 1:42:30 PM
Subject: Re: [U-Boot-Users] s3c2440 -- serial_init

Hi Tiju,
Never used the controller either, but I suggest you try enabling the
debug macro
in the ethernet driver ...
CONFIG_DM9000_DEBUG

-- snip --
#ifdef CONFIG_DM9000_DEBUG
#define DM9000_DBG(fmt,args) printf(fmt ,##args)
#else   /*  */
#define DM9000_DBG(fmt,args...)
#endif  /*  */
--snip-

Regards,
Vishal
On Fri, Apr 4, 2008 at 12:35 PM, Tiju [EMAIL PROTECTED] wrote:

 Hi Vishal,

 No, the ethernet controller is outside the processor. We are using DM9000A.
 The link led does not glow when LAN cable is connected. Instead when we ping
 it glows, but does not ping correctly.

 Thank You,
 Tiju


 - Original Message 
 From: Vishal Oliyil Kunnil [EMAIL PROTECTED]
 To: Tiju [EMAIL PROTECTED]

 Sent: Thursday, 3 April, 2008 8:32:26 PM
 Subject: Re: [U-Boot-Users] s3c2440 -- serial_init

 Is the ethrnet core inside the processor ? (never used the smcx ...)
 Does ping work ? Does the link LED glow when you plug in the LAN cable ?

 Vishal

 On Thu, Apr 3, 2008 at 7:05 PM, Tiju [EMAIL PROTECTED] wrote:
 
  Hi Vishal,
 
  Thank You so much for your help. The u-boot is up and running from
 yesterday
  onwards. :)
  The network driver doesn't seem to work properly. Trying to figure it out.
  It says---
 
  DPB2440 # tftpboot
  dm9000 i/o: 0x1800, id: 0x9a46
  MAC: 00:e0:63:0e:56:78
  could not establish link
  TFTP from server 192.168.100.6; our IP address is 192.168.100.110
  Filename 'zImage'.
  Load address: 0x3400
  Loading: T T T #T T T T T T T
  Retry count exceeded; starting again
  TFTP from server 192.168..100.6; our IP address is 192.168.100.110
  Filename 'zImage'.
  Load address: 0x3400
  Loading: T T #T T T T T T T T
  
 
  Any idea what the problem is?
 
  Regards,
  Tiju
 
 
  - Original Message 
  From: Vishal Oliyil Kunnil [EMAIL PROTECTED]
  To: Tiju [EMAIL PROTECTED]
 
  Sent: Wednesday, 2 April, 2008 11:29:21 AM
  Subject: Re: [U-Boot-Users] s3c2440 -- serial_init
 
  Hi Tiju,
  You should not write the image to RAM. U-boot should re-locate by itself.
  What is the debugger that you use ? Try putting a breakpoint at address
  of start_armboot() - you can get the address by
  objdump -S u-boot.elf  u-boot.dump
  A memory dump should show contents of 0x0 anf 0x3100 to be same.
  Also I suggest you use a stable release of u-boot and not  U-Boot
  1.3.2-00046-g23e20aa-dirty.
 
  Regards,
  -Vishal
 
 
 
 
  On Wed, Apr 2, 2008 at 8:58 AM, Tiju [EMAIL PROTECTED] wrote:
  
   Hi Vishal,
  
   Thanks for the tips. After I compiling with TEXT_BASE=0x3100 and
   commenting
   - CONFIG_SKIP_LOWLEVEL_INIT
   - CONFIG_SKIP_RELOCATE_UBOOT it does not work directly. After this I
 just
   wrote the same image to the NOR flash as well as the RAM (starting from
   0x3100) then on the u-boot the following appears.
  
   U-Boot 1.3.2-00046-g23e20aa-dirty (Apr  1 2008 - 19:33:51)
  
   DRAM:  64 MB
   *** Warning - bad CRC, using default environment
  
   In:serial
   Out:  serial
   Err:  serial
   DPB2440 #
  
   After this it hangs. ie. no input or output.
  
   I think the initial problem to be taken care of is the relocation and
 then
   the serial. How do we go about these issues?
  
   Thanks in advance.
   Tiju
  
  
  
  
   - Original Message 
   From: Vishal

Re: [U-Boot-Users] s3c2440 -- serial_init

2008-03-30 Thread Tiju
 Hi Michael,

I have verified all the RAM initializations in  board/smdk2440/lowlevel_init.S 
and it seems to be fine. 
The other changes that I have done are

1. In the board/smdk2440/config.mk file I changed TEXT_BASE = 0x33F8 to 
TEXT_BASE = 0x because I am booting from the NOR flash. The NOR flash 
address range is 0x - 0x0800. The RAM address range is 0x3000 - 
0x3800.

If I compile it with TEXT_BASE = 0x33F8 it does not run at all!

2. When I changed this I found that it has a clash with the stack building in 
cpu/arm920t/start.S. Therefore I changed it to
.
/* Set up the stack */
stack_setup:
/*  ldr r0, _TEXT_BASE  */  /* upper 128 KiB: relocated uboot   */
mov r0, #0x33   /* make stack at 33F8*/
mov r0, r0, lsl #24
mov r1, #0xF8
mov r1, r1, lsl #16
orr r0, r0, r1
...

Would these be a problem for the memory initializations?

Thanks in advance
Tiju



 Hi all

 I am trying to port u-boot to a s3c2440 samsung processor.

 I applied the smdk2440 boards patch (almost similar architecture) and 
 trying to modify it for our board's requirement. But during the 
 serial_init it goes to the _serial_putc and then after certain loops 
 it goes to the hang function and hangs there.

 What could be the problem? Or am I doing some wrong initializations?


Are you sure that the memory inizializzation is correct?

Regards Michael




  5, 50, 500, 5000 - Store N number of mails in your inbox. Go to 
http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


Re: [U-Boot-Users] s3c2440 -- serial_init

2008-03-30 Thread Tiju
 Hi Michael,

I have verified all the RAM initializations in  board/smdk2440/lowlevel_init.S 
and it seems to be fine. 
The other changes that I have done are

1. In the board/smdk2440/config.mk file I changed TEXT_BASE = 0x33F8 to 
TEXT_BASE = 0x because I am booting from the NOR flash. The NOR flash 
address range is 0x - 0x0800. The RAM address range is 0x3000 - 
0x3800.

If I compile it with TEXT_BASE = 0x33F8 it does not run at all!

2. When I changed this I found that it has a clash with the stack building in 
cpu/arm920t/start.S. Therefore I changed it to
.
/* Set up the stack */
stack_setup:
/*  ldr r0, _TEXT_BASE  */  /* upper 128 KiB: relocated uboot   */
mov r0, #0x33   /* make stack at 33F8*/
mov r0, r0, lsl #24
mov r1, #0xF8
mov r1, r1, lsl #16
orr r0, r0, r1
...

Would these be a problem for the memory initializations?

Thanks in advance
Tiju



 Hi all

 I am trying to port u-boot to a s3c2440 samsung processor.

 I applied the smdk2440 boards patch (almost similar architecture) and 
 trying to modify it for our board's requirement. But during the 
 serial_init it goes to the _serial_putc and then after certain loops 
 it goes to the hang function and hangs there.

 What could be the problem? Or am I doing some wrong initializations?


Are you sure that the memory inizializzation is correct?

Regards Michael




  Unlimited freedom, unlimited storage. Get it now, on 
http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html/-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


[U-Boot-Users] How to patch u-boot?

2008-01-20 Thread Tiju
Hi

Could 
someone 
help 
me 
out 
with 
patching 
the 
u-boot.
I 
downloaded 
the 
source 
code 
of 
u-boot-1.1.6 
and 
untared 
it. 
Then 
I 
do 
a 
$cd 
u-boot-1.1.6
$svn 
co 
http://svn.openmoko.org/trunk/src/target/u-boot/patches/
$patch 
patches/boot-menu.patch
patching 
file 
bootmenu.c
can't 
find 
file 
to 
patch 
at 
input 
line 
154
Perhaps 
you 
should 
have 
used 
the 
-p 
or 
--strip 
option?
The 
text 
leading 
up 
to 
this 
was:
--
|Index: 
u-boot/board/neo1973/gta01/gta01.c
|===
|--- 
u-boot.orig/board/neo1973/gta01/gta01.c
|+++ 
u-boot/board/neo1973/gta01/gta01.c
--
File 
to 
patch:


This 
is 
what 
comes
Is 
this 
the 
way 
to 
do 
it? 
If 
not 
please 
help 
me 
with 
the 
steps 
to 
be 
followed.

Thankyou
Tiju 
Jacob




  Unlimited freedom, unlimited storage. Get it now, on 
http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html/

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


[U-Boot-Users] How to patch u-boot?

2008-01-18 Thread Tiju
Hi

Could someone help me out with patching the u-boot.
I downloaded the source code of u-boot-1.1.6 and untared it. Then I do a 
$cd u-boot-1.1.6
$svn co http://svn.openmoko.org/trunk/src/target/u-boot/patches/
$patch patches/boot-menu.patch
patching file bootmenu.c
can't find file to patch at input line 154
Perhaps you should have used the -p or --strip option?
The text leading up to this was:
--
|Index: u-boot/board/neo1973/gta01/gta01.c
|===
|--- u-boot.orig/board/neo1973/gta01/gta01.c
|+++ u-boot/board/neo1973/gta01/gta01.c
--
File to patch:


This is what comes
Is this the way to do it? If not please help me with the steps to be followed.

Thankyou
Tiju Jacob




  Now you can chat without downloading messenger. Go to 
http://in.messenger.yahoo.com/webmessengerpromo.php

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users