[U-Boot-Users] I have some problem when booting Intel Xscale PXA263 CPU...

Dear all, I am using u-boot-0.4.8 to boot my Intel Xscale PXA263 M/B. After boot, I can see the console out but it hang at common/lists.c line 36. The calloc(size,num) that defined as malloc(size*num). I have no idea to debug it. Could somebody give me a hint? Thanks.
Best regards,
Jacob

In message !~!UENERkVCMDkAAQACAAAAAAAAAAAAAAAAABgAAAAAAAAA+PVBMbpkMUqKhq9Dwhg2eMKAAAAQAAAAuygPQmiC9US32sCPMkBnRAEAAAAA@so-net.net.tw you wrote:
I am using u-boot-0.4.8 to boot my Intel Xscale PXA263 M/B. After boot, I can see the console out but it hang at common/lists.c line = 36. The calloc(size,num) that defined as malloc(size*num). I have no idea to debug it.
First think. Then think again. What's your memory map? How big is the malloc area, the stack, etc. on your board?
Then attach a BDI2000 and fire up GDB ...
Best regards,
Wolfgang Denk

Dear Wolfgang, In my board, there are 32MB Flash memory and 128MB SDRAM. The memory map is 0x00000000 ~ 0x01FFFFFF CS0 -->32MB Flash memory 0xa0000000 ~ 0xa3FFFFFF SDCS0 --> 64MB SDRAM 0xa4000000 ~ 0xa7FFFFFF SDCS0 --> 64MB SDRAM I set TEXT_BASE = 0xa0300000 #define CFG_LOAD_ADDR 0xa2000000 #define CFG_MALLOC_LEN (1024*1024) #define CONFIG_STACKSIZE (1024*1024) and the console output is U-Boot 0.4.8 (Oct 30 2003 - 16:25:25)
U-Boot code: A0300000 -> A0314874 BSS: -> A0315D84 DRAM Configuration: Bank #0: a0000000 64 MB Bank #1: a4000000 64 MB Flash: 32 MB into env_flash.c --> env_relocate_spec... Exit env_flash.c --> env_relocate_spec... End of env_relocate() Setting IP Address End of Setting IP Address. devices_init... Into common/lists.c --> ListCreate Into common/lists.c --> NewHandle <--- It hangs.
Now I still trace into NewHandle function. I find it hangs in malloc() function. I am confuse that the function malloc in common folder. I think the malloc function can work correctly in the Lubbock board. Why it can't work in my target board? Is my CPU Memory Register setting wrong??? I am confuse.
Thanks.
Best regards,
Jacob Chan
-----Original Message----- From: u-boot-users-admin@lists.sourceforge.net [mailto:u-boot-users-admin@lists.sourceforge.net] On Behalf Of Wolfgang Denk Sent: Thursday, October 30, 2003 3:56 PM To: Jacob Chan Cc: u-boot-users@lists.sourceforge.net Subject: Re: [U-Boot-Users] I have some problem when booting Intel Xscale PXA263 CPU...
In message <!~!UENERkVCMDkAAQACAAAAAAAAAAAAAAAAABgAAAAAAAAA+PVBMbpkMUqKhq9Dwhg2eMKAAAAQ AAAAuygPQmiC9US32sCPMkBnRAEAAAAA@so-net.net.tw> you wrote:
I am using u-boot-0.4.8 to boot my Intel Xscale PXA263 M/B. After boot, I can see the console out but it hang at common/lists.c line = 36. The calloc(size,num) that defined as malloc(size*num). I have no idea to debug it.
First think. Then think again. What's your memory map? How big is the malloc area, the stack, etc. on your board?
Then attach a BDI2000 and fire up GDB ...
Best regards,
Wolfgang Denk

Wolfgang Denk wd@denx.de schreibt:
In message !~!UENERkVCMDkAAQACAAAAAAAAAAAAAAAAABgAAAAAAAAA+PVBMbpkMUqKhq9Dwhg2eMKAAAAQAAAAuygPQmiC9US32sCPMkBnRAEAAAAA@so-net.net.tw you wrote:
I am using u-boot-0.4.8 to boot my Intel Xscale PXA263 M/B. After boot, I can see the console out but it hang at common/lists.c
line =
The calloc(size,num) that defined as malloc(size*num). I have no idea to debug it.
First think. Then think again. What's your memory map? How big is the malloc area, the stack, etc. on your board?
Then attach a BDI2000 and fire up GDB ...
Hi Wolfgang,
PXA (XScale) support is broken, remember? lib_arm/board.c uses '_armboot_real_end' to set up the heap, but cpu/pxa/cpu.c does not initialize that variable, thus the crash in the first call to malloc().
It was _your_ decision not to merge the patch that fixes this...
Cheers Anders

In message fc.004c4e48001e03443b9aca005402d3e7.1e035a@rea.de you wrote:
PXA (XScale) support is broken, remember?
I remember.
It was _your_ decision not to merge the patch that fixes this...
Not yet, right.
Mostly because I'd like to see a patch or patches that fixes _all_ problems of the broken ARM memory layout.
Best regards,
Wolfgang Denk

Dear all, I am using u-boot-0.4.8 to boot my SMDK2410 (ARM9 ). SMDK2410 Board has NAND Flash Memory I Know U-Boot has nand control command but my configuration does not enable nand command . How can I enable nand command in U-Boot Thanks.
Best regards, ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ U-Boot-Users mailing list U-Boot-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/u-boot-users

In message 000401c39ebc$a1a39b40$63c1dba8@swcenter.sec.samsung.co.kr you wrote:
I am using u-boot-0.4.8 to boot my SMDK2410 (ARM9 ). SMDK2410 Board has NAND Flash Memory I Know U-Boot has nand control command but my configuration does not enable nand command . How can I enable nand command in U-Boot
Add the corresponding configuration option (CFG_CMD_NAND) to the list of command options enabled for your board.
Best regards,
Wolfgang Denk

I think you can add CFG_CMD_NAND in your include/configs/smdk2410.h like #define CONFIG_COMMANDS (CONFIG_CMD_DFL | CFG_CMD_NAND )
Best regards,
Jacob Chan
-----Original Message----- From: u-boot-users-admin@lists.sourceforge.net [mailto:u-boot-users-admin@lists.sourceforge.net] On Behalf Of 譆惜橾 Sent: Thursday, October 30, 2003 4:06 PM To: u-boot-users@lists.sourceforge.net Subject: [U-Boot-Users] How Can I NAND Command Enable?
Dear all, I am using u-boot-0.4.8 to boot my SMDK2410 (ARM9 ). SMDK2410 Board has NAND Flash Memory I Know U-Boot has nand control command but my configuration does not enable nand command . How can I enable nand command in U-Boot Thanks.
Best regards, ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ U-Boot-Users mailing list U-Boot-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/u-boot-users
------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ U-Boot-Users mailing list U-Boot-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/u-boot-users
participants (4)
-
Anders Larsen
-
Jacob Chan
-
Wolfgang Denk
-
최광일