[U-Boot] U-boto CRC error
Hi Wolfgang, I am bringing up u-boot on a power-pc board . The u-boot is up but during boot up I get the below message. Can you suggest. *** Warning - bad CRC, using default environment Thanks in Advance. Regards, Smitha Please do not print this email unless it is absolutely necessary. The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
[U-Boot] Flat tree support
Hi Wolfgang, I have taken the sources of u-boot for version 1.1.6. I don't see flat tree support enable for any Board based on mpc8260 (CONFIG_OF_FLAT_TREE)I checked for IDS8272,MPC8260ADS. Can you let me know is there support for Flat tree structure for 603e cores. Also I don't see ft_setup function for this process. Regards, Smitha Please do not print this email unless it is absolutely necessary. The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
Re: [U-Boot] Flat tree support
Hi , Can you point me to the latest stable uboot sources. Thanks & Regards, Smitha Please do not print this email unless it is absolutely necessary. The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
[U-Boot] Bootm command
Hi Wolfgang, I am trying to boot linux by using the bootm command. It fails when it tries to compare the filesystem header with the IH_MAGIC and fails and gets reset. Could you let me know what should I need to change this number. This in cmd_bootm.c file in do_bootm_linux () function. Below are the logs. EPN412> bootm 0x100 0xfe34 0x200 ## Booting image at 0100 ... Image Name: Linux-2.6.21.7-hrt1-cfs-v22-grse Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size:1423080 Bytes = 1.4 MB Load Address: Entry Point: Verifying Checksum ... OK Uncompressing Kernel Image ... OK ## Loading RAMDisk Image at fe34 ... B if (ntohl(hdr->ih_magic) != IH_MAGIC) { puts ("Bad Magic Number\n"); show_boot_progress (-10); do_reset (cmdtp, flag, argc, argv); } Regards, Smitha Please do not print this email unless it is absolutely necessary. The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
Re: [U-Boot] Bootm command
Hi Mark, I didn't understand what you mean to say. Actually I have built a cramfs image and programmed the file system at the location 0xfe34(this is flash address where it is programmed) in the flash . I loaded uImage kernel image at 0x100 this is my ram area address. I have loaded .dtb at 0x200 In ram. I have set my bootargs as setenv bootargs console=ttyS0,9600 root=/dev/mtdblock4 rootfstype=cramfs Now I try to boot the kernel image loaded at 0x100 address. As per the log messages I see that Kernel gets uncompressed and loaded at 0x address. It starts loading the file system and Then tries to read the header from the loaction 0xfe34 and compare the IH_MAGIC with the hdr->ih_magic the it says Bad Magic Number and gets reseted. Below is the piece of code where it fails. if (hdr->ih_magic != IH_MAGIC) { printf ("Bad Magic Number\n"); SHOW_BOOT_PROGRESS (-10); /* do_reset (cmdtp, flag, argc, argv); */ if(auto_boot) do_reset (cmdtp, flag, argc, argv); else return 1; } Regards, Smitha Please do not print this email unless it is absolutely necessary. The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
[U-Boot] code looping in_ram in start.S
Hi , I am trying to bring up u-boot1.1.3 on a custom mpc8247 board, having 32MB flash and two 32 M SDRAM . See a problem after the relocation happens. The code gets relocated from Flash to RAM correctly. But when the control goes to in_ram it gets looped there And then gets reset. I have done all the SDRAM tests all are successful. So how to proceed for this issue Below is the SDRAM initialization sequence. ; init SDRAM Init (PPC bus) WM16 0xF0010184 0x1000;MPTPR WM8 0xF001019C 0x18 ;PSRT WM32 0xF001010c 0xFC002d00 ;OR1 WM32 0xF0010108 0x1841 ;BR1 WM32 0xF0010190 0xeb29a4a3 ;PSDMR: Precharge all banks WM8 0x 0x00 ;Access SDRAM WM32 0xF0010190 0xcB29a4a3;PSDMR: CBR Refresh WM8 0x 0xFF ;Access SDRAM WM8 0x 0xFF ;Access SDRAM WM8 0x 0xFF ;Access SDRAM WM8 0x 0xFF ;Access SDRAM WM8 0x 0xFF ;Access SDRAM WM8 0x 0xFF ;Access SDRAM WM8 0x 0xFF ;Access SDRAM WM8 0x 0xFF ;Access SDRAM WM32 0xF0010190 0xdb29a4a3;PSDMR: Mode Set WM8 0x 0x00 ;Access SDRAM WM32 0xF0010190 0xc329a4a3;PSDMR: enable refresh, normal operation Regards, Smitha Please do not print this email unless it is absolutely necessary. The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
[U-Boot] running as stand alone
Hi, My u-boot works when run from the BDI emulator. But when it is programmed in flash and powered on with out connecting the emulator It does not come up . I checked the HRCW its correct. Any suggestions? Regards, Smitha Please do not print this email unless it is absolutely necessary. The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
[U-Boot] Ping command
Hi Wolfgang , On my target board with MPC8247 is interfaced with the BCM5221 chip. Iam using FCC 1 of the processor. Had defined below in my board config file. Configured the BCM5221 control register with 0X3100. Had set environment variables ipaddr, serverip, ethaddr ,netmask. When I execute the PING Command I get the following error >ping 172.16.52.20 Using unknown device ping failed; host 172.16.52.20 is not alive Could you please give me any pointers for this problem? #define CONFIG_ETHER_ON_FCC , #define CONFIG_ETHER_INDEX 1 #define CFG_PHY_ADDR #define CFG_CMXFCR_VALUECMXFCR_TF1CS_CLK10 #define CFG_CMXFCR_MASK (CMXFCR_FC1|CMXFCR_TF1CS_MSK) /* Local Protect, Full duplex, Flowcontrol, RMII */ #define CFG_FCC_PSMR(FCC_PSMR_LPB|FCC_PSMR_FDE|\ FCC_PSMR_FCE|FCC_PSMR_RMII) /* bit-bang MII PHY management */ #define CONFIG_BITBANGMII #define MDIO_PORT 1 /* Port A */ #define CFG_MDIO_PIN0x0100 /* PA23 */ #define CFG_MDC_PIN 0x0200 /* PA22 */ #define MDIO_ACTIVE (iop->pdir |= CFG_MDIO_PIN) #define MDIO_TRISTATE (iop->pdir &= ~CFG_MDIO_PIN) #define MDIO_READ ((iop->pdat & CFG_MDIO_PIN) != 0) #define MDIO(bit) if(bit) iop->pdat |= CFG_MDIO_PIN; \ elseiop->pdat &= ~CFG_MDIO_PIN #define MDC(bit)if(bit) iop->pdat |= CFG_MDC_PIN; \ elseiop->pdat &= ~CFG_MDC_PIN #define MIIDELAYudelay(1) Environment variables: gatewayip=172.16.52.7 netmask=255.255.254.0 bootfile=boot/uImage ethact=FEC ETHERNET hostname=D-0143612 ipaddr=172.16.52.20 serverip=172.16.52.60 ethaddr=00:e0:ee:00:05:2e Regards, Smitha -Original Message- From: Wolfgang Denk [mailto:w...@denx.de] Sent: Wednesday, July 13, 2011 11:38 AM To: Smitha Vanga (WT01 - GMT-Telecom Equipment) Cc: u-boot@lists.denx.de Subject: Re: [U-Boot] running as stand alone Dear smitha.va...@wipro.com, In message <07acdfb8eca8ef47863a613bc01bbb2203243...@hyd-mkd-mbx02.wipro.com> you wrote: > > My u-boot works when run from the BDI emulator. But when it is > programmed in flash and powered on with out connecting the emulator > > It does not come up . I checked the HRCW its correct. Any suggestions? Check which initializations are done in the BDI init sequence, and check which of them are needed and missing in U-Boot. > The information contained in this electronic message and any > attachments to this message are intended for the exclusive use of the > addressee(s) and may contain proprietary, confidential or privileged > information. If you are not the intended recipient, you should not > disseminate, distribute or copy this e-mail. Please notify the sender > immediately and destroy all copies of this message and any attachments. Please omit such crap when posting to public mailing lists. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: w...@denx.de You can love it, change it, or leave it.There is NO other option. But do not complain - it is your own choice... -- wd Please do not print this email unless it is absolutely necessary. The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
Re: [U-Boot] Ping command
Hi Wolfgang Denk, I get the below messages. Its failing in the fec_send BD_ENET_TX_READY bit is not getting set. Any clue? EPN412> ping 172.16.52.20 Trying FCC1 ETHERNET pram_ptr->fen_genfcc.fcc_rbase 03efcc88 pram_ptr->fen_genfcc.fcc_tbase 03efcca8 Using FCC1 ETHERNET device sending ARP for ac103414 ARP broadcast 1 fec: tx error Value : 8000 ARP broadcast 2 fec: tx buffer not ready ping failed; host 172.16.52.20 is not alive Regards, Smitha -Original Message- From: Wolfgang Denk [mailto:w...@denx.de] Sent: Friday, July 15, 2011 12:51 PM To: Smitha Vanga (WT01 - GMT-Telecom Equipment) Cc: u-boot@lists.denx.de Subject: Re: Ping command Dear smitha.va...@wipro.com, In message <07acdfb8eca8ef47863a613bc01bbb22032bc...@hyd-mkd-mbx02.wipro.com> you wrote: > > execute the PING > Command I get the following error > > >ping 172.16.52.20 > Using unknown device > ping failed; host 172.16.52.20 is not alive Check the source code and find out why ping reports an "unknown device". Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: w...@denx.de If all you have is a hammer, everything looks like a nail. Please do not print this email unless it is absolutely necessary. The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
Re: [U-Boot] Ping command
Hi Wolfgang, I solved the unknow device issue by enabling the CONFIG_ETHER_ON_FCC1 in my config. Will check the TX clock configuration. Currently getting the blow messages. It says using the FCC1 ETHERNET. ping 172.16.52.60 Trying FCC1 ETHERNET pram_ptr->fen_genfcc.fcc_rbase 03efcc88 pram_ptr->fen_genfcc.fcc_tbase 03efcca8 Using FCC1 ETHERNET device sending ARP for ac10343c ARP broadcast 1 fec: tx error Value : 8000 ARP broadcast 2 fec: tx buffer not ready ping failed; host 172.16.52.60 is not alive Thanks & Reagrds, Smitha Please do not print this email unless it is absolutely necessary. The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
Re: [U-Boot] Ping command
Hi Wolfgang, Thanks , ping is working the problem was with routing of the Tx clock. Thanks & Reagrds, Smitha Please do not print this email unless it is absolutely necessary. The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
[U-Boot] Flat tree structure dts file
Hi, I am trying to port WindRiver linux 2.6.21 on to mpc8247 custom board. Does for mpc8260 core is there support for CONFIG_OF_FLAT_TREE . How do I supply the device tree structure to the kernel. Do I need to do this in the u-boot? If yes how do I do? Thanks & Regards, Smitha Please do not print this email unless it is absolutely necessary. The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
[U-Boot] Console bring up on WR linux kernel on mpc8247 board
Hi Wolfgang, I am trying to bring up WR linux 2.6.38.2 on a custom target board based on mpc8247, We are using SCC1 for the serial console. Have initialized the scc node in the dts as below. Had set the bootargs as setenv bootargs mem=64M console=ttyCPM,9600n8 root=/dev/ram rw. My serial console doesn't come up. Can you give any pointers to this would be of great help. I am stuck here and there is a project release. Below are the kernel logs I get for the Serial from the __log_buf. --- .<6>Serial: CPM driver $Revision: 0.02 $ .<6>ttyCPM0 at MMIO map 0xc5000a00 mem 0x0 (irq = 40) is a CPM UART .<4>RAMDISK driver initialized: 16 RAM disks of 32768K size 1024 blocksize .<6>Broadcom B CM5411: Registered new driver -- cpm@f000 { linux,phandle = ; #address-cells = <1>; #size-cells = <1>; #interrupt-cells = <2>; device_type = "cpm"; model = "CPM2"; ranges = < 2>; reg = <0 2>; command-proc = <119c0>; brg-frequency = ; cpm_clk = <7F385C0>; scc@11a00 { device_type = "serial"; compatible = "cpm_uart"; model = "SCC"; device-id = <1>; reg = <11a00 20 8000 100>; current-speed = <2580>; interrupts = <28 2>; interrupt-parent = <10c00>; clock-setup = <0 00ff>; rx-clock = <1>; tx-clock = <1>; }; }; --- Kernel configurations: # CONFIG_PPC64 is not set CONFIG_PPC32=y CONFIG_PPC_MERGE=y CONFIG_MMU=y CONFIG_GENERIC_TIME=y CONFIG_GENERIC_HARDIRQS=y CONFIG_IRQ_PER_CPU=y CONFIG_RWSEM_XCHGADD_ALGORITHM=y CONFIG_ARCH_HAS_ILOG2_U32=y CONFIG_GENERIC_HWEIGHT=y CONFIG_GENERIC_CALIBRATE_DELAY=y CONFIG_GENERIC_FIND_NEXT_BIT=y CONFIG_PPC=y CONFIG_EARLY_PRINTK=y CONFIG_GENERIC_NVRAM=y CONFIG_SCHED_NO_NO_OMIT_FRAME_POINTER=y CONFIG_ARCH_MAY_HAVE_PC_FDC=y CONFIG_PPC_OF=y # CONFIG_PPC_UDBG_16550 is not set # CONFIG_GENERIC_TBSYNC is not set CONFIG_AUDIT_ARCH=y CONFIG_GENERIC_BUG=y CONFIG_DEFAULT_UIMAGE=y # # Processor support # # CONFIG_CLASSIC32 is not set # CONFIG_PPC_512x is not set CONFIG_PPC_82xx=y # CONFIG_PPC_83xx is not set # CONFIG_PPC_85xx is not set # CONFIG_PPC_86xx is not set # CONFIG_PPC_8xx is not set # CONFIG_40x is not set # CONFIG_44x is not set # CONFIG_E200 is not set CONFIG_6xx=y CONFIG_PPC_FPU=y # CONFIG_PPC_DCR_NATIVE is not set # CONFIG_PPC_DCR_MMIO is not set CONFIG_PPC_STD_MMU=y CONFIG_PPC_STD_MMU_32=y # CONFIG_SMP is not set CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config" # IO Schedulers # CONFIG_IOSCHED_NOOP=y # CONFIG_IOSCHED_AS is not set # CONFIG_IOSCHED_DEADLINE is not set # CONFIG_IOSCHED_CFQ is not set # CONFIG_DEFAULT_AS is not set # CONFIG_DEFAULT_DEADLINE is not set # CONFIG_DEFAULT_CFQ is not set CONFIG_DEFAULT_NOOP=y CONFIG_DEFAULT_IOSCHED="noop" CONFIG_PQ2ADS=y CONFIG_8260=y CONFIG_8272=y CONFIG_CPM2=y # CONFIG_WANT_EARLY_SERIAL is not set CONFIG_EMBEDDEDBOOT=y # # Platform support # CONFIG_MPC82xx_ADS=y # CONFIG_MPIC is not set # # Non-8250 serial port support # # CONFIG_SERIAL_UARTLITE is not set CONFIG_SERIAL_CORE=y CONFIG_SERIAL_CORE_CONSOLE=y CONFIG_SERIAL_CPM=y CONFIG_SERIAL_CPM_CONSOLE=y CONFIG_SERIAL_CPM_SCC1=y # CONFIG_SERIAL_CPM_SCC2 is not set # CONFIG_SERIAL_CPM_SCC3 is not set # CONFIG_SERIAL_CPM_SCC4 is not set # CONFIG_SERIAL_CPM_SMC1 is not set # CONFIG_SERIAL_CPM_SMC2 is not set CONFIG_UNIX98_PTYS=y # CONFIG_LEGACY_PTYS is not set # CONFIG_IPMI_HANDLER is not set Thank in Advance Regards, Smitha Please do not print this email unless it is absolutely necessary. The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com ___ U-Boot mailin