[U-Boot] arm writel in v2010.03-rc1 generate wrong code

2011-02-22 Thread zzs213
My board is very similar to at91rm9200ek. I have a function to init nor flash bus, like this : void gfd3000cdb_nor_hw_init(void) { at91_mc_t *mc = (at91_mc_t *)AT91_MC_BASE; writel(CONFIG_SYS_EBI_CFGR_VAL, (mc-ebi.cfgr)); writel(CONFIG_SYS_SMC_CSR0_VAL, mc-smc.csr[0]); }

Re: [U-Boot] arm writel in v2010.03-rc1 generate wrong code

2011-02-22 Thread zzs213
anybody help me!! I think you need this patch http://lists.denx.de/pipermail/u-boot/2010-December/084133.html Is there any other smoothly solution? This patch makes my code differ from the main line,So I think it's not good enough. regards zzs213

Re: [U-Boot] can't build u-boot-2010.12-rc2 for at91rm9200ek

2010-12-09 Thread zzs213
I just clone the git repos. and build at91rm9200ek with eldk4.1,the error message is same. I change start.S let it check whether the main osc of at91rm9200 is work, So I know need relocate the code or not. Use this method I boot u-boot in NOR flash successful

Re: [U-Boot] can't build u-boot-2010.12-rc2 for at91rm9200ek

2010-12-09 Thread zzs213
you are right, I use that method on u-boot-2010.09 for my own board(slightly different from at91rm9200ek) eldk4.1 is ok for 2010.09, eldk4.2 ok too ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] can't build u-boot-2010.12-rc2 for at91rm9200ek

2010-12-09 Thread zzs213
Dear zzs213, can you please leave some context when you answering to the list? Am 09.12.2010 10:52, schrieb zzs213: you are right, I use that method on u-boot-2010.09 for my own board(slightly different from at91rm9200ek) I guess you mean you are using a preloader on your NOR flash

[U-Boot] can't build u-boot-2010.12-rc2 for at91rm9200ek

2010-12-08 Thread zzs213
I download u-boot-2010.12-rc2 and make at91rm9200ek use the flowwing command make O=../build at91rm9200ek and get error message like this arm-linux-gcc -D__ASSEMBLY__ -g -Os -fno-common -ffixed-r8 -msoft-float -D__KERNEL__ -DCONFIG_SYS_TEXT_BASE=0x1000

Re: [U-Boot] can't build u-boot-2010.12-rc2 for at91rm9200ek

2010-12-08 Thread zzs213
I chang 'adr r1, r9' to 'add r1, r1, r9' and then rebuild it but I gave another error. the error message is: arm-linux-ld: -static and -shared may not be used together make[1]: *** [/home/zzs/DownLoad/uboot/xx/build/u-boot] Is this caused by the toolchain too? thanks!

Re: [U-Boot] can't build u-boot-2010.12-rc2 for at91rm9200ek

2010-12-08 Thread zzs213
I chang 'adr r1, r9' to 'add r1, r1, r9' and then rebuild it but I got another error. the error message is: arm-linux-ld: -static and -shared may not be used together make[1]: *** [/home/zzs/DownLoad/uboot/xx/build/u-boot] Error 1 make[1]: Leaving directory

Re: [U-Boot] can't build u-boot-2010.12-rc2 for at91rm9200ek

2010-12-08 Thread zzs213
Yes. I just build it use eldk4.2. It's all right!! ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot