<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">Hi Vishal,<br><br>I am stuck with the Kernel load address and entry point. It keeps on resetting. Output as shown below.<br>My ram range is from 30000000 to 38000000.<br><br><br>U-Boot 1.3.2 (Apr 4 2008 - 18:02:03)<br><br>DRAM: 128 MB<br>Flash: 32 MB<br>Using default environment<br><br>In: serial<br>Out: serial<br>Err: serial<br>Hit any key to stop autoboot: 0<br>## Booting image at 34000000 ...<br> Image Name: TIJU Linux-2.6.24.4 Image<br> Image Type: ARM Linux Kernel Image (gzip compressed)<br> Data Size: 4288104 Bytes = 4.1 MB<br> Load Address:
36000000<br> Entry Point: 36000000<br> Verifying Checksum ... OK<br> Uncompressing Kernel Image ... OK<br><br>Starting kernel ...<br><br>undefined instruction<br>pc : [<3790e004>] lr : [<3101175c>]<br>sp : 30fcfaf8 ip : 30fcffb8 fp : 00000000<br>r10: 00000001 r9 : 30fcfe98 r8 : 30fcffdc<br>r7 : 31012e94 r6 : 34000040 r5 : 310194b4 r4 : 310194b1<br>r3 : 36000000 r2 : 30000100 r1 : 0000016a r0 : 00000000<br>Flags: nzCv IRQs off FIQs off Mode SVC_32<br>Resetting CPU ...<br><br>data abort<br>pc : [<31010ca8>] lr : [<31010d40>]<br>sp : 30fcfa88 ip : 3101afdc fp : 00000000<br>r10: 00000001 r9 :
30fcfe98 r8 : 30fcffdc<br>r7 : 31012e94 r6 : 34000040 r5 : 0065ba3e r4 : 00036042<br>r3 : 3101afe0 r2 : 00036042 r1 : 00003707 r0 : 000036ff<br>Flags: nzCv IRQs on FIQs on Mode SVC_32<br>Resetting CPU
...<br> <br>What could be the problem?<br><br>Thanks,<br>Tiju<br><br><br><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">----- Original Message ----<br>From: Vishal Oliyil Kunnil <vishal.ok@gmail.com><br>To: Tiju <tj_jac@yahoo.co.in><br>Sent: Friday, 4 April, 2008
1:42:30 PM<br>Subject: Re: [U-Boot-Users] s3c2440 -- serial_init<br><br>Hi Tiju,<br>Never used the controller either, but I suggest you try enabling the<br>debug macro<br>in the ethernet driver ...<br>CONFIG_DM9000_DEBUG<br><br>-- snip --<br>#ifdef CONFIG_DM9000_DEBUG<br>#define DM9000_DBG(fmt,args....) printf(fmt ,##args)<br>#else /* */<br>#define DM9000_DBG(fmt,args...)<br>#endif /* */<br>--snip-<br><br>Regards,<br>Vishal<br>On Fri, Apr 4, 2008 at 12:35 PM, Tiju <<a ymailto="mailto:tj_jac@yahoo.co.in" href="mailto:tj_jac@yahoo.co.in">tj_jac@yahoo.co.in</a>> wrote:<br>><br>> Hi Vishal,<br>><br>> No, the ethernet controller is outside the processor. We are using DM9000A.<br>> The link led does not glow when LAN cable is connected. Instead when
we ping<br>> it glows, but does not ping correctly.<br>><br>> Thank You,<br>> Tiju<br>><br>><br>> ----- Original Message ----<br>> From: Vishal Oliyil Kunnil <<a ymailto="mailto:vishal.ok@gmail.com" href="mailto:vishal.ok@gmail.com">vishal.ok@gmail.com</a>><br>> To: Tiju <<a ymailto="mailto:tj_jac@yahoo.co.in" href="mailto:tj_jac@yahoo.co.in">tj_jac@yahoo.co.in</a>><br>><br>> Sent: Thursday, 3 April, 2008 8:32:26 PM<br>> Subject: Re: [U-Boot-Users] s3c2440 -- serial_init<br>><br>> Is the ethrnet core inside the processor ? (never used the smcx ...)<br>> Does ping work ? Does the link LED glow when you plug in the LAN cable ?<br>><br>> Vishal<br>><br>> On Thu, Apr 3, 2008 at 7:05 PM, Tiju <<a ymailto="mailto:tj_jac@yahoo.co.in" href="mailto:tj_jac@yahoo.co.in">tj_jac@yahoo.co.in</a>> wrote:<br>> ><br>> > Hi Vishal,<br>> ><br>> > Thank You so much for your
help. The u-boot is up and running from<br>> yesterday<br>> > onwards. :)<br>> > The network driver doesn't seem to work properly. Trying to figure it out.<br>> > It says---<br>> ><br>> > DPB2440 # tftpboot<br>> > dm9000 i/o: 0x18000000, id: 0x90000a46<br>> > MAC: 00:e0:63:0e:56:78<br>> > could not establish link<br>> > TFTP from server 192.168.100.6; our IP address is 192.168.100.110<br>> > Filename 'zImage'.<br>> > Load address: 0x34000000<br>> > Loading: T T T #T T T T T T T<br>> > Retry count exceeded; starting again<br>> > TFTP from server 192.168.100.6; our IP address is 192..168.100.110<br>> > Filename 'zImage'.<br>> > Load address: 0x34000000<br>> > Loading: T T #T T T T T T T T<br>> > ....<br>> ><br>> > Any idea what the problem is?<br>> ><br>> > Regards,<br>> > Tiju<br>> ><br>> ><br>> >
----- Original Message ----<br>> > From: Vishal Oliyil Kunnil <<a ymailto="mailto:vishal.ok@gmail.com" href="mailto:vishal.ok@gmail.com">vishal.ok@gmail.com</a>><br>> > To: Tiju <<a ymailto="mailto:tj_jac@yahoo.co.in" href="mailto:tj_jac@yahoo.co.in">tj_jac@yahoo.co.in</a>><br>> ><br>> > Sent: Wednesday, 2 April, 2008 11:29:21 AM<br>> > Subject: Re: [U-Boot-Users] s3c2440 -- serial_init<br>> ><br>> > Hi Tiju,<br>> > You should not write the image to RAM. U-boot should re-locate by itself.<br>> > What is the debugger that you use ? Try putting a breakpoint at address<br>> > of start_armboot() -> you can get the address by<br>> > objdump -S u-boot.elf > u-boot.dump<br>> > A memory dump should show contents of 0x0 anf 0x31000000 to be same.<br>> > Also I suggest you use a stable release of u-boot and not U-Boot<br>> >
1.3.2-00046-g23e20aa-dirty.<br>> ><br>> > Regards,<br>> > -Vishal<br>> ><br>> ><br>> ><br>> ><br>> > On Wed, Apr 2, 2008 at 8:58 AM, Tiju <<a ymailto="mailto:tj_jac@yahoo.co.in" href="mailto:tj_jac@yahoo.co.in">tj_jac@yahoo.co.in</a>> wrote:<br>> > ><br>> > > Hi Vishal,<br>> > ><br>> > > Thanks for the tips. After I compiling with TEXT_BASE=0x31000000 and<br>> > > commenting<br>> > > - CONFIG_SKIP_LOWLEVEL_INIT<br>> > > - CONFIG_SKIP_RELOCATE_UBOOT it does not work directly. After this I<br>> just<br>> > > wrote the same image to the NOR flash as well as the RAM (starting from<br>> > > 0x31000000) then on the u-boot the following appears.<br>> > ><br>> > > U-Boot 1.3.2-00046-g23e20aa-dirty (Apr 1 2008 - 19:33:51)<br>> > ><br>> > > DRAM: 64 MB<br>> > > ***
Warning - bad CRC, using default environment<br>> > ><br>> > > In: serial<br>> > > Out: serial<br>> > > Err: serial<br>> > > DPB2440 #<br>> > ><br>> > > After this it hangs. ie. no input or output.<br>> > ><br>> > > I think the initial problem to be taken care of is the relocation and<br>> then<br>> > > the serial. How do we go about these issues?<br>> > ><br>> > > Thanks in advance.<br>> > > Tiju<br>> > ><br>> > ><br>> > ><br>> > ><br>> > > ----- Original Message ----<br>> > > From: Vishal Oliyil Kunnil <<a ymailto="mailto:vishal.ok@gmail..com" href="mailto:vishal.ok@gmail.com">vishal.ok@gmail.com</a>><br>> > > To: Tiju <<a ymailto="mailto:tj_jac@yahoo.co.in" href="mailto:tj_jac@yahoo.co.in">tj_jac@yahoo.co.in</a>><br>> >
><br>> > > Sent: Monday, 31 March, 2008 6:31:43 PM<br>> > > Subject: Re: [U-Boot-Users] s3c2440 -- serial_init<br>> > ><br>> > > Tiju,<br>> > ><br>> > > Read the documentation:<br>> > > ----- snip - README -----<br>> > > - CONFIG_SKIP_LOWLEVEL_INIT<br>> > > - CONFIG_SKIP_RELOCATE_UBOOT<br>> > > [ARM only] If these variables are defined, then<br>> > > certain low level initializations (like setting up<br>> > > the memory controller) are omitted and/or U-Boot does<br>> > > not relocate itself into RAM.<br>> > > Normally these variables MUST NOT be defined.
The<br>> > > only exception is when U-Boot is loaded (to RAM) by<br>> > > some other boot loader or by a debugger which<br>> > > performs these intializations itself.<br>> > > ----- snip - README -------<br>> > ><br>> > > I suggest you enable the RELOCATE and LOWLEVEL_INIT (by commenting the<br>> > > defines)<br>> > > - u-boot AFAIK cannot run lke the XIP kernel off NOR Flash; inspite of<br>> > > the fact the NOR<br>> > > flash can be directly read by the processor - unlike NAND. There is no<br>> > > noticeable performance<br>> > > hit or wastage of memory if you let u-boot relocate by itself.<br>> > ><br>> > > TEXT_BASE=0x31000000 in my opinion is correct.<br>>
> ><br>> > > After relocating, a dump of flash contents and RAM (TEXT_BASE) contents<br>> > > should show you the same contents. If it does not - perhaps you have<br>> > > not configured<br>> > > the memory controller correctly. This can be verified by checking if<br>> > > you are able to<br>> > > write to RAM using the debugger after memory initializations (which is<br>> > > typically in LOWLEVEL_INIT, which you have skipped - I dont know if<br>> > > this is so for the s3c2440 ).<br>> > ><br>> > > Regards,<br>> > > Vishal<br>> > ><br>> > > On Mon, Mar 31, 2008 at 5:16 PM, Tiju <<a ymailto="mailto:tj_jac@yahoo.co.in" href="mailto:tj_jac@yahoo.co.in">tj_jac@yahoo.co.in</a>> wrote:<br>> > > ><br>> > > > Thanks Vishal.. I compiled with TEXT_BASE=0x31000000 and for<br>> > start_armboot<br>> >
> > jumps to 0x310004d0 but there are junk values present there.<br>> > > ><br>> > > > By default these are enabled:<br>> > > > #define CONFIG_SKIP_RELOCATE_UBOOT 1<br>> > > > #define CONFIG_SKIP_LOWLEVEL_INIT 1<br>> > > > so u-boot does not relocate.<br>> > > ><br>> > > > Still now what should the value of TEXT_BASE be? I dont want to<br>> relocate<br>> > > > u-boot because from NOR flash byte by byte read can be done.<br>> > > ><br>> > > > Regards,<br>> > > > Tiju<br>> > > ><br>> > > ><br>> > > > ----- Original Message ----<br>> > > > From: Vishal Oliyil Kunnil <<a ymailto="mailto:vishal.ok@gmail.com" href="mailto:vishal.ok@gmail.com">vishal.ok@gmail.com</a>><br>> > > > To: Tiju <<a ymailto="mailto:tj_jac@yahoo.co.in"
href="mailto:tj_jac@yahoo.co.in">tj_jac@yahoo.co.in</a>><br>> > > ><br>> > > > Sent: Monday, 31 March, 2008 2:58:12 PM<br>> > > > Subject: Re: [U-Boot-Users] s3c2440 -- serial_init<br>> > > ><br>> > > > TEXT_BASE is the address for which u-boot is linked for.If you take an<br>> > > > objdump of u-boot<br>> > > > elf, you will see that it links for address beginning with that<br>> > > > specified by TEXT_BASE.<br>> > > > Meaning, you link for the address thus specified.<br>> > > > Typically the binary will be run from the reset vector of the<br>> > > > processor, which is not necessarily<br>> > > > TEXT_BASE : say 0x0 flash address. U-boot starts executing from the<br>> > > > reset vector,<br>> > > > relocates to RAM and since it is linked for TEXT_BASE, the ldr
pc,<br>> > > > _start_armboot<br>> > > > will branch to the start_armboot which is in RAM.<br>> > > > -------snip - start.S --------------<br>> > > > ldr pc, _start_armboot<br>> > > > _start_armboot: .word start_armboot<br>> > > > -------snip - start.S --------------<br>> > > > Regards,<br>> > > > Vishal<br>> > > ><br>> > > > On Mon, Mar 31, 2008 at 1:41 PM, Tiju <<a ymailto="mailto:tj_jac@yahoo.co.in" href="mailto:tj_jac@yahoo.co.in">tj_jac@yahoo.co.in</a>> wrote:<br>> > > > ><br>> > > > > Hi Vishal,<br>> > > > ><br>> > > > > What does TEXT_BASE mean? Is this the place where the UBOOT gets<br>> > > > relocated?<br>> > > > ><br>> > > > > Thank You,<br>> > > > > Tiju<br>> > > > ><br>>
> > > ><br>> > > > ><br>> > > > > ----- Original Message ----<br>> > > > > From: "<a ymailto="mailto:vishal.ok@gmail.com" href="mailto:vishal.ok@gmail.com">vishal.ok@gmail.com</a>" <<a ymailto="mailto:vishal..ok@gmail.com" href="mailto:vishal..ok@gmail.com">vishal..ok@gmail.com</a>><br>> > > > > To: Tiju <<a ymailto="mailto:tj_jac@yahoo.co.in" href="mailto:tj_jac@yahoo.co.in">tj_jac@yahoo.co.in</a>><br>> > > > > Sent: Monday, 31 March, 2008 1:35:47 PM<br>> > > > > Subject: Re: [U-Boot-Users] s3c2440 -- serial_init<br>> > > > ><br>> > > > > Hi Tiju,<br>> > > > ><br>> > > > > Try with TEXT_BASE=0x31000000, and leave start.s untouched !<br>> > > > > I think you have misinterpreted the meaning of TEXT_BASE.<br>> > > > ><br>> > > > >
Regards,<br>> > > > > Vishal<br>> > > > ><br>> > > > > On 3/31/08, Tiju <<a ymailto="mailto:tj_jac@yahoo.co.in" href="mailto:tj_jac@yahoo.co.in">tj_jac@yahoo.co.in</a>> wrote:<br>> > > > > > Hi Michael,<br>> > > > > ><br>> > > > > > I have verified all the RAM initializations in<br>> > > > > > board/smdk2440/lowlevel_init.S and it seems to be fine.<br>> > > > > > The other changes that I have done are<br>> > > > > ><br>> > > > > > 1.. In the board/smdk2440/config.mk file I changed TEXT_BASE =<br>> > > > 0x33F80000<br>> > > > > to<br>> > > > > > TEXT_BASE = 0x00000000 because I am booting from the NOR flash.<br>> The<br>> > > NOR<br>> > > > > > flash address range is 0x00000000 - 0x08000000. The RAM
address<br>> > range<br>> > > is<br>> > > > > > 0x30000000 - 0x38000000.<br>> > > > > ><br>> > > > > > If I compile it with TEXT_BASE = 0x33F80000 it does not run at<br>> all!<br>> > > > > ><br>> > > > > > 2. When I changed this I found that it has a clash with the stack<br>> > > > building<br>> > > > > > in cpu/arm920t/start.S. Therefore I changed it to<br>> > > > > > .........<br>> > > > > > /* Set up the stack */<br>> > > > > > stack_setup:<br>> > > > > > /* ldr r0, _TEXT_BASE */ /* upper 128 KiB: relocated uboot */<br>> > > > > > mov r0, #0x33 /* make stack at 33F8*/<br>> > > > > > mov r0, r0, lsl #24<br>> > > > > > mov r1, #0xF8<br>> > > > > > mov r1, r1, lsl #16<br>>
> > > > > orr r0, r0, r1<br>> > > > > > .........<br>> > > > > ><br>> > > > > > Would these be a problem for the memory initializations?<br>> > > > > ><br>> > > > > > Thanks in advance<br>> > > > > > Tiju<br>> > > > > ><br>> > > > > ><br>> > > > > ><br>> > > > > > > Hi all<br>> > > > > > ><br>> > > > > > > I am trying to port u-boot to a s3c2440 samsung processor.<br>> > > > > > ><br>> > > > > > > I applied the smdk2440 boards patch (almost similar<br>> architecture)<br>> > > and<br>> > > > > > > trying to modify it for our board's requirement. But during the<br>> > > > > > > serial_init it goes to the _serial_putc and then
after certain<br>> > loops<br>> > > > > > > it goes to the hang function and hangs there.<br>> > > > > > ><br>> > > > > > > What could be the problem? Or am I doing some wrong<br>> > initializations?<br>> > > > > > ><br>> > > > > > ><br>> > > > > > Are you sure that the memory inizializzation is correct?<br>> > > > > ><br>> > > > > > Regards Michael<br>> > > > > ><br>> > > > > ><br>> > > > > ><br>> > > > > ><br>> > > > > > 5, 50, 500, 5000 - Store N number of mails in your inbox. Go to<br>> > > > > ><br>> <a href="http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html" target="_blank">http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html</a><br>>
> > > ><br>> > > > ><br>> > > > > ________________________________<br>> > > > > Get your domain and website for less than Rs.100/month*. Click<br>> here..<br>> > > ><br>> > > ><br>> > > ><br>> > > > ________________________________<br>> > > > Get your domain and website for less than Rs.100/month*.. Click here.<br>> > ><br>> > ><br>> > > ________________________________<br>> > > Bring your gang together - do your thing. Start your group.<br>> ><br>> ><br>> ><br>> > ________________________________<br>> > Bring your gang together - do your thing. Start your group.<br>><br>><br>><br>> ________________________________<br>> Get your domain and website for less than Rs.100/month*. Click
here.<br></div><br></div></div><br>
<!--2--><hr size=1></hr> Share files, take polls, and make new friends - all under one roof. <a href="http://in.rd.yahoo.com/tagline_groups_2/*http://in.promos.yahoo.com/groups/"> Click here.</a></body></html>