Re: [U-Boot] Compilation of env error u-boot 2015.07-rc2
Small correction On Wednesday, June 17, 2015, Thirumalesha N wrote: > Hi Franklin, > > Sorry for late response > > On Wednesday, June 10, 2015, Cooper Jr., Franklin > wrote: > >> >> >> > -Original Message- >> > From: Maxin B. John [mailto:maxin.j...@enea.com] >> > Sent: Wednesday, June 10, 2015 4:10 AM >> > To: Thirumalesha N >> > Cc: u-boot@lists.denx.de; Cooper Jr., Franklin; tr...@konsulko.com >> > Subject: Re: [U-Boot] Compilation of env error u-boot 2015.07-rc2 >> > >> > Hi, >> > >> > On Wed, Jun 10, 2015 at 10:29:47AM +0530, Thirumalesha N wrote: >> > > Hi all, >> > > >> > > I have pulled latest code from u-boot main line through git. >> > > >> > > Using linaro tool chain for am335x board >> > > >> > > I'm trying to compile tools/env but its giving an error >> > > >> > > #make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- env >> > > >> > > HOSTCC tools/env/fw_env.o >> > > >> > > arm-linux-gnueabihf/include/search.h:173:1 erro: expected '}' before >> > > 'NETARGS' >> > > make[1]: *** [ tools/env/few.env.o] error 1 >> > >> > I have managed to re-create the same problem. >> > >> > Revert this commit: 2320866b978fc12904eeba37236f35d12b4aec30 >> > ie: >> > # git revert 2320866b978fc12904eeba37236f35d12b4aec30 >> > >> > and then try building again. >> > >> > Apparently network arguments were moved to ti_armv7_common.h. >> > However, it wasn't included in the am335x config. >> [Franklin] I haven't used make env before but from my understanding there >> is no config for it. The other configs for am335x that I saw all had >> CONFIG_CMD_NET enabled. So I'm guessing that when doing make env >> CONFIG_CMD_NET isn't enabled which is why we get that error. I just sent a >> patch that fixed this error. > > > I agree, CONFIG_CMD_NET Is the issue. I have tried to include the > generated/autoconf.h in include/config_defaults.h that's solve the issue > but I didnt do thoroug test, if it gets effect for other configurations. > > > >> > >> > > >> > > With same tool chain I'm able compile 2014 u-boot >> > > >> > > Regards, >> > > Thiru N >> > >> > Best Regards, >> > Maxin >> > > Regards, > Thiru N > ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
Re: [U-Boot] Compilation of env error u-boot 2015.07-rc2
Hi Franklin, Sorry for late response On Wednesday, June 10, 2015, Cooper Jr., Franklin wrote: > > > > -Original Message- > > From: Maxin B. John [mailto:maxin.j...@enea.com ] > > Sent: Wednesday, June 10, 2015 4:10 AM > > To: Thirumalesha N > > Cc: u-boot@lists.denx.de ; Cooper Jr., Franklin; > tr...@konsulko.com > > Subject: Re: [U-Boot] Compilation of env error u-boot 2015.07-rc2 > > > > Hi, > > > > On Wed, Jun 10, 2015 at 10:29:47AM +0530, Thirumalesha N wrote: > > > Hi all, > > > > > > I have pulled latest code from u-boot main line through git. > > > > > > Using linaro tool chain for am335x board > > > > > > I'm trying to compile tools/env but its giving an error > > > > > > #make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- env > > > > > > HOSTCC tools/env/fw_env.o > > > > > > arm-linux-gnueabihf/include/search.h:173:1 erro: expected '}' before > > > 'NETARGS' > > > make[1]: *** [ tools/env/few.env.o] error 1 > > > > I have managed to re-create the same problem. > > > > Revert this commit: 2320866b978fc12904eeba37236f35d12b4aec30 > > ie: > > # git revert 2320866b978fc12904eeba37236f35d12b4aec30 > > > > and then try building again. > > > > Apparently network arguments were moved to ti_armv7_common.h. > > However, it wasn't included in the am335x config. > [Franklin] I haven't used make env before but from my understanding there > is no config for it. The other configs for am335x that I saw all had > CONFIG_CMD_NET enabled. So I'm guessing that when doing make env > CONFIG_CMD_NET isn't enabled which is why we get that error. I just sent a > patch that fixed this error. I agree, CONFIG_CMD_NET Is the issue. I have tried to include the generated/autoconf.h in include/defaults.h that's solve the issue but I didnt do thoroug test, if it gets effect for other configurations. > > > > > > > > With same tool chain I'm able compile 2014 u-boot > > > > > > Regards, > > > Thiru N > > > > Best Regards, > > Maxin > Regards, Thiru N ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
[U-Boot] Compilation of env error u-boot 2015.07-rc2
Hi all, I have pulled latest code from u-boot main line through git. Using linaro tool chain for am335x board I'm trying to compile tools/env but its giving an error #make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- env HOSTCC tools/env/fw_env.o arm-linux-gnueabihf/include/search.h:173:1 erro: expected '}' before 'NETARGS' make[1]: *** [ tools/env/few.env.o] error 1 With same tool chain I'm able compile 2014 u-boot Regards, Thiru N ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
[U-Boot] while booting u-boot hang at "relocate_code(addr_sp, id, addr); "
Dear sir, I'm porting u-boot for mpc8280 based custom board by taking mpc8260ads board with latest u-boot source code. its hanging while booting at "relocate_code(addr_sp, id, addr);" unsigned long logbuffer_base(void) { ,... .. relocate_code(addr_sp, id, addr); } U-Boot 2012.07 (Sep 01 2012 - 09:43:41) MPC8260 Reset Status: External Soft, External Hard MPC8260 Clock Configuration - Bus-to-Core Mult 2.5x, VCO Div 4, 60x Bus Freq 20-60 , Core Freq 50-120 - dfbrg 1, corecnf 0x11, busdf 3, cpmdf 1, plldf 0, pllmf 3, pcidf 3 - vco_out 4, scc_clk 1, brg_clk 2500 - cpu_clk 25000, cpm_clk 2, bus_clk 1 CPU: MPC8260 (HiP7 Rev 14, Mask 1.0 1K49M) at 250 MHz Board: MPC8280 Based RIO CARD.Testing By Thiru N... I2C: [I2C] Setting rate... [I2C] trying hz=2500, speed=50, filter=0, modval=0 moddiv=32, brgdiv=2 rejected brgval=-2 [I2C] trying hz=2500, speed=50, filter=0, modval=1 moddiv=16, brgdiv=4 rejected brgval=-1 [I2C] trying hz=2500, speed=50, filter=0, modval=2 moddiv=8, brgdiv=7 accepted brgval=1, totspeed=390625 [I2C] trying hz=2500, speed=50, filter=0, modval=3 moddiv=4, brgdiv=13 accepted brgval=4, totspeed=446428 [I2C] Best is: [I2C] CPU=2500hz RATE=50 F=0 I2MOD=0003 I2BRG=0004 DIFF=53572hz [I2C] i2mod=0006 i2brg=0004 [I2C] rbase = 0100 [I2C] tbase = 0120 [I2C] rxbd = f100 [I2C] txbd = f120 ready DRAM: 512 MiB Top of RAM usable for U-Boot at: 2000 Reserving 221k for U-Boot at: 1ffc8000 Reserving 4160k for malloc() at: 1fbb8000 Reserving 72 Bytes for Board Info at: 1fbb7fb8 Reserving 108 Bytes for Global Data at: 1fbb7f4c Stack Pointer at: 1fbb7f28 New Stack Pointer is: 1fbb7f28 what may be the reason its hanging at this point? what changes still i need to change? Regards Thiru N ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
[U-Boot] Porting u-boot for MPC8280 based Board by taking MPC8260ads reference, Its hanging at some point
Dear sir, I'm porting u-boot for mpc8280 based CPU board by taking mpc8260ads reference, its hanging at some some point. i enabled debug mode. U-Boot 1.3.1 (Aug 8 2012 - 09:19:16) MPC8260 Reset Status: Check Stop, External Soft, External Hard MPC8260 Clock Configuration - Bus-to-Core Mult 2.5x, VCO Div 4, 60x Bus Freq 20-60 , Core Freq 50-120 - dfbrg 1, corecnf 0x11, busdf 3, cpmdf 1, plldf 0, pllmf 3, pcidf 3 - vco_out 4, scc_clk 1, brg_clk 2500 - cpu_clk 25000, cpm_clk 2, bus_clk 1 CPU: MPC8260 (HiP7 Rev 14, Mask 1.0 1K49M) at 250 MHz Board: MPC8280 Based Remote IO CARD.Testing By Thiru N... I2C: ready DRAM: 512 MB Top of RAM usable for U-Boot at: 2000 Reserving 187k for U-Boot at: 1ffd1000 Reserving 192k for malloc() at: 1ffa1000 Reserving 76 Bytes for Board Info at: 1ffa0fb4 Reserving 72 Bytes for Global Data at: 1ffa0f6c Stack Pointer at: 1ffa0f48 New Stack Pointer is: 1ffa0f48 please can you suggest me to fix this issue. for your reference Clock frequency 100MHz Boot flash 512KB userflash 512MB SDRAM 512MB Thanks & Regards Thiru N ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
Re: [U-Boot] Regarding BDI2000 connection problem with MPC8280 based board
Dear sir, I'm porting u-boot for mpc8280 based CPU board by taking mpc8260ads reference, its hanging at some some point. i enabled debug mode. U-Boot 1.3.1 (Aug 8 2012 - 09:19:16) MPC8260 Reset Status: Check Stop, External Soft, External Hard MPC8260 Clock Configuration - Bus-to-Core Mult 2.5x, VCO Div 4, 60x Bus Freq 20-60 , Core Freq 50-120 - dfbrg 1, corecnf 0x11, busdf 3, cpmdf 1, plldf 0, pllmf 3, pcidf 3 - vco_out 4, scc_clk 1, brg_clk 2500 - cpu_clk 25000, cpm_clk 2, bus_clk 1 CPU: MPC8260 (HiP7 Rev 14, Mask 1.0 1K49M) at 250 MHz Board: MPC8280 Based Remote IO CARD.Testing By Thiru N... I2C: ready DRAM: 512 MB Top of RAM usable for U-Boot at: 2000 Reserving 187k for U-Boot at: 1ffd1000 Reserving 192k for malloc() at: 1ffa1000 Reserving 76 Bytes for Board Info at: 1ffa0fb4 Reserving 72 Bytes for Global Data at: 1ffa0f6c Stack Pointer at: 1ffa0f48 New Stack Pointer is: 1ffa0f48 please can you suggest me to fix this issue. for your reference Clock frequency 100MHz Boot flash 512KB userflash 512MB SDRAM 512MB Thanks & Regards Thiru N ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
[U-Boot] Regarding BDI2000 connection problem with MPC8280 based board
Dear sir, I'm trying BDI 2000 to connect MPC8280 Board buts its showing time out and i'm new to BDI 2000. Please suggest me on this regards. Regards Thiru N ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
Re: [U-Boot] Porting u-boot for MPC8280 based board.
On Thu, May 3, 2012 at 2:29 PM, Wolfgang Denk wrote: > Dear Thirumalesha N, > > In message < > cao1rv-ysrczbuhdflfd0kj9y1a7+ffcnwutrgng2xtl34ca...@mail.gmail.com> you > wrote: > > > >To enable console on SMC( There are 2 SMC in MPC8280, we using SMC2 > > means Pin no. PA9 ( Tx ) and PA8 (Rx) ). > >I modified as follows > ... > > + /* PA9 */ { 1, 1, 0, 1, 0, 0 }, /* SMC Tx */ > > + /* PA8 */ { 1, 1, 0, 0, 0, 0 }, /* SMC Rx */ > > > > */ > > +#define CONFIG_CONS_ON_SMC /* define if console on SMC */ > > +#undef CONFIG_CONS_ON_SCC /* define if console on SCC */ > > +#undef CONFIG_CONS_NONE /* define if console on something else */ > > +#define CONFIG_CONS_INDEX 2 /* which serial channel for console */ > ... > > +/* system clock rate (CLKIN) - equal to the 60x and local bus speed */ > > +#define CONFIG_8260_CLKIN 1 /* in Hz */ > > Are you sure your local bus runs at 100 MHz? > Yes it sure 100 MHz > > Check your clock routing!! > > What about CONFIG_CONS_EXTC_RATE and CONFIG_CONS_EXTC_PINSEL ? > These Macros are not exist in MPC8260ADS.h, in which file these macros are exist? Best regards, Thirumalesha N ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
Re: [U-Boot] Porting u-boot for MPC8280 based board.
On Wed, May 2, 2012 at 7:15 PM, Wolfgang Denk wrote: > Dear Thirumalesha N, > > Please keep the mailing list on Cc: > > In message < > cao1rv-ayvvrd1urk3eq3asyqz2rrddpyyaexstktjh7tbuq...@mail.gmail.com> you > wrote: > > > > Unable to get a BDI tool. Am trying to do directly. > > Please feel free to contact off...@denx.de for a quotation. > Thank you sir, i will contact shortly > > > Please can you explain me where the u-boot starts execution ? means > > not address. In source code which line or file executes first? > > U-Boot starts at the reset vector; in code, see label _start in > arch/powerpc/cpu/mpc8260/start.S > To enable console on SMC( There are 2 SMC in MPC8280, we using SMC2 means Pin no. PA9 ( Tx ) and PA8 (Rx) ). I modified as follows + /* PA9 */ { 1, 1, 0, 1, 0, 0 }, /* SMC Tx */ + /* PA8 */ { 1, 1, 0, 0, 0, 0 }, /* SMC Rx */ */ +#define CONFIG_CONS_ON_SMC /* define if console on SMC */ +#undef CONFIG_CONS_ON_SCC /* define if console on SCC */ +#undef CONFIG_CONS_NONE /* define if console on something else */ +#define CONFIG_CONS_INDEX 2 /* which serial channel for console */ +#define CONFIG_HARD_I2C 1 +# define CFG_I2C_SPEED 5 +# define CFG_I2C_SLAVE 0xFE +/* system clock rate (CLKIN) - equal to the 60x and local bus speed */ +#define CONFIG_8260_CLKIN 1 /* in Hz */ + +#define CONFIG_BAUDRATE 115200 Still am not getting any think on console, The SMC ports are inbuilt, it needs any serial driver to modify or any other files? Please suggest me to come out of this problem. Regards Thirumalesha N ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
Re: [U-Boot] Porting u-boot for MPC8280 based board.
> > Yes These frequency and flash base address are correct to my board. > > SMC2 pins PA9-TX and PA8-Rx, > > I Checked BRG and clock routing is matching to board. > > Then you need a debugger. > > > I have BDI 2000 tool, but its not connecting to board. > > This is a problem that should be fixable. Keep in mind that the > MPC82xx can come up in different modes, depending on if there is a > valid HRCW in flash or not. This can change the start address, too. > Try both high and low boot configurations. > For reset circuitry HRCW is there. In hardware also its considered. if i Want to try for high boot have to change TEXT_BASE address? Best regards, Thirumalesha N ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
Re: [U-Boot] Porting u-boot for MPC8280 based board.
> >> I modified MPC8260ADS with CPU clock frequency 100MHz, Text base > > >Is this the actual clock frequency on your system? Really? > > >> 0xfff0, Flash Base 0xfff0 and sdram base 0x, and > console on > > >Are these values correct for your hardware? > > >> SMC of port pins PA9(RX) and PA8 (Tx), But nothing am getting on serial > >> port while booting. Please can any one suggest me to come out of this. > > >Check the BRGs and the clock routing; if you don't have the right > >clocksand all tehse little details there will be no output. > > >Best is to attach your JTAG debugger and start GDB. > Hi, Yes These frequency and flash base address are correct to my board. SMC2 pins PA9-TX and PA8-Rx, I Checked BRG and clock routing is matching to board. I have BDI 2000 tool, but its not connecting to board. Regards Thirumalesha N ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
[U-Boot] Porting u-boot for MPC8280 based board.
Hi, I am trying to port u-boot for MPC8280 by taking reference MPC8260ADS, but its not booting, u-boot Version u-boot-1.3.1 ARCH = PPC 82xx Processor = MPC8280 Bootflash = AM29LV040B (512kb) mirror bit sdram = 512MB I modified MPC8260ADS with CPU clock frequency 100MHz, Text base 0xfff0, Flash Base 0xfff0 and sdram base 0x, and console on SMC of port pins PA9(RX) and PA8 (Tx), But nothing am getting on serial port while booting. Please can any one suggest me to come out of this. Thanks for your suggestion in Advance Regarding Thirumalesha N Namagondlu ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot